/* ============================================================
   ETHGlobal Communities — Design System
   Mirrors mentorshift-mockup.html style and extends it.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-muted: #f4f4f5;
  --border: #e5e7eb;
  --border-soft: #f1f1f3;
  --text: #0f0f10;
  --text-2: #4b5563;
  --text-3: #6b7280;
  --text-4: #9ca3af;
  --green: #10b981;
  --green-dark: #047857;
  --green-light: #d1fae5;
  --green-bg: #ecfdf5;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --blue-light: #dbeafe;
  --amber: #f59e0b;
  --amber-light: #fef3c7;
  --red: #ef4444;
  --red-light: #fee2e2;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.10);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ==================== HEADER ==================== */
.site-header {
  background: linear-gradient(105deg, #fde2cf 0%, #efd9ee 42%, #d3e0f3 100%);
  padding: 22px 32px 0;
}
.header-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.45);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  border: 1.5px solid rgba(255,255,255,0.65);
}
.brand h1 { font-size: 22px; font-weight: 700; color: #0f0f10; letter-spacing: -0.01em; }
.brand-thin { font-weight: 500; color: #4b5563; }
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  color: #4b5563; font-size: 14px; font-weight: 500;
  padding: 8px 0; position: relative; transition: color 0.15s;
}
.main-nav a:hover { color: #0f0f10; }
.main-nav a.active { color: #0f0f10; font-weight: 700; }
.main-nav a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: #0f0f10; border-radius: 2px 2px 0 0;
}

.page-toggle-wrap {
  display: flex; justify-content: center; align-items: center;
  padding: 22px 32px 26px;
  background: linear-gradient(180deg, rgba(253,226,207,0) 0%, rgba(253,226,207,0.4) 100%);
}
.page-toggle {
  display: inline-flex; background: rgba(255,255,255,0.55);
  border-radius: 999px; padding: 4px;
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow-sm);
}
.page-toggle button {
  padding: 9px 18px; border-radius: 999px; border: none;
  background: transparent;
  font-size: 13px; font-weight: 600; color: #4b5563;
  transition: all 0.15s;
  display: flex; align-items: center; gap: 8px;
}
.page-toggle button.active { background: white; color: #0f0f10; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.page-toggle button:hover:not(.active) { color: #0f0f10; }
.toggle-pill {
  display: inline-flex; align-items: center;
  background: var(--red); color: white;
  font-size: 10px; font-weight: 700;
  padding: 1px 7px; border-radius: 999px;
}

/* ==================== MAIN ==================== */
main { max-width: 1400px; margin: 0 auto; padding: 28px 32px 64px; }
.view { display: none; }
.view.active { display: block; }

h2 { font-size: 30px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.02em; line-height: 1.15; }
h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.intro { color: var(--text-2); margin-bottom: 28px; font-size: 15px; max-width: 980px; line-height: 1.6; }
.eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 6px; }
.section-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 10px; }
.panel-sub { color: var(--text-2); font-size: 13px; margin-top: 4px; }

