/* ===================================================================
   ArtsVenue Ticketing — Dark & Light Theme with 1200px layout
   =================================================================== */

/* ─── DARK THEME (default) ───────────────────────────────────────── */
:root,
[data-av-theme="dark"] {
    --av-bg:              #0a0a0a;
    --av-surface:         #141414;
    --av-surface2:        #1c1c1c;
    --av-border:          #2a2a2a;
    --av-gold:            #d4a843;
    --av-gold-hover:      #e6bc5a;
    --av-gold-dim:        rgba(212,168,67,0.12);
    --av-text:            #f0f0f0;
    --av-text-muted:      #888888;
    --av-success:         #4ade80;
    --av-danger:          #ef4444;
    --av-radius:          10px;
    --av-radius-sm:       6px;
    --av-shadow:          0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --av-shadow-lg:       0 4px 24px rgba(0,0,0,0.4);
    --av-font:            'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* component-specific */
    --av-card-bg:         linear-gradient(165deg,#161612 0%,#0f0f0b 100%);
    --av-card-border:     rgba(212,168,67,0.15);
    --av-img-placeholder: linear-gradient(160deg,#1a1810 0%,#0c0c08 50%,#12110d 100%);
    --av-stage-bg:        linear-gradient(135deg,#1a1508,#2a2010);
    --av-stage-border:    rgba(212,168,67,0.2);
    --av-seat-held-bg:    #1a1a1a;
    --av-seat-held-border:#222;
    --av-seat-held-color: #444;
    --av-seat-sold-bg:    #1a1a1a;
    --av-seat-sold-border:#222;
    --av-modal-backdrop:  rgba(0,0,0,0.8);
    --av-header-nav-color:#fff;
    --av-carousel-bg:     #0c0c08;
    --av-overlay-start:   rgba(10,10,10,0.95);
    --av-overlay-mid:     rgba(10,10,10,0.4);
    --av-overlay-end:     rgba(10,10,10,0.2);
    --av-btn-disabled-bg: #3a3a3a;
    --av-btn-disabled-color:#666;
    --av-toast-info-bg:   #1c1c1c;
    --av-toast-success-bg:#166534;
    --av-toast-error-bg:  #991b1b;
    --av-input-bg:        var(--av-surface);
    --av-filter-pill-active-color: #0a0a0a;
    --av-progress-active-color:    #0a0a0a;
    --av-badge-gold-color: #0a0a0a;
    --av-pagination-active-color: #0a0a0a;
    --av-on-gold-text:    #0a0a0a;
}

/* ─── LIGHT THEME ────────────────────────────────────────────────── */
[data-av-theme="light"] {
    --av-bg:              #f4f5f7;
    --av-surface:         #ffffff;
    --av-surface2:        #eef0f3;
    --av-border:          #dde1e8;
    --av-gold:            #b8892a;
    --av-gold-hover:      #d4a843;
    --av-gold-dim:        rgba(184,137,42,0.10);
    --av-text:            #1a1a2e;
    --av-text-muted:      #6b7280;
    --av-success:         #16a34a;
    --av-danger:          #dc2626;
    --av-radius:          10px;
    --av-radius-sm:       6px;
    --av-shadow:          0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
    --av-shadow-lg:       0 4px 24px rgba(0,0,0,0.10);
    --av-font:            'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* component-specific */
    --av-card-bg:         #ffffff;
    --av-card-border:     #dde1e8;
    --av-img-placeholder: linear-gradient(160deg,#f0ece0 0%,#e8e0cc 50%,#ede5d0 100%);
    --av-stage-bg:        linear-gradient(135deg,#fdf8ee,#f5edcc);
    --av-stage-border:    rgba(184,137,42,0.3);
    --av-seat-held-bg:    #e8e8e8;
    --av-seat-held-border:#cccccc;
    --av-seat-held-color: #aaaaaa;
    --av-seat-sold-bg:    #eeeeee;
    --av-seat-sold-border:#dddddd;
    --av-modal-backdrop:  rgba(0,0,0,0.5);
    --av-header-nav-color:#1a1a2e;
    --av-carousel-bg:     #e8e4d8;
    --av-overlay-start:   rgba(244,245,247,0.90);
    --av-overlay-mid:     rgba(244,245,247,0.40);
    --av-overlay-end:     rgba(244,245,247,0.10);
    --av-btn-disabled-bg: #e0e0e0;
    --av-btn-disabled-color:#aaaaaa;
    --av-toast-info-bg:   #eef0f3;
    --av-toast-success-bg:#dcfce7;
    --av-toast-error-bg:  #fee2e2;
    --av-input-bg:        #ffffff;
    --av-filter-pill-active-color: #fff;
    --av-progress-active-color:    #fff;
    --av-badge-gold-color: #fff;
    --av-pagination-active-color: #fff;
    --av-on-gold-text:    #fff;
}

/* ─── Full-Screen Override ────────────────────────────────────────
   Uses :has() to detect ArtsVenue pages without relying on
   body_class.  Also uses body.artsvenue-fullwidth as fallback.
   ─────────────────────────────────────────────────────────────────── */

/* Shorthand: B = body when an ArtsVenue page is present */
body.artsvenue-fullwidth,
body:has([class*="av-"][class*="-page"]) {
    --ast-normal-container-width: 100% !important;
    --ast-narrow-container-width: 100% !important;
    --ast-content-width: 100% !important;
    background: var(--av-bg) !important;
    overflow-x: hidden !important;
}

/* ── Nuke ALL theme wrappers (generic + Astra) ────────────────── */
body.artsvenue-fullwidth #page,
body.artsvenue-fullwidth #content,
body.artsvenue-fullwidth #primary,
body.artsvenue-fullwidth #main,
body.artsvenue-fullwidth .site,
body.artsvenue-fullwidth .site-content,
body.artsvenue-fullwidth .site-main,
body.artsvenue-fullwidth .content-area,
body.artsvenue-fullwidth .entry-content,
body.artsvenue-fullwidth .page-content,
body.artsvenue-fullwidth .post-content,
body.artsvenue-fullwidth article,
body.artsvenue-fullwidth .ast-container,
body.artsvenue-fullwidth .ast-separate-container,
body.artsvenue-fullwidth .wp-block-post-content,
body.artsvenue-fullwidth .wp-site-blocks,
body.artsvenue-fullwidth .has-global-padding,
body.artsvenue-fullwidth .is-layout-constrained,
body:has([class*="av-"][class*="-page"]) #page,
body:has([class*="av-"][class*="-page"]) #content,
body:has([class*="av-"][class*="-page"]) #primary,
body:has([class*="av-"][class*="-page"]) #main,
body:has([class*="av-"][class*="-page"]) .site,
body:has([class*="av-"][class*="-page"]) .site-content,
body:has([class*="av-"][class*="-page"]) .site-main,
body:has([class*="av-"][class*="-page"]) .content-area,
body:has([class*="av-"][class*="-page"]) .entry-content,
body:has([class*="av-"][class*="-page"]) .page-content,
body:has([class*="av-"][class*="-page"]) .post-content,
body:has([class*="av-"][class*="-page"]) article,
body:has([class*="av-"][class*="-page"]) .ast-container,
body:has([class*="av-"][class*="-page"]) .ast-separate-container,
body:has([class*="av-"][class*="-page"]) .wp-block-post-content,
body:has([class*="av-"][class*="-page"]) .wp-site-blocks,
body:has([class*="av-"][class*="-page"]) .has-global-padding,
body:has([class*="av-"][class*="-page"]) .is-layout-constrained {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

/* Hide page title WP/Astra generates */
body.artsvenue-fullwidth .entry-header,
body.artsvenue-fullwidth .page-header,
body.artsvenue-fullwidth .ast-archive-description,
body.artsvenue-fullwidth .wp-block-post-title,
body:has([class*="av-"][class*="-page"]) .entry-header,
body:has([class*="av-"][class*="-page"]) .page-header,
body:has([class*="av-"][class*="-page"]) .ast-archive-description,
body:has([class*="av-"][class*="-page"]) .wp-block-post-title,
body:has([class*="av-"][class*="-page"]) .entry-title {
    display: none !important;
}

/* ── Hide Astra page-title bar, breadcrumbs & featured image ────
   These create the blank space above our hero on single av_show
   pages and on any page using our shortcodes. Also covers other
   common themes: Flatsome, GeneratePress, Hello, Storefront.
   ──────────────────────────────────────────────────────────────── */
body.artsvenue-fullwidth .ast-page-title-bar,
body.artsvenue-fullwidth .ast-breadcrumbs-wrapper,
body.artsvenue-fullwidth .ast-featured-image-primary,
body.artsvenue-fullwidth .post-thumbnail,
body.artsvenue-fullwidth .ast-post-format-image,
body.artsvenue-fullwidth .ast-above-post-title,
body.artsvenue-fullwidth .wp-block-post-featured-image,
body.artsvenue-fullwidth .page-header-image,
body.artsvenue-fullwidth .page-title-section,
body.artsvenue-fullwidth .cover-header,
body:has([class*="av-"][class*="-page"]) .ast-page-title-bar,
body:has([class*="av-"][class*="-page"]) .ast-breadcrumbs-wrapper,
body:has([class*="av-"][class*="-page"]) .ast-featured-image-primary,
body:has([class*="av-"][class*="-page"]) .post-thumbnail,
body:has([class*="av-"][class*="-page"]) .ast-post-format-image,
body:has([class*="av-"][class*="-page"]) .ast-above-post-title,
body:has([class*="av-"][class*="-page"]) .wp-block-post-featured-image,
body:has([class*="av-"][class*="-page"]) .page-header-image,
body:has([class*="av-"][class*="-page"]) .page-title-section,
body:has([class*="av-"][class*="-page"]) .cover-header {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Kill Astra spacing added to single CPT entry-content */
body.artsvenue-fullwidth .ast-single-post-order,
body:has([class*="av-"][class*="-page"]) .ast-single-post-order {
    padding: 0 !important;
    margin: 0 !important;
}
body.artsvenue-fullwidth.single-av_show .ast-article-single,
body.artsvenue-fullwidth.single-av_show .entry-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Remove any gaps */
body.artsvenue-fullwidth .site-content,
body.artsvenue-fullwidth .site-main,
body.artsvenue-fullwidth #primary,
body:has([class*="av-"][class*="-page"]) .site-content,
body:has([class*="av-"][class*="-page"]) .site-main,
body:has([class*="av-"][class*="-page"]) #primary {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Astra separated container: kill the card background */
body.ast-separate-container:has([class*="av-"][class*="-page"]) .ast-article-single,
body.ast-separate-container:has([class*="av-"][class*="-page"]) .ast-article-post,
body.ast-separate-container:has([class*="av-"][class*="-page"]) article,
body.artsvenue-fullwidth.ast-separate-container .ast-article-single,
body.artsvenue-fullwidth.ast-separate-container .ast-article-post,
body.artsvenue-fullwidth.ast-separate-container article {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

/* ── HEADER: dark blend ───────────────────────────────────────── */
body.artsvenue-fullwidth .main-header-bar,
body.artsvenue-fullwidth .ast-primary-header-bar,
body.artsvenue-fullwidth .ast-above-header-bar,
body.artsvenue-fullwidth .ast-below-header-bar,
body.artsvenue-fullwidth .site-header,
body.artsvenue-fullwidth #masthead,
body.artsvenue-fullwidth header,
body.artsvenue-fullwidth .ast-main-header-wrap,
body:has([class*="av-"][class*="-page"]) .main-header-bar,
body:has([class*="av-"][class*="-page"]) .ast-primary-header-bar,
body:has([class*="av-"][class*="-page"]) .ast-above-header-bar,
body:has([class*="av-"][class*="-page"]) .ast-below-header-bar,
body:has([class*="av-"][class*="-page"]) .site-header,
body:has([class*="av-"][class*="-page"]) #masthead,
body:has([class*="av-"][class*="-page"]) header,
body:has([class*="av-"][class*="-page"]) .ast-main-header-wrap {
    background: var(--av-bg) !important;
    border-color: var(--av-border) !important;
    border-bottom: 1px solid var(--av-border) !important;
    box-shadow: none !important;
}

/* Site title / logo */
body.artsvenue-fullwidth .site-title,
body.artsvenue-fullwidth .site-title a,
body.artsvenue-fullwidth .ast-site-identity .site-title a,
body.artsvenue-fullwidth .site-description,
body:has([class*="av-"][class*="-page"]) .site-title,
body:has([class*="av-"][class*="-page"]) .site-title a,
body:has([class*="av-"][class*="-page"]) .ast-site-identity .site-title a,
body:has([class*="av-"][class*="-page"]) .site-description {
    color: #fff !important;
}

/* Nav links */
body.artsvenue-fullwidth .main-header-menu a,
body.artsvenue-fullwidth .ast-builder-menu-1 a,
body.artsvenue-fullwidth .ast-nav-menu a,
body.artsvenue-fullwidth .menu-item a,
body.artsvenue-fullwidth header a,
body:has([class*="av-"][class*="-page"]) .main-header-menu a,
body:has([class*="av-"][class*="-page"]) .ast-builder-menu-1 a,
body:has([class*="av-"][class*="-page"]) .ast-nav-menu a,
body:has([class*="av-"][class*="-page"]) .menu-item a,
body:has([class*="av-"][class*="-page"]) header a {
    color: var(--av-text) !important;
    transition: color 0.2s ease !important;
}

body.artsvenue-fullwidth .main-header-menu a:hover,
body.artsvenue-fullwidth .ast-builder-menu-1 a:hover,
body.artsvenue-fullwidth .ast-nav-menu a:hover,
body.artsvenue-fullwidth .menu-item a:hover,
body:has([class*="av-"][class*="-page"]) .main-header-menu a:hover,
body:has([class*="av-"][class*="-page"]) .ast-builder-menu-1 a:hover,
body:has([class*="av-"][class*="-page"]) .ast-nav-menu a:hover,
body:has([class*="av-"][class*="-page"]) .menu-item a:hover {
    color: var(--av-gold) !important;
}

/* Active menu item */
body.artsvenue-fullwidth .current-menu-item > a,
body.artsvenue-fullwidth .current_page_item > a,
body:has([class*="av-"][class*="-page"]) .current-menu-item > a,
body:has([class*="av-"][class*="-page"]) .current_page_item > a {
    color: var(--av-gold) !important;
}

/* Dropdown submenus */
body.artsvenue-fullwidth .sub-menu,
body:has([class*="av-"][class*="-page"]) .sub-menu {
    background: var(--av-surface) !important;
    border-color: var(--av-border) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important;
}

body.artsvenue-fullwidth .sub-menu a,
body:has([class*="av-"][class*="-page"]) .sub-menu a {
    color: var(--av-text) !important;
}

body.artsvenue-fullwidth .sub-menu a:hover,
body:has([class*="av-"][class*="-page"]) .sub-menu a:hover {
    background: var(--av-surface2) !important;
    color: var(--av-gold) !important;
}

/* Mobile toggle */
body.artsvenue-fullwidth .ast-mobile-menu-trigger,
body.artsvenue-fullwidth .menu-toggle,
body:has([class*="av-"][class*="-page"]) .ast-mobile-menu-trigger,
body:has([class*="av-"][class*="-page"]) .menu-toggle {
    color: var(--av-text) !important;
}

/* Mobile drawer */
body.artsvenue-fullwidth .ast-mobile-popup-drawer .ast-mobile-popup-inner,
body.artsvenue-fullwidth .ast-mobile-header-content,
body:has([class*="av-"][class*="-page"]) .ast-mobile-popup-drawer .ast-mobile-popup-inner,
body:has([class*="av-"][class*="-page"]) .ast-mobile-header-content {
    background: var(--av-surface) !important;
}

body.artsvenue-fullwidth .ast-mobile-popup-drawer a,
body:has([class*="av-"][class*="-page"]) .ast-mobile-popup-drawer a {
    color: var(--av-text) !important;
    border-color: var(--av-border) !important;
}

/* ── FOOTER: dark blend ───────────────────────────────────────── */
body.artsvenue-fullwidth .site-footer,
body.artsvenue-fullwidth .ast-footer,
body.artsvenue-fullwidth #colophon,
body.artsvenue-fullwidth footer,
body.artsvenue-fullwidth .site-below-footer-wrap,
body.artsvenue-fullwidth .site-above-footer-wrap,
body.artsvenue-fullwidth .ast-small-footer,
body.artsvenue-fullwidth .site-footer-section,
body:has([class*="av-"][class*="-page"]) .site-footer,
body:has([class*="av-"][class*="-page"]) .ast-footer,
body:has([class*="av-"][class*="-page"]) #colophon,
body:has([class*="av-"][class*="-page"]) footer,
body:has([class*="av-"][class*="-page"]) .site-below-footer-wrap,
body:has([class*="av-"][class*="-page"]) .site-above-footer-wrap,
body:has([class*="av-"][class*="-page"]) .ast-small-footer,
body:has([class*="av-"][class*="-page"]) .site-footer-section {
    background: var(--av-bg) !important;
    color: var(--av-text-muted) !important;
    border-color: var(--av-border) !important;
    border-top: 1px solid var(--av-border) !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Footer links */
body.artsvenue-fullwidth footer a,
body.artsvenue-fullwidth .site-footer a,
body.artsvenue-fullwidth .ast-small-footer a,
body:has([class*="av-"][class*="-page"]) footer a,
body:has([class*="av-"][class*="-page"]) .site-footer a,
body:has([class*="av-"][class*="-page"]) .ast-small-footer a {
    color: var(--av-text-muted) !important;
}

body.artsvenue-fullwidth footer a:hover,
body.artsvenue-fullwidth .site-footer a:hover,
body:has([class*="av-"][class*="-page"]) footer a:hover,
body:has([class*="av-"][class*="-page"]) .site-footer a:hover {
    color: var(--av-gold) !important;
}

/* Footer copyright */
body.artsvenue-fullwidth .ast-footer-copyright,
body.artsvenue-fullwidth .site-info,
body:has([class*="av-"][class*="-page"]) .ast-footer-copyright,
body:has([class*="av-"][class*="-page"]) .site-info {
    color: var(--av-text-muted) !important;
}

/* Footer widgets */
body.artsvenue-fullwidth .footer-widget-area,
body.artsvenue-fullwidth .footer-widget-area h4,
body:has([class*="av-"][class*="-page"]) .footer-widget-area,
body:has([class*="av-"][class*="-page"]) .footer-widget-area h4 {
    color: var(--av-text) !important;
}

/* ─── Shared Page Container ──────────────────────────────────────
   All ArtsVenue shortcode root divs: full width, centred content,
   consistent padding, dark background.
   ─────────────────────────────────────────────────────────────────── */

.av-shows-page,
.av-show-detail-page,
.av-seatmap-page,
.av-booking-page,
.av-checkout-page,
.av-confirmation-page,
.av-my-tickets-page,
.av-mini-app-page,
.av-account-page,
.av-user-dashboard-page {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: var(--av-bg);
    color: var(--av-text);
    font-family: var(--av-font);
    box-sizing: border-box;
    min-height: 80vh;
}

/* Inner content wrapper - all direct children get constrained to 1200px */
.av-shows-page > *,
.av-show-detail-page > *,
.av-seatmap-page > *,
.av-booking-page > *,
.av-checkout-page > *,
.av-confirmation-page > *,
.av-my-tickets-page > *,
.av-mini-app-page > *,
.av-account-page > *,
.av-user-dashboard-page > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
    box-sizing: border-box;
}

/* Full-bleed exceptions — hero banners and stage labels span full width */
.av-shows-featured,
.av-shows-hero,
.av-show-hero,
.av-stage-label {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ─── Base ───────────────────────────────────────────────────────── */

.av-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.av-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--av-border);
    border-top-color: var(--av-gold);
    border-radius: 50%;
    animation: av-spin 0.7s linear infinite;
}

@keyframes av-spin {
    to { transform: rotate(360deg); }
}

.av-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--av-font);
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--av-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
}

.av-btn-primary {
    background: linear-gradient(135deg, var(--av-gold), #c49a35);
    color: var(--av-on-gold-text);
    box-shadow: 0 2px 8px rgba(212,168,67,0.2);
}
.av-btn-primary:hover {
    background: linear-gradient(135deg, var(--av-gold-hover), var(--av-gold));
    box-shadow: 0 4px 16px rgba(212,168,67,0.3);
}
.av-btn-primary:disabled {
    background: var(--av-btn-disabled-bg);
    color: var(--av-btn-disabled-color);
    cursor: not-allowed;
}

.av-btn-outline {
    background: transparent;
    color: var(--av-gold);
    border: 1px solid var(--av-gold);
}
.av-btn-outline:hover {
    background: var(--av-gold-dim);
}

.av-btn-danger {
    background: var(--av-danger);
    color: #fff;
}
.av-btn-danger:hover { background: #dc2626; }

.av-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.av-input, .av-select {
    font-family: var(--av-font);
    font-size: 14px;
    padding: 10px 14px;
    border: 1px solid var(--av-border);
    border-radius: var(--av-radius-sm);
    background: var(--av-surface);
    color: var(--av-text);
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}
.av-input:focus, .av-select:focus {
    outline: none;
    border-color: var(--av-gold);
    box-shadow: 0 0 0 3px rgba(212,168,67,0.15);
}
.av-input::placeholder { color: var(--av-text-muted); }

/* ─── Toast ──────────────────────────────────────────────────────── */

.av-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 20px;
    border-radius: var(--av-radius-sm);
    color: #fff;
    font-family: var(--av-font);
    font-size: 14px;
    font-weight: 500;
    z-index: 100000;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    animation: av-slide-in 0.3s ease;
    max-width: 360px;
}
.av-toast-success { background: var(--av-toast-success-bg); color: #fff; }
.av-toast-error { background: var(--av-toast-error-bg); color: #fff; }
.av-toast-info { background: var(--av-toast-info-bg); border: 1px solid var(--av-gold); color: var(--av-gold); }

@keyframes av-slide-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ─── Badge ──────────────────────────────────────────────────────── */

.av-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.av-badge-gold { background: var(--av-gold); color: #0a0a0a; }
.av-badge-warning { background: rgba(245,158,11,0.15); color: #f59e0b; }
.av-badge-danger { background: rgba(239,68,68,0.15); color: #ef4444; }
.av-badge-success { background: rgba(74,222,128,0.15); color: #4ade80; }

/* ===================================================================
   SHOWS PAGE — Main Entry Point
   =================================================================== */

.av-shows-page {
    padding-top: 0;
    padding-bottom: 0;
}

.av-show-detail-page {
    padding-top: 0;
    padding-bottom: 0;
}

.av-seatmap-page,
.av-checkout-page,
.av-confirmation-page,
.av-my-tickets-page,
.av-mini-app-page,
.av-account-page,
.av-user-dashboard-page {
    padding-bottom: 60px;
}

/* Hero Section */
.av-shows-hero {
    position: relative;
    width: 100%;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0;
    margin-right: 0;
    min-height: 420px;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-end;
}

.av-shows-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--av-surface);
}

.av-shows-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.4) 50%, rgba(10,10,10,0.2) 100%);
}

.av-shows-hero-content {
    position: relative;
    z-index: 1;
    padding: 40px;
    width: 100%;
}

.av-shows-hero-type {
    display: inline-block;
    padding: 4px 12px;
    background: var(--av-gold);
    color: var(--av-on-gold-text);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.av-shows-hero-title {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.2;
}

.av-shows-hero-meta {
    color: var(--av-text-muted);
    font-size: 15px;
    margin-bottom: 20px;
}

.av-shows-hero .av-btn {
    font-size: 16px;
    padding: 14px 32px;
}

/* Featured Carousel */
.av-shows-featured {
    margin-bottom: 40px;
}
.av-featured-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 2;
    border-radius: var(--av-radius);
    overflow: hidden;
    background: var(--av-carousel-bg);
}
.av-featured-slides {
    position: relative;
    width: 100%;
    height: 100%;
}
.av-featured-slide,
.av-featured-slide:hover,
.av-featured-slide:focus,
.av-featured-slide:visited,
a.av-featured-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    text-decoration: none !important;
    color: #fff !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}
.av-featured-slide *,
.av-featured-slide h2,
.av-featured-slide span,
.av-featured-slide p {
    text-decoration: none !important;
    border-bottom: none !important;
}
.av-featured-slide.active {
    opacity: 1;
    pointer-events: auto;
}
.av-featured-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 6s ease-out;
}
.av-featured-slide.active .av-featured-slide-bg {
    transform: scale(1.05);
}
.av-featured-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
}
.av-featured-slide-content {
    position: relative;
    z-index: 2;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    max-width: 60%;
}
.av-featured-slide-type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--av-gold);
}
.av-featured-slide-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    font-family: var(--av-font);
    line-height: 1.25;
}
.av-featured-slide-meta {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin: 0;
}
.av-featured-slide-content .av-btn {
    margin-top: 4px;
    text-decoration: none !important;
    border-bottom: none !important;
}
.av-featured-arrow {
    display: none;
}
.av-featured-dots {
    position: absolute;
    bottom: 16px;
    right: 40px;
    display: flex;
    gap: 8px;
    z-index: 3;
}
.av-featured-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
}
.av-featured-dot.active {
    background: var(--av-gold);
    border-color: var(--av-gold);
}
.av-featured-dot:hover {
    border-color: var(--av-gold);
}

/* Filter bar */
.av-shows-filters-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 36px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.av-filter-pill {
    padding: 9px 22px;
    border: 1px solid var(--av-stage-border);
    border-radius: 100px;
    background: transparent;
    color: var(--av-text-muted);
    font-family: var(--av-font);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s;
    letter-spacing: 0.3px;
}
.av-filter-pill:hover {
    border-color: var(--av-gold);
    color: var(--av-gold);
    background: rgba(212,168,67,0.06);
}
.av-filter-pill.active {
    background: linear-gradient(135deg, var(--av-gold), #c49a35);
    border-color: var(--av-gold);
    color: var(--av-on-gold-text);
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(212,168,67,0.3);
}

/* Shows Grid */
.av-shows-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Show Card */
.av-show-card {
    background: var(--av-card-bg);
    border: 1px solid var(--av-card-border);
    border-radius: var(--av-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    position: relative;
}
.av-show-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--av-radius);
    background: linear-gradient(135deg, rgba(212,168,67,0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}
.av-show-card:hover::before {
    opacity: 1;
}
.av-show-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(212,168,67,0.15), 0 0 0 1px rgba(212,168,67,0.3);
    border-color: rgba(212,168,67,0.4);
}

.av-show-card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--av-carousel-bg);
}

