/* AfroPulse Official Festival Branding: Black & White Luxury with Red/Orange Fiery Accents */
:root {
    --aptf-bg: #07080c;
    --aptf-bg-subtle: #10121a;
    --aptf-card-bg: #ffffff;
    --aptf-border-dark: #222533;
    --aptf-border-light: #e5e7eb;
    --aptf-black: #000000;
    --aptf-dark: #0f172a;
    --aptf-text-dark: #111827;
    --aptf-text-light: #f3f4f6;
    --aptf-text-muted: #64748b;
    --aptf-gradient-brand: linear-gradient(90deg, #ff5e00 0%, #e60026 100%);
    --aptf-gradient-hover: linear-gradient(90deg, #ff7722 0%, #ff1a40 100%);
    --aptf-orange: #ff5e00;
    --aptf-red: #e60026;
    --aptf-gold: #f59e0b;
    --aptf-green: #10b981;
    --aptf-radius: 14px;
    --aptf-radius-sm: 8px;
    --aptf-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --aptf-shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --aptf-shadow-brand: 0 6px 22px rgba(255, 94, 0, 0.35);
}

/* Page Background: Jet Black Luxury */
html:has(#aptf-app),
body.page-id-3914,
body.page-id-3917,
body:has(#aptf-app) {
    background-color: var(--aptf-bg) !important;
    background: var(--aptf-bg) !important;
    color: var(--aptf-text-light) !important;
    min-height: 100vh;
}

body.page-id-3914 #page,
body.page-id-3914 .site,
body.page-id-3914 .site-main,
body.page-id-3914 .content-area,
body.page-id-3914 article,
body.page-id-3914 .entry-content,
body.page-id-3914 .post-3914,
body.page-id-3917 #page,
body.page-id-3917 .site,
body.page-id-3917 .site-main,
body.page-id-3917 .content-area,
body.page-id-3917 article,
body.page-id-3917 .entry-content,
body.page-id-3917 .post-3917,
body:has(#aptf-app) #page,
body:has(#aptf-app) .site,
body:has(#aptf-app) .site-main,
body:has(#aptf-app) .content-area,
body:has(#aptf-app) article,
body:has(#aptf-app) .entry-content {
    background: transparent !important;
    background-color: transparent !important;
}

/* Hide unstyled theme headers */
body.page-id-3914 .page-header,
body.page-id-3914 .entry-header,
body.page-id-3914 h1.entry-title,
body.page-id-3917 .page-header,
body.page-id-3917 .entry-header,
body.page-id-3917 h1.entry-title,
body:has(#aptf-app) .page-header,
body:has(#aptf-app) .entry-header,
body:has(#aptf-app) h1.entry-title {
    display: none !important;
}

.aptf-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px 90px;
    font-family: var(--aptf-font);
    color: var(--aptf-text-light);
    box-sizing: border-box;
}

.aptf-container * {
    box-sizing: border-box;
}

/* Top Brand Bar */
.aptf-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 20px;
    border-bottom: 1px solid var(--aptf-border-dark);
    margin-bottom: 25px;
}

.aptf-logo-img {
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
}

.aptf-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.aptf-back-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: #ffffff;
    color: #ffffff;
}

/* Hero Visual Banner */
.aptf-hero-banners {
    margin-bottom: 28px;
    border-radius: var(--aptf-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--aptf-border-dark);
}

.aptf-hero-banner-item {
    display: none;
    width: 100%;
}

.aptf-hero-banner-item.active {
    display: block;
    animation: aptfFadeIn 0.3s ease;
}

.aptf-banner-image {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    display: block;
}

/* Event Selector (Top) */
.aptf-event-selector-wrap {
    margin-bottom: 30px;
    text-align: center;
}

.aptf-event-selector-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.aptf-selector-dot {
    width: 8px;
    height: 8px;
    background: var(--aptf-orange);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--aptf-orange);
}

.aptf-event-selector {
    display: inline-flex;
    gap: 12px;
    background: #141722;
    padding: 6px;
    border-radius: 50px;
    border: 1.5px solid var(--aptf-border-dark);
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.aptf-event-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    border-radius: 40px;
    border: 1.5px solid transparent;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-family: inherit;
}

.aptf-event-pill:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.aptf-event-pill.active {
    background: var(--aptf-gradient-brand);
    color: #ffffff;
    border-color: transparent;
    box-shadow: var(--aptf-shadow-brand);
}

.aptf-ev-icon {
    font-size: 20px;
    line-height: 1;
}

.aptf-ev-details {
    display: flex;
    flex-direction: column;
}

.aptf-ev-name {
    font-size: 14.5px;
    font-weight: 800;
    line-height: 1.2;
}

.aptf-ev-dates {
    font-size: 11.5px;
    opacity: 0.85;
    margin-top: 2px;
}

/* Header Section */
.aptf-header {
    text-align: center;
    margin-bottom: 35px;
}

.aptf-header-event-meta {
    display: none;
}

.aptf-header-event-meta.active {
    display: block;
    animation: aptfFadeIn 0.3s ease;
}

.aptf-badge-festival {
    display: inline-block;
    padding: 5px 16px;
    background: rgba(255, 94, 0, 0.15);
    border: 1px solid var(--aptf-orange);
    color: #ff9142;
    border-radius: 50px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.aptf-title {
    font-size: 38px;
    font-weight: 900;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-transform: uppercase;
}

.aptf-hl-red {
    background: var(--aptf-gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.aptf-subtitle {
    font-size: 15px;
    color: #94a3b8;
    margin: 0 0 20px;
    font-weight: 500;
}

.aptf-trust-pills {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.aptf-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #141722;
    border: 1px solid var(--aptf-border-dark);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
}

/* Layout Grid */
.aptf-layout {
    display: grid;
    grid-template-columns: 1fr 390px;
    gap: 28px;
    align-items: start;
}

/* Step Boxes (Clean White Surfaces with Black & Red Accents) */
.aptf-step-box {
    background: var(--aptf-card-bg);
    border: 1.5px solid var(--aptf-border-light);
    border-radius: var(--aptf-radius);
    padding: 26px;
    margin-bottom: 24px;
    box-shadow: var(--aptf-shadow-card);
    color: var(--aptf-text-dark);
}

.aptf-step-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1.5px solid var(--aptf-border-light);
}

.aptf-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--aptf-black);
    color: #ffffff;
    font-weight: 900;
    font-size: 16px;
    flex-shrink: 0;
}

.aptf-step-title h2 {
    font-size: 19px;
    font-weight: 900;
    margin: 0;
    color: var(--aptf-black);
    letter-spacing: -0.2px;
    text-transform: uppercase;
}

.aptf-step-title p {
    font-size: 13px;
    color: var(--aptf-text-muted);
    margin: 4px 0 0;
}

/* Event Content Sections */
.aptf-event-content-section {
    display: none;
}

.aptf-event-content-section.active {
    display: block;
    animation: aptfFadeIn 0.3s ease;
}

/* Date Tabs Navigation */
.aptf-tabs-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.aptf-tab-btn {
    position: relative;
    background: #f8fafc;
    border: 1.5px solid var(--aptf-border-light);
    border-radius: var(--aptf-radius-sm);
    padding: 12px 10px;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-family: inherit;
    color: var(--aptf-dark);
}

.aptf-tab-btn:hover {
    border-color: var(--aptf-orange);
    background: #ffffff;
}

.aptf-tab-btn.active {
    background: var(--aptf-black);
    border-color: var(--aptf-black);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.aptf-tab-name {
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.2;
}

.aptf-tab-date {
    font-size: 11px;
    color: var(--aptf-text-muted);
    margin-top: 4px;
}

.aptf-tab-btn.active .aptf-tab-date {
    color: #cbd5e1;
}

.aptf-tab-tag {
    position: absolute;
    top: -10px;
    background: var(--aptf-gradient-brand);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(255, 94, 0, 0.3);
}

/* Day Panels */
.aptf-day-panel {
    display: none;
}

.aptf-day-panel.active {
    display: block;
    animation: aptfFadeIn 0.25s ease;
}

.aptf-day-info {
    padding: 10px 14px;
    background: #f8fafc;
    border-left: 3px solid var(--aptf-orange);
    border-radius: 4px;
    margin-bottom: 20px;
}

.aptf-day-info p {
    margin: 0;
    font-size: 13px;
    color: var(--aptf-text-dark);
    font-weight: 500;
}

/* Tickets Grid */
.aptf-tickets-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.aptf-ticket-card {
    position: relative;
    background: #ffffff;
    border: 1.5px solid var(--aptf-border-light);
    border-radius: var(--aptf-radius-sm);
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.aptf-ticket-card:hover {
    border-color: var(--aptf-orange);
    box-shadow: 0 8px 24px rgba(255, 94, 0, 0.12);
}

.aptf-ticket-media {
    position: relative;
    width: 100%;
    height: 140px;
    background: #000000;
    overflow: hidden;
}

.aptf-ticket-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.aptf-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--aptf-gradient-brand);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.aptf-ticket-body {
    padding: 20px;
}

.aptf-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.aptf-ticket-name {
    font-size: 18px;
    font-weight: 900;
    color: var(--aptf-black);
    margin: 0;
    letter-spacing: -0.2px;
}

.aptf-ticket-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.aptf-price-num {
    font-size: 24px;
    font-weight: 900;
    color: var(--aptf-black);
}

.aptf-price-currency {
    font-size: 15px;
    font-weight: 800;
    color: var(--aptf-orange);
}

.aptf-ticket-desc {
    font-size: 13.5px;
    color: var(--aptf-text-muted);
    margin: 0 0 14px;
    line-height: 1.45;
}

.aptf-ticket-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aptf-ticket-perks li {
    font-size: 13px;
    color: var(--aptf-text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.aptf-check {
    color: var(--aptf-green);
    font-weight: 900;
}

.aptf-ticket-action {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--aptf-border-light);
}

.aptf-qty-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--aptf-text-muted);
}

/* Quantity Counter (White & Black) */
.aptf-counter {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--aptf-black);
    border-radius: 30px;
    overflow: hidden;
    background: #ffffff;
}

.aptf-btn-minus,
.aptf-btn-plus {
    background: transparent;
    border: none;
    color: var(--aptf-black);
    font-size: 20px;
    font-weight: 900;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.aptf-btn-minus:hover,
.aptf-btn-plus:hover {
    background: #f1f5f9;
}

.aptf-qty-value {
    font-size: 16px;
    font-weight: 900;
    min-width: 34px;
    text-align: center;
    color: var(--aptf-black);
}

/* STEP 2: Checkout Form Inputs */
.aptf-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.aptf-field-full {
    grid-column: 1 / -1;
}

.aptf-field-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--aptf-black);
    margin-bottom: 8px;
}

.aptf-req {
    color: var(--aptf-red);
}

.aptf-field-group input {
    width: 100%;
    padding: 13px 16px;
    background: #ffffff;
    border: 1.5px solid var(--aptf-border-light);
    border-radius: var(--aptf-radius-sm);
    color: var(--aptf-black);
    font-size: 16px; /* Prevents iOS Safari auto-zoom */
    font-family: inherit;
    transition: all 0.2s ease;
    outline: none;
}

.aptf-field-group input:focus {
    border-color: var(--aptf-orange);
    box-shadow: 0 0 0 3px rgba(255, 94, 0, 0.12);
}

.aptf-phone-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--aptf-border-light);
    border-radius: var(--aptf-radius-sm);
    overflow: hidden;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.aptf-phone-input-wrap:focus-within {
    border-color: var(--aptf-orange);
    box-shadow: 0 0 0 3px rgba(255, 94, 0, 0.12);
}

.aptf-country-code {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: #f1f5f9;
    border-right: 1.5px solid var(--aptf-border-light);
    font-weight: 800;
    font-size: 14.5px;
    color: var(--aptf-black);
}

.aptf-phone-input-wrap input {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.aptf-help {
    display: block;
    font-size: 11.5px;
    color: var(--aptf-text-muted);
    margin-top: 6px;
}

/* STEP 3: Payment Gateways */
.aptf-gateways-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aptf-gateway-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: #ffffff;
    border: 1.5px solid var(--aptf-border-light);
    border-radius: var(--aptf-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.aptf-gateway-card:hover {
    border-color: var(--aptf-orange);
}

.aptf-gateway-card.active {
    border-color: var(--aptf-orange);
    background: #fffaf5;
    box-shadow: 0 2px 10px rgba(255, 94, 0, 0.08);
}

.aptf-gateway-card input[type="radio"] {
    margin-top: 3px;
    accent-color: var(--aptf-orange);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.aptf-gw-content {
    flex: 1;
}

.aptf-gw-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.aptf-gw-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--aptf-black);
}

.aptf-gw-badge {
    background: var(--aptf-black);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

.aptf-gw-desc {
    font-size: 12.5px;
    color: var(--aptf-text-muted);
    margin: 0;
    line-height: 1.4;
}

.aptf-gw-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.aptf-pay-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    background: #f1f5f9;
    border: 1px solid var(--aptf-border-light);
    border-radius: 20px;
    color: var(--aptf-dark);
}

/* Right Column: Sticky Summary */
.aptf-sidebar {
    position: sticky;
    top: 24px;
}

.aptf-summary-card {
    background: #ffffff;
    border: 2px solid var(--aptf-black);
    border-radius: var(--aptf-radius);
    padding: 26px;
    box-shadow: var(--aptf-shadow-card);
    color: var(--aptf-text-dark);
}

.aptf-summary-title {
    font-size: 19px;
    font-weight: 900;
    color: var(--aptf-black);
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1.5px solid var(--aptf-border-light);
    letter-spacing: -0.2px;
    text-transform: uppercase;
}

.aptf-empty-cart {
    text-align: center;
    padding: 30px 10px;
    color: var(--aptf-text-muted);
}

.aptf-empty-icon {
    font-size: 38px;
    margin-bottom: 10px;
    opacity: 0.6;
}

.aptf-empty-cart p {
    font-size: 14px;
    font-weight: 700;
    color: var(--aptf-black);
    margin: 0 0 4px;
}

.aptf-empty-cart small {
    font-size: 12px;
    color: var(--aptf-text-muted);
}

/* Cart Items in Summary */
.aptf-cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
    max-height: 280px;
    overflow-y: auto;
}

.aptf-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid var(--aptf-border-light);
    border-radius: var(--aptf-radius-sm);
}

.aptf-sum-it-info {
    display: flex;
    flex-direction: column;
}

.aptf-sum-it-name {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--aptf-black);
}

.aptf-sum-it-meta {
    font-size: 11.5px;
    color: var(--aptf-text-muted);
    margin-top: 2px;
}

.aptf-sum-it-price {
    font-size: 14px;
    font-weight: 900;
    color: var(--aptf-black);
    white-space: nowrap;
}

/* Calculations */
.aptf-cart-calc {
    border-top: 1.5px solid var(--aptf-border-light);
    padding-top: 16px;
}

.aptf-calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    margin-bottom: 10px;
    color: var(--aptf-text-dark);
}

