/* TicketX NEON AFTERHOURS — additive cyberpunk layer over existing 24TK X tokens.
   Does not replace app.css; enhances glow, motion, imagery, and chrome only. */

:root {
    --tkx-neon-lime: #d7ff3f;
    --tkx-neon-cyan: #58f6ff;
    --tkx-neon-pink: #ff67da;
    --tkx-neon-violet: #ad8bff;
    --tkx-neon-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --tkx-portal-url: url("../assets/cyberpunk/artwork/aurora.svg");
}

/* -------------------------------------------------------------------------- */
/* Global atmosphere                                                          */
/* -------------------------------------------------------------------------- */

html[data-theme="dark"] body {
    background-image:
        radial-gradient(ellipse at 88% 8%, rgba(173, 139, 255, 0.12), transparent 42%),
        radial-gradient(ellipse at 12% 18%, rgba(88, 246, 255, 0.06), transparent 36%),
        linear-gradient(180deg, #06080b 0%, var(--tkx-canvas) 28%, var(--tkx-canvas) 100%);
    background-attachment: fixed;
}

.tkx-scan-texture {
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
    opacity: 0.035;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.55) 0 1px,
        transparent 1px 4px
    );
}

.tkx-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    width: 0;
    height: 2px;
    background: var(--tkx-neon-lime);
    box-shadow: 0 0 12px rgba(215, 255, 63, 0.7);
    pointer-events: none;
}

/* -------------------------------------------------------------------------- */
/* Brand / header                                                             */
/* -------------------------------------------------------------------------- */

.tkx-site-header {
    border-bottom-color: color-mix(in srgb, var(--tkx-neon-lime) 18%, var(--tkx-border-subtle));
}

.tkx-brand-mark--cyber {
    width: 1.85rem;
    height: 1.85rem;
    display: block;
    flex: 0 0 auto;
    filter: drop-shadow(0 0 10px rgba(215, 255, 63, 0.35));
}

.tkx-brand-word > span {
    color: var(--tkx-neon-lime);
    text-shadow: 0 0 18px rgba(215, 255, 63, 0.28);
}

.tkx-nav a[aria-current="page"] {
    box-shadow:
        0 0.5rem 1.5625rem rgba(215, 255, 63, 0.28),
        0 0 0 1px rgba(215, 255, 63, 0.35);
}

.tkx-header-actions .tkx-button-secondary:hover {
    border-color: var(--tkx-neon-lime);
    color: var(--tkx-neon-lime);
    box-shadow: 0 0 24px rgba(215, 255, 63, 0.12);
}

.tkx-fx-control {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: var(--tkx-target);
    padding: 0 0.7rem;
    border: 0.0625rem solid var(--tkx-border-subtle);
    border-radius: var(--tkx-radius-sm);
    background: transparent;
    color: var(--tkx-neon-lime);
    font-family: var(--tkx-font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: border-color var(--tkx-duration-micro) var(--tkx-ease), background var(--tkx-duration-micro) var(--tkx-ease);
}

.tkx-fx-control:hover,
.tkx-fx-control:focus-visible {
    border-color: var(--tkx-neon-lime);
    background: rgba(215, 255, 63, 0.06);
}

.tkx-fx-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 0.9rem;
}

.tkx-fx-bars i {
    display: block;
    width: 2px;
    background: currentColor;
    animation: tkx-eq 1.2s ease-in-out infinite alternate;
}

.tkx-fx-bars i:nth-child(1) { height: 0.45rem; }
.tkx-fx-bars i:nth-child(2) { height: 0.75rem; animation-delay: -0.4s; }
.tkx-fx-bars i:nth-child(3) { height: 0.55rem; animation-delay: -0.8s; }

@keyframes tkx-eq {
    to { transform: scaleY(0.35); }
}

/* -------------------------------------------------------------------------- */
/* Buttons — sheen pass                                                       */
/* -------------------------------------------------------------------------- */

