/* 
 * Membrain Festival Tickets - Frontend Styles (Vanilla CSS)
 * Industrial Minimalist Design Manifest
 */

:root {
    --mft-neon: #00FF41;
    --mft-basalt: #121414;
    --mft-surface: #1f2020;
    --mft-surface-low: #1b1c1c;
    --mft-text: #e3e2e2;
    --mft-text-dim: #b9ccb2;
    --mft-zinc-800: #27272a;
    --mft-zinc-500: #71717a;
    --mft-gutter: 1px;
}

.mft-shop-wrapper {
    background-color: var(--mft-basalt);
    color: var(--mft-text);
    font-family: 'Space Grotesk', sans-serif;
    position: relative;
    width: 100%;
    margin: 0 auto;
}

/* Noise Overlay */
/* .mft-noise {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    z-index: 50;
} */

/* Main Grid Layout */
.mft-shop-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--mft-gutter);
    background-color: var(--mft-zinc-800);
}

.mft-main-content {
    grid-column: span 12;
    padding: 32px 16px;
}

.mft-sidebar {
    grid-column: span 12;
    padding: 32px 16px;
}

@media (min-width: 1024px) {
    .mft-main-content {
        grid-column: span 8;
        padding: 64px;
    }

    .mft-sidebar {
        grid-column: span 4;
        padding: 64px;
    }
}

/* Section Styling */
.mft-section {
    margin-bottom: 64px;
}

.mft-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.mft-dot {
    width: 12px;
    height: 12px;
    background-color: var(--mft-neon);
    display: inline-block;
}

.mft-dot.pulse {
    animation: mftPulse 2s infinite ease-in-out;
}

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

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }

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

.mft-section-title {
    font-family: 'Epilogue', sans-serif;
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Item Grids */
.mft-item-grid {
    display: flex;
    flex-direction: column;
    gap: var(--mft-gutter);
    background-color: var(--mft-zinc-800);
    border: 1px solid var(--mft-zinc-800);
}

/* Ticket Card - List Style (2-Tier) */
.mft-card {
    background-color: var(--mft-surface);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.mft-card:hover {
    border-color: var(--mft-neon);
    background-color: rgba(0, 255, 65, 0.02);
}

.mft-card-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 16px;
    flex-wrap: wrap;
}

.mft-card-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    flex: 1;
    min-width: 0;
}

.mft-card-thumb {
    width: 64px;
    height: 64px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 1px solid var(--mft-zinc-800);
}

.mft-info-text,
.mft-card-info:not(:has(.mft-card-thumb)) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.mft-card-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.mft-card-description {
    width: 100%;
    font-size: 13px;
    color: var(--mft-text-dim);
    line-height: 1.7;
    opacity: 0.8;
    font-family: monospace;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
}

.mft-card-description p {
    margin: 0;
}

.mft-card-meta {
    font-size: 10px;
    color: var(--mft-zinc-500);
    text-transform: uppercase;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--mft-neon);
    margin-bottom: 6px;
    display: block;
    opacity: 1;
}

.mft-card-title {
    font-family: 'Epilogue', sans-serif;
    font-weight: 900;
    font-size: clamp(18px, 4vw, 24px);
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
    word-break: break-word;
}

.mft-card-price {
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 700;
    color: var(--mft-neon);
    margin: 0;
    white-space: nowrap;
}

/* Buttons */
.mft-btn {
    width: 100%;
    background-color: var(--mft-neon);
    color: #000;
    border: none;
    padding: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.mft-btn:hover {
    background-color: #fff;
}

.mft-btn-outline {
    background: transparent;
    border: 1px solid var(--mft-neon);
    color: var(--mft-neon);
}

.mft-btn-outline:hover {
    background: var(--mft-neon);
    color: #000;
}

/* Sidebar / Summary */
.mft-sidebar-inner {
    position: sticky;
    top: 100px;
    background-color: var(--mft-surface-low);
    border: 1px solid var(--mft-zinc-800);
    padding: 32px;
}

.mft-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--mft-zinc-800);
    padding-bottom: 16px;
}