/* ==================== HERO ROW ==================== */
.hero-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 24px; flex-wrap: wrap;
}
.hero-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ==================== SUB NAV ==================== */
.subnav {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.subnav-inner {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.community-pill {
  display: flex; align-items: center; gap: 12px;
  padding-right: 24px;
  border-right: 1px solid var(--border);
}
.community-pill-logo {
  width: 42px; height: 42px;
  background: var(--bg-muted);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.community-pill-name { font-weight: 700; font-size: 15px; }
.community-pill-meta { font-size: 12px; color: var(--text-3); margin-top: 1px; }

.subnav-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.subnav-tabs button {
  border: none; background: transparent;
  padding: 8px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.15s;
}
.subnav-tabs button:hover { background: var(--bg-muted); color: var(--text); }
.subnav-tabs button.active { background: var(--text); color: white; }
.subnav-tabs button.active .tab-count { background: rgba(255,255,255,0.2); color: white; }
.tab-count {
  background: var(--bg-muted); padding: 1px 7px; border-radius: 999px;
  font-size: 11px; font-weight: 700; color: var(--text-2);
}
.tab-count-warn { background: var(--red-light); color: var(--red); }

.subnav-actions { margin-left: auto; display: flex; gap: 8px; }

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--text); color: white; }
.btn-primary:hover { background: #1f2937; transform: translateY(-1px); }
.btn-dark { background: var(--text); color: white; }
.btn-dark:hover { background: #1f2937; transform: translateY(-1px); }
.btn-ghost { background: white; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text); transform: translateY(-1px); }
.btn-success { background: var(--green); color: white; }
.btn-success:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-warn { background: var(--amber); color: white; }
.btn-warn:hover { background: #d97706; transform: translateY(-1px); }
.btn-danger { background: var(--red); color: white; }
.btn-danger:hover { background: #dc2626; transform: translateY(-1px); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-sm-row { padding: 4px 10px; font-size: 12px; }

/* ==================== STAT CARDS ==================== */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px; margin-bottom: 24px;
}
.stat-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  position: relative; overflow: hidden;
}
.stat-card .stat-value { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 4px; }
.stat-card .stat-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.stat-card .stat-bar { margin-top: 12px; height: 5px; background: var(--bg-muted); border-radius: 3px; overflow: hidden; }
.stat-card .stat-bar-fill { height: 100%; border-radius: 3px; }
.stat-card .stat-foot { font-size: 11px; color: var(--text-3); margin-top: 8px; }
.stat-card.green .stat-value { color: var(--green); }
.stat-card.green .stat-bar-fill { background: var(--green); }
.stat-card.amber .stat-value { color: var(--amber); }
.stat-card.amber .stat-bar-fill { background: var(--amber); }
.stat-card.purple .stat-value { color: var(--purple); }
.stat-card.purple .stat-bar-fill { background: var(--purple); }
.stat-card.blue .stat-value { color: var(--blue); }
.stat-card.blue .stat-bar-fill { background: var(--blue); }

/* ==================== PANEL ==================== */
.panel {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 20px;
}
.panel-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 18px; flex-wrap: wrap;
}
.panel-link { font-size: 12px; color: var(--green-dark); font-weight: 600; }
.panel-link:hover { text-decoration: underline; }
.panel-actions {
  display: flex; justify-content: flex-end; gap: 8px;
  margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--border-soft);
}
.panel-feature {
  background: linear-gradient(180deg, #f9fafb 0%, white 100%);
  border-color: var(--border);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.grid-2-tight {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 900px) {
  .grid-2, .grid-2-tight { grid-template-columns: 1fr; }
}

/* ==================== BADGES ==================== */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.badge-green { background: var(--green-bg); color: var(--green-dark); }
.badge-purple { background: #f3e8ff; color: #6d28d9; }
.badge-amber { background: var(--amber-light); color: #92400e; }
.badge-blue { background: var(--blue-light); color: #1e40af; }
.badge-red { background: var(--red-light); color: #b91c1c; }
.badge-gray { background: var(--bg-muted); color: var(--text-2); }

/* ==================== PERKS TRACK ==================== */
.perks-track { margin: 8px 0 20px; }
.perks-bar {
  position: relative;
  height: 12px;
  background: var(--bg-muted);
  border-radius: 6px;
  overflow: visible;
}
.perks-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green) 0%, #34d399 100%);
  border-radius: 6px;
  transition: width 0.5s;
}
.perks-bar-marker {
  position: absolute; top: -6px; transform: translateX(-50%);
  width: 3px; height: 24px;
  background: var(--text-3);
  border-radius: 2px;
}
.perks-bar-marker span {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  font-size: 11px; color: var(--text-2); font-weight: 600;
  margin-bottom: 4px; white-space: nowrap;
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.perks-bar-marker-next { background: var(--green); width: 3px; }
.perks-bar-marker-next span { color: var(--green-dark); border-color: var(--green-light); }
.perks-bar-legend {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--text-3); font-weight: 600;
  margin-top: 10px;
}

/* Current position dot on perks bar */
.perks-bar-current {
  position: absolute; top: -10px;
  transform: translateX(-50%);
  width: 22px; height: 22px;
  background: var(--green);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
  transition: left 0.5s;
}
.perks-bar-current .pbc-label {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  margin-top: 4px; font-size: 10px; color: var(--green-dark);
  font-weight: 700; white-space: nowrap;
  background: white; padding: 1px 6px; border-radius: 4px;
  border: 1px solid var(--green-light);
}

.tier-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--green-bg); color: var(--green-dark);
  font-size: 11px; font-weight: 700;
}
.tier-pill-current { background: var(--text); color: white; }

/* ==================== PERKS GRID ==================== */
.perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.perk-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  position: relative;
  background: white;
}
.perk-card.unlocked { border-color: var(--green-light); background: linear-gradient(180deg, #f0fdf4 0%, white 60%); }
.perk-card.locked { opacity: 0.7; background: var(--bg-soft); }
.perk-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.perk-tier-tag {
  display: inline-flex; align-items: center;
  background: var(--bg-muted); color: var(--text-2);
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.perk-card.unlocked .perk-tier-tag { background: var(--green-light); color: var(--green-dark); }
.perk-check { color: var(--green); font-weight: 700; font-size: 16px; }
.perk-lock { font-size: 12px; }
.perk-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.perk-desc { font-size: 12px; color: var(--text-2); line-height: 1.5; }

/* ==================== ACTIVITY FEED ==================== */
.activity-feed { list-style: none; }
.activity-feed li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
}
.activity-feed li:last-child { border-bottom: none; }
.activity-feed .a-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 14px;
  background: var(--bg-muted);
}
.activity-feed .a-icon.ticket { background: var(--green-light); }
.activity-feed .a-icon.invoice { background: var(--blue-light); }
.activity-feed .a-icon.perk { background: #f3e8ff; }
.activity-feed .a-icon.social { background: var(--amber-light); }
.activity-feed .a-icon.event { background: var(--blue-light); }
.activity-feed .a-icon.payout { background: var(--green-light); }
.activity-feed .a-icon.proposal { background: var(--amber-light); }
.activity-feed .a-text { flex: 1; min-width: 0; }
.activity-feed .a-text strong { display: block; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.activity-feed .a-meta { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.activity-feed .a-time { font-size: 11px; color: var(--text-3); flex-shrink: 0; }

/* ==================== UPCOMING LIST ==================== */
.upcoming-list { list-style: none; }
.upcoming-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}
.upcoming-list li:last-child { border-bottom: none; }
.upcoming-list .u-date {
  text-align: center; flex-shrink: 0;
  background: var(--bg-muted); border-radius: 8px;
  padding: 8px 10px; min-width: 52px;
}
.upcoming-list .u-date .d-day { font-size: 18px; font-weight: 700; line-height: 1; }
.upcoming-list .u-date .d-mo { font-size: 10px; color: var(--text-3); text-transform: uppercase; font-weight: 600; margin-top: 2px; }
.upcoming-list .u-info { flex: 1; min-width: 0; }
.upcoming-list .u-title { font-weight: 600; font-size: 14px; }
.upcoming-list .u-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ==================== EG STRIP (ETHGlobal events summary) ==================== */
.eg-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px;
}
.eg-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; background: white;
  display: flex; flex-direction: column; gap: 8px;
}
.eg-card-head { display: flex; justify-content: space-between; align-items: flex-start; }
.eg-card-name { font-weight: 700; font-size: 14px; }
.eg-card-meta { font-size: 12px; color: var(--text-3); }
.eg-card-stat { font-size: 12px; display: flex; justify-content: space-between; align-items: center; }
.eg-card-stat strong { font-size: 16px; font-weight: 700; }
.eg-progress { height: 4px; background: var(--bg-muted); border-radius: 2px; overflow: hidden; }
.eg-progress-fill { height: 100%; background: var(--green); border-radius: 2px; }

/* ==================== EVENT GRID ==================== */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.event-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all 0.15s;
  cursor: pointer;
}
.event-card:hover {
  border-color: var(--green); transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.event-card-cover {
  height: 140px;
  background-size: cover; background-position: center;
  position: relative;
}
.event-card-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.6) 100%);
}
.event-card-status {
  position: absolute; top: 12px; right: 12px;
  z-index: 1;
}
.event-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.event-card-title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.event-card-meta { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 4px; }
.event-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-soft);
  font-size: 12px; color: var(--text-2);
}
.event-card-footer .ec-stat { display: flex; gap: 4px; align-items: center; }
.event-card-footer .ec-stat strong { color: var(--text); font-weight: 700; }
.event-progress { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-3); }
.event-progress-bar { flex: 1; height: 4px; background: var(--bg-muted); border-radius: 2px; overflow: hidden; }
.event-progress-bar-fill { height: 100%; background: var(--green); border-radius: 2px; }

