/* ============================================================
   MNUC Market - Campus marketplace interface
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,700;12..96,800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --mnuc-campus-bg: url('https://library.mnu.ac.ke/wp-content/uploads/2022/08/MNUC-Library-6-scaled.jpg');
  --student-life-bg: url('https://library.mnu.ac.ke/wp-content/uploads/2022/08/MNUC-Library-2-scaled.jpg');
  /* MNUC Brand */
  --mnuc-navy: #0E2040;
  --mnuc-gold: #C9A227;
  --mnuc-gold-dim: #9A7A1E;
  --mnuc-gold-lt: #F0D060;

  /* Surfaces */
  --bg: #F5F5F7;
  --bg2: #FFFFFF;
  --surface: #FFFFFF;
  --card: rgba(255,255,255,0.92);
  --dark-bg: #0E2040;
  --dark-surface: rgba(14,32,64,0.96);
  --dark-card: rgba(14,32,64,0.88);

  /* Text */
  --text: #1D1D1F;
  --text2: #6E6E73;
  --text3: #A1A1A6;
  --white: #FFFFFF;

  /* Accent */
  --blue: #0052FF;
  --blue-bright: #1677d2;
  --blue-dim: #003BB5;
  --green: #25D366;
  --red: #FF3B30;
  --amber: #FF9500;
  --gold: #C9A227;
  --gold-bright: #F0D060;
  --gold-dim: #9A7A1E;
  --wa: #25D366;

  /* Typography */
  --ff-head: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
  --ff-body: 'Inter', 'Plus Jakarta Sans', sans-serif;

  /* Spacing and radius */
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow: 0 2px 8px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.10), 0 16px 48px rgba(0,0,0,0.08);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.05);
  --shadow-card-hover: 0 8px 32px rgba(0,0,0,0.12);
  --trans: 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Borders */
  --border: rgba(0,0,0,0.08);
  --border2: rgba(14,32,64,0.14);

  /* Legacy aliases retained for existing selectors */
  --color-navy: #0E2040;
  --color-electric-blue: #0052FF;
  --color-campus-gold: #C9A227;
  --color-whatsapp: #25D366;
  --color-success: #25D366;
  --color-warning: #FF9500;
  --color-bg: #F5F5F7;
  --color-surface: #FFFFFF;
  --color-surface-container: #FFFFFF;
  --color-surface-high: #FFFFFF;
  --color-text-primary: #1D1D1F;
  --color-text-secondary: #6E6E73;
  --color-text-muted: #A1A1A6;
  --color-border: rgba(0,0,0,0.08);
  --color-border-light: rgba(0,0,0,0.08);
  --color-primary: #0052FF;
  --color-primary-dark: #0E2040;
  --color-accent: #0052FF;
  --color-gold: #C9A227;
  --font-body: var(--ff-body);
  --font-heading: var(--ff-head);
  --radius-card: 16px;
  --radius-btn: 10px;
  --radius-input: 10px;
  --radius-badge: 9999px;
  --card2: #F0F4FF;
  --card3: #EBF4FF;
  --navy: #0E2040;
  --gold-glow: rgba(201,162,39,0.15);
  --color-accent-secondary: #00b894;
  --color-accent-gold: #C9A227;
  --green-dim: #1DB954;
  --amber-dim: #C77800;
  --amber-glow: rgba(255,149,0,0.17);
  --shadow-gold: 0 18px 42px rgba(201,162,39,0.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  min-height: 100vh;
  font-family: var(--ff-body);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(59, 130, 246, 0.16), transparent 34rem),
    radial-gradient(circle at 88% 4%, rgba(212, 150, 10, 0.14), transparent 28rem),
    linear-gradient(180deg, #06101d 0%, #07111f 48%, #081425 100%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
input, textarea, select, button { font: inherit; }
button { color: inherit; }
ul, ol { list-style: none; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.28); border-radius: 99px; }

.container, .container-sm { width: min(calc(100% - 40px), 1220px); margin: 0 auto; }
.container-sm { max-width: 880px; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.w-full { width: 100%; }
.text-gold, .text-amber { color: var(--gold); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-blue { color: var(--blue-bright); }
.text-muted { color: var(--text2); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.text-center { text-align: center; }
.font-head { font-family: var(--ff-head); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.rounded { border-radius: var(--radius); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-gold, .badge-amber { background: rgba(212, 150, 10, 0.14); color: #ffd474; border: 1px solid rgba(212, 150, 10, 0.32); }
.badge-green { background: rgba(23, 184, 144, 0.13); color: #7cf2d0; border: 1px solid rgba(23, 184, 144, 0.28); }
.badge-red { background: rgba(248, 113, 113, 0.12); color: #fecaca; border: 1px solid rgba(248, 113, 113, 0.28); }
.badge-blue, .badge-navy { background: rgba(59, 130, 246, 0.13); color: #bfdbfe; border: 1px solid rgba(59, 130, 246, 0.28); }
.badge-purple { background: rgba(168, 85, 247, 0.13); color: #ddd6fe; border: 1px solid rgba(168, 85, 247, 0.28); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform var(--trans), border-color var(--trans), background var(--trans), box-shadow var(--trans), color var(--trans);
  white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--blue-dim), var(--blue-bright)); color: #fff; box-shadow: 0 12px 30px rgba(22, 119, 210, 0.25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 42px rgba(22, 119, 210, 0.32); }
.btn-blue { background: linear-gradient(135deg, var(--blue), var(--blue-bright)); color: #fff; }
.btn-blue:hover, .btn-green:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-secondary, .btn-ghost { background: rgba(255, 255, 255, 0.045); color: var(--text); border-color: var(--border); }
.btn-secondary:hover, .btn-ghost:hover { border-color: rgba(22, 119, 210, 0.42); color: var(--blue-bright); }
.btn-green { background: var(--green); color: #052016; }
.btn-wa { background: var(--wa); color: #031b0c; }
.btn-danger { background: rgba(248, 113, 113, 0.12); color: #fecaca; border-color: rgba(248, 113, 113, 0.28); }
.btn-danger:hover { background: var(--red); color: #260707; }
.btn-sm { min-height: 34px; padding: 7px 12px; font-size: 0.78rem; }
.btn-lg { min-height: 50px; padding: 13px 24px; font-size: 0.96rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.verified-badge, .badge-verified { background: var(--color-accent-secondary); color: #fff; border-color: var(--color-accent-secondary); }
.free-badge, .badge-free { color: var(--color-accent-secondary); border-color: rgba(0,184,148,0.28); background: rgba(0,184,148,0.1); }
.promoted-badge, .badge-promoted { background: var(--color-accent-gold); color: #1a1a1a; border-color: var(--color-accent-gold); }
.premium-badge, .badge-premium { background: linear-gradient(135deg, var(--color-accent-gold), #ffeaa7); color: #1a1a1a; border-color: var(--color-accent-gold); }

.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label { font-size: 0.78rem; font-weight: 800; color: var(--text2); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 12px 13px;
  font-size: 0.9rem;
  transition: border-color var(--trans), box-shadow var(--trans), background var(--trans);
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 4px rgba(22, 119, 210, 0.12); background: rgba(255, 255, 255, 0.065); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text3); }
.form-select option { background: #0f1f34; }
.form-textarea { min-height: 112px; resize: vertical; }
.form-hint { font-size: 0.76rem; color: var(--text3); }
.form-error { font-size: 0.8rem; color: var(--red); }
.form-grid, .form-grid-3 { display: grid; gap: 16px; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: linear-gradient(180deg, rgba(15, 31, 52, 0.94), rgba(12, 25, 43, 0.94));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}
.card:hover { border-color: rgba(22, 119, 210, 0.26); }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 68px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 17, 31, 0.82);
  backdrop-filter: blur(18px);
}
.navbar-inner { width: min(100%, 1220px); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.navbar-brand { display: flex; align-items: center; gap: 10px; min-width: max-content; }
.navbar-brand-logo { width: auto; height: 34px; }
.navbar-brand-sep { width: 1px; height: 30px; background: var(--border); }
.navbar-logo { display: flex; align-items: baseline; gap: 5px; font-family: var(--ff-head); font-size: 1.12rem; font-weight: 700; color: var(--blue-bright); }
.navbar-logo span { color: var(--text); font-weight: 600; }
.navbar-search {
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}
.navbar-search:focus-within { border-color: rgba(22, 119, 210, 0.55); box-shadow: 0 0 0 4px rgba(22, 119, 210, 0.1); }
.navbar-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); padding: 10px 13px; font-size: 0.87rem; }
.navbar-search input::placeholder { color: var(--text3); }
.navbar-search button { min-width: 44px; align-self: stretch; border: 0; background: var(--blue); color: #fff; cursor: pointer; font-weight: 800; }
.navbar-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.nav-avatar, .seller-avatar-sm, .sidebar-user-avatar {
  background: linear-gradient(135deg, var(--blue-dim), var(--blue-bright));
  color: #fff;
  font-family: var(--ff-head);
  font-weight: 800;
}
.nav-avatar { width: 38px; height: 38px; border-radius: 99px; display: grid; place-items: center; font-size: 0.82rem; cursor: pointer; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 224px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(15, 31, 52, 0.98);
  box-shadow: var(--shadow-lg);
  z-index: 200;
}
.nav-dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); font-size: 0.86rem; color: var(--text2); cursor: pointer; }
.nav-dropdown a:hover { background: rgba(255, 255, 255, 0.055); color: var(--text); }
.nav-dropdown hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }

/* Feedback */
#toast-container { position: fixed; right: 22px; bottom: 22px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { min-width: 270px; padding: 13px 15px; border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: var(--radius); background: rgba(15, 31, 52, 0.96); box-shadow: var(--shadow); color: var(--text); display: flex; align-items: center; gap: 10px; font-size: 0.88rem; animation: toast-in 0.25s ease; }
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
.loader { width: 22px; height: 22px; border: 2px solid rgba(148, 163, 184, 0.22); border-top-color: var(--blue-bright); border-radius: 50%; animation: spin 0.75s linear infinite; }
.loader-lg { width: 38px; height: 38px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-screen { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--text2); }

/* Admin contact panel (floating) */
.admin-contact-panel {
  position: fixed;
  right: 20px;
  top: 86px;
  width: 320px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.04);
  color: var(--white);
  border-radius: 12px;
  padding: 12px 12px;
  box-shadow: 0 14px 40px rgba(2,6,23,0.5);
  backdrop-filter: blur(8px) saturate(120%);
  z-index: 600;
  transform: translateY(0);
  transition: transform 220ms ease, opacity 220ms ease;
}
.admin-contact-panel .admin-contact-inner { display:flex; align-items:center; gap:12px; }
.admin-contact-panel .admin-info { flex:1; }
.admin-contact-panel .admin-name { font-weight:800; font-family:var(--ff-head); color:var(--blue-bright); }
.admin-contact-panel .admin-role { font-size:0.85rem; color:var(--text3); margin-bottom:6px; }
.admin-contact-panel .admin-email, .admin-contact-panel .admin-phone { display:block; color:var(--text); font-weight:600; text-decoration:none; margin-bottom:4px; }
.admin-contact-panel .admin-actions { display:flex; flex-direction:column; gap:8px; }
.admin-contact-panel .admin-panel-close { background:transparent; border:0; color:var(--text3); font-size:18px; cursor:pointer; }

/* Collapsed round button for mobile */
.admin-contact-toggle { position: fixed; right: 18px; bottom: 18px; width:56px; height:56px; border-radius:999px; background: linear-gradient(135deg,var(--wa),#1fa45a); display:grid; place-items:center; box-shadow:0 12px 32px rgba(2,6,23,0.45); border: 2px solid rgba(255,255,255,0.06); z-index:700; }
.admin-contact-toggle svg { filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35)); }

@media (max-width: 640px) {
  .admin-contact-panel { right: 12px; left: auto; top: auto; bottom: 86px; width: 92%; transform: translateY(8px); border-radius: 14px; }
}

/* Homepage */
.hero { position: relative; min-height: 580px; padding: 76px 24px 72px; display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); background-image: linear-gradient(115deg, rgba(7, 26, 53, 0.98) 0%, rgba(9, 47, 92, 0.9) 48%, rgba(22, 119, 210, 0.58) 100%), url('https://library.mnu.ac.ke/wp-content/uploads/2022/08/MNUC-Library-6-scaled.jpg'); background-size: cover; background-position: center; }
/* CODEX FIX: Uses a working MNUC campus hero photo with a gradient fallback. */
.hero-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 82% 30%, rgba(201, 164, 74, 0.18), transparent 23rem), linear-gradient(90deg, rgba(7, 26, 53, 0.9), transparent 74%); }
.hero-grid { position: absolute; inset: 0; opacity: 0.045; background-image: linear-gradient(var(--text) 1px, transparent 1px), linear-gradient(90deg, var(--text) 1px, transparent 1px); background-size: 64px 64px; }
.hero-inner { position: relative; z-index: 1; width: min(100%, 1220px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 48px; align-items: center; }
.hero-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.hero-brand-logo { height: 52px; width: auto; }
.hero-brand-sep { width: 1px; height: 42px; background: var(--border); }
.hero-brand-info { font-size: 0.78rem; color: var(--text2); line-height: 1.5; }
.hero-brand-info strong { display: block; color: var(--text); font-weight: 800; }
.hero-tag { display: inline-flex; align-items: center; margin-bottom: 18px; color: #bfdbfe; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; }
.hero h1 { max-width: 760px; margin-bottom: 18px; font-family: var(--ff-head); font-size: clamp(2.55rem, 6vw, 5.25rem); line-height: 0.98; font-weight: 700; letter-spacing: 0; }
.hero h1 em { color: #dfeeff; font-style: normal; }
.hero-sub { max-width: 570px; margin-bottom: 30px; color: #c5cedd; font-size: 1.03rem; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 38px; }
.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-family: var(--ff-head); color: #e3c46d; font-size: 1.85rem; line-height: 1; }
.hero-stat span { display: block; margin-top: 5px; color: var(--text2); font-size: 0.76rem; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 18% 24%, rgba(212, 150, 10, 0.18), transparent 14rem),
              radial-gradient(circle at 76% 20%, rgba(0, 82, 255, 0.18), transparent 12rem),
              radial-gradient(circle at 50% 78%, rgba(37, 211, 102, 0.10), transparent 18rem);
  mix-blend-mode: screen;
  opacity: 0.86;
  animation: heroFlux 32s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.14), transparent 16rem);
  filter: blur(18px);
}
.hero h1,
.hero-sub,
.hero-tag,
.hero-actions,
.hero-stats {
  opacity: 0;
  animation: fadeUp 0.95s ease-out forwards;
}
.hero-tag { animation-delay: 0.06s; }
.hero h1 { animation-delay: 0.14s; }
.hero-sub { animation-delay: 0.20s; }
.hero-actions { animation-delay: 0.32s; }
.hero-stats { animation-delay: 0.44s; }
.hero-stat { animation: float 8s ease-in-out infinite alternate; }
.btn-primary { animation: pulseGlow 3.8s ease-in-out infinite 1s; }
.btn-primary:hover { animation: none; }
.home-section-header,
.listings-grid,
.products-grid,
.feed-list,
.how-steps-grid,
.visibility-grid,
.affiliate-grid {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.85s ease-out forwards;
}
.home-section-header { animation-delay: 0.28s; }
.listings-grid { animation-delay: 0.34s; }
.products-grid { animation-delay: 0.38s; }
.feed-list { animation-delay: 0.42s; }
.how-steps-grid { animation-delay: 0.46s; }
.visibility-grid { animation-delay: 0.50s; }
.affiliate-grid { animation-delay: 0.54s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}
@keyframes heroFlux {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.86; }
  50% { transform: translate(20px, -8px) scale(1.02); opacity: 0.92; }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 12px 28px rgba(22, 119, 210, 0.18); }
  50% { box-shadow: 0 18px 44px rgba(22, 119, 210, 0.30); transform: translateY(-1px); }
}
.hero-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hero-journey-card, .journey-card, .cat-card, .listing-card, .pricing-card, .stat-card {
  background: linear-gradient(180deg, rgba(19, 40, 66, 0.9), rgba(13, 28, 48, 0.94));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--trans), border-color var(--trans), box-shadow var(--trans), background var(--trans);
}
.hero-journey-card { min-height: 136px; padding: 18px 16px; display: flex; flex-direction: column; justify-content: center; text-align: left; cursor: pointer; }
.hero-journey-card:hover, .journey-card:hover, .cat-card:hover, .listing-card:hover, .pricing-card:hover { transform: translateY(-3px); border-color: rgba(22, 119, 210, 0.34); box-shadow: 0 20px 48px rgba(7, 26, 53, 0.18); }
.hero-journey-card.gold-card { background: linear-gradient(180deg, rgba(22, 119, 210, 0.22), rgba(19, 40, 66, 0.82)); border-color: rgba(22, 119, 210, 0.42); }
.jc-icon, .j-icon, .cat-icon, .empty-icon { font-size: 1.9rem; line-height: 1; }
.jc-title, .j-title { font-family: var(--ff-head); font-weight: 700; color: var(--text); }
.jc-title { font-size: 0.95rem; margin-top: 12px; }
.jc-sub, .j-sub { color: var(--text2); line-height: 1.45; }
.jc-sub { margin-top: 5px; font-size: 0.74rem; }

.campus-banner, .fresher-banner, .cta-strip {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(22, 119, 210, 0.13), rgba(255, 255, 255, 0.7));
}
.campus-banner { display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.campus-banner-logo { height: 38px; }
.campus-banner-text h3 { font-family: var(--ff-head); font-size: 0.96rem; }
.campus-banner-text p { color: var(--text2); font-size: 0.82rem; }
.campus-banner-badge { margin-left: auto; flex-shrink: 0; color: #7cf2d0; border: 1px solid rgba(23, 184, 144, 0.26); border-radius: 99px; padding: 5px 10px; font-size: 0.7rem; font-weight: 800; }
.fresher-banner { position: relative; overflow: hidden; margin: 24px 0; padding: 20px 24px; display: flex; align-items: center; gap: 18px; }
.fresher-icon { font-size: 2.3rem; }
.fresher-text h3 { font-family: var(--ff-head); color: var(--gold-bright); }
.fresher-text p { margin-top: 3px; color: var(--text2); font-size: 0.86rem; }
.section, .section-sm { padding: 48px 0; }
.section-sm { padding-top: 36px; padding-bottom: 36px; }
.section-title { margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-family: var(--ff-head); font-weight: 700; font-size: 1.35rem; }
.section-title a { font-family: var(--ff-body); font-size: 0.84rem; color: var(--blue-bright); font-weight: 800; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 26px 0; }

.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 13px; }
.cat-card { min-height: 132px; padding: 18px 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; cursor: pointer; }
.cat-name { color: var(--text); font-weight: 800; font-size: 0.8rem; line-height: 1.3; }
.cat-count { color: var(--text3); font-size: 0.7rem; }
.marketplace-categories { overflow: hidden; }
.commerce-category-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(218px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.commerce-category-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(10,38,71,0.1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(7,26,53,0.09);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  scroll-snap-align: start;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.commerce-category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(22,119,210,0.28);
  box-shadow: 0 22px 54px rgba(7,26,53,0.14);
}
.commerce-category-imgwrap {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #edf4fb;
}
.commerce-category-imgwrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(7,26,53,0.18));
  pointer-events: none;
}
.commerce-category-imgwrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.98) contrast(1.02);
  transition: transform var(--trans), filter var(--trans);
}
.commerce-category-card:hover img {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.04);
}
.commerce-category-copy {
  display: grid;
  gap: 3px;
  min-height: 76px;
  padding: 13px 14px 15px;
  background: #fff;
}
.commerce-category-kicker {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.commerce-category-copy strong {
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.22;
}
.journey-grid, .how-grid, .pricing-grid, .listings-grid { display: grid; gap: 18px; }
.journey-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.journey-card { min-height: 210px; padding: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 11px; cursor: pointer; }
.j-title { font-size: 1rem; }
.j-sub { font-size: 0.82rem; }
.j-cta { margin-top: auto; color: var(--blue-bright); font-size: 0.8rem; font-weight: 800; }
.how-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.how-card { display: grid; gap: 11px; }
.how-num { width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--radius); background: rgba(22, 119, 210, 0.12); border: 1px solid rgba(22, 119, 210, 0.24); color: var(--blue-bright); font-family: var(--ff-head); font-weight: 800; }
.how-card h3 { font-family: var(--ff-head); font-size: 1rem; }
.how-card p { color: var(--text2); font-size: 0.86rem; }
.cta-strip { padding: 44px 34px; text-align: center; }
.cta-strip h2 { font-family: var(--ff-head); font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 10px; }
.cta-strip p { max-width: 560px; margin: 0 auto 22px; color: var(--text2); }

/* ── Hero Search Bar (Airbnb-style) ── */
.hero-search-bar {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 8px 40px rgba(14,27,61,0.22);
  padding: 6px 6px 6px 20px;
  gap: 0;
  margin-top: 32px;
  max-width: 620px;
  width: 100%;
}
.hero-search-cat {
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--ff-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  padding: 0 12px 0 0;
  cursor: pointer;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
}
.hero-search-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  margin: 0 16px;
  flex-shrink: 0;
}
.hero-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--ff-body);
  font-size: 0.95rem;
  color: var(--text);
  min-width: 0;
}
.hero-search-input::placeholder { color: var(--text3); }

