/* Floormatch — the one stylesheet. Tokens and rules per DESIGN.md / SPECIFICATION.md §0.2. */

/* Fonts (self-hosted, latin subsets) */
@font-face {
  font-family: "Pathway Extreme";
  font-style: normal;
  font-weight: 700;
  font-stretch: 80%;
  font-display: swap;
  src: url("/static/fonts/pathway-extreme-700-condensed.woff2") format("woff2");
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/schibsted-grotesk.woff2") format("woff2");
}

@font-face {
  font-family: "Petrona";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/static/fonts/petrona.woff2") format("woff2");
}

@font-face {
  font-family: "Petrona";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/petrona-italic.woff2") format("woff2");
}

/* Tokens — light (Modern SaaS event palette inspired by Festiva / Dribbble) */
:root,
[data-theme="light"] {
  color-scheme: light;
  --hall: #EFF3F8;
  --paper: #FFFFFF;
  --manila: #FFF7ED;
  --ink: #0A192F;
  --carbon: #475569;
  --ruling: #CBD5E1;
  --ruling-grid: rgba(203, 213, 225, 0.5);
  --press: #E65100;
  --press-hover: #C53D00;
  --press-wash: #FFF3EB;
  --now: #F59E0B;
  --brand-navy: #0A192F;
  --brand-navy-light: #172A45;
  --brand-orange: #E65100;
  --brand-orange-light: #FFE0B2;
  --accent-lime: #10B981;
  --accent-lime-bg: #ECFDF5;
  --accent-lime-border: #6EE7B7;
  --accent-lime-text: #065F46;
  --radius-pill: 9999px;
  --radius-card: 16px;
  --radius-sm: 8px;

  --font-ui: "Schibsted Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --font-signage: "Pathway Extreme", "Avenir Next", "Segoe UI", sans-serif;
  --font-voice: "Petrona", Georgia, serif;
  --nav-h: 64px;
}

/* Primary Button Styling — Festiva Bold Burnt Orange */
.btn-primary,
button.btn-primary,
a.btn-primary,
.cta-btn {
  background: #E65100 !important;
  color: #FFFFFF !important;
  border: 1px solid #C53D00 !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  transition: all 0.18s ease-in-out;
  box-shadow: 0 4px 14px rgba(230, 81, 0, 0.28) !important;
}

.btn-primary:hover,
button.btn-primary:hover,
a.btn-primary:hover,
.cta-btn:hover {
  background: #C53D00 !important;
  box-shadow: 0 6px 18px rgba(230, 81, 0, 0.38) !important;
  transform: translateY(-1px);
}

/* Top bar styling — Crisp white with orange active highlights */
.top-bar {
  padding: 12px 24px;
  border-bottom: 1px solid #E2E8F0;
  background: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 50;
  box-sizing: border-box;
  width: 100%;
}

.desktop-nav a.active {
  color: #E65100 !important;
  border-bottom-color: #E65100 !important;
  font-weight: 750 !important;
}

.desktop-nav a:hover {
  color: #E65100 !important;
  border-bottom-color: #FED7AA !important;
}



/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Base & Scaled Typography */
html {
  font-size: 18px;
}

body {
  margin: 0;
  background-color: var(--hall);
  background-image:
    linear-gradient(to right, var(--ruling-grid, rgba(196, 183, 166, 0.45)) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ruling-grid, rgba(196, 183, 166, 0.45)) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 450;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Animations & Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(216, 58, 46, 0.4);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(216, 58, 46, 0);
  }
}

@keyframes subtleHover {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-2px);
  }
}