.aptf-free-tag {
    color: var(--aptf-green);
    font-weight: 800;
    font-size: 12px;
}

.aptf-calc-divider {
    height: 1px;
    background: var(--aptf-border-light);
    margin: 14px 0;
}

.aptf-total-row {
    font-size: 16px;
    font-weight: 900;
    color: var(--aptf-black);
    margin-bottom: 20px;
}

.aptf-total-num {
    font-size: 24px;
    font-weight: 900;
    color: var(--aptf-black);
}

/* Primary CTA Button: AfroPulse Fiery Gradient */
.aptf-btn-checkout {
    width: 100%;
    padding: 16px 20px;
    background: var(--aptf-gradient-brand);
    color: #ffffff;
    border: none;
    border-radius: var(--aptf-radius-sm);
    font-size: 16px;
    font-weight: 900;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--aptf-shadow-brand);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aptf-btn-checkout:hover:not(:disabled) {
    background: var(--aptf-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 94, 0, 0.5);
}

.aptf-btn-checkout:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.aptf-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 11.5px;
    color: var(--aptf-text-muted);
    font-weight: 600;
}

/* Mobile Sticky Bar */
.aptf-mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #ffffff;
    border-top: 2px solid var(--aptf-black);
    padding: 12px 18px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.18);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.aptf-mob-info {
    display: flex;
    flex-direction: column;
}