.tkx-button {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition:
        transform var(--tkx-duration-component) var(--tkx-neon-ease),
        box-shadow var(--tkx-duration-component) var(--tkx-neon-ease),
        border-color var(--tkx-duration-micro) var(--tkx-ease),
        background var(--tkx-duration-micro) var(--tkx-ease);
}

.tkx-button::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.28) 45%, transparent 70%);
    transform: translateX(-110%);
    transition: transform 0.65s var(--tkx-neon-ease);
    pointer-events: none;
}

.tkx-button:hover::after,
.tkx-button:focus-visible::after {
    transform: translateX(110%);
}

.tkx-button-primary {
    background: var(--tkx-neon-lime);
    border-color: var(--tkx-neon-lime);
    color: var(--tkx-on-accent);
    box-shadow: 0 0 22px rgba(215, 255, 63, 0.18);
}

.tkx-button-primary:hover {
    box-shadow: 0 0 14px rgba(215, 255, 63, 0.55), 0 0 45px rgba(215, 255, 63, 0.22);
    transform: translateY(-2px);
}

/* -------------------------------------------------------------------------- */
/* Hero — portal, orbits, holographic ticket                                  */
/* -------------------------------------------------------------------------- */

.tkx-hero {
    position: relative;
    isolation: isolate;
    margin-bottom: var(--tkx-space-7);
    border-bottom: 0.0625rem solid var(--tkx-border-subtle);
}

.tkx-hero::before {
    content: "";
    position: absolute;
    inset: -8% -4% auto;
    height: 70%;
    z-index: -1;
    background:
        radial-gradient(ellipse at 78% 40%, rgba(51, 20, 76, 0.35), transparent 55%),
        linear-gradient(90deg, transparent 49.9%, rgba(255, 255, 255, 0.03) 50%, transparent 50.1%);
    background-size: auto, 5rem 5rem;
    pointer-events: none;
}

.tkx-hook-word--signal {
    color: var(--tkx-neon-lime);
    font-style: normal;
    text-shadow: 0 0 28px rgba(215, 255, 63, 0.25);
}

.tkx-eyebrow {
    color: var(--tkx-neon-lime);
    font-family: var(--tkx-font-mono);
    letter-spacing: 0.13em;
}

.tkx-hero-search {
    border-color: color-mix(in srgb, var(--tkx-neon-lime) 35%, var(--tkx-border));
    background: linear-gradient(100deg, #131914, #0f1319);
}

.tkx-hero-search:focus-within {
    border-color: var(--tkx-neon-lime);
    box-shadow: 0 0 30px rgba(215, 255, 63, 0.12);
}

.tkx-hero-search__icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--tkx-neon-lime);
    flex: 0 0 auto;
}

.tkx-hero-stage {
    min-height: 32rem;
    perspective: 1000px;
}

.tkx-hero-stage::before {
    opacity: 0.42;
    background:
        radial-gradient(ellipse at 62% 35%, rgba(255, 33, 192, 0.22), transparent 54%),
        radial-gradient(ellipse at 25% 60%, rgba(64, 250, 255, 0.16), transparent 60%),
        radial-gradient(circle, var(--tkx-neon-violet) 0, transparent 68%);
    animation: tkx-aurora 12s ease-in-out infinite alternate;
}

.tkx-hero-portal {
    position: absolute;
    inset: -1rem -2.5rem -0.5rem -0.75rem;
    width: calc(100% + 3.25rem);
    height: calc(100% + 1.5rem);
    object-fit: cover;
    opacity: 0.68;
    mix-blend-mode: screen;
    filter: saturate(1.4);
    pointer-events: none;
    mask-image: radial-gradient(ellipse at 50% 45%, #000 40%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 40%, transparent 72%);
    animation: tkx-portal-drift 18s ease-in-out infinite alternate;
}

.tkx-hero-orbit {
    position: absolute;
    inset: auto;
    left: 50%;
    top: 50%;
    width: 28rem;
    height: 28rem;
    margin: -14rem;
    border: 0.0625rem solid rgba(179, 255, 98, 0.28);
    border-radius: 50%;
    transform: rotate(-25deg) scaleY(0.65);
    box-shadow: 0 0 30px rgba(173, 139, 255, 0.08);
    pointer-events: none;
    animation: none;
}

.tkx-hero-stage::after {
    display: none;
}

.tkx-hero-orbit::after {
    content: "";
    position: absolute;
    left: 49%;
    top: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tkx-neon-lime);
    box-shadow: 0 0 18px var(--tkx-neon-lime);
}