.hero-search-bar .hero-search-cat,
.hero-search-bar .hero-search-input {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.hero-search-bar .hero-search-input:focus,
.hero-search-bar .hero-search-cat:focus {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

.hero-search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-navy, #0E1B3D);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 22px;
  font-family: var(--ff-body);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease;
}
.hero-search-btn:hover { background: #1a2f5a; }
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.hero-sell-link {
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.hero-sell-link:hover { color: #ffffff; }
.hero-cta-sep { color: rgba(255,255,255,0.4); font-size: 0.8rem; }

/* Mobile hero search */
@media (max-width: 600px) {
  .hero-search-bar {
    flex-direction: column;
    border-radius: 16px;
    padding: 12px;
    gap: 8px;
  }
  .hero-search-cat,
  .hero-search-input { width: 100%; padding: 10px 4px; }
  .hero-search-divider { width: 100%; height: 1px; margin: 0; }
  .hero-search-btn { width: 100%; justify-content: center; border-radius: 12px; }
}
/* Listings and marketplace pages */
.listings-grid { grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); }
.listing-card { overflow: hidden; cursor: pointer; }
.listing-img, .listing-img-placeholder { width: 100%; height: 198px; background: var(--card2); }
.listing-img { object-fit: cover; }
.listing-img-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--text3);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  background:
    linear-gradient(135deg, rgba(14, 27, 61, 0.08), rgba(0, 82, 255, 0.08)),
    #f8f9fa;
}
.listing-placeholder-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  opacity: 0.82;
  filter: drop-shadow(0 10px 20px rgba(14, 27, 61, 0.12));
}
.promoted-ribbon { position: absolute; top: 10px; right: 10px; padding: 4px 8px; border-radius: 7px; background: var(--gold); color: #132033; font-size: 0.62rem; font-weight: 900; letter-spacing: 0.05em; }
.save-listing-btn {
  position: absolute;
  left: 10px;
  top: 10px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,0.58);
  border-radius: 999px;
  background: rgba(7,26,53,0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  backdrop-filter: blur(10px);
  cursor: pointer;
  z-index: 2;
}
.save-listing-btn:hover,
.save-listing-btn:focus-visible {
  background: rgba(11,79,156,0.9);
  outline: none;
}
.save-listing-btn.saved {
  border-color: rgba(245,158,11,0.85);
  background: rgba(245,158,11,0.94);
  color: #1f1602;
}
.listing-body { min-height: 178px; padding: 15px; display: flex; flex-direction: column; }
.listing-cat { margin-bottom: 7px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.68rem; font-weight: 800; }
.listing-title { flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--ff-head); color: var(--text); font-weight: 700; font-size: 0.96rem; line-height: 1.32; }
.listing-price { margin-top: 10px; color: var(--blue-dim); font-family: var(--ff-head); font-size: 1.08rem; font-weight: 700; }
.listing-price small { color: var(--text3); font-family: var(--ff-body); font-size: 0.68rem; font-weight: 600; }
.listing-meta { margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.listing-seller { min-width: 0; display: flex; align-items: center; gap: 7px; color: var(--text2); font-size: 0.76rem; }
.seller-avatar-sm { width: 24px; height: 24px; border-radius: 99px; display: grid; place-items: center; font-size: 0.58rem; flex: none; }
.listing-trust-line {
  margin-top: 9px;
  color: var(--text3);
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.35;
}

.browse-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.filter-sidebar { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; }
.filter-title { font-family: var(--ff-head); font-weight: 700; margin-bottom: 16px; }
.filter-group { padding: 16px 0; border-top: 1px solid var(--border); }
.filter-group:first-of-type { border-top: 0; padding-top: 0; }
.filter-label { display: block; margin-bottom: 10px; color: var(--text2); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.68rem; font-weight: 900; }
.filter-check { display: flex; align-items: center; gap: 9px; min-height: 34px; color: var(--text2); font-size: 0.84rem; cursor: pointer; }
.filter-check input { width: 16px; height: 16px; accent-color: var(--blue-bright); }
.filter-check:hover { color: var(--text); }
.browse-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.results-count { margin-top: 4px; color: var(--text3); font-size: 0.82rem; }
.quick-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.quick-filter-chip {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text2);
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
}
.quick-filter-chip.active,
.quick-filter-chip:hover {
  border-color: rgba(11,79,156,0.34);
  background: rgba(11,79,156,0.12);
  color: var(--blue);
}

.pricing-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pricing-card { position: relative; padding: 26px 22px; display: flex; flex-direction: column; }
.pricing-card.featured { border-color: rgba(212, 150, 10, 0.5); background: linear-gradient(180deg, rgba(212, 150, 10, 0.12), rgba(15, 31, 52, 0.96)); }
.pricing-card.featured::before { content: 'POPULAR'; position: absolute; top: -1px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #151000; padding: 4px 14px; border-radius: 0 0 8px 8px; font-size: 0.62rem; font-weight: 900; letter-spacing: 0.06em; }
.pricing-name { color: var(--text2); text-transform: uppercase; letter-spacing: 0.07em; font-size: 0.78rem; font-weight: 800; }
.pricing-price { margin: 10px 0 4px; color: var(--gold-bright); font-family: var(--ff-head); font-size: 2rem; font-weight: 700; line-height: 1; }
.pricing-price small { color: var(--text2); font-family: var(--ff-body); font-size: 0.84rem; font-weight: 600; }
.pricing-desc { margin-bottom: 16px; color: var(--text2); font-size: 0.84rem; }
.pricing-features { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; flex: 1; }
.pricing-features li { display: flex; gap: 8px; color: var(--text2); font-size: 0.84rem; }
.pricing-features li::before { content: '+'; color: var(--green); font-weight: 900; }

/* Auth */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 42px 20px; }
.auth-card { width: min(100%, 460px); padding: 36px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: rgba(15, 31, 52, 0.9); box-shadow: var(--shadow-lg); }
.auth-logo-wrap { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 10px; }
.auth-brand-logo { height: 42px; }
.auth-logo { font-family: var(--ff-head); font-weight: 700; font-size: 1.28rem; color: var(--gold-bright); }
.auth-sub, .auth-switch { text-align: center; color: var(--text2); font-size: 0.88rem; }
.auth-sub { margin-bottom: 26px; }
.auth-switch { margin-top: 20px; }
.auth-switch a { color: var(--gold-bright); font-weight: 800; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text3); font-size: 0.8rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-status { margin-bottom: 14px; padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,0.055); color: var(--text2); font-size: 0.84rem; line-height: 1.45; }
.auth-status.error { border-color: rgba(248,113,113,0.36); background: rgba(248,113,113,0.12); color: #fecaca; }
.auth-status.info { border-color: rgba(22,119,210,0.34); background: rgba(22,119,210,0.12); color: #bfdbfe; }
.auth-status.success { border-color: rgba(0,184,148,0.34); background: rgba(0,184,148,0.12); color: #bbf7d0; }
.btn-google { width: 100%; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255, 255, 255, 0.045); color: var(--text); font-weight: 800; cursor: pointer; }
.btn-google:hover { border-color: rgba(212, 150, 10, 0.42); }
.navbar + .auth-page { min-height: calc(100vh - 86px); }

/* Dashboard */
.dashboard-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: calc(100vh - 68px); }
.sidebar {
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;
  padding: 24px 14px;
  border-right: 1px solid var(--border);
  background: rgba(6, 16, 30, 0.7);
  backdrop-filter: blur(12px);
}
.sidebar-user { margin-bottom: 14px; padding: 8px 8px 20px; border-bottom: 1px solid var(--border); }
.sidebar-user-avatar { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 12px; font-size: 1rem; }
.sidebar-user-name { font-family: var(--ff-head); font-weight: 700; color: var(--text); font-size: 0.98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-role { margin-top: 3px; color: var(--text2); font-size: 0.74rem; }
.sidebar-section-label { padding: 12px 8px 7px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.66rem; font-weight: 900; }
.sidebar-link { min-height: 42px; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--radius); color: var(--text2); font-size: 0.87rem; font-weight: 700; cursor: pointer; transition: background var(--trans), color var(--trans), transform var(--trans); }
.sidebar-link:hover { background: rgba(255, 255, 255, 0.055); color: var(--text); }
.sidebar-link.active { background: rgba(212, 150, 10, 0.13); color: var(--gold-bright); box-shadow: inset 3px 0 0 var(--gold); }
.sidebar-link .si { width: 20px; text-align: center; font-size: 1rem; opacity: 0.9; }
.dashboard-main { min-width: 0; padding: 34px; }
.dashboard-main::before { content: ''; position: fixed; inset: 68px 0 auto 264px; height: 210px; pointer-events: none; background: linear-gradient(180deg, rgba(59, 130, 246, 0.1), transparent); z-index: -1; }
.admin-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-title { font-family: var(--ff-head); font-size: clamp(1.55rem, 3vw, 2.05rem); font-weight: 700; line-height: 1.12; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.24s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat-card { position: relative; overflow: hidden; padding: 19px; }
.stat-card::after { content: ''; position: absolute; width: 86px; height: 86px; top: -34px; right: -24px; border-radius: 999px; background: var(--gold-glow); }
.stat-card .stat-label { color: var(--text2); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.69rem; font-weight: 900; }
.stat-card .stat-val { margin-top: 8px; color: var(--gold-bright); font-family: var(--ff-head); font-size: 2.12rem; font-weight: 700; line-height: 1; }
.stat-card .stat-sub { margin-top: 7px; color: var(--text3); font-size: 0.74rem; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: rgba(15, 31, 52, 0.72); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
thead { background: rgba(255, 255, 255, 0.045); }
th { padding: 13px 16px; text-align: left; color: var(--text2); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.7rem; font-weight: 900; white-space: nowrap; }
td { padding: 14px 16px; border-top: 1px solid var(--border); color: var(--text); font-size: 0.86rem; vertical-align: middle; }
tr:hover td { background: rgba(255, 255, 255, 0.025); }
.td-img { width: 46px; height: 46px; border-radius: var(--radius); object-fit: cover; background: var(--card2); }
.rev-bar {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 5px;
  border: 1px solid rgba(212, 150, 10, 0.26);
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, rgba(212, 150, 10, 0.28), rgba(212, 150, 10, 0.1));
  transition: background var(--trans), transform var(--trans);
}
.rev-bar:hover { background: linear-gradient(180deg, rgba(212, 150, 10, 0.42), rgba(212, 150, 10, 0.16)); transform: translateY(-2px); }
.rev-bar span { color: var(--text2); font-size: 0.6rem; white-space: nowrap; writing-mode: vertical-rl; transform: rotate(180deg); }

/* Post and detail pages */
.post-layout, .listing-page { width: min(calc(100% - 40px), 980px); margin: 0 auto; padding: 36px 0; }
.listing-page { max-width: 1120px; }
.post-steps { display: flex; align-items: center; margin-bottom: 36px; overflow-x: auto; padding-bottom: 4px; }
.post-step { display: flex; align-items: center; gap: 9px; flex: 1; min-width: max-content; color: var(--text2); }
.post-step:not(:last-child)::after { content: ''; flex: 1; min-width: 24px; height: 1px; background: var(--border); margin: 0 10px; }
.step-num { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 99px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.045); font-family: var(--ff-head); font-weight: 700; }
.step-label { font-size: 0.78rem; font-weight: 800; }
.post-step.active .step-num { background: var(--blue); border-color: var(--blue); color: #fff; }
.post-step.active .step-label { color: var(--blue); }
.post-step.done .step-num { background: var(--green); border-color: var(--green); color: #052016; }
.step-panel { display: none; }
.step-panel.active { display: block; animation: fadeUp 0.24s ease; }
.img-upload-zone { border: 1.5px dashed rgba(148, 163, 184, 0.32); border-radius: var(--radius-lg); padding: 36px; text-align: center; color: var(--text2); cursor: pointer; transition: border-color var(--trans), background var(--trans); }
.img-upload-zone:hover, .img-upload-zone.drag { border-color: var(--blue-bright); background: rgba(22, 119, 210, 0.06); }
.img-upload-zone p { margin-top: 10px; }
.img-upload-zone span { color: var(--text3); font-size: 0.8rem; }
.img-preview-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.img-preview { position: relative; overflow: hidden; border-radius: var(--radius); }
.img-preview img { width: 100%; height: 86px; object-fit: cover; }
.img-remove { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border: 0; border-radius: 99px; background: var(--red); color: #240707; cursor: pointer; display: grid; place-items: center; font-weight: 900; }
.listing-page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.main-img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius-xl); background: var(--card2); }
.thumb-row { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.thumb { width: 76px; height: 76px; border: 2px solid transparent; border-radius: var(--radius); object-fit: cover; cursor: pointer; flex: none; }
.thumb:hover, .thumb.active { border-color: var(--blue-bright); }
.listing-gallery .card { margin-top: 18px; }
.listing-desc { color: var(--text2); line-height: 1.75; font-size: 0.95rem; }
.listing-info-card {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(15, 31, 52, 0.96), rgba(10, 23, 41, 0.96));
  box-shadow: var(--shadow);
}
.listing-info-price { color: var(--gold-bright); font-family: var(--ff-head); font-weight: 700; font-size: 2rem; line-height: 1.05; }
.listing-info-title { color: var(--text); font-family: var(--ff-head); font-size: 1.22rem; font-weight: 700; line-height: 1.25; }
.seller-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.04); }
.seller-avatar { width: 46px; height: 46px; display: grid; place-items: center; flex: none; border-radius: 14px; background: linear-gradient(135deg, #ffd166, var(--gold), #ec8f2f); color: #141008; font-family: var(--ff-head); font-weight: 800; }
.seller-info { min-width: 0; }
.seller-info-name { color: var(--text); font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seller-info-sub { color: var(--text3); font-size: 0.78rem; }
.seller-details-card { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(237,244,251,0.9), rgba(255,255,255,0.95));
border-color: rgba(0,82,255,0.12); }
.seller-details-card div { display: grid; gap: 2px; min-width: 0; }
.seller-details-card strong { color: var(--text); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.seller-details-card span { color: var(--text2); font-size: 0.84rem; overflow-wrap: anywhere; }
.trust-note { padding: 10px 12px; border-radius: var(--radius); font-size: 0.82rem; font-weight: 800; }
.trust-good { color: #075f42; background: rgba(14,165,114,0.14); border: 1px solid rgba(14,165,114,0.32); }
.trust-warn { color: #7a4b00; background: rgba(245,158,11,0.14); border: 1px solid rgba(245,158,11,0.34); }
.monetization-card { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: rgba(255,255,255,0.05); }
.verification-banner, .banner-ad-slot { margin-bottom: 20px; padding: 16px 18px; border: 1px solid rgba(245,158,11,0.32); border-radius: var(--radius-lg); background: rgba(245,158,11,0.1); color: var(--text2); }
.banner-ad-slot { display: block; overflow: hidden; padding: 0; background: var(--surface); }
.banner-ad-slot a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; color: inherit; text-decoration: none; }
.banner-ad-slot img { width: 100%; height: 150px; object-fit: cover; }
.banner-ad-copy { padding: 16px; min-width: 210px; }
.banner-ad-copy strong { display: block; color: var(--text); font-family: var(--ff-head); }
.skeleton-card { overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.skeleton-img, .skeleton-line { position: relative; overflow: hidden; background: rgba(148,163,184,0.18); }
.skeleton-img { height: 198px; }
.skeleton-body { padding: 15px; display: grid; gap: 12px; }
.skeleton-line { height: 14px; border-radius: 99px; }
.skeleton-line.short { width: 56%; }
.skeleton-line.price { width: 36%; height: 18px; }
.skeleton-img::after, .skeleton-line::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  animation: skeletonSweep 1.2s infinite;
}
@keyframes skeletonSweep { to { transform: translateX(100%); } }
/* CODEX FIX: Skeleton cards use a shimmer while browse data loads. */

.category-filter-card {
  position: relative;
  overflow: hidden;
  min-height: 54px;
  border-radius: var(--radius);
  isolation: isolate;
}
.category-filter-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--cat-bg);
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  opacity: 0.32;
  transform: scale(1.08);
}
.category-filter-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(7,17,31,0.86), rgba(7,17,31,0.62));
}
.partner-banner-card {
  grid-column: 1 / -1;
  min-height: 128px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(201,164,74,0.28);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(201,164,74,0.12), rgba(22,119,210,0.12));
}
.partner-banner-card img { width: 100%; height: 100%; min-height: 128px; object-fit: cover; order: 2; }
.partner-banner-card div { padding: 18px; }
.partner-banner-card strong { display: block; color: var(--gold-bright); font-family: var(--ff-head); font-size: 1.05rem; }
.partner-banner-card span { color: var(--text2); font-size: 0.86rem; }
.onboarding-card {
  padding: 22px;
  border: 1px solid rgba(22,119,210,0.28);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(22,119,210,0.14), rgba(25,165,111,0.1));
}
.onboarding-card h3 { font-family: var(--ff-head); margin-bottom: 6px; }
.onboarding-card p { color: var(--text2); margin-bottom: 14px; }
/* CODEX FIX: Adds visual category filters, partner banner cards, and seller onboarding styling. */