.av-show-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.av-show-card:hover .av-show-card-image {
    transform: scale(1.06);
}

.av-show-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    color: rgba(212,168,67,0.25);
    background: var(--av-img-placeholder);
}

.av-show-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.av-show-card-body {
    padding: 18px;
    border-top: 1px solid rgba(212,168,67,0.1);
}

.av-show-card-type {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--av-gold);
    margin-bottom: 8px;
    opacity: 0.85;
}

.av-show-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.3;
    letter-spacing: -0.2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.av-show-card-dates {
    font-size: 13px;
    color: var(--av-text-muted);
    margin-bottom: 14px;
}

.av-show-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid rgba(212,168,67,0.08);
}

.av-show-card-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--av-gold);
}
.av-show-card-price small {
    font-size: 11px;
    font-weight: 400;
    color: var(--av-text-muted);
}

/* ─── Pagination ─────────────────────────────────────────────────── */

.av-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}
.av-pagination button {
    padding: 8px 14px;
    border: 1px solid var(--av-border);
    background: var(--av-surface);
    border-radius: var(--av-radius-sm);
    font-family: var(--av-font);
    font-size: 14px;
    cursor: pointer;
    color: var(--av-text-muted);
    transition: all 0.2s;
}
.av-pagination button:hover { border-color: var(--av-gold); color: var(--av-gold); }
.av-pagination button.active {
    background: var(--av-gold);
    color: var(--av-on-gold-text);
    border-color: var(--av-gold);
}
.av-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===================================================================
   SHOW DETAIL PAGE — Integrated Booking Hub
   =================================================================== */


