/* ============================================================
   BMS GLOBAL — Components: Buttons, Cards, Badges, Modals, Forms
   ============================================================ */

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 11px 20px;
  border-radius: var(--r-md);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), background var(--t-fast);
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-sm { padding: 8px 14px; font-size: var(--text-sm); border-radius: var(--r-sm); }
.btn-lg { padding: 15px 28px; font-size: var(--text-md); }

/* Primary */
.btn-primary {
  background: linear-gradient(135deg, #2068f0, #1251c4);
  color: #fff;
  box-shadow: 0 12px 28px rgba(18, 82, 211, 0.32), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover {
  box-shadow: 0 18px 38px rgba(18, 82, 211, 0.42), inset 0 1px 0 rgba(255,255,255,0.22);
}

/* Gold / REC CTA */
.btn-gold {
  background: linear-gradient(135deg, #E8A917, #c98d00);
  color: #fff;
  box-shadow: 0 12px 28px rgba(200, 141, 0, 0.36), inset 0 1px 0 rgba(255,255,255,0.22);
}
.btn-gold:hover {
  box-shadow: 0 18px 38px rgba(200, 141, 0, 0.48), inset 0 1px 0 rgba(255,255,255,0.28);
}

/* Ghost */
.btn-ghost {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.16); }

/* Outline */
.btn-outline {
  background: var(--surface);
  color: var(--navy);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover {
  border-color: rgba(29, 99, 233, 0.25);
  color: var(--blue);
  box-shadow: var(--shadow-sm);
}

/* Text / Link Button */
.btn-text {
  background: none;
  color: var(--blue);
  padding: 0;
  font-weight: var(--weight-bold);
  gap: var(--space-1);
}
.btn-text:hover { transform: none; color: var(--navy-3); }

/* Icon Button */
.btn-icon {
  width: 42px; height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  color: var(--navy);
  font-size: 18px;
  border: 1px solid var(--line);
  position: relative;
  transition: background var(--t-fast), box-shadow var(--t-fast);
}
.btn-icon:hover {
  background: var(--blue-soft);
  border-color: var(--blue-muted);
  transform: none;
}

/* ── Badge ────────────────────────────────────────────────── */
.badge {
  position: absolute;
  top: -5px; right: -5px;
  background: var(--red);
  color: #fff;
  width: 18px; height: 18px;
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: var(--weight-bold);
  display: grid;
  place-items: center;
  pointer-events: none;
}

/* ── Chip / Tag ───────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  background: var(--bg-2);
  color: var(--muted);
  border: 1px solid var(--line);
}
.chip.blue   { background: var(--blue-soft);  color: var(--blue);   border-color: var(--blue-muted); }
.chip.gold   { background: var(--gold-soft);  color: var(--gold);   border-color: var(--gold-muted); }
.chip.green  { background: var(--green-soft); color: var(--green);  border-color: rgba(10,133,88,0.2); }
.chip.red    { background: var(--red-soft);   color: var(--red);    border-color: rgba(215,45,45,0.2); }
.chip.purple { background: var(--purple-soft); color: var(--purple); border-color: rgba(74,57,179,0.2); }

/* ── Status Pill ──────────────────────────────────────────── */
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: var(--weight-semi);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; display: block; }
.status-active  { background: var(--green-soft); color: var(--green); }
.status-active::before  { background: var(--green); box-shadow: 0 0 6px var(--green); }
.status-pending { background: var(--gold-soft);  color: var(--gold);  }
.status-pending::before { background: var(--gold-bright); }
.status-closed  { background: var(--bg-2); color: var(--muted); }
.status-closed::before  { background: var(--muted); }
.status-rejected { background: var(--red-soft); color: var(--red); }
.status-rejected::before { background: var(--red); }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: rgba(255,255,255,0.90);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Company Cards */
.company-card {
  border: none;
  border-radius: var(--r-xl);
  padding: 0;
  color: #fff;
  min-height: 260px;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  cursor: default;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.company-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 32px 64px rgba(0,0,0,0.28);
}
/* Gradient colour themes */
.company-card.blue {
  background:
    radial-gradient(circle at 85% 10%, rgba(77,132,255,0.30), transparent 30%),
    linear-gradient(155deg, #0d3585, #061a4c);
}
.company-card.gold {
  background:
    radial-gradient(circle at 85% 10%, rgba(255,220,100,0.28), transparent 30%),
    linear-gradient(155deg, #c88e0a, #7a4f00);
}
.company-card.green {
  background:
    radial-gradient(circle at 85% 10%, rgba(80,220,150,0.28), transparent 30%),
    linear-gradient(155deg, #0b7a52, #054230);
}
.company-card.purple {
  background:
    radial-gradient(circle at 85% 10%, rgba(160,130,255,0.30), transparent 30%),
    linear-gradient(155deg, #4a39b3, #1e1055);
}
/* SVG art layer — fills bottom of card */
.card-art {
  position: absolute;
  bottom: 0; right: 0;
  width: 100%; height: 70%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
}
/* Gradient fog so text above SVG is readable */
.company-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.0) 0%,
    rgba(0,0,0,0.05) 40%,
    rgba(0,0,0,0.35) 100%
  );
  z-index: 2;
  pointer-events: none;
}
/* Card text body sits above SVG */
.company-card-body {
  position: relative;
  z-index: 3;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.company-icon {
  width: 46px; height: 46px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: var(--shadow-inner), 0 6px 18px rgba(0,0,0,0.14);
  margin-bottom: var(--space-2);
  transition: transform var(--t-base) var(--ease);
}
.company-card:hover .company-icon { transform: scale(1.1) rotate(-5deg); }
.company-card h3 {
  color: #fff;
  font-size: var(--text-md);
  font-weight: var(--weight-black);
  line-height: 1.3;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
  letter-spacing: -0.2px;
}
.company-card p {
  color: rgba(255,255,255,0.92);
  font-size: var(--text-base);
  line-height: 1.5;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.50);
  font-weight: var(--weight-semi);
}
/* "Learn More" button for non-REC cards */
.company-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: var(--weight-bold);
  color: rgba(255,255,255,0.88);
  margin-top: var(--space-3);
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  width: fit-content;
  text-align: left;
}
.company-cta:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.45);
  transform: translateX(3px);
}
/* Company modal icon box — clean, no card layout styles */
.company-modal-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 32px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.2);
}
.company-modal-icon.blue   { background: linear-gradient(145deg,#0d3585,#061a4c); color:#fff; }
.company-modal-icon.gold   { background: linear-gradient(145deg,#c88e0a,#7a4f00); color:#fff; }
.company-modal-icon.green  { background: linear-gradient(145deg,#0b7a52,#054230); color:#fff; }
.company-modal-icon.purple { background: linear-gradient(145deg,#4a39b3,#1e1055); color:#fff; }
/* Blinking "Join REC Now" button */
.company-cta-rec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: var(--weight-black);
  color: #1a0a00;
  margin-top: var(--space-3);
  padding: 9px 18px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--gold-vivid, #f6cb17), #f0a500);
  box-shadow: 0 6px 20px rgba(246,203,23,0.50);
  text-decoration: none;
  width: fit-content;
  animation: recBtnPulse 1.8s ease-in-out infinite;
  letter-spacing: 0.2px;
}
.company-cta-rec:hover {
  animation-play-state: paused;
  transform: scale(1.06);
  box-shadow: 0 10px 28px rgba(246,203,23,0.65);
  color: #000;
}
@keyframes recBtnPulse {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(246,203,23,0.45);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 8px 28px rgba(246,203,23,0.75), 0 0 0 6px rgba(246,203,23,0.18);
    transform: scale(1.04);
  }
}

/* Listing Cards */
.listing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.listing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.listing-image {
  height: 160px;
  position: relative;
  background: linear-gradient(135deg, #dce8fb, #93aed6);
  overflow: hidden;
}
.listing-image::before {
  content: "";
  position: absolute;
  width: 180px; height: 100px;
  background: rgba(255,255,255,0.26);
  border-radius: 18px 18px 4px 4px;
  right: 20px; bottom: -12px;
  transform: skewX(-8deg);
  box-shadow: -34px -22px 0 -18px rgba(255,255,255,0.22), -65px -45px 0 -32px rgba(255,255,255,0.18);
}
.listing-image.vehicle { background: linear-gradient(135deg, #efe1bd, #c29332); }
.listing-image.vehicle::before {
  width: 180px; height: 60px;
  border-radius: 50px 55px 18px 18px;
  bottom: 18px; transform: none;
  box-shadow: -40px 22px 0 -10px rgba(17,32,64,0.22), 40px 22px 0 -10px rgba(17,32,64,0.22);
}
.listing-image.energy { background: linear-gradient(135deg, #d8f1e7, #5eaa88); }
.listing-image.energy::before {
  width: 170px; height: 85px;
  border-radius: 8px; bottom: 18px;
  transform: skewX(-8deg);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.22) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.22) 1px, transparent 1px),
    rgba(255,255,255,0.28);
  background-size: 22px 22px;
}
.listing-type {
  position: relative;
  z-index: 2;
  bottom: var(--space-3);
  left: var(--space-3);
  display: inline-block;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--r-full);
  padding: 5px 10px;
  font-size: 9px;
  font-weight: var(--weight-black);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--ink-2);
}
.save-btn {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 3;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--navy);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transition: background var(--t-fast), color var(--t-fast);
}
.save-btn.saved { background: var(--red-soft); color: var(--red); }
.listing-body { padding: var(--space-4); }
.listing-body h4 { font-size: var(--text-base); margin-bottom: var(--space-2); }
.listing-location {
  display: flex; align-items: center; gap: 4px;
  font-size: var(--text-xs); color: var(--muted);
  margin-bottom: var(--space-3);
}
.listing-bottom { display: flex; justify-content: space-between; align-items: center; }
.listing-price { font-size: var(--text-base); font-weight: var(--weight-bold); color: var(--navy); }
.mini-btn {
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: var(--r-sm);
  padding: 7px 10px;
  font-size: 11px;
  font-weight: var(--weight-bold);
  border: none;
  cursor: pointer;
  transition: background var(--t-fast);
}
.mini-btn:hover { background: var(--blue-muted); }

/* Stat Cards */
.stat-card {
  background: rgba(255,255,255,0.90);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-xs);
}
.stat-card .label { font-size: var(--text-xs); color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; font-weight: var(--weight-semi); }
.stat-card .value { font-size: var(--text-3xl); font-weight: var(--weight-black); color: var(--navy); margin: var(--space-2) 0 var(--space-1); letter-spacing: -1px; }
.stat-card .sublabel { font-size: var(--text-xs); color: var(--muted); }
.stat-card .stat-icon-wrap {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-3);
  font-size: 20px;
}

/* ── Quick Access ─────────────────────────────────────────── */
.quick-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,251,255,0.92));
  border: 1px solid rgba(16, 43, 90, 0.08);
  border-radius: var(--r-lg);
  padding: var(--space-5) var(--space-3);
  text-align: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base), border-color var(--t-fast);
}
.quick-card:hover {
  transform: translateY(-5px);
  border-color: rgba(29,99,233,0.18);
  box-shadow: var(--shadow-md);
}
.quick-card .qc-icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(145deg, #eef4ff, #dbe8ff);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin: 0 auto var(--space-3);
  font-size: 22px;
  box-shadow: inset 0 1px 0 #fff, 0 6px 16px rgba(37,101,220,0.10);
}
.quick-card.rec .qc-icon {
  background: linear-gradient(145deg, var(--purple-soft), #ddd8ff);
  color: var(--purple);
}
.quick-card strong { display: block; font-size: var(--text-base); font-weight: var(--weight-semi); }
.quick-card small  { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }

/* ── Feature Chip ─────────────────────────────────────────── */
.feature-chip {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: var(--weight-semi);
  color: var(--ink-2);
}

/* ── Panel ────────────────────────────────────────────────── */
.panel {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(17,45,94,0.08);
  border-radius: var(--r-xl);
  padding: var(--space-6);
  box-shadow: 0 18px 46px rgba(17,43,94,0.07);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-5);
}
.panel-head h3 { margin: 0; }