/* Browse page polish */
/* CODEX FIX: Premium Browse page visual system is scoped to .browse-page. */
.browse-page {
  background:
    linear-gradient(180deg, rgba(247,250,252,0.98) 0%, rgba(255,255,255,0.98) 48%, #f4f8fb 100%),
    var(--mnuc-campus-bg) center top / cover fixed;
}
.browse-page::before {
  background:
    linear-gradient(90deg, rgba(11,79,156,0.045) 0 1px, transparent 1px 84px),
    linear-gradient(0deg, rgba(7,26,53,0.028) 0 1px, transparent 1px 84px),
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0.96));
}
.browse-page-shell {
  width: min(calc(100% - 40px), 1240px);
  margin: 0 auto;
  padding: 32px 0 70px;
}
.browse-hero {
  position: relative;
  min-height: 304px;
  margin-bottom: 28px;
  padding: clamp(26px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 370px);
  align-items: end;
  gap: clamp(22px, 5vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(10,38,71,0.12);
  border-radius: 18px;
  background:
    linear-gradient(105deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.94) 48%, rgba(234,244,255,0.82) 100%),
    var(--student-life-bg) center / cover no-repeat;
  box-shadow: 0 24px 70px rgba(7,26,53,0.13);
  isolation: isolate;
}
.browse-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 6px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--gold));
  z-index: 0;
}
.browse-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.browse-kicker {
  display: inline-flex;
  margin-bottom: 13px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.browse-hero h1 {
  color: var(--navy);
  font-family: var(--ff-head);
  font-size: clamp(2.3rem, 5vw, 4.45rem);
  font-weight: 900;
  line-height: 1;
}
.browse-hero p {
  max-width: 590px;
  margin-top: 14px;
  color: #4c5d73;
  font-size: clamp(0.98rem, 1.5vw, 1.09rem);
  line-height: 1.72;
}
.browse-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.browse-hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(10,38,71,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 18px 44px rgba(7,26,53,0.12);
  backdrop-filter: blur(16px);
}
.browse-hero-panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(10,38,71,0.1);
}
.browse-hero-panel-top span,
.browse-hero-mini span {
  color: var(--text3);
  font-size: 0.76rem;
  font-weight: 800;
}
.browse-hero-panel-top strong,
.browse-hero-mini strong {
  display: block;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 900;
}
.browse-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.browse-hero-chips span {
  padding: 7px 10px;
  border: 1px solid rgba(22,119,210,0.18);
  border-radius: 999px;
  background: rgba(237,244,251,0.9);
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
}
.browse-hero-mini {
  display: grid;
  gap: 8px;
}
.browse-hero-mini div {
  padding: 12px;
  border-radius: 10px;
  background: rgba(245,248,252,0.84);
}
.browse-page .browse-layout {
  grid-template-columns: 282px minmax(0, 1fr);
  gap: 28px;
}
.browse-page .filter-sidebar {
  padding: 20px;
  border-color: rgba(10,38,71,0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 18px 48px rgba(7,26,53,0.1);
}
.browse-filter-head {
  margin-bottom: 16px;
}
.browse-filter-head p {
  margin-top: 5px;
  color: var(--text3);
  font-size: 0.82rem;
  line-height: 1.45;
}
.browse-page .filter-title,
.browse-page #browse-heading {
  color: var(--navy);
}
.browse-page .filter-title {
  margin-bottom: 0;
  font-size: 1.05rem;
  font-weight: 900;
}
.browse-page .filter-group {
  padding: 18px 0;
  border-color: rgba(10,38,71,0.09);
}
.browse-page .filter-label {
  color: #52657a;
}
.browse-page .filter-check {
  margin-bottom: 8px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(245,248,252,0.78);
  color: var(--text);
  font-weight: 800;
  transition: transform var(--trans), border-color var(--trans), background var(--trans), color var(--trans), box-shadow var(--trans);
}
.browse-page .filter-check:hover,
.browse-page .filter-check:has(input:checked) {
  border-color: rgba(22,119,210,0.3);
  background: rgba(22,119,210,0.08);
  color: var(--blue);
  box-shadow: 0 8px 20px rgba(7,26,53,0.06);
  transform: translateY(-1px);
}
.browse-page .filter-check input {
  flex: 0 0 auto;
}
.browse-page .category-filter-card {
  min-height: 58px;
  color: var(--navy);
}
.browse-page .category-filter-card::before {
  filter: saturate(1.05);
  opacity: 0.18;
  transform: scale(1);
}
.browse-page .category-filter-card::after {
  background: linear-gradient(90deg, rgba(255,255,255,0.96), rgba(255,255,255,0.82));
}
.browse-price-row,
.browse-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
}
.browse-price-input {
  min-width: 0;
  padding: 9px 10px;
}
.browse-results {
  min-width: 0;
}
.browse-page .browse-top {
  min-height: 78px;
  margin-bottom: 16px;
  padding: 18px 20px;
  align-items: center;
  border: 1px solid rgba(10,38,71,0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 12px 36px rgba(7,26,53,0.08);
}
.browse-page #browse-heading {
  font-family: var(--ff-head);
  font-size: clamp(1.16rem, 2vw, 1.42rem);
  font-weight: 900;
  line-height: 1.2;
}
.browse-page .results-count {
  color: #718197;
  font-weight: 700;
}
.browse-sort-select {
  width: auto;
  min-width: 174px;
  padding: 9px 34px 9px 12px;
  font-size: 0.85rem;
  font-weight: 800;
}
.browse-page .active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.browse-page .filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgba(22,119,210,0.2);
  border-radius: 999px;
  background: rgba(22,119,210,0.08);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
  transition: background var(--trans), border-color var(--trans), transform var(--trans);
}
.browse-page .filter-tag:hover {
  border-color: rgba(22,119,210,0.34);
  background: rgba(22,119,210,0.13);
  transform: translateY(-1px);
}
.browse-page .listings-grid {
  gap: 20px;
}
.browse-page .listing-card,
.browse-page .skeleton-card,
.browse-page .empty-state {
  border: 1px solid rgba(10,38,71,0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 15px 38px rgba(7,26,53,0.09);
}
.browse-page .listing-card {
  position: relative;
}
.browse-page .listing-card:hover {
  transform: translateY(-4px);
  box-shadow:  0 16px 48px rgba(14,27,61,0.14);
}
.browse-page .listing-img,
.browse-page .listing-img-placeholder {
  height: 210px;
}
.browse-page .listing-body {
  min-height: 188px;
  padding: 16px;
}
.browse-page .listing-cat {
  color: #667890;
  font-size: 0.67rem;
}
.browse-page .listing-title {
  font-size: 1rem;
  font-weight: 900;
}
.browse-page .listing-price {
  color: var(--blue);
  font-size: 1.13rem;
  font-weight: 900;
}
.browse-page .listing-meta {
  border-color: rgba(10,38,71,0.09);
}
.browse-page .seller-avatar-sm {
  box-shadow: 0 7px 16px rgba(22,119,210,0.2);
}
.browse-page .skeleton-card {
  overflow: hidden;
}
.browse-page .skeleton-img {
  height: 210px;
  background: linear-gradient(135deg, rgba(226,235,245,0.82), rgba(245,248,252,0.95));
}
.browse-page .skeleton-line {
  background: rgba(148,163,184,0.2);
}
.browse-page .empty-state {
  grid-column: 1 / -1;
  padding: 58px 22px;
  color: #64748b;
}
.browse-page .empty-state .empty-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(22,119,210,0.18);
  border-radius: 18px;
  background: rgba(22,119,210,0.08);
}
.browse-page .empty-state h3 {
  color: var(--navy);
  font-size: 1.18rem;
  font-weight: 900;
}
.browse-page .partner-banner-card {
  min-height: 142px;
  border-color: rgba(22,119,210,0.16);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(237,244,251,0.92));
  box-shadow: 0 16px 42px rgba(7,26,53,0.08);
}
.browse-page .partner-banner-card strong {
  color: var(--blue);
  font-weight: 900;
}
.browse-page .partner-banner-card img {
  min-height: 142px;
}
.browse-load-more {
  margin-top: 34px;
  text-align: center;
}
.browse-page .mobile-filter-btn {
  display: none;
}
.browse-page .browse-error-card {
  grid-column: 1 / -1;
  min-height: 198px;
  padding: 30px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
  border: 1px solid rgba(194,65,65,0.16);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(254,242,242,0.9)),
    #fff;
  box-shadow: 0 18px 46px rgba(7,26,53,0.08);
}
.browse-page .browse-error-card strong {
  color: var(--navy);
  font-family: var(--ff-head);
  font-size: 1.08rem;
  font-weight: 900;
}
.browse-page .browse-error-card span {
  max-width: 680px;
  color: #a14343;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}
/* CODEX FIX: Adds polished Browse hero, filter, listing, loading, empty, partner, and error states. */

.nav-link { color: var(--text2); font-size: 0.84rem; font-weight: 800; padding: 8px 4px; }
.nav-link:hover { color: var(--blue); }
.back-to-top { position: fixed; right: 18px; bottom: 86px; z-index: 650; width: 56px; height: 56px; display: grid; place-items: center; opacity: 0; pointer-events: none; transform: translateY(10px); border: 1px solid var(--border); border-radius: 99px; padding: 0; background: var(--blue); color: #fff; font-size: 1.35rem; font-weight: 900; box-shadow: var(--shadow); cursor: pointer; transition: opacity var(--trans), transform var(--trans); }
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.channel-session-banner { margin: 0; position: sticky; top: 68px; z-index: 95; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid rgba(37,211,102,0.34); background: rgba(6,16,30,0.96); color: #fff; box-shadow: var(--shadow); transition: transform var(--trans), opacity var(--trans); }
.channel-session-banner.is-hiding { opacity: 0; transform: translateY(-100%); }
.cookie-consent-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; background: rgba(6,16,30,0.98); color: #fff; border-top: 1px solid rgba(255,255,255,0.12); box-shadow: var(--shadow-lg); transition: transform 240ms ease, opacity 240ms ease; }
.cookie-consent-bar.is-hiding { transform: translateY(110%); opacity: 0; }
.cookie-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wa-float { position: fixed; left: 18px; bottom: 86px; z-index: 998; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden; border-radius: 999px; background: var(--wa); color: #052016; box-shadow: var(--shadow-lg); font-weight: 900; transition: width var(--trans), transform var(--trans); }
.wa-float svg { width: 28px; height: 28px; flex: 0 0 auto; }
.wa-float span { width: 0; white-space: nowrap; opacity: 0; transition: opacity var(--trans); }
.wa-float:hover, .wa-float:focus { width: 166px; transform: translateY(-2px); }
.wa-float:hover span, .wa-float:focus span { width: auto; opacity: 1; }
.google-auth-overlay { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 20px; background: rgba(5,17,33,0.82); backdrop-filter: blur(8px); }
.google-auth-card { width: min(100%, 390px); display: grid; justify-items: center; gap: 14px; padding: 30px 22px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: #fff; color: var(--text); text-align: center; box-shadow: var(--shadow-lg); }
.google-auth-card h2 { font-size: 1.2rem; font-weight: 900; }
.google-auth-card p { color: var(--text2); font-size: 0.9rem; }
.channel-join-strip { margin: 24px 0; padding: 20px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; border: 1px solid rgba(37,211,102,0.28); border-radius: var(--radius-lg); background: rgba(37,211,102,0.09); }
.campus-feed, .match-day-section, .campus-board-page { margin-top: 24px; }
.feed-composer { margin-bottom: 16px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.feed-post { padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); display: grid; gap: 8px; }
.feed-avatar { width: 34px; height: 34px; border-radius: 99px; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 900; }
.feed-list { display: grid; gap: 12px; }
.match-row, .event-grid, .deals-grid { display: grid; gap: 16px; }
.match-row { grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); overflow-x: auto; padding-bottom: 8px; }
.match-card, .event-card, .deal-card { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.match-card { padding: 18px; background: linear-gradient(135deg, #08172a, #123a63); color: #fff; }
.event-card.hot, .deal-card.featured { border-color: rgba(245,158,11,0.58); box-shadow: 0 18px 42px rgba(245,158,11,0.16); }
.event-img, .deal-img { width: 100%; height: 170px; object-fit: cover; background: var(--card2); display: grid; place-items: center; font-size: 3rem; }
.event-body, .deal-body { padding: 15px; display: grid; gap: 8px; }
.board-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.board-tab { border: 1px solid var(--border); border-radius: 99px; padding: 8px 12px; background: var(--surface); color: var(--text2); font-weight: 800; cursor: pointer; }
.board-tab.active, .board-tab:hover { border-color: rgba(22,119,210,0.38); color: var(--blue); background: rgba(22,119,210,0.08); }
.event-hero { padding: 34px 22px; border-radius: var(--radius-xl); background: linear-gradient(135deg, rgba(22,119,210,0.96), rgba(245,158,11,0.82)); color: #fff; }
.event-hero h1 { font-family: var(--ff-head); font-size: clamp(1.8rem, 4vw, 3rem); }
.countdown-pill { margin-top: 14px; display: inline-flex; padding: 8px 12px; border-radius: 99px; background: rgba(255,255,255,0.18); font-weight: 900; }
.events-pulse-hero {
  position: relative;
  min-height: 470px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 24px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 4vw, 46px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5,17,33,0.9) 0%, rgba(7,26,53,0.72) 48%, rgba(7,26,53,0.18) 100%),
    var(--mnuc-campus-bg) center / cover no-repeat;
  box-shadow: var(--shadow-lg);
}
.events-pulse-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(5,17,33,0.76));
}
.events-pulse-copy, .events-spotlight { position: relative; z-index: 1; }
.events-pulse-copy { max-width: 680px; align-self: center; }
.event-date-line {
  margin-bottom: 14px;
  color: rgba(255,255,255,0.78);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.events-pulse-copy h1 {
  max-width: 720px;
  font-family: var(--ff-head);
  font-size: clamp(2.3rem, 6vw, 5.1rem);
  line-height: 0.95;
  letter-spacing: 0;
}
.events-pulse-copy p {
  max-width: 600px;
  margin-top: 18px;
  color: rgba(255,255,255,0.86);
  font-size: clamp(1rem, 2vw, 1.18rem);
}
.events-hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.event-hook-strip {
  width: min(100%, 620px);
  margin-top: 22px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.11);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.92);
  font-size: 0.9rem;
  font-weight: 700;
}
.hook-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 99px;
  background: var(--wa);
  box-shadow: 0 0 0 6px rgba(37,211,102,0.16);
}
.events-spotlight {
  align-self: stretch;
  min-height: 360px;
  display: grid;
  align-content: end;
}
.events-spotlight-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(7,26,53,0.05), rgba(7,26,53,0.74)),
    url('https://mnu.ac.ke/wp-content/uploads/2022/02/campus1.jpg') center / cover no-repeat;
  box-shadow: 0 26px 80px rgba(0,0,0,0.26);
}
.todays-move-card {
  position: relative;
  margin: 18px;
  padding: 18px;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-lg);
  background: rgba(6,16,30,0.78);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.24);
}
.mini-label {
  color: var(--gold-bright);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.todays-move-card h2 {
  font-family: var(--ff-head);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.08;
}
.todays-move-card p { color: rgba(255,255,255,0.78); }
.todays-move-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.events-quick-grid {
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.event-quick-card {
  min-height: 136px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.event-quick-card span {
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.event-quick-card strong {
  margin-top: 8px;
  display: block;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.18;
}
.event-quick-card small {
  margin-top: 10px;
  color: var(--text2);
  line-height: 1.35;
}
.event-quick-cta {
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-dim), var(--blue-bright));
}
.event-quick-cta span, .event-quick-cta strong, .event-quick-cta small { color: #fff; }
.events-section-head {
  margin: 26px 0 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.event-img-fallback {
  position: relative;
  isolation: isolate;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7,26,53,0.45), rgba(7,26,53,0.04)),
    var(--mnuc-campus-bg) center / cover no-repeat;
}
.event-img-fallback::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(22,119,210,0.72), rgba(212,150,10,0.54));
  mix-blend-mode: multiply;
}
.event-img-fallback span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
}
.event-card { transition: transform var(--trans), border-color var(--trans), box-shadow var(--trans); }
.event-card:hover { transform: translateY(-3px); border-color: rgba(22,119,210,0.28); }
.event-card.hot::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--amber), var(--gold-bright));
}
.event-social-proof {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
}
.events-post-strip {
  margin: 28px 0;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(22,119,210,0.24);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(22,119,210,0.09), rgba(212,150,10,0.12));
}
.events-post-strip h2 {
  font-family: var(--ff-head);
  font-size: clamp(1.35rem, 3vw, 2rem);
}
.events-post-strip p { color: var(--text2); }
.legal-page, .not-found-page { padding: 42px 0 70px; }
.legal-page h1, .not-found-page h1 { margin-bottom: 22px; color: var(--text); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; }
.legal-page .card { margin-bottom: 14px; }
.legal-page h2 { margin-bottom: 8px; color: var(--blue); font-size: 1.05rem; font-weight: 900; }
.legal-page a { color: var(--blue); font-weight: 800; }
.not-found-page { min-height: 62vh; display: grid; place-content: center; justify-items: center; text-align: center; }
.not-found-code { color: var(--blue-bright); font-size: clamp(5rem, 20vw, 10rem); font-weight: 900; line-height: 0.9; }
.not-found-page p { max-width: 520px; margin-bottom: 18px; color: var(--text2); }
.affiliate-section { padding: 22px; border: 1px solid rgba(22,119,210,0.18); border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(22,119,210,0.07), rgba(0,184,148,0.08)); }
.affiliate-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.affiliate-card { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.affiliate-card h3 { margin-bottom: 5px; font-weight: 900; }
.affiliate-card p { margin-bottom: 12px; color: var(--text2); }
.affiliate-note { margin-top: 12px; color: var(--text3); font-size: 0.78rem; }
.reviews-wrap { margin-top: 32px; }
.review-card { padding: 12px 0; border-top: 1px solid var(--border); }
.star-button { border: 0; background: transparent; color: var(--gold); font-size: 1.45rem; cursor: pointer; }

/* Modal, footer, empty states */
.modal-overlay { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(5px); }
.modal { width: min(100%, 500px); max-height: 90vh; overflow-y: auto; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: rgba(15, 31, 52, 0.98); box-shadow: var(--shadow-lg); animation: fadeUp 0.24s ease; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-title { font-family: var(--ff-head); font-weight: 700; font-size: 1.12rem; }
.modal-close { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 99px; background: rgba(255, 255, 255, 0.045); color: var(--text2); cursor: pointer; }
.modal-close:hover { color: #fecaca; border-color: rgba(248, 113, 113, 0.42); }
.footer { margin-top: 64px; padding: 46px 24px 28px; border-top: 1px solid var(--border); background: rgba(6, 16, 30, 0.72); }
.footer-inner { width: min(100%, 1220px); margin: 0 auto; display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 34px; }
.footer-brand-logo { height: 36px; margin-bottom: 12px; }
.footer-brand-name { margin-bottom: 8px; color: var(--gold-bright); font-family: var(--ff-head); font-weight: 700; font-size: 1.16rem; }
.footer-brand-desc { max-width: 300px; color: var(--text2); font-size: 0.82rem; line-height: 1.75; }
.footer-col h4 { margin-bottom: 13px; font-family: var(--ff-head); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col a { display: block; padding: 4px 0; color: var(--text2); font-size: 0.82rem; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom { width: min(100%, 1220px); margin: 28px auto 0; padding-top: 18px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { color: var(--text3); font-size: 0.76rem; }
.footer-credit { width: min(100%, 1220px); margin: 12px auto 0; color: rgba(255,255,255,0.72); font-size: 0.78rem; text-align: right; }
.footer-credit a { color: #dcecff; font-weight: 700; }
.empty-state { padding: 56px 20px; text-align: center; color: var(--text2); }
.empty-icon { margin-bottom: 14px; }
.empty-state h3 { margin-bottom: 7px; color: var(--text); font-family: var(--ff-head); font-weight: 700; }
.empty-state p { font-size: 0.9rem; }

.payment-modal { max-width: 560px; }
.payment-modal-sub { margin-top: 4px; color: var(--text2); font-size: 0.86rem; }
.payment-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.payment-method { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,0.72); color: var(--text2); font-weight: 800; cursor: pointer; transition: border-color var(--trans), background var(--trans), color var(--trans), transform var(--trans); }
.payment-method input { accent-color: var(--blue); }
.payment-method.active, .payment-method:hover { border-color: rgba(22,119,210,0.38); background: rgba(22,119,210,0.1); color: var(--blue); }
.payment-panel { margin-bottom: 16px; }
.payment-summary { margin: 18px 0; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(237,244,251,0.8); color: var(--text2); }
.payment-summary strong { color: var(--blue); font-family: var(--ff-head); font-size: 1.3rem; }

/* JBEE Store */
.shop-page-shell, .admin-shop-shell {
  width: min(calc(100% - 40px), 1220px);
  margin: 0 auto;
  padding: 34px 0 64px;
}
.shop-hero {
  display: grid;
  gap: 14px;
  padding: 30px;
  border: 1px solid rgba(10,38,71,0.12);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(237,244,251,0.82));
  box-shadow: var(--shadow);
}
.shop-hero h1 { font-family: var(--ff-head); font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; }
.shop-subtitle { max-width: 760px; color: var(--text2); font-size: 1rem; }
.shop-trust-line { display: flex; flex-wrap: wrap; gap: 12px; color: var(--text2); font-size: 0.88rem; font-weight: 800; }
.delivery-badge {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(25,165,111,0.24);
  border-radius: 999px;
  background: rgba(25,165,111,0.1);
  color: #0b7f68;
  font-weight: 900;
}
.shop-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.shop-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.shop-tabs::-webkit-scrollbar { display: none; }
.shop-tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text2);
  font-weight: 900;
  cursor: pointer;
}
.shop-tab.active, .shop-tab:hover {
  border-color: rgba(22,119,210,0.34);
  background: rgba(22,119,210,0.1);
  color: var(--blue);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.product-card {
  overflow: hidden;
  border: 1px solid rgba(10,38,71,0.1);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 14px 36px rgba(7,26,53,0.09);
}
.product-media {
  position: relative;
  width: 100%;
  display: block;
  border: 0;
  background: var(--card2);
  cursor: pointer;
}
.product-media img, .product-image-missing {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.product-image-missing {
  display: grid;
  place-items: center;
  color: var(--color-text-muted);
  font-weight: 800;
  background:
    linear-gradient(135deg, rgba(14, 27, 61, 0.08), rgba(0, 82, 255, 0.08)),
    #f8f9fa;
}
.product-card-body { display: grid; gap: 8px; padding: 13px; }
.product-title-btn {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 900;
  cursor: pointer;
}
.product-price { color: var(--blue); font-family: var(--ff-head); font-size: 18px; font-weight: 900; }
.product-stock { font-size: 0.78rem; font-weight: 900; }
.product-stock-low { color: #c24141; }
.product-stock-out { color: var(--text3); }
.product-stock-ok { color: #0b7f68; }
.product-order-btn { width: 100%; min-height: 44px; margin-top: 4px; }
.product-order-btn:disabled { opacity: 0.72; cursor: not-allowed; }
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(7,26,53,0.2);
}
.product-badge-fresher { background: var(--green); }
.product-badge-hot { background: #dc2626; }
.product-badge-new { background: var(--blue); }
.product-badge-limited { background: #d97706; }
.product-soldout-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15,23,42,0.62);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.05em;
}
.shop-empty { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.product-skeleton {
  min-height: 300px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(226,235,245,0.7), rgba(255,255,255,0.95), rgba(226,235,245,0.7));
  background-size: 220% 100%;
  animation: pulse-shop 1.2s ease-in-out infinite;
}
@keyframes pulse-shop { to { background-position: -220% 0; } }
.product-modal { max-width: 900px; }
.product-modal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; }
.product-main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--card2);
}
.product-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.product-thumb {
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}
.product-thumb.active { border-color: var(--blue); }
.product-thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.product-modal-copy { display: flex; flex-direction: column; gap: 12px; }
.product-modal-copy h2 { font-family: var(--ff-head); font-size: 1.55rem; line-height: 1.2; }
.product-modal-desc, .product-modal-delivery { color: var(--text2); font-size: 0.92rem; }
.product-modal-actions { display: grid; gap: 10px; margin-top: auto; }
.store-preview-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.store-preview-head p { color: var(--text2); font-size: 0.92rem; margin-top: 4px; }
.trust-habit-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(25,165,111,0.2);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(25,165,111,0.1), rgba(11,79,156,0.08));
}
.trust-habit-strip div {
  display: grid;
  gap: 4px;
}
.trust-habit-strip strong {
  color: var(--text);
  font-family: var(--ff-head);
  font-size: 1.05rem;
}
.trust-habit-strip span {
  color: var(--text2);
  font-size: 0.88rem;
  line-height: 1.45;
}
.shop-category-showcase { margin: 22px 0 28px; }
.shop-category-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.shop-category-tile {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  text-align: left;
}
.shop-category-tile:hover,
.shop-category-tile:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(11,79,156,0.26);
  outline: none;
}
.shop-category-mosaic {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 5px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card2);
}
.shop-category-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shop-category-mosaic img:first-child {
  grid-row: 1 / span 2;
}
.shop-category-copyline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.shop-category-copyline strong {
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 900;
}
.shop-category-copyline small {
  color: var(--text2);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}
