
        @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
        body { font-family: 'Poppins', sans-serif; background-color: var(--bg-darker, #020617); color: var(--text-color, #f8fafc); overflow-x: hidden; }

        .glass { background: var(--bg-nav, rgba(15, 23, 42, 0.6)); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1); }
        .glass-card { background: linear-gradient(145deg, var(--bg-card, rgba(30, 41, 59, 0.7)), var(--bg-darker, rgba(15, 23, 42, 0.9))); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.05); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5); }
        .glass-card-hover:hover { transform: translateY(-5px); border-color: var(--color-primary, rgba(245, 158, 11, 0.3)); box-shadow: 0 10px 40px 0 var(--color-primary, rgba(245, 158, 11, 0.15)); transition: all 0.3s ease; }

        .glow-button { transition: all 0.3s ease; box-shadow: 0 0 15px var(--color-primary, rgba(245, 158, 11, 0.4)); background-color: var(--color-btn, #f59e0b) !important; color: #020617 !important; border: none; cursor: pointer; }
        .glow-button:hover { box-shadow: 0 0 25px var(--color-primary, rgba(245, 158, 11, 0.8)); transform: translateY(-2px); }

        .page, .admin-tab { display: none; animation: fadeIn 0.5s ease forwards; }
        .page.active, .admin-tab.active { display: block; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

        html.tk-app-loading, html.tk-app-loading body { overflow: hidden !important; }
        #loading-overlay {
            position: fixed;
            inset: 0;
            z-index: 100000;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            background:
                radial-gradient(circle at 50% 42%, rgba(34, 211, 238, 0.24), transparent 30%),
                radial-gradient(circle at 24% 22%, rgba(168, 85, 247, 0.22), transparent 34%),
                radial-gradient(circle at 78% 76%, rgba(251, 191, 36, 0.18), transparent 32%),
                linear-gradient(145deg, #07122b 0%, #101b45 48%, #170b35 100%);
            transition: opacity 0.55s ease, visibility 0.55s ease;
        }
        #loading-overlay::before,
        #loading-overlay::after {
            content: '';
            position: absolute;
            width: min(74vw, 520px);
            aspect-ratio: 1;
            border-radius: 999px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 0 80px rgba(34, 211, 238, 0.12);
            animation: tkSplashOrbit 4.5s ease-in-out infinite alternate;
        }
        #loading-overlay::after {
            width: min(50vw, 350px);
            animation-delay: -1.5s;
            animation-duration: 3.6s;
        }
        #loading-overlay.is-hiding {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }
        .tk-splash-logo {
            position: relative;
            z-index: 2;
            display: block;
            width: min(64vw, 310px);
            height: auto;
            object-fit: contain;
            filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.38)) drop-shadow(0 0 24px rgba(34, 211, 238, 0.22));
            animation: tkSplashPulse 1.8s ease-in-out infinite;
        }
        @keyframes tkSplashPulse {
            0%, 100% { transform: translateY(0) scale(1); opacity: 0.94; }
            50% { transform: translateY(-5px) scale(1.035); opacity: 1; }
        }
        @keyframes tkSplashOrbit {
            from { transform: scale(0.92) rotate(-4deg); opacity: 0.45; }
            to { transform: scale(1.08) rotate(4deg); opacity: 0.9; }
        }
        @media (max-width: 640px) {
            .tk-splash-logo { width: min(72vw, 265px); }
            #loading-overlay::before { width: min(92vw, 430px); }
            #loading-overlay::after { width: min(66vw, 300px); }
        }
        @media (prefers-reduced-motion: reduce) {
            .tk-splash-logo, #loading-overlay::before, #loading-overlay::after { animation: none !important; }
        }

        #hero-slider { transition: background-image 1.5s ease-in-out; background-size: cover; background-position: center; }
        
        .modal-overlay { transition: opacity 0.15s ease-in-out; }
        .modal-overlay .modal-content { transition: transform 0.15s ease-in-out, opacity 0.15s ease-in-out; transform: scale(0.95); opacity: 0; }
        .modal-overlay.show .modal-content { transform: scale(1); opacity: 1; }

        /* Footer legal modal is mounted directly under <body> so page animations
           cannot trap its fixed positioning or stacking context. */
        #footer-legal-modal {
            position: fixed;
            inset: 0;
            z-index: 9999 !important;
            align-items: center;
            justify-content: center;
            padding: 0.75rem;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.12s ease, visibility 0.12s ease;
        }
        #footer-legal-modal.flex { display: flex !important; }
        #footer-legal-modal [data-footer-legal-backdrop] {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            border: 0;
            background: rgba(2, 6, 23, 0.92);
        }
        #footer-legal-modal.show {
            opacity: 1 !important;
            visibility: visible;
            pointer-events: auto;
        }
        #footer-legal-modal .footer-legal-dialog {
            position: relative;
            z-index: 1;
            width: 100%;
            max-width: 56rem;
            opacity: 1 !important;
            transform: none !important;
            max-height: calc(100dvh - 1.5rem);
        }
        #footer-legal-modal .footer-legal-panel {
            background: #0f172a !important;
            color: #f8fafc;
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 1rem;
            overflow: hidden;
            box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
            max-height: calc(100dvh - 1.5rem);
        }
        #footer-legal-modal .footer-legal-header {
            position: sticky;
            top: 0;
            z-index: 2;
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 1rem;
            padding: 1rem 1.25rem;
            background: #0f172a;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        #footer-legal-close {
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2.75rem;
            height: 2.75rem;
            padding: 0;
            border-radius: 9999px;
            border: 1px solid rgba(254, 202, 202, 0.45);
            background: #dc2626;
            color: #ffffff !important;
            font-size: 1.9rem;
            font-weight: 700;
            line-height: 1;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
            cursor: pointer;
        }
        #footer-legal-close:hover,
        #footer-legal-close:focus-visible { background: #ef4444; outline: 3px solid rgba(251, 191, 36, 0.75); outline-offset: 2px; }
        #footer-legal-modal .footer-legal-content {
            padding: 1.25rem;
            color: #e2e8f0;
            line-height: 1.7;
            white-space: pre-wrap;
            overflow-y: auto;
            max-height: calc(100dvh - 7.5rem);
            overscroll-behavior: contain;
            -webkit-overflow-scrolling: touch;
        }
        @media (min-width: 768px) {
            #footer-legal-modal { padding: 1.25rem; }
            #footer-legal-modal .footer-legal-header { padding: 1.25rem 1.75rem; }
            #footer-legal-modal .footer-legal-content { padding: 1.5rem 1.75rem; }
        }
        @supports not (height: 100dvh) {
            #footer-legal-modal .footer-legal-dialog,
            #footer-legal-modal .footer-legal-panel { max-height: calc(100vh - 1.5rem); }
            #footer-legal-modal .footer-legal-content { max-height: calc(100vh - 7.5rem); }
        }
        .modal.fade.show .modal-content { opacity: 1 !important; transform: none !important; }
        .modal.show {
            z-index: 1060 !important;
        }
        .modal.show .modal-dialog,
        .modal.show .modal-content {
            z-index: 1060 !important;
            pointer-events: auto !important;
        }
        .modal-backdrop {
            z-index: 1050 !important;
            opacity: 0.6 !important;
            pointer-events: auto !important;
        }
        #faq-modal {
            z-index: 1060 !important;
            pointer-events: auto !important;
            background: rgba(2, 6, 23, 0.78) !important;
        }
        #faq-modal .modal-dialog,
        #faq-modal .modal-content {
            z-index: 1061 !important;
            pointer-events: auto !important;
        }
        #faq-modal .modal-dialog {
            margin: 1.5rem auto;
        }

        .ticket-bg { background: radial-gradient(circle at top right, #1e293b, #0f172a); position: relative; overflow: hidden; }
        .ticket-watermark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-30deg); font-size: 4.5rem; font-weight: 800; color: rgba(255,255,255,0.03); white-space: nowrap; pointer-events: none; z-index: 1; }
        .ticket-org-logo { width: 4rem; height: 4rem; object-fit: cover; border-radius: 9999px; border: 2px solid rgba(255,255,255,0.3); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
        
        .sponsor-logo { object-fit: contain; transition: all 0.3s ease; }
        .sponsor-logo:hover { transform: scale(1.05); }

        .custom-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
        .custom-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 10px; }
        .custom-scroll::-webkit-scrollbar-thumb { background: var(--color-primary, rgba(245, 158, 11, 0.5)); border-radius: 10px; }
        .menu-admin.active { background: rgba(255,255,255, 0.1); color: var(--color-primary, #f59e0b); border-right: 3px solid var(--color-primary, #f59e0b); }
        .dynamic-text-primary { color: var(--color-primary, #f59e0b) !important; }

        .ticket-used-blur { filter: grayscale(40%); opacity: 0.95; pointer-events: none; transition: all 0.3s; }
        .sticky-box { position: sticky; top: 100px; }
        .format-teks-rapi { white-space: pre-wrap; word-wrap: break-word; line-height: 1.8; }
        .rich-text { color: #d1d5db; line-height: 1.85; font-size: 0.96rem; word-break: break-word; }
        .rich-text p { margin: 0 0 1rem; }
        .rich-text ul, .rich-text ol { margin: 0.75rem 0 1rem 1.35rem; padding-left: 0.95rem; }
        .rich-text li { margin-bottom: 0.55rem; }
        .rich-text li::marker { color: #fbbf24; font-weight: 700; }
        .rich-text strong { color: #f8fafc; }
        .rich-text em { color: #cbd5e1; font-style: italic; }
        .rich-text code { display: inline-block; background: rgba(255,255,255,0.08); color: #f8fafc; padding: 0.15rem 0.3rem; border-radius: 0.35rem; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
        .rich-text blockquote { margin: 0 0 1rem; padding-left: 1rem; border-left: 3px solid rgba(251,191,36,0.4); color: #e2e8f0; }
        .rich-text p:first-child { margin-top: 0; }
        .detail-card { background: rgba(15, 23, 42, 0.92); border-color: rgba(255,255,255,0.08); box-shadow: 0 20px 45px rgba(0,0,0,0.18); }
        .detail-help-text { color: #94a3b8; font-size: 0.95rem; line-height: 1.7; }

        .faq-hero-shell {
            position: relative;
            overflow: hidden;
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(2, 6, 23, 0.95));
            border: 1px solid rgba(255,255,255,0.08);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 20px 45px rgba(0,0,0,0.25);
        }
        .faq-hero-shell::before {
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.22), transparent 35%);
            pointer-events: none;
        }
        .faq-search-shell {
            background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.9));
            border: 1px solid rgba(255,255,255,0.08);
            box-shadow: 0 18px 40px rgba(0,0,0,0.22);
        }
        .faq-accordion-item {
            background: rgba(15, 23, 42, 0.72);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 1rem;
            overflow: hidden;
            box-shadow: 0 12px 24px rgba(0,0,0,0.16);
        }
        .faq-accordion-button {
            background: transparent !important;
            color: #f8fafc !important;
            border: 0 !important;
            box-shadow: none !important;
            padding: 1.1rem 1.15rem;
            border-radius: 0 !important;
        }
        .faq-accordion-button:not(.collapsed) {
            background: rgba(245, 158, 11, 0.12) !important;
            color: #fbbf24 !important;
        }
        .faq-accordion-button::after {
            filter: brightness(1.3);
        }
        .faq-accordion-collapse {
            display: none;
        }
        .faq-accordion-collapse.show {
            display: block;
        }
        .faq-empty-state {
            border: 1px dashed rgba(255,255,255,0.14);
            background: rgba(15, 23, 42, 0.55);
            border-radius: 1rem;
        }
        .faq-admin-row {
            background: linear-gradient(90deg, rgba(15,23,42,0.78), rgba(15,23,42,0.55));
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 1rem;
            box-shadow: 0 10px 22px rgba(0,0,0,0.16);
        }
        .faq-admin-btn {
            border-radius: 9999px;
            width: 2.35rem;
            height: 2.35rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .faq-modal-content {
            background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.95));
            border: 1px solid rgba(255,255,255,0.1);
            box-shadow: 0 24px 60px rgba(0,0,0,0.35);
        }

        @keyframes spinnerRotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
        @keyframes bounce { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-10px); opacity: 0.7; } }
        
        #waiting-room-overlay { display: none; }
        #waiting-room-overlay.show { display: flex; animation: fadeInWaitingRoom 0.4s ease forwards; }
        
        @keyframes fadeInWaitingRoom { 
            from { opacity: 0; } 
            to { opacity: 1; } 
        }

        /* Styling untuk selector yang di-lock saat deposit */
        select:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            background-color: rgba(148, 163, 184, 0.1);
            border-color: rgba(156, 163, 175, 0.4);
        }

        select:disabled option {
            color: rgba(148, 163, 184, 0.7);
        }
            :root {
            --bg-darker: #050816;
            --bg-nav: rgba(5, 8, 22, 0.86);
            --bg-card: rgba(15, 23, 42, 0.82);
            --color-primary: #fbbf24;
            --color-btn: #fbbf24;
            --color-secondary: #22d3ee;
            --text-color: #f8fafc;
            --tk-border: rgba(148, 163, 184, 0.16);
            --tk-soft: rgba(255, 255, 255, 0.055);
            --tk-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
        }

        html { background: var(--bg-darker); }
        body {
            min-height: 100vh;
            background:
                radial-gradient(circle at 12% 8%, rgba(34, 211, 238, 0.10), transparent 28rem),
                radial-gradient(circle at 88% 18%, rgba(251, 191, 36, 0.10), transparent 30rem),
                linear-gradient(180deg, #071022 0%, #050816 48%, #030611 100%);
            background-attachment: fixed;
        }
        body::before {
            content: "";
            position: fixed;
            inset: 0;
            z-index: -1;
            pointer-events: none;
            opacity: 0.22;
            background-image:
                linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
            background-size: 42px 42px;
            mask-image: linear-gradient(to bottom, black, transparent 78%);
        }

        #navbar {
            background: rgba(5, 8, 22, 0.78);
            border: 0;
            border-bottom: 1px solid rgba(148, 163, 184, 0.14);
            box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
            backdrop-filter: blur(22px) saturate(145%);
            -webkit-backdrop-filter: blur(22px) saturate(145%);
        }
        #navbar > div > div { min-height: 5rem; }
        #nav-logo-img { filter: drop-shadow(0 8px 18px rgba(0,0,0,.28)); }
        #navbar button:not(.glow-button) { border-color: rgba(148, 163, 184, 0.22); }
        #navbar button:not(.glow-button):hover { background: rgba(255,255,255,.065); }

        .glass {
            background: rgba(10, 16, 33, 0.72);
            border-color: var(--tk-border);
            box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
            backdrop-filter: blur(20px) saturate(135%);
            -webkit-backdrop-filter: blur(20px) saturate(135%);
        }
        .glass-card {
            background:
                linear-gradient(145deg, rgba(19, 30, 52, 0.90), rgba(7, 13, 28, 0.94));
            border-color: var(--tk-border) !important;
            box-shadow: var(--tk-shadow);
            backdrop-filter: blur(18px) saturate(130%);
            -webkit-backdrop-filter: blur(18px) saturate(130%);
        }
        .glass-card-hover,
        #events-container > .glass-card {
            transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
        }
        .glass-card-hover:hover,
        #events-container > .glass-card:hover {
            transform: translateY(-6px);
            border-color: rgba(34, 211, 238, 0.42) !important;
            box-shadow: 0 24px 65px rgba(0,0,0,.42), 0 0 0 1px rgba(251,191,36,.10);
        }

        .glow-button,
        #nav-register-btn,
        #hero-btn-text {
            position: relative;
            overflow: hidden;
            background: linear-gradient(135deg, #fde047 0%, #fbbf24 46%, #f59e0b 100%) !important;
            color: #111827 !important;
            border: 1px solid rgba(255,255,255,.30) !important;
            box-shadow: 0 12px 32px rgba(245, 158, 11, 0.24), inset 0 1px 0 rgba(255,255,255,.45);
            font-weight: 800;
        }
        .glow-button::after,
        #nav-register-btn::after,
        #hero-btn-text::after {
            content: "";
            position: absolute;
            inset: -80% auto -80% -35%;
            width: 28%;
            transform: rotate(18deg);
            background: linear-gradient(90deg, transparent, rgba(255,255,255,.48), transparent);
            transition: left .48s ease;
            pointer-events: none;
        }
        .glow-button:hover::after,
        #nav-register-btn:hover::after,
        #hero-btn-text:hover::after { left: 112%; }
        .glow-button:hover,
        #nav-register-btn:hover,
        #hero-btn-text:hover {
            transform: translateY(-2px);
            box-shadow: 0 18px 42px rgba(245,158,11,.34), 0 0 0 4px rgba(251,191,36,.08);
        }
        .glow-button:disabled { transform: none; box-shadow: none; filter: grayscale(.2); }

        .dynamic-text-primary {
            color: transparent !important;
            background: linear-gradient(100deg, #fbbf24 0%, #fde68a 50%, #22d3ee 105%);
            -webkit-background-clip: text;
            background-clip: text;
        }

        #top-ad-container {
            padding-top: 5.55rem !important;
            padding-bottom: .55rem !important;
        }
        #top-ad-container > div {
            border-radius: 1.35rem !important;
            border: 1px solid rgba(148,163,184,.13) !important;
            box-shadow: 0 22px 55px rgba(0,0,0,.36);
            background: rgba(9,15,31,.62) !important;
        }
        #top-ad-slider img {
            width: 100%;
            height: 100%;
            object-fit: contain !important;
            background: #050816;
        }
        #hero-slider {
            border-radius: 1.5rem;
            margin-top: .3rem !important;
            background: linear-gradient(145deg, rgba(34,211,238,.045), rgba(251,191,36,.045)) !important;
            border: 1px solid rgba(148,163,184,.09);
        }
        #hero-tagline {
            border-color: rgba(34,211,238,.28) !important;
            background: rgba(34,211,238,.07) !important;
            box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
        }
        #hero-title { letter-spacing: -0.035em; text-wrap: balance; }
        #hero-desc { text-wrap: balance; color: #b9c5d8 !important; }
        #hero-btn-text { min-width: min(100%, 20rem); }

        #events { padding-top: 1.25rem !important; }
        #event-section-title { letter-spacing: -0.025em; }
        #events-container { scroll-padding-inline: 1rem; }
        #events-container > .glass-card {
            border-radius: 1.35rem !important;
            background: linear-gradient(160deg, rgba(18,29,49,.96), rgba(6,12,25,.98));
        }
        #events-container > .glass-card img { filter: saturate(1.08) contrast(1.03); }
        #events-container > .glass-card button {
            border-color: rgba(251,191,36,.45) !important;
            background: rgba(251,191,36,.10) !important;
        }

        input, select, textarea {
            border-color: rgba(148,163,184,.24) !important;
            background-color: rgba(5,8,22,.76) !important;
            transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
        }
        input:focus, select:focus, textarea:focus {
            outline: none !important;
            border-color: rgba(34,211,238,.62) !important;
            box-shadow: 0 0 0 4px rgba(34,211,238,.09) !important;
            background-color: rgba(8,14,28,.94) !important;
        }

        .modal > div:not([data-footer-legal-backdrop]),
        .swal2-popup {
            border: 1px solid rgba(148,163,184,.18) !important;
            box-shadow: 0 28px 90px rgba(0,0,0,.52) !important;
        }
        .swal2-popup {
            background: linear-gradient(150deg, #152238, #0a1020) !important;
            border-radius: 1.35rem !important;
        }
        .swal2-confirm { border-radius: .8rem !important; }

        #user-tickets-container > .glass-card {
            border-radius: 1.25rem !important;
            background: linear-gradient(145deg, rgba(17,29,49,.96), rgba(7,13,27,.98));
        }
        #site-footer {
            background:
                radial-gradient(circle at 10% 10%, rgba(34,211,238,.07), transparent 28rem),
                linear-gradient(180deg, #050916, #02040c) !important;
            border-color: rgba(148,163,184,.14) !important;
        }

        .custom-scroll::-webkit-scrollbar { height: 6px; width: 6px; }
        .custom-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,.035); border-radius: 999px; }
        .custom-scroll::-webkit-scrollbar-thumb {
            background: linear-gradient(90deg, rgba(251,191,36,.75), rgba(34,211,238,.75));
            border-radius: 999px;
        }

        @media (max-width: 767px) {
            #navbar > div { padding-left: .8rem !important; padding-right: .8rem !important; }
            #navbar > div > div { height: 4.65rem !important; min-height: 4.65rem; gap: .4rem; }
            #nav-logo-img { max-width: 8.9rem; height: 1.8rem !important; }
            #navbar .flex.items-center.gap-2.sm\:gap-3.md\:gap-4 { gap: .42rem !important; }
            #navbar button { font-size: .82rem !important; }
            #nav-register-btn { padding-left: 1rem !important; padding-right: 1rem !important; }
            #top-ad-container { padding-top: 4.95rem !important; padding-left: .55rem !important; padding-right: .55rem !important; }
            #top-ad-container > div { border-radius: 1rem !important; max-height: none !important; min-height: 0 !important; aspect-ratio: 3 / 1 !important; }
            #hero-slider { margin-left: .65rem !important; margin-right: .65rem !important; padding-top: 1.05rem !important; padding-bottom: 1.35rem !important; border-radius: 1.15rem; }
            #hero-title { font-size: clamp(2rem, 10vw, 3rem) !important; line-height: 1.06 !important; }
            #hero-desc { font-size: .95rem !important; line-height: 1.65 !important; }
            #hero-btn-text { min-height: 3.35rem; border-radius: 1rem !important; }
            #events { padding-left: .65rem !important; padding-right: .65rem !important; }
            #events-container { gap: .9rem !important; padding-left: .2rem !important; padding-right: .2rem !important; }
            #events-container > .glass-card { min-width: min(82vw, 19rem) !important; }
            .glass-card { box-shadow: 0 18px 48px rgba(0,0,0,.32); }
        }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
        }

        :root {
            --bg-darker: #08051b;
            --bg-nav: rgba(21, 10, 54, 0.88);
            --bg-card: rgba(27, 18, 64, 0.86);
            --color-primary: #ffd43b;
            --color-btn: #ffb703;
            --color-secondary: #31d7ff;
            --text-color: #ffffff;
            --tk-violet: #8b5cf6;
            --tk-pink: #ff4f9a;
            --tk-cyan: #22d3ee;
            --tk-orange: #ff8a00;
            --tk-lime: #a3e635;
        }

        body {
            background:
                radial-gradient(circle at 8% 6%, rgba(255, 79, 154, .22), transparent 26rem),
                radial-gradient(circle at 92% 4%, rgba(49, 215, 255, .22), transparent 28rem),
                radial-gradient(circle at 50% 65%, rgba(139, 92, 246, .16), transparent 34rem),
                linear-gradient(145deg, #0c0622 0%, #111b46 48%, #071b35 100%) !important;
        }
        body::before {
            opacity: .28;
            background-image:
                radial-gradient(circle at center, rgba(255,255,255,.18) 1px, transparent 1.5px),
                linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
            background-size: 28px 28px, 56px 56px, 56px 56px;
        }

        #navbar.tk-public-nav {
            background: linear-gradient(100deg, rgba(34, 15, 80, .94), rgba(12, 46, 89, .92)) !important;
            border-bottom: 1px solid rgba(255,255,255,.22) !important;
            box-shadow: 0 12px 38px rgba(4, 8, 30, .42), 0 1px 0 rgba(255,255,255,.12) inset;
        }
        #navbar.tk-public-nav::after {
            content: "";
            position: absolute;
            left: 0; right: 0; bottom: -1px; height: 3px;
            background: linear-gradient(90deg, #ff4f9a, #ffd43b, #22d3ee, #8b5cf6);
            opacity: .9;
        }
        #navbar #nav-login-btn { color: #fff !important; background: rgba(255,255,255,.09); border-radius: 999px; }
        #navbar button[onclick*="showPage('faq')"] { background: rgba(34,211,238,.14); border-color: rgba(34,211,238,.45) !important; color: #dffaff !important; }
        #nav-register-btn, .glow-button, #hero-btn-text {
            background: linear-gradient(120deg, #ffd43b, #ff9f1c 52%, #ff4f9a) !important;
            color: #24113e !important;
            border: 1px solid rgba(255,255,255,.6) !important;
            box-shadow: 0 12px 32px rgba(255, 79, 154, .25), 0 10px 30px rgba(255, 183, 3, .22) !important;
        }
        .dynamic-text-primary {
            background: linear-gradient(95deg, #fff36d 0%, #ff8ac0 45%, #58e7ff 100%) !important;
            -webkit-background-clip: text !important;
            background-clip: text !important;
        }
        #hero-slider {
            background: linear-gradient(125deg, rgba(139,92,246,.18), rgba(255,79,154,.12), rgba(34,211,238,.15)) !important;
            border-color: rgba(255,255,255,.20) !important;
            box-shadow: 0 22px 65px rgba(3, 6, 30, .35), inset 0 1px 0 rgba(255,255,255,.12);
        }
        #event-section-title::before { content: "✦ "; color: #ffd43b; }

        .tk-event-card {
            position: relative;
            border-radius: 1.65rem !important;
            border: 1px solid rgba(255,255,255,.28) !important;
            background: linear-gradient(155deg, rgba(83, 41, 151, .90), rgba(13, 47, 91, .96)) !important;
            box-shadow: 0 24px 55px rgba(4, 8, 34, .45), 0 0 0 1px rgba(255,255,255,.06) inset !important;
            isolation: isolate;
        }
        .tk-event-card::before {
            content: "";
            position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: .75;
            background: radial-gradient(circle at 105% 100%, rgba(34,211,238,.28), transparent 44%), radial-gradient(circle at -5% 0, rgba(255,79,154,.28), transparent 42%);
        }
        .tk-event-card:hover { transform: translateY(-9px) scale(1.015) !important; border-color: rgba(255,212,59,.75) !important; box-shadow: 0 30px 70px rgba(7,11,46,.55), 0 0 35px rgba(34,211,238,.16) !important; }
        .tk-event-cover { background: #100a2c; }
        .tk-event-cover::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 1.2rem; margin: .55rem; z-index: 12; pointer-events:none; }
        .tk-event-category { position: absolute; z-index: 20; left: .85rem; top: .85rem; padding: .42rem .72rem; border-radius: 999px; font-size: .66rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #24113e; background: linear-gradient(110deg,#fff36d,#ff9f1c); box-shadow: 0 8px 22px rgba(0,0,0,.25); }
        .tk-event-buy { display: inline-flex; align-items:center; gap:.5rem; padding:.58rem .82rem; border-radius:.85rem; font-size:.75rem; font-weight:900; color:#fff; background:linear-gradient(120deg,#ff4f9a,#8b5cf6); border:1px solid rgba(255,255,255,.35); box-shadow:0 8px 22px rgba(139,92,246,.3); }
        .tk-event-buy i { transition: transform .2s ease; } .tk-event-card:hover .tk-event-buy i { transform: translateX(3px); }

        .tk-user-hero {
            display:flex; align-items:center; gap:1.15rem; padding:1.4rem 1.5rem; border-radius:1.6rem;
            background: linear-gradient(112deg, rgba(139,92,246,.95), rgba(255,79,154,.88) 48%, rgba(34,211,238,.82));
            border:1px solid rgba(255,255,255,.38); box-shadow:0 24px 60px rgba(12,8,45,.42), inset 0 1px 0 rgba(255,255,255,.25);
        }
        .tk-user-hero-icon { width:4rem; height:4rem; flex:0 0 4rem; display:grid; place-items:center; border-radius:1.25rem; background:rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.35); font-size:1.75rem; color:#fff36d; box-shadow:inset 0 1px 0 rgba(255,255,255,.25); }
        .tk-eyebrow { font-size:.68rem; font-weight:900; letter-spacing:.18em; color:#fff8bf; margin-bottom:.3rem; }
        .tk-user-menu { padding:.45rem; border-radius:1.2rem; background:rgba(10,12,45,.72); border:1px solid rgba(255,255,255,.18); box-shadow:0 14px 34px rgba(2,5,26,.3); }
        .tk-user-menu .user-tab-btn { border:0 !important; border-radius:.9rem; color:#cbd5e1 !important; min-height:2.9rem; }
        .tk-user-menu .user-tab-btn:hover { color:#fff !important; background:rgba(255,255,255,.09); }
        .tk-user-menu .user-tab-btn.active { color:#24113e !important; background:linear-gradient(105deg,#fff36d,#ff9f1c,#ff75b5); box-shadow:0 9px 24px rgba(255,79,154,.24); }
        .tk-security-card { border-color:rgba(255,212,59,.45) !important; background:linear-gradient(135deg,rgba(255,183,3,.16),rgba(255,79,154,.12),rgba(17,24,68,.92)) !important; }
        .tk-transaction-panel, .tk-account-panel { border:1px solid rgba(88,231,255,.24) !important; background:linear-gradient(145deg,rgba(34,47,100,.88),rgba(19,13,57,.94)) !important; }
        #user-tickets-container > .glass-card { border:1px solid rgba(255,255,255,.23) !important; background:linear-gradient(145deg,rgba(92,45,158,.92),rgba(13,51,93,.95)) !important; box-shadow:0 20px 52px rgba(4,7,35,.42) !important; }

        .tk-event-detail > div > button { padding:.65rem 1rem; border-radius:999px; color:#fff !important; background:rgba(139,92,246,.22); border:1px solid rgba(139,92,246,.45); }
        .tk-event-detail > div > .w-full.h-48 { border-radius:1.7rem !important; border-color:rgba(255,255,255,.28) !important; box-shadow:0 28px 70px rgba(3,5,30,.5) !important; }
        .tk-checkout-card { border:1px solid rgba(255,212,59,.55) !important; background:linear-gradient(155deg,rgba(86,42,154,.94),rgba(9,52,91,.96)) !important; box-shadow:0 26px 70px rgba(5,8,40,.48), 0 0 38px rgba(255,79,154,.12) !important; }
        .tk-checkout-card h3 { padding-bottom:1rem; border-bottom:1px solid rgba(255,255,255,.18); }
        .tk-checkout-form > label { color:#f4eaff !important; }
        .tk-checkout-form select, .tk-checkout-form input[type="number"] { background:rgba(7,9,37,.78) !important; border:1px solid rgba(88,231,255,.34) !important; min-height:3.35rem; }
        .tk-total-box { background:linear-gradient(115deg,rgba(255,212,59,.16),rgba(255,79,154,.18)) !important; border:1px solid rgba(255,212,59,.4) !important; box-shadow:inset 0 1px 0 rgba(255,255,255,.12); }
        #co-total { color:#fff36d !important; text-shadow:0 0 18px rgba(255,212,59,.25); }
        .tk-payment-options label { background:rgba(9,10,42,.72) !important; border:1px solid rgba(255,255,255,.2) !important; }
        .tk-payment-options label:has(input:checked) { background:linear-gradient(125deg,rgba(255,79,154,.26),rgba(139,92,246,.3)) !important; border-color:#ff8ac0 !important; box-shadow:0 0 0 3px rgba(255,79,154,.1); transform:translateY(-2px); }
        #deposit-section, #co-tribun-section, #co-custom-form-container { background:rgba(7,13,45,.68) !important; border-color:rgba(88,231,255,.34) !important; }
        #btn-process-co { min-height:3.65rem; font-size:1rem; letter-spacing:.02em; }

        .tk-admin-events-panel { border:1px solid rgba(88,231,255,.25) !important; background:linear-gradient(145deg,rgba(36,26,86,.94),rgba(10,39,75,.96)) !important; }
        .tk-admin-event-row:hover { background:rgba(255,255,255,.055); }
        .tk-event-actions { display:flex; justify-content:flex-end; gap:.45rem; }
        .tk-event-action { display:inline-flex; align-items:center; gap:.38rem; padding:.5rem .7rem; border-radius:.75rem; font-size:.72rem; font-weight:800; transition:.2s ease; }
        .tk-event-action-edit { color:#dffaff; background:rgba(34,211,238,.16); border:1px solid rgba(34,211,238,.4); }
        .tk-event-action-delete { color:#ffe3ed; background:rgba(255,79,154,.15); border:1px solid rgba(255,79,154,.4); }
        .tk-event-action:hover { transform:translateY(-2px); filter:brightness(1.15); }
        .tk-status-live { display:inline-flex; align-items:center; gap:.4rem; color:#d9ffad; background:rgba(163,230,53,.13); border:1px solid rgba(163,230,53,.3); padding:.35rem .6rem; border-radius:999px; font-weight:800; }
        .tk-status-live i { font-size:.45rem; color:#a3e635; box-shadow:0 0 10px #a3e635; border-radius:50%; }

        .modal > div:not([data-footer-legal-backdrop]), .swal2-popup { background:linear-gradient(150deg,#2a1764,#0b3158) !important; border-color:rgba(255,255,255,.25) !important; }
        input:focus, select:focus, textarea:focus { border-color:#58e7ff !important; box-shadow:0 0 0 4px rgba(34,211,238,.13), 0 0 22px rgba(34,211,238,.1) !important; }


        .tk-ticket-card {
            min-height: 16rem;
            border-radius: 1.55rem !important;
            border: 1px solid rgba(255,255,255,.3) !important;
            background:
                radial-gradient(circle at 92% 12%, rgba(255,212,59,.20), transparent 28%),
                radial-gradient(circle at 8% 92%, rgba(34,211,238,.24), transparent 34%),
                linear-gradient(145deg, rgba(112,55,190,.95), rgba(13,59,102,.97)) !important;
            box-shadow: 0 24px 60px rgba(4,8,35,.46), inset 0 1px 0 rgba(255,255,255,.18) !important;
        }
        .tk-ticket-card::before,
        .tk-ticket-card::after {
            content: "";
            position: absolute;
            top: 50%;
            width: 1.25rem;
            height: 1.25rem;
            border-radius: 50%;
            background: #0b0a2a;
            transform: translateY(-50%);
            box-shadow: 0 0 0 1px rgba(255,255,255,.12);
        }
        .tk-ticket-card::before { left: -.68rem; }
        .tk-ticket-card::after { right: -.68rem; }
        .tk-ticket-category { color:#26123f; background:linear-gradient(110deg,#fff36d,#ff9f1c,#ff79b8); box-shadow:0 8px 20px rgba(0,0,0,.22); }
        .tk-ticket-entry-point {
            display:flex;
            align-items:flex-start;
            gap:.55rem;
            margin:.55rem 0 .85rem;
            padding:.65rem .75rem;
            border-radius:.8rem;
            background:rgba(3,6,28,.34);
            border:1px solid rgba(255,255,255,.14);
            color:#f8fbff;
            font-size:.78rem;
            font-weight:700;
            line-height:1.35;
        }
        .tk-ticket-entry-point i { color:#ffcf4a; margin-top:.08rem; }
        .tk-ticket-entry-point em { color:#cbd5e1; font-style:normal; font-weight:600; }

        /* Ticket card palettes follow ticket type/price tier. The user-facing layout remains identical. */
        .tk-ticket-card.tk-ticket-tier-economy {
            background:
                radial-gradient(circle at 92% 12%, rgba(74,222,128,.22), transparent 28%),
                radial-gradient(circle at 8% 92%, rgba(34,197,94,.18), transparent 34%),
                linear-gradient(145deg, rgba(22,101,52,.96), rgba(7,63,58,.98)) !important;
        }
        .tk-ticket-card.tk-ticket-tier-regular {
            background:
                radial-gradient(circle at 92% 12%, rgba(56,189,248,.22), transparent 28%),
                radial-gradient(circle at 8% 92%, rgba(59,130,246,.18), transparent 34%),
                linear-gradient(145deg, rgba(30,64,175,.96), rgba(12,59,102,.98)) !important;
        }
        .tk-ticket-card.tk-ticket-tier-festival {
            background:
                radial-gradient(circle at 92% 12%, rgba(251,146,60,.24), transparent 28%),
                radial-gradient(circle at 8% 92%, rgba(236,72,153,.18), transparent 34%),
                linear-gradient(145deg, rgba(154,52,18,.96), rgba(136,19,55,.98)) !important;
        }
        .tk-ticket-card.tk-ticket-tier-vip {
            background:
                radial-gradient(circle at 92% 12%, rgba(250,204,21,.25), transparent 28%),
                radial-gradient(circle at 8% 92%, rgba(168,85,247,.20), transparent 34%),
                linear-gradient(145deg, rgba(126,34,206,.96), rgba(88,28,135,.98)) !important;
        }
        .tk-ticket-card.tk-ticket-tier-vvip {
            background:
                radial-gradient(circle at 92% 12%, rgba(248,113,113,.25), transparent 28%),
                radial-gradient(circle at 8% 92%, rgba(244,63,94,.20), transparent 34%),
                linear-gradient(145deg, rgba(153,27,27,.97), rgba(127,29,29,.98)) !important;
        }
        .tk-ticket-tier-economy .tk-ticket-category { background:linear-gradient(110deg,#bbf7d0,#4ade80); }
        .tk-ticket-tier-regular .tk-ticket-category { background:linear-gradient(110deg,#bae6fd,#60a5fa); }
        .tk-ticket-tier-festival .tk-ticket-category { background:linear-gradient(110deg,#fed7aa,#fb7185); }
        .tk-ticket-tier-vip .tk-ticket-category { background:linear-gradient(110deg,#fef08a,#fbbf24,#c084fc); }
        .tk-ticket-tier-vvip .tk-ticket-category { background:linear-gradient(110deg,#fecaca,#fb7185,#a855f7); }

        #t-header-bg.tk-ticket-tier-economy { background:
            radial-gradient(circle at 95% 10%, rgba(74,222,128,.28), transparent 30%),
            linear-gradient(145deg, #166534, #064e3b) !important; }
        #t-header-bg.tk-ticket-tier-regular { background:
            radial-gradient(circle at 95% 10%, rgba(56,189,248,.28), transparent 30%),
            linear-gradient(145deg, #1e40af, #0c4a6e) !important; }
        #t-header-bg.tk-ticket-tier-festival { background:
            radial-gradient(circle at 95% 10%, rgba(251,146,60,.30), transparent 30%),
            linear-gradient(145deg, #9a3412, #881337) !important; }
        #t-header-bg.tk-ticket-tier-vip { background:
            radial-gradient(circle at 95% 10%, rgba(250,204,21,.32), transparent 30%),
            linear-gradient(145deg, #7e22ce, #581c87) !important; }
        #t-header-bg.tk-ticket-tier-vvip { background:
            radial-gradient(circle at 95% 10%, rgba(248,113,113,.30), transparent 30%),
            linear-gradient(145deg, #991b1b, #7f1d1d) !important; }


        .tk-ticket-symbol { width:2.85rem; height:2.85rem; display:grid; place-items:center; border-radius:1rem; margin-bottom:1rem; color:#fff36d; font-size:1.25rem; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.25); box-shadow:inset 0 1px 0 rgba(255,255,255,.18); }
        .tk-ticket-code { color:#d9e5ff; text-transform:uppercase; letter-spacing:.08em; font-weight:800; }
        .tk-ticket-code span { display:inline-block; margin-left:.35rem; padding:.3rem .55rem; border-radius:.6rem; color:#fff; background:rgba(3,6,28,.48); border:1px dashed rgba(255,255,255,.3); font-family:ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.04em; }
        .tk-ticket-actions { border-top:1px dashed rgba(255,255,255,.24); padding-top:1rem; }
        .tk-ticket-card button:not(:disabled) { border-color:rgba(255,255,255,.35) !important; box-shadow:0 8px 18px rgba(0,0,0,.18); }
        @media (max-width: 767px) {
            .tk-user-hero { align-items:flex-start; padding:1.15rem; border-radius:1.3rem; }
            .tk-user-hero-icon { width:3.25rem; height:3.25rem; flex-basis:3.25rem; font-size:1.35rem; border-radius:1rem; }
            .tk-user-menu { gap:.25rem !important; }
            .tk-user-menu .user-tab-btn { padding:.72rem .85rem !important; font-size:.76rem !important; }
            .tk-event-card { min-width:min(86vw,20rem) !important; }
            .tk-payment-options { grid-template-columns:1fr !important; }
            .tk-event-action span { display:none; }
            .tk-event-action { width:2.35rem; height:2.35rem; justify-content:center; padding:0; }
        }
        /* v25: keep the viewport stable while transfer/upgrade updates Firebase in stages. */
        html {
            scrollbar-gutter: stable;
            overflow-x: hidden;
        }
        body {
            overflow-x: hidden;
        }
        body.swal2-shown,
        body.swal2-height-auto {
            padding-right: 0 !important;
        }
        #user-tickets-container,
        #user-pending-container,
        #user-history-container {
            overflow-anchor: none;
        }
        #user-tickets-container {
            min-height: 18rem;
        }
        html.tk-ui-mutation,
        html.tk-ui-mutation body {
            overscroll-behavior: none;
        }
        html.tk-ui-mutation .page,
        html.tk-ui-mutation .admin-tab,
        html.tk-ui-mutation #user-tickets-container,
        html.tk-ui-mutation #user-pending-container,
        html.tk-ui-mutation #user-history-container,
        html.tk-ui-mutation .tk-ticket-card,
        html.tk-ui-mutation .glass-card {
            animation: none !important;
            transition: none !important;
        }
        #tk-mutation-overlay {
            position: fixed;
            inset: 0;
            z-index: 99990;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 1.25rem;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            background:
                radial-gradient(circle at 50% 42%, rgba(34, 211, 238, .18), transparent 28%),
                linear-gradient(145deg, rgba(7, 18, 43, .94), rgba(23, 11, 53, .96));
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            transition: opacity .18s ease, visibility .18s ease;
        }
        #tk-mutation-overlay.show {
            display: flex;
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }
        #tk-mutation-overlay.show.is-hiding {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }
        .tk-mutation-panel {
            width: min(88vw, 25rem);
            min-height: 10.5rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            padding: 1.5rem;
            border-radius: 1.5rem;
            border: 1px solid rgba(255,255,255,.18);
            background: linear-gradient(150deg, rgba(42, 23, 100, .88), rgba(11, 49, 88, .9));
            box-shadow: 0 28px 90px rgba(0,0,0,.52);
            text-align: center;
        }
        .tk-mutation-panel img {
            display: block;
            width: min(58vw, 13rem);
            height: auto;
            object-fit: contain;
            filter: drop-shadow(0 12px 28px rgba(0,0,0,.36));
        }
        .tk-mutation-panel p {
            margin: 0;
            color: #e6faff;
            font-size: .92rem;
            font-weight: 800;
            letter-spacing: .01em;
        }
        @media (max-width: 640px) {
            #user-tickets-container { min-height: 15rem; }
            .tk-mutation-panel { min-height: 9.5rem; border-radius: 1.25rem; }
            .tk-mutation-panel img { width: min(62vw, 11.5rem); }
        }
        @media (prefers-reduced-motion: reduce) {
            #tk-mutation-overlay { transition: none !important; }
        }

        /* v28: hard viewport stabilization for upgrade mutations on mobile. */
        html.tk-ui-mutation body {
            overscroll-behavior: none !important;
            -webkit-overflow-scrolling: auto !important;
        }
        html.tk-ui-mutation .page.active,
        html.tk-ui-mutation .admin-tab.active,
        html.tk-ui-mutation #page-user-dash,
        html.tk-ui-mutation #page-admin {
            opacity: 1 !important;
            transform: none !important;
            filter: none !important;
        }
        html.tk-ui-mutation canvas,
        html.tk-ui-mutation .tk-sales-chart-card,
        html.tk-ui-mutation .tk-sales-kpis article {
            animation: none !important;
            transition: none !important;
        }
        #tk-mutation-overlay {
            display: flex;
            transform: translateZ(0);
            will-change: opacity;
            contain: strict;
        }
        #tk-mutation-overlay:not(.show) {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }
        @media (max-width: 768px) {
            #tk-mutation-overlay {
                backdrop-filter: none;
                -webkit-backdrop-filter: none;
                background: linear-gradient(145deg, rgba(7, 18, 43, .985), rgba(23, 11, 53, .99));
            }
            .tk-mutation-panel {
                transform: translateZ(0);
                box-shadow: 0 18px 46px rgba(0,0,0,.42);
            }
        }
/* Tiket Kaka v26 — Vendor logo + sales analytics */
.tk-sales-analytics {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 1.75rem;
    padding: 1.25rem;
    background:
        radial-gradient(circle at 8% 0%, rgba(34, 211, 238, 0.16), transparent 34%),
        radial-gradient(circle at 92% 0%, rgba(244, 114, 182, 0.13), transparent 32%),
        linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.92));
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.34), inset 0 1px 0 rgba(255,255,255,0.04);
}
.tk-sales-analytics::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 85%);
}
.tk-sales-analytics > * { position: relative; z-index: 1; }
.tk-sales-analytics-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.tk-sales-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0 0 .45rem;
    color: rgb(103 232 249);
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .22em;
}
.tk-sales-title { margin: 0; color: #fff; font-size: clamp(1.2rem, 2vw, 1.75rem); font-weight: 900; }
.tk-sales-subtitle { margin: .35rem 0 0; color: rgb(148 163 184); font-size: .78rem; }
.tk-sales-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .65rem; }
.tk-sales-filter { display: grid; gap: .3rem; min-width: 145px; }
.tk-sales-filter span { color: rgb(148 163 184); font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; }
.tk-sales-filter select {
    min-height: 2.55rem;
    border: 1px solid rgba(103, 232, 249, .2);
    border-radius: .85rem;
    padding: 0 2.15rem 0 .8rem;
    color: #f8fafc;
    background-color: rgba(2, 6, 23, .7);
    outline: none;
    font-size: .78rem;
    font-weight: 700;
}
.tk-sales-filter select:focus { border-color: rgba(103,232,249,.72); box-shadow: 0 0 0 3px rgba(34,211,238,.11); }
.tk-sales-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .8rem; margin-bottom: .9rem; }
.tk-sales-kpis article {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 1.25rem;
    padding: 1rem;
    background: linear-gradient(150deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
}
.tk-sales-kpis span { color: rgb(148 163 184); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.tk-sales-kpis strong { margin-top: .45rem; color: #fff; font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 900; line-height: 1.15; }
.tk-sales-kpis article:nth-child(1) strong { color: rgb(253 224 71); }
.tk-sales-kpis article:nth-child(2) strong { color: rgb(103 232 249); }
.tk-sales-kpis article:nth-child(3) strong { color: rgb(134 239 172); }
.tk-sales-kpis article:nth-child(4) strong { color: rgb(249 168 212); }
.tk-sales-kpis small { margin-top: .35rem; color: rgb(100 116 139); font-size: .67rem; }
.tk-sales-chart-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .85rem; }
.tk-sales-chart-card {
    min-width: 0;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 1.25rem;
    padding: 1rem;
    background: rgba(2, 6, 23, .54);
}
.tk-sales-chart-card h4 { margin: 0; color: #f8fafc; font-size: .92rem; font-weight: 850; }
.tk-sales-chart-card p { margin: .25rem 0 .7rem; color: rgb(100 116 139); font-size: .68rem; }
.tk-sales-canvas-wrap { position: relative; width: 100%; height: 255px; }
.tk-vendor-logo-field img { background-image: linear-gradient(45deg, rgba(255,255,255,.05) 25%, transparent 25%), linear-gradient(-45deg, rgba(255,255,255,.05) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(255,255,255,.05) 75%), linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.05) 75%); background-size: 12px 12px; background-position: 0 0, 0 6px, 6px -6px, -6px 0; }
.tk-vendor-logo-cell { width: 48px; height: 48px; object-fit: contain; border-radius: 12px; padding: 5px; background: rgba(2,6,23,.7); border: 1px solid rgba(103,232,249,.2); }
.tk-vendor-card-logo { width: 52px; height: 52px; object-fit: contain; border-radius: 16px; padding: 6px; background: rgba(2,6,23,.72); border: 1px solid rgba(103,232,249,.25); }
@media (max-width: 1180px) {
    .tk-sales-chart-grid { grid-template-columns: 1fr 1fr; }
    .tk-sales-chart-card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
    .tk-sales-analytics { padding: 1rem; border-radius: 1.35rem; }
    .tk-sales-analytics-head { align-items: stretch; flex-direction: column; }
    .tk-sales-filters { justify-content: stretch; }
    .tk-sales-filter { flex: 1 1 145px; }
    .tk-sales-kpis { grid-template-columns: 1fr 1fr; }
    .tk-sales-chart-grid { grid-template-columns: 1fr; }
    .tk-sales-chart-card:first-child { grid-column: auto; }
    .tk-sales-canvas-wrap { height: 235px; }
}
@media (max-width: 520px) {
    .tk-sales-kpis { grid-template-columns: 1fr; }
    .tk-sales-kpis article { min-height: 96px; }
    .tk-sales-filter { flex-basis: 100%; }
}