.aptf-mob-qty {
    font-size: 12px;
    color: var(--aptf-text-muted);
    font-weight: 600;
}

.aptf-mob-total {
    font-size: 19px;
    font-weight: 900;
    color: var(--aptf-black);
}

.aptf-mob-btn {
    flex: 1;
    max-width: 200px;
    padding: 14px 18px;
    background: var(--aptf-gradient-brand);
    color: #ffffff;
    border: none;
    border-radius: var(--aptf-radius-sm);
    font-size: 15px;
    font-weight: 900;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--aptf-shadow-brand);
    text-transform: uppercase;
}

/* Modals */
.aptf-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.aptf-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
}

.aptf-modal-dialog {
    position: relative;
    background: #ffffff;
    border: 2px solid var(--aptf-black);
    border-radius: var(--aptf-radius);
    padding: 32px 28px;
    max-width: 480px;
    width: 100%;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    text-align: center;
    color: var(--aptf-text-dark);
    animation: aptfModalPop 0.25s ease;
}

.aptf-modal-icon-pulse,
.aptf-modal-icon,
.aptf-modal-icon-success {
    font-size: 48px;
    margin-bottom: 14px;
}

.aptf-modal-dialog h3 {
    font-size: 22px;
    font-weight: 900;
    color: var(--aptf-black);
    margin: 0 0 8px;
    text-transform: uppercase;
}