.tkx-hero-orbit--dashed {
    width: 31rem;
    height: 31rem;
    margin: -15.5rem;
    border-style: dashed;
    border-color: rgba(88, 246, 255, 0.28);
    transform: rotate(55deg) scaleY(0.68);
    animation: tkx-orbit-spin 38s linear infinite;
}

.tkx-hero-live {
    position: absolute;
    right: 0;
    top: 18%;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1rem;
    background: rgba(12, 16, 23, 0.92);
    border: 0.0625rem solid rgba(88, 246, 255, 0.5);
    box-shadow: 0 0 28px rgba(88, 246, 255, 0.12);
    pointer-events: none;
}

.tkx-hero-live strong {
    display: block;
    color: var(--tkx-neon-cyan);
    font-family: var(--tkx-font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
}

.tkx-hero-live small {
    display: block;
    margin-top: 0.25rem;
    color: var(--tkx-text-muted);
    font-family: var(--tkx-font-mono);
    font-size: 0.5625rem;
}

.tkx-hero-live__dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--tkx-neon-cyan);
    box-shadow: 0 0 12px var(--tkx-neon-cyan);
    position: relative;
}

.tkx-hero-live__dot::after {
    content: "";
    position: absolute;
    inset: -5px;
    border: 1px solid var(--tkx-neon-cyan);
    border-radius: 50%;
    animation: tkx-signal 3s ease-out infinite;
}

.tkx-hero-sticker {
    position: absolute;
    left: 0;
    top: 72%;
    z-index: 3;
    padding: 0.85rem 1.1rem;
    background: var(--tkx-neon-violet);
    color: #120e19;
    border: 0.0625rem solid #dac3ff;
    box-shadow: 4px 6px 0 rgba(0, 0, 0, 0.45);
    transform: rotate(-7deg);
    font-family: var(--tkx-font-display);
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    animation: tkx-sticker-float 8s ease-in-out infinite;
    pointer-events: none;
}

.tkx-hero-sticker small {
    display: block;
    margin-top: 0.4rem;
    font-family: var(--tkx-font-mono);
    font-size: 0.5625rem;
    letter-spacing: 0.08em;
}

.tkx-hero-ticket {
    transform: rotate(-8deg);
    animation: tkx-ticket-float 6s ease-in-out infinite;
    border-color: rgba(164, 184, 186, 0.7);
    box-shadow:
        1rem 1.35rem 0 rgba(0, 0, 0, 0.2),
        0 0 1.5rem rgba(177, 242, 197, 0.12),
        0 1.875rem 4.375rem rgba(0, 0, 0, 0.65);
}

.tkx-hero-ticket::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(
        125deg,
        transparent 15%,
        rgba(209, 253, 255, 0.08) 30%,
        rgba(255, 255, 255, 0.22) 40%,
        rgba(202, 170, 238, 0.05) 55%,
        transparent 60%
    );
    background-size: 300% 300%;
    mix-blend-mode: screen;
    animation: tkx-holo 8s ease-in-out infinite;
}

.tkx-hero-ticket__head {
    background: var(--tkx-neon-lime);
    color: #06080b;
}

.tkx-hero-ticket__art {
    position: relative;
}

.tkx-hero-ticket__art-img {
    position: absolute;
    inset: -20% -10% 0;
    width: calc(100% + 20%);
    height: calc(100% + 20%);
    object-fit: cover;
    opacity: 0.78;
    mix-blend-mode: screen;
    pointer-events: none;
}

.tkx-hero-stage__note {
    position: relative;
    z-index: 2;
    max-width: 28rem;
    margin: 1.25rem auto 0;
    color: var(--tkx-text-muted);
    font-size: 0.75rem;
    line-height: 1.7;
    text-align: center;
}

