body {
    background: linear-gradient(135deg, #1a1613 0%, #2d2520 50%, #1a1613 100%);
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

/* Hide scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Hide scrollbar for Firefox */
html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Hide scrollbar for all elements */
* {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    display: none;
}

.bg-gradient-hero {
    background: linear-gradient(rgba(26, 22, 19, 0.8), rgba(45, 37, 32, 0.6)), url('/static/assets/images/wp_02_1920_new.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.bg-gradient-section {
    background: linear-gradient(rgba(26, 22, 19, 0.9), rgba(45, 37, 32, 0.7)), url('/static/assets/images/wp_03_1920_new.webp');
    background-size: cover;
    background-position: center;
}

/* Shop-specific background to prevent scaling */
.shop-background {
    background-size: 100% 100vh !important;
    background-position: center top !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}

.particle {
    position: absolute;
    background: linear-gradient(135deg, #d4af37, #b8860b);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-20px);
        opacity: 1;
    }
}

.animate-pulse-slow {
    animation: pulse 3s infinite;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.9), 0 0 60px rgba(184, 134, 11, 0.6);
    transform: translateY(-2px);
}

.channel-bar {
    background: linear-gradient(90deg, #d4af37, #b8860b, #cd853f);
    height: 8px;
    transition: width 0.5s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px rgba(212, 175, 55, 0.5);
}

.metallic-bg {
    background: linear-gradient(135deg, #2d2520 0%, #3a2f27 25%, #4a3c32 50%, #3a2f27 75%, #2d2520 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: inset 0 2px 4px rgba(212, 175, 55, 0.1), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.metallic-text {
    background: linear-gradient(135deg, #d4af37, #f4e68c, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}



/* Golden Accent Classes */
.golden-accent {
    color: #d4af37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

.text-golden-accent {
    color: #d4af37;
}

.bg-golden-accent {
    background-color: #d4af37;
}

.border-golden-accent {
    border-color: #d4af37;
}

.bronze-accent {
    color: #cd853f;
    text-shadow: 0 0 10px rgba(205, 133, 63, 0.8);
}

.metallic-button {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 50%, #d4af37 100%);
    border: 2px solid rgba(212, 175, 55, 0.8);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3), 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.metallic-button:hover {
    background: linear-gradient(135deg, #f4e68c 0%, #d4af37 50%, #f4e68c 100%);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5), 0 6px 20px rgba(212, 175, 55, 0.6);
    transform: translateY(-3px);
}

.cyberpunk-nav {
    background: rgba(26, 22, 19, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(212, 175, 55, 0.15),
        0 0 20px rgba(212, 175, 55, 0.15);
}

.cyberpunk-nav:hover {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(212, 175, 55, 0.25),
        0 0 30px rgba(212, 175, 55, 0.25);
}

.nav-link {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 10px 16px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 40px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

.cyberpunk-button {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(184, 134, 11, 0.3));
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 15px;
    padding: 10px 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cyberpunk-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #d4af37, #b8860b, #d4af37);
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cyberpunk-button:hover::before {
    opacity: 1;
}

.cyberpunk-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
    text-shadow: 0 0 15px rgba(212, 175, 55, 1);
}

.wave-separator {
    position: relative;
    overflow: hidden;
}

.wave-separator::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23232017' opacity='0.8'/%3E%3C/svg%3E") no-repeat;
    background-size: 100% 100px;
    z-index: 1;
}

.wave-separator-bottom {
    position: relative;
    overflow: hidden;
}

.wave-separator-bottom::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z' fill='%23232017' opacity='0.8'/%3E%3C/svg%3E") no-repeat;
    background-size: 100% 100px;
    z-index: 1;
}

.organic-separator {
    position: relative;
    height: 80px;
    overflow: hidden;
}

.organic-separator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(212, 175, 55, 0.1) 50%, transparent 70%);
    clip-path: polygon(0 20%, 100% 0%, 100% 80%, 0% 100%);
}

.section-divider {
    position: relative;
    height: 120px;
    background: linear-gradient(180deg, transparent 0%, rgba(26, 22, 19, 0.3) 50%, transparent 100%);
    overflow: hidden;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
    border-radius: 1px;
}

.section-divider::after {
    content: '⚔️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    background: linear-gradient(135deg, #1a1613, #2d2520);
    padding: 10px;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Desert Wind Effects */
.desert-wind {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.sand-particle {
    position: absolute;
    background: rgba(212, 175, 55, 0.6);
    border-radius: 50%;
    animation: windBlow 15s linear infinite;
}

.sand-particle.small {
    width: 2px;
    height: 2px;
    animation-duration: 12s;
}

.sand-particle.medium {
    width: 3px;
    height: 3px;
    animation-duration: 18s;
}

.sand-particle.large {
    width: 4px;
    height: 4px;
    animation-duration: 22s;
}

.dust-cloud {
    position: absolute;
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.1), rgba(184, 134, 11, 0.2), rgba(212, 175, 55, 0.1));
    border-radius: 50%;
    filter: blur(8px);
    animation: dustFloat 20s ease-in-out infinite;
}

@keyframes windBlow {
    0% {
        transform: translateX(-100px) translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateX(100vw) translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes dustFloat {

    0%,
    100% {
        transform: translateX(-50px) translateY(0px) scale(1);
        opacity: 0.3;
    }

    33% {
        transform: translateX(50px) translateY(-30px) scale(1.2);
        opacity: 0.6;
    }

    66% {
        transform: translateX(-30px) translateY(-15px) scale(0.8);
        opacity: 0.4;
    }
}

.wind-gust {
    position: absolute;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    animation: gustMove 8s ease-in-out infinite;
    filter: blur(1px);
}

@keyframes gustMove {
    0% {
        transform: translateX(-200px) translateY(0px);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateX(calc(100vw + 200px)) translateY(-50px);
        opacity: 0;
    }
}

.hero-content-drift {
    animation: gentleDrift 6s ease-in-out infinite;
}

@keyframes gentleDrift {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    33% {
        transform: translateY(-3px) translateX(2px);
    }

    66% {
        transform: translateY(2px) translateX(-1px);
    }
}

/* Race Selector Styles */
.race-selector {
    display: flex;
    flex-direction: column;
    height: 180px !important;
    /* Increased height for bigger selection */
    padding: 10px 10px 15px 10px !important;
    /* More padding for bigger size */
    position: relative;
    overflow: hidden !important;
    /* Hide overflow to contain images */
    background: none !important;
    /* Remove metallic background */
    border: none !important;
    /* Remove border */
    box-shadow: none !important;
    /* Remove shadow */
}

.race-selector .race-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    height: calc(100% - 45px);
    /* Reserve space for absolutely positioned text */
    overflow: hidden;
}

.race-selector img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    object-position: center;
}

.race-selector p {
    flex-shrink: 0;
    text-align: center;
    font-size: 11px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 6px 4px !important;
    /* Increased padding for better spacing */
    line-height: 1.2 !important;
    background: rgba(26, 22, 19, 0.95) !important;
    /* Slightly more opaque */
    border-radius: 8px !important;
    /* Slightly more rounded */
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    /* More visible border */
    backdrop-filter: blur(15px) !important;
    /* Stronger blur */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9) !important;
    /* Stronger text shadow */
    position: absolute;
    bottom: 6px;
    /* Position from bottom */
    left: 8px;
    right: 8px;
    z-index: 2;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.race-selector p.golden-accent {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(184, 134, 11, 0.3)) !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4) !important;
    border-color: rgba(212, 175, 55, 0.6) !important;
}

.race-selector p.text-gray-300 {
    color: #d1d5db !important;
}

.race-selector:hover p {
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Ensure proper spacing in the flex container */
.race-selector-container {
    gap: 16px !important;
}

/* Main Character Image Styles */
#character-image {
    max-height: 500px !important;
    /* Increased from 384px to 500px */
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.5)) !important;
    /* Add shadow for depth */
}

#character-image:hover {
    transform: scale(1.05) !important;
    /* Slightly reduced hover scale for bigger image */
    filter: drop-shadow(0 15px 35px rgba(212, 175, 55, 0.3)) !important;
    /* Golden glow on hover */
}