/* ── Modal ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 20, 50, 0.55);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal-bg, 400);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease);
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }

.modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -46%) scale(0.97);
  width: min(560px, calc(100% - 28px));
  max-height: 88vh;
  overflow: auto;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--r-xl);
  padding: var(--space-8);
  box-shadow: 0 40px 100px rgba(0,0,0,0.28);
  z-index: var(--z-modal, 450);
  opacity: 0;
  pointer-events: none;
  transition: all var(--t-slow) var(--ease);
}
.modal.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.modal-close {
  position: absolute;
  right: var(--space-4); top: var(--space-4);
  width: 34px; height: 34px;
  background: var(--bg-2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--muted);
  border: none;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.modal-close:hover { background: var(--red-soft); color: var(--red); }
.modal h2 { margin-bottom: var(--space-2); }

/* ── Form Styles ──────────────────────────────────────────── */
.form-group { display: grid; gap: var(--space-1); margin-bottom: var(--space-4); }
.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: var(--text-base);
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29,99,233,0.12);
  outline: none;
}
.form-input::placeholder { color: var(--muted-light); }

textarea.form-input {
  min-height: 110px;
  resize: vertical;
}
select.form-input { cursor: pointer; }

.modal-form { display: grid; gap: var(--space-4); }
.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29,99,233,0.12);
  outline: none;
}
.modal-form textarea { min-height: 110px; resize: vertical; }