.mft-summary-title {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

.mft-summary-ref {
    font-family: monospace;
    font-size: 10px;
    color: var(--mft-zinc-500);
}

.mft-cart-items {
    margin-bottom: 48px;
    min-height: 100px;
}

.mft-cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    animation: mftFadeIn 0.3s ease-out forwards;
}

@keyframes mftFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mft-total-row {
    border-top: 1px solid var(--mft-zinc-800);
    padding-top: 32px;
    margin-bottom: 40px;
}

.mft-total-label {
    font-size: 12px;
    color: var(--mft-zinc-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mft-total-amount {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--mft-neon);
    margin-top: 8px;
}

.mft-progress-bar {
    height: 4px;
    background-color: var(--mft-zinc-800);
    width: 100%;
    margin-top: 16px;
}

.mft-progress-fill {
    height: 100%;
    background-color: var(--mft-neon);
    width: 0%;
    transition: width 0.5s ease;
}

.mft-btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.mft-btn-checkout:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Specificities for Oxygen override */
.mft-industrial-shop * {
    box-sizing: border-box;
}

.mft-btn-qty {
    background: transparent;
    border: 1px solid var(--mft-zinc-800);
    color: #fff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

.mft-btn-qty:hover {
    border-color: var(--mft-neon);
    color: var(--mft-neon);
}

.mft-card.selected {
    border-color: var(--mft-neon);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.1);
}

.mft-item-title {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
}

.mft-item-meta {
    font-size: 10px;
    color: var(--mft-zinc-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mft-item-price {
    font-family: monospace;
    font-size: 14px;
}

.mft-empty-msg {
    color: var(--mft-zinc-500);
    font-style: italic;
    font-size: 14px;
    text-transform: uppercase;
}

/* Gateway Selector Styles */
.mft-gateway-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.mft-gateway-opt {
    background: var(--mft-surface);
    border: 1px solid var(--mft-zinc-800);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--mft-text-dim);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.mft-gateway-opt span {
    font-size: 24px;
    color: var(--mft-zinc-500);
    transition: color 0.3s ease;
}

.mft-gateway-opt:hover {
    border-color: var(--mft-zinc-500);
    color: #fff;
}

.mft-gateway-opt.active {
    border-color: var(--mft-neon);
    background: rgba(0, 255, 65, 0.05);
    color: #fff;
}

.mft-gateway-opt.active span {
    color: var(--mft-neon);
}

/* Phase Badges */
.mft-card {
    position: relative;
}

.mft-phase-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--mft-neon);
    color: #000;
    font-size: 9px;
    font-weight: 900;
    padding: 4px 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 5;
}

/* Sticky Action Bar (Floating Footer) */
.mft-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(18, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--mft-neon);
    padding: 20px;
    padding-bottom: max(20px, env(safe-area-inset-bottom)); /* iOS home indicator */
    z-index: 1000;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    animation: mftSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Give shop content breathing room so the last card isn't hidden under the sticky bar */
.mft-shop-selection {
    padding-bottom: 120px;
}

@media (max-width: 768px) {
    .mft-shop-selection {
        padding-bottom: 160px; /* taller on mobile since bar stacks to 2 rows */
    }
}

.mft-sticky-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mft-sticky-breakdown {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.mft-sticky-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mft-sticky-item.total {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 40px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mft-sticky-item.total:hover {
    background: rgba(0, 255, 65, 0.05);
}

.mft-btn-primary {
    background: var(--mft-neon);
    color: #000;
    border: none;
    padding: 20px 40px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mft-btn-primary:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.2);
}

.mft-btn-full {
    width: 100%;
}

.mft-sticky-label {
    display: block;
    font-size: 9px;
    color: var(--mft-zinc-500);
    letter-spacing: 2px;
    font-weight: 800;
    text-transform: uppercase;
}

.mft-sticky-val {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    font-family: monospace;
}

.mft-sticky-item.total .mft-sticky-val {
    font-size: 24px;
    color: var(--mft-neon);
}

.mft-sticky-actions .mft-btn-next {
    width: auto;
    padding: 14px 40px;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

@keyframes mftSlideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Wizard Step Layouts */
.mft-step-section {
    display: none;
    animation: mftFadeIn 0.5s ease;
}

.mft-step-section.active {
    display: block;
}

/* Responsive Sticky Bar */
@media (max-width: 768px) {
    .mft-sticky-bar {
        padding: 16px;
    }

    .mft-sticky-inner {
        flex-direction: column;
        gap: 16px;
    }

    .mft-sticky-breakdown {
        gap: 20px;
        width: 100%;
        justify-content: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 16px;
    }

    .mft-sticky-item.total {
        border: none;
        padding: 0;
    }

    .mft-sticky-actions {
        width: 100%;
    }

    .mft-sticky-actions .mft-btn-next {
        width: 100%;
        justify-content: center;
    }
}

/* Stepper Component */
.mft-checkout-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--mft-surface-low);
    border-bottom: 1px solid var(--mft-zinc-800);
    padding: 24px 20px;
    margin-bottom: 0;
}

@media (min-width: 769px) {
    .mft-checkout-stepper {
        padding: 32px 64px;
    }
}

.mft-step {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.mft-step.active {
    opacity: 1;
    color: var(--mft-neon);
}

.mft-step .material-symbols-outlined {
    font-size: 28px;
}

.mft-step-label {
    font-family: 'Epilogue', sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.1em;
}

.mft-step-divider {
    flex: 1;
    height: 1px;
    background: var(--mft-zinc-800);
    margin: 0 40px;
    transition: background 0.4s ease;
}

.mft-step-divider.active {
    background: var(--mft-neon);
}

/* Terminal & Full Width States */
.mft-shop-wrapper[data-step="2"] .mft-shop-grid {
    display: none !important;
}

.mft-shop-wrapper[data-step="3"] .mft-shop-grid {
    display: none !important;
}

.mft-shop-wrapper[data-step="2"] .mft-checkout-terminal {
    display: block !important;
    animation: mftFadeIn 0.6s ease;
}

.mft-shop-wrapper[data-step="3"] .mft-checkout-terminal {
    display: block !important;
}

/* Responsive Stepper */
@media (max-width: 768px) {
    .mft-checkout-stepper {
        padding: 24px;
    }

    .mft-step-label {
        display: none;
    }

    .mft-step-divider {
        margin: 0 20px;
    }
}

/* Sliding Cart Drawer */
.mft-cart-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    visibility: hidden;
    overflow: hidden; /* CRITICAL: clips the off-screen panel, prevents horizontal scroll */
    pointer-events: none;
    transition: visibility 0.4s;
}

.mft-cart-drawer.active {
    visibility: visible;
    pointer-events: auto;
}

.mft-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mft-cart-drawer.active .mft-drawer-overlay {
    opacity: 1;
}

.mft-drawer-content {
    position: absolute;
    top: 0;
    right: -450px;
    width: 450px;
    max-width: 90vw;
    height: 100%;
    background: var(--mft-surface-low);
    border-left: 1px solid var(--mft-zinc-800);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
}

.mft-cart-drawer.active .mft-drawer-content {
    right: 0;
}

/* Body scroll lock when drawer is open */
html.mft-scroll-locked,
body.mft-scroll-locked {
    overflow: hidden !important;
}

.mft-drawer-header {
    padding: 32px;
    border-bottom: 1px solid var(--mft-zinc-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mft-drawer-title {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mft-neon);
}

.mft-drawer-close {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.mft-drawer-close:hover {
    opacity: 1;
}

.mft-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

.mft-drawer-footer {
    padding: 32px;
    background: var(--mft-zinc-900);
    border-top: 1px solid var(--mft-zinc-800);
}

.mft-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 12px;
    font-family: monospace;
    opacity: 0.6;
}

.mft-summary-row.total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 18px;
    opacity: 1;
    color: var(--mft-neon);
    font-weight: bold;
}

/* Full-Width Checkout Terminal */
.mft-checkout-terminal {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    background: var(--mft-basalt);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mft-terminal-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.mft-terminal-summary-card {
    background: var(--mft-surface-low);
    border: 1px solid var(--mft-zinc-800);
    padding: 40px;
    position: sticky;
    top: 120px;
}

.mft-terminal-column.sticky {
    position: sticky;
    top: 120px;
}

@media (max-width: 1024px) {
    .mft-terminal-grid {
        grid-template-columns: 1fr;
    }
}

.mft-quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mft-qty-input {
    width: 48px;
    background: transparent;
    border: none;
    color: #fff;
    text-align: center;
    font-family: monospace;
    font-weight: bold;
    font-size: 16px;
}

/* Terminal Styling */
.mft-input {
    width: 100%;
    background: var(--mft-zinc-900);
    border: 1px solid var(--mft-zinc-800);
    padding: 18px 24px;
    color: #fff;
    font-family: monospace;
    font-size: 13px;
    border-radius: 2px;
    transition: all 0.3s;
}

.mft-event-btn-info {
    background: #1a1a1a;
    color: #fff;
    clip-path: polygon(12px 0, 100% 0, 100% 100%, 0% 100%);
    margin-right: -10px; /* Slight overlap */
    padding-left: 40px;
}

.mft-event-btn-tickets {
    background: #e52e2e;
    color: #fff;
    clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0% 100%);
}

.mft-input:focus {
    border-color: var(--mft-neon);
    outline: none;
    background: rgba(0, 255, 65, 0.05);
}

.mft-gateway-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.mft-gateway-card {
    background: var(--mft-zinc-900);
    border: 1px solid var(--mft-zinc-800);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0.6;
}

.mft-gateway-logos {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    margin-bottom: 10px;
}

.mft-gateway-logo {
    opacity: 0.3;
    transition: all 0.3s;
}

.mft-gateway-logo.stripe {
    width: auto;
    height: 28px;
    object-fit: contain;
    filter: grayscale(1) brightness(0) invert(1);
}

.mft-gateway-logo.mollie {
    width: 70px;
    height: auto;
    color: #fff;
}

.mft-gateway-logo.wero {
    width: 70px;
    height: auto;
    color: #fff;
}

.mft-gateway-opt:hover .mft-gateway-logo {
    opacity: 0.7;
}

.mft-gateway-opt.active .mft-gateway-logo.stripe {
    opacity: 1;
    filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(118%) contrast(119%);
}

.mft-gateway-opt.active .mft-gateway-logo.mollie,
.mft-gateway-opt.active .mft-gateway-logo.wero {
    opacity: 1;
    color: var(--mft-neon);
}

.mft-gateway-opt div {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.mft-gateway-opt:hover {
    opacity: 1;
    border-color: var(--mft-zinc-700);
}

.mft-gateway-opt.active {
    opacity: 1;
    border-color: var(--mft-neon);
    background: rgba(0, 255, 65, 0.05);
}

.mft-gateway-opt.active .material-symbols-outlined {
    color: var(--mft-neon);
    opacity: 1;
}

.mft-btn-checkout {
    width: 100%;
    margin-top: 40px;
    padding: 24px;
    background: var(--mft-neon);
    color: #000;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.mft-btn-checkout:hover:not(:disabled) {
    background: #fff;
    transform: translateY(-2px);
}

.mft-btn-checkout:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.mft-input.mft-invalid {
    border-color: #ff3b30 !important;
    background: rgba(255, 59, 48, 0.08) !important;
    box-shadow: 0 0 25px rgba(255, 59, 48, 0.2);
}

.mft-validation-error {
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid #ff3b30;
    color: #fff;
    background-color: rgba(255, 59, 48, 0.2);
    padding: 20px;
    margin-bottom: 30px;
    font-family: monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: none;
    animation: mftSlideIn 0.3s ease-out;
    border-radius: 2px;
}

.mft-shake {
    animation: mftShake 0.5s cubic-bezier(.36, .07, .19, .97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

@keyframes mftSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mftShake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* ── Events Grid [mft_events] ────────────────────────────────────────── */
.mft-events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px 0;
}

@media (min-width: 769px) {
    .mft-events-grid {
        grid-template-columns: repeat(auto-fill, minmax(560px, 1fr));
        gap: 40px;
    }
}

.mft-events-grid.mft-events-single {
    grid-template-columns: 1fr;
}

.mft-event-card {
    background: #000;
    border: 1px solid var(--mft-zinc-800);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.mft-event-image {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Red slant overlay for image bottom (subtle detail from screenshot) */
.mft-event-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--mft-neon);
}

.mft-event-body {
    display: flex;
    padding: 24px 20px;
    position: relative;
}

@media (min-width: 600px) {
    .mft-event-body {
        padding: 40px;
    }
}

.mft-event-sidebar-line {
    width: 4px;
    background: var(--mft-neon);
    position: absolute;
    top: 40px;
    bottom: 40px;
    left: 0;
}

.mft-event-content {
    flex: 1;
    padding-left: 0; /* Align with red line via parent padding and absolute line */
}

.mft-event-meta {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.mft-loc-ref {
    color: var(--mft-neon);
    font-family: monospace;
    font-size: 14px;
    margin-left: 8px;
    opacity: 0.9;
}

.mft-event-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(24px, 7vw, 42px);
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 20px 0;
    line-height: 1;
    letter-spacing: -1px;
    word-break: break-word;
}

.mft-event-highlights {
    color: #ccc;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 32px;
}

.mft-event-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mft-event-highlights li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.mft-event-highlights li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
}

.mft-event-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0;
    margin-top: auto;
    flex-wrap: wrap;
}

.mft-event-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 32px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mft-event-btn-info {
    background: #1a1a1a;
    color: #fff;
    position: relative;
    padding-left: 40px;
    padding-right: 40px;
    margin-right: -12px;
    z-index: 1;
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0% 100%);
}

