/* ============================================================
   MyWeddingNetwork — Design system
   Filipino wedding aesthetic: Navy · Gold · Cream
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS variables ─────────────────────────────────────────── */
:root {
  --navy:     #1B335A;
  --navy2:    #0F2340;
  --gold:     #C4943A;
  --gold2:    #A67C2E;
  --cream:    #FBF8F3;
  --cream2:   #F5EFE6;
  --line:     #E8E0D5;
  --muted:    #7A7060;
  --warn:     #C0392B;
  --ok:       #27AE60;
  --text:     #1A1612;
  --pend:     #9a7d20;
  --pendbg:   #f7efd6;
  --shadow:   0 2px 16px rgba(27,51,90,.10);
  --shadow-lg:0 8px 40px rgba(27,51,90,.15);
  --r:        12px;
  --r-sm:     8px;
  --serif:    'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --sans:     'Inter', system-ui, sans-serif;
}

/* ── Reset / base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); }

/* ── App shell ─────────────────────────────────────────────── */
.app { min-height: 100vh; }
.app.land { height: auto; }

.shell { display: flex; min-height: 100vh; }

/* ── Sidebar ───────────────────────────────────────────────── */
.sidebar {
  width: 236px;
  background: var(--navy2);
  color: #cdd6ea;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 22px 20px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 12px;
  overflow: auto;
}

.navitem {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 13px;
  border-radius: 7px;
  color: #aeb9d1;
  font-weight: 500;
  font-size: 13.5px;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.navitem:hover { background: rgba(255,255,255,.05); color: #fff; }

.navitem.on { background: var(--gold); color: #1a1300; font-weight: 600; }

.navico {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: currentColor;
  opacity: .55;
  flex-shrink: 0;
}

.navitem.on .navico { opacity: 1; }

.navsec {
  padding: 16px 22px 6px;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #5d6e90;
}

/* ── Main + topbar ─────────────────────────────────────────── */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
}

.page {
  padding: 30px 32px 60px;
  max-width: 1180px;
  width: 100%;
}

/* bell button */
.bell {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fff;
}

.bell:hover { border-color: var(--gold); }

.belldot {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--warn);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* user chip */
.userchip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 6px 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.userchip:hover { border-color: var(--gold); }

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy2);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
}

/* alias for testimonial avatar (landing page) */
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy2);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 11px;
  flex-shrink: 0;
}

/* notification panel */
.notifpanel {
  display: none;
  position: absolute;
  top: 68px;
  right: 32px;
  width: 360px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(15,35,64,.18);
  z-index: 30;
  overflow: hidden;
}

.notifpanel.open {
  display: block;
}

.notifrow {
  padding: 13px 16px;
  border-bottom: 1px solid var(--cream);
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.notifrow:hover { background: var(--cream); }

.notiftext { flex: 1; min-width: 0; }

.ndot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 5px;
  flex-shrink: 0;
}

.notifdel {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--muted, #8a93a6);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  opacity: 0;
  transition: opacity .12s;
}

.notifrow:hover .notifdel { opacity: 1; }
.notifdel:hover { color: var(--warn); }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.card.tight { padding: 16px; }
.card.flat  { box-shadow: none; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}

.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-navy   { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy2); border-color: var(--navy2); }

.btn-gold   { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold2); border-color: var(--gold2); }

.btn-ghost  { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--cream2); }

.btn-sm     { padding: 5px 12px; font-size: 12.5px; border-radius: 6px; }
.w100       { width: 100%; }

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
}