.admin-shop-grid { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 22px; align-items: start; }
.admin-shop-form { display: grid; gap: 14px; }
.admin-price-preview {
  padding: 10px 12px;
  border: 1px solid rgba(25,165,111,0.18);
  border-radius: var(--radius);
  background: rgba(25,165,111,0.08);
  color: #0b7f68;
  font-weight: 900;
}
.product-image-inputs { display: grid; gap: 10px; }
.product-image-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 10px;
  align-items: center;
}
.product-preview-thumb {
  width: 64px;
  height: 64px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card2);
  object-fit: cover;
}
.upload-progress { color: var(--text2); font-size: 0.78rem; }
.product-preset-bank {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(7,26,53,0.08);
  border-radius: var(--radius);
  background: rgba(248,250,252,0.82);
}
.preset-bank-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.preset-bank-head strong {
  display: block;
  color: var(--text);
  font-size: 0.92rem;
}
.preset-bank-head p {
  margin-top: 3px;
  color: var(--text2);
  font-size: 0.78rem;
  line-height: 1.35;
}
.preset-image-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.preset-image-card {
  position: relative;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
}
.preset-image-card:hover,
.preset-image-card:focus-visible {
  border-color: var(--blue);
  outline: none;
}
.preset-image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.preset-image-card span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(7,26,53,0.72);
  color: #fff;
  font-size: 0.67rem;
  font-weight: 900;
}
.admin-shop-stats { grid-template-columns: repeat(6, minmax(130px, 1fr)); }
.admin-shop-actions { display: flex; gap: 6px; flex-wrap: wrap; }

