/* EventsHUB — styles */
:root {
  --blue: #003DA5;
  --blue-dark: #002A73;
  --blue-deep: #001A4A;
  --blue-soft: #E8EEF9;
  --yellow: #FFCD00;
  --yellow-soft: #FFF6CC;
  --gold: #B8860B;
  --red: #CE1126;
  --red-soft: #FCE4E7;
  --bg: #F7F7F5;
  --panel: #FFFFFF;
  --ink: #1A1A1F;
  --muted: #6B7280;
  --line: #E5E5EA;
  --line-strong: #D1D5DB;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.03);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(15,30,80,.14);
  --grad-navy: linear-gradient(135deg, #001A4A 0%, #003DA5 60%, #1057D6 100%);
  --serif: 'Cormorant Garamond', 'Lora', Georgia, serif;
  --ease: cubic-bezier(.4,0,.2,1);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; font-size: 14px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
a { color: var(--blue); }

/* Motion primitives */
@keyframes scaleIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(0,61,165,.45); } 70% { box-shadow: 0 0 0 14px rgba(0,61,165,0); } 100% { box-shadow: 0 0 0 0 rgba(0,61,165,0); } }
@keyframes counterUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0%{background-position:-200% 0}100%{background-position:200% 0} }

/* Login */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, #fff 0%, #f0f4fa 100%); }
.login-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 40px; width: 100%; max-width: 420px; border-top: 4px solid var(--blue); }
.login-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.login-logo .lt { font-size: 20px; font-weight: 800; }
.login-logo .ls { font-size: 12px; color: var(--muted); }
.login-form label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin: 12px 0 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.login-form input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
.login-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,61,165,.15); }
.login-form button { width: 100%; margin-top: 24px; padding: 12px; background: var(--blue); color: #fff; border: none; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; }
.login-form button:hover { background: var(--blue-dark); }
.login-err { color: var(--red); font-size: 13px; margin-top: 12px; min-height: 16px; }
.login-foot { text-align: center; margin-top: 24px; font-size: 12px; color: var(--muted); }

/* Shell + sidebar */
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 20px 0; position: sticky; top: 0; height: 100vh; }
.sb-brand { display: flex; align-items: center; gap: 12px; padding: 0 20px 20px; border-bottom: 1px solid var(--line); }
.sb-title { font-weight: 800; font-size: 15px; }
.sb-sub { font-size: 11px; color: var(--muted); }
.sb-nav { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; }
.sb-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: none; background: none; text-align: left; font: inherit; font-size: 14px; color: var(--ink); border-radius: 8px; cursor: pointer; font-weight: 500; }
.sb-link:hover { background: var(--bg); }
.sb-link-on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.sb-ic { width: 20px; text-align: center; font-size: 15px; }
.sb-foot { padding: 16px 20px 0; border-top: 1px solid var(--line); }
.sb-user { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sb-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.sb-uinfo { flex: 1; min-width: 0; }
.sb-uname { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-uemail { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-foot-row { display: flex; justify-content: space-between; align-items: center; }
.lang-switch { display: inline-flex; background: var(--bg); border-radius: 6px; padding: 2px; }
.lang-switch button { padding: 4px 10px; border: none; background: none; font: inherit; font-size: 11px; font-weight: 600; color: var(--muted); cursor: pointer; border-radius: 4px; }
.lang-switch button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.sb-logout { background: none; border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; cursor: pointer; font-size: 14px; }
.sb-logout:hover { background: var(--red-soft); border-color: var(--red); }

.topbar { display: none; }
.main { padding: 32px 40px; max-width: 1400px; margin: 0 auto; width: 100%; }

/* Page */
.page { animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 28px; }
.page-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.back-link { background: none; border: none; color: var(--muted); cursor: pointer; font: inherit; font-size: 13px; padding: 0; margin-bottom: 12px; }
.back-link:hover { color: var(--blue); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .15s, border-color .15s, color .15s; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 2px 8px rgba(0,61,165,.18); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); box-shadow: 0 6px 18px rgba(0,61,165,.32); }
.btn-ghost { background: transparent; }
.btn-danger:hover { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.btn-block { width: 100%; display: flex; justify-content: center; padding: 12px; }
.icon-btn { background: none; border: none; font-size: 16px; padding: 6px 8px; cursor: pointer; border-radius: 6px; color: var(--muted); transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--bg); color: var(--ink); }

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; position: relative; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s var(--ease); animation: slideUp .4s var(--ease) both; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.stat-blue::before { background: var(--blue); }
.stat-yellow::before { background: var(--yellow); }
.stat-red::before { background: var(--red); }
.stat-val { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; animation: counterUp .5s var(--ease) both; }
.stat-lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 8px; font-weight: 600; }
.stat-icon { position: absolute; top: 16px; right: 16px; font-size: 20px; opacity: .35; }

/* Panels */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 15px; font-weight: 700; }
.panel-body { padding: 20px; }

/* Event list on dashboard */
.event-list { display: flex; flex-direction: column; }
.event-row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.event-row:last-child { border-bottom: none; }
.event-row:hover { background: var(--bg); }
.event-date { width: 56px; text-align: center; background: var(--blue-soft); border-radius: 8px; padding: 8px; }
.d-day { font-size: 20px; font-weight: 800; color: var(--blue); line-height: 1; }
.d-mon { font-size: 10px; font-weight: 700; color: var(--blue); text-transform: uppercase; margin-top: 2px; }
.event-body { flex: 1; min-width: 0; }
.event-title { font-weight: 700; margin-bottom: 4px; }
.event-meta { display: flex; gap: 16px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }

