/* ============================================================
   Mguso Meet — Mobile-native UI layer
   Loaded LAST in every layout. Defines the app shell (sidebar,
   main content, bottom nav) that was previously unstyled, and
   enforces native-app feel on small screens:
   - 44px touch targets, 16px inputs (no iOS zoom)
   - safe-area insets for notched devices
   - off-canvas sidebar drawer + bottom navigation
   - readable tables that scroll instead of hiding columns
   ============================================================ */

:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --surface: #ffffff;
  --bg: #f4f6fb;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --danger: #dc2626;
  --sidebar-w: 264px;
  --bottomnav-h: 60px;
  --radius: 14px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
}

/* ---------- App shell (admin/host/guest) ---------- */

.app-shell {
  display: flex;
  min-height: 100dvh;
  background: var(--bg);
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding-top: calc(var(--sat) + 12px);
  display: flex;
  flex-direction: column;
  z-index: 1040;
}

.sidebar h5 { color: var(--text); font-weight: 700; }

.sidebar .nav-link {
  color: var(--muted);
  font-weight: 500;
  padding: 11px 18px;
  border-radius: 10px;
  margin: 2px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;               /* touch target */
}
.sidebar .nav-link i { width: 20px; text-align: center; }
.sidebar .nav-link:hover { background: #f1f5f9; color: var(--brand); }
.sidebar .nav-link.active {
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand);
  font-weight: 600;
}

.main-content,
.guest-content {
  flex: 1 1 auto;
  min-width: 0;                   /* allow children to shrink, fixes cutoff */
  display: flex;
  flex-direction: column;
}

.mobile-toggle {
  display: none;
  position: fixed;
  top: calc(var(--sat) + 10px);
  left: calc(var(--sal) + 10px);
  z-index: 1060;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
  color: var(--text);
  font-size: 1.05rem;
  align-items: center;
  justify-content: center;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1035;
}

/* ---------- ≤ tablet: off-canvas drawer + bottom nav ---------- */

@media (max-width: 991.98px) {
  .mobile-toggle { display: inline-flex; }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    box-shadow: 0 0 30px rgba(15, 23, 42, 0.18);
    overflow-y: auto;
    /* Drawer sits above the bottom nav so the Logout button at the bottom stays visible */
    z-index: 1050;
    padding-bottom: calc(var(--bottomnav-h) + var(--sab) + 1rem);
  }
  .sidebar.show { transform: translateX(0); }
  body.sidebar-open .sidebar-backdrop { display: block; }

  /* Content clears the floating toggle and reserves bottom-nav space */
  .main-content { padding-bottom: calc(var(--bottomnav-h) + var(--sab) + 10px); }
  .main-content > div:first-child { padding-top: calc(var(--sat) + 52px); }

  /* Bottom navigation */
  .bottom-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: calc(var(--bottomnav-h) + var(--sab));
    padding-bottom: var(--sab);
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex !important;
    justify-content: space-around;
    align-items: stretch;
    z-index: 1045;
    box-shadow: 0 -2px 12px rgba(15, 23, 42, 0.08);
  }
  .bottom-nav a,
  .bottom-nav button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    min-height: 44px;
    padding: 4px 2px;
    background: transparent;
    border: 0;
    font-family: inherit;
  }
  .bottom-nav a i,
  .bottom-nav button i { font-size: 1.15rem; }
  .bottom-nav a.active,
  .bottom-nav button.active { color: var(--brand); }
}

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

/* Guest (non-authed app) pages keep footer clear of bottom nav */
@media (max-width: 991.98px) {
  .guest-content { padding-bottom: calc(var(--bottomnav-h) + var(--sab)); }
}

