/* Event page layout */
.tf-event-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 16px 48px;
    font-family: 'Inter', 'Poppins', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at top left, #e0ecff 0, #f5f7fb 45%, #ffffff 100%);
    color: #111827;
    border-radius: 10px;
    overflow: hidden;
}

.tf-event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.tf-event-brand {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
}

.tf-event-brand-logo {
    max-height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.tf-event-brand span {
    color: #1e40ff;
}

.tf-event-match-meta {
    font-size: 0.9rem;
    color: #3b495f;
}

.tf-event-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    margin-bottom: 32px;
}

.tf-event-hero-copy {
    padding: 8px 0;
}

.tf-event-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ecf3ff;
    color: #1d4ed8;
    margin-bottom: 12px;
}

.tf-event-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

.tf-event-hero h1 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1.1;
    margin-bottom: 12px;
}

.tf-event-hero-subtitle {
    font-size: 0.98rem;
    color: #6b7280;
    margin-bottom: 18px;
}

.tf-event-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.tf-event-pill {
    font-size: 0.8rem;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.35);
    backdrop-filter: blur(4px);
}

.tf-event-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.9rem;
}

.tf-event-meta-block span {
    display: block;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #6b7280;
    margin-bottom: 4px;
}

.tf-event-meta-block strong {
    font-size: 0.96rem;
}

.tf-event-hero-image {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    min-height: 260px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    background: radial-gradient(circle at top left, #0f172a 0, #111827 30%, #020617 100%);
}

.tf-event-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    mix-blend-mode: lighten;
    opacity: 0.96;
}

.tf-event-hero-tag {
    position: absolute;
    left: 18px;
    bottom: 18px;
    background: rgba(15, 23, 42, 0.92);
    color: #e5e7eb;
    padding: 10px 14px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(148, 163, 184, 0.55);
}

.tf-event-hero-tag-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f97316;
}

.tf-event-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
    padding: 22px 24px;
}

.tf-event-sales-card {
    margin-bottom: 24px;
    padding: 18px 20px 20px;
}

.tf-event-sales-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.tf-event-sales-intro {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
    line-height: 1.4;
}

.tf-event-sales-outro {
    font-size: 0.92rem;
    font-style: italic;
    color: #374151;
    margin-top: 12px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.tf-event-sales-copy {
    color: #6b7280;
    margin-bottom: 10px;
    line-height: 1.45;
    font-size: 0.92rem;
}

.tf-event-sales-list {
    list-style: none;
    padding-left: 0;
    margin: 6px 0 10px;
}

.tf-event-sales-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    color: #6b7280;
    font-size: 0.9rem;
}

.tf-event-cta {
    margin-top: 8px;
    font-weight: 500;
    color: #111827;
    font-size: 0.92rem;
}

.tf-event-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 20px;
    align-items: flex-start;
}

.tf-event-tickets-card {
    padding-bottom: 32px;
}

.tf-event-card-header {
    margin-bottom: 16px;
}

.tf-event-card-title {
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #6b7280;
    margin-bottom: 6px;
}

.tf-event-card-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.tf-event-card-note {
    font-size: 0.82rem;
    color: #6b7280;
}

.tf-event-sales-status {
    margin-top: 10px;
    font-size: 0.86rem;
    font-weight: 600;
}

.tf-event-sales-status.is-open {
    color: #059669;
}

.tf-event-sales-status.is-closed {
    color: #b91c1c;
}

/* ── Sales Closed: top banner strip ───────────────────────────── */
.tf-sales-closed-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #7f1d1d;
    color: #fff;
    padding: 14px 24px;
    font-size: 0.95rem;
    line-height: 1.4;
    flex-wrap: wrap;
}

.tf-sales-closed-banner-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.tf-sales-closed-banner-text {
    flex: 1;
    min-width: 0;
}

.tf-sales-closed-banner-link {
    color: #fca5a5;
    font-weight: 700;
    text-decoration: underline;
    white-space: nowrap;
    flex-shrink: 0;
}

.tf-sales-closed-banner-link:hover {
    color: #fff;
}

/* ── Sales Closed: inline gate info panel ──────────────────────── */
.tf-sales-closed-panel {
    background: #fff7f7;
    border: 2px solid #fca5a5;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    margin: 8px 0;
}

.tf-sales-closed-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
    line-height: 1;
}

.tf-sales-closed-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #7f1d1d;
    margin: 0 0 10px;
    line-height: 1.3;
}

.tf-sales-closed-title em {
    font-style: normal;
    color: #991b1b;
}

