/*
Theme Name: ALOI Child
Theme URI: https://aloi.co.za
Description: Child theme for Aloi
Author: Fezi Wilfred
Author URI: https://aloi.co.za
Template: Divi
Version: 1.0.0
*/

/* Import parent theme */
@import url("../Divi/style.css");

/* Custom CSS goes here */

:root {
  --accent-red: #720e0e;
  --accent-gold: #c5a059;
  --glass: rgba(255,255,255,0.55);
  --blur: blur(20px);
  --text-dark: #1e1e1e;
  --aloi-accent: #720e0e; /* Your church accent color */
  --aloi-border: rgba(0, 0, 0, 0.08);
}


/* ==========================================================================
   ALOI COLLAGE STYLES
   ========================================================================== */

.aloi-enterprise-collage {
    width: 100%;
    height: 750px;
    overflow: hidden;
    position: relative;
    background: transparent;
    display: block;
}

/* SOFT GRADIENT VIGNETTE */
.aloi-vignette {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10;
    pointer-events: none;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.7) 0%, 
        rgba(255,255,255,0) 10%, 
        rgba(255,255,255,0) 90%, 
        rgba(255,255,255,0.7) 100%);
}

.aloi-track {
    display: flex;
    gap: var(--col-gap);
    height: 100%;
    width: 100%;
    padding: 0 var(--col-gap);
    box-sizing: border-box;
}

/* Vertical Logic */
.aloi-dir-up .aloi-track, .aloi-dir-down .aloi-track { flex-direction: row; }
.aloi-dir-up .aloi-col, .aloi-dir-down .aloi-col { flex: 1; height: 100%; }

/* Staggered Collage Look - Manual Offsets */
.aloi-dir-up .aloi-col:nth-child(2), .aloi-dir-down .aloi-col:nth-child(2) { padding-top: 120px; }
.aloi-dir-up .aloi-col:nth-child(3), .aloi-dir-down .aloi-col:nth-child(3) { padding-top: 60px; }

/* Scroll container is the element transformed by JS — needs will-change for GPU layer */
.aloi-scroll-container {
    display: flex;
    flex-direction: column;
    will-change: transform;
    /* NO gap here — the container is translated, not a flex parent of items */
}

/* The scroll-group holds the real images and sets spacing between them */
.aloi-scroll-group {
    display: flex;
    flex-direction: column;
    gap: var(--col-gap, 30px);
}

/* Horizontal Logic */
.aloi-dir-left .aloi-track, .aloi-dir-right .aloi-track { flex-direction: column; padding: var(--col-gap) 0; }
.aloi-dir-left .aloi-col, .aloi-dir-right .aloi-col { width: 100%; flex: 1; }
.aloi-dir-left .aloi-col:nth-child(2), .aloi-dir-right .aloi-col:nth-child(2) { padding-left: 100px; }

.aloi-dir-left .aloi-scroll-container, .aloi-dir-right .aloi-scroll-container {
    flex-direction: row !important;
    height: 100%;
}
.aloi-dir-left .aloi-scroll-group, .aloi-dir-right .aloi-scroll-group {
    flex-direction: row !important;
    height: 100%;
    gap: var(--col-gap, 30px);
}

.aloi-item {
    flex-shrink: 0;
    width: 100%;
    border-radius: var(--img-radius, 15px);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    /* Clip child img to rounded corners (iOS fix) */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.aloi-dir-left .aloi-item, .aloi-dir-right .aloi-item { width: 420px; }

.aloi-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: var(--img-ratio);
    transition: transform 0.6s ease;
}

.aloi-item:hover img { transform: scale(1.05); }

@media (max-width: 768px) {
    .aloi-enterprise-collage { height: 550px; }
    .aloi-col:nth-child(3) { display: none; }
}


/* ===== CONNECT FLOATING BUTTON ===== */
#connect-fab {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  background: var(--glass);
  color: var(--accent-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
  transition: transform .3s ease;
}
#connect-fab.active { transform: rotate(90deg); }

/* OVERLAY */
#connect-overlay {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 9998;
}
#connect-overlay.active { opacity: 1; pointer-events: auto; }