/* ---------- Maximize usable width on small screens ---------- */
@media (max-width: 767.98px) {
  .main-content .container,
  .main-content .container-fluid,
  .guest-content .container,
  .guest-content .container-fluid {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .main-content .row,
  .guest-content .row {
    --bs-gutter-x: 0.5rem;
  }

  .main-content .card,
  .guest-content .card {
    border-radius: 10px;
  }

  .main-content .card-header,
  .guest-content .card-header,
  .main-content .card-body,
  .guest-content .card-body {
    padding: 1rem;
  }
}

/* ---------- Native-app form & button feel ---------- */

.btn {
  min-height: 44px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
}
.btn-sm { min-height: 36px; padding: 6px 12px; border-radius: 10px; }

@media (max-width: 767.98px) {
  /* Action buttons in tables must still meet touch-target minimum */
  .table td .btn-sm,
  .table td .btn,
  .mobile-table-labeled td .btn-sm,
  .mobile-table-labeled td .btn { min-height: 44px; padding: 8px 14px; }
}
.btn-lg {
  min-height: 50px;
  padding: 12px 26px;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem); /* was oversized on desktop */
}

.form-control,
.form-select {
  min-height: 46px;
  font-size: 16px;                /* prevents iOS focus zoom */
  border-radius: 12px;
  padding: 10px 14px;
}
textarea.form-control { min-height: 96px; }

.form-control:disabled,
.form-control[readonly] {
  background: #f1f5f9;
  color: var(--muted);
  cursor: not-allowed;
}

/* Validation states: visible but never "stuck" — JS removes classes on input */
.form-control.is-valid { border-color: #16a34a; background-image: none; }
.form-control.is-invalid { border-color: var(--danger); }

label { font-weight: 600; color: var(--text); }

/* ---------- Cards / alerts ---------- */

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.card-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.alert { border-radius: 12px; }

/* ---------- Tables: scroll, never hide behind sidebar ---------- */

.table-responsive {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}
.table { margin-bottom: 0; font-size: 0.9rem; }
.table thead th {
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}
.table td { vertical-align: middle; }

@media (max-width: 767.98px) {
  /* Card-style rows: keep every column readable via stacked labels */
  .table-sm td, .table-sm th { padding: 8px 10px; }
  .table td { font-size: 0.86rem; }

  /* Auto-labeled tables: each td shows its header as a stacked label */
  .mobile-table-labeled,
  .mobile-table {
    border: 0;
  }
  .mobile-table-labeled thead,
  .mobile-table thead { display: none; }
  .mobile-table-labeled tbody,
  .mobile-table tbody,
  .mobile-table-labeled tbody tr,
  .mobile-table tbody tr,
  .mobile-table-labeled tr,
  .mobile-table tr {
    display: block;
    width: 100%;
  }
  .mobile-table-labeled td,
  .mobile-table-labeled th,
  .mobile-table td {
    display: grid;
    grid-template-columns: minmax(0, 35%) 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid var(--border);
    width: 100%;
    box-sizing: border-box;
  }
  .mobile-table-labeled td::before,
  .mobile-table td:not(.no-mobile-label)::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    word-break: break-word;
  }
  .mobile-table-labeled tr + tr,
  .mobile-table tr + tr { margin-top: 0.75rem; }
  .mobile-table-labeled tbody tr,
  .mobile-table tbody tr { border: 1px solid var(--border); border-radius: var(--radius); }
}

/* ---------- Whereby / meeting iframe ---------- */

.meeting-frame-wrap,
#meeting-container {
  height: 100dvh;                 /* dynamic viewport: correct with mobile URL bar */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
#meeting-container iframe,
.meeting-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Redeem page polish ---------- */

.redeem-input {
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
}
.redeem-input.is-valid { background-image: none; } /* no premature checkmark */

/* ---------- Marketing pages: native spacing ---------- */

.marketing-body { padding-bottom: env(safe-area-inset-bottom, 0px); }

/* ---------- Utility: prevent flex/grid children from overflowing ---------- */

.main-content .row > [class*="col-"],
.guest-content .row > [class*="col-"],
.main-content .d-flex,
.guest-content .d-flex { min-width: 0; }
.main-content img, .guest-content img { max-width: 100%; height: auto; }

/* ---------- Cookie consent: keep bottom of page scrollable ---------- */

body:has(#cookie-consent-banner:not([style*="display: none"])) {
  padding-bottom: 130px;
}

/* ---------- Checkbox / radio touch targets ---------- */