/* Event cards grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ev-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; cursor: pointer; transition: all .15s; position: relative; overflow: hidden; }
.ev-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.ev-stripe { position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.stripe-published { background: var(--blue); }
.stripe-draft { background: var(--line-strong); }
.stripe-cancelled { background: var(--red); }
.stripe-archived { background: var(--muted); }
.ev-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ev-date-chip { font-size: 11px; color: var(--muted); font-weight: 600; }
.ev-card-title { font-size: 16px; margin-bottom: 8px; line-height: 1.3; }
.ev-card-meta { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.ev-card-stats { font-size: 12px; color: var(--muted); }
.ev-card-stats strong { color: var(--ink); font-size: 14px; }
.ev-card-statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px 0 8px; border-top: 1px solid var(--line); margin-top: 10px; }
.ev-card-statgrid:has(.ev-stat:nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
.ev-stat { text-align: center; }
.ev-stat-v { font-size: 22px; font-weight: 800; color: var(--blue); line-height: 1; font-variant-numeric: tabular-nums; }
.ev-stat-v.warn { color: #ca8a04; }
.ev-stat-v.full { color: #dc2626; }
.ev-stat-cap { font-size: 13px; font-weight: 600; color: var(--muted); }
.ev-stat-l { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 4px; }
.mini-bar { height: 4px; background: var(--bg); border-radius: 2px; overflow: hidden; margin-top: 8px; }
.mini-bar > div, .mini-bar-fill { height: 100%; background: var(--blue); transition: width .3s; }
.mini-bar-fill.warn { background: #ca8a04; }
.mini-bar-fill.full { background: #dc2626; }

/* Toolbar */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.tb-right, .tb-stats { display: flex; gap: 8px; align-items: center; }
.tb-stats { color: var(--muted); font-size: 13px; }
.tabs { display: inline-flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px; }
.tab { padding: 6px 14px; border: none; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; border-radius: 6px; }
.tab-on { background: var(--blue-soft); color: var(--blue); }
.tabs-big { background: none; border: none; border-bottom: 1px solid var(--line); padding: 0; gap: 0; margin-bottom: 20px; border-radius: 0; }
.tabs-big .tab { padding: 12px 20px; border-radius: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 14px; }
.tabs-big .tab-on { background: none; color: var(--blue); border-bottom-color: var(--blue); }
.fi.search { max-width: 280px; }