.aptf-modal-dialog p {
    font-size: 14px;
    color: var(--aptf-text-muted);
    margin: 0 0 20px;
    line-height: 1.5;
}

.aptf-alert-box {
    padding: 12px 16px;
    background: #f8fafc;
    border: 1.5px solid var(--aptf-border-light);
    border-radius: var(--aptf-radius-sm);
    font-size: 13px;
    color: var(--aptf-text-dark);
    margin-bottom: 20px;
    text-align: left;
    line-height: 1.45;
}

.aptf-alert-info {
    border-left: 3px solid var(--aptf-orange);
}

.aptf-alert-success {
    border-left: 3px solid var(--aptf-green);
    color: var(--aptf-black);
    background: #ecfdf5;
}

.aptf-countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    padding: 18px;
    background: #f8fafc;
    border: 1.5px solid var(--aptf-black);
    border-radius: var(--aptf-radius-sm);
}

.aptf-timer {
    font-size: 48px;
    font-weight: 900;
    color: var(--aptf-black);
    line-height: 1;
}

.aptf-timer-lbl {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--aptf-text-muted);
    margin-top: 6px;
}

/* Reference Table */
.aptf-ref-data-table {
    background: #f8fafc;
    border: 1.5px solid var(--aptf-border-light);
    border-radius: var(--aptf-radius-sm);
    padding: 14px;
    margin-bottom: 20px;
    text-align: left;
}

