 /* Event Details Specific Styles */
 #verifyEmail[readonly] {
     opacity: 0.9;
     cursor: not-allowed;
     background: #12122a !important;
 }
 .event-header {
     position: relative;
     min-height: 400px;
     height: 65vh;
     max-height: 700px;
     overflow: hidden;
     margin-top: 80px;
 }

 .event-header-image {
     width: 100%;
     height: auto;
     object-fit: contain;
     object-position: center center;
     filter: brightness(0.71);
     background-color: #000;
 }

 .event-header-overlay {
     position: absolute;
     bottom: -10px;
     left: 0;
     right: 0;
     background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
     padding: 2rem 1.5rem 1.5rem 1.5rem;
     color: white;
 }

 .event-title-section {
     position: relative;
     z-index: 2;
 }

 .event-title-row {
     display: flex;
     align-items: center;
     gap: 0.75rem;
 }

 .event-title-row .category-badge {
     margin-bottom: 0;
     flex-shrink: 0;
 }

 .event-main-title {
     font-size: 2rem;
     line-height: 1.25;
     color: #ffffff;
     margin: 0;
     min-width: 0;
 }

 .event-title-section .lead {
     font-size: 1.5rem;
     margin-bottom: 0;
 }

 /* Mobile adjustments */
 @media (max-width: 768px) {
     .event-header {
         min-height: 250px;
         height: 40vh;
         max-height: 400px;
         /* margin-top: 70px; */
     }

     .event-header-image {
         object-position: center 10%;
     }

     .event-header-overlay {
         padding: 0.5rem 1rem 0.75rem 1rem;
         background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 25%, rgba(0, 0, 0, 0.2) 50%, transparent 70%);
         padding-top: 0;
     }

     .event-header-overlay .container {
         padding-top: 0;
         margin-top: 0;
     }

     .event-main-title {
         font-size: 1.4rem;
     }

     .event-title-section .lead {
         font-size: 0.95rem;
     }

     .event-header h1 {
         font-size: 1.5rem !important;
         line-height: 1.3;
         margin-bottom: 0.5rem !important;
     }

     .event-header .lead {
         font-size: 0.9rem;
         line-height: 1.4;
         margin-bottom: 0 !important;
     }

     .category-badge {
         font-size: 0.8rem !important;
         padding: 0.3rem 0.8rem !important;
         margin-bottom: 0.3rem !important;
     }
 }

 @media (max-width: 480px) {
     .event-header {
         min-height: 220px;
         height: 35vh;
         max-height: 350px;
     }

     .event-header h1 {
         font-size: 1.25rem !important;
     }

     .event-header .lead {
         font-size: 0.85rem;
     }

     .event-main-title {
         font-size: 1.1rem;
     }

     .event-title-section .lead {
         font-size: 0.9rem;
     }

     .category-badge {
         font-size: 0.7rem !important;
         padding: 0.15rem 0.3rem;
         margin-bottom: 0.4rem !important;
     }
 }

 .category-badge {
     background: var(--primary-color);
     color: white;
     padding: 0.5rem 1rem;
     border-radius: 50px;
     font-size: 0.875rem;
     font-weight: 600;
     display: inline-flex;
     align-items: center;
     gap: 0.5rem;
     margin-bottom: 1rem;
 }

 .event-meta-card {
     background: var(--glass-bg);
     border: 1px solid var(--glass-border);
     border-radius: 15px;
     padding: 1.5rem;
     backdrop-filter: blur(10px);
     margin-bottom: 1.5rem;
 }

 .meta-item {
     display: flex;
     align-items: center;
     gap: 1rem;
     padding: 1rem 0;
     border-bottom: 1px solid var(--glass-border);
 }

 .meta-item:last-child {
     border-bottom: none;
 }

 .meta-icon {
     width: 50px;
     height: 50px;
     background: var(--primary-gradient);
     border-radius: 12px;
     display: flex;
     align-items: center;
     justify-content: center;
     color: white;
     font-size: 1.5rem;
     flex-shrink: 0;
 }

 .ticket-card {
     background: var(--glass-bg);
     border: 2px solid var(--glass-border);
     border-radius: 15px;
     padding: 1.5rem;
     margin-bottom: 1rem;
     transition: all 0.3s ease;
 }

 .ticket-card:hover {
     border-color: var(--primary-color);
     transform: translateY(-2px);
     box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
 }

 .ticket-type-badge {
     background: #cf6bf7;
     color: white;
     padding: 0.25rem 0.75rem;
     border-radius: 20px;
     font-size: 0.75rem;
     font-weight: 600;
     text-transform: uppercase;
 }

 .ticket-price {
     font-size: 1.25rem;
     font-weight: 700;
     color: var(--primary-color);
 }

 .btn-buy-ticket {
     background: #6366f1;
     color: white;
     border: none;
     padding: 0.5rem 1.2rem;
     border-radius: 50px;
     font-weight: 600;
     transition: all 0.3s ease;
 }

 .btn-buy-ticket:hover {
     transform: scale(1.05);
     box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
     color: white;
 }

 .btn-quick-buy {
     background: linear-gradient(135deg, #0891b2 0%, #0f766e 100%);
     color: white;
     border: 1px solid rgba(8, 145, 178, 0.3);
     padding: 0.4rem 1rem;
     border-radius: 50px;
     font-weight: 600;
     transition: all 0.3s ease;
 }

 .btn-quick-buy:hover {
     transform: scale(1.03);
     box-shadow: 0 6px 16px rgba(8, 145, 178, 0.45);
     color: white;
 }

 .btn-quick-buy:disabled {
     opacity: 0.55;
     cursor: not-allowed;
     transform: none;
 }

 .map-container {
     width: 100%;
     height: 400px;
     border-radius: 15px;
     overflow: hidden;
     margin-top: 1.5rem;
 }

 .social-share {
     display: flex;
     gap: 10px;
     margin-top: 15px;
     flex-wrap: wrap;
 }

 .social-share-btn {
     display: inline-flex;
     align-items: center;
     gap: 8px;
     padding: 8px 12px;
     font-size: 1.0rem;
     color: white;
     border-radius: 5px;
     text-decoration: none;
     transition: background-color 0.3s;
 }

 .social-share-btn i {
     font-size: 1.0rem;
 }

 .share-facebook {
     background-color: #4267B2;
 }

 .share-facebook:hover {
     background-color: #365899;
     color: #ccc;
 }

 .share-twitter {
     background-color: #1DA1F2;
 }

 .share-twitter:hover {
     background-color: #0a95dd;
     color: #ccc;
 }

 .share-whatsapp {
     background-color: #25D366;
 }

 .share-whatsapp:hover {
     background-color: #1ebe5d;
     color: #ccc;
 }

 .share-linkedin {
     background-color: #0A66C2;
 }

 .share-linkedin:hover {
     background-color: #084a8a;
     color: #ccc;
 }

 .share-instagram {
     background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
 }

 .share-instagram:hover {
     background: linear-gradient(45deg, #bc1888, #cc2366, #dc2743, #e6683c, #f09433);
     color: #ccc;
 }

.share-website {
    background-color: #d97706;
}

.share-website:hover {
    background-color: #b45309;
    color: #fff3e0;
}

 /* Event Description Responsive Content */
 .event-description {
     overflow-wrap: break-word;
     word-wrap: break-word;
 }

 .event-description img {
     max-width: 100% !important;
     height: auto !important;
     display: block;
     margin: 1rem 0;
     border-radius: 10px;
 }

 .event-description iframe {
     max-width: 100% !important;
     width: 100% !important;
     height: auto !important;
     aspect-ratio: 16 / 9;
     border-radius: 10px;
     margin: 1rem 0;
 }

 .event-description p {
     margin-bottom: 1rem;
 }

 .event-description h1,
 .event-description h2,
 .event-description h3 {
     margin-top: 1.5rem;
     margin-bottom: 1rem;
     font-weight: 600;
 }

 .event-description h1 {
     font-size: 1.5rem;
 }

 .event-description h2 {
     font-size: 1.3rem;
 }

 .event-description h3 {
     font-size: 1.1rem;
 }

 .event-description ul,
 .event-description ol {
     margin-left: 1.5rem;
     margin-bottom: 1rem;
 }

 .event-description table {
     width: 100%;
     max-width: 100%;
     overflow-x: auto;
     display: block;
     border-collapse: collapse;
     margin: 1rem 0;
 }

 .event-description table td,
 .event-description table th {
     padding: 0.5rem;
     border: 1px solid var(--glass-border);
 }

 /* Mobile adjustments for description */
 @media (max-width: 768px) {
     .event-description {
         font-size: 0.9rem !important;
     }

     .event-description h1 {
         font-size: 1.3rem;
     }

     .event-description h2 {
         font-size: 1.15rem;
     }

     .event-description h3 {
         font-size: 1rem;
     }

     .event-description iframe {
         height: 250px;
     }
 }

 @media (max-width: 480px) {
     .event-description {
         font-size: 0.85rem !important;
     }

     .event-description iframe {
         height: 200px;
     }
 }

 /* Event Store Animations */
 @keyframes pulse-glow {

     0%,
     100% {
         box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
     }

     50% {
         box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
     }
 }

 .event-meta-card:has(.bi-shop) {
     animation: pulse-glow 3s ease-in-out infinite;
 }

 /* Store button hover effects */
 .btn:has(.bi-bag-fill):hover {
     transform: translateY(-2px);
     transition: all 0.3s ease;
 }

 /* Shine effect on store banner */
 @keyframes shine {
     0% {
         background-position: -200% center;
     }

     100% {
         background-position: 200% center;
     }
 }

 .store-shine {
     background: linear-gradient(135deg,
             #6366f1 0%,
             #8b5cf6 25%,
             #a855f7 50%,
             #8b5cf6 75%,
             #6366f1 100%);
     background-size: 200% auto;
     animation: shine 3s linear infinite;
 }

 /* Emoji animation */
 @keyframes float-emoji {

     0%,
     100% {
         transform: translateY(0px);
     }

     50% {
         transform: translateY(-10px);
     }
 }

 .event-meta-card div[style*="font-size: 4rem"] {
     animation: float-emoji 2s ease-in-out infinite;
 }

 /* Contact modal inputs color -> ensure subject is visible */
 #contactOrganizerModal .form-control {
     background: #0f1724;
     color: #ffffff;
     border-color: rgba(255, 255, 255, 0.08);
 }

 @keyframes pulse {
     0% {
         transform: scale(1);
     }

     50% {
         transform: scale(1.3);
     }

     100% {
         transform: scale(1);
     }
 }

 #mapCartCountBtn {
     box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
 }

 /* ═══════════════════════════════════════════════════════════
    Express ticket modal — two-column checkout (Eventbrite-class)
    ═══════════════════════════════════════════════════════════ */
 /* --ef-cookie-bar-h: height of the fixed cookie banner while visible (set by event-details.php) */
 #ticketModal .ticket-modal-dialog {
     max-width: min(1100px, 96vw);
     margin: 0.75rem auto;
     height: calc(100vh - 1.5rem - var(--ef-cookie-bar-h, 0px));
     height: calc(100dvh - 1.5rem - var(--ef-cookie-bar-h, 0px));
     max-height: calc(100vh - 1.5rem - var(--ef-cookie-bar-h, 0px));
     max-height: calc(100dvh - 1.5rem - var(--ef-cookie-bar-h, 0px));
 }

 #ticketModal .ticket-modal-content {
     height: 100%;
     max-height: 100%;
     display: flex;
     flex-direction: column;
     overflow: hidden;
     border-radius: 16px;
 }

 #ticketModal .ticket-modal-header {
     flex: 0 0 auto;
 }

 #ticketModal .ticket-modal-body {
     flex: 1 1 auto;
     min-height: 0;
     overflow: hidden;
     padding: 0 !important;
     display: flex;
     flex-direction: column;
 }

 #ticketModal .ticket-modal-layout {
     display: grid;
     grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
     align-items: stretch;
     flex: 1 1 auto;
     min-height: 0;
     height: 100%;
     overflow: hidden;
 }

 #ticketModal .ticket-modal-layout:not(.has-summary) {
     grid-template-columns: 1fr;
 }

 #ticketModal .ticket-modal-list {
     min-height: 0;
     height: 100%;
     max-height: 100%;
     overflow-y: scroll; /* always show track so scroll affordance is obvious */
     overflow-x: hidden;
     padding: 0.85rem 0.75rem 1rem 1rem;
     -webkit-overflow-scrolling: touch;
     scrollbar-gutter: stable;
     scrollbar-width: thin;
     scrollbar-color: rgba(129, 140, 248, 0.75) rgba(15, 23, 42, 0.55);
 }

 #ticketModal .ticket-modal-list::-webkit-scrollbar {
     width: 10px;
 }

 #ticketModal .ticket-modal-list::-webkit-scrollbar-track {
     background: rgba(15, 23, 42, 0.55);
     border-radius: 999px;
 }

 #ticketModal .ticket-modal-list::-webkit-scrollbar-thumb {
     background: linear-gradient(180deg, rgba(99, 102, 241, 0.85), rgba(168, 85, 247, 0.75));
     border-radius: 999px;
     border: 2px solid rgba(15, 23, 42, 0.55);
 }

 #ticketModal .ticket-modal-list::-webkit-scrollbar-thumb:hover {
     background: linear-gradient(180deg, rgba(129, 140, 248, 0.95), rgba(192, 132, 252, 0.9));
 }

 /* ── Session compact header ── */
 #ticketModal .session-container {
     margin-bottom: 0.75rem !important;
 }

 #ticketModal .session-header-row {
     display: flex;
     flex-wrap: nowrap;
     align-items: center;
     gap: 0.55rem 0.75rem;
     min-width: 0;
     color: #e2e8f0;
     font-size: 0.82rem;
     font-weight: 600;
     line-height: 1.2;
 }

 #ticketModal .session-date-pill {
     flex: 0 0 auto;
     display: inline-flex;
     align-items: center;
     gap: 0.35rem;
     background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
     padding: 0.28rem 0.6rem;
     border-radius: 7px;
     color: #fff;
     font-size: 0.78rem;
     font-weight: 700;
     white-space: nowrap;
 }

 #ticketModal .session-time-text,
 #ticketModal .session-location-text {
     display: inline-flex;
     align-items: center;
     gap: 0.28rem;
     min-width: 0;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }

 #ticketModal .session-time-text {
     color: #a5b4fc;
     flex: 0 1 auto;
 }

 #ticketModal .session-location-text {
     color: #94a3b8;
     flex: 1 1 auto;
 }

 #ticketModal .session-location-text i {
     color: #818cf8;
     flex-shrink: 0;
 }

 #ticketModal .session-soldout-pill {
     flex: 0 0 auto;
     color: #ef4444;
     font-size: 0.7rem;
     background: rgba(239, 68, 68, 0.15);
     padding: 0.2rem 0.5rem;
     border-radius: 999px;
     border: 1px solid rgba(239, 68, 68, 0.4);
     font-weight: 700;
     white-space: nowrap;
 }

 /* ── Compact ticket cards ── */
 #ticketModal .ticket-card {
     background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
     border: 1px solid rgba(99, 102, 241, 0.28);
     border-radius: 10px;
     padding: 0.65rem 0.8rem;
     margin-bottom: 0.55rem;
     transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
 }

 #ticketModal .ticket-card.is-hover {
     border-color: rgba(99, 102, 241, 0.6);
     transform: translateY(-1px);
     box-shadow: 0 6px 16px rgba(99, 102, 241, 0.18);
 }

 #ticketModal .ticket-card-main {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 0.75rem;
     min-width: 0;
 }

 #ticketModal .ticket-card-info {
     flex: 1 1 auto;
     min-width: 0;
 }

 #ticketModal .ticket-card-title {
     margin: 0;
     color: #f8fafc;
     font-size: 0.95rem;
     font-weight: 700;
     line-height: 1.25;
     display: flex;
     flex-wrap: wrap;
     align-items: center;
     gap: 0.35rem;
 }

 #ticketModal .ticket-status-chip {
     font-size: 0.68rem;
     font-weight: 700;
     letter-spacing: 0.02em;
 }

 #ticketModal .ticket-status-chip.is-package { color: #22d3ee; }
 #ticketModal .ticket-status-chip.is-paused { color: #f59e0b; }
 #ticketModal .ticket-status-chip.is-soldout { color: #ef4444; }
 #ticketModal .ticket-status-chip.is-soon { color: #f59e0b; }

 #ticketModal .ticket-card-package-meta {
     margin-top: 0.2rem;
     color: #67e8f9;
     font-size: 0.72rem;
     line-height: 1.25;
 }

 #ticketModal .ticket-card-meta {
     display: flex;
     flex-wrap: wrap;
     align-items: center;
     gap: 0.25rem 0.65rem;
     margin-top: 0.28rem;
     font-size: 0.72rem;
     line-height: 1.2;
     color: #94a3b8;
 }

 #ticketModal .ticket-avail i,
 #ticketModal .ticket-until i,
 #ticketModal .ticket-seats-meta {
     margin-right: 0.15rem;
 }

 #ticketModal .ticket-avail.is-sold,
 #ticketModal .ticket-avail .is-sold-text {
     color: #ef4444;
     font-weight: 700;
 }

 #ticketModal .ticket-avail .is-paused-text {
     color: #f59e0b;
     font-weight: 700;
 }

 #ticketModal .ticket-until {
     color: #fbbf24;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
     max-width: 100%;
 }

 #ticketModal .ticket-card-actions {
     flex: 0 0 auto;
     display: flex;
     flex-direction: column;
     align-items: flex-end;
     gap: 0.35rem;
     min-width: 7.5rem;
 }

 #ticketModal .ticket-card .ticket-price {
     font-size: 1.05rem;
     font-weight: 800;
     line-height: 1.1;
     background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
     white-space: nowrap;
 }

 #ticketModal .ticket-qty-group {
     max-width: 118px;
     width: 118px;
 }

 #ticketModal .ticket-qty-btn {
     background: rgba(99, 102, 241, 0.22);
     color: #c7d2fe;
     border: 1px solid rgba(99, 102, 241, 0.4);
     font-weight: 700;
     padding: 0.2rem 0.45rem;
     min-width: 32px;
 }

 #ticketModal .ticket-qty-btn:hover:not(:disabled) {
     background: rgba(99, 102, 241, 0.35);
     color: #fff;
 }

 #ticketModal .ticket-qty-group .ticket-qty {
     background: #1a1a2e;
     color: #fff;
     border: 1px solid rgba(99, 102, 241, 0.4);
     font-weight: 700;
     font-size: 0.85rem;
     padding: 0.2rem 0.15rem;
     min-height: 30px;
 }

 #ticketModal .ticket-action-msg {
     font-size: 0.72rem;
     font-weight: 700;
     text-align: right;
     line-height: 1.2;
     max-width: 9rem;
 }

 #ticketModal .ticket-action-msg.is-paused,
 #ticketModal .ticket-action-msg.is-soon { color: #f59e0b; }
 #ticketModal .ticket-action-msg.is-unavailable { color: #ef4444; }

 /* Hide legacy area badge if any slip through */
 #ticketModal .ticket-type-badge {
     display: none !important;
 }

 /* ── Group ticket accordion (Mesa Grande → expand tables) ── */
 #ticketModal .ticket-group-accordion {
     margin-bottom: 0.55rem;
     border: 1px solid rgba(99, 102, 241, 0.35);
     border-radius: 12px;
     background: linear-gradient(135deg, rgba(99, 102, 241, 0.14) 0%, rgba(168, 85, 247, 0.07) 100%);
     overflow: hidden;
 }

 #ticketModal .ticket-group-accordion-toggle {
     width: 100%;
     border: 0;
     background: transparent;
     text-align: left;
     padding: 0.7rem 0.85rem;
     color: inherit;
     cursor: pointer;
 }

 #ticketModal .ticket-group-accordion-toggle:disabled {
     cursor: not-allowed;
 }

 #ticketModal .ticket-group-accordion-toggle:hover:not(:disabled) {
     background: rgba(99, 102, 241, 0.1);
 }

 #ticketModal .ticket-group-select-btn {
     display: inline-flex;
     align-items: center;
     gap: 0.35rem;
     background: rgba(99, 102, 241, 0.28);
     border: 1px solid rgba(129, 140, 248, 0.55);
     color: #e0e7ff;
     font-size: 0.78rem;
     font-weight: 700;
     padding: 0.32rem 0.65rem;
     border-radius: 999px;
     white-space: nowrap;
 }

 #ticketModal .ticket-group-selected-badge {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     min-width: 1.15rem;
     height: 1.15rem;
     padding: 0 0.28rem;
     border-radius: 999px;
     background: #22c55e;
     color: #052e16;
     font-size: 0.68rem;
     font-weight: 800;
 }

 #ticketModal .ticket-group-selected-badge[hidden] {
     display: none !important;
 }

 #ticketModal .ticket-group-chevron {
     transition: transform 0.2s ease;
     font-size: 0.85rem;
 }

 #ticketModal .ticket-group-accordion.is-open .ticket-group-chevron {
     transform: rotate(180deg);
 }

 #ticketModal .ticket-group-accordion.is-open .ticket-group-select-btn {
     background: rgba(168, 85, 247, 0.35);
     border-color: rgba(192, 132, 252, 0.65);
 }

 #ticketModal .ticket-group-accordion-body {
     border-top: 1px solid rgba(148, 163, 184, 0.18);
     padding: 0.45rem 0.55rem 0.55rem;
     background: rgba(2, 6, 23, 0.28);
     display: flex;
     flex-direction: column;
     gap: 0.4rem;
 }

 #ticketModal .ticket-group-accordion-body[hidden] {
     display: none !important;
 }

 #ticketModal .ticket-card--group-child {
     margin-bottom: 0;
     padding: 0.5rem 0.65rem;
     background: rgba(15, 23, 42, 0.55);
     border-color: rgba(99, 102, 241, 0.22);
 }

 #ticketModal .ticket-card--group-child .ticket-card-title {
     font-size: 0.88rem;
 }

 #ticketModal .ticket-avail-count {
     color: #a5b4fc;
     font-weight: 600;
 }

 #ticketModal .ticket-modal-summary {
     min-height: 0;
     border-left: 1px solid rgba(148, 163, 184, 0.18);
     background:
         radial-gradient(120% 80% at 100% 0%, rgba(168, 85, 247, 0.18), transparent 55%),
         linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(22, 33, 62, 0.98) 100%);
     padding: 1.15rem 1.15rem 1.25rem;
     display: flex;
     flex-direction: column;
     overflow-x: hidden;
     overflow-y: auto;
     -webkit-overflow-scrolling: touch;
 }

 #ticketModal .ticket-summary-card {
     display: flex;
     flex-direction: column;
     gap: 0.85rem;
     height: 100%;
     min-height: 0;
     animation: ticketSummaryIn 0.35s ease-out;
 }

 @keyframes ticketSummaryIn {
     from {
         opacity: 0;
         transform: translateX(10px);
     }
     to {
         opacity: 1;
         transform: translateX(0);
     }
 }

 #ticketModal .ticket-summary-head {
     flex: 0 0 auto;
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 0.5rem;
 }

 #ticketModal .ticket-summary-title {
     color: #f8fafc;
     font-weight: 700;
     font-size: 1rem;
     letter-spacing: 0.01em;
 }

 #ticketModal .ticket-summary-clear-btn {
     flex: 0 0 auto;
     display: inline-flex;
     align-items: center;
     gap: 0.28rem;
     border: 1px solid rgba(248, 113, 113, 0.45);
     background: rgba(239, 68, 68, 0.12);
     color: #fca5a5;
     font-size: 0.72rem;
     font-weight: 700;
     padding: 0.28rem 0.55rem;
     border-radius: 999px;
     line-height: 1;
     transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
 }

 #ticketModal .ticket-summary-clear-btn:hover {
     background: rgba(239, 68, 68, 0.28);
     border-color: rgba(248, 113, 113, 0.7);
     color: #fecaca;
 }

 #ticketModal .ticket-summary-clear-btn[hidden] {
     display: none !important;
 }

 #ticketModal .ticket-summary-buyer {
     flex: 0 0 auto;
     background: rgba(99, 102, 241, 0.12);
     border: 1px solid rgba(99, 102, 241, 0.28);
     border-radius: 12px;
     padding: 0.7rem 0.85rem;
 }

 #ticketModal .ticket-summary-buyer-label {
     color: #a5b4fc;
     font-size: 0.72rem;
     font-weight: 700;
     text-transform: uppercase;
     letter-spacing: 0.06em;
     margin-bottom: 0.2rem;
 }

 #ticketModal .ticket-summary-buyer-email {
     color: #e2e8f0;
     font-size: 0.92rem;
     font-weight: 600;
     word-break: break-all;
 }

 #ticketModal .ticket-summary-buyer-guest {
     color: #94a3b8;
     font-weight: 500;
 }

 #ticketModal .ticket-summary-lines {
     flex: 1 1 auto;
     min-height: 3rem;
     max-height: none; /* fill free space above coupon/checkout */
     overflow-y: auto;
     padding: 0.15rem 0.1rem;
     scrollbar-width: thin;
     scrollbar-color: rgba(129, 140, 248, 0.65) transparent;
 }

 #ticketModal .ticket-summary-lines::-webkit-scrollbar {
     width: 6px;
 }

 #ticketModal .ticket-summary-lines::-webkit-scrollbar-thumb {
     background: rgba(129, 140, 248, 0.55);
     border-radius: 999px;
 }

 #ticketModal .ticket-summary-empty {
     color: #64748b;
     font-size: 0.86rem;
     padding: 0.35rem 0.15rem;
 }

 #ticketModal .ticket-summary-line {
     display: flex;
     justify-content: space-between;
     gap: 0.75rem;
     padding: 0.45rem 0;
     border-bottom: 1px solid rgba(148, 163, 184, 0.12);
 }

 #ticketModal .ticket-summary-line:last-child {
     border-bottom: none;
 }

 #ticketModal .ticket-summary-line-name {
     color: #e2e8f0;
     font-size: 0.84rem;
     font-weight: 600;
     line-height: 1.3;
 }

 #ticketModal .ticket-summary-line-meta {
     color: #94a3b8;
     font-size: 0.74rem;
     margin-top: 0.1rem;
 }

 #ticketModal .ticket-summary-line-price {
     color: #c7d2fe;
     font-size: 0.84rem;
     font-weight: 700;
     white-space: nowrap;
 }

 /* Pin coupon + totals + checkout to the bottom of the summary rail */
 #ticketModal .ticket-summary-footer {
     flex: 0 0 auto;
     margin-top: auto;
     display: flex;
     flex-direction: column;
     gap: 0.75rem;
 }

 #ticketModal .ticket-summary-coupon {
     flex: 0 0 auto;
     background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(99, 102, 241, 0.12) 100%);
     border: 1px solid rgba(251, 191, 36, 0.45);
     border-radius: 12px;
     padding: 0.7rem 0.75rem;
 }

 #ticketModal .ticket-summary-coupon-label {
     display: block;
     color: #fde68a;
     font-size: 0.78rem;
     font-weight: 700;
     margin-bottom: 0.4rem;
 }

 #ticketModal .ticket-summary-coupon-group .form-control {
     background: rgba(15, 23, 42, 0.78);
     color: #fff;
     border: 1px solid rgba(251, 191, 36, 0.55);
     min-height: 40px;
     text-transform: uppercase;
     font-weight: 600;
     font-size: 0.86rem;
 }

 #ticketModal .ticket-summary-coupon-group #ticketModalApplyCouponBtn {
     background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
     color: #fff;
     border: 1px solid rgba(251, 191, 36, 0.65);
     font-weight: 700;
     min-width: 78px;
 }

 #ticketModal .ticket-summary-coupon-group #ticketModalRemoveCouponBtn {
     background: rgba(239, 68, 68, 0.25);
     color: #fff;
     border: 1px solid rgba(239, 68, 68, 0.45);
     min-width: 78px;
 }

 #ticketModal .ticket-summary-coupon-feedback {
     font-size: 0.74rem;
     min-height: 1rem;
     color: #fef3c7;
     margin-top: 0.35rem;
 }

 #ticketModal .ticket-summary-totals {
     flex: 0 0 auto;
     background: rgba(15, 23, 42, 0.45);
     border: 1px solid rgba(148, 163, 184, 0.16);
     border-radius: 12px;
     padding: 0.75rem 0.85rem;
 }

 #ticketModal .ticket-summary-row {
     display: flex;
     justify-content: space-between;
     align-items: center;
     gap: 0.75rem;
     color: #94a3b8;
     font-size: 0.86rem;
     margin-bottom: 0.4rem;
 }

 #ticketModal .ticket-summary-row span:last-child {
     color: #e2e8f0;
     font-weight: 600;
 }

 #ticketModal .ticket-summary-discount span,
 #ticketModal .ticket-summary-discount span:last-child {
     color: #34d399 !important;
 }

 #ticketModal .ticket-summary-tax-rows .ticket-summary-row {
     margin-bottom: 0.3rem;
 }

 #ticketModal .ticket-summary-total {
     margin-bottom: 0;
     margin-top: 0.35rem;
     padding-top: 0.55rem;
     border-top: 1px solid rgba(148, 163, 184, 0.2);
     color: #f8fafc !important;
     font-size: 1.05rem;
     font-weight: 700;
 }

 #ticketModal .ticket-summary-total span:last-child {
     background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
     font-size: 1.35rem;
     font-weight: 800;
 }

 #ticketModal .ticket-summary-checkout-btn {
     flex: 0 0 auto;
     width: 100%;
     margin-top: 0;
     background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
     color: #fff;
     font-weight: 800;
     border: none;
     padding: 0.85rem 1rem;
     font-size: 1.05rem;
     border-radius: 12px;
     letter-spacing: 0.02em;
     box-shadow: 0 10px 28px rgba(99, 102, 241, 0.35);
     transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
 }

 #ticketModal .ticket-summary-card:not(.has-selection) .ticket-summary-checkout-btn:not(:disabled) {
     opacity: 0.72;
     box-shadow: 0 6px 16px rgba(99, 102, 241, 0.2);
 }

 #ticketModal .ticket-summary-card.has-selection .ticket-summary-checkout-btn:not(:disabled) {
     opacity: 1;
 }

 #ticketModal .ticket-summary-checkout-btn:hover:not(:disabled) {
     transform: translateY(-1px) scale(1.01);
     box-shadow: 0 14px 34px rgba(99, 102, 241, 0.45);
     filter: brightness(1.05);
     color: #fff;
 }

 #ticketModal .ticket-summary-checkout-btn:active:not(:disabled) {
     transform: translateY(0) scale(0.99);
 }

 #ticketModal .ticket-summary-checkout-btn:disabled {
     opacity: 0.55;
     cursor: not-allowed;
     box-shadow: none;
 }

 #ticketModal .ticket-summary-seller-msg {
     color: #fbbf24;
     font-size: 0.78rem;
     margin: 0;
 }

 #ticketModal .ticket-modal-empty-state {
     grid-column: 1 / -1;
     padding: 1.25rem;
 }

 #ticketModal .ticket-modal-test-banner {
     flex: 0 0 auto;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 0.4rem;
     margin: 0;
     padding: 0.28rem 0.75rem;
     line-height: 1.2;
     font-size: 0.72rem;
     font-weight: 700;
     color: #78350f;
     background: #fde68a;
     border-top: 1px solid rgba(217, 119, 6, 0.45);
     min-height: 0;
     height: auto;
 }

 @media (prefers-reduced-motion: reduce) {
     #ticketModal .ticket-summary-card {
         animation: none;
     }

     #ticketModal .ticket-summary-checkout-btn {
         transition: none;
     }
 }

 @media (max-width: 991.98px) {
     #ticketModal .ticket-modal-dialog {
         max-width: min(640px, 96vw);
         height: calc(100vh - 0.75rem - var(--ef-cookie-bar-h, 0px));
         height: calc(100dvh - 0.75rem - var(--ef-cookie-bar-h, 0px));
         max-height: calc(100vh - 0.75rem - var(--ef-cookie-bar-h, 0px));
         max-height: calc(100dvh - 0.75rem - var(--ef-cookie-bar-h, 0px));
         margin: 0.35rem auto;
     }

     #ticketModal .ticket-modal-content {
         height: 100%;
         max-height: 100%;
     }

     /* Single scroll: tickets first, then compact summary below */
     #ticketModal .ticket-modal-layout.has-summary {
         display: flex !important;
         flex-direction: column;
         grid-template-columns: none;
         grid-template-rows: none;
         overflow-x: hidden;
         overflow-y: auto;
         -webkit-overflow-scrolling: touch;
         height: 100%;
         min-height: 0;
     }

     #ticketModal .ticket-modal-list {
         flex: 0 0 auto;
         min-height: 0;
         height: auto;
         max-height: none;
         overflow: visible;
         padding: 0.7rem 0.7rem 0.35rem;
     }

     #ticketModal .ticket-modal-summary {
         flex: 0 0 auto;
         border-left: none;
         border-top: 1px solid rgba(148, 163, 184, 0.2);
         padding: 0.55rem 0.7rem 0.75rem;
         position: relative;
         bottom: auto;
         z-index: 1;
         box-shadow: none;
         overflow: visible;
         height: auto;
         min-height: 0;
         background: linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(22, 33, 62, 0.98) 100%);
     }

     #ticketModal .ticket-summary-card {
         height: auto;
         gap: 0.45rem;
         animation: none;
     }

     #ticketModal .ticket-summary-footer {
         margin-top: 0;
         gap: 0.45rem;
     }

     #ticketModal .ticket-summary-head {
         gap: 0.35rem;
     }

     #ticketModal .ticket-summary-title {
         font-size: 0.88rem;
     }

     #ticketModal .ticket-summary-buyer {
         padding: 0.4rem 0.55rem;
         border-radius: 8px;
     }

     #ticketModal .ticket-summary-buyer-label {
         font-size: 0.65rem;
         margin-bottom: 0.05rem;
     }

     #ticketModal .ticket-summary-buyer-email {
         font-size: 0.8rem;
     }

     #ticketModal .ticket-summary-lines {
         flex: 0 0 auto;
         min-height: 0;
         max-height: 5.5rem;
         overflow-y: auto;
     }

     #ticketModal .ticket-summary-empty {
         font-size: 0.78rem;
         padding: 0.15rem 0;
     }

     #ticketModal .ticket-summary-line {
         padding: 0.28rem 0;
         gap: 0.45rem;
     }

     #ticketModal .ticket-summary-line-name {
         font-size: 0.78rem;
     }

     #ticketModal .ticket-summary-line-meta,
     #ticketModal .ticket-summary-line-price {
         font-size: 0.7rem;
     }

     #ticketModal .ticket-summary-coupon {
         padding: 0.4rem 0.5rem;
         border-radius: 8px;
     }

     #ticketModal .ticket-summary-coupon-label {
         font-size: 0.7rem;
         margin-bottom: 0.25rem;
     }

     #ticketModal .ticket-summary-coupon-group .form-control {
         min-height: 32px;
         font-size: 0.78rem;
         padding: 0.25rem 0.45rem;
     }

     #ticketModal .ticket-summary-coupon-group #ticketModalApplyCouponBtn,
     #ticketModal .ticket-summary-coupon-group #ticketModalRemoveCouponBtn {
         min-width: 64px;
         padding: 0.25rem 0.5rem;
         font-size: 0.75rem;
     }

     #ticketModal .ticket-summary-coupon-feedback {
         font-size: 0.68rem;
         min-height: 0.85rem;
         margin-top: 0.2rem;
     }

     #ticketModal .ticket-summary-totals {
         padding: 0.45rem 0.55rem;
         border-radius: 8px;
     }

     #ticketModal .ticket-summary-row {
         font-size: 0.78rem;
         margin-bottom: 0.2rem;
         gap: 0.4rem;
     }

     #ticketModal .ticket-summary-total {
         margin-top: 0.2rem;
         padding-top: 0.35rem;
         font-size: 0.9rem;
     }

     #ticketModal .ticket-summary-total span:last-child {
         font-size: 1.05rem;
     }

     #ticketModal .ticket-summary-checkout-btn {
         padding: 0.55rem 0.75rem;
         font-size: 0.92rem;
         border-radius: 10px;
         box-shadow: 0 6px 16px rgba(99, 102, 241, 0.28);
     }

     #ticketModal .session-header-row {
         flex-wrap: wrap;
     }

     #ticketModal .ticket-summary-coupon-group {
         flex-wrap: nowrap;
     }

     #ticketModal .ticket-summary-coupon-group .btn {
         flex: 0 0 auto;
         min-width: 64px;
     }
 }

 @media (max-width: 575.98px) {
     #ticketModal .ticket-card-main {
         align-items: flex-start;
     }

     #ticketModal .ticket-card-actions {
         min-width: 6.5rem;
     }

     #ticketModal .ticket-card .ticket-price {
         font-size: 0.95rem;
     }

     #ticketModal .ticket-card-title {
         font-size: 0.88rem;
     }

     #ticketModal .ticket-summary-buyer {
         display: none; /* reclaim vertical space on small phones; email still collected at checkout */
     }

     #ticketModal .ticket-summary-checkout-btn {
         padding: 0.5rem 0.7rem;
         font-size: 0.9rem;
     }
 }

 #eventRegistrationModal {
     z-index: 1100 !important;
 }