.tf-sales-closed-body {
    font-size: 1.05rem;
    color: #374151;
    font-weight: 600;
    margin: 0 0 18px;
}

.tf-sales-closed-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 22px;
    text-align: left;
}

.tf-sales-closed-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #374151;
}

.tf-sales-closed-meta-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* availability table inside the panel */
.tf-sales-closed-availability {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    text-align: left;
}

.tf-sales-closed-avail-heading {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 12px;
}

.tf-sales-closed-types {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tf-sales-closed-type-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.tf-sales-closed-type-row--sold-out {
    opacity: 0.6;
}

.tf-sales-closed-type-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #111827;
}

.tf-sales-closed-type-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tf-sales-closed-type-price {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
}

/* availability badges */
.tf-avail-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.tf-avail-badge--ok {
    background: #dcfce7;
    color: #166534;
}

.tf-avail-badge--low {
    background: #fef9c3;
    color: #854d0e;
}

.tf-avail-badge--critical {
    background: #fee2e2;
    color: #991b1b;
    animation: tf-pulse-badge 1.5s ease-in-out infinite;
}

.tf-avail-badge--sold-out {
    background: #f3f4f6;
    color: #9ca3af;
    text-decoration: line-through;
}

.tf-avail-badge--unknown {
    background: #e0f2fe;
    color: #0369a1;
}

@keyframes tf-pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

.tf-sales-closed-note {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0;
    font-style: italic;
}

@media (max-width: 600px) {
    .tf-sales-closed-banner {
        padding: 12px 16px;
        font-size: 0.88rem;
    }

    .tf-sales-closed-type-row {
        grid-template-columns: 1fr auto;
        gap: 8px;
    }

    .tf-sales-closed-type-price {
        display: none;
    }
}

/* ── FOMO Availability Badges ──────────────────────────────────── */
.tf-fomo-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-top: 5px;
    white-space: nowrap;
}

.tf-fomo-badge--ok {
    background: #dcfce7;
    color: #166534;
}

.tf-fomo-badge--selling-fast {
    background: #fef9c3;
    color: #854d0e;
}

.tf-fomo-badge--limited {
    background: #ffedd5;
    color: #9a3412;
}

.tf-fomo-badge--almost-gone {
    background: #fee2e2;
    color: #991b1b;
}

.tf-fomo-badge--last-few {
    background: #fee2e2;
    color: #991b1b;
    animation: tf-fomo-pulse 1.4s ease-in-out infinite;
}

.tf-fomo-badge--sold-out {
    background: #f3f4f6;
    color: #9ca3af;
}

@keyframes tf-fomo-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.75; transform: scale(1.03); }
}

/* ── FOMO row highlight ────────────────────────────────────────── */
.tf-ticket-row.tf-fomo-row--last-few {
    background: #fff5f5;
    border-color: #fca5a5;
}

.tf-ticket-row.tf-fomo-row--almost-gone {
    background: #fff8f8;
    border-color: #fcd4d4;
}

.tf-ticket-row.tf-fomo-row--limited {
    background: #fffbf0;
    border-color: #fed7aa;
}

/* ── Availability progress bar ─────────────────────────────────── */
.tf-avail-bar {
    height: 5px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 6px;
    width: 100%;
    max-width: 160px;
}

.tf-avail-bar__fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.tf-avail-bar__fill--ok {
    background: #22c55e;
}

.tf-avail-bar__fill--selling-fast {
    background: #eab308;
}

.tf-avail-bar__fill--limited {
    background: #f97316;
}

.tf-avail-bar__fill--almost-gone {
    background: #ef4444;
}

.tf-avail-bar__fill--last-few {
    background: #dc2626;
}

.tf-event-card-footer {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: #6b7280;
    flex-wrap: wrap;
    gap: 8px;
}

.tf-event-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e3ebff;
    font-size: 0.78rem;
    color: #1d4ed8;
    font-weight: 500;
}

.tf-event-secure-badge svg {
    width: 12px;
    height: 12px;
}

.tf-event-map-card {
    font-size: 0.92rem;
}

.tf-event-map-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.tf-event-map-card p {
    color: #6b7280;
    margin-bottom: 10px;
    line-height: 1.45;
}