/* Forms */
.fi { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
.fi:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,61,165,.12); }
.fi.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.fg { display: flex; flex-direction: column; gap: 6px; }
.fg label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.frow { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.form-err { color: var(--red); background: var(--red-soft); padding: 10px 12px; border-radius: 6px; font-size: 13px; }
.form-ok { color: #065f46; background: #d1fae5; padding: 10px 12px; border-radius: 6px; font-size: 13px; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,20,30,.5); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 100; padding: 20px; animation: fadeIn .18s var(--ease); }
.modal { background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 480px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: scaleIn .22s var(--ease); }
.modal-wide { max-width: 640px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 16px; }
.modal-body { padding: 20px; overflow: auto; }
.info-banner { background: var(--yellow-soft); border-left: 3px solid var(--yellow); padding: 10px 12px; border-radius: 6px; font-size: 13px; }

/* Tables */
.tbl-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; padding: 12px 16px; background: var(--bg); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--bg); }
.tbl-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.tag { display: inline-block; background: var(--blue-soft); color: var(--blue); padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.mini-select { padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 12px; background: #fff; }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.badge-published, .badge-confirmed, .badge-accepted { background: #d1fae5; color: #065f46; }
.badge-draft, .badge-pending, .badge-sent { background: var(--bg); color: var(--muted); }
.badge-cancelled, .badge-declined { background: var(--red-soft); color: var(--red); }
.badge-waitlisted { background: var(--yellow-soft); color: #8a6d00; }
.badge-archived { background: #e5e7eb; color: #374151; }

/* Empty state */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-icon { font-size: 40px; margin-bottom: 12px; }
.empty h3 { font-size: 16px; color: var(--ink); margin-bottom: 6px; }
.empty p { margin: 0 0 16px; font-size: 13px; }

/* Event detail */
.ev-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.ev-head h1 { font-size: 26px; margin-top: 8px; }
.ev-head-meta { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.ev-head-desc { color: var(--muted); max-width: 70ch; margin-top: 12px; }
.ev-head-actions { display: flex; gap: 6px; }
.tab-pane { animation: fadeIn .2s ease; }

.link-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.link-row:last-child { border: none; }
.link-label { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.link-url { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: var(--bg); padding: 4px 8px; border-radius: 4px; display: inline-block; word-break: break-all; }

.cap-bar { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.cap-fill { height: 100%; background: var(--blue); transition: width .3s; }
.cap-text { font-size: 13px; color: var(--muted); }

/* Feedback cards */
.fb-list { display: flex; flex-direction: column; gap: 12px; }
.fb-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.fb-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 13px; flex-wrap: wrap; }
.fb-ratings { display: flex; gap: 16px; font-size: 12px; color: var(--yellow); flex-wrap: wrap; margin-bottom: 10px; }
.fb-ratings .rl { color: var(--muted); text-transform: capitalize; margin-right: 4px; }
.fb-ratings .dim { color: var(--line-strong); }
.fb-cmt, .fb-imp { margin: 6px 0 0; font-size: 13px; line-height: 1.5; }
.fb-cmt { font-style: italic; color: var(--ink); }
.fb-imp { color: var(--muted); }

/* Key-value display */
.kv { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.kv:last-child { border: none; }
.kv > span { color: var(--muted); }
.form-inline { max-width: 400px; }
.muted { color: var(--muted); }
.loading { text-align: center; padding: 40px; color: var(--muted); }

/* Public pages (register / feedback) */
.public-page { min-height: 100vh; background: linear-gradient(180deg, var(--blue-soft) 0%, #fff 300px); padding: 40px 20px; display: flex; justify-content: center; }
.pub-card { background: #fff; border-radius: var(--radius-lg); max-width: 560px; width: 100%; box-shadow: var(--shadow-md); overflow: hidden; }
.pub-header { background: var(--blue); color: #fff; padding: 32px 28px 24px; position: relative; }
.pub-header h1 { font-size: 22px; margin-top: 8px; }
.pub-header .meta { font-size: 13px; opacity: 0.85; margin-top: 8px; }
.lang-tog { position: absolute; top: 16px; right: 16px; display: inline-flex; background: rgba(255,255,255,.15); border-radius: 6px; padding: 2px; }
.lang-tog button { padding: 4px 10px; background: none; border: none; color: #fff; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; border-radius: 4px; opacity: 0.7; }
.lang-tog button.on { background: #fff; color: var(--blue); opacity: 1; }
.pub-body { padding: 28px; }
.pub-body h2 { font-size: 18px; margin-bottom: 16px; }
.success-state { text-align: center; padding: 48px 28px; }
.success-state .ic { font-size: 48px; width: 72px; height: 72px; border-radius: 50%; background: #d1fae5; color: #065f46; display: grid; place-items: center; margin: 0 auto 16px; }
.success-state h2 { margin-bottom: 8px; }

.stars { display: inline-flex; gap: 4px; }
.stars .s { font-size: 24px; color: var(--line-strong); cursor: pointer; user-select: none; transition: color .15s; }
.stars .s.on, .stars:hover .s:hover, .stars:hover .s:hover ~ .s { /* noop: we use data state */ }
.stars .s.on { color: var(--yellow); }

/* Mobile */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: 0; left: -280px; width: 260px; z-index: 50; transition: left .25s; box-shadow: 4px 0 20px rgba(0,0,0,.15); }
  .menu-open .sidebar { left: 0; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px; align-items: center; gap: 12px; }
  .burger { background: none; border: none; font-size: 22px; cursor: pointer; padding: 4px 8px; }
  .tb-brand { flex: 1; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
  .menu-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 40; }
  .main { padding: 20px 16px; }
  .page-head h1 { font-size: 22px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .tbl th, .tbl td { padding: 10px 12px; }
  .modal { max-height: 95vh; }
  .login-card { padding: 28px 24px; }
}
@media (max-width: 500px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-val { font-size: 24px; }
  .tabs-big { overflow-x: auto; }
}

/* Mobile-tuned dashboard hero & timeline */
@media (max-width: 700px) {
  .hero { padding: 18px 18px; border-radius: 12px; }
  .hero-row { gap: 14px; }
  .hero-logo { width: 56px; height: 56px; padding: 5px; }
  .hero-title { font-size: 22px; }
  .hero-eyebrow { font-size: 10px; letter-spacing: 1.4px; }
  .hero-sub { font-size: 13px; }
  .hero-cta { padding: 10px 16px; font-size: 13px; width: 100%; justify-content: center; }
  .stat-card { padding: 16px; }
  .stat-icon { font-size: 16px; top: 12px; right: 12px; }
  .stat-val { font-size: 26px; }
  .stat-lbl { font-size: 11px; }
  .tl-row { padding: 12px 14px; gap: 12px; flex-wrap: wrap; }
  .tl-date { width: 52px; padding: 8px 4px; }
  .tl-date .day { font-size: 18px; }
  .tl-title { font-size: 14px; }
  .tl-cap { min-width: 0; flex-basis: 100%; }
}

/* Role badges */
.role-badge{display:inline-block;font-size:11px;font-weight:700;padding:3px 9px;border-radius:99px;letter-spacing:.3px;text-transform:uppercase}
.role-badge.role-admin{background:#fef3c7;color:#92400e;border:1px solid #fde68a}
.role-badge.role-consul{background:#dbeafe;color:#1e40af;border:1px solid #bfdbfe}
.role-badge.role-officer{background:#e0e7ff;color:#3730a3;border:1px solid #c7d2fe}
.role-badge.role-editor{background:#f3f4f6;color:#4b5563;border:1px solid #e5e7eb}

/* Door-mode sidebar link */
.sb-link-door{margin-top:8px;border-top:1px dashed rgba(255,255,255,.12);padding-top:14px !important;text-decoration:none;color:inherit;display:flex;align-items:center;position:relative}
.sb-link-door .sb-ext{margin-left:auto;font-size:11px;opacity:.5}
.sb-link-door:hover{background:rgba(255,255,255,.06)}

/* ====================================================================
   v1.2 polish: dashboard hero, event timeline, capacity meters, motion
   ==================================================================== */

/* Dashboard hero banner */
.hero { position: relative; background: var(--grad-navy); color: #fff; border-radius: var(--radius-lg); padding: 28px 32px; margin-bottom: 24px; overflow: hidden; box-shadow: 0 12px 32px rgba(0,26,74,.22); animation: slideUp .45s var(--ease) both; }
.hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,205,0,.18), transparent 70%); pointer-events: none; }
.hero-row { display: flex; align-items: center; gap: 22px; position: relative; z-index: 1; flex-wrap: wrap; }
.hero-logo { width: 72px; height: 72px; border-radius: 50%; background: #fff; padding: 7px; object-fit: contain; flex-shrink: 0; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.hero-text { flex: 1; min-width: 220px; }
.hero-eyebrow { font-size: 11px; letter-spacing: 2px; font-weight: 700; text-transform: uppercase; opacity: .75; margin-bottom: 6px; }
.hero-title { font-family: var(--serif); font-size: 32px; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; margin-bottom: 4px; }
.hero-sub { font-size: 14px; opacity: .85; }
.hero-cta { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--blue-deep); padding: 12px 22px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: transform .18s var(--ease), box-shadow .18s var(--ease); border: none; cursor: pointer; font: inherit; font-weight: 700; font-size: 14px; }
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,255,.25); }

/* Event-type accent chip */
.type-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; letter-spacing: .3px; text-transform: uppercase; }
.type-cultural    { background: #f3e8ff; color: #6b21a8; }   /* violet */
.type-official    { background: var(--blue-soft); color: var(--blue); } /* navy */
.type-consular    { background: #fef9c3; color: #854d0e; }   /* warm gold */
.type-diaspora    { background: #d1fae5; color: #065f46; }   /* emerald */
.type-networking  { background: #ffedd5; color: #9a3412; }   /* orange */
.type-educational { background: #ccfbf1; color: #115e59; }   /* teal */
.type-conference  { background: #e0e7ff; color: #3730a3; }   /* indigo */
.type-reception   { background: #fce7f3; color: #9d174d; }   /* rose */
.type-exhibition  { background: #ede9fe; color: #5b21b6; }   /* deep purple */
.type-national    { background: #fee2e2; color: #991b1b; }   /* romanian red */
.type-business    { background: #e2e8f0; color: #334155; }   /* slate */
.type-charity     { background: #dcfce7; color: #166534; }   /* green */
.type-social      { background: #fef3c7; color: #92400e; }   /* amber (legacy) */
.type-other, .type-default { background: var(--bg); color: var(--muted); }

/* Event timeline (dashboard) */
.timeline { display: flex; flex-direction: column; gap: 4px; }
.tl-row { display: flex; gap: 16px; padding: 16px 20px; cursor: pointer; transition: background .15s, transform .15s var(--ease); border-bottom: 1px solid var(--line); align-items: center; }
.tl-row:last-child { border-bottom: none; }
.tl-row:hover { background: linear-gradient(90deg, var(--blue-soft), transparent 50%); transform: translateX(2px); }
.tl-date { width: 64px; flex-shrink: 0; text-align: center; padding: 10px 6px; border-radius: 10px; background: var(--blue-soft); }
.tl-date .day { font-size: 22px; font-weight: 800; color: var(--blue); line-height: 1; font-family: var(--serif); }
.tl-date .mon { font-size: 10px; font-weight: 700; color: var(--blue); text-transform: uppercase; margin-top: 4px; letter-spacing: .5px; }
.tl-body { flex: 1; min-width: 0; }
.tl-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.tl-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); align-items: center; }
.tl-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.tl-cap { display: flex; align-items: center; gap: 8px; min-width: 140px; }
.tl-cap-bar { flex: 1; height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.tl-cap-fill { height: 100%; background: linear-gradient(90deg, var(--blue), #4a8eff); transition: width .6s var(--ease); }
.tl-cap-fill.full { background: linear-gradient(90deg, var(--red), #ff5470); }
.tl-cap-fill.high { background: linear-gradient(90deg, var(--gold), var(--yellow)); }
.tl-cap-text { font-size: 11px; font-weight: 700; color: var(--muted); white-space: nowrap; }

/* Two-column layout helper for dashboard */
.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .dash-grid { grid-template-columns: 1fr; } }

/* Recent registrations feed */
.feed { display: flex; flex-direction: column; }
.feed-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); animation: slideUp .35s var(--ease) both; }
.feed-row:last-child { border-bottom: none; }
.feed-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.feed-text { flex: 1; min-width: 0; font-size: 13px; }
.feed-name { font-weight: 600; }
.feed-event { color: var(--muted); font-size: 12px; }
.feed-when { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* Public RSVP redesign — two-column hero layout */
.rsvp-page { min-height: 100vh; background: linear-gradient(180deg, #001A4A 0%, #003DA5 220px, var(--bg) 220px, var(--bg) 100%); padding: 28px 16px 60px; }
.rsvp-shell { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; }
@media (max-width: 880px) { .rsvp-shell { grid-template-columns: 1fr; } }
.rsvp-card { background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(0,26,74,.18); overflow: hidden; animation: slideUp .5s var(--ease) both; }
/* EU-style top bar — small logo+name on the LEFT, language toggle on the RIGHT */
.rsvp-topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--slate-100, #f3f4f6); background: #fff; gap: 14px; }
.rsvp-topbar-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rsvp-topbar-logo { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.rsvp-topbar-name { font-style: italic; font-size: 11px; font-weight: 600; color: var(--ink2, #111827); line-height: 1.35; letter-spacing: .1px; }
.rsvp-topbar .rsvp-lang-tog { display: inline-flex; gap: 2px; background: var(--slate-100, #f3f4f6); border-radius: 99px; padding: 2px; flex-shrink: 0; }
.rsvp-topbar .rsvp-lang-tog button { background: transparent; border: 0; padding: 4px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; cursor: pointer; color: #6b7280; transition: background .15s, color .15s; }
.rsvp-topbar .rsvp-lang-tog button.on { background: var(--blue, #003DA5); color: #fff; }

/* Canva banner image — full width, edge to edge */
.rsvp-banner-img { display: block; width: 100%; height: auto; background: #f3f4f6; }

/* When/Where info box — light gray, EU-style */
.rsvp-whenwhere { background: #f1f3f6; padding: 20px 24px; }
.rsvp-ww-row { display: flex; align-items: flex-start; gap: 18px; padding: 8px 0; }
.rsvp-ww-row + .rsvp-ww-row { margin-top: 4px; }
.rsvp-ww-icon { color: #111; flex-shrink: 0; }
.rsvp-ww-text { flex: 1; min-width: 0; }
.rsvp-ww-title { font-weight: 800; font-size: 18px; color: #111; line-height: 1; margin-bottom: 4px; }
.rsvp-ww-info { font-size: 14.5px; color: #111; line-height: 1.5; }

/* Centered body — invite line, title, summary, description, italic notes, please-note, closing */
.rsvp-body-text { padding: 28px 32px 26px; text-align: center; color: #003DA5; background: #fff; }
.rsvp-body-text .rsvp-invite { font-size: 14px; font-style: italic; color: #003DA5; margin: 0 0 8px; }
.rsvp-body-text .rsvp-title { font-family: var(--serif, 'Cormorant Garamond'); font-size: 28px; font-weight: 600; color: #111; margin: 0 0 14px; line-height: 1.15; }
.rsvp-body-text .rsvp-summary { color: #003DA5; font-size: 15px; font-weight: 600; line-height: 1.6; margin: 0 0 16px; }
.rsvp-body-text .rsvp-summary > div { margin: 0; }
.rsvp-body-text .rsvp-description { color: #003DA5; font-size: 14px; line-height: 1.6; margin: 14px 0; max-width: 460px; margin-left: auto; margin-right: auto; }
.rsvp-body-text .rsvp-italic { color: #003DA5; font-size: 13.5px; font-style: italic; margin: 6px 0; }
.rsvp-please-note { margin: 18px auto 4px; padding: 12px 14px; background: rgba(0,61,165,.06); border-radius: 8px; text-align: left; max-width: 460px; }
.rsvp-please-note-label { font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #003DA5; margin-bottom: 4px; }
.rsvp-please-note p { color: #1f2937; font-size: 13.5px; line-height: 1.55; margin: 0; white-space: pre-wrap; }
.rsvp-body-text .rsvp-closing { color: #003DA5; font-size: 14px; margin: 18px 0 0; font-weight: 500; }

/* Partners — own section under the body */
.rsvp-partners { padding: 18px 28px 22px; border-top: 1px solid var(--slate-100, #f3f4f6); background: #fff; }

/* Right column wrapper — stacks form, countdown, map */
.rsvp-right-col { display: flex; flex-direction: column; gap: 18px; }
.rsvp-right-col .rsvp-countdown { background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 6px 18px rgba(0,26,74,.08); margin: 0; }
.rsvp-right-col .rsvp-map-wrap { background: #fff; border-radius: 14px; padding: 0; overflow: hidden; box-shadow: 0 6px 18px rgba(0,26,74,.08); height: 240px; border: 0; }
.rsvp-right-col #rsvp-leafmap { width: 100%; height: 100%; }
.rsvp-hero::after { content: none; }
.rsvp-hero-logo { width: 64px; height: 64px; border-radius: 50%; background: #fff; padding: 6px; object-fit: contain; box-shadow: 0 6px 18px rgba(0,0,0,.22); margin-bottom: 14px; }
.rsvp-invite { font-size: 12px; opacity: .82; font-style: italic; margin-bottom: 6px; letter-spacing: .2px; }
.rsvp-title { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.1; margin-bottom: 12px; position: relative; z-index: 1; }
.rsvp-meta { display: flex; flex-direction: column; gap: 6px; font-size: 13px; position: relative; z-index: 1; }
.rsvp-meta-row { display: flex; align-items: center; gap: 8px; opacity: .92; }
.rsvp-meta-row .ic { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: rgba(255,255,255,.14); font-size: 12px; }

.rsvp-body { padding: 26px 30px 30px; }
.rsvp-desc { color: var(--muted); font-size: 13px; line-height: 1.55; margin-bottom: 22px; }
.rsvp-countdown { display: flex; gap: 10px; margin: 20px 0 26px; }
.cd-tile { flex: 1; background: var(--blue-soft); border-radius: 10px; padding: 12px 6px; text-align: center; }
.cd-num { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--blue-deep); line-height: 1; }
.cd-lbl { font-size: 10px; color: var(--blue); text-transform: uppercase; letter-spacing: .8px; font-weight: 700; margin-top: 4px; }

.rsvp-map-wrap { height: 200px; background: var(--bg); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 18px; }
.rsvp-map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

.rsvp-form-card { background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(0,26,74,.18); padding: 30px 32px; animation: slideUp .55s var(--ease) both; }
.rsvp-form-title { font-family: var(--serif); font-size: 24px; font-weight: 600; margin-bottom: 6px; }
.rsvp-form-sub { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.rsvp-lang-tog { float: right; display: inline-flex; background: var(--bg); border-radius: 8px; padding: 3px; }
.rsvp-lang-tog button { padding: 5px 12px; background: none; border: none; font: inherit; font-size: 11px; font-weight: 700; color: var(--muted); cursor: pointer; border-radius: 5px; letter-spacing: .5px; }
.rsvp-lang-tog button.on { background: #fff; color: var(--blue); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

.rsvp-success { text-align: center; padding: 50px 30px; animation: scaleIn .35s var(--ease); }
.rsvp-success .check { width: 80px; height: 80px; border-radius: 50%; background: #d1fae5; color: #065f46; display: grid; place-items: center; font-size: 40px; margin: 0 auto 18px; animation: pulseRing 1.6s var(--ease) 1; }
.rsvp-success h2 { font-family: var(--serif); font-size: 28px; font-weight: 600; margin-bottom: 8px; }

/* Ticket — invitation feel */
.tk-paper { background:
  radial-gradient(circle at 0 0, rgba(255,205,0,.04) 0, transparent 40%),
  radial-gradient(circle at 100% 100%, rgba(0,61,165,.04) 0, transparent 40%),
  #fbfaf6;
  position: relative;
}
.tk-title-serif { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }

/* Partners — editor in event modal */
.partners-editor { margin-top: 8px; padding: 18px 18px 14px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(180deg, #fff 0%, #fafbfd 100%); }
.partners-editor-head { font-size: 14px; font-weight: 800; margin-bottom: 4px; color: var(--blue-deep); }
.partners-editor-hint { font-size: 12px; color: var(--muted); margin-bottom: 16px; line-height: 1.4; }
.partner-section { margin-bottom: 18px; }
.partner-section:last-child { margin-bottom: 0; }
.partner-section-title { font-size: 11px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.partner-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.partner-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px 10px 10px; display: flex; align-items: center; gap: 10px; min-width: 160px; max-width: 280px; box-shadow: var(--shadow); animation: scaleIn .2s var(--ease); }
.partner-card img { max-height: 36px; max-width: 60px; object-fit: contain; flex-shrink: 0; border-radius: 4px; }
.partner-card-blank { width: 36px; height: 36px; border-radius: 6px; background: var(--bg); display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.partner-card-name { font-size: 13px; font-weight: 600; line-height: 1.2; word-break: break-word; flex: 1; }
.partner-card-x { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: var(--red); color: #fff; cursor: pointer; font-size: 14px; line-height: 1; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(206,17,38,.4); transition: transform .15s var(--ease); }
.partner-card-x:hover { transform: scale(1.15); }
.partner-add { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.partner-add .fi { flex: 1; min-width: 160px; }
.partner-add .btn-primary { padding: 9px 14px; font-size: 16px; line-height: 1; min-width: 44px; }
.partner-file-btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 14px; border: 1.5px dashed var(--line-strong); border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; background: #fff; min-width: 130px; max-width: 200px; overflow: hidden; transition: border-color .15s, color .15s, background .15s, transform .15s var(--ease); font-family: inherit; }
.partner-file-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); transform: translateY(-1px); }
.partner-file-btn.has-file { border-style: solid; border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.partner-file-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Partners — public display (RSVP, ticket) */
.partners-block { margin-top: 18px; padding-top: 14px; border-top: 1px dashed rgba(255,255,255,.18); }
.partners-block-light { border-top-color: var(--line); }
.partners-label { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; opacity: .7; margin-bottom: 8px; font-style: normal; }
.partners-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; justify-content: center; }
.partners-row:last-child { margin-bottom: 0; }
.partner-chip { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); padding: 4px 18px 4px 4px; border-radius: 99px; font-size: 13px; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.10); border: 1px solid var(--line); line-height: 1.2; }
.partner-chip img { height: 38px; width: 38px; object-fit: contain; border-radius: 50%; background: #fff; flex-shrink: 0; padding: 2px; }
.partner-chip:not(:has(img)) { padding-left: 14px; }
.partner-chip-light { background: #fff; border: 1px solid #e6dcc4; box-shadow: 0 2px 6px rgba(0,0,0,.06); }

/* ====================================================================
   v1.3 — Itinerant-style admin palette + dashboard panel components
   Used by the redesigned dashboard. Coexists with the existing v1.2 tokens.
   ==================================================================== */
:root {
  --brand: #3c50e0;
  --brand-soft: #eff1fe;
  --brand-deep: #2236b8;
  --ink2: #1c2434;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --ok-bg: #d1fae5;  --ok-tx: #065f46;
  --warn-bg: #fef3c7; --warn-tx: #92400e;
  --bad-bg: #fee2e2; --bad-tx: #991b1b;
  --info-bg: #e0e7ff; --info-tx: #3730a3;
}

/* Dashboard page wrapper — slightly softer background */
.dash { background: var(--slate-50); margin: -32px -40px; padding: 28px 40px; min-height: calc(100vh - 0px); }
@media (max-width: 700px) { .dash { margin: -20px -16px; padding: 20px 16px; } }

/* Compact page header (replaces the navy hero) */
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.dash-head .crumb { font-size: 11px; font-weight: 700; letter-spacing: .8px; color: var(--slate-500); text-transform: uppercase; }
.dash-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; color: var(--ink2); margin: 4px 0 4px; }
.dash-head .dash-sub { color: var(--slate-500); font-size: 13.5px; }
.dash-head .dash-cta { background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 10px; border: 0; font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; box-shadow: 0 2px 10px rgba(60,80,224,.22); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.dash-head .dash-cta:hover { background: var(--brand-deep); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(60,80,224,.32); }

/* Panel — flat white card with subtle border (itinerant style) */
.k-panel { background: #fff; border: 1px solid var(--slate-200); border-radius: 12px; overflow: hidden; }
.k-panel + .k-panel { margin-top: 16px; }
.k-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--slate-200); }
.k-panel-head h3 { font-size: 14px; font-weight: 700; color: var(--ink2); display: inline-flex; align-items: center; gap: 8px; }
.k-panel-head h3 .count { color: var(--slate-500); font-weight: 600; font-size: 12.5px; margin-left: 4px; }
.k-panel-head .k-panel-link { color: var(--brand); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.k-panel-body { padding: 4px 0; }

/* Stat tiles — panel-shaped, indigo number, optional delta chip */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi { background: #fff; border: 1px solid var(--slate-200); border-radius: 12px; padding: 16px 18px; position: relative; transition: transform .18s var(--ease), box-shadow .18s var(--ease); animation: slideUp .35s var(--ease) both; }
.kpi:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(28,36,52,.06); }
.kpi-label { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--slate-500); margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; }
.kpi-label .kpi-ic { font-size: 16px; opacity: .55; }
.kpi-num { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--ink2); line-height: 1; }
.kpi-delta { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; margin-top: 8px; }
.kpi-delta.up { background: var(--ok-bg); color: var(--ok-tx); }
.kpi-delta.down { background: var(--bad-bg); color: var(--bad-tx); }
.kpi-delta.flat { background: var(--slate-100); color: var(--slate-500); }
.kpi-bar { position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 2px; }
.kpi-bar.brand { background: var(--brand); }
.kpi-bar.ok    { background: #10b981; }
.kpi-bar.warn  { background: #d97706; }
.kpi-bar.bad   { background: #dc2626; }

/* Clickable KPI tiles (drill-down) */
button.kpi.kpi-btn { font: inherit; text-align: left; cursor: pointer; }
button.kpi.kpi-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(28,36,52,.06); border-color: var(--slate-300); }
button.kpi.kpi-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
button.kpi.kpi-btn.is-active { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(0,61,165,.18), 0 6px 18px rgba(0,61,165,.12); }
button.kpi.kpi-btn.is-active .kpi-num { color: var(--brand); }

/* "Clear filter" pill in panel head */
.k-panel-clear { background: var(--slate-100); border: 1px solid var(--slate-200); color: var(--slate-500); width: 26px; height: 26px; border-radius: 99px; cursor: pointer; font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; transition: background .15s, color .15s; }
.k-panel-clear:hover { background: var(--slate-200); color: var(--ink2); }

/* Event-banner upload (in EventForm) */
.banner-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 28px 18px; border: 2px dashed var(--slate-200); border-radius: 12px; background: var(--slate-50, #f8fafc); cursor: pointer; transition: border-color .15s, background .15s; text-align: center; }
.banner-empty:hover { border-color: var(--brand); background: #fff; }
.banner-empty-ic { font-size: 28px; opacity: .65; }
.banner-empty-title { font-weight: 700; font-size: 13.5px; color: var(--ink2); }
.banner-empty-sub { font-size: 12px; color: var(--slate-500); }
.banner-preview { border: 1px solid var(--slate-200); border-radius: 12px; overflow: hidden; background: var(--slate-50, #f8fafc); }
.banner-preview img { display: block; width: 100%; height: auto; max-height: 320px; object-fit: cover; }
.banner-preview-actions { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid var(--slate-200); }
.banner-preview-actions .banner-remove { color: var(--bad-tx, #b91c1c); }

/* Reports — per-event drill-down cards */
.rep-list { display: flex; flex-direction: column; gap: 10px; }
.rep-card { background: #fff; border: 1px solid var(--slate-200); border-radius: 12px; overflow: hidden; transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
.rep-card:hover { border-color: var(--slate-300); }
.rep-card.is-open { border-color: var(--brand); box-shadow: 0 4px 16px rgba(0,61,165,.08); }
.rep-card-head { display: flex; align-items: center; gap: 18px; padding: 14px 18px; cursor: pointer; user-select: none; }
.rep-title { flex: 1; min-width: 0; }
.rep-title-main { font-weight: 700; color: var(--ink2); font-size: 15px; }
.rep-title-sub { color: var(--slate-500); font-size: 12.5px; margin-top: 2px; }
.rep-metrics { display: flex; gap: 22px; align-items: center; }
.rep-metric { text-align: center; min-width: 56px; }
.rep-mn { font-size: 18px; font-weight: 800; color: var(--ink2); line-height: 1; }
.rep-ml { font-size: 10.5px; font-weight: 600; color: var(--slate-500); text-transform: uppercase; letter-spacing: .4px; margin-top: 4px; }
.rep-chev { color: var(--slate-400); font-size: 14px; min-width: 14px; text-align: center; }
.rep-card-body { padding: 4px 18px 18px; border-top: 1px solid var(--slate-200); animation: slideDown .25s var(--ease); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.rep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 14px; }
@media (max-width: 760px) { .rep-grid { grid-template-columns: 1fr; gap: 16px; } .rep-metrics { gap: 12px; } }
.rep-section h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--slate-500); margin: 0 0 10px; display: flex; align-items: center; gap: 6px; }
.rep-section-count { font-size: 11px; color: var(--slate-400); font-weight: 600; }
.rep-empty { color: var(--slate-400); font-size: 13px; padding: 12px 0; font-style: italic; }
.rep-bar { margin-bottom: 8px; }
.rep-bar-row { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 4px; }
.rep-bar-lbl { color: var(--ink2); font-weight: 600; }
.rep-bar-num { color: var(--slate-500); font-weight: 600; }
.rep-bar-track { height: 6px; background: var(--slate-100); border-radius: 99px; overflow: hidden; }
.rep-bar-fill { height: 100%; border-radius: 99px; transition: width .4s var(--ease); }
.rep-rating { display: flex; align-items: center; gap: 12px; padding: 10px 0 14px; border-bottom: 1px solid var(--slate-200); margin-bottom: 12px; }
.rep-rating-num { font-size: 32px; font-weight: 800; color: var(--brand); line-height: 1; }
.rep-stars { font-size: 16px; color: #f59e0b; letter-spacing: 2px; }
.rep-rating-sub { font-size: 11.5px; color: var(--slate-500); margin-left: auto; }
.rep-comments { display: flex; flex-direction: column; gap: 10px; max-height: 240px; overflow-y: auto; }
.rep-comment { background: var(--slate-50, #f8fafc); border-left: 3px solid var(--brand); padding: 8px 12px; border-radius: 0 8px 8px 0; }
.rep-comment-meta { font-size: 11px; color: var(--slate-500); font-weight: 600; margin-bottom: 3px; }
.rep-comment-text { font-size: 13px; color: var(--ink2); line-height: 1.4; }
.rep-actions { padding-top: 14px; border-top: 1px solid var(--slate-200); margin-top: 14px; display: flex; justify-content: flex-end; }

/* Two-column dashboard grid */
.k-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .k-grid { grid-template-columns: 1fr; } }

/* Itinerant-style timeline rows */
.k-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--slate-200); cursor: pointer; transition: background .12s; }
.k-row:last-child { border-bottom: none; }
.k-row:hover { background: var(--brand-soft); }
.k-date { width: 56px; flex-shrink: 0; text-align: center; padding: 8px 4px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.k-date .d { font-size: 20px; font-weight: 800; line-height: 1; font-family: var(--serif); }
.k-date .m { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }
.k-row-body { flex: 1; min-width: 0; }
.k-row-title { font-weight: 700; font-size: 14px; color: var(--ink2); margin-bottom: 4px; }
.k-row-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--slate-500); }
.k-row-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.k-invite-thumb { width: 56px; height: 56px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: var(--slate-100); border: 1px solid var(--slate-200); display: flex; align-items: center; justify-content: center; }
.k-invite-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.k-invite-thumb--empty { color: var(--slate-500); }
/* Dashboard upcoming-events: square card grid */
.k-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; padding: 14px 18px 18px; }
.k-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--slate-200); border-radius: 14px; overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.k-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); border-color: var(--brand); }
.k-card-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--slate-100); display: block; }
.k-card-img--empty { display: flex; align-items: center; justify-content: center; color: var(--slate-400); }
.k-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.k-card-title { font-weight: 700; font-size: 14px; color: var(--ink2); line-height: 1.3; min-height: 36px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.k-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; }
.k-card-date { color: var(--slate-500); font-weight: 600; }
.k-card-cap { font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.k-card-cap.warn { color: #ca8a04; }
.k-card-cap.full { color: #dc2626; }
.k-card-bar { height: 5px; background: var(--slate-200); border-radius: 99px; overflow: hidden; }
.k-card-bar-fill { height: 100%; background: var(--brand); border-radius: 99px; transition: width .3s; }
.k-card-bar-fill.warn { background: #ca8a04; }
.k-card-bar-fill.full { background: #dc2626; }
.invitee-list-pill { display: inline-block; padding: 2px 8px; border-radius: 99px; background: rgba(0,61,165,.08); color: #003DA5; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.rep-mn-warn { color: #ca8a04 !important; }
.rep-mn-full { color: #dc2626 !important; }
.bulk-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; background: #fffbea; border: 1px solid #f5d97a; border-radius: 8px; margin-bottom: 12px; font-size: 13px; }
.row-selected { background: rgba(0,61,165,.04) !important; }
.k-cap { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.k-cap-bar { flex: 1; height: 5px; background: var(--slate-100); border-radius: 3px; overflow: hidden; }
.k-cap-fill { height: 100%; background: var(--brand); transition: width .5s var(--ease); }
.k-cap-fill.high { background: #d97706; }
.k-cap-fill.full { background: #dc2626; }
.k-cap-text { font-size: 11px; font-weight: 700; color: var(--slate-500); white-space: nowrap; }

/* Recent feed rows */
.k-feed-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--slate-200); animation: slideUp .35s var(--ease) both; }
.k-feed-row:last-child { border-bottom: none; }
.k-feed-av { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 12.5px; flex-shrink: 0; }
.k-feed-tx { flex: 1; min-width: 0; font-size: 13px; }
.k-feed-name { font-weight: 700; color: var(--ink2); }
.k-feed-sub { color: var(--slate-500); font-size: 12px; }
.k-feed-when { font-size: 11px; color: var(--slate-500); white-space: nowrap; }

/* Type breakdown bar */
.k-bar { display: flex; align-items: center; gap: 10px; padding: 8px 18px; font-size: 13px; }
.k-bar-label { width: 110px; color: var(--ink2); font-weight: 600; }
.k-bar-track { flex: 1; height: 8px; background: var(--slate-100); border-radius: 4px; overflow: hidden; }
.k-bar-fill { height: 100%; background: var(--brand); }
.k-bar-num { width: 30px; text-align: right; font-weight: 700; color: var(--slate-500); font-size: 12.5px; }

/* Status chip */
.k-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.k-chip.ok { background: var(--ok-bg); color: var(--ok-tx); }
.k-chip.warn { background: var(--warn-bg); color: var(--warn-tx); }
.k-chip.bad { background: var(--bad-bg); color: var(--bad-tx); }
.k-chip.info { background: var(--info-bg); color: var(--info-tx); }

/* ====================================================================
   Wider modal + section dividers for the EventForm
   ==================================================================== */
.modal-xl { max-width: 860px !important; }
.fs { display: flex; flex-direction: column; gap: 14px; }
.fs-section { padding-top: 18px; margin-top: 8px; border-top: 1px solid var(--slate-200); }
.fs-section:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.fs-section-h { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 8px; }
.fs-section-h .fs-ico { width: 22px; height: 22px; border-radius: 6px; background: var(--brand-soft); display: grid; place-items: center; font-size: 13px; }
/* Explicit grid for predictable column counts */
.fs-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fs-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.fs-grid-3-pin { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
@media (max-width: 700px) {
  .fs-grid-2, .fs-grid-3, .fs-grid-3-pin { grid-template-columns: 1fr; }
  .fs-grid-3-pin > :last-child { justify-self: stretch; }
}
/* Toggle on label */
.fs-toggle-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fs-toggle-label .fs-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--slate-500); text-transform: none; letter-spacing: 0; }
.fs-toggle-label .fs-toggle input { accent-color: var(--brand); }

