/* Skål International brand palette — per official Brand Guidelines (2025    */
/* Update): dark blue #314691, light blue #65A8DE, grey 80% #59595B, plus    */
/* the approved secondary palette (intense blue, soft green, happy yellow,  */
/* lavanda). Montserrat is the mandated brand typeface.                     */
/*                                                                          */
/* Layout language is restyled after Stripe.com: crisp white surfaces,      */
/* bold confident headings, generous whitespace, thin precise borders,      */
/* subtle elevation on hover rather than heavy drop shadows, and a          */
/* restrained brand-navy accent used consistently for every interactive     */
/* element (links, primary buttons, focus rings, active nav state).         */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap');

:root {
  --navy: #314691;          /* Skål brand dark blue — primary interactive accent */
  --navy-2: #263875;        /* darker shade, used in gradients */
  --navy-deep: #202f5e;     /* hover/active state for navy buttons & links */
  --lightblue: #65A8DE;     /* Skål brand light blue — secondary accent */
  --intenseblue: #70DBF3;   /* Skål secondary: intense blue */
  --green: #60CDD2;         /* Skål secondary: soft green */
  --amber: #EDD945;         /* Skål secondary: happy yellow */
  --purple: #C65AD8;        /* Skål secondary: lavanda */
  --grey80: #59595B;        /* Skål brand grey 80% */

  --accent: var(--navy);
  --accent-dark: var(--navy-deep);
  --accent-soft: rgba(49, 70, 145, 0.08);
  --gold: var(--accent);    /* kept as an alias so existing .btn.gold etc. pick up the brand accent */
  --gold-2: var(--lightblue);

  --bg: #f6f7fa;            /* cool, crisp off-white page background */
  --bg2: #eef1f7;
  --card: #ffffff;
  --text: #0f1a33;          /* near-black with a faint navy cast, Stripe-style body text */
  --muted: var(--grey80);   /* Skål brand grey for secondary text */
  --red: #dc2626;
  --line: rgba(15, 26, 51, 0.09);
  --line-strong: rgba(15, 26, 51, 0.14);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(15, 26, 51, 0.05);
  --shadow: 0 1px 2px rgba(15, 26, 51, 0.04), 0 6px 18px rgba(15, 26, 51, 0.07);
  --shadow-lift: 0 16px 36px rgba(15, 26, 51, 0.12), 0 2px 6px rgba(15, 26, 51, 0.06);

  --grad-brand: linear-gradient(90deg, var(--navy) 0%, var(--navy-2) 60%, var(--lightblue) 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(49,70,145,0.06), rgba(101,168,222,0.10));
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}

a { color: inherit; }

.topbar {
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
  color: var(--text);
  padding: 14px 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(15, 26, 51, 0.045);
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
  transition: background 0.15s ease, transform 0.1s ease;
  flex: 0 0 auto;
}

.icon-btn:hover { background: rgba(15, 26, 51, 0.09); }
.icon-btn:active { transform: scale(0.92); }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand .logo-mark {
  height: 38px;
  width: auto;
  display: block;
}

.brand .badge {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 6px;
}

.brand h1 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.15;
  color: var(--navy);
}

.brand span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.topbar nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  margin-left: 16px;
  transition: color 0.15s ease;
}

.topbar nav a:hover { color: var(--navy-deep); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

.section-title {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--muted);
  margin: 32px 0 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 14px;
  background: var(--grad-brand);
  border-radius: 3px;
  display: inline-block;
}

.grid-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.grid-stats-3 { grid-template-columns: repeat(3, 1fr); }