/* ── Toast ────────────────────────────────────────────────── */
.toast {
  position: fixed;
  right: var(--space-6);
  bottom: var(--space-6);
  background: var(--navy-deep);
  color: #fff;
  padding: 13px 18px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-toast);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all var(--t-base) var(--ease);
  font-size: var(--text-base);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: var(--green); }
.toast.error   { background: var(--red); }

/* ── Empty State ──────────────────────────────────────────── */
.empty-state {
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-16) var(--space-8);
  gap: var(--space-4);
}
.empty-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 28px;
  margin: 0 auto;
}
.empty-state h3 { margin: 0; }
.empty-state p { max-width: 340px; }

/* ── News Item ────────────────────────────────────────────── */
.news-item {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
}
.news-item:last-child { border-bottom: none; }
.news-item .news-date { font-size: 11px; font-weight: var(--weight-bold); color: var(--blue); }
.news-item h4 { font-size: var(--text-base); line-height: 1.45; margin: 6px 0 4px; }
.news-item p  { font-size: 12px; margin: 0; }

/* ── Course Card ──────────────────────────────────────────── */
.course-card {
  background: rgba(255,255,255,0.90);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base);
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.course-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: var(--space-4);
}
.course-card h3 { font-size: var(--text-md); margin-bottom: var(--space-2); }
.course-card p  { font-size: 12px; line-height: 1.6; margin-bottom: var(--space-4); }
.course-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}