.aptf-ref-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--aptf-border-light);
    font-size: 13.5px;
}

.aptf-ref-row:last-child {
    border-bottom: none;
}

.aptf-ref-lbl {
    color: var(--aptf-text-muted);
    font-weight: 600;
}

.aptf-ref-val {
    color: var(--aptf-black);
    font-weight: 900;
}

.aptf-ref-amount {
    font-size: 16px;
    color: var(--aptf-orange);
}

.aptf-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aptf-btn-primary {
    display: inline-block;
    width: 100%;
    padding: 14px;
    background: var(--aptf-gradient-brand);
    color: #ffffff;
    border: none;
    border-radius: var(--aptf-radius-sm);
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
    box-shadow: var(--aptf-shadow-brand);
}

.aptf-btn-primary:hover {
    background: var(--aptf-gradient-hover);
}

.aptf-btn-secondary {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--aptf-text-muted);
    border: 1px solid var(--aptf-border-light);
    border-radius: var(--aptf-radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.aptf-btn-secondary:hover {
    background: #f1f5f9;
    color: var(--aptf-black);
}

/* Spinner */
.aptf-btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: aptfSpin 0.7s linear infinite;
}

/* Animations */
@keyframes aptfFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes aptfModalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes aptfSpin {
    to { transform: rotate(360deg); }
}

