/* 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;
}

.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;
}

.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-header,
.tf-ticket-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 170px;
    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-header__action {
    justify-self: flex-end;
}

.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-ticket-header__action {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .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;
}