/* Hero Banner */
.av-detail-hero {
    position: relative;
    width: 100%;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0;
    margin-right: 0;
    min-height: 360px;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 32px;
    display: flex;
    align-items: flex-end;
}

.av-detail-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--av-surface);
}

.av-detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.3) 60%, rgba(10,10,10,0.1) 100%);
}

.av-detail-hero-content {
    position: relative;
    z-index: 1;
    padding: 40px;
    width: 100%;
}

.av-detail-hero-content h1 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.2;
}

.av-detail-hero-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--av-text-muted);
    font-size: 14px;
}

.av-detail-hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.av-detail-hero-meta strong {
    color: var(--av-gold);
}

/* Description */
.av-show-description {
    margin: 0 0 32px;
    color: var(--av-text);
    line-height: 1.7;
    font-size: 15px;
    padding: 24px;
    background: var(--av-surface);
    border: 1px solid var(--av-border);
    border-radius: var(--av-radius);
}

/* Performances section */
.av-show-performances {
    margin-top: 0;
}

.av-show-performances h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--av-text);
    margin: 0 0 20px;
}

/* Date pills */
.av-date-pills {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.av-date-pill {
    padding: 10px 18px;
    border: 1px solid var(--av-border);
    border-radius: 100px;
    background: transparent;
    color: var(--av-text-muted);
    font-family: var(--av-font);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    text-align: center;
    min-width: fit-content;
}
.av-date-pill:hover {
    border-color: var(--av-gold);
    color: var(--av-gold);
}
.av-date-pill.active {
    background: var(--av-gold);
    border-color: var(--av-gold);
    color: var(--av-on-gold-text);
    font-weight: 600;
}

/* Showtime buttons */
.av-showtimes-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.av-showtime-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 24px;
    border: 1px solid var(--av-border);
    border-radius: var(--av-radius);
    background: var(--av-surface);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--av-font);
    min-width: 120px;
}
.av-showtime-btn:hover {
    border-color: var(--av-gold);
    background: var(--av-gold-dim);
}

