* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes subtleGradient {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes loadingText {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes progress {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        visibility: visible;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes slideIn {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
    to {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
}

@keyframes blurFadeOut {
    to {
        backdrop-filter: blur(0);
        -webkit-backdrop-filter: blur(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    to {
        transform: translate(-50%, 100vh);
    }
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-screen.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.loading-logo {
    width: 180px;
    height: auto;
    filter: brightness(1);
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: #ffffff;
    animation: progress 2s ease-out;
    border-radius: 2px;
}

.hero-banner {
    position: relative;
    width: 95%;
    max-width: 1600px;
    height: 400px;
    background: rgba(32, 32, 32, 0.6);
    overflow: hidden;
    margin: 2rem auto 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

[data-theme="light"] .hero-banner {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 2px solid rgba(0, 0, 0, 0.8);
    box-shadow: none;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    z-index: 1;
}

[data-theme="light"] .hero-banner::before {
    display: none;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: transform 0.3s ease-out;
}

.hero-banner:hover .banner-image {
    transform: scale(1.05);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.banner-logo {
    width: 180px;
    height: auto;
    filter: hue-rotate(0deg) brightness(1) saturate(100%);
    transition: all 0.5s ease;
}

.banner-content h1 {
    font-size: 4rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: var(--shine-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 8s linear infinite;
}

.banner-content:hover h1 {
    color: var(--header-text-hover);
}

.banner-content p {
    font-size: 1.2rem;
    color: #ffffff;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

:root {
    /* Dark theme variables */
    --primary-bg: #000000;
    --secondary-bg: rgba(32, 32, 32, 0.8);
    --text-color: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(32, 32, 32, 0.6);
    --hover-bg: rgba(42, 42, 42, 0.7);
    --accent-color: #ffffff;
    --hover-text: #ffffff;
    --carousel-title-color: #ffffff;
    --header-text-hover: #ffffff;
    --shine-gradient: linear-gradient(
        120deg,
        #ffffff 0%,
        rgba(255, 255, 255, 0.8) 30%,
        #ffffff 50%,
        rgba(255, 255, 255, 0.8) 70%,
        #ffffff 100%
    );
}

/* Light theme variables */
[data-theme="light"] {
    --primary-bg: #ffffff;
    --secondary-bg: rgba(245, 245, 245, 0.8);
    --text-color: #000000;
    --text-secondary: rgba(0, 0, 0, 0.7);
    --border-color: rgba(0, 0, 0, 0.08);
    --card-bg: rgba(245, 245, 245, 0.6);
    --hover-bg: rgba(235, 235, 235, 0.7);
    --accent-color: #000000;
    --hover-text: #000000;
    --carousel-title-color: #000000;
    --header-text-hover: #000000;
    --shine-gradient: linear-gradient(
        120deg,
        #000000 0%,
        rgba(0, 0, 0, 0.8) 30%,
        #000000 50%,
        rgba(0, 0, 0, 0.8) 70%,
        #000000 100%
    );
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background: var(--primary-bg);
    min-height: 100vh;
    position: relative;
    transition: background-color 0.3s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(100px) saturate(150%);
    -webkit-backdrop-filter: blur(100px) saturate(150%);
    z-index: -1;
}

header {
    padding: 0.5rem;
    position: sticky;
    top: 0.5rem;
    z-index: 100;
    width: 98%;
    max-width: 1800px;
    margin: 0 auto;
}

nav {
    background: var(--secondary-bg);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: hue-rotate(0deg) brightness(1) saturate(100%);
    transition: all 0.5s ease;
}

[data-theme="light"] .logo {
    filter: brightness(0.1) saturate(100%); /* Much darker in light mode */
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.nav-left h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    margin: 0;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background: var(--shine-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 8s linear infinite;
}

.nav-left:hover h1 {
    color: var(--header-text-hover);
}

.credits-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.95rem;
    padding: 6px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.credits-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--shine-gradient);
    background-size: 200% auto;
    opacity: 0.3;
    transition: 0.5s;
}

.credits-btn:hover::before {
    left: 100%;
    animation: shine 1.5s linear;
}

.credits-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: var(--hover-text);
    border-color: var(--accent-color);
}

[data-theme="light"] .credits-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-left {
        width: 100%;
        justify-content: center;
    }

    .credits-btn {
        width: 100%;
        text-align: center;
    }
}

main {
    width: 100%;
    margin: 2rem 0;
    position: relative;
}

section {
    margin-bottom: 3rem;
    position: relative;
}

section > h2 {
    max-width: 1600px;
    margin: 0 auto 1.5rem;
    padding: 0 2rem;
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
    background: var(--shine-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 8s linear infinite;
}

section > h2::after {
    display: none;
}

section > h2:hover {
    color: var(--hover-text);
}

section > h2:hover::after {
    width: 100%;
}

.games-container {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.games-row {
    display: flex;
    gap: 1.5rem;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 1rem calc((100vw - 1600px) / 2);
    width: 100%;
}

.games-row::-webkit-scrollbar {
    display: none;
}

.game-card {
    flex: 0 0 400px;
    height: 200px;
    background: var(--card-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.game-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: var(--hover-bg);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.12);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    z-index: 1;
}

.game-card img {
    width: 400px;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
    filter: brightness(0.9);
}

.game-card:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

.game-card h3 {
    color: #ffffff;
    font-size: 1rem;
    margin: 0;
    padding: 0.4rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    transform: translateX(0);
    background: var(--secondary-bg);
    color: var(--text-color);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.game-card:hover .badge {
    background: rgba(42, 42, 42, 0.95);
    transform: translateX(0) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.12);
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(32, 32, 32, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.scroll-btn:hover {
    background: rgba(42, 42, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
}

.scroll-btn.prev {
    left: 20px;
}

.scroll-btn.next {
    right: 20px;
}

.scroll-btn i {
    font-size: 1.4rem;
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 500px;
    margin: 30px auto;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    box-shadow: 0 16px 48px 0 rgba(0,0,0,0.35), 0 1.5px 8px 0 rgba(0,0,0,0.10);
    perspective: 3000px;
}

.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s ease-out;
}

.slide {
    width: 80%;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    position: absolute;
    top: 5%;
    left: 10%;
    border-radius: 10px;
    backface-visibility: hidden;
    transition: all 0.3s ease;
    transform-origin: center center;
    box-shadow: 0 16px 48px 0 rgba(0,0,0,0.35), 0 1.5px 8px 0 rgba(0,0,0,0.10);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.slide.active {
    opacity: 1;
    transform: translateZ(250px) scale(1.1);
    z-index: 5;
}

.slide.prev-2 {
    opacity: 0.6;
    transform: translateX(-70%) translateZ(-250px) rotateY(45deg);
    z-index: 1;
}

.slide.prev {
    opacity: 0.8;
    transform: translateX(-40%) translateZ(-50px) rotateY(30deg);
    z-index: 2;
}

.slide.next {
    opacity: 0.8;
    transform: translateX(40%) translateZ(-50px) rotateY(-30deg);
    z-index: 2;
}

.slide.next-2 {
    opacity: 0.6;
    transform: translateX(70%) translateZ(-250px) rotateY(-45deg);
    z-index: 1;
}

.slide.far {
    opacity: 0.1;
    transform: translateZ(-600px) scale(0.4);
    z-index: 0;
}

/* Adding animation for entering slides */
.slide.to-prev {
    animation: toPrev 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.slide.to-next {
    animation: toNext 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes toPrev {
    from { transform: rotateY(90deg); opacity: 0; }
    to { transform: rotateY(0deg); opacity: 1; }
}

@keyframes toNext {
    from { transform: rotateY(-90deg); opacity: 0; }
    to { transform: rotateY(0deg); opacity: 1; }
}

.slide img {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.slide img:hover {
    transform: scale(1.02);
}

#carouselTitle {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 18px 0 32px 0;
    letter-spacing: 1px;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1.12);
    opacity: 1;
    position: relative;
    padding-bottom: 10px;
    background: var(--shine-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 8s linear infinite;
}

#carouselTitle::after {
    display: none;
}

#carouselTitle:hover::after {
    width: 100px;
}

.slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.slideshow-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.slideshow-btn.prev {
    left: 25px;
}

.slideshow-btn.next {
    right: 25px;
}

/* Slide indicators */
.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slide-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-indicator.active {
    background: var(--shine-gradient);
    background-size: 200% auto;
    animation: shine 8s linear infinite;
    transform: scale(1.2);
}

footer {
    text-align: center;
    padding: 2rem;
    background: rgba(32, 32, 32, 0.8);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 12px;
    width: 95%;
    max-width: 1600px;
    margin: 2rem auto;
    transition: all 0.3s ease;
}

[data-theme="light"] footer {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 2px solid rgba(0, 0, 0, 0.8);
}

footer p {
    color: var(--text-color);
    transition: color 0.3s ease;
}

@media (max-width: 1600px) {
    .games-row {
        padding: 1rem 2rem;
    }
}

@media (max-width: 768px) {
    header {
        width: 95%;
        top: 0.3rem;
        padding: 0.3rem;
    }

    nav {
        padding: 0.6rem 1rem;
    }

    .nav-logo {
        height: 20px;
    }

    nav h1 {
        font-size: 1.3rem;
    }

    .credits-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    .game-card {
        flex: 0 0 300px;
        height: 150px;
    }

    .game-card img {
        width: 300px;
        height: 150px;
    }

    .scroll-btn {
        width: 40px;
        height: 40px;
    }

    .scroll-btn.prev {
        left: 10px;
    }

    .scroll-btn.next {
        right: 10px;
    }

    .hero-banner {
        width: 90%;
        height: 300px;
        margin: 1.5rem auto 2.5rem;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .banner-logo {
        width: 120px;
    }

    .banner-content h1 {
        font-size: 2.5rem;
    }
}

.credits-container {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.credits-content {
    background: rgba(32, 32, 32, 0.6);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 100%;
}

.credits-logo {
    width: 150px;
    height: auto;
    margin-bottom: 1.5rem;
}

.credits-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.credits-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.credits-info h2 {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.creator-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--shine-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 8s linear infinite;
}

.credits-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .credits-content {
        padding: 2rem;
    }

    .credits-logo {
        width: 100px;
    }

    .credits-content h1 {
        font-size: 2rem;
    }

    .creator-name {
        font-size: 1.5rem;
    }
}

.search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 4px 8px;
    margin: 0 1rem;
    transition: all 0.2s ease;
}

.search-container:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.search-input {
    background: transparent;
    border: none;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    padding: 4px 8px;
    width: 200px;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.search-btn:hover {
    color: white;
}

@media (max-width: 768px) {
    .search-container {
        margin: 0.5rem 0;
        width: 100%;
    }

    .search-input {
        width: 100%;
    }
}

.notice-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999;
    display: none;
}

.notice-overlay.show {
    display: block;
}

.captcha-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 30, 40, 0.7);
    border-radius: 20px;
    overflow: hidden;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.captcha-container.closing {
    animation: 
        blurFadeOut 0.4s ease-in-out forwards,
        slideDown 0.4s ease-in-out forwards;
    pointer-events: none;
}

.captcha-content {
    padding: 20px 25px 25px;
}

.captcha-content h3 {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.captcha-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0 0 20px;
}

.captcha-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 16px;
    margin: 10px 0;
    box-sizing: border-box;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.captcha-input:focus {
    outline: none;
    border-color: rgba(80, 170, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(80, 170, 255, 0.2);
}

.captcha-input.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    border-color: #ff3b30;
}

.captcha-buttons {
    display: block;
    width: 100%;
    margin-top: 15px;
}

.captcha-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.confirm-btn {
    background: rgba(0, 150, 255, 0.7);
    color: white;
    border: 1px solid rgba(0, 150, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 150, 255, 0.2);
}

.confirm-btn:hover {
    background: rgba(0, 150, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 150, 255, 0.3);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.credit-card {
    background: linear-gradient(120deg, rgba(149, 76, 233, 0.8), rgba(43, 192, 228, 0.8));
    padding: 22px;
    border-radius: 12px;
    margin: 24px 24px 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    position: relative;
    aspect-ratio: 16/10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.credit-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.credit-card::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
    margin: -15px -5px 0;
    color: white;
    font-size: 18px;
    font-weight: 500;
}

.wireless-icon {
    margin-left: -15px;
    margin-right: -5px;
    display: flex;
    align-items: center;
}

.wireless-icon img.card-logo-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: hue-rotate(0deg) brightness(1) saturate(100%);
    opacity: 0.9;
    margin-top: 0;
}

[data-theme="light"] .wireless-icon img.card-logo-icon {
    filter: brightness(0.1) saturate(100%); /* Much darker in light mode */
}

.card-info {
    display: flex;
    justify-content: space-between;
    color: white;
    margin-top: auto;
}

.card-holder {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
}

.expiry-date {
    font-size: 14px;
}

.card-number {
    color: white;
    font-size: 16px;
    letter-spacing: 2px;
    margin-top: 10px;
}

.card-logo {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 25px;
    background: linear-gradient(90deg, #f0f0f0, #ddd);
    border-radius: 4px;
    opacity: 0.8;
}

@keyframes slideOut {
    from {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
    to {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle i {
    color: var(--text-color);
    transition: all 0.3s ease;
}

/* Show sun icon in dark mode */
.theme-toggle .fa-sun {
    display: none;
}

.theme-toggle .fa-moon {
    display: block;
}

/* Show moon icon in light mode */
[data-theme="light"] .theme-toggle .fa-sun {
    display: block;
}

[data-theme="light"] .theme-toggle .fa-moon {
    display: none;
}

/* Update the theme toggle HTML to include both icons */
.theme-toggle:hover {
    background: rgba(128, 128, 128, 0.1);
}

.theme-toggle:hover i {
    color: var(--accent-color);
}

.card-logo-icon {
    filter: hue-rotate(0deg) brightness(1) saturate(100%);
    transition: all 0.5s ease;
}

[data-theme="light"] .card-logo-icon {
    filter: brightness(0.1) saturate(100%); /* Much darker in light mode */
}

.banner-logo {
    width: 180px;
    height: auto;
    filter: hue-rotate(0deg) brightness(1) saturate(100%);
    transition: all 0.5s ease;
}

[data-theme="light"] .banner-logo {
    filter: brightness(0.1) saturate(100%); /* Much darker in light mode */
}

.banner-logo:hover {
    transform: scale(1.05) rotate(5deg);
}

.slide.active img {
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.slide.active:hover img {
    transform: scale(1.05);
}

@keyframes shine {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