.animate-fade-in {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-slide-up {
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ruling);
  text-underline-offset: 3px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

a:hover {
  text-decoration-color: var(--press);
  color: var(--press);
}

a,
button,
.btn,
.status-btn,
input,
select,
textarea {
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

:focus-visible {
  outline: 2px solid var(--press);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4,
p {
  margin: 0 0 12px;
}

h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 24px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

h4 {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.35;
}

/* Type scale (18px root) */
.booth-number {
  font-family: var(--font-signage);
  font-stretch: 80%;
  font-size: 44px;
  line-height: 1.0;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.screen-title {
  font-family: var(--font-ui);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-title {
  font-family: var(--font-ui);
  font-size: 22px;
  line-height: 1.3;
  font-weight: 750;
  color: var(--ink);
}

.meta {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 550;
  font-feature-settings: "tnum";
  color: var(--carbon);
}

.match-reason {
  font-family: var(--font-voice);
  font-style: italic;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 400;
}

.brochure-title {
  font-family: var(--font-voice);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
}

.brochure-body {
  font-family: var(--font-voice);
  font-size: 19px;
  line-height: 1.55;
  font-weight: 400;
}

/* Wordmark */
.wordmark {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.wordmark-lockup {
  font-family: var(--font-signage);
  font-stretch: 80%;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* Stamps & Badges — Modern rounded pill shapes */
.stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 9999px;
  color: var(--ink);
  background: var(--paper);
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(17, 15, 12, 0.05);
}

.stamp-ai {
  color: var(--press);
  border-color: var(--press);
  background: var(--press-wash);
}

.stamp-draft {
  color: var(--carbon);
  border-color: var(--carbon);
  background: var(--hall);
}

.stamp-proof {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--paper);
}

.stamp-sent {
  color: var(--press);
  border-color: var(--press);
  background: var(--press-wash);
}

.stamp-matched {
  color: #110F0C;
  border-color: var(--now);
  background: #FFF7D6;
}

.stamp-follow-up {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--manila);
}

/* Surfaces & Elevated Cards */
.card {
  background: var(--paper);
  border: 1.5px solid var(--ruling);
  border-radius: 12px;
  box-shadow: 0 4px 16px -2px rgba(17, 15, 12, 0.06), 0 2px 4px -1px rgba(17, 15, 12, 0.03);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.card:hover {
  border-color: rgba(17, 15, 12, 0.25);
  box-shadow: 0 8px 24px -4px rgba(17, 15, 12, 0.1), 0 3px 8px -1px rgba(17, 15, 12, 0.05);
}

.sheet {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 8px 28px -4px rgba(17, 15, 12, 0.14), 0 2px 8px rgba(17, 15, 12, 0.06);
}

.sheet-manila {
  background: var(--manila);
}

/* Ergonomic Modern Fields and Buttons */
input,
select,
textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ruling);
  border-radius: 10px;
  padding: 12px 16px;
  min-height: 48px;
  width: 100%;
  box-shadow: 0 1px 3px rgba(17, 15, 12, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input::placeholder,
textarea::placeholder {
  color: #72685B;
  opacity: 0.9;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
  outline: none;
  background: #FFFFFF;
  box-shadow: 0 0 0 3.5px rgba(216, 58, 46, 0.18);
}

.btn,
button {
  font: inherit;
  font-size: 15.5px;
  font-weight: 700;
  min-height: 46px;
  padding: 11px 22px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 2px 6px -1px rgba(17, 15, 12, 0.1), 0 1px 2px rgba(17, 15, 12, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 160ms cubic-bezier(0.16, 1, 0.3, 1), background 160ms ease;
}

.btn:hover,
button:hover {
  background: var(--paper);
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -2px rgba(17, 15, 12, 0.16), 0 2px 6px rgba(17, 15, 12, 0.08);
}

.btn:active,
button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(17, 15, 12, 0.1);
}

.btn-primary {
  background: var(--ink) !important;
  color: #FFFFFF !important;
  border-color: var(--ink) !important;
  box-shadow: 0 4px 14px -2px rgba(17, 15, 12, 0.28), 0 2px 4px rgba(17, 15, 12, 0.15);
}

.btn-primary:hover {
  background: #28231E !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -2px rgba(17, 15, 12, 0.35);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 5px rgba(17, 15, 12, 0.2);
}

.btn-press,
.btn-action {
  background: var(--press) !important;
  color: #FFFFFF !important;
  border-color: var(--press) !important;
  box-shadow: 0 4px 14px -2px rgba(216, 58, 46, 0.38);
}

.btn-press:hover,
.btn-action:hover {
  background: #C42D20 !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -2px rgba(216, 58, 46, 0.48);
}

.btn-destructive {
  background: transparent;
  color: var(--press);
  border: 1.5px solid var(--press);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(216, 58, 46, 0.15);
}

.btn-destructive:hover {
  background: var(--press-wash);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(216, 58, 46, 0.25);
}

/* App chrome — full-width modern SaaS canvas (never framed in mock phone margins on desktop) */
.app-shell {
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  position: relative;
}

body {
  margin: 0;
  padding: 0 !important;
  background: #FFFFFF !important;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
}

@media (min-width: 768px) {
  body {
    padding: 0 !important;
    background: #FFFFFF !important;
  }

  .app-shell {
    margin: 0;
    width: 100%;
    max-width: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: #FFFFFF;
  }
}


.top-bar {
  padding: 14px 28px !important;
  min-height: 72px !important;
  border-bottom: 1.5px solid #E2E8F0 !important;
  background: #FFFFFF !important;
  position: sticky;
  top: 0;
  z-index: 50;
  box-sizing: border-box;
  width: 100%;
  display: flex !important;
  align-items: center !important;
}

.top-bar-super {
  background: #FFFFFF !important;
  color: var(--ink) !important;
  border-bottom: 2px solid #F59E0B !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.top-bar-super .desktop-nav a {
  color: var(--carbon) !important;
}

.top-bar-super .desktop-nav a:hover,
.top-bar-super .desktop-nav a.active {
  color: var(--ink) !important;
  border-bottom-color: #F59E0B !important;
}

.top-bar-super .status-btn {
  background: var(--paper) !important;
  color: var(--ink) !important;
  border-color: var(--ruling) !important;
}

.top-bar-super .status-btn:hover {
  background: var(--hall) !important;
  border-color: var(--ink) !important;
  color: var(--ink) !important;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 100% !important;
  margin: 0 !important;
  min-width: 0;
  box-sizing: border-box;
}

.desktop-nav {
  display: none;
}

@media (min-width: 768px) {
  .top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin: 0 8px;
  }

  .desktop-nav a {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 650;
    color: var(--carbon);
    text-decoration: none;
    padding: 6px 8px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 120ms ease-out, border-color 120ms ease-out;
    flex-shrink: 0;
  }

  .desktop-nav a:hover {
    color: var(--ink);
    border-bottom-color: var(--ruling);
  }

  .desktop-nav a.active {
    color: var(--ink);
    border-bottom-color: var(--ink);
  }
}

@media (min-width: 768px) and (max-width: 1240px) {
  .desktop-nav {
    gap: 6px !important;
    margin: 0 4px !important;
  }

  .desktop-nav a {
    font-size: 12.5px !important;
    padding: 6px 5px !important;
  }

  .user-role-badge {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .expo-context-pill {
    display: none !important;
  }

  .user-name-text {
    max-width: 90px !important;
  }
}

/* Dedicated ergonomic Sign Out button */
.btn-signout {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  padding: 0 16px !important;
  height: 36px !important;
  box-sizing: border-box !important;
  border-radius: 9px !important;
  font-size: 13.5px !important;
  font-weight: 750 !important;
  color: var(--press) !important;
  border: 1.5px solid var(--press) !important;
  background: transparent !important;
  text-decoration: none !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.btn-signout:hover {
  background: var(--press-wash) !important;
  color: var(--press) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(216, 58, 46, 0.2) !important;
}

@media (max-width: 767px) {
  body {
    padding: 0 !important;
    margin: 0 !important;
    background: var(--paper) !important;
  }

  .phone-column,
  .app-shell {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .top-bar {
    padding: 10px 14px !important;
  }

  .top-bar-inner {
    gap: 8px !important;
  }

  .desktop-nav {
    display: none !important;
  }

  .nav-all-expos {
    display: none !important;
  }

  .user-name-text {
    display: none !important;
  }

  .user-role-badge {
    display: none !important;
  }

  .expo-context-pill {
    display: none !important;
  }

  .user-profile-chip {
    padding: 2px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .btn-signout {
    padding: 0 10px !important;
    font-size: 12.5px !important;
    height: 32px !important;
  }

  .theme-toggle-btn {
    width: 32px !important;
    height: 32px !important;
  }

  main {
    padding: 16px 14px 72px 14px !important;
  }

  .screen-title {
    font-size: 22px !important;
  }

  .home-hub {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .home-split {
    grid-template-columns: 1fr !important;
  }
}

.event-pill {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  background: var(--hall);
  border: 1px solid var(--ruling);
  border-radius: 4px;
  color: var(--carbon);
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}

main {
  flex: 1;
  padding: 20px;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 20px);
}

@media (min-width: 768px) {
  main {
    padding: 28px 32px;
    padding-bottom: 40px;
  }
}

/* Bottom tab bar — fixed on phone, hidden on desktop/laptop */
.bottom-nav {
  position: fixed;
  z-index: 30;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  display: flex;
  background: var(--paper);
  border-top: 1px solid var(--ruling);
  padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 768px) {
  .bottom-nav {
    display: none !important;
  }
}

.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 48px;
  padding: 8px 4px;
  color: var(--carbon);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 1;
  font-weight: 550;
}

.bottom-nav a svg {
  width: 24px;
  height: 24px;
}

.bottom-nav a.active {
  color: var(--ink);
  box-shadow: inset 0 2px 0 var(--ink);
}

/* Type-scale specimen rows (dev health page) */
.specimen {
  margin-bottom: 16px;
}

.specimen-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Pages */
.banner {
  margin: 0;
  padding: 12px 16px;
  background: var(--press-wash);
  border-bottom: 1px solid var(--press);
}

/* User Status Bar & Session Controls */
.user-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--ruling);
  font-size: 13px;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink) !important;
  color: #FFFFFF !important;
  border: 2px solid var(--ruling);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(17, 15, 12, 0.2);
  flex-shrink: 0;
}

.user-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--press) !important;
  color: #FFFFFF !important;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.user-profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1.5px solid var(--ruling);
  padding: 4px 12px 4px 5px;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(17, 15, 12, 0.06);
  transition: all 0.2s ease;
}

.user-profile-chip:hover {
  border-color: var(--ink);
  box-shadow: 0 4px 12px rgba(17, 15, 12, 0.1);
}

.user-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.user-name-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.status-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 16px;
  font-size: 13.5px;
  font-weight: 650;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--ruling);
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(17, 15, 12, 0.08);
  transition: all 160ms cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.status-btn:hover {
  background: var(--paper);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(17, 15, 12, 0.12);
  transform: translateY(-2px);
}

.status-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(17, 15, 12, 0.08);
}