.cover-placeholder {
  background: linear-gradient(135deg, #fde2cf 0%, #efd9ee 50%, #d3e0f3 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 42px;
}

/* ==================== EVENT DETAIL ==================== */
.event-detail-head {
  display: flex; gap: 20px;
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.event-detail-cover {
  width: 280px; flex-shrink: 0;
  background-size: cover; background-position: center;
}
.event-detail-info { padding: 24px; flex: 1; }
.event-detail-info h2 { margin-bottom: 12px; }
.event-detail-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--text-2); font-size: 13px; margin-bottom: 16px; }
.event-detail-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

.event-detail-tabs {
  display: flex; gap: 4px;
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  margin-bottom: 16px;
  overflow-x: auto;
}
.event-detail-tabs button {
  border: none; background: transparent;
  padding: 8px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  white-space: nowrap;
}
.event-detail-tabs button:hover { background: var(--bg-muted); }
.event-detail-tabs button.active { background: var(--text); color: white; }

.event-sub-panel { display: none; }
.event-sub-panel.active { display: block; }

/* Invoice lines */
.invoice-summary {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px; margin-bottom: 18px;
}
.invoice-line-items { margin: 12px 0; }
.invoice-line-row {
  display: grid; grid-template-columns: 1fr 120px 80px;
  gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px; align-items: center;
}
.invoice-line-row:last-child { border-bottom: none; }
.invoice-line-row .il-amount { font-weight: 600; text-align: right; }
.invoice-line-row .il-status { text-align: right; }