input[type="checkbox"],
input[type="radio"],
.form-check-input,
.h-4[type="checkbox"],
.h-4[type="radio"] {
  min-width: 22px !important;
  min-height: 22px !important;
  width: 22px !important;
  height: 22px !important;
}

.form-check,
label:has(input[type="checkbox"]),
label:has(input[type="radio"]) {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- Print-ish tiny screens ---------- */

@media (max-width: 359.98px) {
  :root { --bottomnav-h: 54px; }
  .btn { padding: 9px 12px; font-size: 0.9rem; }
}

/* ============================================================
   Mobile-first polish helpers (added 2026-08-30)
   ============================================================ */

/* Touch targets */
.touch-target,
.touch-target > * { min-height: 44px; min-width: 44px; }

.btn,
a.btn,
button.btn,
.nav-link,
.page-link,
.dropdown-item,
.bottom-nav a,
.bottom-nav button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.btn-sm { min-height: 36px; }

/* Safe full-bleed helpers that never exceed viewport width */
.mobile-safe-bleed {
  margin-left: calc(-1 * var(--sal, 0px));
  margin-right: calc(-1 * var(--sar, 0px));
  width: calc(100% + var(--sal, 0px) + var(--sar, 0px));
  max-width: 100vw;
}

/* Viewport-aware width (avoids horizontal scrollbar overflow) */
.vw-safe { width: 100%; }
@media (min-width: 992px) {
  .vw-safe { width: 100vw; }
}

/* Bootstrap utility missing in some builds */
@media (min-width: 768px) {
  .w-md-auto { width: auto !important; }
}

/* Desktop vs mobile action groups inside tables */
.desktop-actions { display: block; }
.mobile-actions-dropdown { display: none; }

@media (max-width: 991.98px) {
  .desktop-actions { display: none !important; }
  .mobile-actions-dropdown { display: inline-block !important; }
}

/* Action buttons that need to stack vertically on small screens */
@media (max-width: 991.98px) {
  .actions-stack .btn,
  .actions-stack form,
  .actions-stack a.btn {
    display: block;
    width: 100%;
    margin-bottom: 0.4rem;
  }
  .actions-stack .btn:last-child,
  .actions-stack form:last-child,
  .actions-stack a.btn:last-child { margin-bottom: 0; }
}

/* Prevent inline action buttons from overflowing cells */
.table td .btn,
.table td form,
.table td a.btn { white-space: normal; }

/* Refined mobile card tables (extends existing .mobile-table-labeled) */
@media (max-width: 767.98px) {
  .mobile-table-labeled,
  .mobile-table {
    border: 0;
  }

  .mobile-table-labeled thead,
  .mobile-table thead { display: none; }

  .mobile-table-labeled tbody,
  .mobile-table tbody,
  .mobile-table-labeled tbody tr,
  .mobile-table tbody tr,
  .mobile-table-labeled tr,
  .mobile-table tr {
    display: block;
    width: 100%;
  }

  .mobile-table-labeled tbody tr,
  .mobile-table tbody tr {
    margin-bottom: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 0.5rem 0.875rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  }

  .mobile-table-labeled tbody tr.mobile-empty-row,
  .mobile-table tbody tr.mobile-empty-row {
    padding: 1.5rem 0.875rem;
  }

  .mobile-table-labeled td,
  .mobile-table-labeled th,
  .mobile-table td {
    display: block;
    width: 100%;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border);
    overflow-wrap: break-word;
  }

  .mobile-table-labeled td:last-child,
  .mobile-table td:last-child { border-bottom: 0; }

  .mobile-table-labeled td::before,
  .mobile-table td:not(.no-mobile-label)::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    color: var(--muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
    line-height: 1.3;
  }

  /* Cells that should not show a label */
  .mobile-table-labeled td.no-mobile-label::before,
  .mobile-table td.no-mobile-label::before,
  .mobile-table-labeled td:has(.mobile-actions-dropdown)::before,
  .mobile-table td:has(.mobile-actions-dropdown)::before,
  .mobile-table-labeled td:has(input[type="checkbox"])::before,
  .mobile-table td:has(input[type="checkbox"])::before { content: none; }

  /* Checkbox/select columns */
  .mobile-table-labeled td:has(input[type="checkbox"]),
  .mobile-table td:has(input[type="checkbox"]) {
    padding: 0.75rem 0;
  }

  /* Action cells: stack buttons vertically, full width */
  .mobile-table-labeled td:has(.btn),
  .mobile-table td:has(.btn),
  .mobile-table-labeled td:has(.mobile-actions-dropdown),
  .mobile-table td:has(.mobile-actions-dropdown) {
    padding: 0.75rem 0;
  }

  .mobile-table-labeled td:has(.btn) .btn,
  .mobile-table td:has(.btn) .btn,
  .mobile-table-labeled td:has(.btn) a.btn,
  .mobile-table td:has(.btn) a.btn,
  .mobile-table-labeled td:has(.btn) form,
  .mobile-table td:has(.btn) form,
  .mobile-table-labeled td:has(.mobile-actions-dropdown) .btn,
  .mobile-table td:has(.mobile-actions-dropdown) .btn,
  .mobile-table-labeled td:has(.mobile-actions-dropdown) a.btn,
  .mobile-table td:has(.mobile-actions-dropdown) a.btn,
  .mobile-table-labeled td:has(.mobile-actions-dropdown) form,
  .mobile-table td:has(.mobile-actions-dropdown) form,
  .mobile-table-labeled td:has(.btn) .dropdown,
  .mobile-table td:has(.btn) .dropdown,
  .mobile-table-labeled td:has(.mobile-actions-dropdown) .dropdown,
  .mobile-table td:has(.mobile-actions-dropdown) .dropdown,
  .mobile-table-labeled td:has(.btn) .d-flex,
  .mobile-table td:has(.btn) .d-flex,
  .mobile-table-labeled td:has(.mobile-actions-dropdown) .d-flex,
  .mobile-table td:has(.mobile-actions-dropdown) .d-flex {
    display: block !important;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .mobile-table-labeled td:has(.btn) .btn:last-child,
  .mobile-table td:has(.btn) .btn:last-child,
  .mobile-table-labeled td:has(.btn) a.btn:last-child,
  .mobile-table td:has(.btn) a.btn:last-child,
  .mobile-table-labeled td:has(.btn) form:last-child,
  .mobile-table td:has(.btn) form:last-child,
  .mobile-table-labeled td:has(.mobile-actions-dropdown) .btn:last-child,
  .mobile-table td:has(.mobile-actions-dropdown) .btn:last-child,
  .mobile-table-labeled td:has(.mobile-actions-dropdown) a.btn:last-child,
  .mobile-table td:has(.mobile-actions-dropdown) a.btn:last-child,
  .mobile-table-labeled td:has(.mobile-actions-dropdown) form:last-child,
  .mobile-table td:has(.mobile-actions-dropdown) form:last-child,
  .mobile-table-labeled td:has(.btn) .dropdown:last-child,
  .mobile-table td:has(.btn) .dropdown:last-child,
  .mobile-table-labeled td:has(.mobile-actions-dropdown) .dropdown:last-child,
  .mobile-table td:has(.mobile-actions-dropdown) .dropdown:last-child,
  .mobile-table-labeled td:has(.btn) .d-flex:last-child,
  .mobile-table td:has(.btn) .d-flex:last-child,
  .mobile-table-labeled td:has(.mobile-actions-dropdown) .d-flex:last-child,
  .mobile-table td:has(.mobile-actions-dropdown) .d-flex:last-child { margin-bottom: 0; }

  /* Dropdown toggles should stretch full width inside action cells */
  .mobile-table-labeled td:has(.mobile-actions-dropdown) .dropdown-toggle,
  .mobile-table td:has(.mobile-actions-dropdown) .dropdown-toggle,
  .mobile-table-labeled td:has(.btn) .dropdown-toggle,
  .mobile-table td:has(.btn) .dropdown-toggle {
    display: inline-flex !important;
    width: 100%;
    justify-content: center;
  }

  /* Avoid double stacking when forms contain a single button */
  .mobile-table-labeled td form .btn,
  .mobile-table td form .btn { width: 100%; }

  /* Override Bootstrap .btn-group in action cells so buttons stack */
  .mobile-table-labeled td:has(.btn) .btn-group,
  .mobile-table td:has(.btn) .btn-group {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    gap: 0.5rem;
  }

  /* Make the first data column look like a card title on mobile */
  .mobile-table-labeled tbody tr td:first-child,
  .mobile-table tbody tr td:first-child {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
  }

  /* Empty-state rows should look like a single padded card */
  .mobile-table-labeled tbody tr.mobile-empty-row td,
  .mobile-table tbody tr.mobile-empty-row td,
  .mobile-table-labeled tbody tr.mobile-empty-row td::before,
  .mobile-table tbody tr.mobile-empty-row td::before {
    display: block !important;
    border-bottom: 0;
    text-align: center;
  }

  .mobile-table-labeled tr + tr,
  .mobile-table tr + tr { margin-top: 0; }
}

/* Card-style mobile padding helper */
.mobile-card {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-card {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Very narrow screens */
@media (max-width: 419.98px) {
  .main-content .container,
  .main-content .container-fluid,
  .guest-content .container,
  .guest-content .container-fluid {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .main-content .row,
  .guest-content .row {
    --bs-gutter-x: 0.25rem;
  }

  .mobile-card {
    margin-left: 0.25rem;
    margin-right: 0.25rem;
  }

  .main-content .card-header,
  .guest-content .card-header,
  .main-content .card-body,
  .guest-content .card-body {
    padding: 0.875rem 0.75rem;
  }

  h2 { font-size: 1.35rem; }
}

/* Chat widget safety */
#chat-box {
  width: calc(100vw - 2rem);
  max-width: 350px;
}

@media (min-width: 420px) {
  #chat-box {
    width: 350px;
  }
}

/* Pagination / page links touch targets */
.page-link { min-height: 44px; min-width: 44px; justify-content: center; }

/* ---------- Public / Guest / Storefront mobile full-bleed pass ---------- */

/* Public pages use .guest-content and are wrapped in a .px-3 inner container.
   The 2rem of .guest-content padding on small screens wastes too much width,
   so we remove it and let the component rules provide the readable insets. */
@media (max-width: 1023.98px) {
  .guest-content {
    padding: 0.75rem 0 !important;
    overflow-x: hidden;
  }
  .guest-content > div:first-child {
    padding-top: 0 !important;
    padding-bottom: 0.75rem !important;
  }
}

/* Public hero: break out of the .px-3 wrapper so the background spans the
   full viewport on small screens, while the .container keeps the text
   comfortably inset. Flatten the gradient to the brand accent. */
@media (max-width: 767.98px) {
  .guest-content .hero {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    width: calc(100% + 1.5rem);
    background: #2563eb !important;
    border-radius: 0 !important;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .guest-content .hero .display-4 {
    font-size: 1.75rem;
  }
  .guest-content .hero .lead {
    font-size: 1rem;
  }
  .guest-content .hero .d-flex.flex-column.flex-md-row {
    gap: 0.75rem;
  }
  .guest-content .hero .btn {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Public meeting detail banner and details card */
@media (max-width: 767.98px) {
  .guest-content .event-banner {
    display: block;
    margin-left: -1.15rem;
    margin-right: -1.15rem;
    width: calc(100% + 2.3rem);
    max-width: none;
    border-radius: 0 !important;
    margin-bottom: 3rem !important;
    aspect-ratio: 16 / 10;
    min-height: 200px;
  }

  .guest-content .details-card {
    margin-top: -2.5rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0.75rem !important;
  }

  .guest-content .details-card .card-body {
    padding: 1rem !important;
  }

  .guest-content .details-card .list-group-item {
    padding: 0.875rem 0.75rem;
    font-size: 0.95rem;
  }

  .guest-content .details-card .d-grid .btn {
    min-height: 44px;
    font-size: 1rem;
  }

  /* Make the share control full-width and easier to hit */
  .guest-content .dropdown {
    width: 100%;
  }
  .guest-content .dropdown .dropdown-toggle {
    min-height: 44px;
    width: 100%;
  }
  .guest-content .dropdown .dropdown-menu {
    width: 100%;
  }
}

/* Public home event cards: remove the generic .card side margin on mobile and
   reduce hover motion so they feel like native list items. */
@media (max-width: 767.98px) {
  .guest-content .event-card,
  .guest-content .testimonial-card {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0.75rem !important;
    border-radius: 0.75rem !important;
  }
  .guest-content .event-card:hover,
  .guest-content .testimonial-card:hover {
    transform: none !important;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08) !important;
  }
  .guest-content .event-card .card-body {
    padding: 1rem;
  }
  .guest-content .event-card .card-title {
    font-size: 1.05rem;
  }
  .guest-content .event-container > [class*="col-"] {
    margin-bottom: 0.75rem !important;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }
  .guest-content .d-grid .btn,
  .guest-content .d-grid .dropdown-toggle {
    width: 100%;
    min-height: 44px;
  }
  .guest-content .section-header {
    background: #f8fafc !important;
  }
}

/* Guest/auth pages */
@media (max-width: 767.98px) {
  .guest-page .min-h-screen {
    justify-content: flex-start !important;
  }
  .guest-page .guest-brand {
    width: 3.5rem !important;
    height: 3.5rem !important;
    margin-top: 1rem;
  }
  .guest-page .guest-card {
    margin-top: 0 !important;
    padding: 1.5rem 1rem !important;
    min-height: calc(100vh - 5.5rem);
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  .guest-page input,
  .guest-page select,
  .guest-page textarea,
  .guest-page button {
    font-size: 16px !important;
  }
  .guest-page input[type="checkbox"],
  .guest-page input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
  }
  .guest-page .btn,
  .guest-page button[type="submit"] {
    min-height: 44px !important;
  }
}

/* Marketing pages */
@media (max-width: 767.98px) {
  .marketing-body .section-shell,
  .marketing-body .section-pad {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  .marketing-body .section-pad {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  .marketing-body header .max-w-7xl,
  .marketing-body footer .container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  .marketing-body .card-lift {
    padding: 1.25rem !important;
  }
  .marketing-body h1 {
    font-size: 2rem !important;
  }
}

/* Flatten decorative gradients/orbs on marketing hero for mobile */
@media (max-width: 767.98px) {
  .marketing-hero {
    background: #2563eb !important;
  }
  .marketing-hero [class*="blur-3xl"],
  .marketing-hero [class*="from-blue-900/40"],
  .marketing-hero [class*="bg-blue-400/30"],
  .marketing-hero [class*="bg-indigo-400/20"] {
    display: none !important;
  }
  .marketing-hero h1 {
    font-size: 2.25rem !important;
  }
  .marketing-hero .section-shell {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

/* ---------- Ticket redeem page mobile pass ---------- */
@media (max-width: 767.98px) {
  .guest-content .redeem-card {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    opacity: 1 !important;
    animation: none !important;
  }
  .guest-content .redeem-card .card-body {
    padding: 1.25rem !important;
  }
  .guest-content .redeem-card .card-header {
    padding-top: 1.25rem !important;
    padding-bottom: 0.5rem !important;
  }
  .guest-content .redeem-card h2 {
    font-size: 1.5rem !important;
  }
  .guest-content .redeem-card .redeem-input {
    min-height: 52px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 1.25rem !important;
  }
  .guest-content .redeem-card .redeem-input:focus {
    transform: none !important;
  }
  .guest-content .redeem-card .btn {
    min-height: 52px;
    font-size: 1.1rem;
  }
  .guest-content .redeem-card .btn-pulse::after,
  .guest-content .redeem-card ~ .mascot,
  .guest-content .redeem-wrap .shape {
    display: none !important;
  }
  .guest-content .redeem-card .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
  }
  .guest-content .redeem-card .g-recaptcha {
    transform: scale(1);
  }
}