/* Responsive Media Queries */
@media (max-width: 960px) {
    .aptf-layout {
        grid-template-columns: 1fr;
    }

    .aptf-sidebar {
        position: static;
        margin-top: 10px;
    }

    .aptf-title {
        font-size: 28px;
    }

    .aptf-container {
        padding: 15px 14px 100px;
    }

    .aptf-step-box {
        padding: 20px 16px;
    }

    .aptf-tabs-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .aptf-topbar {
        flex-direction: column;
        gap: 12px;
    }

    .aptf-form-grid {
        grid-template-columns: 1fr;
    }

    .aptf-event-selector {
        width: 100%;
        flex-direction: column;
        border-radius: var(--aptf-radius-sm);
        padding: 8px;
    }

    .aptf-event-pill {
        width: 100%;
        justify-content: flex-start;
        border-radius: var(--aptf-radius-sm);
    }

    .aptf-title {
        font-size: 24px;
    }

    .aptf-ticket-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}


/* ==========================================================================
   LANDING PAGE EVENTS HUB & HERO QUICKBAR
   ========================================================================== */
.aptf-events-hub {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #ffffff;
    box-sizing: border-box;
}

.aptf-hub-header {
    text-align: center;
    margin-bottom: 36px;
}

.aptf-hub-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(231, 27, 10, 0.12);
    border: 1px solid rgba(231, 27, 10, 0.4);
    color: #ff5240;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.aptf-pulse-dot {
    width: 8px;
    height: 8px;
    background: #e71b0a;
    border-radius: 50%;
    box-shadow: 0 0 10px #e71b0a;
    animation: aptfPulseDot 1.8s infinite;
}

@keyframes aptfPulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.aptf-hub-title {
    font-family: "Anton", Impact, sans-serif !important;
    font-size: 38px !important;
    line-height: 1.15 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    margin: 0 0 12px !important;
}

.aptf-gold-gradient {
    background: linear-gradient(135deg, #ffb300 0%, #ff5722 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.aptf-hub-subtitle {
    font-size: 15px;
    color: #a3a3a3;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.5;
}

.aptf-hub-subtitle strong {
    color: #fff;
}

/* Grid */
.aptf-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 32px;
}

@media (max-width: 860px) {
    .aptf-hub-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .aptf-hub-title {
        font-size: 26px !important;
    }
}

/* Card */
.aptf-hub-card {
    background: linear-gradient(180deg, #161615 0%, #0d0d0c 100%);
    border: 1px solid #2a2a28;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.aptf-hub-card:hover {
    transform: translateY(-5px);
    border-color: #faaa08;
    box-shadow: 0 16px 40px rgba(250, 170, 8, 0.18);
}

.aptf-hub-card-media {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #000;
}

.aptf-hub-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
    display: block;
}

.aptf-hub-card:hover .aptf-hub-card-media img {
    transform: scale(1.06);
}

.aptf-hub-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 6px;
    backdrop-filter: blur(8px);
    z-index: 2;
}

.aptf-badge-gold {
    background: rgba(250, 170, 8, 0.95);
    color: #000000;
    box-shadow: 0 4px 12px rgba(250, 170, 8, 0.4);
}

.aptf-badge-red {
    background: rgba(231, 27, 10, 0.95);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(231, 27, 10, 0.4);
}

.aptf-hub-card-date {
    position: absolute;
    bottom: 12px;
    right: 14px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
}

.aptf-hub-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.aptf-hub-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12px;
    color: #faaa08;
    margin-bottom: 10px;
    font-weight: 500;
}

.aptf-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.aptf-hub-card-title {
    font-family: "Anton", Impact, sans-serif !important;
    font-size: 26px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    margin: 0 0 10px !important;
    line-height: 1.2 !important;
}