.status-btn.highlight {
  background: var(--ink) !important;
  color: #FFFFFF !important;
  border-color: var(--ink) !important;
  box-shadow: 0 2px 8px rgba(17, 15, 12, 0.25);
}

.status-btn.highlight:hover {
  background: #25201A !important;
  color: #FFFFFF !important;
  box-shadow: 0 5px 16px rgba(17, 15, 12, 0.35);
}

.status-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--carbon);
  display: inline-block;
}

.status-indicator-dot.on {
  background: #2E9D4E;
}

.status-link {
  color: var(--carbon);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 2px;
  transition: color 120ms ease-out;
}

.status-link:hover {
  color: var(--ink);
}

.status-link.highlight {
  color: var(--ink);
  background: var(--manila);
  border: 1px solid var(--ruling);
}

.status-link.highlight:hover {
  border-color: var(--ink);
}

.theme-toggle-btn {
  background: none;
  border: 1px solid var(--ruling);
  border-radius: 2px;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
  color: var(--ink);
  height: 28px;
}

.theme-toggle-btn:hover {
  background: var(--hall);
  border-color: var(--ink);
}

main.no-nav {
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

.screen-title {
  margin-bottom: 8px;
}

.stack>*+* {
  margin-top: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}

.field span,
.field label {
  font-size: 13px;
  font-weight: 550;
  color: var(--carbon);
}

.error {
  border: 1px solid var(--press);
  padding: 12px;
  margin-top: 8px;
}

.list-row {
  display: block;
  width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid var(--ruling);
  color: inherit;
  text-decoration: none;
  background: transparent;
  text-align: left;
}

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

.row-actions form {
  margin: 0;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.chip {
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--ruling);
  border-radius: 2px;
  background: var(--paper);
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.chip.on {
  background: var(--ink);
  color: var(--paper);
}

.counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.counter {
  border: 1.5px solid var(--ruling);
  border-radius: 6px;
  padding: 16px 20px;
  background: var(--paper);
  box-shadow: 0 2px 6px -1px rgba(17, 15, 12, 0.05), 0 1px 3px -1px rgba(17, 15, 12, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 90px;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.counter:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -2px rgba(17, 15, 12, 0.08);
}

.counter b {
  display: block;
  font-family: var(--font-signage);
  font-stretch: 80%;
  font-size: 36px;
  line-height: 1;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.counter span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--carbon);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sticky-action {
  position: sticky;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  background: var(--paper);
  padding: 12px 0;
}

.full {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.htmx-indicator {
  opacity: 0;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  opacity: 1;
}

.now-mark {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--now);
  vertical-align: middle;
}

.map-stage-wrapper {
  position: relative;
  margin-top: 12px;
}

.map-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--paper);
  border: 1px solid var(--ruling);
  padding: 3px;
  box-shadow: 2px 2px 0 var(--ink);
}

.map-btn {
  min-height: 32px;
  height: 32px;
  width: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid var(--ruling);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
}

.map-btn:hover {
  background: var(--hall);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--carbon);
  border-bottom: 1px solid var(--ruling);
  background: var(--paper);
  margin-top: 8px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border: 1px solid var(--ink);
  background: var(--paper);
  display: inline-block;
}

.legend-dot.star {
  background: var(--press);
  border-color: var(--press);
}

.legend-dot.visited {
  background: var(--ruling);
  border-color: var(--carbon);
}

.legend-dot.match {
  background: var(--now);
  border-color: var(--now);
}