@media (max-width: 1060px) {
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-category-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-shop-grid { grid-template-columns: 1fr; }
  .admin-shop-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .shop-page-shell, .admin-shop-shell { width: min(calc(100% - 28px), 1220px); padding-top: 22px; }
  .shop-hero { padding: 22px 16px; }
  .shop-controls { align-items: stretch; flex-direction: column; }
  .shop-controls .form-select { width: 100%; min-height: 48px; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .quick-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .quick-filter-row::-webkit-scrollbar { display: none; }
  .quick-filter-chip { flex: 0 0 auto; min-height: 42px; }
  .trust-habit-strip {
    align-items: stretch;
    flex-direction: column;
  }
  .trust-habit-strip .btn { width: 100%; }
  .save-listing-btn {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.76rem;
  }
  .shop-category-showcase { margin: 18px 0 22px; }
  .shop-category-gallery {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .shop-category-gallery::-webkit-scrollbar { display: none; }
  .shop-category-tile {
    flex: 0 0 82vw;
    max-width: 340px;
  }
  .shop-category-mosaic { aspect-ratio: 4 / 3; }
  .product-card-body { padding: 10px; }
  .product-title-btn { font-size: 15px; }
  .product-order-btn { min-height: 44px; font-size: 0.82rem; }
  .product-modal { width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .product-modal-grid { grid-template-columns: 1fr; }
  .product-modal-copy h2 { font-size: 1.35rem; }
  .admin-shop-stats { grid-template-columns: 1fr; }
  .product-image-row { grid-template-columns: 1fr 58px; }
  .product-preview-thumb { width: 58px; height: 58px; }
  .preset-bank-head { flex-direction: column; align-items: stretch; }
  .preset-bank-head .btn { width: 100%; min-height: 44px; }
  .preset-image-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .preset-image-grid::-webkit-scrollbar { display: none; }
  .preset-image-card {
    flex: 0 0 86px;
    min-height: 86px;
  }
}

/* MNUC official-site replica layer */
body {
  background:
    linear-gradient(180deg, rgba(245,248,252,0.93), rgba(255,255,255,0.97) 42%, rgba(245,248,252,0.96)),
    var(--student-life-bg) center top / cover fixed;
  color: var(--text);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11,79,156,0.06) 0 1px, transparent 1px 82px),
    linear-gradient(0deg, rgba(7,26,53,0.035) 0 1px, transparent 1px 82px);
  opacity: 0.5;
  z-index: -2;
}

.ui-icon {
  width: 1.18em;
  height: 1.18em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.ui-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cat-icon .ui-icon, .jc-icon .ui-icon, .j-icon .ui-icon, .listing-img-placeholder .ui-icon {
  width: 34px;
  height: 34px;
  color: var(--blue-bright);
}

.navbar {
  height: 86px;
  padding: 0 28px;
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid rgba(10,38,71,0.1);
  box-shadow: 0 12px 34px rgba(7,26,53,0.08);
  backdrop-filter: blur(18px);
}
.navbar::before {
  content: '0716356483  |  Need Help? Raise a Ticket  |  Contact Us';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--navy), var(--blue));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  z-index: -1;
}
.navbar-inner {
  padding-top: 16px;
  width: min(100%, 1280px);
}
.navbar-brand-logo { width: min(250px, 38vw); height: 54px; object-fit: contain; }
.navbar-brand-sep { height: 42px; background: rgba(10,38,71,0.14); }
.navbar-logo { color: var(--blue); font-family: var(--ff-body); font-size: 1rem; font-weight: 900; text-transform: uppercase; }
.navbar-logo span { color: var(--text); text-transform: none; }
.navbar-search {
  max-width: 430px;
  background: rgba(245,248,252,0.9);
  border-color: rgba(10,38,71,0.12);
  border-radius: 8px;
}
.navbar-search input { color: var(--text); }
.navbar-search input::placeholder { color: #9aa2aa; }
.navbar-search button { background: var(--blue); color: #fff; }
.nav-avatar { border-radius: 8px; color: #fff; background: linear-gradient(135deg, var(--blue-dim), var(--blue-bright)); }
.nav-dropdown, .card, .auth-card, .modal, .filter-sidebar, .listing-info-card {
  background: rgba(255,255,255,0.9);
  border-color: rgba(10,38,71,0.11);
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.nav-dropdown a, .btn-ghost, .btn-secondary { color: var(--text2); }

.btn {
  border-radius: 8px;
  letter-spacing: 0;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  color: #fff;
  box-shadow: 0 12px 28px rgba(22,119,210,0.24);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-dim), #1d8af0);
  color: #fff;
  box-shadow: 0 18px 38px rgba(22,119,210,0.3);
}
.btn-secondary, .btn-ghost {
  background: rgba(255,255,255,0.82);
  border-color: rgba(10,38,71,0.12);
}
.btn-secondary:hover, .btn-ghost:hover {
  background: rgba(237,244,251,0.94);
  border-color: rgba(22,119,210,0.34);
  color: var(--blue);
}
.btn-danger { color: #c24141; background: rgba(194,65,65,0.08); border-color: rgba(194,65,65,0.18); }

.hero {
  min-height: 640px;
  padding-top: 106px;
  border-bottom: 0;
  background: var(--navy);
}
.hero-bg {
  background:
    linear-gradient(90deg, rgba(7,26,53,0.94) 0%, rgba(8,42,84,0.78) 48%, rgba(8,42,84,0.3) 100%),
    var(--mnuc-campus-bg) center / cover no-repeat;
}
.hero-bg::after {
  background:
    linear-gradient(180deg, rgba(6,18,37,0.18), rgba(11,79,156,0.18)),
    radial-gradient(circle at 82% 20%, rgba(227,196,109,0.18), transparent 16rem);
  mix-blend-mode: normal;
}
.hero-grid { display: none; }
.hero-inner { width: min(100%, 1280px); grid-template-columns: minmax(0, 1fr) 430px; }
.hero-brand-logo {
  height: 61px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.22));
}
.hero-brand-sep { background: rgba(255,255,255,0.38); }
.hero-brand-info, .hero-sub { color: rgba(255,255,255,0.86); }
.hero-brand-info strong, .hero h1 { color: #fff; }
.hero-tag {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-tag::before {
  content: '';
  width: 38px;
  height: 3px;
  background: var(--blue-bright);
  margin-right: 10px;
}
.hero h1 {
  max-width: 780px;
  font-family: var(--ff-head);
  font-size: clamp(2.55rem, 5.7vw, 5.35rem);
  line-height: 1.08;
  text-shadow: 0 18px 40px rgba(0,0,0,0.22);
}
.hero h1.hero-headline { font-family: 'Playfair Display', serif; }
.hero h1 em { color: #dcecff; }
.hero-stat strong { color: var(--gold-bright); }
.hero-stat span { color: rgba(255,255,255,0.82); }
.hero-journey-card, .journey-card, .cat-card, .listing-card, .pricing-card, .stat-card {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(10,38,71,0.11);
  border-radius: 8px;
  color: var(--text);
  box-shadow: 0 16px 40px rgba(7,26,53,0.1);
  backdrop-filter: blur(16px);
}
.hero-journey-card {
  background: rgba(255,255,255,0.88);
  min-height: 132px;
  box-shadow: 0 18px 45px rgba(7,26,53,0.2);
}
.hero-journey-card.gold-card {
  background: linear-gradient(135deg, rgba(11,79,156,0.96), rgba(22,119,210,0.9));
  border-color: rgba(255,255,255,0.34);
  color: #fff;
}
.hero-journey-card.gold-card .jc-title,
.hero-journey-card.gold-card .jc-sub,
.hero-journey-card.gold-card .ui-icon { color: #fff; }
.hero-journey-card:hover, .journey-card:hover, .cat-card:hover, .listing-card:hover, .pricing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(22,119,210,0.36);
  box-shadow: 0 22px 58px rgba(7,26,53,0.18);
}
.jc-title, .j-title, .cat-name, .listing-title, .section-title, .admin-title {
  color: var(--text);
}
.jc-sub, .j-sub, .how-card p, .pricing-desc, .listing-cat, .listing-seller, .text-muted {
  color: var(--text2);
}

.campus-banner, .fresher-banner, .cta-strip {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(237,244,251,0.74));
  border: 1px solid rgba(10,38,71,0.11);
  border-left: 4px solid var(--blue-bright);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.campus-banner-text h3 { color: var(--text); }
.campus-banner-badge {
  color: #0b5fb1;
  background: rgba(22,119,210,0.09);
  border-color: rgba(22,119,210,0.24);
}
.section, .section-sm { position: relative; }
.section-title {
  font-family: var(--ff-head);
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(10,38,71,0.12);
  margin-left: 18px;
}
.section-title a { color: var(--blue); }
.divider { border-top-color: rgba(10,38,71,0.1); }
.journey-card, .cat-card { overflow: hidden; }
.journey-card::before, .cat-card::before, .stat-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--blue-bright);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--trans);
}
.journey-card, .cat-card, .stat-card { position: relative; }
.journey-card:hover::before, .cat-card:hover::before, .stat-card:hover::before { transform: scaleY(1); }
.j-cta { color: var(--blue); }
.how-num {
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  color: #fff;
  border-color: var(--blue-bright);
  border-radius: 8px;
}
.pricing-card.featured {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(237,244,251,0.8));
  border-color: rgba(22,119,210,0.36);
}
.pricing-card.featured::before,
.promoted-ribbon {
  background: var(--gold);
  color: #172033;
  border-radius: 0 0 8px 8px;
}
.pricing-price, .listing-price, .listing-info-price, .stat-card .stat-val {
  color: var(--blue);
}
.listing-card { overflow: hidden; }
.listing-img, .listing-img-placeholder { background: var(--card2); }
.listing-img-placeholder {
  color: var(--blue-bright);
  background:
    linear-gradient(135deg, rgba(11,79,156,0.11), rgba(255,255,255,0.7)),
    #fff;
}
.listing-meta, td, .footer-bottom, .sidebar-user, .filter-group { border-color: rgba(10,38,71,0.1); }
.form-input, .form-select, .form-textarea {
  background: #fff;
  border-color: rgba(10,38,71,0.14);
  color: var(--text);
  border-radius: 8px;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--blue-bright);
  background: #fff;
}
.form-select option { background: #fff; color: var(--text); }
.badge { border-radius: 999px; }
.badge-gold, .badge-amber { background: rgba(201,164,74,0.12); color: #8b6817; border-color: rgba(201,164,74,0.26); }
.badge-blue, .badge-navy { background: rgba(22,119,210,0.1); color: #0b5fb1; border-color: rgba(22,119,210,0.22); }
.badge-green { background: rgba(25,165,111,0.1); color: #0b7f68; border-color: rgba(25,165,111,0.24); }
.badge-red { background: rgba(194,65,65,0.1); color: #b93838; border-color: rgba(194,65,65,0.24); }
.badge-purple { background: rgba(51,60,78,0.08); color: var(--navy); border-color: rgba(51,60,78,0.18); }

.dashboard-layout { background: rgba(245,248,252,0.9); }
.sidebar {
  background: var(--navy);
  border-color: rgba(255,255,255,0.12);
}
.sidebar-link { color: rgba(255,255,255,0.72); border-radius: 8px; }
.sidebar-link:hover { background: rgba(255,255,255,0.09); color: #fff; }
.sidebar-link.active {
  color: #fff;
  background: rgba(22,119,210,0.9);
  box-shadow: inset 3px 0 0 #fff;
}
.sidebar-user-name { color: #fff; }
.sidebar-user-role, .sidebar-section-label { color: rgba(255,255,255,0.62); }
.dashboard-main::before {
  background: linear-gradient(180deg, rgba(22,119,210,0.09), transparent);
}
.table-wrap, thead {
  background: #fff;
  border-color: rgba(10,38,71,0.1);
}
thead { background: #edf4fb; }
.td-img { background: var(--card2); }
.rev-bar { border-color: rgba(22,119,210,0.25); background: linear-gradient(180deg, rgba(22,119,210,0.55), rgba(22,119,210,0.14)); }

.auth-page {
  background:
    linear-gradient(90deg, rgba(7,26,53,0.78), rgba(7,26,53,0.34)),
    var(--mnuc-campus-bg) center / cover no-repeat;
}
.footer {
  background:
    linear-gradient(90deg, rgba(7,26,53,0.96), rgba(11,79,156,0.86)),
    var(--mnuc-campus-bg) center / cover;
  border-top: 5px solid var(--blue-bright);
}
.footer, .footer h4, .footer .footer-brand-name { color: #fff; }
.footer a, .footer-brand-desc, .footer-bottom p { color: rgba(255,255,255,0.75); }
.footer a:hover { color: #dcecff; }

/* Premium blue marketplace polish */
.hero-brand,
.hero-tag,
.hero-actions,
.hero-stats {
  animation: fadeUp 0.55s ease both;
}
.hero h1 { animation: fadeUp 0.65s ease 0.04s both; }
.hero-sub { animation: fadeUp 0.65s ease 0.08s both; }

.hero-journey-card,
.journey-card,
.cat-card,
.listing-card,
.pricing-card,
.campus-banner,
.fresher-banner,
.cta-strip {
  position: relative;
}

.journey-card::after,
.cat-card::after,
.listing-card::after,
.pricing-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.42), transparent 42%);
  opacity: 0;
  transition: opacity var(--trans);
}

.journey-card:hover::after,
.cat-card:hover::after,
.listing-card:hover::after,
.pricing-card:hover::after {
  opacity: 1;
}

.jc-icon,
.j-icon,
.cat-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(22,119,210,0.1);
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(22,119,210,0.14);
}

.hero-journey-card.gold-card .jc-icon {
  background: rgba(255,255,255,0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
}

.cat-card:hover .cat-icon,
.journey-card:hover .j-icon,
.hero-journey-card:hover .jc-icon {
  transform: translateY(-2px) scale(1.04);
}

.jc-icon,
.j-icon,
.cat-icon,
.listing-img {
  transition: transform var(--trans), filter var(--trans);
}

.listing-card > div:first-child {
  overflow: hidden;
}

.listing-card:hover .listing-img {
  transform: scale(1.035);
  filter: saturate(1.04);
}

.listing-cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.listing-cat .ui-icon {
  width: 16px;
  height: 16px;
  color: var(--blue-bright);
}

.btn:active,
.cat-card:active,
.journey-card:active,
.listing-card:active {
  transform: translateY(-1px) scale(0.995);
}

@keyframes mnucFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-journey-card:nth-child(2n),
.hero-journey-card:nth-child(2n + 1) { animation: none; }

@media (max-width: 1060px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .browse-page .browse-hero { grid-template-columns: 1fr; }
  .browse-page .browse-hero-panel { max-width: 560px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar {
    display: flex;
    position: sticky;
    top: 64px;
    z-index: 80;
    height: auto;
    max-height: none;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .sidebar-user, .sidebar-section-label { display: none; }
  .sidebar-link { min-width: max-content; padding: 9px 12px; }
  .sidebar-link.active { box-shadow: inset 0 -2px 0 var(--gold); }
  .dashboard-main { padding: 24px 20px; }
  .dashboard-main::before { left: 0; }
  .browse-page .browse-layout, .listing-page-grid { grid-template-columns: 1fr; }
  .browse-page-shell { width: min(calc(100% - 28px), 1220px); padding-top: 18px; }
  .browse-page .browse-hero { min-height: 0; padding: 24px; align-items: flex-start; }
  .browse-page .browse-top { align-items: flex-start; }
  .browse-page .filter-sidebar { position: static; }
  .browse-page .mobile-filter-btn { display: inline-flex; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .events-pulse-hero { grid-template-columns: 1fr; min-height: 0; }
  .events-spotlight { min-height: 330px; }
  .events-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  body { width: 100%; overflow-x: hidden; }
  .container, .container-sm, .post-layout, .listing-page { width: min(calc(100% - 28px), 1220px); }
  .navbar::before {
    content: '0716356483  |  Need Help?';
    justify-content: flex-start;
    padding-left: 14px;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
  }
  .navbar { height: auto; min-height: 64px; padding: 10px 14px; }
  .navbar-inner { gap: 10px; min-width: 0; }
  .navbar-brand { min-width: 0; overflow: hidden; }
  .navbar-logo { font-size: 1rem; white-space: nowrap; }
  .navbar-actions { min-width: 0; }
  .navbar-actions .btn { min-height: 36px; padding: 7px 10px; font-size: 0.74rem; }
  .navbar-search { display: none; }
  .navbar-brand-logo, .navbar-brand-sep { display: none; }
  .navbar-actions .btn-secondary { display: none; }
  .hero { min-height: 0; padding: 54px 18px 48px; }
  .events-pulse-hero { padding: 24px 18px; }
  .events-pulse-copy h1 { font-size: 2.7rem; }
  .events-hero-actions .btn { width: 100%; }
  .events-spotlight { min-height: 300px; }
  .todays-move-card { margin: 12px; }
  .events-section-head { align-items: start; }
  .events-post-strip { flex-direction: column; align-items: stretch; }
  .browse-page .browse-hero h1 { font-size: 2.15rem; line-height: 1.05; }
  .browse-page .browse-hero p { font-size: 0.92rem; }
  .browse-page .browse-hero-actions .btn,
  .browse-page .browse-toolbar,
  .browse-page .browse-sort-select { width: 100%; }
  .browse-page .browse-toolbar { align-items: stretch; flex-direction: column; }
  .browse-page .browse-hero-panel { width: 100%; padding: 14px; }
  .browse-page .browse-top { padding: 14px; }
  .browse-page .filter-sidebar { padding: 15px; }
  .browse-page .listing-img, .browse-page .listing-img-placeholder, .browse-page .skeleton-img { height: 156px; }
  .browse-page .listing-body { min-height: 170px; padding: 13px; }
  .browse-page .partner-banner-card { grid-template-columns: 1fr; }
  .browse-page .partner-banner-card img { order: 0; height: 150px; min-height: 150px; }
  .hero-inner, .hero-content { width: 100%; min-width: 0; }
  .hero h1 { font-size: 2.55rem; }
  .hero-sub { max-width: 100%; overflow-wrap: anywhere; }
  .hero-brand { align-items: flex-start; }
  .hero-brand-logo { max-width: min(100%, 260px); height: auto; }
  .hero-brand-sep, .hero-brand-info { display: none; }
  .hero-cards { display: none; }
  .hero-stats { gap: 22px; }
  .campus-banner { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; overflow: hidden; }
  .fresher-banner { flex-wrap: wrap; }
  .campus-banner-logo { max-width: min(100%, 230px); height: auto; }
  .campus-banner-text { min-width: 0; width: 100%; }
  .campus-banner-text h3, .campus-banner-text p { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
  .campus-banner-badge, .fresher-banner .btn { margin-left: 0 !important; justify-self: start; }
  .journey-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .categories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .commerce-category-row { grid-auto-columns: minmax(180px, 64vw); gap: 12px; }
  .commerce-category-copy { min-height: 70px; padding: 12px; }
  .listings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .affiliate-grid { grid-template-columns: 1fr; }
  .listing-img, .listing-img-placeholder { height: 150px; }
  .listing-body { min-height: 168px; padding: 12px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-card .stat-val { font-size: 1.8rem; }
  .admin-header { align-items: stretch; }
  .admin-header .btn { width: 100%; }
  .img-preview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 440px) {
  .journey-grid, .listings-grid { grid-template-columns: 1fr; }
  .events-quick-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commerce-category-row { grid-auto-columns: minmax(178px, 78vw); }
  .form-grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .cta-strip { padding: 34px 20px; }
}

@media (max-width: 380px) {
  .listings-grid, .cards-grid { grid-template-columns: 1fr !important; }
  .nav-brand, .navbar-logo { font-size: 1rem; }
  .nav-links a, .nav-link { font-size: 0.8rem; padding: 0.4rem 0.6rem; }
  .hero h1, .hero-headline { font-size: 1.8rem; line-height: 1.2; }
  .hero .btn { width: 100%; text-align: center; margin-bottom: 0.5rem; }
  .pricing-grid { grid-template-columns: 1fr !important; }
  .category-grid, .categories-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .wa-float, .back-to-top { width: 52px; height: 52px; bottom: 74px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.mobile-menu-toggle,
.mobile-nav-overlay {
  display: none;
}

@media (max-width: 767px) {
  * { -webkit-tap-highlight-color: transparent; }
  body { font-size: 14px; }
  img { max-width: 100%; height: auto; }
  input, textarea, select { font-size: 16px !important; }

  .btn {
    white-space: normal;
    text-align: center;
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  .container,
  .container-sm,
  .browse-page-shell,
  .post-layout,
  .listing-page {
    width: min(calc(100% - 28px), 1220px);
  }

  .navbar {
    min-height: 64px;
    height: 64px;
    padding: 0 14px;
  }

  .navbar::before {
    display: none;
  }

  .navbar-inner {
    padding-top: 0;
    gap: 10px;
  }

  .navbar-brand {
    flex: 1;
    min-width: 0;
  }

  .navbar-brand-logo {
    display: block;
    width: auto;
    height: 34px;
    max-width: 42px;
  }

  .navbar-brand-sep {
    display: block;
    height: 28px;
  }

  .navbar-logo {
    min-width: 0;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .navbar-search,
  .navbar-actions {
    display: none !important;
  }

  .mobile-menu-toggle {
    width: 44px;
    height: 44px;
    margin-left: auto;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(10,38,71,0.14);
    border-radius: 8px;
    background: rgba(255,255,255,0.92);
    color: var(--text);
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: block;
    visibility: hidden;
    pointer-events: none;
    background: rgba(7,26,53,0.42);
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .mobile-nav-overlay.open {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
  }

  .mobile-nav-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: min(86vw, 340px);
    height: 100%;
    padding: 24px 18px;
    background: rgba(255,255,255,0.95);
    background: color-mix(in srgb, var(--color-surface) 95%, transparent);
    border-left: 1px solid rgba(10,38,71,0.12);
    box-shadow: -22px 0 52px rgba(7,26,53,0.24);
    backdrop-filter: blur(18px);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .mobile-nav-overlay.open .mobile-nav-drawer {
    transform: translateX(0);
  }

  .mobile-nav-close {
    width: 44px;
    height: 44px;
    margin-left: auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(10,38,71,0.12);
    border-radius: 8px;
    background: rgba(245,248,252,0.9);
    color: var(--text);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-nav-links {
    display: grid;
    gap: 8px;
    margin-top: 24px;
  }

  .mobile-nav-links a {
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(10,38,71,0.1);
    border-radius: 8px;
    background: rgba(245,248,252,0.76);
    color: var(--text);
    font-size: 1rem;
    font-weight: 900;
  }

  .section,
  .section-sm {
    padding: 30px 0;
  }

  .section-title {
    align-items: flex-start;
    flex-wrap: wrap;
    font-size: 1.4rem;
    line-height: 1.2;
  }

  .section-title::after {
    display: none;
  }

  .hero {
    min-height: 0;
    padding: 40px 18px 34px;
  }

  .hero-inner {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero h1,
  .hero h1.hero-headline,
  .hero-headline {
    max-width: 100%;
    font-size: 2rem !important;
    line-height: 1.12;
  }

  .hero-sub {
    max-width: 100%;
    margin-bottom: 22px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 24px;
  }

  .hero-actions .btn:nth-child(n+3) {
    display: none;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-stat {
    min-width: 0;
    text-align: center;
  }

  .hero-stat strong {
    font-size: 1.25rem;
  }

  .hero-stat span {
    font-size: 0.7rem;
    line-height: 1.25;
  }

  .hero-cards,
  .admin-contact-panel,
  .admin-contact-toggle,
  .campus-feed {
    display: none !important;
  }

  .match-day-section {
    max-height: 120px;
    overflow: hidden;
  }

  .match-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .match-row::-webkit-scrollbar {
    display: none;
  }

  .match-card {
    flex: 0 0 82vw;
    max-height: 120px;
    padding: 12px;
  }

  .match-card h3,
  .match-card p {
    margin-top: 5px !important;
  }

  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .commerce-category-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: initial;
    overflow-x: visible;
  }

  .listings-grid,
  .browse-page .listings-grid,
  .cards-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  #promoted-listings.listings-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 12px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  #promoted-listings.listings-grid::-webkit-scrollbar {
    display: none;
  }

  #promoted-listings .listing-card {
    flex: 0 0 82vw;
    scroll-snap-align: start;
  }

  .affiliate-grid {
    grid-template-columns: 1fr !important;
  }

  .affiliate-card,
  .affiliate-card .btn {
    width: 100%;
  }

  .listing-card {
    width: 100%;
  }

  .listing-img,
  .listing-img-placeholder,
  .browse-page .listing-img,
  .browse-page .listing-img-placeholder,
  .browse-page .skeleton-img {
    width: 100%;
    height: auto !important;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .listing-body,
  .browse-page .listing-body {
    min-height: 0;
    padding: 14px;
    font-size: 14px;
  }

  .listing-cat,
  .listing-seller,
  .listing-price small,
  .badge {
    font-size: 0.75rem;
  }

  .listing-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .listing-badges {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
  }

  .listing-title,
  .browse-page .listing-title {
    min-height: auto;
    font-size: 15px;
    line-height: 1.35;
  }

  .listing-price,
  .browse-page .listing-price {
    color: var(--blue) !important;
    font-size: 18px;
    font-weight: 900;
  }

  .listing-wa-btn {
    width: 100%;
    min-height: 48px;
    margin-top: 12px;
    font-size: 0.92rem;
  }

  .seller-verified-badge {
    font-size: 0.68rem;
    padding: 4px 8px;
  }

  .browse-page .browse-hero {
    grid-template-columns: 1fr;
    padding: 22px 16px;
  }

  .browse-page .browse-hero h1 {
    font-size: 2rem;
  }

  .browse-page .browse-hero p {
    font-size: 1rem;
  }

  .browse-page .browse-hero-actions,
  .browse-page .browse-toolbar {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .browse-search-form {
    width: 100%;
  }

  .browse-layout,
  .browse-page .browse-layout {
    grid-template-columns: 1fr;
  }

  .browse-page .filter-sidebar {
    position: static;
    padding: 14px;
  }

  .browse-page #cat-filters,
  .browse-page #cond-filters,
  .browse-page .active-filters,
  .board-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .browse-page #cat-filters::-webkit-scrollbar,
  .browse-page #cond-filters::-webkit-scrollbar,
  .browse-page .active-filters::-webkit-scrollbar,
  .board-tabs::-webkit-scrollbar {
    display: none;
  }

  .browse-page .filter-check,
  .browse-page .category-filter-card,
  .board-tab {
    flex: 0 0 auto;
    min-height: 44px;
    white-space: nowrap;
  }

  .browse-price-row {
    flex-direction: column;
    align-items: stretch;
  }

  .browse-page .browse-top {
    min-height: 0;
    padding: 14px;
  }

  .browse-page .mobile-filter-btn,
  .browse-page .browse-sort-select,
  .browse-page .form-input,
  .browse-page .form-select,
  #load-more-btn {
    width: 100%;
  }

  .browse-page .form-input,
  .browse-page .form-select {
    min-height: 48px;
  }

  .browse-load-more .btn,
  #load-more-btn {
    min-height: 56px;
  }

  .form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
  }

  .form-input,
  .form-select,
  .form-textarea,
  .btn-google {
    min-height: 48px;
  }

  .form-grid,
  .form-grid-3 {
    grid-template-columns: 1fr !important;
  }

  .auth-page {
    min-height: calc(100vh - 64px);
    padding: 18px 14px !important;
    align-items: flex-start !important;
  }

  .auth-card {
    width: 100%;
    padding: 22px 16px;
  }

  .auth-card .btn-primary,
  .post-layout .btn-primary,
  .post-layout .btn-secondary {
    width: 100%;
    min-height: 56px;
  }

  .post-layout h1 {
    font-size: 1.45rem !important;
    margin-bottom: 20px !important;
  }

  .post-steps {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .post-step {
    min-width: 86px;
  }

  .img-upload-zone {
    width: 100%;
    min-height: 120px;
    padding: 24px 14px;
  }

  input[type="file"].form-input {
    min-height: 56px;
    padding-top: 15px;
  }

  .modal-overlay {
    z-index: 10001;
    align-items: flex-end;
    padding: 10px;
  }

  .modal {
    width: 100%;
    max-height: 88vh;
    padding: 20px 16px;
    border-radius: 12px;
  }

  .back-to-top {
    right: 16px;
    bottom: calc(80px + var(--cookie-offset, 0px));
    width: 52px;
    height: 52px;
  }

  .wa-float {
    left: 16px;
    bottom: calc(80px + var(--cookie-offset, 0px));
    width: 52px;
    height: 52px;
  }

  .wa-float:hover,
  .wa-float:focus {
    width: 52px;
  }

  .wa-float span {
    display: none;
  }

  .cookie-consent-bar {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
    font-size: 13px;
    text-align: center;
  }

  .cookie-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions .btn {
    width: 100%;
    min-height: 44px;
  }

  .post-layout .step-panel > div[style*="justify-content:space-between"],
  .post-layout .step-panel > div[style*="justify-content:flex-end"] {
    flex-wrap: wrap;
    gap: 10px;
  }
}

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    height: calc(64px + env(safe-area-inset-bottom));
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 4px;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -10px 30px rgba(14, 27, 61, 0.12);
    backdrop-filter: blur(16px);
  }

  .mobile-bottom-nav .mobile-nav-item {
    position: relative;
    min-width: 52px;
    height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 14px;
    color: var(--text2);
    font-size: 0.68rem;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-bottom-nav .ui-icon {
    width: 22px;
    height: 22px;
  }

  .mobile-bottom-nav .mobile-nav-item.active {
    color: var(--gold);
  }

  .mobile-bottom-nav .mobile-nav-item.active .ui-icon {
    transform: scale(1.08);
  }

  .mobile-bottom-nav .mobile-nav-sell {
    width: 58px;
    height: 58px;
    margin-top: -24px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 82, 255, 0.28);
  }

  .mobile-bottom-nav .mobile-nav-sell.active {
    color: #fff;
    background: var(--gold);
  }

  .wa-float,
  .back-to-top {
    bottom: calc(86px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 767px) {
  * { -webkit-tap-highlight-color: transparent; }
  body { font-size: 14px; }
  img { max-width: 100%; height: auto; }
  input, textarea, select { font-size: 16px !important; }
}

/* Stitch redesign merge layer */
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text-primary);
}

.admin-contact-panel,
.admin-contact-toggle {
  display: none !important;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(248, 249, 250, 0.92);
  border-bottom: 1px solid var(--color-border-light);
  box-shadow: 0 8px 28px rgba(14, 27, 61, 0.08);
  backdrop-filter: blur(20px);
}

.navbar-inner {
  min-height: 64px;
  width: min(calc(100% - 32px), 1220px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.navbar-brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.navbar-brand-sep {
  display: none;
}

.navbar-logo {
  color: var(--color-navy);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.navbar-logo span {
  color: var(--color-navy);
  margin-left: 3px;
}

.nav-center-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
}

.nav-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--color-navy);
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(0, 82, 255, 0.08);
  color: var(--color-electric-blue);
  transform: translateY(-1px);
}

.nav-post-btn {
  min-height: 40px;
  border-radius: var(--radius-btn);
  background: var(--color-electric-blue);
  border-color: var(--color-electric-blue);
  color: #fff;
}

.nav-icon-link {
  background: #fff;
  color: var(--color-navy);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-card);
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--color-navy);
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: var(--shadow-card);
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  visibility: hidden;
  background: rgba(14, 27, 61, 0);
  transition: visibility 0.3s ease, background 0.3s ease;
}

.mobile-nav-overlay.open {
  visibility: visible;
  background: rgba(14, 27, 61, 0.36);
}

.mobile-nav-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(86vw, 360px);
  height: 100%;
  padding: 18px;
  background: rgba(255, 255, 255, 0.95);
  border-left: 1px solid var(--color-border-light);
  box-shadow: -24px 0 80px rgba(14, 27, 61, 0.22);
  backdrop-filter: blur(20px);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-nav-overlay.open .mobile-nav-drawer {
  transform: translateX(0);
}

.mobile-nav-close {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--color-surface-container);
  color: var(--color-navy);
  font-size: 1.35rem;
  font-weight: 900;
}

.mobile-nav-links {
  margin-top: 18px;
  display: grid;
}

.mobile-nav-links a {
  min-height: 56px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-navy);
  font-size: 1.05rem;
  font-weight: 800;
}

.mobile-nav-links a[href="post.html"] {
  margin: 18px 0 8px;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--color-electric-blue);
  color: #fff;
}

.home-page .hero {
  min-height: min(720px, calc(100vh - 64px));
  padding-top: 90px;
}

.home-page .hero-bg {
  background:
    linear-gradient(135deg, rgba(14,27,61,0.92) 0%, rgba(0,82,255,0.3) 100%),
    url('https://library.mnu.ac.ke/wp-content/uploads/2022/08/MNUC-Library-6-scaled.jpg') center / cover no-repeat fixed;
}

.home-page .campus-banner,
.home-page #fresher-banner,
.home-page #banner-ad-section,
.home-page section.section-sm:has(.journey-grid) {
  display: none !important;
}

.home-page .hero h1.hero-headline,
.home-page .hero-headline {
  max-width: 720px;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  font-weight: 800;
  letter-spacing: 0;
}

.home-page .hero-sub {
  max-width: 640px;
  color: rgba(255,255,255,0.88);
  font-size: 1.08rem;
}

.fresher-countdown-banner {
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: linear-gradient(90deg, #2b176c, var(--color-navy));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.fresher-countdown-banner a {
  color: #fff;
}

.auth-split-page {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.05fr);
  background: var(--color-bg);
}

.auth-visual-panel {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(14,27,61,0.9), rgba(0,82,255,0.28)),
    url('https://library.mnu.ac.ke/wp-content/uploads/2022/08/MNUC-Library-2-scaled.jpg') center / cover no-repeat;
}

.auth-signup-visual {
  background:
    linear-gradient(135deg, rgba(14,27,61,0.9), rgba(0,104,71,0.3)),
    url('https://mnu.ac.ke/wp-content/uploads/2022/02/campus1.jpg') center / cover no-repeat;
}

.auth-visual-content {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  padding: clamp(32px, 6vw, 64px);
  color: #fff;
}

.auth-visual-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 22px;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.25));
}

.auth-visual-kicker {
  color: var(--color-campus-gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-visual-content h1 {
  margin-top: 12px;
  max-width: 580px;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.auth-trust-list {
  margin-top: 30px;
  display: grid;
  gap: 12px;
}

.auth-trust-list span {
  display: flex;
  gap: 10px;
  color: rgba(255,255,255,0.9);
  font-weight: 700;
}

.auth-trust-list strong {
  color: var(--color-campus-gold);
}

.auth-form-panel {
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 64px) 20px;
}

.stitch-auth-card {
  width: min(100%, 480px);
  border: 1px solid var(--color-border-light);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-card-hover);
}

.signup-card {
  width: min(100%, 540px);
}

.auth-field-stack {
  display: grid;
  gap: 16px;
}

.stitch-auth-card .form-input,
.stitch-auth-card .form-select,
.stitch-auth-card .btn,
.stitch-auth-card .btn-google {
  min-height: 52px;
  border-radius: 14px;
}

.auth-forgot-row {
  margin-top: -8px;
  text-align: right;
}

.auth-forgot-row a {
  color: var(--color-electric-blue);
  font-size: 0.84rem;
  font-weight: 800;
}

.signup-progress {
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: 34px minmax(48px, 120px) 34px;
  align-items: center;
  justify-content: center;
}

.signup-progress span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--color-surface-container);
  color: var(--color-text-muted);
  font-weight: 900;
}

.signup-progress span.active {
  background: var(--color-electric-blue);
  color: #fff;
}

.signup-progress i {
  height: 2px;
  background: var(--color-surface-container);
}

.signup-step-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 12px;
}

.auth-terms {
  margin-top: 14px;
  color: var(--color-text-muted);
  font-size: 0.76rem;
  line-height: 1.5;
  text-align: center;
}

.google-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(14, 27, 61, 0.95);
}

.google-auth-card {
  width: min(100%, 420px);
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 24px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  text-align: center;
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.28);
}

.google-auth-card h2 {
  margin: 14px 0 10px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
}

.google-auth-card p {
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
}

.shop-page .shop-hero {
  background: linear-gradient(135deg, #2b176c, #0E1B3D 48%, #0052FF);
  border: 0;
  box-shadow: var(--shadow-card-hover);
}

.products-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.product-card,
.listing-card {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.product-card:hover,
.listing-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.product-media img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.listing-img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.back-to-top,
.wa-float {
  bottom: calc(24px + var(--cookie-offset, 0px));
  width: 52px;
  height: 52px;
  z-index: 998;
}

.back-to-top {
  right: 16px;
  background: var(--color-electric-blue);
}

.wa-float {
  left: 16px;
  background: var(--color-whatsapp);
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
}

@media (max-width: 767px) {
  .navbar-inner {
    min-height: 56px;
    width: min(calc(100% - 28px), 1220px);
    grid-template-columns: 1fr auto;
  }

  .nav-center-links,
  .navbar-actions,
  .navbar-search {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: grid;
    place-items: center;
  }

  .home-page .hero {
    min-height: auto;
    padding: 86px 16px 44px;
  }

  .home-page .hero-inner {
    grid-template-columns: 1fr;
  }

  .home-page .hero h1.hero-headline,
  .home-page .hero-headline {
    font-size: 2rem;
    line-height: 1.12;
  }

  .home-page .hero-sub {
    font-size: 1rem;
  }

  .home-page .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .home-page .hero-stat {
    padding: 10px 8px;
    border-radius: 14px;
    background: rgba(255,255,255,0.1);
  }

  .auth-split-page {
    min-height: calc(100vh - 56px);
    grid-template-columns: 1fr;
  }

  .auth-visual-panel {
    display: none;
  }

  .auth-form-panel {
    padding: 24px 14px 96px;
  }

  .stitch-auth-card {
    border-radius: 20px;
    box-shadow: var(--shadow-card);
  }

  .signup-step-actions {
    grid-template-columns: 1fr;
  }

  .browse-toolbar {
    grid-template-columns: 1fr;
  }

  .browse-search-form,
  .browse-search-form .form-input,
  .browse-sort-select,
  #load-more-btn {
    width: 100%;
    min-height: 52px;
  }

  .shop-tabs,
  .quick-filter-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .shop-tabs::-webkit-scrollbar,
  .quick-filter-row::-webkit-scrollbar {
    display: none;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .listings-grid {
    grid-template-columns: 1fr !important;
  }

  .product-order-btn,
  .listing-wa-btn {
    width: 100%;
    min-height: 48px;
  }

  .back-to-top,
  .wa-float {
    bottom: calc(86px + var(--cookie-offset, 0px));
  }
}

/* Stitch consistency hardening */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-primary,
button.btn-primary,
a.btn-primary,
input[type="submit"].btn-primary {
  min-height: 48px;
  background: #0052FF;
  color: #fff;
  border-color: #0052FF;
  border-radius: 0.75rem;
  font-weight: 700;
  transition: all 0.15s ease;
}

.btn-primary:hover,
button.btn-primary:hover,
a.btn-primary:hover,
input[type="submit"].btn-primary:hover {
  background: #0041CC;
  border-color: #0041CC;
  transform: translateY(-1px);
}

.card,
.listing-card,
.product-card,
.pricing-card,
.cat-card,
.feed-post,
.affiliate-card,
.stat-card,
.step-panel,
.modal,
.filter-sidebar,
.shop-category-shell,
.stitch-auth-card {
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(14,27,61,0.08);
  border: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover,
  .listing-card:hover,
  .product-card:hover,
  .pricing-card:hover,
  .cat-card:hover,
  .feed-post:hover,
  .affiliate-card:hover,
  .stat-card:hover,
  .shop-category-shell:hover {
    box-shadow: 0 8px 32px rgba(14,27,61,0.16);
    transform: translateY(-2px);
  }
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
select,
textarea,
.form-input,
.form-select,
.form-textarea {
  min-height: 48px;
  font-size: 16px;
  border-radius: 0.5rem;
  border: 1.5px solid #c6c6cf;
  padding: 0 14px;
}

textarea,
.form-textarea {
  padding-top: 12px;
  padding-bottom: 12px;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
select:focus,
textarea:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #0052FF;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,82,255,0.12);
}

.home-hero-inner {
  display: block;
  color: #fff;
}

.home-page .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14,27,61,0.35), rgba(14,27,61,0));
  pointer-events: none;
}

.hero-pill {
  width: max-content;
  max-width: 100%;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  backdrop-filter: blur(12px);
}

.home-page .hero-headline span {
  color: #0052FF;
  text-shadow: 0 8px 28px rgba(0,82,255,0.35);
}

.home-hero-primary {
  background: #0E1B3D;
  border-color: #0E1B3D;
}

.home-hero-primary:hover {
  background: #071127;
  border-color: #071127;
}

.home-hero-outline {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.58);
}

.home-hero-outline:hover {
  background: #fff;
  color: #0E1B3D;
}

.category-pills-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: none;
}