/* PANEL */
#connect-panel {
  position: fixed;
  bottom: 100px;
  right: 26px;
  width: 380px;
  background: var(--glass);
  backdrop-filter: var(--blur);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  transform: translateY(30px);
  opacity: 0;
  pointer-events: none;
  transition: all .35s ease;
  z-index: 9999;
}
#connect-panel.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.connect-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid rgba(0,0,0,.08);}
.connect-header h3 { margin:0; font-size:16px; color:var(--text-dark);}
.connect-close { font-size:24px; cursor:pointer; }

.connect-section { display: none; padding: 18px; }
.connect-section.active { display: block; }

.connect-card, .sub-card {
  width: 100%;
  display: flex;
  gap: 14px;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  border: none;
  cursor: pointer;
  margin-bottom: 12px;
  transition: all .25s ease;
}
.connect-card:hover, .sub-card:hover {
  border-left: 4px solid var(--accent-gold);
  transform: translateX(2px);
}
.connect-card i, .sub-card i { font-size:18px; color: var(--accent-red);}
.connect-card strong, .sub-card strong { display:block; font-size:14px; }
.connect-card span, .sub-card span { font-size:12px; opacity:.7; }

.sub-back { background:none; border:none; font-size:13px; cursor:pointer; margin-top:8px; }

/* Sub-cards can be <a> or <button> — same appearance */
a.sub-card {
  display: flex;
  text-decoration: none;
  color: inherit;
}
a.sub-card:hover {
  border-left: 4px solid var(--accent-gold);
  transform: translateX(2px);
}

/* Inline form response message */
.connect-response-msg {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.6);
}