.av-showtime-time {
    font-size: 16px;
    font-weight: 600;
    color: var(--av-text);
}

.av-showtime-price {
    font-size: 12px;
    color: var(--av-gold);
}

.av-showtime-seats {
    font-size: 11px;
    color: var(--av-text-muted);
}

.av-showtime-btn.sold-out {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--av-border);
}
.av-showtime-btn.sold-out:hover {
    background: var(--av-surface);
    border-color: var(--av-border);
}

/* Legacy performance card (still used as fallback) */
.av-performance-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.av-performance-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--av-surface);
    border: 1px solid var(--av-border);
    border-radius: var(--av-radius);
    transition: border-color 0.2s, box-shadow 0.2s;
    color: var(--av-text);
}
.av-performance-card:hover {
    border-color: var(--av-gold);
    box-shadow: 0 0 20px rgba(212,168,67,0.08);
}

.av-performance-date {
    font-weight: 600;
    color: #fff;
    font-size: 15px;
}

.av-performance-time {
    color: var(--av-text-muted);
    font-size: 14px;
}

.av-performance-status {
    font-size: 13px;
    color: var(--av-text-muted);
}

/* ===================================================================
   SEAT SELECTION MODAL
   =================================================================== */

.av-seat-modal-backdrop {
    position: fixed;
    inset: 0;
    background: var(--av-modal-backdrop);
    z-index: 90000;
    animation: av-fade-in 0.2s ease;
}

@keyframes av-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.av-seat-modal {
    position: fixed;
    inset: 20px;
    z-index: 90001;
    background: var(--av-bg);
    border: 1px solid var(--av-border);
    border-radius: var(--av-radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: av-modal-in 0.3s ease;
}

@keyframes av-modal-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.av-seat-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--av-border);
    background: var(--av-surface);
    flex-shrink: 0;
}

.av-seat-modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.av-seat-modal-header-info {
    color: var(--av-text-muted);
    font-size: 13px;
}

.av-seat-modal-timer {
    color: var(--av-gold);
    font-weight: 600;
    font-size: 14px;
}

.av-seat-modal-close {
    background: none;
    border: none;
    color: var(--av-text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s;
}
.av-seat-modal-close:hover { color: #fff; }

.av-seat-modal-body {
    flex: 1;
    overflow: auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 0;
}

.av-seat-modal-map {
    padding: 24px;
    overflow: auto;
}

.av-seat-modal-sidebar {
    padding: 20px;
    border-left: 1px solid var(--av-border);
    background: var(--av-surface);
    display: flex;
    flex-direction: column;
}

.av-seat-modal-sidebar h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px;
}

/* ─── Seat Map (shared between modal and page) ───────────────────── */

/* Spacing for pages without hero — add top padding via first child */
.av-seatmap-header,
.av-checkout-title,
.av-confirmation-page .av-confirmation-progress,
.av-my-tickets-page h1,
.av-user-dashboard-page h1,
.av-account-page .av-account-profile,
.av-account-page .av-auth-container,
.av-mini-app-page > div {
    padding-top: 40px;
}

.av-seatmap-page {
}

.av-seatmap-header {
    text-align: center;
    margin-bottom: 24px;
}

.av-seatmap-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

.av-seatmap-performance-info {
    color: var(--av-text-muted);
    font-size: 14px;
    margin: 0;
}

.av-seatmap-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
}