.stat-card.diet-veg .value { color: #1f9a86; }
.stat-card.diet-nonveg .value { color: #c0392b; }
.stat-card.diet-none .value { color: var(--muted); }

@media (min-width: 640px) {
  .grid-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .grid-stats { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.2s cubic-bezier(.2,.8,.2,1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line-strong);
}

.stat-card .value {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stat-card .label {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.35;
  font-weight: 500;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

/* --- Marketing hero (public homepage) --- */
.hero {
  position: relative;
  margin: 8px 0 36px;
  padding: 56px 32px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  background-image:
    linear-gradient(120deg, rgba(101,168,222,0.55) 0%, rgba(101,168,222,0) 42%),
    linear-gradient(300deg, rgba(112,219,243,0.35) 0%, rgba(112,219,243,0) 38%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  overflow: hidden;
  text-align: center;
}

.hero-banner {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  margin: 0 auto 28px;
  border-radius: var(--radius);
  filter: drop-shadow(0 16px 36px rgba(0,0,0,0.3));
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h2 {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 14px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255,255,255,0.86);
  max-width: 560px;
  margin: 0 auto 26px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 26px;
}

.hero-fact {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.26);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions .btn {
  padding: 12px 24px;
  font-size: 14.5px;
}

.hero-actions .btn.on-hero-primary {
  background: #fff;
  color: var(--navy);
}
.hero-actions .btn.on-hero-primary:hover { background: #eef2fb; opacity: 1; }

.hero-actions .btn.on-hero-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
}
.hero-actions .btn.on-hero-outline:hover { background: rgba(255,255,255,0.12); opacity: 1; }

/* Light-blue highlight banner — mirrors the "tip" callout bars used         */
/* throughout the official Skål brand guidelines deck.                      */
.callout {
  background: rgba(101, 168, 222, 0.16);
  border: 1px solid rgba(101, 168, 222, 0.3);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--navy-2);
  line-height: 1.55;
}

/* Organising-body strip on the public homepage — Host Club + National       */
/* Committee lockup logos, shown between the hero and the destination cards. */
.org-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 24px;
  margin: 0 0 8px;
}

.org-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.org-logo img {
  height: 34px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.org-logo span {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
}

.org-divider {
  width: 1px;
  height: 34px;
  background: var(--line-strong);
}

@media (max-width: 480px) {
  .org-divider { display: none; }
}

.chart-scroll {
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 340px;
  margin-top: 10px;
  -webkit-overflow-scrolling: touch;
}

.chart-scroll::-webkit-scrollbar { width: 6px; }
.chart-scroll::-webkit-scrollbar-thumb { background: #dde1ea; border-radius: 3px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 900px) {
  .two-col { grid-template-columns: 1.3fr 1fr; }
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

tbody tr {
  transition: background 0.12s ease;
}

tbody tr:hover td {
  background: rgba(49, 70, 145, 0.035);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Wide tables (e.g. Host Members, with a long committees list) can push the
   Edit/Delete actions column off-screen with no visible scrollbar cue on some
   browsers/trackpads. Pin the actions column to the right of the scroll area
   so it's always reachable without discovering horizontal scroll first. */
.sticky-actions {
  position: sticky;
  right: 0;
  background: #fff;
  box-shadow: -6px 0 8px -6px rgba(15,26,51,0.15);
  white-space: nowrap;
}
tr:nth-child(even) .sticky-actions { background: #fff; }

/* Pins the identifying (Name) column to the left of a scrollable table so it
   stays visible while scrolling through wide tables like Host Registration &
   Payments — same idea as .sticky-actions but on the opposite edge. */
.sticky-col-left {
  position: sticky;
  left: 0;
  background: #fff;
  box-shadow: 6px 0 8px -6px rgba(15,26,51,0.15);
  white-space: nowrap;
}
tr:nth-child(even) .sticky-col-left { background: #fff; }

/* Record card list — used for Delegates, Host Members, and Volunteers,
   replacing a wide table (many columns + several action buttons per row)
   that forced horizontal scrolling and could hide content behind the sticky
   action column. Each record is now a self-contained card: an identity
   header up top, a label/value field grid in the middle, and the action
   buttons wrapped along the bottom — nothing ever needs horizontal scroll,
   at any screen width. See renderRecordCard() in admin.js. */
.record-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.record-card {
  border: 1px solid var(--line, #e3e6ee);
  border-radius: 10px;
  padding: 14px 16px;
  background: #fff;
}
.record-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line, #eef0f5);
}
.record-card-name {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink, #1a2340);
}
.record-card-header-right {
  font-size: 12.5px;
  color: var(--muted);
  text-align: right;
}
.record-card-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px 18px;
  margin-bottom: 12px;
}
.record-card-field label {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted, #8891a8);
  font-weight: 700;
  margin-bottom: 3px;
}
.record-card-field .value {
  font-size: 13px;
  color: var(--ink, #1a2340);
  white-space: normal;
}
.record-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line, #eef0f5);
}
.record-card-subpanel {
  margin: -4px 0 12px;
  padding: 12px 16px;
  border: 1px solid var(--line, #e3e6ee);
  border-top: none;
  border-radius: 0 0 10px 10px;
  background: #fbfbfd;
}

/* Host Registration & Payments: give every column more breathing room so the
   Status column (previously easy to miss next to dense text columns) reads
   clearly, and color the select so paid/pending is obvious at a glance. */
.host-payments-table th,
.host-payments-table td {
  padding: 14px 16px;
}
.hp-status-select {
  min-width: 120px;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid #d7dce3;
}
.hp-status-select.pending { background: #fdeaea; color: var(--red); border-color: #f6c9c9; }
.hp-status-select.paid { background: #e3f7f8; color: #1f9a86; border-color: #bfeae9; }

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1px;
}

.pill.paid { background: #e3f7f8; color: #1f9a86; }
.pill.partial { background: #fdf8e0; color: #a6900a; }
.pill.pending { background: #fdeaea; color: var(--red); }
.pill.single { background: #e9f0fc; color: var(--navy); }
.pill.double { background: #f8ecfb; color: var(--purple); }
.pill.congress_only { background: #eafbea; color: #1f8a3d; }
.pill.refunded { background: #eef1f5; color: #55606e; }
.pill.done, .pill.completed { background: #e3f7f8; color: #1f9a86; }
.pill.in_progress { background: #fdf8e0; color: #a6900a; }
.pill.not_started { background: #eef1f5; color: #55606e; }
.pill.overdue { background: #fdeaea; color: var(--red); font-weight: 800; }
.pill.lead { background: var(--gold-2, #fdf3d8); color: #8a6a00; }
.pill.verified { background: #e3f7f8; color: #0f7a6a; font-weight: 800; }
.pill.enquiry { background: #eef1f5; color: #55606e; }
.pill.billed { background: #fdf8e0; color: #a6900a; }
.pill.allocated { background: #e3f7f8; color: #1f9a86; }
.pill.cancelled { background: #fdeaea; color: var(--red); }
.pill.available { background: #eafbea; color: #1f8a3d; }
.pill.recorded { background: #e3f7f8; color: #1f9a86; }
.pill.pending_approval { background: #fdf8e0; color: #a6900a; }
.pill.approved { background: #e9f0fc; color: var(--navy); }
.pill.rejected { background: #fdeaea; color: var(--red); }
.approval-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; margin: 2px 3px 2px 0; }
.approval-chip.approved { background: #e3f7f8; color: #1f9a86; }
.approval-chip.rejected { background: #fdeaea; color: var(--red); }
.approval-chip.pending { background: #eef1f5; color: #55606e; }
.approval-chip.unassigned { background: #fdeaea; color: var(--red); font-style: italic; }
.module-checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 16px; margin: 8px 0 12px; }
.module-checkbox-grid label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text); cursor: pointer; }
.module-checkbox-grid input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  flex: 0 0 16px;
  padding: 0;
  margin: 0;
  border-radius: 4px;
  accent-color: var(--navy);
}

/* Host/Driver/Transporter portal: profile-card avatar-initials header,
   iOS-Contacts-monogram style. */
.portal-profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.portal-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--navy);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.02em;
}
tr.row-overdue td { background: #fff6f6; }

.media-two-col {
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .media-two-col { grid-template-columns: 1fr 1fr; }
}

.media-loop {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}

.media-loop video, .media-loop img {
  width: 100%;
  display: block;
  max-height: 50vh;
  object-fit: contain;
  background: #000;
}

.media-caption {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(rgba(0,0,0,0.7), transparent);
  color: #fff;
  padding: 8px 12px 20px;
  font-size: 13px;
}

.media-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 8px 0;
  background: #000;
  padding-bottom: 8px;
}

.media-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4a4f5c;
}

.media-dots span.active {
  background: var(--lightblue);
}

.media-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #14151b;
  padding: 8px 10px;
  flex-wrap: wrap;
}

.media-controls.poster-controls {
  justify-content: flex-end;
}

.media-btn {
  border: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.15s ease;
}

.media-btn:hover {
  background: rgba(255,255,255,0.18);
}

.media-btn.media-download {
  width: auto;
  padding: 0 12px;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

.media-controls .media-volume {
  flex: 1;
  min-width: 60px;
  max-width: 120px;
  accent-color: var(--lightblue);
}

.feed-item {
  border-left: 3px solid var(--lightblue);
  padding: 8px 0 8px 12px;
  margin-bottom: 10px;
}

.feed-item .time {
  font-size: 11px;
  color: var(--muted);
}

.feed-item .title {
  font-weight: 700;
  font-size: 13.5px;
  margin: 2px 0;
}

.feed-item .desc {
  font-size: 12.5px;
  color: var(--muted);
}

.empty {
  color: var(--muted);
  font-size: 13px;
  padding: 12px 0;
  text-align: center;
}

.info-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.65;
  margin: 10px 0 0;
}

.itinerary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 700px) {
  .itinerary-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .itinerary-grid { grid-template-columns: repeat(4, 1fr); }
}

.itin-day-label {
  font-weight: 800;
  font-size: 13.5px;
  color: var(--navy);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--lightblue);
}

.speaker-grid, .sponsor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 700px) {
  .speaker-grid { grid-template-columns: repeat(3, 1fr); }
  .sponsor-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) {
  .speaker-grid { grid-template-columns: repeat(4, 1fr); }
  .sponsor-grid { grid-template-columns: repeat(5, 1fr); }
}

.speaker-card, .sponsor-card {
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.speaker-card:hover, .sponsor-card:hover,
.speaker-card:focus-visible, .sponsor-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--lightblue);
  outline: none;
}

.speaker-card .avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  display: block;
  border: 2px solid var(--lightblue);
}

.speaker-card .avatar-placeholder {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 10px;
  background: var(--bg2, #eef2f8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  color: var(--navy);
}

.speaker-card .name {
  font-weight: 700;
  font-size: 13.5px;
}

.speaker-card .role {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.speaker-card .topic {
  font-size: 12px;
  color: var(--text);
  margin-top: 6px;
  line-height: 1.5;
}

.sponsor-card .logo {
  width: 100%;
  height: 70px;
  object-fit: contain;
  margin-bottom: 8px;
}

.sponsor-card .logo-placeholder {
  width: 100%;
  height: 70px;
  border-radius: 6px;
  background: var(--bg2, #eef2f8);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  color: var(--navy);
}

.sponsor-card .name {
  font-weight: 700;
  font-size: 12.5px;
}

.sponsor-card .tier {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 700px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .info-grid { grid-template-columns: repeat(3, 1fr); }
}

.info-card .info-icon {
  font-size: 22px;
  margin-bottom: 6px;
}

.info-card strong {
  display: block;
  font-size: 13.5px;
  color: var(--navy);
  margin-bottom: 6px;
}

.info-card p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.leader-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 640px) {
  .leader-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .leader-grid { grid-template-columns: repeat(4, 1fr); }
}

.leader-card {
  text-align: center;
  padding: 14px;
}

.leader-card img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  display: block;
  background: var(--bg);
  border: 2px solid var(--lightblue);
}

.leader-card strong {
  display: block;
  font-size: 13px;
  color: var(--navy);
}

.leader-card span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

footer {
  text-align: center;
  padding: 24px 16px 40px;
  font-size: 12px;
  color: var(--muted);
}

/* --- Admin panel: sidebar shell --- */
.admin-shell {
  display: flex;
  align-items: flex-start;
}

.sidebar {
  flex: 0 0 260px;
  width: 260px;
  overflow: hidden;
  transition: width 0.28s cubic-bezier(.4,0,.2,1), flex-basis 0.28s cubic-bezier(.4,0,.2,1), opacity 0.2s ease;
  position: sticky;
  top: 67px;
  height: calc(100vh - 67px);
  border-right: 1px solid var(--line);
  background: #fbfcfd;
}

.admin-shell.sidebar-hidden .sidebar {
  flex-basis: 0;
  width: 0;
  border-right: none;
  opacity: 0;
}

.sidebar-inner {
  width: 260px;
  height: 100%;
  overflow-y: auto;
  padding: 18px 14px 40px;
}

.sidebar-inner::-webkit-scrollbar { width: 6px; }
.sidebar-inner::-webkit-scrollbar-thumb { background: #dde1ea; border-radius: 3px; }

@media (max-width: 860px) {
  .sidebar {
    position: fixed;
    top: 67px;
    left: 0;
    z-index: 40;
    box-shadow: var(--shadow-lift);
  }
  .admin-shell:not(.sidebar-hidden) .sidebar {
    width: 260px;
    flex-basis: 260px;
  }
}

.admin-main {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-group {
  margin-bottom: 4px;
}

.nav-group-label {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  padding: 10px 10px 6px;
  cursor: pointer;
  user-select: none;
}

.nav-group-label::-webkit-details-marker { display: none; }
.nav-group-label::marker { content: ''; display: none; }

.nav-group-label:hover { color: var(--text); }

.nav-group-label .chevron {
  font-size: 10px;
  transition: transform 0.2s ease;
  color: var(--muted);
}

.nav-group[open] .nav-group-label .chevron { transform: rotate(90deg); }

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-nav button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--text);
  border: none;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-nav button:hover {
  background: rgba(15, 26, 51, 0.05);
}

.admin-nav button.active {
  background: var(--accent-soft);
  color: var(--navy);
  font-weight: 700;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 700px) {
  .form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}

label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}

input, select, textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #d7dbe3;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

textarea { resize: vertical; min-height: 60px; }

.btn {
  display: inline-block;
  background: var(--text);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }

.btn.gold { background: var(--navy); color: #fff; }
.btn.gold:hover { background: var(--navy-deep); opacity: 1; box-shadow: 0 6px 16px rgba(49,70,145,0.28); }
.btn.outline { background: transparent; color: var(--text); border: 1px solid #d7dbe3; }
.btn.outline:hover { background: rgba(15,26,51,0.04); opacity: 1; transform: none; }
.btn.danger { background: var(--red); }
.btn.small { padding: 7px 13px; font-size: 12.5px; border-radius: 7px; }

.field { margin-bottom: 10px; }

/* Pickup/drop point fields (arrival point + every From/To in Transport
   Planning/Pre Tours) — a plain text input + datalist gives no visible
   affordance that suggestions exist (no arrow, poor/no support on mobile
   browsers), so these get an explicit dropdown button + menu layered on top
   of the same free-typing input. See locationInputHtml()/toggleLocationDropdown()
   in admin.js and login.js. */
.location-input-wrap { position: relative; }
.location-input-wrap input { padding-right: 34px; }
.location-dropdown-btn {
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; cursor: pointer; padding: 6px 8px;
  font-size: 11px; color: var(--muted); line-height: 1;
}
.location-dropdown-btn:hover { color: var(--text); }
.location-dropdown-menu {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px;
  background: #fff; border: 1px solid #d7dbe3; border-radius: var(--radius-sm);
  box-shadow: 0 10px 28px rgba(15,26,51,0.14); max-height: 220px; overflow-y: auto;
  z-index: 60;
}
.location-dropdown-item { padding: 8px 12px; cursor: pointer; font-size: 13.5px; color: var(--text); }
.location-dropdown-item:hover { background: rgba(49,70,145,0.06); }
.location-dropdown-empty { padding: 10px 12px; font-size: 12.5px; color: var(--muted); }

.hint {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
}

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(15, 26, 51, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: #fff;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  z-index: 200;
  box-shadow: 0 8px 30px rgba(15,26,51,0.3);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Shared checklist modal (Sponsors/Speakers/Guest Visitors/goodies checklist) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 51, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 20px;
}
.modal-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(15,26,51,0.32);
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 22px 24px;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
}
.modal-close:hover { color: var(--text); }

/* Speaker/sponsor detail popup (public homepage — see public.js openProfileModal) */
.profile-modal-card { max-width: 420px; }
.profile-modal-body { text-align: center; padding-top: 4px; }

.profile-modal-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  display: block;
  border: 3px solid var(--lightblue);
}
.profile-modal-avatar.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2, #eef2f8);
  font-weight: 800;
  font-size: 34px;
  color: var(--navy);
}

.profile-modal-logo {
  max-width: 220px;
  max-height: 110px;
  object-fit: contain;
  margin: 0 auto 14px;
  display: block;
}
.profile-modal-logo.logo-placeholder {
  width: 220px;
  height: 110px;
  border-radius: 8px;
  background: var(--bg2, #eef2f8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--navy);
  margin: 0 auto 14px;
  padding: 0 12px;
  text-align: center;
}

.profile-modal-name { font-size: 19px; font-weight: 800; color: var(--text); }
.profile-modal-role { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.profile-modal-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.profile-modal-topic {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
}
.checklist-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.checklist-row .checklist-label { flex: 1; font-size: 13.5px; }
.checklist-row.status-done .checklist-label { text-decoration: line-through; color: var(--muted); }

.action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.thumb {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 11px;
}

.thumb img, .thumb video {
  width: 100%;
  height: 90px;
  object-fit: cover;
  background: #000;
}

.thumb .meta {
  padding: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

/* --- Admin login / signup gate --- */
#authGate {
  margin-top: 60px;
}

#authGate .card {
  margin-bottom: 14px;
}