.category-pills-carousel::-webkit-scrollbar {
  display: none;
}

.category-pill {
  flex: 0 0 auto;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 999px;
  background: #fff;
  color: #0E1B3D;
  box-shadow: 0 4px 20px rgba(14,27,61,0.08);
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(14,27,61,0.16);
}

.category-pill span {
  display: inline-flex;
  width: 24px;
  height: 24px;
  color: #0052FF;
}

.home-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.home-section-header h2,
.channel-cta h2 {
  margin: 4px 0 0;
  color: #0E1B3D;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: 0;
}

.home-section-header a {
  color: #0052FF;
  font-weight: 800;
}

.section-kicker {
  color: #0052FF;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.how-steps-grid,
.visibility-grid,
.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.visibility-grid,
.affiliate-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.how-step {
  background: #fff;
}

.how-step strong {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0,82,255,0.1);
  color: #0052FF;
  font-weight: 900;
}

.how-step h3,
.affiliate-card h3,
.pricing-card h3 {
  margin-top: 14px;
  color: #0E1B3D;
  font-size: 1.05rem;
  font-weight: 800;
}

.how-step p,
.affiliate-card p,
.pricing-card p,
.channel-cta p {
  margin-top: 8px;
  color: #45464e;
}

.visibility-grid .pricing-card,
.affiliate-card {
  padding: 22px;
  background: #fff;
}