/* -------------------------------------------------------------------------- */
/* Signal marquee (additive home section)                                     */
/* -------------------------------------------------------------------------- */

.tkx-signal-marquee {
    overflow: hidden;
    margin: 0 0 var(--tkx-space-7);
    border-block: 0.0625rem solid var(--tkx-border-subtle);
    background: var(--tkx-neon-lime);
    color: #06080b;
    height: 2.85rem;
    display: flex;
    align-items: center;
}

.tkx-signal-marquee__track {
    display: flex;
    gap: 1.75rem;
    width: max-content;
    white-space: nowrap;
    font-family: var(--tkx-font-mono);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    animation: tkx-marquee 36s linear infinite;
}

.tkx-signal-marquee__track span {
    display: inline-flex;
    align-items: center;
    gap: 1.75rem;
}

.tkx-signal-marquee__track b {
    font-size: 1.35rem;
    line-height: 1;
}

.tkx-signal-marquee:hover .tkx-signal-marquee__track,
.tkx-signal-marquee:focus-within .tkx-signal-marquee__track {
    animation-play-state: paused;
}

/* -------------------------------------------------------------------------- */
/* Cards / sections                                                           */
/* -------------------------------------------------------------------------- */

.tkx-event-card {
    transition: transform 0.45s var(--tkx-neon-ease), box-shadow 0.4s var(--tkx-neon-ease);
}

.tkx-event-card:hover,
.tkx-event-card:focus-within {
    transform: translateY(-4px);
    filter: drop-shadow(0 0 16px rgba(166, 139, 255, 0.18));
}

.tkx-event-card:hover .tkx-event-card__art,
.tkx-event-card:focus-within .tkx-event-card__art {
    border-color: var(--tkx-neon-lime);
    box-shadow: 0 0 25px rgba(215, 255, 63, 0.14);
}

.tkx-event-card__cyber-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    mix-blend-mode: screen;
    pointer-events: none;
    transition: transform 0.8s var(--tkx-neon-ease), filter 0.8s var(--tkx-neon-ease);
}

.tkx-event-card:hover .tkx-event-card__cyber-art,
.tkx-event-card:focus-within .tkx-event-card__cyber-art {
    transform: scale(1.08);
    filter: saturate(1.35);
}

.tkx-standard-step:hover,
.tkx-assurance-step:hover,
.tkx-logo-rail__item:hover {
    box-shadow: inset 0 0 28px rgba(88, 246, 255, 0.08);
}

.tkx-collection-card {
    position: relative;
    overflow: hidden;
}

.tkx-collection-card::before {
    content: "";
    position: absolute;
    inset: auto -10% -30%;
    height: 60%;
    background: radial-gradient(circle, rgba(173, 139, 255, 0.22), transparent 70%);
    pointer-events: none;
}

/* -------------------------------------------------------------------------- */
/* Footer wordmark                                                            */
/* -------------------------------------------------------------------------- */