/* ── Event Card ───────────────────────────────────────────── */
.event-card {
  background: rgba(255,255,255,0.90);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: var(--space-4);
  align-items: center;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base);
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.event-date {
  height: 72px;
  border-radius: var(--r-md);
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  text-align: center;
}
.event-date strong { font-size: 26px; line-height: 1; display: block; }
.event-date span   { font-size: 10px; font-weight: var(--weight-black); display: block; }
.event-info h3 { font-size: var(--text-base); margin-bottom: 5px; }
.event-info p  { font-size: 12px; margin: 0; }

/* ── Investment / Plan ────────────────────────────────────── */
.plan-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--space-5);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: center;
  background: var(--surface);
  transition: box-shadow var(--t-fast), border-color var(--t-fast);
}
.plan-item:hover { border-color: rgba(29,99,233,0.2); box-shadow: var(--shadow-sm); }
.plan-item h4 { margin: 0 0 4px; font-size: var(--text-base); }
.plan-item p  { margin: 0; font-size: 12px; color: var(--muted); }
.plan-return  { text-align: right; white-space: nowrap; }
.plan-return strong { display: block; font-size: var(--text-lg); color: var(--green); font-weight: var(--weight-bold); }
.plan-return small  { font-size: 11px; color: var(--muted); }

/* ── ROI Calculator ───────────────────────────────────────── */
.roi-result {
  background: var(--blue-soft);
  border-radius: var(--r-md);
  padding: var(--space-5);
  margin-top: var(--space-5);
}
.roi-result .roi-label { font-size: 11px; color: var(--muted); display: block; }
.roi-result .roi-value { font-size: var(--text-3xl); font-weight: var(--weight-black); color: var(--navy); margin-top: var(--space-1); display: block; letter-spacing: -1px; }
.range-value { text-align: right; font-size: var(--text-sm); font-weight: var(--weight-black); color: var(--blue); margin-top: 4px; }

