
/* Page background + layout */
.ticket-details-page {
    min-height: 100vh;
    padding: 3rem 1rem;
    background: radial-gradient(circle at top left, #4f46e5 0, #111827 40%, #020617 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}


/* Subtle floating animation for the main card */
@keyframes floatCard {
    0%   { transform: translateY(0); box-shadow: 0 24px 60px rgba(0,0,0,0.55); }
    50%  { transform: translateY(-6px); box-shadow: 0 30px 80px rgba(79,70,229,0.55); }
    100% { transform: translateY(0); box-shadow: 0 24px 60px rgba(0,0,0,0.55); }
}

/* Glow ring behind the card */
.ticket-glow-orb {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 70%;
    max-width: 680px;
    height: 70%;
    max-height: 420px;
    background: radial-gradient(circle, rgba(129,140,248,0.45), transparent 60%);
    filter: blur(12px);
    opacity: 0.7;
    z-index: 0;
    pointer-events: none;
}

.ticket-main-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 880px;
    z-index: 1;
}

.ticket-main-card {
    background: linear-gradient(135deg, rgba(15,23,42,0.96), rgba(30,64,175,0.96));
    border-radius: 1.5rem;
    border: 1px solid rgba(148,163,184,0.35);
    backdrop-filter: blur(16px);
    animation: floatCard 9s ease-in-out infinite;
    overflow: hidden;
}

/* Card header with gradient + glow line */
.ticket-main-card .card-header {
    position: relative;
     background: linear-gradient(120deg, #6366f1, #ec4899, #7f1d1d);
    border-bottom: none;
    padding-top: 2.5rem;
    padding-bottom: 2.2rem;
}

.ticket-main-card .card-header::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 90%;
    transform: translateX(-50%);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(248,250,252,0.9), transparent);
    opacity: 0.8;
}

.ticket-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .25rem .75rem;
    border-radius: 999px;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    background: rgba(15,23,42,0.25);
    border: 1px solid rgba(248,250,252,0.35);
    box-shadow: 0 0 14px rgba(15,23,42,0.5);
}

.ticket-pill-dot {
    width: .45rem;
    height: .45rem;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34,197,94,0.9);
}

.ticket-main-card h1.h3 {
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.ticket-sub-info {
    font-size: .9rem;
    opacity: .85;
}

/* Sections & labels */
.ticket-section-title {
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #9ca3af;
    margin-bottom: .75rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.ticket-section-title::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(circle, #f97316, transparent);
    box-shadow: 0 0 10px rgba(249,115,22,0.9);
}

.ticket-section {
    border-radius: 1rem;
    border: 1px solid rgba(148,163,184,0.3);
    background: radial-gradient(circle at top left, rgba(148,163,184,0.18), rgba(15,23,42,0.9));
    padding: 1.4rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.ticket-section::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 180deg, rgba(96,165,250,0.18), transparent, rgba(244,114,182,0.18), transparent);
    opacity: 0;
    transition: opacity .5s ease;
    pointer-events: none;
}

.ticket-section:hover::before {
    opacity: 1;
}

.ticket-section dl {
    margin-bottom: 0;
    font-size: .9rem;
    color: #e5e7eb;
}

.ticket-section dt {
    font-weight: 500;
    color: #9ca3af;
}

.ticket-section dd {
    margin-bottom: .5rem;
    font-weight: 600;
}

/* Attendee + QR layout */
.ticket-meta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.ticket-meta-col {
    position: relative;
}


/* On mobile, stack and remove divider */
@media (max-width: 767.98px) {
    .ticket-meta-grid {
        grid-template-columns: 1fr;
    }
}

/* QR area */
.ticket-qr-wrapper {
    border-radius: 1rem;
    padding: 1rem;
    background: radial-gradient(circle at top, rgba(148,163,184,0.2), rgba(15,23,42,0.95));
    border: 1px dashed rgba(148,163,184,0.5);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.ticket-qr-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(37,99,235,0.6);
    border-color: rgba(129,140,248,0.9);
}

.ticket-qr-image {
    background: radial-gradient(circle, rgba(15,23,42,1), rgba(30,64,175,0.8));
    border-radius: 1rem;
    padding: .6rem;
    box-shadow: 0 0 30px rgba(37,99,235,0.8);
}

@keyframes qrPulse {
    0% {
        box-shadow: 0 0 26px rgba(96, 165, 250, 0.9),
                    0 0 0 rgba(59, 130, 246, 0.0);
    }
    50% {
        box-shadow: 0 0 40px rgba(129, 140, 248, 1),
                    0 0 18px rgba(37, 99, 235, 0.7);
    }
    100% {
        box-shadow: 0 0 26px rgba(96, 165, 250, 0.9),
                    0 0 0 rgba(59, 130, 246, 0.0);
    }
}
/* Apply subtle pulse to QR block */
.ticket-qr-image {
    animation: qrPulse 3s ease-in-out infinite;
}


/* Event description */
.ticket-event-info {
    border-radius: 1.1rem;
    border: 1px solid rgba(148,163,184,0.3);
    padding: 1.6rem 1.7rem;
    background: radial-gradient(circle at top right, rgba(52,211,153,0.14), rgba(15,23,42,0.96));
    color: #e5e7eb;
}

.ticket-event-info .lead {
    font-size: .98rem;
    color: #e5e7eb;
}

.ticket-event-info strong {
    color: #f9fafb;
}

/* Footer buttons with gradient + glow */
.ticket-footer {
    border-top: 1px solid rgba(148,163,184,0.4);
    background: linear-gradient(90deg, rgba(15,23,42,0.95), rgba(15,23,42,0.8));
}

.ticket-footer .btn {
    border-radius: 999px;
    font-size: .85rem;
    padding: .55rem 1.3rem;
    border-width: 0;
    position: relative;
    overflow: hidden;
}

.ticket-footer .btn-secondary {
    background: linear-gradient(135deg, #111827, #374151);
    color: #e5e7eb;
}

.ticket-footer .btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563, #111827);
    color: #f9fafb;
    box-shadow: 0 0 18px rgba(156,163,175,0.8);
}

.ticket-footer .btn-primary-glow {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: #f9fafb;
    box-shadow: 0 0 20px rgba(236,72,153,0.6);
}

.ticket-footer .btn-primary-glow:hover {
    box-shadow: 0 0 30px rgba(129,140,248,0.9);
    transform: translateY(-1px);
}

.ticket-footer-links {
    gap: .75rem;
    flex-wrap: wrap;
}

/* Small shimmer underline for the page label above the card */
.ticket-page-label {
    font-size: .8rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: .8rem;
    position: relative;
    display: inline-block;
}

.ticket-page-label::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    box-shadow: 0 0 10px rgba(250,204,21,0.8);
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
    .ticket-details-page {
        padding-top: 6.5rem;
        padding-bottom: 4rem;
    }
    .ticket-section {
        padding: 1.2rem 1.1rem;
    }
    .ticket-event-info {
        padding: 1.3rem 1.1rem;
    }
}
/* Make QR caption text readable on dark background */
.ticket-qr-wrapper p,
.ticket-qr-wrapper .small {
    color: #e5e7eb !important;  /* soft white/cream */
    opacity: 0.9;
}