.tkx-footer-word {
    grid-column: 1 / -1;
    margin: 0.5rem 0 0.25rem;
    font-family: var(--tkx-font-display);
    font-size: clamp(4.5rem, 16vw, 14rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.09em;
    color: #181f25;
    user-select: none;
    pointer-events: none;
}

.tkx-footer-word span {
    color: var(--tkx-neon-lime);
    text-shadow: 0 0 40px rgba(215, 255, 63, 0.2);
}

.tkx-footer-cybermark {
    display: block;
    width: min(14rem, 100%);
    height: auto;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.tkx-site-footer {
    background:
        radial-gradient(ellipse at 20% 0%, rgba(215, 255, 63, 0.05), transparent 45%),
        var(--tkx-surface);
}

/* -------------------------------------------------------------------------- */
/* Motion keyframes                                                           */
/* -------------------------------------------------------------------------- */

@keyframes tkx-portal-drift {
    to { transform: rotate(10deg) scale(1.1); }
}

@keyframes tkx-ticket-float {
    0%, 100% { transform: translateY(0) rotate(-8deg); }
    50% { transform: translateY(-1rem) rotate(-5deg); }
}

@keyframes tkx-sticker-float {
    0%, 100% { transform: translateY(0) rotate(-7deg); }
    50% { transform: translateY(-0.55rem) rotate(-10deg); }
}

@keyframes tkx-aurora {
    to {
        transform: translate(-2rem, 1.75rem) scale(1.15);
        opacity: 0.7;
    }
}

@keyframes tkx-orbit-spin {
    to { transform: rotate(415deg) scaleY(0.68); }
}

@keyframes tkx-holo {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

@keyframes tkx-signal {
    0% { transform: scale(0.65); opacity: 0.7; }
    100% { transform: scale(1.8); opacity: 0; }
}

@keyframes tkx-marquee {
    to { transform: translateX(-50%); }
}

/* -------------------------------------------------------------------------- */
/* FX intensity + reduced motion                                              */
/* -------------------------------------------------------------------------- */

body[data-fx="low"] .tkx-hero-portal,
body[data-fx="low"] .tkx-hero-orbit--dashed,
body[data-fx="low"] .tkx-hero-ticket,
body[data-fx="low"] .tkx-hero-sticker,
body[data-fx="low"] .tkx-hero-ticket::after,
body[data-fx="low"] .tkx-signal-marquee__track,
body[data-fx="low"] .tkx-hero-stage::before,
body[data-fx="low"] .tkx-fx-bars i {
    animation: none;
}

body[data-fx="low"] .tkx-scan-texture {
    display: none;
}

body[data-fx="off"] .tkx-hero-portal,
body[data-fx="off"] .tkx-hero-orbit--dashed,
body[data-fx="off"] .tkx-hero-ticket,
body[data-fx="off"] .tkx-hero-sticker,
body[data-fx="off"] .tkx-hero-ticket::after,
body[data-fx="off"] .tkx-signal-marquee__track,
body[data-fx="off"] .tkx-hero-stage::before,
body[data-fx="off"] .tkx-fx-bars i,
body[data-fx="off"] .tkx-button::after,
body[data-fx="off"] .tkx-hero-live__dot::after {
    animation: none !important;
    transition: none !important;
}

body[data-fx="off"] .tkx-scan-texture,
body[data-fx="off"] .tkx-scroll-progress {
    display: none !important;
}

body[data-fx="off"] .tkx-button:hover,
body[data-fx="off"] .tkx-event-card:hover {
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .tkx-hero-portal,
    .tkx-hero-orbit--dashed,
    .tkx-hero-ticket,
    .tkx-hero-sticker,
    .tkx-hero-ticket::after,
    .tkx-signal-marquee__track,
    .tkx-hero-stage::before,
    .tkx-fx-bars i,
    .tkx-hero-live__dot::after,
    .tkx-button::after {
        animation: none !important;
        transition: none !important;
    }

    .tkx-scan-texture,
    .tkx-scroll-progress {
        display: none !important;
    }

    .tkx-button:hover,
    .tkx-event-card:hover {
        transform: none;
    }
}

/* -------------------------------------------------------------------------- */
/* Responsive polish                                                          */
/* -------------------------------------------------------------------------- */

@media (max-width: 700px) {
    .tkx-hero-stage {
        min-height: 24rem;
    }

    .tkx-hero-orbit {
        width: 18rem;
        height: 18rem;
        margin: -9rem;
    }

    .tkx-hero-orbit--dashed {
        width: 21rem;
        height: 21rem;
        margin: -10.5rem;
    }

    .tkx-hero-live small {
        display: none;
    }

    .tkx-hero-sticker {
        font-size: 0.95rem;
        padding: 0.7rem 0.85rem;
    }

    .tkx-fx-control .tkx-fx-bars {
        display: none;
    }

    .tkx-footer-word {
        font-size: 16vw;
    }
}

@media (max-width: 950px) {
    .tkx-fx-control {
        display: none;
    }
}
