h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ==========================================
   MODERN ANIMATION SYSTEM
   ========================================== */

/* Fade in animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Utility animation classes */
.animate-fade-in {
    animation: fade-in 0.8s ease-out;
}

.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out backwards;
    opacity: 0;
}

.animate-fade-in-delay {
    animation: fade-in 0.8s ease-out 0.2s backwards;
}

.animate-fade-in-delay-2 {
    animation: fade-in 0.8s ease-out 0.4s backwards;
}

.animate-scale-in {
    animation: scale-in 0.6s ease-out 0.6s backwards;
}

/* Grid Pattern Background */
.bg-grid-pattern {
    background-image: linear-gradient(to right, rgb(148 163 184 / 0.08) 1px, transparent 1px), linear-gradient(to bottom, rgb(148 163 184 / 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* Dark mode grid */
.dark .bg-grid-pattern {
    background-image: linear-gradient(to right, rgb(148 163 184 / 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgb(148 163 184 / 0.05) 1px, transparent 1px);
}

/* ==========================================
   LIST SELECTOR ANIMATIONS
   ========================================== */

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-2px);
    }

    20%, 40%, 60%, 80% {
        transform: translateX(2px);
    }
}

@keyframes spinner-cycle {
    0%, 100% {
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }

    50% {
        transform: rotateY(180deg) scale(1.1);
        opacity: 0.8;
    }
}

@keyframes reveal-winner {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes spotlight {
    0%, 100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(16, 185, 129, 0.6);
    }
}

@keyframes wheel-spin {
    0% {
        transform: rotate(0deg);
    }
    85% {
        transform: rotate(calc(var(--spin-degrees, 1800deg) - 60deg));
    }
    100% {
        transform: rotate(var(--spin-degrees, 1800deg));
    }
}

@keyframes pointer-bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(6px);
    }
}

@keyframes reveal-winner-card {
    from {
        opacity: 0;
        transform: translateX(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.4), 0 0 60px rgba(16, 185, 129, 0.2);
    }
    50% {
        box-shadow: 0 0 50px rgba(16, 185, 129, 0.6), 0 0 100px rgba(16, 185, 129, 0.4);
    }
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes bounce-in {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes float-up {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes winner-glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(234, 179, 8, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(234, 179, 8, 1));
    }
}

.animate-shake {
    animation: shake 0.5s ease-in-out infinite;
}

.animate-spinner-cycle {
    animation: spinner-cycle 0.8s ease-in-out infinite;
}

.animate-reveal-winner {
    animation: reveal-winner 0.6s ease-out;
}

.animate-spotlight {
    animation: spotlight 2s ease-in-out infinite;
}

.animate-wheel-spin {
    animation: wheel-spin 4s cubic-bezier(0.17, 0.67, 0.12, 0.99) forwards;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-bounce-in {
    animation: bounce-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.animate-float {
    animation: float-up 3s ease-in-out infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.animate-winner-glow {
    animation: winner-glow 1.5s ease-in-out infinite;
}

/* ==========================================
   LIST SELECTOR PICKER STYLES
   ========================================== */

.picker-stage {
    width: min(520px, 90vw);
    margin: 0 auto;
    position: relative;
}

.carousel-window {
    position: relative;
    overflow: hidden;
    padding: 2rem 1.5rem;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
}

.carousel-track {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: max-content;
}

.carousel-card {
    min-width: 160px;
    padding: 0.9rem 1.1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
}

.carousel-focus {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.carousel-focus-text {
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
}

.spotlight-stage {
    position: relative;
    padding: 2.5rem 1.5rem;
    border-radius: 32px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    min-height: 280px;
}

.spotlight-beam {
    position: absolute;
    inset: -20% 0 0 0;
    background: radial-gradient(circle at top, rgba(251, 191, 36, 0.4), transparent 60%);
    filter: blur(2px);
    opacity: 0.8;
}

.spotlight-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding-top: 1.5rem;
}

.spotlight-chip {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.spotlight-active {
    background: linear-gradient(135deg, #10b981, #14b8a6);
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
}

.spotlight-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    z-index: 3;
}

.slot-machine {
    position: relative;
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 1.5rem 1rem;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
}

.slot-window {
    width: 140px;
    height: 190px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slot-reel {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.85rem;
    will-change: transform;
}

.slot-cell {
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    font-weight: 700;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slot-highlight {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    height: 64px;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    pointer-events: none;
}

@media (max-width: 640px) {
    .slot-machine {
        gap: 0.6rem;
    }

    .slot-window {
        width: 110px;
        height: 170px;
    }

    .carousel-card {
        min-width: 140px;
    }
}

/* Spin overlay styles */
.spin-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 20% 10%, rgba(16, 185, 129, 0.35), transparent 45%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.94) 0%, rgba(16, 185, 129, 0.9) 45%, rgba(20, 184, 166, 0.92) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fade-in 0.4s ease-out;
}

.spin-overlay-content {
    text-align: center;
    padding: 2rem;
}

/* Wheel styles */
.wheel-container {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 30px 60px rgba(15, 23, 42, 0.35));
}

.wheel-halo {
    position: absolute;
    inset: -35px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, rgba(16, 185, 129, 0) 70%);
    filter: blur(6px);
    animation: pulse-glow 2s ease-in-out infinite;
}

.wheel-outer-ring {
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    background: conic-gradient(from 90deg, #fbbf24, #f59e0b, #10b981, #14b8a6, #f59e0b, #fbbf24);
    box-shadow: 0 0 50px rgba(16, 185, 129, 0.45), 0 0 80px rgba(245, 158, 11, 0.35);
}

.wheel-inner {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.3), 0 12px 40px rgba(15, 23, 42, 0.35);
    transform-origin: center;
    will-change: transform;
}

.wheel-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    left: 50%;
    top: 0;
    transform-origin: 0% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0% 100%, 100% 0%, 0% 0%);
}

.wheel-center {
    position: absolute;
    inset: 27%;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0%, #f1f5f9 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35), inset 0 0 10px rgba(255,255,255,0.7);
    z-index: 10;
}

.dark .wheel-center {
    background: #1e293b;
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 35px solid #fbbf24;
    filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.4));
    z-index: 20;
    animation: pointer-bounce 0.7s ease-in-out infinite;
}

/* Winner card animation */
.winner-card {
    opacity: 0;
    animation: reveal-winner-card 0.5s ease-out forwards;
}

/* Confetti particle */
.confetti-particle {
    position: fixed;
    width: 10px;
    height: 10px;
    z-index: 60;
    pointer-events: none;
    animation: confetti-fall 3s linear forwards;
}

/* ==========================================
   ENHANCED HOVER EFFECTS
   ========================================== */

/* Card hover effect */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .card-hover:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    }

/* Button hover effects */
.btn-hover {
    transition: all 0.2s ease-in-out;
}

    .btn-hover:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    }

/* ==========================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================== */

/* Smooth scroll behavior */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 0.375rem;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================
   CUSTOM SCROLLBAR (MINIMAL)
   ========================================== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
        border: 2px solid transparent;
        background-clip: padding-box;
    }

.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

    .dark ::-webkit-scrollbar-thumb:hover {
        background: #64748b;
    }

/* ==========================================
   UTILITY CLASSES
   ========================================== */

/* Text gradient utility */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Backdrop blur utility */
.backdrop-blur-sm {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Shadow utilities - lighter for modern look */
.shadow-soft {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
}

.shadow-soft-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.06);
}

.dark .shadow-soft {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dark .shadow-soft-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);
}