.aptf-hub-card-desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: #b0b0b0;
    margin: 0 0 16px;
    flex: 1;
}

.aptf-hub-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.aptf-hub-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    font-size: 11.5px;
    padding: 4px 10px;
    border-radius: 6px;
}

.aptf-hub-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.aptf-hub-price-wrap {
    display: flex;
    flex-direction: column;
}

.aptf-hub-price-lbl {
    font-size: 11px;
    color: #888888;
    text-transform: uppercase;
}

.aptf-hub-price-val {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
}

.aptf-hub-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    color: #ffffff !important;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.aptf-cta-festival {
    background: linear-gradient(135deg, #e71b0a 0%, #ff6b00 100%);
    box-shadow: 0 4px 18px rgba(231, 27, 10, 0.4);
}

.aptf-cta-festival:hover {
    background: linear-gradient(135deg, #ff2a17 0%, #ff8522 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 27, 10, 0.55);
}

.aptf-cta-bdc {
    background: linear-gradient(135deg, #1a1a1a 0%, #b81404 100%);
    border: 1px solid rgba(231, 27, 10, 0.6);
    box-shadow: 0 4px 18px rgba(184, 20, 4, 0.35);
}

.aptf-cta-bdc:hover {
    background: linear-gradient(135deg, #2b2b2b 0%, #e71b0a 100%);
    border-color: #ff4d3a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 27, 10, 0.5);
}

@media (max-width: 520px) {
    .aptf-hub-card-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .aptf-hub-price-wrap {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .aptf-hub-cta-btn {
        width: 100%;
        text-align: center;
    }
}

/* Trust bar */
.aptf-hub-trust-bar {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.aptf-trust-text {
    font-size: 12.5px;
    color: #999999;
}

.aptf-trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aptf-trust-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cccccc;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
}

/* ==========================================================================
   HERO QUICKBAR (TOP OF PAGE)
   ========================================================================== */
.aptf-hero-quickbar-wrap {
    width: 100%;
    background: #0d0d0c;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 2px solid #e71b0a;
    padding: 14px 16px;
    box-sizing: border-box;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.aptf-hero-quickbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.aptf-quickbar-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.aptf-badge-flare {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #faaa08;
    box-shadow: 0 0 10px #faaa08;
    animation: aptfPulseDot 1.6s infinite;
}

.aptf-badge-txt {
    font-family: "Anton", Impact, sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
    color: #faaa08;
    text-transform: uppercase;
}

.aptf-quickbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    flex: 1;
    justify-content: flex-end;
}

.aptf-quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #181817;
    color: #ffffff !important;
}

.aptf-quick-action-btn:hover {
    transform: translateY(-2px);
}

.aptf-action-pulse {
    background: linear-gradient(135deg, rgba(231, 27, 10, 0.25) 0%, rgba(255, 107, 0, 0.15) 100%);
    border-color: rgba(231, 27, 10, 0.5);
}

.aptf-action-pulse:hover {
    box-shadow: 0 4px 16px rgba(231, 27, 10, 0.4);
    border-color: #e71b0a;
}

.aptf-action-bdc {
    background: linear-gradient(135deg, rgba(250, 170, 8, 0.2) 0%, rgba(26, 26, 26, 0.4) 100%);
    border-color: rgba(250, 170, 8, 0.4);
}

.aptf-action-bdc:hover {
    box-shadow: 0 4px 16px rgba(250, 170, 8, 0.4);
    border-color: #faaa08;
}

.aptf-action-ico {
    font-size: 18px;
}

.aptf-action-txt {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.aptf-action-txt strong {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.aptf-action-txt small {
    font-size: 11px;
    color: #a0a0a0;
}

.aptf-action-arrow {
    font-size: 16px;
    color: #faaa08;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.aptf-quick-action-btn:hover .aptf-action-arrow {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .aptf-hero-quickbar {
        flex-direction: column;
        align-items: stretch;
    }
    .aptf-quickbar-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .aptf-quick-action-btn {
        justify-content: flex-start;
    }
    .aptf-action-arrow {
        margin-left: auto;
    }
}