.av-seatmap-container {
    background: var(--av-surface);
    border: 1px solid var(--av-border);
    border-radius: var(--av-radius);
    padding: 24px;
    overflow-x: auto;
}

.av-stage-label {
    text-align: center;
    padding: 12px;
    background: var(--av-stage-bg);
    border: 1px solid var(--av-stage-border);
    border-radius: var(--av-radius-sm);
    font-weight: 600;
    font-size: 14px;
    color: var(--av-gold);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.av-seatmap-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-height: 200px;
}

.av-seat-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.av-seat-row-label {
    width: 24px;
    font-size: 12px;
    font-weight: 600;
    color: var(--av-text-muted);
    text-align: center;
}

.av-seat {
    width: 28px;
    height: 28px;
    border-radius: 5px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    position: relative;
}

.av-seat-available {
    background: var(--av-surface2);
    border-color: var(--av-border);
    color: var(--av-text-muted);
}
.av-seat-available:hover {
    background: var(--av-gold);
    color: var(--av-on-gold-text);
    border-color: var(--av-gold);
    transform: scale(1.15);
}

.av-seat-selected {
    background: var(--av-gold);
    color: var(--av-on-gold-text);
    border-color: var(--av-gold-hover);
    transform: scale(1.1);
}

.av-seat-held, .av-seat-sold {
    background: var(--av-seat-held-bg);
    border-color: var(--av-seat-held-border);
    color: var(--av-seat-held-color);
    cursor: not-allowed;
}

.av-seat-vip { border-bottom: 2px solid var(--av-gold); }
.av-seat-premium { border-bottom: 2px solid #a78bfa; }

.av-seatmap-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.av-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--av-text-muted);
}

.av-seat-dot {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: inline-block;
}

.av-seat-dot.av-seat-available { background: var(--av-surface2); border: 1px solid var(--av-border); }
.av-seat-dot.av-seat-selected { background: var(--av-gold); }
.av-seat-dot.av-seat-held { background: #222; }
.av-seat-dot.av-seat-sold { background: var(--av-seat-sold-bg); border: 1px solid var(--av-seat-sold-border); }

/* Sidebar */
.av-seatmap-sidebar {
    background: var(--av-surface);
    border: 1px solid var(--av-border);
    border-radius: var(--av-radius);
    padding: 20px;
    position: sticky;
    top: 100px;
    align-self: start;
}

.av-seatmap-sidebar h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px;
}

.av-selected-seats-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.av-no-seats {
    color: var(--av-text-muted);
    font-size: 13px;
    text-align: center;
    padding: 16px 0;
    margin: 0;
}

.av-selected-seat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--av-border);
    font-size: 13px;
}

.av-selected-seat-item:last-child { border-bottom: none; }

.av-selected-seat-label { color: var(--av-text); font-weight: 500; }
.av-selected-seat-price { color: var(--av-gold); font-weight: 600; }
.av-selected-seat-remove {
    background: none;
    border: none;
    color: var(--av-danger);
    cursor: pointer;
    font-size: 16px;
    padding: 0 4px;
}

.av-seatmap-summary {
    padding: 12px 0;
    border-top: 1px solid var(--av-border);
    margin-bottom: 12px;
}

.av-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--av-text);
    padding: 4px 0;
}

.av-seatmap-sidebar .av-btn,
.av-seat-modal-sidebar .av-btn {
    width: 100%;
    margin-top: 4px;
}

.av-hold-timer {
    text-align: center;
    font-size: 13px;
    color: var(--av-gold);
    font-weight: 500;
    margin-top: 8px;
}

/* ===================================================================
   PROGRESS BAR (Checkout + Confirmation)
   =================================================================== */

.av-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    padding: 0 20px;
}

.av-progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--av-text-muted);
}

.av-progress-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--av-border);
    font-size: 12px;
    font-weight: 700;
    color: var(--av-text-muted);
    background: transparent;
    flex-shrink: 0;
}

.av-progress-step.active .av-progress-num {
    border-color: var(--av-gold);
    background: var(--av-gold);
    color: var(--av-on-gold-text);
}
.av-progress-step.active {
    color: var(--av-gold);
}

.av-progress-step.completed .av-progress-num {
    border-color: var(--av-success);
    background: var(--av-success);
    color: var(--av-on-gold-text);
}
.av-progress-step.completed {
    color: var(--av-success);
}

.av-progress-line {
    width: 60px;
    height: 2px;
    background: var(--av-border);
    margin: 0 12px;
    flex-shrink: 0;
}

.av-progress-line.completed {
    background: var(--av-success);
}

/* ===================================================================
   CHECKOUT PAGE
   =================================================================== */

.av-checkout-page {
}

.av-checkout-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.av-checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

/* Checkout steps (now using progress bar above, keep for backward compat) */
.av-checkout-steps {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.av-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--av-surface);
    border-radius: var(--av-radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--av-text-muted);
    transition: all 0.2s;
}
.av-step.active {
    background: var(--av-gold-dim);
    color: var(--av-gold);
}
.av-step.completed {
    background: rgba(74,222,128,0.1);
    color: var(--av-success);
}

.av-step-num {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--av-border);
    color: var(--av-text-muted);
    font-size: 12px;
    font-weight: 600;
}
.av-step.active .av-step-num {
    background: var(--av-gold);
    color: var(--av-on-gold-text);
}

.av-step-content { display: none; }
.av-step-content.active { display: block; }

.av-step-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 24px 0 12px;
}
.av-step-content h3:first-child { margin-top: 0; }

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

.av-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.av-form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--av-text);
}

.av-delivery-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.av-radio-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--av-border);
    border-radius: var(--av-radius-sm);
    cursor: pointer;
    font-size: 13px;
    color: var(--av-text);
    transition: border-color 0.2s;
}
.av-radio-card:has(input:checked) {
    border-color: var(--av-gold);
    background: var(--av-gold-dim);
}

.av-promo-row {
    display: flex;
    gap: 8px;
}
.av-promo-row .av-input { flex: 1; }

.av-promo-message {
    font-size: 13px;
    margin-top: 6px;
}
.av-promo-message.success { color: var(--av-success); }
.av-promo-message.error { color: var(--av-danger); }

.av-payment-methods {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.av-payment-method-btn {
    padding: 10px 20px;
    border: 1px solid var(--av-border);
    border-radius: var(--av-radius-sm);
    background: var(--av-surface);
    color: var(--av-text-muted);
    font-family: var(--av-font);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.av-payment-method-btn.active {
    border-color: var(--av-gold);
    background: var(--av-gold-dim);
    color: var(--av-gold);
    font-weight: 500;
}

.av-payment-form {
    padding: 20px;
    background: var(--av-surface);
    border: 1px solid var(--av-border);
    border-radius: var(--av-radius-sm);
    margin-bottom: 16px;
    min-height: 80px;
}

.av-secure-note {
    font-size: 12px;
    color: var(--av-text-muted);
    text-align: center;
    margin: 8px 0 16px;
}

.av-checkout-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

/* Order Summary Sidebar */
.av-checkout-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.av-order-summary {
    background: var(--av-surface);
    border: 1px solid var(--av-border);
    border-radius: var(--av-radius);
    padding: 20px;
}

.av-order-summary h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px;
}

.av-summary-items {
    margin-bottom: 16px;
}

.av-summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid var(--av-border);
    color: var(--av-text);
}
.av-summary-item:last-child { border-bottom: none; }

.av-summary-totals {
    border-top: 1px solid var(--av-border);
    padding-top: 12px;
}

.av-summary-totals .av-summary-row {
    font-size: 14px;
    padding: 4px 0;
}

.av-summary-total {
    font-weight: 700;
    font-size: 16px !important;
    padding-top: 8px !important;
    border-top: 1px solid var(--av-border);
    margin-top: 4px;
    color: #fff;
}

/* ===================================================================
   CONFIRMATION PAGE
   =================================================================== */

.av-confirmation-page {
    text-align: center;
}

.av-confirmation-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--av-surface);
    border: 1px solid var(--av-border);
    border-radius: var(--av-radius);
    padding: 40px;
}

.av-confirmation-icon {
    width: 64px;
    height: 64px;
    background: rgba(212,168,67,0.15);
    color: var(--av-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.av-confirmation-card h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}

.av-booking-ref {
    font-size: 16px;
    color: var(--av-text-muted);
    margin-bottom: 24px;
}
.av-booking-ref strong {
    color: var(--av-gold);
    font-size: 18px;
}

.av-confirmation-details {
    text-align: left;
    background: var(--av-surface2);
    border-radius: var(--av-radius-sm);
    padding: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--av-text);
}