.invoice-status-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
}
.invoice-status-pill.paid { background: var(--green-bg); color: var(--green-dark); }
.invoice-status-pill.pending_review { background: var(--amber-light); color: #92400e; }
.invoice-status-pill.approved { background: var(--blue-light); color: #1e40af; }
.invoice-status-pill.not_submitted { background: var(--bg-muted); color: var(--text-3); }

/* Retro */
.retro-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px; margin-bottom: 16px;
}
.retro-stat {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
}
.retro-stat .rs-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 6px; }
.retro-stat .rs-value { font-size: 22px; font-weight: 700; }
.retro-stat .rs-list { list-style: none; margin-top: 6px; }
.retro-stat .rs-list li { font-size: 13px; padding: 4px 0; display: flex; gap: 6px; }
.retro-stat .rs-list li::before { content: '•'; color: var(--green); }

.retro-rating { display: inline-flex; gap: 2px; }
.retro-rating .star { color: var(--border); font-size: 18px; }
.retro-rating .star.active { color: var(--amber); }

/* Media gallery */
.media-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.media-item {
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-muted);
  position: relative; aspect-ratio: 1;
  cursor: pointer;
  transition: all 0.15s;
}
.media-item:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.media-item .mi-bg {
  width: 100%; height: 100%;
  background-size: cover; background-position: center;
}
.media-item .mi-type {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,0.6); color: white;
  font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.media-item .mi-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 100%);
  color: white; font-size: 11px; padding: 16px 10px 8px;
}
.media-upload-tile {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 12px;
  aspect-ratio: 1;
  cursor: pointer;
  transition: all 0.15s;
}
.media-upload-tile:hover { border-color: var(--green); color: var(--green); }
.media-upload-tile .mu-icon { font-size: 24px; margin-bottom: 6px; }

/* Social posts */
.social-list { display: flex; flex-direction: column; gap: 10px; }
.social-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px;
  display: flex; align-items: flex-start; gap: 12px;
  transition: all 0.15s;
}
.social-item:hover { border-color: var(--text-3); }
.social-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.social-icon.x { background: var(--text); color: white; }
.social-icon.farcaster { background: #8a5cff; color: white; }
.social-body { flex: 1; min-width: 0; }
.social-label { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.social-url { font-size: 12px; color: var(--text-3); word-break: break-all; }
.social-stats { display: flex; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--text-2); }

/* ==================== REFERRAL CARD ==================== */
.referral-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) { .referral-grid { grid-template-columns: 1fr; } }

.ref-label { font-size: 12px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.ref-count {
  font-size: 56px; font-weight: 700; letter-spacing: -0.03em; line-height: 1;
  margin-bottom: 8px;
  cursor: text;
  outline: none;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.15s;
  display: inline-block;
  min-width: 80px;
}
.ref-count:hover { background: var(--bg-muted); }
.ref-count:focus { background: var(--bg-muted); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15); }

.progress-bar {
  width: 100%; height: 22px; background: var(--bg-muted);
  border-radius: 11px; overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, #2563eb 100%);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 10px; color: white;
  font-size: 11px; font-weight: 700;
  transition: width 0.5s;
}
.ref-progress-text { display: flex; gap: 6px; font-size: 12px; color: var(--text-2); margin-top: 8px; }
.ref-progress-next { color: var(--green-dark); font-weight: 600; }