.map-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 650;
  max-height: 70dvh;
  min-height: 460px;
  overflow: hidden;
  background-color: var(--hall);
  background-image:
    linear-gradient(to right, var(--ruling) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ruling) 1px, transparent 1px);
  background-size: 28px 28px;
  border: 1.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  touch-action: none;
}

.map-inner {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
}

.cad-architectural-bg,
.cad-architectural-blueprint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.pin {
  position: absolute;
  min-width: 68px;
  min-height: 52px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 4px 6px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: 2px 2px 0 var(--ink);
  border-radius: 2px;
  overflow: hidden;
  user-select: none;
  z-index: 2;
  transition: transform 120ms ease-out, box-shadow 120ms ease-out, background 120ms ease-out;
}

.pin:hover {
  background: var(--hall);
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 var(--ink);
  z-index: 10;
}

.pin:active {
  transform: translateY(1px);
  box-shadow: 1px 1px 0 var(--ink);
}

.pin-badge {
  font-family: var(--font-signage);
  font-stretch: 80%;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  color: var(--ink);
  background: var(--manila);
  padding: 2px 4px;
  border-radius: 1px;
  margin-bottom: 2px;
  letter-spacing: -0.02em;
}

.pin-title {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.pin-meta {
  display: flex;
  gap: 3px;
  align-items: center;
  margin-top: 2px;
}

.pin-status {
  font-size: 9px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 3px;
  border-radius: 1px;
}

.pin-status.star {
  color: #fff;
  background: var(--press);
}

.pin-status.visited {
  color: var(--carbon);
  background: var(--ruling);
}

.pin.visited {
  border-color: var(--ruling);
  opacity: 0.9;
}

.pin.hi,
.pin.you,
.pin.selected-pin {
  border-color: var(--press);
  border-width: 2.5px;
  box-shadow: 0 0 0 3px rgba(216, 58, 46, 0.25), 3px 3px 0 var(--press);
  background: var(--manila);
  z-index: 20;
}

.pin.selected-pin .pin-badge,
.pin.hi .pin-badge {
  background: var(--press);
  color: #fff;
}

.landmark {
  position: absolute;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--carbon);
  padding: 4px 10px;
  border: 1.5px dashed var(--ruling);
  background: var(--paper);
  border-radius: 3px;
  opacity: 0.95;
  box-shadow: 2px 2px 0 var(--ruling);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.landmark.entrance {
  border-color: #2E7D32;
  color: #2E7D32;
  background: #E8F5E9;
  border-style: solid;
  box-shadow: 2px 2px 0 #2E7D32;
}

.landmark.main-stage {
  border-color: var(--ink);
  background: #1C1915;
  color: #F0C84A;
  border-style: solid;
  box-shadow: 2px 2px 0 var(--press);
}

.landmark.lounge {
  border-color: var(--now);
  background: #FFF8E1;
  color: #8D6E63;
}

.wayfinding-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

.wayfinding-path {
  fill: none;
  stroke: var(--press);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 6 4;
  animation: wayfindingDash 1.2s linear infinite;
  filter: drop-shadow(0 1px 2px rgba(216, 58, 46, 0.4));
}

@keyframes wayfindingDash {
  to {
    stroke-dashoffset: -20;
  }
}

.hall-zone-label {
  position: absolute;
  font-family: var(--font-signage);
  font-stretch: 80%;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ruling);
  pointer-events: none;
  user-select: none;
  opacity: 0.65;
}

.map-aisle-guide {
  position: absolute;
  border: 1px dashed var(--ruling);
  background: rgba(228, 207, 160, 0.12);
  pointer-events: none;
  z-index: 1;
}

.sheet-panel {
  border-top: 2px solid var(--ink);
  background: var(--paper);
  max-height: 60dvh;
  overflow: auto;
  margin-top: 12px;
  padding: 16px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.sheet-close-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--carbon);
  padding: 4px 8px;
  line-height: 1;
}

.sheet-close-btn:hover {
  color: var(--ink);
}

#stall-sheet:not(:empty) {
  position: sticky;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  z-index: 20;
  background: var(--paper);
  animation: slideUp 0.15s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(12px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Event Landing Page Components */
.landing-hero {
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--ruling);
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--carbon);
  margin-bottom: 10px;
}

.landing-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--press);
  display: inline-block;
}

.landing-title {
  font-family: var(--font-signage);
  font-stretch: 80%;
  font-size: 34px;
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 12px;
}

.landing-quote {
  font-family: var(--font-voice);
  font-style: italic;
  font-size: 17px;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 12px;
}

.landing-desc {
  font-size: 14px;
  line-height: 1.45;
  color: var(--carbon);
  margin-bottom: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0;
}

.feature-card {
  border: 1px solid var(--ruling);
  background: var(--paper);
  padding: 10px;
  border-radius: 2px;
  box-shadow: 1px 1px 0 var(--ruling);
}

.feature-card h4 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
}

.feature-card p {
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
  color: var(--carbon);
}

.persona-picker {
  margin: 16px 0;
  padding: 14px;
  background: var(--manila);
  border: 1px solid var(--ruling);
  box-shadow: 2px 2px 0 var(--ink);
}

.persona-picker h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--ink);
}

.persona-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.persona-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  min-height: auto;
  width: 100%;
}

.persona-btn:hover {
  transform: translateY(-1px);
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--hall);
  border-color: var(--ink);
}

.persona-name {
  font-weight: 700;
  font-size: 13px;
}

.persona-role {
  font-size: 11px;
  color: var(--carbon);
}

/* Home Hub & Match Cards */
.home-hub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}