.av-confirmation-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
}

.av-whats-next {
    text-align: left;
    border-top: 1px solid var(--av-border);
    padding-top: 24px;
}

.av-whats-next h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px;
}

.av-whats-next ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.av-whats-next li {
    font-size: 14px;
    color: var(--av-text-muted);
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
}
.av-whats-next li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--av-gold);
    font-weight: 700;
}

/* ===================================================================
   MY TICKETS PAGE
   =================================================================== */

.av-my-tickets-page {
}

.av-my-tickets-page h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 24px;
}

.av-login-notice {
    text-align: center;
    padding: 60px 20px;
    background: var(--av-surface);
    border: 1px solid var(--av-border);
    border-radius: var(--av-radius);
}

.av-login-notice p {
    color: var(--av-text-muted);
    font-size: 16px;
    margin-bottom: 16px;
}

.av-tickets-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--av-border);
    padding-bottom: 0;
}

.av-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-family: var(--av-font);
    font-size: 14px;
    font-weight: 500;
    color: var(--av-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -1px;
}
.av-tab:hover { color: var(--av-text); }
.av-tab.active {
    color: var(--av-gold);
    border-bottom-color: var(--av-gold);
}

.av-tickets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.av-ticket-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--av-surface);
    border: 1px solid var(--av-border);
    border-radius: var(--av-radius);
}

.av-ticket-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--av-text);
    margin: 0 0 4px;
}

.av-ticket-meta {
    font-size: 13px;
    color: var(--av-text-muted);
}

.av-ticket-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}
.av-ticket-status.confirmed { background: rgba(74,222,128,0.15); color: #4ade80; }
.av-ticket-status.pending { background: rgba(245,158,11,0.15); color: #f59e0b; }
.av-ticket-status.cancelled { background: rgba(239,68,68,0.15); color: #ef4444; }

/* ===================================================================
   USER DASHBOARD
   =================================================================== */

.av-user-dashboard-page {
}

.av-user-dashboard-page h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 24px;
}

.av-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.av-dashboard-card {
    background: var(--av-surface);
    border: 1px solid var(--av-border);
    border-radius: var(--av-radius);
    padding: 20px;
}

.av-dashboard-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px;
}

/* ===================================================================
   BOOKING PAGE (kept for backward compat — redirects to shows)
   =================================================================== */

.av-booking-page {
}

/* ===================================================================
   MINI APP
   =================================================================== */

.av-mini-app-page {
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */

@media (max-width: 1024px) {
    .av-shows-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .av-featured-slide-content {
        max-width: 70%;
    }
}

@media (max-width: 768px) {
    .av-shows-page > *,
    .av-show-detail-page > *,
    .av-seatmap-page > *,
    .av-booking-page > *,
    .av-checkout-page > *,
    .av-confirmation-page > *,
    .av-my-tickets-page > *,
    .av-mini-app-page > *,
    .av-account-page > *,
    .av-user-dashboard-page > * {
        padding-left: 16px;
        padding-right: 16px;
    }
    /* Header/footer padding on mobile */
    body.artsvenue-fullwidth .main-header-bar .ast-container,
    body.artsvenue-fullwidth .ast-primary-header-bar .ast-container,
    body.artsvenue-fullwidth .site-footer .ast-container,
    body.artsvenue-fullwidth .ast-small-footer .ast-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .av-shows-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .av-show-card-image-wrap {
        aspect-ratio: 3 / 4;
    }
    .av-show-card-body {
        padding: 12px;
    }
    .av-show-card-title {
        font-size: 14px;
    }
    .av-show-card-dates {
        font-size: 11px;
        margin-bottom: 10px;
    }
    .av-show-card-footer {
        padding-top: 10px;
    }
    .av-show-card-price {
        font-size: 13px;
    }
    .av-show-card .av-btn {
        font-size: 12px;
        padding: 6px 14px;
    }
    .av-featured-carousel {
        aspect-ratio: 3 / 2;
    }
    .av-featured-slide-content {
        padding: 20px;
        gap: 4px;
        max-width: 80%;
    }
    .av-featured-slide-title {
        font-size: 18px;
        line-height: 1.3;
    }
    .av-featured-slide-type {
        font-size: 9px;
        letter-spacing: 1px;
    }
    .av-featured-slide-meta {
        font-size: 12px;
    }
    .av-featured-slide-content .av-btn {
        font-size: 12px;
        padding: 8px 18px;
    }
    .av-featured-slide-content .av-badge {
        font-size: 9px;
        padding: 3px 8px;
    }
    .av-featured-dots {
        bottom: 12px;
        right: 16px;
        gap: 6px;
    }
    .av-featured-dot {
        width: 8px;
        height: 8px;
    }
    .av-filter-pill {
        padding: 7px 16px;
        font-size: 12px;
    }
    .av-shows-hero {
        min-height: 300px;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .av-shows-hero-title {
        font-size: 28px;
    }
    .av-shows-hero-content {
        padding: 24px;
    }
    .av-detail-hero {
        min-height: 260px;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .av-detail-hero-content h1 {
        font-size: 26px;
    }
    .av-seatmap-layout { grid-template-columns: 1fr; }
    .av-checkout-layout { grid-template-columns: 1fr; }
    .av-form-grid { grid-template-columns: 1fr; }
    .av-dashboard-grid { grid-template-columns: 1fr; }
    .av-delivery-options { flex-direction: column; }
    .av-confirmation-actions { flex-direction: column; }
    .av-seat { width: 24px; height: 24px; font-size: 9px; }

    /* Seat modal full screen on mobile */
    .av-seat-modal {
        inset: 0;
        border-radius: 0;
    }
    .av-seat-modal-body {
        grid-template-columns: 1fr;
    }
    .av-seat-modal-sidebar {
        border-left: none;
        border-top: 1px solid var(--av-border);
    }
}

@media (max-width: 480px) {
    .av-shows-hero-title { font-size: 24px; }
    .av-detail-hero-content h1 { font-size: 22px; }
    .av-checkout-title { font-size: 22px; }
    .av-progress-line { width: 30px; margin: 0 6px; }
    .av-featured-carousel {
        aspect-ratio: 4 / 3;
    }
    .av-featured-slide-content {
        padding: 16px;
        max-width: 90%;
    }
    .av-featured-slide-title {
        font-size: 16px;
    }
    .av-featured-slide-meta {
        font-size: 11px;
    }
    .av-shows-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .av-show-card-body {
        padding: 10px;
    }
    .av-show-card-title {
        font-size: 13px;
    }
    .av-show-card-type {
        font-size: 9px;
        margin-bottom: 4px;
    }
    .av-show-card-dates {
        font-size: 10px;
        margin-bottom: 8px;
    }
    .av-show-card-price {
        font-size: 12px;
    }
    .av-show-card .av-btn {
        font-size: 11px;
        padding: 5px 10px;
    }
    .av-show-card-placeholder {
        font-size: 48px;
    }
}

/* ===================================================================
   Account Page & Auth Forms
   =================================================================== */

.av-account-page {
}

/* ─── Logged-in Profile ─────────────────────────────────────────── */

.av-account-profile {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
}

.av-account-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--av-gold), #c49a35);
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.av-account-profile h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--av-text);
    margin: 0 0 4px;
}

.av-account-email {
    color: var(--av-text-muted);
    font-size: 14px;
    margin: 0 0 24px;
}

.av-account-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 280px;
    margin: 0 auto;
}

/* ─── Auth Container (Login / Register) ─────────────────────────── */

.av-auth-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--av-surface);
    border: 1px solid var(--av-border);
    border-radius: var(--av-radius);
    padding: 32px;
    box-shadow: var(--av-shadow-lg);
}

.av-auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--av-border);
}

.av-auth-tab {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-family: var(--av-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--av-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -1px;
}

.av-auth-tab:hover {
    color: var(--av-text);
}

.av-auth-tab.active {
    color: var(--av-gold);
    border-bottom-color: var(--av-gold);
}

.av-auth-panel {
    display: none;
}

.av-auth-panel.active {
    display: block;
}

.av-auth-panel h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--av-text);
    margin: 0 0 6px;
}

.av-auth-subtitle {
    color: var(--av-text-muted);
    font-size: 14px;
    margin: 0 0 20px;
    line-height: 1.5;
}