/* ── Filter Bar ───────────────────────────────────────────── */
.filter-bar {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--space-3);
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
  box-shadow: var(--shadow-xs);
  margin-bottom: var(--space-5);
}
.filter-btn {
  padding: 9px 14px;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  color: var(--muted);
  font-size: var(--text-base);
  font-weight: var(--weight-semi);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.filter-btn:hover { background: var(--blue-soft); color: var(--blue); }
.filter-btn.active {
  background: linear-gradient(135deg, #0b2d70, #061a46);
  color: #fff;
  box-shadow: 0 8px 20px rgba(7,26,70,0.22);
}
.filter-select {
  margin-left: auto;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: var(--text-base);
  color: var(--ink);
  cursor: pointer;
}

/* ── Listing Image: Real Photo Overlay ──────────────────────── */
.listing-image[style*="background-image"] {
  background-size: cover !important;
  background-position: center !important;
}
/* Dark gradient so label + save button always readable */
.listing-image[style*="background-image"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.38) 70%,
    rgba(0,0,0,0.62) 100%
  );
  z-index: 1;
  pointer-events: none;
}
/* Push label above the overlay */
.listing-image .listing-type { position: absolute; z-index: 2; bottom: var(--space-3); left: var(--space-3); }
.listing-image .save-btn { z-index: 2; }

/* ── Modal: Listing Hero Image ───────────────────────────── */
.modal-listing-hero {
  width: calc(100% + var(--space-8) * 2);
  margin: calc(-1 * var(--space-8)) calc(-1 * var(--space-8)) var(--space-5);
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  position: relative;
}
.modal-listing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255,255,255,0.95) 0%, transparent 50%);
  border-radius: inherit;
}

/* ── Pricing Table (Listing Modal) ───────────────────────── */
.pricing-table {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 4px;
}
.pricing-table-head {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: var(--space-3);
  align-items: center;
  padding: 10px var(--space-4);
  background: linear-gradient(135deg, #f0f4ff, #e8eeff);
  font-size: 10px;
  font-weight: var(--weight-black);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.pricing-tier {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: var(--space-3);
  align-items: center;
  padding: 12px var(--space-4);
  border-top: 1px solid var(--line-soft);
  transition: background var(--t-fast);
}
.pricing-tier:hover { background: rgba(29,99,233,0.03); }
.tier-size {
  font-size: var(--text-base);
  font-weight: var(--weight-semi);
  color: var(--ink-2);
}
.tier-price {
  font-size: var(--text-md);
  font-weight: var(--weight-black);
  color: var(--blue);
  letter-spacing: -0.4px;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 11px;
  border-radius: var(--r-sm);
  white-space: nowrap;
}

/* ── Marketplace Page Header Upgrade ─────────────────────── */
.page-header {
  background:
    radial-gradient(circle at 90% 10%, rgba(29,99,233,0.10), transparent 35%),
    radial-gradient(circle at 10% 90%, rgba(123,92,255,0.07), transparent 35%),
    rgba(255,255,255,0.90);
  border: 1px solid rgba(29,99,233,0.10);
  box-shadow: 0 8px 32px rgba(10,30,80,0.06);
}
.page-header h1 {
  font-size: clamp(24px, 3vw, 42px);
  letter-spacing: -0.8px;
  color: var(--navy);
}