.mft-event-btn-info::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--mft-neon);
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0% 100%);
    z-index: -2;
}

.mft-event-btn-info::after {
    content: "";
    position: absolute;
    inset: 1px;
    background: #1a1a1a;
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0% 100%);
    z-index: -1;
}

.mft-event-btn-lineup {
    background: transparent;
    color: var(--mft-neon);
    position: relative;
    padding-left: 40px;
    padding-right: 40px;
    margin-right: -12px;
    z-index: 2;
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0% 100%);
}

.mft-event-btn-lineup::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--mft-neon);
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0% 100%);
    z-index: -2;
}

.mft-event-btn-lineup::after {
    content: "";
    position: absolute;
    inset: 1px;
    background: var(--mft-basalt);
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0% 100%);
    z-index: -1;
}

.mft-event-btn-tickets {
    background: var(--mft-neon);
    color: #000;
    position: relative;
    z-index: 3;
    padding-left: 40px;
    padding-right: 40px;
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0% 100%);
}

.mft-event-btn:hover {
    filter: brightness(1.2);
    z-index: 10;
}

/* ── Event Actions: Mobile Stack ─────────────────────────────────────── */
@media (max-width: 500px) {
    .mft-event-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .mft-event-btn {
        clip-path: none !important;
        margin-right: 0 !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        height: 44px;
        justify-content: center;
        font-size: 13px;
    }

    .mft-event-btn-info::before,
    .mft-event-btn-info::after,
    .mft-event-btn-lineup::before,
    .mft-event-btn-lineup::after {
        clip-path: none;
    }
}
/* --- Event Header Shortcode --- */
.mft-event-header-box {
    background: var(--mft-basalt);
    border: 1px solid var(--mft-zinc-800);
    padding: 30px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
}