.home-tile {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  border: 1.5px solid var(--ruling);
  background: var(--paper);
  text-decoration: none;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  border-radius: 6px;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.home-tile:hover {
  border-color: var(--ink);
  box-shadow: 3.5px 3.5px 0 var(--ink);
  transform: translateY(-2px);
}

.home-tile-icon {
  font-size: 20px;
  margin-bottom: 6px;
}

.home-tile-title {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
}

.home-tile-sub {
  font-size: 12px;
  color: var(--carbon);
  margin-top: 4px;
}

.match-card-rich {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  padding: 16px 18px;
  box-shadow: 2.5px 2.5px 0 var(--ink);
  margin-top: 10px;
  text-decoration: none;
  display: block;
  color: inherit;
  border-radius: 6px;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.match-card-rich:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translateY(-1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.theme-btn {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}

.qr {
  width: min(72vw, 280px);
  height: auto;
  display: block;
  background: var(--paper);
}

body.badge-bright,
body.badge-bright .phone-column,
body.badge-bright .app-shell {
  background: #fff;
  color: #1C1915;
}

.card {
  padding: 16px;
  margin-top: 12px;
}

.sheet {
  padding: 20px;
}

button,
.btn,
a.btn {
  box-sizing: border-box;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

html {
  scroll-padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px);
}

html,
body {
  overflow-x: hidden;
}

/* Responsive Multi-Column Grids for Desktop & Tablet */
.responsive-split {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 840px) {
  .responsive-split {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 28px;
    align-items: stretch;
  }
}

.map-split {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 840px) {
  .map-split {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
  }

  .map-split .map-stage {
    height: 70dvh;
    min-height: 520px;
  }
}

.home-split {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 840px) {
  .home-split {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 32px;
    align-items: start;
  }
}

@media (min-width: 840px) {
  .landing-hero {
    padding-top: 8px;
    border-bottom: none;
  }

  .landing-title {
    font-size: 52px;
    line-height: 0.94;
    letter-spacing: -0.04em;
  }

  .landing-quote {
    font-size: 20px;
  }

  .landing-desc {
    font-size: 16px;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .home-hub {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

/* Outbox & Email Simulation Cards */
.outbox-card {
  border: 1px solid var(--ruling);
  background: var(--paper);
  padding: 16px 20px;
  border-radius: 4px;
  box-shadow: 2px 2px 0 var(--ink);
  margin-bottom: 12px;
  display: block;
  text-decoration: none;
  color: var(--ink);
  transition: transform 120ms ease-out, box-shadow 120ms ease-out, border-color 120ms ease-out;
}

.outbox-card:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--ink);
  border-color: var(--ink);
}

.outbox-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.outbox-subject {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.outbox-meta {
  font-size: 13px;
  color: var(--carbon);
  margin-bottom: 10px;
}

.outbox-body {
  font-size: 14px;
  line-height: 1.45;
  color: var(--carbon);
  background: var(--hall);
  padding: 10px 14px;
  border-radius: 2px;
  border: 1px dashed var(--ruling);
  margin-bottom: 10px;
}

.outbox-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--press);
}

/* Role Showcase Grid */
.role-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

@media (min-width: 768px) {
  .role-showcase-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.role-card {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  padding: 20px;
  border-radius: 4px;
  box-shadow: 3px 3px 0 var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.role-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.role-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--manila);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

.role-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.role-card-subtitle {
  font-size: 12px;
  color: var(--carbon);
}

.role-card-desc {
  font-size: 13px;
  line-height: 1.4;
  color: var(--carbon);
  margin-bottom: 16px;
}

/* Booth Command Center */
.booth-banner {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  padding: 18px 22px;
  border-radius: 4px;
  box-shadow: 2px 2px 0 var(--ink);
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.booth-banner-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.booth-banner-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.booth-banner-sub {
  font-size: 14px;
  color: var(--carbon);
}

.booth-badge-large {
  font-family: var(--font-signage);
  font-stretch: 80%;
  font-size: 20px;
  font-weight: 800;
  background: var(--manila);
  border: 1.5px solid var(--ink);
  padding: 6px 14px;
  border-radius: 2px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.booth-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

@media (min-width: 640px) {
  .booth-hub-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

.booth-hub-tile {
  border: 1px solid var(--ruling);
  background: var(--paper);
  padding: 16px 18px;
  border-radius: 4px;
  box-shadow: 2px 2px 0 var(--ink);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
  transition: transform 120ms ease-out, box-shadow 120ms ease-out, border-color 120ms ease-out;
}

.booth-hub-tile:hover {
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 var(--ink);
  border-color: var(--ink);
}

.booth-hub-tile-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}

.booth-hub-tile-desc {
  font-size: 12px;
  color: var(--carbon);
  line-height: 1.4;
}

/* Modern Chat Messages */
.chat-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0;
  min-height: 140px;
}

.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 4px;
  border: 1px solid var(--ruling);
  font-size: 14px;
  line-height: 1.4;
  position: relative;
  background: var(--paper);
  box-shadow: 1px 1px 0 var(--ink);
}

.chat-bubble-author {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}

.chat-bubble-text {
  font-size: 14px;
  color: var(--ink);
}

.chat-bubble-meta {
  display: block;
  font-size: 11px;
  color: var(--carbon);
  margin-top: 4px;
  text-align: right;
}

/* Brochure Studio Split */
.brochure-split {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 860px) {
  .brochure-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: start;
  }
}

.brochure-composer {
  background: var(--paper);
  border: 1px solid var(--ruling);
  padding: 20px;
  border-radius: 4px;
  box-shadow: 2px 2px 0 var(--ink);
}

.brochure-preview-pane {
  position: sticky;
  top: 75px;
}

/* Digital Expo Pass (Apple Wallet / Conference Badge Caliber) */
.badge-pass-card {
  max-width: 440px;
  margin: 16px auto;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 4px 4px 0 var(--ink);
  overflow: hidden;
  text-align: center;
  position: relative;
}

.badge-pass-card::before {
  content: "";
  display: block;
  width: 52px;
  height: 9px;
  background: var(--hall);
  border: 1.5px solid var(--ruling);
  border-radius: 5px;
  margin: 12px auto 8px auto;
}

.badge-pass-header {
  background: var(--ink);
  color: var(--paper);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-pass-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-qr-container {
  background: #fff;
  padding: 16px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  margin: 16px 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-shadow: 2px 2px 0 var(--ink);
}

.badge-qr-container svg {
  max-width: 220px;
  max-height: 220px;
  width: 100%;
  height: auto;
}

/* Organizer Operations Grid */
.admin-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

@media (min-width: 640px) {
  .admin-hub-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .admin-hub-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.admin-hub-tile {
  border: 1.5px solid var(--ruling);
  background: var(--paper);
  padding: 20px 22px;
  border-radius: 6px;
  box-shadow: 2px 2px 0 var(--ink);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  transition: transform 120ms ease-out, box-shadow 120ms ease-out, border-color 120ms ease-out;
}

.admin-hub-tile:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--ink);
  border-color: var(--ink);
  background: var(--paper);
}

/* Exhibitor Library Workstation */
.library-split {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 860px) {
  .library-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 28px;
    align-items: start;
  }
}

.asset-card {
  border: 1px solid var(--ruling);
  background: var(--paper);
  padding: 14px 16px;
  border-radius: 4px;
  margin-bottom: 10px;
  box-shadow: 1px 1px 0 var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   Real-Time Direct Chat Messaging & Speech Bubbles
   ========================================================================== */
.chat-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
  max-height: 520px;
  overflow-y: auto;
  padding: 20px 18px;
  background: var(--hall);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  box-shadow: 2px 2px 0 var(--ink);
  margin-bottom: 14px;
  scroll-behavior: smooth;
}

.chat-bubble {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 72%;
  min-width: 90px;
  padding: 10px 16px 8px 16px;
  word-break: break-word;
  line-height: 1.45;
  font-family: var(--font-ui);
  font-size: 14px;
  animation: chatMsgSlide 0.15s ease-out;
}

@keyframes chatMsgSlide {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* OUTGOING: Sent by current user (e.g. Booth Rep / Attendee)
   RIGHT ALIGNED, BLACK BACKGROUND, CRISP WHITE TEXT */
.chat-bubble.mine {
  align-self: flex-end;
  margin-left: auto;
  margin-right: 0;
  background: #1C1915;
  color: #FFFFFF;
  border: 1.5px solid #000000;
  border-radius: 16px 16px 2px 16px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
  text-align: left;
}

.chat-bubble.mine .chat-bubble-text {
  color: #FFFFFF;
  font-weight: 500;
  white-space: pre-wrap;
}

.chat-bubble.mine .chat-bubble-meta {
  align-self: flex-end;
  font-size: 10.5px;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* INCOMING: Received from interlocutor (e.g. Visitor / Booth Staff)
   LEFT ALIGNED, WHITE BACKGROUND, BLACK TEXT */
.chat-bubble.theirs {
  align-self: flex-start;
  margin-left: 0;
  margin-right: auto;
  background: #FFFFFF;
  color: #1C1915;
  border: 1.5px solid var(--ink);
  border-radius: 16px 16px 16px 2px;
  box-shadow: 2px 2px 0 var(--ink);
  text-align: left;
}


.chat-bubble.theirs .chat-bubble-meta {
  align-self: flex-end;
  font-size: 10.5px;
  margin-top: 4px;
  color: var(--carbon);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.chat-composer-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  border-radius: 6px;
  padding: 6px 10px;
  margin-top: 8px;
}

.chat-composer-wrap input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  padding: 8px 6px !important;
  font-size: 14.5px !important;
  box-shadow: none !important;
  outline: none !important;
  color: var(--ink) !important;
}

.chat-composer-wrap input:focus {
  border: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
   FIGMA-GRADE CRAFT ENHANCEMENTS: CONTRAST, ANIMATIONS, ERGONOMIC SHAPES
   ========================================================================== */

/* Universal High-Contrast User Avatars — Prevents invisible initials */
.user-avatar,
.user-avatar-sm,
.avatar {
  background: #110F0C !important;
  color: #FFFFFF !important;
  font-family: var(--font-ui) !important;
  font-weight: 800 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-transform: uppercase !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
}

/* Universal High-Contrast User Avatars */
.user-avatar,
.user-avatar-sm,
.avatar {
  background: #110F0C !important;
  color: #FFFFFF !important;
  font-family: var(--font-ui) !important;
  font-weight: 800 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-transform: uppercase !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
}

/* Modern Registration Cards & Interest Chips */
.role-selector-card:hover {
  border-color: var(--press) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -2px rgba(216, 58, 46, 0.15);
}

.role-selector-card:has(input:checked) {
  border-color: var(--press) !important;
  background: var(--press-wash) !important;
  box-shadow: 0 0 0 2px var(--press) !important;
}

.interest-chip-label {
  user-select: none;
  transition: all 0.18s ease;
}

.interest-chip-label:hover {
  border-color: var(--ink) !important;
  transform: translateY(-1px);
}

.interest-chip-label:has(input:checked) {
  background: var(--ink) !important;
  color: #FFFFFF !important;
  border-color: var(--ink) !important;
}

/* Universal Button Modernization — Smooth Rounded Shapes */
button,
.btn,
.status-btn,
.btn-primary,
.btn-destructive,
.btn-pill,
.btn-rounded {
  border-radius: 9999px !important;
  font-family: var(--font-ui) !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  white-space: nowrap !important;
}

.expo-card-actions .status-btn,
.expo-card-actions .btn-primary {
  min-height: 44px !important;
  padding: 0 18px !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

/* Feature Cards & Clean Surfaces */
.feature-card {
  background: var(--paper) !important;
  border: 1px solid var(--ruling) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 16px -2px rgba(17, 15, 12, 0.05), 0 1px 3px rgba(17, 15, 12, 0.03) !important;
  padding: 16px 18px !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease !important;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 15, 12, 0.25) !important;
  box-shadow: 0 8px 24px -4px rgba(17, 15, 12, 0.1) !important;
}

/* Hero Section with Trade Show Backdrop */
.hero-photo-container {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--ruling);
  box-shadow: 0 6px 24px -4px rgba(17, 15, 12, 0.08);
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Modern Lime Accent Badges */
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-lime-bg);
  border: 1px solid var(--accent-lime-border);
  color: var(--accent-lime-text);
  font-size: 11px;
  font-weight: 750;
  padding: 3px 9px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-live .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-lime);
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(132, 204, 22, 0.3);
}

/* Trade Show Visual Promo Card */
.connection-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--ruling);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #FFFFFF;
  background-size: cover;
  background-position: center;
  box-shadow: 0 6px 20px -2px rgba(17, 15, 12, 0.12);
}