.ref-row {
  display: flex; gap: 8px; align-items: center;
}
.ref-code, .ref-link {
  flex: 1; padding: 12px 14px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px; min-width: 0;
}
.ref-link { font-size: 12px; word-break: break-all; }

.perks-summary {
  margin-top: 24px; padding: 18px;
  background: var(--green-bg);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
}
.perks-summary-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; color: var(--green-dark);
  margin-bottom: 12px;
}
.perks-summary-head::before {
  content: '🎉'; font-size: 18px;
}
.perks-summary-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
@media (max-width: 600px) { .perks-summary-list { grid-template-columns: 1fr; } }
.perks-summary-list li { font-size: 13px; display: flex; align-items: flex-start; gap: 6px; color: var(--text); }
.perks-summary-list li::before { content: '✓'; color: var(--green-dark); font-weight: 700; flex-shrink: 0; }
.perks-earnings {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid #a7f3d0;
  font-weight: 700; color: var(--green-dark);
  font-size: 14px;
}

/* ==================== PERKS TABLE ==================== */
.perks-table-wrap { overflow-x: auto; }
.perks-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.perks-table thead { background: var(--bg-soft); }
.perks-table th {
  text-align: center; padding: 12px;
  font-size: 11px; font-weight: 700; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
}
.perks-table th:first-child { text-align: left; }
.perks-table td {
  padding: 12px; text-align: center;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.perks-table td:first-child { text-align: left; font-weight: 500; }
.perks-table tr:last-child td { border-bottom: none; }
.perks-table .perk-cell-check { color: var(--green); font-weight: 700; }
.perks-table .perk-cell-x { color: var(--text-4); }
.perks-table .perk-cell-text { font-size: 11px; }
.perks-table .tier-current-col { background: rgba(16, 185, 129, 0.05); }
.perks-table .tier-current-col td { background: rgba(16, 185, 129, 0.05); }

/* ==================== TABS ==================== */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ==================== SEARCH + FILTER ==================== */
.search-filter-row {
  display: flex; gap: 12px; margin-bottom: 16px;
  flex-wrap: wrap; align-items: center;
}
.search-bar { position: relative; flex: 1; min-width: 240px; max-width: 460px; }
.search-bar input {
  width: 100%; padding: 10px 14px 10px 38px;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px; background: white;
  transition: all 0.15s; color: var(--text);
  font-family: inherit;
}
.search-bar input:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}
.search-bar input::placeholder { color: var(--text-4); }
.search-bar .search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-4); pointer-events: none; font-size: 13px;
}
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: white;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  cursor: pointer; transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { border-color: #d4d4d8; color: var(--text); }
.chip.active { background: var(--text); color: white; border-color: var(--text); }
.chip .count {
  background: var(--bg-muted); padding: 1px 7px; border-radius: 999px;
  font-size: 11px; font-weight: 700; color: var(--text-2);
}
.chip.active .count { background: rgba(255,255,255,0.2); color: white; }

.back-link {
  background: transparent; border: none; color: var(--text-2);
  font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 0; margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 4px;
}
.back-link:hover { color: var(--text); }

/* ==================== PUBLIC SITE ==================== */
.public-hero {
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  padding: 64px 32px;
  text-align: center;
}
.public-hero-inner { max-width: 720px; margin: 0 auto; }
.public-hero-logo {
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.7);
  border: 1.5px solid rgba(255,255,255,0.8);
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-md);
}
.public-hero-title { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 8px; }
.public-hero-tag { font-size: 16px; color: var(--text-2); margin-bottom: 32px; }
.public-hero-stats {
  display: flex; justify-content: center; gap: 48px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.public-hero-stats > div { text-align: center; }
.public-hero-stats strong { display: block; font-size: 24px; font-weight: 700; }
.public-hero-stats span { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.public-hero-cta { display: flex; gap: 12px; justify-content: center; }

.public-body { max-width: 900px; margin: 0 auto; }
.public-section { margin-bottom: 48px; }
.public-section h3 { font-size: 24px; margin-bottom: 12px; }
.public-prose { font-size: 15px; color: var(--text-2); line-height: 1.7; max-width: 720px; }

.public-event-list { display: flex; flex-direction: column; gap: 12px; }
.public-event-row {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 16px;
}
.public-event-date {
  text-align: center; background: var(--bg-muted);
  border-radius: 8px; padding: 8px 12px;
  flex-shrink: 0;
}
.public-event-date .d-day { font-size: 20px; font-weight: 700; line-height: 1; }
.public-event-date .d-mo { font-size: 10px; color: var(--text-3); text-transform: uppercase; font-weight: 600; margin-top: 2px; }
.public-event-title { font-weight: 700; font-size: 15px; }
.public-event-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.public-event-row > div:nth-child(2) { flex: 1; }

.public-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.public-gallery-item {
  aspect-ratio: 4/3;
  background-size: cover; background-position: center;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
}
.public-gallery-item:hover { transform: scale(1.02); }
.public-gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, transparent 50%);
}
.public-gallery-item .pgi-caption {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  color: white; font-size: 13px; font-weight: 600;
  z-index: 1;
}