@media (min-width: 600px) {
    .mft-event-header-box {
        padding: 40px;
        gap: 32px;
        margin-bottom: 48px;
    }
}

@media (min-width: 992px) {
    .mft-event-header-box {
        padding: 60px;
        gap: 40px;
        margin-bottom: 60px;
        flex-wrap: nowrap;
    }
}

.mft-event-header-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--mft-neon);
}

.mft-header-content {
    flex: 1;
}

.mft-header-meta {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mft-zinc-500);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.mft-header-sep {
    color: var(--mft-neon);
    font-weight: 900;
}

.mft-header-title {
    font-family: 'Epilogue', sans-serif;
    font-size: clamp(28px, 8vw, 64px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: clamp(-1px, -0.04em, -3px);
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    word-break: break-word;
}

.mft-header-ticket-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--mft-neon);
    color: #000;
    text-decoration: none;
    padding: 20px 40px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background 0.2s ease;
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0% 100%);
}

.mft-header-ticket-btn:hover {
    background: #fff;
}

.mft-header-ticket-btn .material-symbols-outlined {
    margin-left: 12px;
    font-size: 20px;
}

@media (max-width: 991px) {
    .mft-event-header-box {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .mft-header-actions {
        width: 100%;
    }

    .mft-header-ticket-btn {
        width: 100%;
    }
}

/* Terms & Conditions Acceptance */
.mft-terms-acceptance {
    background: rgba(255, 255, 255, 0.02);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: 40px 0;
    transition: all 0.3s ease;
}

.mft-terms-acceptance label {
    transition: color 0.3s ease;
}

.mft-terms-acceptance a {
    transition: all 0.3s ease;
}

.mft-terms-acceptance a:hover {
    color: #fff !important;
    border-bottom-color: var(--mft-neon) !important;
}

#mft-accept-terms {
    accent-color: var(--mft-neon);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.mft-checkbox-text {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
}

.mft-terms-acceptance.invalid {
    background: rgba(255, 59, 48, 0.08);
    box-shadow: 0 0 25px rgba(255, 59, 48, 0.15);
    animation: mftShake 0.5s ease-in-out;
}


@keyframes mftShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ── Shop Header & Session Bar ────────────────────────────────────────── */
.mft-shop-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--mft-zinc-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

@media (min-width: 769px) {
    .mft-shop-header {
        padding: 20px 48px;
    }
}

.mft-shop-session {
    padding: 10px 20px;
    background: rgba(0, 255, 65, 0.03);
    border-bottom: 1px solid var(--mft-zinc-800);
    font-family: monospace;
    font-size: 10px;
    color: var(--mft-neon);
    letter-spacing: 1.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 769px) {
    .mft-shop-session {
        padding: 12px 48px;
    }
}

/* ── Shop Card: Mobile Layout ─────────────────────────────────────────── */
@media (max-width: 600px) {
    .mft-card {
        padding: 24px 20px;
    }

    .mft-card-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .mft-card-actions {
        width: 100%;
        justify-content: space-between;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
}

/* ── Checkout Container: Responsive Padding ───────────────────────────── */
.mft-checkout-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    padding: 40px 20px;
}

@media (min-width: 769px) {
    .mft-checkout-container {
        padding: 60px 40px;
    }
}

@media (min-width: 1024px) {
    .mft-checkout-container {
        padding: 80px 40px;
    }
}

/* ── Responsive 2-Column Form Row ─────────────────────────────────────── */
.mft-form-row-2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 600px) {
    .mft-form-row-2col {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* ── Success Inline Card: Mobile ──────────────────────────────────────── */
@media (max-width: 600px) {
    .mft-success-inline {
        padding: 32px 20px !important;
        margin: 20px !important;
    }
}

/* OXYGEN MOBILE MENU CONTAINING BLOCK CORRECTION */
html.oxy-nav-menu-prevent-overflow body,
body.oxy-nav-menu-prevent-overflow {
    overflow: hidden !important;
}

html.oxy-nav-menu-prevent-overflow .oxy-header-wrapper,
html.oxy-nav-menu-prevent-overflow .oxy-sticky-header,
html.oxy-nav-menu-prevent-overflow .oxy-overlay-header,
html.oxy-nav-menu-prevent-overflow .oxy-header,
html.oxy-nav-menu-prevent-overflow .oxy-sticky-header-active,
html.oxy-nav-menu-prevent-overflow .oxy-header-row,
html.oxy-nav-menu-prevent-overflow #header,
body.oxy-nav-menu-prevent-overflow .oxy-header-wrapper,
body.oxy-nav-menu-prevent-overflow .oxy-sticky-header,
body.oxy-nav-menu-prevent-overflow .oxy-overlay-header,
body.oxy-nav-menu-prevent-overflow .oxy-header,
body.oxy-nav-menu-prevent-overflow .oxy-sticky-header-active,
body.oxy-nav-menu-prevent-overflow .oxy-header-row,
body.oxy-nav-menu-prevent-overflow #header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    filter: none !important;
    perspective: none !important;
    contain: none !important;
    will-change: auto !important;
}