.connection-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.48) 55%, rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
}

.connection-card-content {
  position: relative;
  z-index: 2;
}

/* Booth Hub Improvements */
.booth-hub-tile {
  border-radius: 14px !important;
  border: 1px solid var(--ruling) !important;
  box-shadow: 0 4px 14px -2px rgba(17, 15, 12, 0.05) !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease !important;
}

.booth-hub-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(17, 15, 12, 0.1) !important;
  border-color: rgba(17, 15, 12, 0.25) !important;
}

.counter {
  border-radius: 14px !important;
  border: 1px solid var(--ruling) !important;
  box-shadow: 0 3px 12px -2px rgba(17, 15, 12, 0.05) !important;
}

.btn-primary:hover,
.btn-press:hover,
.status-btn.highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -2px rgba(216, 58, 46, 0.35) !important;
}

/* Interactive Map Stalls */
.map-inner .pin {
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, border-color 0.18s ease !important;
}

.map-inner .pin:hover {
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
  border-color: var(--press) !important;
  z-index: 50;
}

.map-inner .pin.selected-pin {
  outline: 3px solid var(--press) !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(216, 58, 46, 0.25), 0 8px 24px rgba(0, 0, 0, 0.2) !important;
  z-index: 60;
}

/* Landing Hero Trade Show Scrim & Photo Integration */
.landing-hero-photo-wrap {
  opacity: 1;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.2) 6%, black 22%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.2) 6%, black 22%);
}