.av-auth-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: var(--av-danger);
    font-size: 13px;
    padding: 10px 14px;
    border-radius: var(--av-radius-sm);
    margin-bottom: 16px;
}

.av-btn-full {
    width: 100%;
    margin-top: 8px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
}

/* ─── Checkout Login Banner ──────────────────────────────────────── */

.av-ck-login-banner {
    background: var(--av-gold-dim);
    border: 1px solid rgba(212,168,67,0.25);
    border-radius: var(--av-radius);
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--av-text);
}

.av-ck-login-banner p { margin: 0; }

.av-link-btn {
    background: none;
    border: none;
    color: var(--av-gold);
    font-family: var(--av-font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.av-link-btn:hover { color: var(--av-gold-hover); }

.av-ck-login-banner .av-form-grid {
    margin-top: 12px;
}

.av-field-hint {
    font-size: 12px;
    color: var(--av-text-muted);
    margin-top: 4px;
    display: block;
}

/* ─── Checkout Welcome (logged-in state) ─────────────────────────── */

.av-ck-welcome {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(212,168,67,0.08);
    border: 1px solid var(--av-stage-border);
    border-radius: var(--av-radius);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.av-ck-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--av-gold);
    color: #000;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.av-ck-welcome-sub {
    display: block;
    font-size: 13px;
    color: var(--av-text-muted);
    margin-top: 2px;
}

@media (max-width: 600px) {
    .av-auth-container { padding: 20px; }
}

/* ===================================================================
   LIGHT THEME — body & WP wrappers
   =================================================================== */

body[data-av-theme="light"].artsvenue-fullwidth,
body[data-av-theme="light"]:has([class*="av-"][class*="-page"]) {
    background: var(--av-bg) !important;
}

/* Light: header */
body[data-av-theme="light"] .main-header-bar,
body[data-av-theme="light"] .ast-primary-header-bar,
body[data-av-theme="light"] .ast-above-header-bar,
body[data-av-theme="light"] .ast-below-header-bar,
body[data-av-theme="light"] .site-header,
body[data-av-theme="light"] #masthead,
body[data-av-theme="light"] header,
body[data-av-theme="light"] .ast-main-header-wrap {
    background: #ffffff !important;
    border-bottom: 1px solid #e0e0e0 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
}

body[data-av-theme="light"] .site-title,
body[data-av-theme="light"] .site-title a,
body[data-av-theme="light"] .ast-site-identity .site-title a,
body[data-av-theme="light"] .site-description {
    color: #1a1a2e !important;
}

body[data-av-theme="light"] .main-header-menu a,
body[data-av-theme="light"] .ast-builder-menu-1 a,
body[data-av-theme="light"] .ast-nav-menu a,
body[data-av-theme="light"] .menu-item a,
body[data-av-theme="light"] header a {
    color: #1a1a2e !important;
}

body[data-av-theme="light"] .main-header-menu a:hover,
body[data-av-theme="light"] .ast-nav-menu a:hover,
body[data-av-theme="light"] .menu-item a:hover {
    color: var(--av-gold) !important;
}

body[data-av-theme="light"] .current-menu-item > a,
body[data-av-theme="light"] .current_page_item > a {
    color: var(--av-gold) !important;
}

body[data-av-theme="light"] .sub-menu {
    background: #ffffff !important;
    border-color: #e0e0e0 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

body[data-av-theme="light"] .sub-menu a { color: #1a1a2e !important; }
body[data-av-theme="light"] .sub-menu a:hover { background: #f4f5f7 !important; color: var(--av-gold) !important; }

body[data-av-theme="light"] .ast-mobile-menu-trigger,
body[data-av-theme="light"] .menu-toggle { color: #1a1a2e !important; }

body[data-av-theme="light"] .ast-mobile-popup-drawer .ast-mobile-popup-inner,
body[data-av-theme="light"] .ast-mobile-header-content {
    background: #ffffff !important;
}

body[data-av-theme="light"] .ast-mobile-popup-drawer a {
    color: #1a1a2e !important;
    border-color: #e0e0e0 !important;
}

/* Light: footer */
body[data-av-theme="light"] .site-footer,
body[data-av-theme="light"] .ast-footer,
body[data-av-theme="light"] #colophon,
body[data-av-theme="light"] footer,
body[data-av-theme="light"] .site-below-footer-wrap,
body[data-av-theme="light"] .site-above-footer-wrap,
body[data-av-theme="light"] .ast-small-footer,
body[data-av-theme="light"] .site-footer-section {
    background: #ffffff !important;
    color: #6b7280 !important;
    border-top: 1px solid #e0e0e0 !important;
}

body[data-av-theme="light"] footer a,
body[data-av-theme="light"] .site-footer a,
body[data-av-theme="light"] .ast-small-footer a { color: #6b7280 !important; }

body[data-av-theme="light"] footer a:hover,
body[data-av-theme="light"] .site-footer a:hover { color: var(--av-gold) !important; }

body[data-av-theme="light"] .ast-footer-copyright,
body[data-av-theme="light"] .site-info { color: #6b7280 !important; }

/* Light: pages */
body[data-av-theme="light"] .av-shows-page,
body[data-av-theme="light"] .av-show-detail-page,
body[data-av-theme="light"] .av-seatmap-page,
body[data-av-theme="light"] .av-booking-page,
body[data-av-theme="light"] .av-checkout-page,
body[data-av-theme="light"] .av-confirmation-page,
body[data-av-theme="light"] .av-my-tickets-page,
body[data-av-theme="light"] .av-mini-app-page,
body[data-av-theme="light"] .av-account-page,
body[data-av-theme="light"] .av-user-dashboard-page {
    background: var(--av-bg);
    color: var(--av-text);
}

/* Light: show card */
body[data-av-theme="light"] .av-show-card {
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
body[data-av-theme="light"] .av-show-card:hover {
    box-shadow: 0 8px 32px rgba(184,137,42,0.18), 0 0 0 1px rgba(184,137,42,0.4);
}

/* Light: hero overlays */
body[data-av-theme="light"] .av-shows-hero-overlay {
    background: linear-gradient(to top, rgba(244,245,247,0.92) 0%, rgba(244,245,247,0.35) 50%, rgba(244,245,247,0.10) 100%);
}

body[data-av-theme="light"] .av-shows-hero-title,
body[data-av-theme="light"] .av-detail-hero-content h1 {
    color: #1a1a2e;
    text-shadow: 0 1px 4px rgba(255,255,255,0.6);
}

/* Light: headings in cards/sections */
body[data-av-theme="light"] .av-show-card-title,
body[data-av-theme="light"] .av-seatmap-header h2,
body[data-av-theme="light"] .av-checkout-title,
body[data-av-theme="light"] .av-order-summary h3,
body[data-av-theme="light"] .av-confirmation-card h1,
body[data-av-theme="light"] .av-my-tickets-page h1,
body[data-av-theme="light"] .av-user-dashboard-page h1,
body[data-av-theme="light"] .av-dashboard-card h3,
body[data-av-theme="light"] .av-seatmap-sidebar h3,
body[data-av-theme="light"] .av-seat-modal-header h2,
body[data-av-theme="light"] .av-seat-modal-sidebar h3,
body[data-av-theme="light"] .av-step-content h3,
body[data-av-theme="light"] .av-whats-next h3,
body[data-av-theme="light"] .av-auth-panel h2,
body[data-av-theme="light"] .av-account-profile h1 {
    color: #1a1a2e;
}

/* Light: filter pills active */
body[data-av-theme="light"] .av-filter-pill.active,
body[data-av-theme="light"] .av-date-pill.active {
    color: #fff;
}

/* Light: progress bar active */
body[data-av-theme="light"] .av-progress-step.active .av-progress-num {
    color: #fff;
}

/* Light: seat hover text */
body[data-av-theme="light"] .av-seat-available:hover,
body[data-av-theme="light"] .av-seat-selected {
    color: #fff;
}

/* Light: performance date */
body[data-av-theme="light"] .av-performance-date {
    color: #1a1a2e;
}

/* Light: toast colors */
body[data-av-theme="light"] .av-toast-success { color: #166534; }
body[data-av-theme="light"] .av-toast-error { color: #991b1b; }

/* Light: modal close hover */
body[data-av-theme="light"] .av-seat-modal-close:hover { color: #1a1a2e; }

/* Light: summary total */
body[data-av-theme="light"] .av-summary-total { color: #1a1a2e; }

/* Light: confirmation icon */
body[data-av-theme="light"] .av-confirmation-icon {
    background: rgba(184,137,42,0.12);
}

/* ===================================================================
   PAGE TOP MARGIN — all pages except shows (which hugs the header)
   =================================================================== */

.av-show-detail-page,
.av-seatmap-page,
.av-booking-page,
.av-checkout-page,
.av-confirmation-page,
.av-my-tickets-page,
.av-mini-app-page,
.av-account-page,
.av-user-dashboard-page {
    padding-top: 48px;
}

/* Shows page hugs header — no top padding */
.av-shows-page {
    padding-top: 0;
}

/* ===================================================================
   DARK / LIGHT TOGGLE BUTTON
   =================================================================== */

#av-theme-toggle {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;
    background: var(--av-surface);
    border: 1px solid var(--av-border);
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 10px 10px 10px 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    box-shadow: -2px 0 12px rgba(0,0,0,0.2);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    font-family: var(--av-font);
}

#av-theme-toggle:hover {
    transform: translateY(-50%) translateX(-3px);
    background: var(--av-surface2);
}

#av-theme-toggle .av-toggle-track {
    width: 36px;
    height: 20px;
    border-radius: 10px;
    background: var(--av-border);
    position: relative;
    transition: background 0.25s;
}

#av-theme-toggle .av-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--av-text-muted);
    transition: transform 0.25s, background 0.25s;
}

body[data-av-theme="light"] #av-theme-toggle .av-toggle-track {
    background: var(--av-gold);
}

body[data-av-theme="light"] #av-theme-toggle .av-toggle-thumb {
    transform: translateX(16px);
    background: #fff;
}

body[data-av-theme="dark"] #av-theme-toggle .av-toggle-thumb,
#av-theme-toggle .av-toggle-thumb {
    background: var(--av-gold);
}

#av-theme-toggle .av-toggle-icon {
    font-size: 16px;
    line-height: 1;
    user-select: none;
}

#av-theme-toggle .av-toggle-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--av-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

/* ===================================================================
   MINI APP PAGE — WeChat Integration Hub
   =================================================================== */

.av-mini-app-page {
    padding-bottom: 60px;
}

.av-miniapp-hero {
    background: var(--av-surface);
    border-bottom: 1px solid var(--av-border);
    padding: 40px 40px 32px;
    margin-bottom: 0;
    text-align: center;
}

.av-miniapp-hero-icon {
    width: 72px;
    height: 72px;
    background: #07c160;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 40px;
    box-shadow: 0 4px 20px rgba(7,193,96,0.35);
}

.av-miniapp-hero h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--av-text);
    margin: 0 0 8px;
}

.av-miniapp-hero p {
    color: var(--av-text-muted);
    font-size: 15px;
    margin: 0;
    max-width: 500px;
    margin: 0 auto;
}

.av-miniapp-status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 500;
}

.av-miniapp-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6b7280;
    animation: av-pulse 2s infinite;
}
.av-miniapp-status-dot.connected {
    background: #07c160;
}
.av-miniapp-status-dot.error {
    background: var(--av-danger);
    animation: none;
}