.b-ok     { background: #e8f4ec; color: var(--ok); }
.b-warn   { background: #fbeae6; color: var(--warn); }
.b-gold   { background: #f7efd6; color: var(--pend); }
.b-neutral{ background: var(--cream2); color: var(--muted); }
.b-navy   { background: #E8EDF5; color: var(--navy); }

.dotb {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* ── KPI / numbers ─────────────────────────────────────────── */
.kpi {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--navy2);
  line-height: 1;
}

.kpi + .fs12 { margin-top: 6px; }

/* ── Form inputs ───────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 5px; }

.label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.inp {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-family: var(--sans);
  color: var(--text);
  background: #fff;
  transition: border-color .15s;
  outline: none;
}

.inp:focus { border-color: var(--navy); }
.inp::placeholder { color: #b0a898; }

select.inp { cursor: pointer; }
textarea.inp { resize: vertical; }

/* ── Grids ─────────────────────────────────────────────────── */
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 900px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid2, .grid3, .grid4 { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main-inner { padding: 16px; }
}

/* ── Flex helpers ──────────────────────────────────────────── */
.fx  { display: flex; }
.ac  { align-items: center; }
.jb  { justify-content: space-between; }
.jc  { justify-content: center; }
.wrap{ flex-wrap: wrap; }
.tc  { text-align: center; }
.tr  { text-align: right; }
.gap4  { gap: 4px; }
.gap8  { gap: 8px; }
.gap10 { gap: 10px; }
.gap12 { gap: 12px; }
.gap16 { gap: 16px; }
.gap24 { gap: 24px; }

/* ── Spacing helpers ───────────────────────────────────────── */
.mb4 { margin-bottom: 4px; } .mb8 { margin-bottom: 8px; }
.mb12{ margin-bottom:12px; } .mb16{ margin-bottom:16px; }
.mb20{ margin-bottom:20px; } .mb24{ margin-bottom:24px; }
.mt4 { margin-top: 4px; }   .mt8 { margin-top: 8px; }
.mt12{ margin-top:12px; }   .mt16{ margin-top:16px; }
.mt24{ margin-top:24px; }   .mt32{ margin-top:32px; }

/* ── Typography helpers ────────────────────────────────────── */
.serif   { font-family: var(--serif); }
.muted   { color: var(--muted); }
.navyc   { color: var(--navy); }
.goldish { color: var(--gold); }
.gold    { color: var(--gold); }
.fw4 { font-weight: 400; } .fw6 { font-weight: 600; } .fw7 { font-weight: 700; }
.fs12 { font-size: 12px; } .fs13 { font-size: 13px; } .fs14 { font-size: 14px; }
.fs15 { font-size: 15px; } .fs16 { font-size: 16px; } .fs18 { font-size: 18px; }
.fs20 { font-size: 20px; } .fs24 { font-size: 24px; } .fs28 { font-size: 28px; }
.fs34 { font-size: 34px; } .mark { font-family: var(--serif); font-style: italic; }
.nowrap { white-space: nowrap; }

/* ── Table ─────────────────────────────────────────────────── */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.tbl td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--cream); }

/* ── Divider ───────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--line);
  margin: 12px 0;
}

/* ── Notes / alerts ────────────────────────────────────────── */
.note {
  background: #FDF3E3;
  border: 1px solid #F0D9B0;
  border-radius: var(--r-sm);
  padding: 12px 16px;
  font-size: 13.5px;
  color: #7A5520;
}

.okbox {
  background: #E8F8F0;
  border: 1px solid #A9DFBF;
  border-radius: var(--r-sm);
  padding: 12px 16px;
  font-size: 13.5px;
  color: #1E6B3C;
}

.warnbox {
  background: #FDEDEC;
  border: 1px solid #F1948A;
  border-radius: var(--r-sm);
  padding: 12px 16px;
  font-size: 13.5px;
  color: #922B21;
}

/* ── Modals ────────────────────────────────────────────────── */
.modalbg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
}

.panel, .rsvppanel {
  background: #fff;
  border-radius: var(--r);
  padding: 32px;
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
}

/* ── Budget bar ────────────────────────────────────────────── */
.budgbar-wrap {
  height: 8px;
  background: var(--cream2);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 6px;
}

.budgbar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  transition: width .4s;
}

.budgbar-fill.over { background: var(--warn); }

/* ── Pill row (radio-style) ────────────────────────────────── */
.pillrow { display: flex; gap: 8px; flex-wrap: wrap; }

.selpill {
  padding: 7px 14px;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--muted);
  transition: all .15s;
  user-select: none;
}