.landing-hero-photo-wrap img {
  image-rendering: auto;
  filter: contrast(1.04) brightness(1.01);
}

.hero-scrim {
  display: none;
}

@media (max-width: 840px) {
  .landing-hero {
    padding: 24px 20px !important;
    min-height: auto !important;
  }
  .landing-hero-content {
    max-width: 100% !important;
  }
  .landing-hero-photo-wrap {
    display: none !important;
  }
}

/* Festiva Layout Responsive Overrides */
@media (max-width: 960px) {
  .festiva-hero {
    padding: 36px 24px !important;
    min-height: auto !important;
  }

  .festiva-hero > div:first-child {
    opacity: 0.18 !important;
    width: 100% !important;
  }

  .festiva-hero h1 {
    font-size: 32px !important;
  }

  .landing-page-wrap section {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

@media (max-width: 640px) {
  .festiva-hero h1 {
    font-size: 26px !important;
  }

  .festiva-hero p {
    font-size: 14.5px !important;
  }

  .landing-page-wrap {
    padding: 8px 10px 32px 10px !important;
    gap: 28px !important;
  }

  .festiva-cta-band {
    padding: 24px 20px !important;
  }

  .festiva-cta-buttons {
    width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .festiva-cta-buttons a {
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
}


/* ==========================================================================
   FESTIVA LANDING PAGE FULL-BLEED DESIGN SYSTEM
   ========================================================================== */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

main.main-landing,
main:has(.festiva-landing-page) {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

.festiva-landing-page {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Full Bleed Viewport Sections — zero side gutters/white space */
.festiva-hero-full,
.festiva-about-section,
.festiva-services-band,
.festiva-speakers-band,
.festiva-cta-full {
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  box-sizing: border-box !important;
}

/* 1. Hero Section */
.festiva-hero-full {
  background: #0A192F;
  color: #FFFFFF;
  padding: 80px 32px 96px 32px;
}

.festiva-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.festiva-hero-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.festiva-badge-pill {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #E65100;
  color: #FFFFFF;
  padding: 5px 14px;
  border-radius: 9999px;
}

.festiva-venue-pill {
  font-size: 13.5px;
  color: #94A3B8;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.festiva-hero-title {
  font-family: var(--font-signage);
  font-size: 48px;
  font-weight: 850;
  line-height: 1.12;
  margin: 0 0 20px 0;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}

.festiva-hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: #CBD5E1;
  margin: 0 0 32px 0;
  max-width: 540px;
}

.festiva-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-festiva-orange {
  background: #E65100 !important;
  color: #FFFFFF !important;
  border: 1px solid #C53D00 !important;
  border-radius: 9999px !important;
  padding: 14px 32px !important;
  font-size: 15px !important;
  font-weight: 750 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 14px rgba(230, 81, 0, 0.35) !important;
  transition: all 0.18s ease-in-out !important;
  white-space: nowrap !important;
}

.btn-festiva-orange:hover {
  background: #C53D00 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(230, 81, 0, 0.45) !important;
}

.btn-festiva-outline {
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 9999px !important;
  padding: 13px 28px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.18s ease !important;
  white-space: nowrap !important;
}

.btn-festiva-outline:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: #FFFFFF !important;
}

.btn-festiva-white {
  background: #FFFFFF !important;
  color: #0A192F !important;
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 9999px !important;
  padding: 13px 28px !important;
  font-size: 15px !important;
  font-weight: 750 !important;
  text-decoration: none !important;
  transition: all 0.18s ease !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.btn-festiva-white:hover {
  background: #F8FAFC !important;
  border-color: #94A3B8 !important;
  transform: translateY(-1px) !important;
}

.festiva-hero-photo-container {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 48px -8px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.festiva-hero-photo-container img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.festiva-hero-photo-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 25, 47, 0.7) 100%);
  pointer-events: none;
}

/* 2. Festiva About Section with Signature Offset Orange Backing Card */
.festiva-about-section {
  width: 100%;
  background: #FFFFFF;
  padding: 88px 32px;
  box-sizing: border-box;
}

.festiva-about-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.festiva-overlap-wrapper {
  position: relative;
  padding: 24px 0 24px 24px;
}

.festiva-offset-orange-block {
  position: absolute;
  top: 0;
  left: 0;
  width: 78%;
  height: 84%;
  background: #E65100;
  border-radius: 24px;
  z-index: 1;
}

.festiva-offset-photo-card {
  position: relative;
  z-index: 2;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(10, 25, 47, 0.2);
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  max-width: 92%;
}

.festiva-offset-photo-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.festiva-section-tag {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #E65100;
  display: block;
  margin-bottom: 10px;
}

.festiva-section-title {
  font-family: var(--font-signage);
  font-size: 38px;
  font-weight: 850;
  line-height: 1.15;
  color: #000000 !important;
  margin: 0 0 18px 0;
  letter-spacing: -0.025em;
}

.festiva-section-p {
  font-size: 18px !important;
  color: #000000 !important;
  font-weight: 500 !important;
  line-height: 1.7 !important;
  margin: 0 0 16px 0;
}

.festiva-about-action {
  margin-top: 24px;
}

/* 3. Exceptional Event Services (Deep Navy Band) */
.festiva-services-band {
  width: 100%;
  background: #0A192F;
  padding: 88px 32px;
  box-sizing: border-box;
  color: #FFFFFF;
}

.festiva-services-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 52px;
}

.festiva-services-header {
  text-align: center;
  max-width: 640px;
}

.festiva-band-tag {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #E65100;
  display: block;
  margin-bottom: 10px;
}

.festiva-band-title {
  font-family: var(--font-signage);
  font-size: 38px;
  font-weight: 850;
  margin: 0 0 12px 0;
  color: #FFFFFF;
  letter-spacing: -0.025em;
}

.festiva-band-sub {
  font-size: 16px;
  color: #94A3B8;
  margin: 0;
  line-height: 1.55;
}

.festiva-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  width: 100%;
}

.festiva-service-card {
  background: #FFFFFF;
  color: #0A192F;
  border-radius: 20px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.18s ease;
}

.festiva-service-card:hover {
  transform: translateY(-3px);
}

.festiva-service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #FFF3EB;
  color: #E65100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.festiva-service-icon-box svg {
  width: 24px;
  height: 24px;
}