@keyframes av-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.av-miniapp-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    padding: 32px 40px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.av-miniapp-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.av-miniapp-card {
    background: var(--av-surface);
    border: 1px solid var(--av-border);
    border-radius: var(--av-radius);
    overflow: hidden;
}

.av-miniapp-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--av-border);
    background: var(--av-surface2);
}

.av-miniapp-card-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--av-text);
    margin: 0;
}

.av-miniapp-card-icon {
    font-size: 20px;
    width: 32px;
    text-align: center;
}

.av-miniapp-card-body {
    padding: 20px;
}

/* Setup steps */
.av-miniapp-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.av-miniapp-step {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--av-border);
    position: relative;
}
.av-miniapp-step:last-child { border-bottom: none; }

.av-miniapp-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--av-gold-dim);
    border: 1px solid var(--av-gold);
    color: var(--av-gold);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.av-miniapp-step.done .av-miniapp-step-num {
    background: var(--av-success);
    border-color: var(--av-success);
    color: #fff;
}

.av-miniapp-step-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--av-text);
    margin: 0 0 4px;
}

.av-miniapp-step-content p {
    font-size: 13px;
    color: var(--av-text-muted);
    margin: 0 0 8px;
    line-height: 1.5;
}

.av-miniapp-step-content a {
    color: var(--av-gold);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}
.av-miniapp-step-content a:hover { text-decoration: underline; }

/* Integration URLs */
.av-miniapp-url-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    background: var(--av-surface2);
    border: 1px solid var(--av-border);
    border-radius: var(--av-radius-sm);
    padding: 10px 14px;
}

.av-miniapp-url-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--av-gold);
    min-width: 64px;
    flex-shrink: 0;
}

.av-miniapp-url-value {
    font-size: 12px;
    color: var(--av-text);
    font-family: 'Courier New', monospace;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.av-miniapp-copy-btn {
    background: none;
    border: 1px solid var(--av-border);
    border-radius: 4px;
    color: var(--av-text-muted);
    font-size: 12px;
    padding: 4px 10px;
    cursor: pointer;
    font-family: var(--av-font);
    transition: all 0.2s;
    flex-shrink: 0;
}
.av-miniapp-copy-btn:hover { border-color: var(--av-gold); color: var(--av-gold); }
.av-miniapp-copy-btn.copied { border-color: var(--av-success); color: var(--av-success); }

/* Sidebar — QR + quick links */
.av-miniapp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 80px;
    align-self: start;
}

.av-miniapp-qr-card {
    background: var(--av-surface);
    border: 1px solid var(--av-border);
    border-radius: var(--av-radius);
    padding: 24px;
    text-align: center;
}

.av-miniapp-qr-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--av-text);
    margin: 0 0 4px;
}

.av-miniapp-qr-card p {
    font-size: 12px;
    color: var(--av-text-muted);
    margin: 0 0 16px;
}

.av-miniapp-qr-wrap {
    width: 180px;
    height: 180px;
    margin: 0 auto 12px;
    border-radius: var(--av-radius-sm);
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--av-border);
}

.av-miniapp-qr-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.av-miniapp-qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #aaa;
    padding: 16px;
    text-align: center;
}

.av-miniapp-qr-placeholder span {
    font-size: 48px;
}

.av-miniapp-appid-display {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--av-gold);
    background: var(--av-gold-dim);
    border: 1px solid rgba(212,168,67,0.2);
    border-radius: 4px;
    padding: 6px 12px;
    margin-top: 4px;
    word-break: break-all;
}

.av-miniapp-links-card {
    background: var(--av-surface);
    border: 1px solid var(--av-border);
    border-radius: var(--av-radius);
    padding: 20px;
}

.av-miniapp-links-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--av-text);
    margin: 0 0 12px;
}

.av-miniapp-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--av-border);
    border-radius: var(--av-radius-sm);
    text-decoration: none;
    color: var(--av-text);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 8px;
}
.av-miniapp-link:last-child { margin-bottom: 0; }
.av-miniapp-link:hover { border-color: var(--av-gold); color: var(--av-gold); background: var(--av-gold-dim); }

.av-miniapp-link-icon { font-size: 18px; width: 24px; text-align: center; }
.av-miniapp-link-arrow { margin-left: auto; color: var(--av-text-muted); font-size: 16px; }

/* Settings notice */
.av-miniapp-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--av-gold-dim);
    border: 1px solid rgba(212,168,67,0.25);
    border-radius: var(--av-radius-sm);
    padding: 14px 16px;
    font-size: 13px;
    color: var(--av-text);
    line-height: 1.5;
}
.av-miniapp-notice .av-miniapp-notice-icon { font-size: 18px; flex-shrink: 0; }
.av-miniapp-notice a { color: var(--av-gold); font-weight: 600; }

/* Mini app responsive */
@media (max-width: 900px) {
    .av-miniapp-body {
        grid-template-columns: 1fr;
        padding: 20px 16px;
    }
    .av-miniapp-sidebar {
        position: static;
    }
    .av-miniapp-hero { padding: 32px 20px 24px; }
}


/* =======================================================
   v2.7.0 — Checkout Customer Info + UI Enhancements
   ======================================================= */

/* Two-column form row */
.av-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 480px) {
    .av-form-row { grid-template-columns: 1fr; }
}

/* Section label / divider */
.av-checkout__section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--av-text-muted);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--av-border);
}

/* Select field */
.av-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px !important;
    cursor: pointer;
}

/* Order summary secure badge */
.av-order-summary__secure {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--av-border);
    font-size: 12px;
    color: var(--av-text-muted);
}