.selpill.on {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ── Landing page ──────────────────────────────────────────── */
.land { min-height: 100vh; background: var(--cream); color: var(--text); }

.lwrap { max-width: 1120px; margin: 0 auto; padding: 0 48px; }

/* sticky cream navbar */
.lnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.lnav-r { display: flex; align-items: center; gap: 28px; }

.lnav-link {
  font-size: 13.5px;
  color: var(--navy);
  text-decoration: none;
  opacity: .75;
  font-weight: 500;
}
.lnav-link:hover { opacity: 1; }

/* "Made for Filipino weddings" ornament */
.kick {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  color: var(--gold2);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
}
.kick::before, .kick::after {
  content: '';
  height: 1px;
  width: 46px;
  background: var(--gold);
}

/* centered hero */
.hero2 {
  text-align: center;
  padding: 72px 48px 0;
}

.hero2 .lead {
  font-size: 19px;
  color: var(--navy);
  opacity: .7;
  line-height: 1.6;
  max-width: 560px;
  margin: 24px auto 0;
}

.ampg {
  font-family: 'Cormorant Garamond', var(--serif);
  font-style: italic;
  font-weight: 600;
  color: var(--gold2);
}

/* stat strip */
.statstrip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 760px;
  margin: 60px auto 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.statcell {
  padding: 24px 16px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.statcell:last-child { border-right: none; }

.statnum {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 34px;
  color: var(--navy);
}

.statlbl {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* section wrapper */
.lsec { padding: 84px 0; }

.lsec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.lsec-kick {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold2);
  font-weight: 600;
}

.lsec-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 42px;
  color: var(--navy);
  line-height: 1.08;
  margin-top: 10px;
  max-width: 16ch;
}

/* role index list */
.roleidx { border-top: 1px solid var(--line); }

.roleitem {
  display: grid;
  grid-template-columns: 64px 1fr 2fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding-left .2s, background .2s;
  text-decoration: none;
  color: inherit;
}
.roleitem:hover { background: #fff; padding-left: 20px; }

.roleno {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--gold2);
}

.roletitle {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
}

.roledesc { font-size: 14.5px; color: var(--navy); opacity: .65; line-height: 1.55; }

.rolearrow { font-size: 22px; color: var(--gold2); opacity: 0; transition: opacity .2s, transform .2s; }
.roleitem:hover .rolearrow { opacity: 1; transform: translateX(4px); }

/* how it works navy band */
.howband { background: var(--navy2); color: #fff; }

.howgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }

.howstep { border-top: 1px solid rgba(196,148,58,.4); padding-top: 18px; }

.howno {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.howt { font-weight: 700; font-size: 17px; margin-top: 14px; color: #fff; }
.howd { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.55; margin-top: 8px; }

/* featured supplier cards */
.featimg {
  height: 200px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #fff;
  background: linear-gradient(160deg, var(--navy2), var(--navy));
}

/* testimonials quote grid */
.qgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.qcard { position: relative; padding-top: 8px; }

.qmark {
  font-family: var(--serif);
  font-size: 70px;
  line-height: .6;
  color: var(--gold);
  height: 42px;
  display: block;
}

/* CTA navy section */
.cta2 {
  background: var(--navy2);
  color: #fff;
  text-align: center;
  padding: 96px 48px;
}

/* landing footer */
.lfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 48px;
  background: #0a1830;
  flex-wrap: wrap;
  gap: 12px;
}

.lsp { letter-spacing: .14em; }
.lsp2 { letter-spacing: .04em; }
.upper { text-transform: uppercase; }
.nowrap { white-space: nowrap; }
.pointer { cursor: pointer; }
.gap32 { gap: 32px; }

/* progress bar (used in budget views) */
.bar { height: 7px; background: var(--cream2); border-radius: 99px; overflow: hidden; }
.barfill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold2)); border-radius: 99px; }
.barfill.over { background: var(--warn); }

/* scroll anchor offset */
.scroll-mt { scroll-margin-top: 84px; }

/* ── Auth pages ────────────────────────────────────────────── */
.signwrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  padding: 24px;
}

.signbox {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}

.signcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 40px;
  width: 100%;
  max-width: clamp(440px, 42vw, 780px);
  box-shadow: var(--shadow-lg);
}

.back-home-link {
  position: absolute;
  top: 24px;
  left: 24px;
}

.signbox .logo {
  text-align: center;
  margin-bottom: 28px;
}

.signbox .logotype {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}

/* ── Messaging ─────────────────────────────────────────────── */
/* .page-flush: lets a page fill exactly the space below the topbar (whatever
   its rendered height is) with no page-level scroll — only the panels inside
   scroll. Used by Messages so the composer is never pushed below the fold. */
.shell:has(.page-flush) { height: 100vh; }
.shell:has(.page-flush) .main { overflow: hidden; }
.page.page-flush {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.msgwrap {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.threadcol {
  width: 280px;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  overflow-y: auto;
  background: #fff;
}

.threaditem {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .12s;
  display: block;
}

.threaditem:hover { background: var(--cream); }
.threaditem.on    { background: var(--cream2); border-left: 3px solid var(--navy); }

.unreaddot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
  display: inline-block;
  flex-shrink: 0;
}

.convcol {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--cream);
}