.festiva-service-card h3 {
  font-size: 20px !important;
  font-weight: 850 !important;
  margin: 0;
  color: #000000 !important;
}

.festiva-service-card p {
  font-size: 16px !important;
  color: #000000 !important;
  font-weight: 500 !important;
  margin: 0;
  line-height: 1.6 !important;
}

/* 4. Inspiring Voices / Highlights Band */
.festiva-speakers-band {
  width: 100%;
  background: #FFFFFF;
  padding: 88px 32px;
  box-sizing: border-box;
}

.festiva-speakers-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.festiva-speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  width: 100%;
}

.festiva-speaker-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  box-shadow: 0 10px 25px -4px rgba(10, 25, 47, 0.06);
  display: flex;
  flex-direction: column;
}

.festiva-speaker-photo {
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.festiva-speaker-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.festiva-speaker-card:hover .festiva-speaker-photo img {
  transform: scale(1.04);
}

.festiva-speaker-info {
  padding: 22px 24px;
}

.festiva-speaker-info h4 {
  font-size: 21px !important;
  font-weight: 850 !important;
  color: #000000 !important;
  margin: 0 0 6px 0;
}

.festiva-speaker-info span,
.festiva-speaker-info p {
  font-size: 16px !important;
  color: #000000 !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
}

/* 5. Edge-to-Edge Peach CTA Band */
.festiva-cta-full {
  background: #FFF3EB;
  border-top: 1.5px solid #FED7AA;
  padding: 88px 32px;
  box-sizing: border-box;
}

.festiva-cta-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.festiva-cta-text {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.festiva-cta-text h2,
.festiva-cta-full h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 34px !important;
  font-weight: 450 !important;
  color: #000000 !important;
  margin: 0 0 14px 0 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.35 !important;
}

.festiva-cta-text p {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 17.5px !important;
  color: #1E293B !important;
  font-weight: 450 !important;
  margin: 0 auto !important;
  line-height: 1.7 !important;
}

/* ==========================================================================
   SMOOTH SCROLL REVEAL ANIMATIONS
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.scroll-reveal-card {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal-card.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Stagger card reveals */
.festiva-services-grid .scroll-reveal-card:nth-child(1) { transition-delay: 0.05s; }
.festiva-services-grid .scroll-reveal-card:nth-child(2) { transition-delay: 0.15s; }
.festiva-services-grid .scroll-reveal-card:nth-child(3) { transition-delay: 0.25s; }
.festiva-services-grid .scroll-reveal-card:nth-child(4) { transition-delay: 0.35s; }

.festiva-speakers-grid .scroll-reveal-card:nth-child(1) { transition-delay: 0.05s; }
.festiva-speakers-grid .scroll-reveal-card:nth-child(2) { transition-delay: 0.18s; }
.festiva-speakers-grid .scroll-reveal-card:nth-child(3) { transition-delay: 0.31s; }

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Responsive Rules */
@media (max-width: 960px) {
  .festiva-hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .festiva-hero-title {
    font-size: 36px;
  }
  .festiva-about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .festiva-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .festiva-hero-full,
  .festiva-about-section,
  .festiva-services-band,
  .festiva-speakers-band,
  .festiva-cta-full {
    padding: 56px 20px;
  }
  .festiva-hero-title {
    font-size: 30px;
  }
  .festiva-section-title,
  .festiva-band-title,
  .festiva-cta-text h2 {
    font-size: 28px;
  }
  .festiva-hero-actions,
  .festiva-cta-action-row {
    flex-direction: column;
    width: 100%;
  }
  .festiva-hero-actions a,
  .festiva-cta-action-row a {
    width: 100%;
    text-align: center;
  }
}

/* Ensure all badges, stamps, tags, and pills are clearly legible (minimum 12px) */
.stamp,
.badge,
.stamp-proof,
.stamp-draft,
.stamp-matched,
.stamp-ai,
.user-role-badge,
.expo-context-pill,
.event-pill,
.meta small,
small {
  font-size: 12px !important;
  line-height: 1.3 !important;
}

.festiva-badge-pill {
  font-size: 12.5px !important;
}