.tf-event-map-wrapper {
    margin-top: 6px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.tf-event-map-wrapper iframe {
    display: block;
    width: 100%;
    height: 260px;
    border: 0;
}

.tf-event-venue-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.86rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.tf-event-page-footer {
    margin-top: 32px;
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
}

@media (max-width: 880px) {
    .tf-event-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .tf-event-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .tf-event-page {
        padding: 20px 12px 32px;
    }

    .tf-event-card {
        padding: 18px 14px;
    }

    .tf-event-venue-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Event ticket purchase layout */
.tf-event-tickets {
    margin: 48px auto;
    max-width: 960px;
    padding: 0 16px;
    font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.tf-ticket-card {
    background: linear-gradient(145deg, #f6f8ff, #eef2ff);
    color: #0f172a;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.tf-ticket-card .tf-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #64748b;
    margin-bottom: 6px;
}

.tf-ticket-card h2 {
    font-size: 32px;
    margin: 0;
    color: #0f172a;
}

.tf-sales-status {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #475569;
}

.tf-sales-status.is-open {
    color: #059669;
}

.tf-sales-status.is-closed {
    color: #b91c1c;
}

.tf-ticket-notice {
    margin-top: 16px;
    padding: 16px 20px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 18px;
    color: #b91c1c;
    font-weight: 600;
    text-align: center;
}

.tf-ticket-table {
    margin-top: 28px;
    background: #f9fbff;
    border-radius: 32px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(4px);
}

.tf-ticket-table--preview {
    opacity: 0.85;
}

.tf-ticket-row--inactive {
    pointer-events: none;
}

.tf-ticket-row--inactive .tf-qty-btn,
.tf-ticket-row--inactive .tf-qty-input {
    opacity: 0.35;
    background: #f1f5f9;
    cursor: not-allowed;
}

.tf-ticket-row--inactive .tf-ticket-name {
    color: #64748b;
}

.tf-ticket-row--inactive .tf-ticket-price {
    color: #94a3b8;
}

.tf-cart-section--preview {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.tf-ticket-sales-window.tf-centered {
    text-align: center;
    padding: 24px 28px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-bottom: 2px solid #f59e0b;
}

.tf-ticket-header,
.tf-ticket-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    align-items: center;
    gap: 18px;
    padding: 18px 28px;
}

.tf-ticket-header {
    background: transparent;
    color: #475569;
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}


.tf-ticket-row {
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    background: #fff;
}

.tf-ticket-row:nth-child(even) {
    background: #f4f7ff;
}

.tf-ticket-row strong {
    font-size: 18px;
    color: #0f172a;
}

.tf-ticket-row p {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.tf-ticket-row input[type="number"] {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #cbd5f5;
    padding: 10px 12px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fdfdff;
}

.tf-ticket-row input[type="number"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.tf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    padding: 12px 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tf-button.tf-primary {
    background: linear-gradient(120deg, #2563eb, #3b82f6);
    color: #fff;
    box-shadow: 0 14px 35px rgba(37, 99, 235, 0.25);
    border-radius: 10px;
}

.tf-button.tf-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.3);
}

.tf-button.tf-primary:active {
    transform: translateY(0);
}

.tf-cart-button {
    border-radius: 999px;
    background: #fff;
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.4);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.15);
    padding: 10px 18px;
    font-size: 14px;
}

.tf-cart-button:hover {
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.2);
}

.tf-cart-count {
    background: #1d4ed8;
    color: #fff;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 720px) {
    .tf-ticket-card {
        padding: 24px;
    }

    .tf-ticket-table {
        border-radius: 16px;
    }

    .tf-ticket-header {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 6px;
        text-align: left;
    }

    .tf-ticket-header div {
        font-size: 11px;
        letter-spacing: 0.18em;
    }

    .tf-cart-button {
        width: 100%;
        justify-content: center;
    }

    .tf-ticket-row {
        grid-template-columns: 1fr;
        gap: 12px;
        border-radius: 20px;
        margin-bottom: 14px;
        padding: 16px;
        background: linear-gradient(180deg, #f8faff, #ffffff);
        box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    }

    .tf-ticket-row .tf-ticket-price,
    .tf-ticket-row .tf-ticket-qty {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .tf-ticket-row .tf-ticket-price::before,
    .tf-ticket-row .tf-ticket-qty::before {
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.18em;
        color: #94a3b8;
    }

    .tf-ticket-row .tf-ticket-price::before {
        content: 'Price';
    }

    .tf-ticket-row .tf-ticket-qty::before {
        content: 'Quantity';
    }

    .tf-ticket-row > div,
    .tf-ticket-row > button {
        width: 100%;
    }

    .tf-button.tf-primary {
        width: 100%;
    }
}

/* My Tickets cards */
.tf-my-tickets {
    margin-top: 32px;
    padding: 16px;
}

.tf-ticket-mini-grid {
    display: grid;
    gap: 18px;
}

.tf-ticket-mini {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.tf-ticket-mini__header {
    background: linear-gradient(135deg, #d90429, #ef4444);
    color: #fff;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}

.tf-ticket-mini__title {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.9;
    letter-spacing: 0.12em;
    margin: 0;
}

.tf-ticket-mini__event {
    margin: 2px 0 0;
    font-size: 17px;
    font-weight: 700;
}

.tf-ticket-mini__right {
    text-align: right;
    font-size: 11px;
    opacity: 0.9;
}

.tf-ticket-mini__status {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 4px;
}

.tf-ticket-mini__body {
    padding: 12px 14px 16px;
    display: flex;
    gap: 12px;
}

.tf-ticket-mini__info {
    flex: 1;
    font-size: 13px;
    color: #374151;
}

.tf-ticket-mini__line {
    margin-bottom: 8px;
}

.tf-ticket-mini__label {
    font-size: 10px;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 0.1em;
    display: block;
}

.tf-ticket-mini__value {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.tf-ticket-mini__qr {
    flex-shrink: 0;
    text-align: center;
}

.tf-ticket-mini__qr-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 4px;
}

.tf-ticket-mini__qr-box {
    width: 95px;
    height: 95px;
    border-radius: 10px;
    border: 2px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    overflow: hidden;
}

.tf-ticket-mini__qr-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tf-ticket-mini__link {
    font-size: 12px;
    font-weight: 600;
    color: #d90429;
    text-decoration: none;
}

.tf-ticket-mini__link:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .tf-ticket-mini__body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .tf-ticket-mini__info {
        width: 100%;
        text-align: left;
    }
}

/* Tabs for My Tickets */
.tf-ticket-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tf-ticket-tab {
    border: 1px solid #d8e0fb;
    border-radius: 999px;
    padding: 10px 20px;
    background: #f8f9ff;
    color: #1e293b;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.03em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.tf-ticket-tab:hover {
    background: #eef2ff;
}

.tf-ticket-tab__count {
    background: #e0e7ff;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px;
}

.tf-ticket-tab.is-active {
    background: linear-gradient(135deg, #1d4ed8, #312e81);
    border-color: #1d4ed8;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(31, 41, 55, 0.25);
}

.tf-ticket-tab.is-active .tf-ticket-tab__count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.tf-ticket-panel {
    display: none;
}

.tf-ticket-panel.is-active {
    display: block;
}

/* Demo Mode Styles */
.tf-demo-mode-button {
    cursor: pointer !important;
}

.tf-demo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.tf-demo-modal.is-visible {
    display: flex;
}

.tf-demo-modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.tf-demo-modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.tf-demo-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.tf-demo-modal-message {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.5;
}

.tf-demo-modal-close {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.tf-demo-modal-close:hover {
    background: #2563eb;
}

/* Unified Cart Styles */
.tf-unified-form {
    position: relative;
}

.tf-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.tf-qty-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tf-qty-btn:hover:not(:disabled) {
    border-color: #3b82f6;
    background: #f8fafc;
    transform: translateY(-1px);
}

.tf-qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.tf-qty-input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    background: #f8fafc;
    color: #1e293b;
}

.tf-unified-cart-section {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.tf-unified-cart-section.tf-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.tf-cart-summary {
    margin-bottom: 16px;
    text-align: center;
}

.tf-cart-summary-text {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.tf-total-tickets,
.tf-total-price {
    color: #3b82f6;
    font-weight: 700;
}

.tf-separator {
    margin: 0 8px;
    color: #94a3b8;
}

.tf-cart-button-container {
    text-align: center;
}

.tf-button.tf-large {
    font-size: 18px;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 12px;
    min-height: 56px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tf-button.tf-large:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.tf-button.tf-large:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.tf-button.tf-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.tf-button.tf-large:hover:not(:disabled)::before {
    left: 100%;
}

/* Stock Warning Styles */
.tf-ticket-stock-warning {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.tf-stock-low .tf-ticket-stock-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

.tf-stock-critical .tf-ticket-stock-warning {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tf-unified-cart-section {
        margin-top: 16px;
        padding: 16px;
    }
    
    .tf-cart-summary-text {
        font-size: 14px;
    }
    
    .tf-button.tf-large {
        font-size: 16px;
        padding: 14px 24px;
        min-height: 50px;
    }
    
    .tf-qty-controls {
        gap: 6px;
    }
    
    .tf-qty-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .tf-qty-input {
        width: 45px;
        height: 32px;
        font-size: 14px;
    }
}