.convhd {
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.convbody {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bubble {
  max-width: 60%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  word-break: break-word;
}

.bubble.me {
  background: var(--navy);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.bubble.them {
  background: #fff;
  border: 1px solid var(--line);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.msgtime {
  font-size: 10px;
  opacity: .55;
  margin-top: 4px;
}

.composer {
  padding: 14px 16px;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.composer .inp { flex: 1; }

.emptyconv {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 15px;
  font-style: italic;
}

/* ── Microsite / public wedding page ───────────────────────── */
.msite { min-height: 100vh; }

.msitehero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  color: #fff;
}

.msitehero .btn-gold {
  background: var(--gold);
  border: none;
  color: #fff;
  padding: 12px 32px;
  font-size: 13px;
  letter-spacing: .12em;
  border-radius: 8px;
}

.msitebody {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 24px;
}

/* ── Supplier category icons ───────────────────────────────── */
.cat-ico {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  color: rgba(255,255,255,.9);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Star rating ───────────────────────────────────────────── */
.stars { color: var(--gold); font-size: 15px; letter-spacing: 1px; }

/* ── Signup role picker ────────────────────────────────────── */
.rolepick {
  display: block;
  padding: 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.rolepick:hover { border-color: var(--gold); }
.rolepick.on {
  border-color: var(--gold);
  background: #FBF4E4;
}
.rolepick.on .cat-ico {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
}

/* ── Supplier profile card on marketplace ──────────────────── */
.sup-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: box-shadow .2s;
  cursor: pointer;
}

.sup-card:hover { box-shadow: var(--shadow-lg); }

.sup-card-body { padding: 16px; }

/* ── Budget category list ──────────────────────────────────── */
.budg-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.budg-row:last-child { border-bottom: none; }

/* ── Program row drag handle (future) ──────────────────────── */
.prog-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.prog-row .time-chip {
  min-width: 60px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold2);
  font-family: var(--sans);
}

/* ── Modal inner structure ─────────────────────────────────── */
.modal {
  background: #fff;
  border-radius: var(--r);
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modalhd {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modalbd {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.x {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.x:hover { background: var(--cream2); }

/* ── Extra badge / utility variants ────────────────────────── */
.b-pend { background: var(--pendbg); color: var(--pend); }
.b-info { background: var(--cream2); color: var(--muted); }
.star   { color: var(--gold); font-size: 15px; letter-spacing: 1px; }

/* table row actions */
.rowact { display: flex; gap: 10px; justify-content: flex-end; }

/* inline text links */
.lnk { cursor: pointer; font-weight: 600; font-size: 12.5px; color: var(--navy); background: none; border: none; }
.lnk:hover { color: var(--navy2); text-decoration: underline; }
.lnk.del { color: var(--warn); }
.lnk.del:hover { color: var(--warn); }

/* ── Toast notifications ───────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s;
  max-width: 320px;
  pointer-events: auto;
}

.toast.in {
  opacity: 1;
  transform: translateY(0);
}

/* ── Logobox (sidebar + landing) ───────────────────────────── */
.logobox {
  min-width: 54px; height: 42px;
  padding: 0 10px;
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 16px;
  letter-spacing: .03em;
  line-height: 1;
  flex-shrink: 0;
}

/* ── Supplier card thumbnail ──────────────────────────────── */
.supplier-thumb {
  height: 150px;
  border-bottom: 1px solid var(--line);
  background-size: cover;
  background-position: center;
}

.supplier-thumb-watermark {
  background: var(--cream2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.supplier-thumb-watermark .wm-mark {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 28px;
  letter-spacing: .03em;
  color: var(--line);
  border: 2px solid var(--line);
  min-width: 84px;
  height: 84px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Landing page — featured supplier cards ─────────────────── */
.feat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.featcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.featcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(27,51,90,.13);
}

/* ── Responsive landing ────────────────────────────────────── */
@media (max-width: 960px) {
  .lnav { padding: 14px 24px; }
  .lwrap { padding: 0 24px; }
  .hero2 { padding: 56px 24px 0; }
  .hero2 .lead { font-size: 16px; }
  .lsec { padding: 56px 0; }
  .lsec-title { font-size: 32px; }
  .howgrid { grid-template-columns: repeat(2, 1fr); }
  .feat { grid-template-columns: 1fr; }
  .qgrid { grid-template-columns: 1fr; }
  .cta2 { padding: 64px 24px; }
  .cta2 h2 { font-size: 36px !important; }
  .lfoot { padding: 20px 24px; flex-direction: column; gap: 8px; text-align: center; }
  .roleitem { grid-template-columns: 48px 1fr auto; }
  .roledesc { display: none; }
  .statstrip { max-width: 100%; }
  .gap32 { gap: 20px; }
}

@media (max-width: 600px) {
  .howgrid { grid-template-columns: 1fr; }
  .roleitem { grid-template-columns: 48px 1fr auto; }
  .lsec-head { flex-direction: column; }
}

/* ── Scrollbar styling (WebKit) ────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