.pricing-card.featured {
  border-color: rgba(0,82,255,0.28);
  box-shadow: 0 8px 32px rgba(14,27,61,0.16);
}

.pricing-badge {
  width: max-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0,212,170,0.12);
  color: #007f68;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricing-price {
  margin: 12px 0 10px;
  color: #0052FF;
  font-size: 1.7rem;
  font-weight: 900;
}

.pricing-card .btn,
.affiliate-card .btn {
  margin-top: 18px;
}

.channel-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(14,27,61,0.96), rgba(0,82,255,0.8));
  color: #fff;
  box-shadow: 0 8px 32px rgba(14,27,61,0.16);
}

.channel-cta h2,
.channel-cta p,
.channel-cta .section-kicker {
  color: #fff;
}

.home-feed-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .how-steps-grid,
  .visibility-grid,
  .affiliate-grid,
  .home-feed-preview {
    grid-template-columns: 1fr;
  }

  .home-section-header,
  .channel-cta {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Homepage motion system: CSS-only, scoped, lightweight */
body:not(.home-page) .btn-primary,
body:not(.home-page) button.btn-primary,
body:not(.home-page) a.btn-primary,
body:not(.home-page) input[type="submit"].btn-primary {
  animation: none;
}

body:not(.home-page) .hero h1,
body:not(.home-page) .hero-sub,
body:not(.home-page) .hero-tag,
body:not(.home-page) .hero-actions,
body:not(.home-page) .hero-stats,
body:not(.home-page) .hero-stat,
body:not(.home-page) .home-section-header,
body:not(.home-page) .listings-grid,
body:not(.home-page) .products-grid,
body:not(.home-page) .feed-list,
body:not(.home-page) .how-steps-grid,
body:not(.home-page) .visibility-grid,
body:not(.home-page) .affiliate-grid {
  animation: none;
  opacity: 1;
  transform: none;
}

body:not(.home-page) .hero::before,
body:not(.home-page) .hero::after {
  animation: none;
  filter: none;
  mix-blend-mode: normal;
}

.home-page .hero {
  isolation: isolate;
}

.home-page .hero::before,
.home-page .hero::after {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: 0;
  pointer-events: none;
}

.home-page .hero::before {
  background:
    radial-gradient(ellipse at 18% 28%, rgba(212, 175, 55, 0.24), transparent 31%),
    radial-gradient(ellipse at 54% 18%, rgba(0, 82, 255, 0.26), transparent 35%),
    radial-gradient(ellipse at 82% 66%, rgba(37, 211, 102, 0.14), transparent 33%);
  filter: blur(30px) saturate(1.1);
  mix-blend-mode: normal;
  opacity: 0.78;
  transform: translate3d(0, 0, 0) scale(1.02);
  animation: mnucHeroAurora 20s ease-in-out infinite alternate;
}

.home-page .hero::after {
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.12), transparent 24%, transparent 68%, rgba(212, 175, 55, 0.14)),
    radial-gradient(ellipse at 44% 50%, rgba(255, 255, 255, 0.1), transparent 42%);
  opacity: 0.42;
  filter: none;
  mix-blend-mode: normal;
  transform: translate3d(-2%, 0, 0);
  animation: mnucHeroSheen 16s ease-in-out infinite alternate;
}

.home-page .hero-inner {
  position: relative;
  z-index: 1;
}

.home-page .hero-content {
  transform-origin: left center;
  animation: mnucHeroFloat 8s ease-in-out infinite;
  will-change: transform;
}

.home-page .hero-tag,
.home-page .hero-headline,
.home-page .hero-sub,
.home-page .hero-actions,
.home-page .hero-stats {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  animation: mnucFadeUp 0.84s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.home-page .hero-tag { animation-delay: 0.05s; }
.home-page .hero-headline { animation-delay: 0.14s; }
.home-page .hero-sub { animation-delay: 0.24s; }
.home-page .hero-actions { animation-delay: 0.34s; }
.home-page .hero-stats { animation-delay: 0.44s; }

.home-page .hero-stat {
  animation: mnucStatFloat 7.5s ease-in-out infinite;
}

.home-page .hero-stat:nth-child(2) {
  animation-delay: 0.75s;
}

.home-page .hero-stat:nth-child(3) {
  animation-delay: 1.35s;
}

.home-page .hero-actions .btn-primary,
.home-page .hero-actions button.btn-primary,
.home-page .hero-actions a.btn-primary,
.home-page .hero-actions input[type="submit"].btn-primary,
.home-page .home-hero-primary {
  animation: mnucPrimaryPulse 3.6s ease-in-out infinite;
}

.home-page .hero-actions .btn-primary:hover,
.home-page .hero-actions button.btn-primary:hover,
.home-page .hero-actions a.btn-primary:hover,
.home-page .hero-actions input[type="submit"].btn-primary:hover,
.home-page .home-hero-primary:hover,
.home-page .hero-actions .btn-primary:focus-visible,
.home-page .hero-actions button.btn-primary:focus-visible,
.home-page .hero-actions a.btn-primary:focus-visible,
.home-page .hero-actions input[type="submit"].btn-primary:focus-visible,
.home-page .home-hero-primary:focus-visible {
  animation: none;
}

.home-page .section-sm .home-section-header,
.home-page .category-pills-carousel,
.home-page #promoted-listings,
.home-page #fresher-listings,
.home-page #jbee-store-products,
.home-page #feed-preview,
.home-page .how-steps-grid,
.home-page .visibility-grid,
.home-page .affiliate-grid,
.home-page .channel-cta {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  animation: mnucFadeUp 0.78s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.home-page .category-pills-carousel { animation-delay: 0.1s; }
.home-page .home-section-header { animation-delay: 0.12s; }
.home-page #promoted-listings,
.home-page #fresher-listings,
.home-page #jbee-store-products,
.home-page #feed-preview { animation-delay: 0.2s; }
.home-page .how-steps-grid,
.home-page .visibility-grid,
.home-page .affiliate-grid { animation-delay: 0.24s; }
.home-page .channel-cta { animation-delay: 0.18s; }

.home-page .category-pill,
.home-page .listing-card,
.home-page .product-card,
.home-page .feed-post,
.home-page .how-step,
.home-page .pricing-card,
.home-page .affiliate-card {
  animation: mnucCardRise 0.72s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity;
}

.home-page .category-pill:nth-child(2),
.home-page .listing-card:nth-child(2),
.home-page .product-card:nth-child(2),
.home-page .feed-post:nth-child(2),
.home-page .how-step:nth-child(2),
.home-page .pricing-card:nth-child(2),
.home-page .affiliate-card:nth-child(2) {
  animation-delay: 0.06s;
}

.home-page .category-pill:nth-child(3),
.home-page .listing-card:nth-child(3),
.home-page .product-card:nth-child(3),
.home-page .feed-post:nth-child(3),
.home-page .how-step:nth-child(3),
.home-page .pricing-card:nth-child(3),
.home-page .affiliate-card:nth-child(3) {
  animation-delay: 0.12s;
}

.home-page .category-pill:nth-child(4),
.home-page .listing-card:nth-child(4),
.home-page .product-card:nth-child(4),
.home-page .how-step:nth-child(4),
.home-page .pricing-card:nth-child(4),
.home-page .affiliate-card:nth-child(4) {
  animation-delay: 0.18s;
}

.home-page .category-pill:nth-child(n+5),
.home-page .listing-card:nth-child(n+5),
.home-page .product-card:nth-child(n+5),
.home-page .how-step:nth-child(n+5),
.home-page .pricing-card:nth-child(n+5),
.home-page .affiliate-card:nth-child(n+5) {
  animation-delay: 0.24s;
}

@media (hover: hover) and (pointer: fine) {
  .home-page .category-pill,
  .home-page .listing-card,
  .home-page .product-card,
  .home-page .feed-post,
  .home-page .how-step,
  .home-page .pricing-card,
  .home-page .affiliate-card {
    transition:
      transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
      box-shadow 220ms ease,
      border-color 220ms ease,
      filter 220ms ease;
  }

  .home-page .category-pill:hover,
  .home-page .listing-card:hover,
  .home-page .product-card:hover,
  .home-page .feed-post:hover,
  .home-page .how-step:hover,
  .home-page .pricing-card:hover,
  .home-page .affiliate-card:hover {
    transform: translate3d(0, -5px, 0);
    box-shadow: 0 14px 34px rgba(14, 27, 61, 0.15);
    border-color: rgba(0, 82, 255, 0.18);
    filter: saturate(1.03);
  }

  .home-page .category-pill:hover {
    transform: translate3d(0, -4px, 0) scale(1.015);
  }
}

@keyframes mnucFadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes mnucCardRise {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes mnucHeroFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}

@keyframes mnucStatFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -6px, 0); }
}

@keyframes mnucHeroAurora {
  0% {
    transform: translate3d(-1%, 0, 0) scale(1.02);
    opacity: 0.7;
  }
  100% {
    transform: translate3d(2%, -2%, 0) scale(1.08);
    opacity: 0.88;
  }
}

@keyframes mnucHeroSheen {
  0% { transform: translate3d(-3%, 0, 0); opacity: 0.32; }
  100% { transform: translate3d(3%, 0, 0); opacity: 0.5; }
}

@keyframes mnucPrimaryPulse {
  0%, 100% {
    box-shadow: 0 10px 24px rgba(0, 82, 255, 0.22);
  }
  50% {
    box-shadow: 0 18px 42px rgba(0, 82, 255, 0.34), 0 0 0 7px rgba(0, 82, 255, 0.08);
  }
}

@media (max-width: 767px) {
  .home-page .hero::before {
    inset: -10%;
    filter: blur(22px) saturate(1.05);
    opacity: 0.64;
  }

  .home-page .hero-content {
    animation-duration: 10s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .hero::before,
  .home-page .hero::after,
  .home-page .hero-content,
  .home-page .hero-tag,
  .home-page .hero-headline,
  .home-page .hero-sub,
  .home-page .hero-actions,
  .home-page .hero-stats,
  .home-page .hero-stat,
  .home-page .section-sm .home-section-header,
  .home-page .category-pills-carousel,
  .home-page #promoted-listings,
  .home-page #fresher-listings,
  .home-page #jbee-store-products,
  .home-page #feed-preview,
  .home-page .how-steps-grid,
  .home-page .visibility-grid,
  .home-page .affiliate-grid,
  .home-page .channel-cta,
  .home-page .category-pill,
  .home-page .listing-card,
  .home-page .product-card,
  .home-page .feed-post,
  .home-page .how-step,
  .home-page .pricing-card,
  .home-page .affiliate-card,
  .home-page .hero-actions .btn-primary,
  .home-page .hero-actions button.btn-primary,
  .home-page .hero-actions a.btn-primary,
  .home-page .hero-actions input[type="submit"].btn-primary,
  .home-page .home-hero-primary {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* MNUC MVP UI/UX override layer */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  background: rgba(14, 32, 64, 0.97);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(201,162,39,0.15);
  box-shadow: none;
}

.navbar-logo {
  font-family: var(--ff-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0;
}

.navbar-logo span {
  color: var(--mnuc-gold);
}

.nav-link {
  color: rgba(255,255,255,0.72);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color var(--trans), background var(--trans);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #fff;
  background: rgba(255,255,255,0.08);
  transform: none;
}

.nav-post-btn,
.navbar-actions .nav-post-btn {
  background: var(--mnuc-gold);
  border-color: var(--mnuc-gold);
  color: var(--mnuc-navy);
  font-weight: 800;
  border-radius: 99px;
  padding: 8px 18px;
  transition: transform var(--trans), box-shadow var(--trans);
}

.nav-post-btn:hover,
.navbar-actions .nav-post-btn:hover {
  background: var(--mnuc-gold);
  border-color: var(--mnuc-gold);
  color: var(--mnuc-navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,162,39,0.4);
}

.home-page .hero,
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--mnuc-navy);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(201,162,39,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 70%, rgba(0,82,255,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 100% 100% at 50% 50%, rgba(14,32,64,1) 0%, #071428 100%);
  animation: meshFloat 20s ease-in-out infinite alternate;
}

@keyframes meshFloat {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.04) translate(-12px, 8px); }
  100% { transform: scale(1) translate(8px, -6px); }
}

.hero-campus-photo {
  position: absolute;
  inset: 0;
  background: url('https://library.mnu.ac.ke/wp-content/uploads/2022/08/MNUC-Library-6-scaled.jpg') center/cover no-repeat;
  opacity: 0.07;
  mix-blend-mode: luminosity;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,32,64,0.85) 0%, rgba(14,32,64,0.6) 50%, rgba(14,32,64,0.4) 100%);
}

.home-page .hero-inner,
.hero-inner {
  position: relative;
  z-index: 2;
}

.home-hero-inner {
  width: min(100%, 1220px);
  margin: 0 auto;
  display: block;
  color: #fff;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: 99px;
  background: rgba(201,162,39,0.1);
  color: var(--mnuc-gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  backdrop-filter: none;
}

.hero-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mnuc-gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.25);
  animation: pillPulse 2.5s ease-in-out infinite;
}