/* FORM ELEMENTS */
.connect-form { display:flex; flex-direction:column; gap:12px; }
.connect-form input, .connect-form textarea { padding:10px; border-radius:8px; border:1px solid #ccc; width:100%; font-size:14px; }
.connect-form button { background: var(--accent-red); color:#fff; border:none; padding:10px; border-radius:8px; cursor:pointer; font-weight:bold; transition: all .25s ease; }
.connect-form button:hover { background: var(--accent-gold); color:#000; }

.visit-step { display:none; }
.visit-step.active { display:block; }

.visit-card {
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px;
  margin-bottom:10px;
  border-radius:14px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  cursor:pointer;
  transition:.2s;
}

.visit-card:hover {
  background:rgba(255,255,255,.15);
  transform:translateY(-1px);
}

.visit-alt {
  margin-top:12px;
  font-size:.85rem;
  opacity:.8;
}


/* MOBILE */
@media (max-width:980px){
  #connect-panel { width: calc(100% - 20px); right: 10px; bottom: 10px; border-radius: 24px 24px 12px 12px;}
}




/* ==========================================================================
   ALOI ANNOUNCEMENT BAR (Top Floating Hub)
   Scoped to #aloi-ann-root only
   ========================================================================== */

#aloi-ann-root{
  position: fixed;
  z-index: 100000;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: min(1100px, 96vw);
  top: -120px;
  opacity: 0;
  transition: top .8s cubic-bezier(0.19, 1, 0.22, 1), opacity .35s ease;
  pointer-events: none; /* only activate when visible */
}
#aloi-ann-root.is-active{
  top: 30px;
  opacity: 1;
  pointer-events: auto;
}

.aloi-ann-shell{
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 46px; /* room for nav buttons */
  box-shadow: 0 10px 40px rgba(0,0,0,0.45);
  position: relative;
  width: 100%;
}

/* Modes */
.aloi-ann-shell.mode-dark{ color: #1a1a1a; }
.aloi-ann-shell.mode-light{
  color: #fff;
  background: rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.18);
}

/* Themes */
.aloi-ann-shell.theme-urgent{ border: 2px solid #ff3b3b !important; }
.aloi-ann-shell.theme-gold{ border: 2px solid #ffca28 !important; }

/* Pulse for urgent theme (top right) */
.aloi-ann-shell.theme-urgent::after{
  content:'';
  position:absolute;
  top: 2px;
  right: 50%;
  width: 15px;
  height: 15px;
  background: #ff3b3b;
  border-radius: 60%;
  box-shadow: 0 0 10px #ff3b3b;
  animation: alert-pulse 1.5s infinite;
}
@keyframes alert-pulse{
  0%{ transform:scale(1); opacity:1; }
  70%{ transform:scale(2.2); opacity:0; }
  100%{ transform:scale(1); opacity:0; }
}

/* Viewport & Slider */
.aloi-ann-viewport{
  flex: 1;
  width: 100%;
  overflow: hidden; /* slider handles "slides"; inner content handles scroll */
}
.aloi-ann-slider{
  display: flex;
  width: 100%;
  transition: transform .8s cubic-bezier(0.77, 0, 0.175, 1);
}
.aloi-ann-slide-item{
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  min-width: 0;
}

/* Scrollable content zone inside each slide (single-line, swipe/drag) */
.aloi-ann-scroll{
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  padding: 0 6px;
  max-width: 100%;
}
.aloi-ann-scroll::-webkit-scrollbar{ display:none; }
.aloi-ann-scroll.is-dragging{ cursor: grabbing; }

.aloi-ann-content-inner{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  min-width: max-content;
}

/* Buttons/links inside announcement content */
.aloi-ann-content-inner a,
.aloi-ann-content-inner button{
  flex: 0 0 auto;
}

/* Primary action link: Connect-Hub vibe */
.aloi-ann-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.aloi-ann-shell.mode-dark .aloi-ann-link{
  background: var(--accent-red);
  color: #fff !important;
  border-color: rgba(0,0,0,0.08);
}
.aloi-ann-shell.mode-light .aloi-ann-link{
  background: rgba(255,255,255,0.18);
  color: #fff !important;
  border-color: rgba(255,255,255,0.28);
}
.aloi-ann-link:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  opacity: .98;
}

/* Nav arrows */
.aloi-ann-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: .75;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(0,0,0,0.05);
  transition: transform .2s ease, opacity .2s ease;
}
.aloi-ann-shell.mode-light .aloi-ann-nav{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}
.aloi-ann-shell.mode-dark .aloi-ann-nav{
  color: #1a1a1a;
}
.aloi-ann-nav:hover{
  opacity: 1;
  transform: translateY(-50%) scale(1.06);
}
.aloi-ann-nav.prev{ left: 5px; }
.aloi-ann-nav.next{ right: 30px; }

/* Dots */
.aloi-ann-dots{
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}
.aloi-dot{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  padding: 0;
  opacity: .6;
  transition: .25s ease;
}
.aloi-dot.active{
  width: 16px;
  border-radius: 10px;
  opacity: 1;
}
.aloi-ann-shell.mode-dark .aloi-dot{ background: rgba(0,0,0,0.2); }
.aloi-ann-shell.mode-dark .aloi-dot.active{ background: #1a1a1a; }
.aloi-ann-shell.mode-light .aloi-dot{ background: rgba(255,255,255,0.3); }
.aloi-ann-shell.mode-light .aloi-dot.active{ background: #fff; }

/* Close button */
.aloi-ann-close{
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.06);
  opacity: .7;
  transition: transform .2s ease, opacity .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.aloi-ann-shell.mode-light .aloi-ann-close{
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.aloi-ann-close:hover{
  opacity: 1;
  transform: translateY(-50%) rotate(90deg);
}

/* Mobile */
@media (max-width: 520px){
  #aloi-ann-root.is-active{ top: 18px; }
  .aloi-ann-shell{ height: 56px; padding: 6px 38px; }
  .aloi-ann-slide-item{ font-size: 11px; }
  .aloi-ann-link{ padding: 6px 12px; font-size: 11px; }
}
/* Mobile: hide nav arrows, keep dots + swipe */
@media (max-width: 640px){
  .aloi-ann-shell{
    padding-left: 22px;
    padding-right: 42px; /* still leave room for close button */
  }

  .aloi-ann-nav{
    display: none;
  }

  /* Adjust urgent pulse since nav is gone on mobile */
  .aloi-ann-shell.theme-urgent::after{
    right: 52px;
  }
}








/* ==========================================================================
   ALOI EVENT HUB — TICKET STUB (front-end event page component)
   Scoped under .aloi-event-hub so it never bleeds into page chrome
   ========================================================================== */

/* --- 1. THE EVENT HUB STUB (White Version) --- */
.aloi-event-hub { margin: 30px 0 40px; display: block; position: relative; }
.aloi-event-ticket { max-width: 680px; filter: drop-shadow(0 12px 28px rgba(0,0,0,0.09)); contain: layout paint; }

.aloi-event-ticket .ticket-body {
    display: flex !important;
    flex-direction: row !important; /* Ensure desktop is horizontal */
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

/* Scoped to event hub to reduce bleed */
.aloi-event-hub .ticket-info {
    flex: 1; padding: 36px 40px; border-right: 2px dashed #e8e8e8;
    position: relative; background: #fff;
}

/* The "Perforation" Notches */
.aloi-event-hub .ticket-info::before, .aloi-event-hub .ticket-info::after {
    content: ''; position: absolute; right: -11px; width: 20px; height: 20px;
    background: #f6f6f6; border-radius: 50%; border: 1px solid #e8e8e8; z-index: 1;
}
.aloi-event-hub .ticket-info::before { top: -11px; }
.aloi-event-hub .ticket-info::after  { bottom: -11px; }

/* === FIX: restore missing Event Hub content styles === */
.aloi-event-hub .ticket-label {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 2.5px;
    color: #720e0e;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.aloi-event-hub .ticket-title {
    font-size: 28px;
    font-weight: 900;
    color: #111;
    margin: 0 0 24px;
    line-height: 1.1;
    letter-spacing: -0.5px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.aloi-event-hub .ticket-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 28px;
    margin-bottom: 28px;
}
.aloi-event-hub .ticket-grid > div { min-width: 0; }
.aloi-event-hub .ticket-grid span  {
    display: block;
    font-size: 9px;
    color: #aaa;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 3px;
}
.aloi-event-hub .ticket-grid strong { font-size: 13px; color: #222; font-weight: 700; }

/* RSVP / action button — scoped to event hub only */
.aloi-event-hub .ticket-btn {
    background: #111;
    color: #fff !important;
    text-decoration: none !important;
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.aloi-event-hub .ticket-btn:hover {
    background: #720e0e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(114,14,14,0.25);
}

.aloi-event-hub .ticket-no-rsvp {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #888;
    padding: 10px 18px;
    border: 1px dashed #ddd;
    border-radius: 30px;
}

/* Right Section (Stub) — scoped */
.aloi-event-hub .ticket-stub {
    width: 190px;
    flex-shrink: 0;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 18px;
}

.aloi-event-hub .stub-qr {
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.aloi-event-hub .stub-qr img { display: block; width: 100px; height: 100px; }

.aloi-event-hub .stub-sync { display: flex; flex-direction: column; gap: 7px; width: 100%; }
.aloi-event-hub .stub-sync a {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #666;
    text-align: center;
    text-decoration: none;
    padding: 8px 6px;
    border: 1px solid #e8e8e8;
    border-radius: 7px;
    background: #fff;
    transition: all 0.2s;
    display: block;
    text-transform: uppercase;
}
.aloi-event-hub .stub-sync a:hover {
    background: #720e0e;
    color: #fff !important;
    border-color: #720e0e;
}


/* --- 2. THE DIGITAL TICKET CARD (Dark Version) --- */
.aloi-ticket-card {
    background: #111 !important;
    color: #fff !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    margin: 20px auto 30px !important;
    max-width: 620px !important;
    width: 100% !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.18) !important;
}

.aloi-ticket-card .ticket-header {
    background: #720e0e !important;
    padding: 14px 30px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 9px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase;
}

.aloi-ticket-card .ticket-content {
    display: flex !important;
    flex-direction: row !important; /* LOCK Desktop Horizontal */
    padding: 32px 30px 30px !important;
    gap: 24px !important;
    align-items: stretch !important;
}

/* QR Stub for Dark Ticket */
.aloi-ticket-card .ticket-qr-stub {
    background: #fff !important;
    padding: 18px !important;
    border-radius: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 160px !important;
    flex-shrink: 0 !important;
}

/* --- 3. COMMON ELEMENTS --- */
.brand-dot { width: 6px; height: 6px; background: rgba(255,255,255,0.5); border-radius: 50%; display: inline-block; margin: 0 8px; }
.event-eyebrow { font-size: 9px; color: #c5a059; font-weight: 900; text-transform: uppercase; margin-bottom: 8px; }
.qr-wrapper img { width: 130px; height: 130px; display: block; }

/* === FIX: restore missing Dark Ticket details + actions === */
.aloi-ticket-card .ticket-details {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
}

.aloi-ticket-card .ticket-details h2 {
    color: #fff !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    margin: 0 0 18px !important;
    line-height: 1.15 !important;
}

/* Text on white QR area */
.aloi-ticket-card .id-tag { color: #333 !important; font-size: 9px !important; font-weight: 900 !important; margin-top: 10px !important; }
.aloi-ticket-card .qr-stub-label { color: #888 !important; font-size: 8px !important; margin-top: 6px !important; }

/* Buttons row */
.aloi-ticket-card .ticket-actions-row {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-top: auto !important;
    padding-top: 18px !important;
}

.aloi-ticket-card .btn-ticket-action {
    background: rgba(255,255,255,0.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    padding: 10px 18px !important;
    border-radius: 30px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.aloi-ticket-card .btn-ticket-action:hover {
    background: #720e0e !important;
    border-color: #720e0e !important;
}

/* --- 4. MOBILE RESPONSIVE (Unified) --- */
@media (max-width: 600px) {
    /* Stack both types of tickets */
    .aloi-event-ticket .ticket-body,
    .aloi-ticket-card .ticket-content {
        flex-direction: column !important;
        padding: 24px 20px !important;
    }

    /* Event Hub Mobile Specifics */
    .aloi-event-hub .ticket-info { border-right: none; border-bottom: 2px dashed #e8e8e8; }
    .aloi-event-hub .ticket-info::before, .aloi-event-hub .ticket-info::after { display: none; }

    /* QR Stubs Mobile Specifics (scoped to avoid bleed) */
    .aloi-event-hub .ticket-stub,
    .aloi-ticket-card .ticket-qr-stub {
        width: 100% !important;
        min-width: unset !important;
        flex-direction: row !important;
        padding: 15px !important;
        gap: 15px !important;
    }

    .qr-wrapper img, .stub-qr img { width: 80px !important; height: 80px !important; }

    /* Buttons Mobile */
    .aloi-ticket-card .ticket-actions-row { flex-direction: column !important; width: 100% !important; }
    .aloi-ticket-card .btn-ticket-action { width: 100% !important; }
    
    /* Center the details on mobile (was in your older version) */
    .aloi-ticket-card .ticket-details { text-align: center !important; }
}

/* --- 5. USHER APP SCANNER (Scoped) --- */
.aloi-usher-app { max-width: 500px; margin: 0 auto; background: #f4f7f6; border-radius: 30px; padding: 25px; }
#scanner-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000; z-index: 9999; }
.feedback-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10000; display: flex; align-items: center; justify-content: center; }


/* ==========================================================================
   ALOI CHECK-IN / USHER APP
   ========================================================================== */

.aloi-usher-app {
    max-width: 520px;
    margin: 40px auto;
    background: #f4f7f6;
    min-height: 80vh;
    border-radius: 30px;
    padding: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 40px 100px rgba(0,0,0,0.08);
}

.usher-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.stat-pill {
    background: #fff;
    padding: 10px 18px;
    border-radius: 14px;
    border: 1px solid #eee;
    text-align: center;
}
.stat-pill .stat-label {
    display: block;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
}
.stat-pill .stat-value {
    font-size: 22px;
    font-weight: 900;
    color: #111;
    line-height: 1.2;
}

.aloi-btn-scan {
    background: #111;
    color: #fff;
    border: none;
    padding: 14px 22px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.15);
    transition: background 0.2s, transform 0.2s;
}
.aloi-btn-scan:hover { background: #720e0e; transform: translateY(-2px); }
.aloi-btn-scan:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.aloi-btn-close {
    background: rgba(255,255,255,0.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.45);
    padding: 13px 34px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.aloi-btn-close:hover { background: rgba(255,255,255,0.3); }

.aloi-btn-secondary {
    background: #111;
    color: #fff;
    border: none;
    padding: 14px 22px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.aloi-btn-secondary:hover { background: #720e0e; }

/* Feedback Overlays */
.feedback-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}
.feedback-content { max-width: 320px; }

.icon-circle {
    width: 84px; height: 84px;
    border: 4px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    margin: 0 auto 20px;
}

.aloi-btn-next {
    margin-top: 28px;
    background: #fff;
    color: #111;
    border: none;
    padding: 14px 36px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.aloi-btn-next:hover { opacity: 0.85; }

/* Manual Search Block */
.manual-search {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.aloi-input-plain {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}
.aloi-input-plain:focus { border-color: #720e0e; }

/* Check-in Log Items */
.checkin-log-item {
    background: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    border-left: 4px solid #00c853;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    animation: slideIn 0.3s ease;
}
.checkin-log-item .log-name { font-weight: 700; color: #111; }
.checkin-log-item .log-time { font-size: 11px; color: #aaa; font-weight: 600; }
.checkin-log-item .log-event { font-size: 11px; color: #888; }

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Responsive: Check-in App */
@media (max-width: 540px) {
    .aloi-usher-app { border-radius: 20px; padding: 20px; margin: 10px; min-height: 60vh; }
    .usher-header { flex-direction: column; align-items: stretch; }
    .aloi-btn-scan { justify-content: center; }
    .stat-pill .stat-value { font-size: 18px; }
}


/* ==========================================================================
   REGISTRATION FORM — INPUT / DYNAMIC FIELDS
   ========================================================================== */

.aloi-dynamic-form .input-group { margin-bottom: 18px; }
.aloi-dynamic-form .input-group label {
    display: block;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
    color: #333;
}
.aloi-dynamic-form input[type="text"],
.aloi-dynamic-form input[type="email"],
.aloi-dynamic-form input[type="tel"],
.aloi-dynamic-form input[type="number"],
.aloi-dynamic-form input[type="date"],
.aloi-dynamic-form select,
.aloi-dynamic-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 2px solid #eee;
    background: #f9f9f9;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.aloi-dynamic-form input:focus,
.aloi-dynamic-form select:focus,
.aloi-dynamic-form textarea:focus {
    outline: none;
    border-color: #c5a059;
    box-shadow: 0 0 0 3px rgba(197,160,89,0.15);
    background: #fff;
}
.aloi-dynamic-form textarea { resize: vertical; min-height: 100px; }
.aloi-dynamic-form input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    accent-color: #720e0e;
}
.aloi-dynamic-form .checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 2px solid #eee;
    cursor: pointer;
}

.input-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 500px) { .input-split { grid-template-columns: 1fr; } }

/* Honeypot — must stay visually hidden */
.aloi-hp-field { display: none !important; visibility: hidden !important; }


/* ==========================================================================
   ADMIN DASHBOARD — CONNECT HUB SETTINGS
   ========================================================================== */

#connect-hub-settings-wrap .aloi-admin-section {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 22px 26px;
    margin-bottom: 24px;
}
#connect-hub-settings-wrap .aloi-admin-section h2 {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.aloi-contact-row,
.aloi-email-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}
.aloi-email-row { grid-template-columns: 1fr auto; }
.aloi-contact-row input,
.aloi-email-row input {
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    width: 100%;
}
.aloi-remove-row {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s;
}
.aloi-remove-row:hover { background: #fee2e2; }
.aloi-add-row {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 9px 18px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.aloi-add-row:hover { background: #dcfce7; }


/* ==========================================================================
   ADMIN META BOX — REGISTRATION FORM BUILDER
   ========================================================================== */

.aloi-field-card {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: box-shadow 0.2s;
}
.aloi-field-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.07); }
.aloi-field-card .drag-handle {
    cursor: grab;
    color: #bbb;
    font-size: 18px;
    padding-top: 2px;
    user-select: none;
}
.aloi-field-card .field-inner { flex: 1; }
.aloi-field-card input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 6px;
}
.aloi-field-card .field-type-badge {
    display: inline-block;
    background: #111;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-right: 6px;
}
.aloi-field-card .remove-field {
    background: none;
    border: none;
    color: #cc0000;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: transform 0.15s;
}
.aloi-field-card .remove-field:hover { transform: scale(1.2); }
.aloi-field-options textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    resize: vertical;
    margin-top: 4px;
}

.aloi-add-field-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.aloi-add-field-btns button {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.aloi-add-field-btns button:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* Meta Box Tabs */
.aloi-metabox-tabs { border-bottom: 1px solid #e0e0e0; margin-bottom: 18px; display: flex; gap: 0; }
.aloi-tab-btn {
    padding: 10px 18px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
}
.aloi-tab-btn.active { color: #720e0e; border-bottom-color: #720e0e; }
.aloi-tab-panel { display: none; }
.aloi-tab-panel.active { display: block; }


/* ==========================================================================
   GLOBAL UTILITY — ALOI ENTERPRISE
   ========================================================================== */

/* Accessible focus rings for all interactive elements */
.connect-card:focus,
.sub-card:focus,
.aloi-btn-scan:focus,
.aloi-btn-close:focus,
.aloi-btn-secondary:focus,
.aloi-submit-trigger:focus,
.ticket-btn:focus {
    outline: 3px solid #c5a059;
    outline-offset: 2px;
}

/* Visually hidden (screen reader only) */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .aloi-scroll-container { will-change: auto; }
}

/* Responsive: Ticket on mobile */
@media (max-width: 640px) {
    .aloi-event-ticket { max-width: 100%; margin: 20px 0; }
    .aloi-event-hub .ticket-info { padding: 24px 20px; }
    .ticket-title { font-size: 22px; }
    .ticket-grid { flex-direction: column; gap: 14px; }
    .ticket-stub { width: 100%; }
    .ticket-content { flex-direction: column; padding: 24px 20px; gap: 20px; }
    .aloi-reg-card-wrap, .aloi-portal-container { padding: 24px 18px; margin: 20px 10px; border-radius: 18px; }
}

/* Responsive: Registration + Event Hub */
@media (max-width: 480px) {
    .aloi-ticket-card .ticket-content { flex-direction: column; }
    .ticket-qr-stub { width: 100%; }
    .aloi-digital-pass .pass-body { flex-direction: column; }
    .pass-qr-side { margin: 0 auto; }
}

/* Connect Hub: max-height & scrollable body */
#connect-panel {
    max-height: min(560px, 85vh);
    display: flex;
    flex-direction: column;
}
.connect-panel-body {
    overflow-y: auto;
    flex: 1;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.15) transparent;
}
.connect-panel-body::-webkit-scrollbar { width: 4px; }
.connect-panel-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 10px; }

/* Collage: border-radius fix — ensure CSS variable is always set */
.aloi-item { border-radius: var(--img-radius, 15px); }

/* Connect Hub Back Button — pill style */
.sub-back {
    background: none;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #555;
    cursor: pointer;
    padding: 6px 12px 6px 6px;
    border-radius: 20px;
    transition: background 0.2s;
    margin-bottom: 6px;
}
.sub-back:hover { background: rgba(0,0,0,0.05); color: #111; }
.sub-back::before { content: '←'; font-size: 16px; }

/* Connect Hub Panel Header — glass sticky */
.connect-header {
    position: sticky;
    top: 0;
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    z-index: 1;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 16px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
}
.connect-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}
.connect-close {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: #888;
    background: rgba(0,0,0,0.05);
    border: none;
    transition: background 0.2s, transform 0.3s;
}
.connect-close:hover { background: rgba(0,0,0,0.1); color: #111; transform: rotate(90deg); }

/* FAB backdrop blur fix */
#connect-fab {
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid rgba(255,255,255,0.45);
}
#connect-fab:hover { transform: scale(1.08); box-shadow: 0 16px 40px rgba(0,0,0,0.35); }
#connect-fab svg { transition: transform 0.3s; }

/* ==========================================================================
   END OF ALOI ENTERPRISE STYLES
   ========================================================================== */