/* Register Page Styles */
.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #4b5563;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.step-label {
    margin-top: 8px;
    font-size: 0.75rem;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.step-indicator.active .step-number {
    border-color: #d4af37;
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.step-indicator.active .step-label {
    color: #d4af37;
}

.step-indicator.active~.step-line {
    background: linear-gradient(90deg, #d4af37, #4b5563);
}

.form-step {
    min-height: 400px;
    transition: all 0.3s ease;
}

.checkbox-custom {
    position: relative;
}

/* HTMX Indicator Styling */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: flex;
}

.htmx-request.htmx-indicator {
    display: flex;
}

/* Shop Page Styles */
.item-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9) 0%, rgba(17, 24, 39, 0.9) 100%);
}

/* Notification Styles */
.animate-slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Character Overview Styles */
.character-card {
    position: relative;
    overflow: hidden;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.stat-box {
    text-align: center;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.375rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.stat-label {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
}

/* Authentication Pages Styles */
.password-toggle {
    cursor: pointer;
    user-select: none;
    z-index: 10;
}

.password-toggle:hover {
    opacity: 1 !important;
}

/* Ensure form doesn't overlap with header */
.form-container {
    margin-top: 2rem;
}

/* Change Password Page */
.password-hero-section {
    min-height: calc(100vh - 80px);
    position: relative;
    overflow: hidden;
}