:root {
    --bg-dark: #1a0505;
    --bg-darker: #0d0101;
    --primary-gold: #f7d147;
    --secondary-gold: #c8a32d;
    --text-white: #ffffff;
    --text-gray: #b0a4a4;
    --accent-red: #8b0000;
    --accent-glow: rgba(247, 209, 71, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(247, 209, 71, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: #0d0101;
    background: linear-gradient(-45deg, #2a0606, #4a0e0e, #1a0505, #000000) !important;
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* App Container - Premium Look */
.app-container {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(180deg, #5c1212 0%, #2a0606 50%, #1a0505 100%);
    min-height: 100vh;
    padding-bottom: 120px;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.9);
    position: relative;
    border-left: 1px solid rgba(247, 209, 71, 0.1);
    border-right: 1px solid rgba(247, 209, 71, 0.1);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(107, 22, 22, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(247, 209, 71, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    font-style: italic;
    color: #fff;
    text-shadow: 0 0 10px rgba(247, 209, 71, 0.3);
}

.logo-text span {
    color: var(--primary-gold);
}

.header-icons {
    display: flex;
    gap: 12px;
}

.icon-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.icon-circle svg {
    width: 16px;
    height: 16px;
    stroke: #000;
}

/* Lang Dropdown */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    /* Slightly wider to catch diagonal movements */
    height: 15px;
    /* Covers the gap to the dropdown */
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: #1a0505;
    min-width: 100px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.8);
    z-index: 1001;
    border-radius: 8px;
    border: 1px solid var(--primary-gold);
    overflow: hidden;
    margin-top: 5px;
}

.lang-dropdown:hover .dropdown-content {
    display: block;
}

.lang-option {
    color: #fff;
    padding: 10px 15px;
    font-size: 0.9rem;
    cursor: pointer;
}

.lang-option:hover {
    background: rgba(247, 209, 71, 0.2);
    color: var(--primary-gold);
}

/* Hero Section */
.hero-section {
    padding: 10px;
}

.banner-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(247, 209, 71, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-banner {
    position: relative;
    aspect-ratio: 4/3;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.glow-text {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-gold);
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 10px var(--primary-gold);
    text-align: center;
}

/* Steps */
.steps-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 20px;
    margin: 20px 10px;
    background: linear-gradient(135deg, rgba(247, 209, 71, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(247, 209, 71, 0.5);
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(247, 209, 71, 0.15), inset 0 0 10px rgba(247, 209, 71, 0.05);
    backdrop-filter: blur(5px);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1;
    text-align: center;
}

.dot {
    width: 12px;
    height: 12px;
    background: var(--primary-gold);
    border-radius: 50%;
    opacity: 0.5;
}

.step.active .dot {
    background: var(--primary-gold);
    box-shadow: 0 0 15px var(--primary-gold), 0 0 30px var(--primary-gold);
    transform: scale(1.2);
    opacity: 1;
}

.step span {
    font-size: 0.7rem;
    color: var(--text-gray);
}

.step.active span {
    color: var(--primary-gold);
    font-weight: bold;
}

.step-line {
    height: 2px;
    background: var(--primary-gold);
    flex: 0.5;
    margin-top: -15px;
    opacity: 0.5;
}

/* Form Section - Fixing Broken Inputs */
.form-section {
    padding: 10px 20px;
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    backdrop-filter: blur(4px);
}

.input-group {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(247, 209, 71, 0.2);
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(247, 209, 71, 0.1);
    transform: translateY(-2px);
}



.input-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-gold);
    fill: none;
    stroke-width: 2;
}

.country-code {
    color: var(--primary-gold);
    font-weight: bold;
    border-right: 1px solid #444;
    padding-right: 10px;
}

input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    width: 100%;
    outline: none;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.register-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 540px;
    z-index: 100;
    padding: 20px;
    background: linear-gradient(180deg, #fff0a8 0%, #f7d147 50%, #c8a32d 100%);
    border: none;
    border-radius: 50px;
    color: #2a0606;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(247, 209, 71, 0.3);
    text-transform: uppercase;
    transform: translateX(-50%);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: pulseGold 2s infinite;
}

.register-btn:active {
    transform: scale(0.96);
}

/* Advantages Grid - Fixing Layout */
.advantages-section {
    margin-top: 30px;
}

.section-divider {
    text-align: center;
    position: relative;
    margin-bottom: 25px;
}

.section-divider::before {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
}

.section-divider span {
    background: #140202;
    padding: 0 15px;
    position: relative;
    color: var(--primary-gold);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 0 15px;
}

.advantage-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.adv-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4a0202, #2a0a0a);
    border: 1px solid var(--primary-gold);
    border-radius: 12px;
    display: flex;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 12px;

}

.adv-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-gold);
    fill: none;
    stroke-width: 2;
}

.adv-value {
    color: #ffd700;
    font-weight: bold;
    font-size: 0.8rem;
}

.adv-label {
    color: var(--text-gray);
    font-size: 0.65rem;
}

/* Games Grid - Fixing Layout */
.games-section {
    margin-top: 40px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 15px;
}

.game-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.2s;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.game-card:hover img {
    border-color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(247, 209, 71, 0.5);
    transform: scale(1.05);
}

.game-name {
    font-size: 0.75rem;
    text-align: center;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: #1a0505;
    margin: 10% auto;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    border: 1px solid var(--primary-gold);
    padding: 20px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    overflow-y: auto;
}

.highlight {
    background: rgba(247, 209, 71, 0.1);
    padding: 10px;
    border-radius: 10px;
    margin: 10px 0;
    border-left: 3px solid var(--primary-gold);
}

/* Animations */
.glow-text {
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        filter: drop-shadow(0 0 5px var(--primary-gold));
    }

    to {
        filter: drop-shadow(0 0 15px var(--primary-gold));
    }
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulseGold {
    0% {
        box-shadow: 0 0 0 0 rgba(247, 209, 71, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(247, 209, 71, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(247, 209, 71, 0);
    }
}

@media (max-width: 400px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}