.public-cta {
  background: linear-gradient(135deg, #fde2cf 0%, #efd9ee 50%, #d3e0f3 100%);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
}
.public-cta h3 { font-size: 28px; margin-bottom: 8px; }
.public-cta p { color: var(--text-2); margin-bottom: 20px; }

/* ==================== 3D GLOBE ==================== */
.globe-wrap {
  position: relative;
  background: radial-gradient(ellipse at center, #1f2937 0%, #0f172a 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
  overflow: hidden;
}
.globe-stage {
  position: relative;
  width: 100%;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.globe-loading {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.globe-svg {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}
.globe-svg:active { cursor: grabbing; }

.globe-sphere {
  fill: rgba(59, 130, 246, 0.04);
  stroke: rgba(148, 163, 184, 0.25);
  stroke-width: 1;
}
.globe-graticule {
  fill: none;
  stroke: rgba(148, 163, 184, 0.08);
  stroke-width: 0.5;
}
.globe-country {
  fill: rgba(148, 163, 184, 0.35);
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 0.4;
  transition: fill 0.15s;
}
.globe-pin {
  cursor: pointer;
}
.globe-pin-dot {
  fill: #10b981;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.6));
  transition: r 0.15s, fill 0.15s;
}
.globe-pin-pulse {
  fill: #10b981;
  opacity: 0.3;
  animation: globe-pulse 2.4s ease-out infinite;
  transform-origin: center;
}
.globe-pin:hover .globe-pin-dot {
  fill: #fbbf24;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.8));
}
@keyframes globe-pulse {
  0%   { r: 4; opacity: 0.5; }
  100% { r: 16; opacity: 0; }
}

.globe-tooltip {
  position: absolute;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 10;
  min-width: 200px;
  max-width: 240px;
}
.globe-tooltip.show { opacity: 1; }
.globe-tooltip-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
}
.globe-tooltip-logo {
  width: 32px; height: 32px;
  background: var(--bg-muted);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.globe-tooltip-name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.globe-tooltip-loc { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.globe-tooltip-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-2);
  padding: 3px 0;
}
.globe-tooltip-row strong { color: var(--text); font-weight: 700; }
.globe-tooltip-type {
  display: inline-block;
  background: var(--bg-muted);
  color: var(--text-2);
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  margin-top: 6px;
}
.globe-legend {
  position: absolute;
  bottom: 16px; left: 16px;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 11px; color: rgba(255,255,255,0.7);
}
.globe-legend-item { display: flex; align-items: center; gap: 6px; }
.globe-legend-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #10b981; box-shadow: 0 0 4px #10b981;
}
.globe-stats {
  position: absolute;
  top: 16px; right: 16px;
  display: flex; gap: 18px;
  font-size: 11px; color: rgba(255,255,255,0.7);
}
.globe-stat-num {
  display: block;
  font-size: 18px; font-weight: 700;
  color: white; line-height: 1.1;
}

@media (max-width: 720px) {
  .globe-stage { height: 380px; }
  .globe-stats { display: none; }
}

/* ==================== TIER TEMPLATES (STAFF) ==================== */
.tier-templates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.tier-template-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.tier-template-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.tier-template-name { font-weight: 700; font-size: 14px; }
.tier-template-thresholds {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.tier-template-threshold {
  text-align: center;
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
}
.tt-count {
  font-size: 18px; font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.tt-perks {
  font-size: 9px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.04em;
  font-weight: 600; margin-top: 4px;
}
.tier-template-actions {
  display: flex; gap: 6px;
  border-top: 1px solid var(--border-soft);
  padding-top: 10px;
}

/* ==================== COMMUNITIES (APPLY) SURFACE ==================== */
.apply-hero {
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  padding: 72px 32px;
  text-align: center;
}
.apply-hero-inner { max-width: 720px; margin: 0 auto; }
.apply-hero-title { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 8px 0 12px; }
.apply-hero-tag { font-size: 16px; color: var(--text-2); line-height: 1.5; margin-bottom: 24px; }
.apply-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.apply-hero-meta { font-size: 12px; color: var(--text-3); margin-top: 16px; }

.apply-body { max-width: 1100px; margin: 0 auto; }
.apply-section { margin-bottom: 56px; }
.apply-section h3 { font-size: 28px; letter-spacing: -0.02em; margin-bottom: 12px; }
.apply-prose { color: var(--text-2); font-size: 15px; line-height: 1.6; margin-bottom: 20px; max-width: 720px; }

/* Communities directory */
.communities-directory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.community-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all 0.15s; cursor: pointer;
}
.community-card:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.community-card-cover {
  height: 100px;
  background-size: cover; background-position: center;
  position: relative;
  background-color: var(--bg-muted);
}
.community-card-logo {
  position: absolute; bottom: -18px; left: 14px;
  width: 44px; height: 44px;
  background: white;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.community-card-body { padding: 28px 14px 14px; }
.community-card-name { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.community-card-loc { font-size: 12px; color: var(--text-3); margin-bottom: 10px; }
.community-card-meta {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
  font-size: 11px; color: var(--text-2);
}
.community-card-meta .badge { font-size: 10px; }

/* Who should apply grid */
.who-apply-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.who-item {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: all 0.15s;
}
.who-item:hover { border-color: var(--text-3); }
.who-icon {
  width: 40px; height: 40px;
  background: var(--bg-muted);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 10px;
}
.who-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.who-desc { font-size: 12px; color: var(--text-2); line-height: 1.5; }

/* Benefits grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.benefit-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: all 0.15s;
}
.benefit-card:hover { border-color: var(--text-3); transform: translateY(-1px); }
.benefit-icon {
  width: 40px; height: 40px;
  background: var(--green-bg);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 10px;
}
.benefit-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.benefit-desc { font-size: 12px; color: var(--text-2); line-height: 1.5; }

/* How it works */
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  counter-reset: step;
}
.how-step {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
}
.how-step-num {
  width: 36px; height: 36px;
  background: var(--text); color: white;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}
.how-step-title { font-weight: 700; font-size: 15px; }
.how-step-desc { font-size: 13px; color: var(--text-2); line-height: 1.5; flex: 1; }
.how-step .btn { align-self: flex-start; }

/* Terms */
.terms-list {
  list-style: none;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.terms-list li {
  font-size: 13px; color: var(--text-2);
  padding: 6px 0;
  display: flex; align-items: flex-start; gap: 8px;
}
.terms-list li::before { content: '•'; color: var(--text-3); flex-shrink: 0; }

.contact-cta { margin-top: 24px; padding: 18px; background: white; border: 1px solid var(--border); border-radius: var(--radius); text-align: center; font-size: 14px; color: var(--text-2); }
.contact-cta a { color: var(--green-dark); font-weight: 600; }

/* Form */
.apply-form .form-foot {
  display: flex; align-items: center; gap: 16px;
  margin-top: 8px; padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}
.apply-form .form-note { font-size: 12px; color: var(--text-3); margin: 0; }

/* ==================== PER-EVENT REFERRAL PROGRAM ==================== */
.eth-events-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.event-ref-card { cursor: pointer; transition: all 0.15s; }
.event-ref-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.event-ref-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; padding: 12px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  margin-top: 8px;
}
.event-ref-stats > div { text-align: center; }
.ref-count-small {
  font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text); line-height: 1;
}
.ref-label-sm { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-top: 4px; }

.event-referral-head {
  margin-bottom: 20px;
}
.event-referral-meta {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px;
}

/* ==================== STAFF CONSOLE ==================== */
.leaderboard { display: flex; flex-direction: column; gap: 8px; }
.leaderboard-row {
  display: grid; grid-template-columns: 40px 1fr 100px 120px;
  align-items: center; gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: white;
}
.leaderboard-rank { font-weight: 700; color: var(--text-3); font-size: 16px; }
.leaderboard-row.top-1 .leaderboard-rank { color: var(--amber); }
.leaderboard-row.top-2 .leaderboard-rank { color: var(--text-2); }
.leaderboard-row.top-3 .leaderboard-rank { color: #cd7f32; }
.leaderboard-name { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.leaderboard-name .lb-logo {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--bg-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.leaderboard-tickets { font-size: 18px; font-weight: 700; }
.leaderboard-tickets .lb-label { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; display: block; }

/* Proposal list */
.proposal-list { display: flex; flex-direction: column; gap: 12px; }
.proposal-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 60px 1fr 200px 200px;
  align-items: center;
  gap: 16px;
  transition: all 0.15s;
}
.proposal-card:hover { border-color: var(--text-3); }
@media (max-width: 900px) {
  .proposal-card { grid-template-columns: 60px 1fr; }
  .proposal-card .p-meta, .proposal-card .p-actions { grid-column: 1 / -1; }
}
.proposal-type {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; background: var(--bg-muted);
}
.proposal-type.new_event { background: var(--green-light); }
.proposal-type.new_community { background: var(--blue-light); }
.proposal-body { min-width: 0; }
.proposal-title { font-weight: 700; font-size: 15px; }
.proposal-by { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.proposal-meta { font-size: 12px; color: var(--text-2); display: flex; flex-direction: column; gap: 4px; }
.proposal-meta strong { color: var(--text); font-size: 14px; }
.proposal-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* Staff tables (re-using mentorshift) */
.table-row {
  display: grid;
  align-items: center; padding: 14px 22px; gap: 16px;
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.15s;
  font-size: 13px;
}
.table-row:last-child { border-bottom: none; }
.table-row:not(.table-header):hover { background: var(--bg-soft); }
.table-header {
  background: var(--bg-soft); font-size: 11px; font-weight: 700; color: var(--text-2);
  padding: 12px 22px; text-transform: uppercase; letter-spacing: 0.06em;
}

/* ==================== MODAL ==================== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  display: none; align-items: center; justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: white; border-radius: var(--radius-lg);
  max-width: 600px; width: 100%;
  max-height: 90vh; overflow: auto;
  box-shadow: var(--shadow-lg);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-soft);
  position: sticky; top: 0; background: white; z-index: 1;
}
.modal-head h3 { margin: 0; }
.modal-close {
  background: transparent; border: none;
  font-size: 24px; color: var(--text-3);
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--bg-muted); color: var(--text); }
.modal-body { padding: 24px; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-soft);
  position: sticky; bottom: 0; background: white;
}
.modal-intro { color: var(--text-2); font-size: 13px; margin-bottom: 16px; line-height: 1.5; }

/* Forms */
.form-row { margin-bottom: 14px; }
.form-row label {
  display: block; font-size: 12px; font-weight: 600; color: var(--text-2);
  margin-bottom: 6px;
}
.text-input {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit; background: white;
  color: var(--text);
  transition: all 0.15s;
}
.text-input:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}
.text-input:disabled { background: var(--bg-soft); color: var(--text-3); }
textarea.text-input { resize: vertical; line-height: 1.5; }

.line-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.line-item-row {
  display: grid;
  grid-template-columns: 1fr 100px 60px 32px;
  gap: 8px; align-items: center;
}
.line-item-suffix { font-size: 12px; color: var(--text-3); }
.icon-btn {
  width: 32px; height: 32px;
  background: var(--bg-muted); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: var(--red-light); color: var(--red); border-color: var(--red); }

.invoice-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px;
  margin: 8px 0 16px;
}
.invoice-total strong { font-size: 18px; }

.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 24px; text-align: center;
  background: var(--bg-soft);
  cursor: pointer;
  transition: all 0.15s;
}
.upload-zone:hover { border-color: var(--green); background: var(--green-bg); }
.upload-icon { font-size: 24px; margin-bottom: 6px; }
.upload-hint { font-size: 11px; color: var(--text-3); margin-top: 4px; }

.rating-input { display: flex; gap: 4px; font-size: 24px; }
.rating-input .star { color: var(--border); cursor: pointer; transition: color 0.15s; }
.rating-input .star.active { color: var(--amber); }
.rating-input .star:hover { color: var(--amber); }

/* ==================== TOAST ==================== */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--text); color: white;
  padding: 12px 20px; border-radius: 10px;
  font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