@keyframes pillPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(201,162,39,0.25); }
  50% { box-shadow: 0 0 0 6px rgba(201,162,39,0.1); }
}

.home-page .hero h1.hero-headline,
.home-page .hero-headline,
.hero-headline {
  font-family: var(--ff-head);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  color: #FFFFFF;
  margin-bottom: 18px;
}

.hero-headline em {
  font-style: normal;
  color: var(--mnuc-gold);
  display: block;
}

.home-page .hero-sub,
.hero-sub {
  max-width: 520px;
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-search-bar {
  display: flex;
  align-items: center;
  width: min(100%, 600px);
  max-width: 600px;
  background: #FFFFFF;
  border-radius: 999px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(201,162,39,0.2);
  padding: 6px 6px 6px 20px;
  margin-top: 0;
  margin-bottom: 16px;
  transition: box-shadow var(--trans);
}

.hero-search-bar:focus-within {
  box-shadow: 0 8px 40px rgba(0,0,0,0.35), 0 0 0 2px var(--mnuc-gold);
}

.hero-search-cat {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0 12px 0 0;
  cursor: pointer;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
}

.hero-search-divider {
  width: 1px;
  height: 26px;
  background: rgba(0,0,0,0.12);
  margin: 0 14px;
  flex-shrink: 0;
}

.hero-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 0.95rem;
  min-width: 0;
}

.hero-search-input::placeholder {
  color: var(--text3);
}

.hero-search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  background: var(--mnuc-navy);
  color: var(--white);
  font-family: var(--ff-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--trans), transform var(--trans), color var(--trans);
}

.hero-search-btn:hover {
  background: var(--mnuc-gold);
  color: var(--mnuc-navy);
  transform: scale(1.02);
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  margin-bottom: 36px;
}

.hero-sell-link {
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--trans);
}

.hero-sell-link:hover {
  color: var(--mnuc-gold);
}

.hero-cta-sep {
  color: rgba(255,255,255,0.3);
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-family: var(--ff-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--mnuc-gold);
  line-height: 1;
}

.hero-stat span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,0.55);
  font-size: 0.76rem;
  font-weight: 500;
}

.hero-pill,
.hero-headline,
.hero-sub,
.hero-search-bar,
.hero-cta-row,
.hero-stats {
  opacity: 0;
  animation: heroFadeUp 0.6s ease forwards;
}

.hero-pill { animation-delay: 0.1s; }
.hero-headline { animation-delay: 0.2s; }
.hero-sub { animation-delay: 0.3s; }
.hero-search-bar { animation-delay: 0.4s; }
.hero-cta-row { animation-delay: 0.45s; }
.hero-stats { animation-delay: 0.55s; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-category="electronics"] .listing-cat { color: #0052FF; }
[data-category="beddings"] .listing-cat { color: #10B981; }
[data-category="food"] .listing-cat { color: #FF9500; }
[data-category="rentals"] .listing-cat { color: #8B5CF6; }
[data-category="clothes"] .listing-cat { color: #EC4899; }
[data-category="books"] .listing-cat { color: #F59E0B; }
[data-category="services"] .listing-cat { color: #06B6D4; }

.listing-card,
.product-card.listing-card {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
  box-shadow: var(--shadow-card);
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(14,32,64,0.12);
}

.listing-img {
  width: 100%;
  height: 200px;
  aspect-ratio: auto;
  object-fit: cover;
  transition: transform 400ms ease;
}

.listing-card:hover .listing-img {
  transform: scale(1.03);
}

.listing-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #F0F4FF, #EBF4FF);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--text3);
  font-size: 0.8rem;
  font-weight: 700;
}

.listing-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 160px;
}

.listing-cat {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--mnuc-navy);
  margin-bottom: 6px;
  opacity: 0.7;
}

.listing-title {
  font-family: var(--ff-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.listing-price {
  margin-top: 10px;
  font-family: var(--ff-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--mnuc-navy);
  letter-spacing: 0;
}

.listing-price small {
  color: var(--text3);
  font-family: var(--ff-body);
  font-size: 0.68rem;
  font-weight: 500;
}

.listing-meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.listing-trust-line {
  margin-top: 6px;
  color: var(--text3);
  font-size: 0.72rem;
  font-weight: 600;
}

.promoted-ribbon {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--mnuc-gold);
  color: var(--mnuc-navy);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.save-listing-btn {
  position: absolute;
  left: 10px;
  top: 10px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 99px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  color: var(--text2);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  z-index: 2;
  transition: background var(--trans), color var(--trans);
}

.save-listing-btn:hover {
  background: #fff;
  color: var(--mnuc-navy);
}

.save-listing-btn.saved {
  background: var(--mnuc-gold);
  color: var(--mnuc-navy);
  border-color: var(--mnuc-gold);
}

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 990;
    height: 64px;
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(14,32,64,0.97);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(201,162,39,0.15);
    align-items: center;
    justify-content: space-around;
    box-shadow: none;
  }

  body {
    padding-bottom: 64px;
  }
}

.mobile-nav-item,
.mobile-bottom-nav .mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  padding: 8px 12px;
  height: auto;
  color: rgba(255,255,255,0.5);
  font-size: 0.65rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  transition: color var(--trans), background var(--trans), transform var(--trans);
  position: relative;
  min-width: 52px;
}

.mobile-nav-item.active,
.mobile-nav-item:hover,
.mobile-bottom-nav .mobile-nav-item.active,
.mobile-bottom-nav .mobile-nav-item:hover {
  color: var(--mnuc-gold);
}

.mobile-nav-item:active,
.mobile-bottom-nav .mobile-nav-item:active {
  transform: scale(0.92);
}

.mobile-nav-item .ui-icon,
.mobile-bottom-nav .mobile-nav-item .ui-icon {
  width: 22px;
  height: 22px;
}

.mobile-nav-sell,
.mobile-bottom-nav .mobile-nav-sell {
  width: auto;
  height: auto;
  background: var(--mnuc-gold);
  color: var(--mnuc-navy) !important;
  border-radius: 16px;
  padding: 10px 14px;
  margin-top: 0;
  margin-bottom: 8px;
  box-shadow: 0 4px 16px rgba(201,162,39,0.4);
}

.mobile-nav-sell:hover,
.mobile-nav-sell.active,
.mobile-bottom-nav .mobile-nav-sell:hover,
.mobile-bottom-nav .mobile-nav-sell.active {
  color: var(--mnuc-navy) !important;
  background: var(--mnuc-gold-lt);
}

.mobile-nav-badge {
  position: absolute;
  top: 4px;
  right: 8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--red);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  border: 2px solid var(--dark-bg);
}

.home-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.home-section-header h2 {
  font-family: var(--ff-head);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0;
  line-height: 1.15;
}

.section-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--mnuc-gold);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.home-section-header a {
  color: var(--mnuc-navy);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 6px 14px;
  border: 1.5px solid var(--mnuc-navy);
  border-radius: 99px;
  transition: background var(--trans), color var(--trans);
  flex-shrink: 0;
  margin-top: 4px;
}

.home-section-header a:hover {
  background: var(--mnuc-navy);
  color: #fff;
}

.how-step {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform var(--trans), box-shadow var(--trans);
}

.how-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.how-step strong {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--mnuc-navy);
  color: var(--mnuc-gold);
  font-family: var(--ff-head);
  font-size: 0.9rem;
  font-weight: 900;
}

.how-step h3 {
  font-family: var(--ff-head);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0;
  margin-bottom: 6px;
}

.how-step p {
  color: var(--text2);
  font-size: 0.86rem;
  line-height: 1.6;
}

.pricing-card {
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--trans), box-shadow var(--trans);
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.pricing-card.featured {
  border-color: var(--mnuc-gold);
  background: linear-gradient(160deg, rgba(201,162,39,0.06) 0%, #fff 50%);
  box-shadow: 0 4px 24px rgba(201,162,39,0.18);
}

.pricing-price {
  color: var(--mnuc-navy);
  font-family: var(--ff-head);
  font-size: 2rem;
  font-weight: 800;
  margin: 12px 0 8px;
  letter-spacing: 0;
}

.channel-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 44px;
  border-radius: var(--radius-xl);
  background: var(--mnuc-navy);
  color: #fff;
  flex-wrap: wrap;
  box-shadow: none;
}

.channel-cta h2 {
  font-family: var(--ff-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 6px;
  color: #fff;
}

.channel-cta p {
  color: rgba(255,255,255,0.65);
  max-width: 500px;
}

.channel-cta .section-kicker {
  color: var(--mnuc-gold);
}

.auth-split-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
}

.auth-visual-panel {
  position: relative;
  overflow: hidden;
  background: var(--mnuc-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  min-height: 100vh;
}

.auth-visual-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://library.mnu.ac.ke/wp-content/uploads/2022/08/MNUC-Library-6-scaled.jpg') center/cover no-repeat;
  opacity: 0.08;
}

.auth-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,32,64,0.9) 0%, rgba(201,162,39,0.15) 100%);
}

.auth-visual-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 380px;
  width: 100%;
  padding: 0;
}

.auth-visual-content h1 {
  font-family: var(--ff-head);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  margin-bottom: 16px;
  color: #fff;
}

.auth-visual-kicker {
  color: var(--mnuc-gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: var(--bg);
}

.auth-card,
.stitch-auth-card {
  width: min(100%, 440px);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--mnuc-navy);
}

.btn-google {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color var(--trans), box-shadow var(--trans);
}

.btn-google:hover {
  border-color: rgba(0,0,0,0.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--mnuc-navy);
  box-shadow: 0 0 0 3px rgba(14,32,64,0.1);
}

@media (max-width: 768px) {
  .home-page .hero,
  .hero {
    min-height: auto;
    padding: 60px 16px 48px;
  }

  .home-page .hero h1.hero-headline,
  .home-page .hero-headline,
  .hero-headline {
    font-size: clamp(2.4rem, 10vw, 3.2rem);
  }

  .hero-search-bar {
    flex-direction: column;
    border-radius: 20px;
    padding: 12px;
    gap: 8px;
    align-items: stretch;
  }

  .hero-search-cat,
  .hero-search-input {
    width: 100%;
    padding: 10px 4px;
  }

  .hero-search-divider {
    width: 100%;
    height: 1px;
    margin: 0;
  }

  .hero-search-btn {
    width: 100%;
    justify-content: center;
    border-radius: 14px;
  }

  .auth-split-page {
    grid-template-columns: 1fr;
  }

  .auth-visual-panel {
    display: none;
  }

  .auth-form-panel {
    padding: 32px 20px;
    min-height: 100vh;
  }
}

/* ============================================================
   JBEE STORE — CSS WAR FIX
   Paste this block at the very bottom of style.css
   (after all existing rules). It wins by cascade order.
   ============================================================ */

/* 1. HARD BACKGROUND RESET — kills the 6-way conflict */
body.shop-page,
body.shop-page::before,
body.shop-page::after {
  background: #F5F5F7 !important;
  background-image: none !important;
  animation: none !important;
}
body.shop-page::before,
body.shop-page::after {
  display: none !important;
  content: none !important;
}

/* 2. FONT — one declaration wins */
body.shop-page {
  font-family: 'Bricolage Grotesque', 'Inter', 'Plus Jakarta Sans', sans-serif !important;
  color: #1D1D1F !important;
}

/* 3. HERO CONFLICT — kill both old .shop-hero backgrounds */
body.shop-page .shop-hero {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* 4. NAVBAR — force light navbar on dark hero */
body.shop-page .navbar {
  background: rgba(14,32,64,0.97) !important;
  border-bottom: 1px solid rgba(201,162,39,0.15) !important;
  box-shadow: none !important;
}

/* 5. CARD backgrounds — keep white on light page */
body.shop-page .card,
body.shop-page .stat-card {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.07) !important;
  color: #1D1D1F !important;
}

/* 6. FORM ELEMENTS — readable on light bg */
body.shop-page .form-input,
body.shop-page .form-select,
body.shop-page .form-textarea {
  background: #ffffff !important;
  color: #1D1D1F !important;
  border-color: rgba(0,0,0,0.14) !important;
}
body.shop-page .form-select option {
  background: #ffffff !important;
  color: #1D1D1F !important;
}

/* 7. ADMIN PANEL SIDEBAR — keep dark */
body.shop-page .admin-shop-shell .sidebar,
body.shop-page .admin-shop-shell {
  background: var(--bg) !important;
}

/* 8. MOBILE BOTTOM NAV — keep dark on shop page */
body.shop-page .mobile-bottom-nav {
  background: rgba(14,32,64,0.97) !important;
  border-top-color: rgba(201,162,39,0.15) !important;
}
body.shop-page .mobile-nav-item {
  color: rgba(255,255,255,0.55) !important;
}
body.shop-page .mobile-nav-item.active {
  color: #C9A227 !important;
}

/* 9. PRODUCT GRID override — ensure white cards */
body.shop-page .products-grid,
body.shop-page .jbee-grid {
  /* Let jbee-grid rules handle this — just ensure no dark override */
  background: transparent !important;
}

/* 10. FOOTER — keep dark */
body.shop-page .footer {
  background: linear-gradient(90deg, rgba(7,26,53,0.96), rgba(11,79,156,0.86)) !important;
}

/* ============================================================
   END JBEE STORE PATCH
   ============================================================ */
   /* ============================================================
   JBEE STORE — AIRBNB-QUALITY PRODUCT IMAGES
   ============================================================ */

/* 1. Kill all janky animations on product cards */
body.shop-page .product-card,
body.shop-page .product-card *,
body.shop-page .product-media,
body.shop-page .product-media img {
  animation: none !important;
}

/* 2. Card — clean, no extra effects */
body.shop-page .product-card {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.07);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

body.shop-page .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 24px 48px rgba(0,0,0,0.07);
}

/* 3. THE KEY FIX — image container is a fixed-ratio box */
body.shop-page .product-media {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 100%; /* 1:1 square — change to 75% for 4:3 */
  overflow: hidden;
  background: #f0f4f8;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* 4. Image fills the box perfectly — Airbnb style */
body.shop-page .product-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 350ms ease;
  filter: none !important;
  aspect-ratio: unset !important;
}

body.shop-page .product-card:hover .product-media img {
  transform: scale(1.04);
}

/* 5. Placeholder when no image */
body.shop-page .product-image-missing {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
  color: #94a3b8;
  font-size: 2rem;
}

/* 6. Badge stays on top */
body.shop-page .product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

/* 7. Sold out overlay */
body.shop-page .product-soldout-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* 8. Card body — clean typography */
body.shop-page .product-card-body {
  padding: 14px;
  display: grid;
  gap: 6px;
}

body.shop-page .product-title-btn {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1D1D1F;
  line-height: 1.3;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

body.shop-page .product-price {
  font-size: 1.05rem;
  font-weight: 900;
  color: #0E2040;
}

/* ============================================================
   END AIRBNB IMAGE FIX
   ============================================================ */
   /* ══════ HERO FIX — final override, wins cascade ══════ */
.hero-inner {
  grid-template-columns: 1fr !important;
  max-width: 780px !important;
}
.hero-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  width: 100%;
}
.hero-campus-photo {
  opacity: 0.22 !important;
}
.hero-search-bar {
  order: -1;
  margin: 28px auto 20px !important;
  width: 100%;
  max-width: 600px;
}
.hero-cta-row, .hero-stats {
  justify-content: center;
}

/* ============================================================
   TOAST FIX — final override, always wins
   ============================================================ */
#toast-container {
  position: fixed !important;
  right: 22px !important;
  bottom: 90px !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  pointer-events: none !important;
}
.toast {
  min-width: 280px !important;
  max-width: 360px !important;
  padding: 14px 16px !important;
  border-radius: 12px !important;
  background: #0E2040 !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-left: 4px solid #C9A227 !important;
  color: #ffffff !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45) !important;
  animation: toast-in 0.25s ease forwards !important;
  pointer-events: all !important;
  opacity: 1 !important;
}
.toast.success { border-left-color: #22c55e !important; background: #052010 !important; }
.toast.error   { border-left-color: #ef4444 !important; background: #1f0505 !important; }
.toast.warning { border-left-color: #f59e0b !important; background: #1a1200 !important; }
.toast.info    { border-left-color: #3b82f6 !important; background: #030d20 !important; }
@keyframes toast-in  { from { opacity:0; transform:translateX(40px); } to { opacity:1; transform:translateX(0); } }
@keyframes toast-out { from { opacity:1; transform:translateX(0); }    to { opacity:0; transform:translateX(40px); } }
/* ============================================================
   END TOAST FIX
   ============================================================ */
   /* ============================================================
   NAVBAR LOGO FIX — dominant, visible, branded
   ============================================================ */
.navbar-brand-logo {
  height: 42px !important;
  width: auto !important;
  background: #ffffff !important;
  border-radius: 8px !important;
  padding: 4px 8px !important;
  object-fit: contain !important;
}

.footer-brand-logo {
  height: 48px !important;
  width: auto !important;
  background: #ffffff !important;
  border-radius: 8px !important;
  padding: 4px 8px !important;
  object-fit: contain !important;
}

/* Mobile — slightly smaller */
@media (max-width: 767px) {
  .navbar-brand-logo {
    height: 34px !important;
    padding: 3px 6px !important;
  }
}
/* ============================================================
   END NAVBAR LOGO FIX
   ============================================================ */