:root {
    --navbar-bg: #8a4130;
    --sidebar-bg: #66261b;
    --body-bg: #823d2e;
    --categories-bar: #ffd2ab;
    --join-btn: #00beed;
    --text-color: #ffd15c;
    --login-register: #f07f07;
    --active-sidebar: #c46735;
    --borders: #fff987;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cinzel', serif;
    background: var(--body-bg);
    min-height: 100vh;
    color: var(--text-color);
    overflow: hidden; /* Prevent scrolling when modal is open */
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.modal-overlay.closing {
    opacity: 0;
    visibility: hidden;
}

.modal-container {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 50%, #8b4513 100%);
    border: 3px solid #d4af37;
    border-radius: 20px;
    width: 90vw;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(1);
    transition: transform 0.3s ease;
}

.modal-overlay.closing .modal-container {
    transform: scale(0.7);
}

.modal-container::before,
.modal-container::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 8px;
    background: linear-gradient(90deg, transparent, #d4af37, #ffd700, #d4af37, transparent);
    border-radius: 4px;
}

.modal-container::before {
    top: -4px;
}

.modal-container::after {
    bottom: -4px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #d4af37;
    font-size: 24px;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.3s ease;
    z-index: 10;
}

.close-btn:hover {
    color: #ffd700;
}

.back-button {
    position: absolute;
    left: 20px;
    top: 20px;
    background: none;
    border: none;
    color: #d4af37;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.back-button:hover {
    color: #ffd700;
}

.modal-title {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    font-weight: 700;
    color: #ffd700;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-transform: none;
}

.register-text {
    text-align: center;
    margin-bottom: 25px;
    color: #d4af37;
    font-size: 14px;
    text-transform: none;
}

.register-link {
    color: #ffd700;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
    text-transform: none;
}

.register-link:hover {
    color: #ffed4e;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(101, 67, 33, 0.8);
    border: 2px solid #8b4513;
    border-radius: 8px;
    color: #ffd700;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    text-transform: none;
    font-weight: 400;
    autocapitalize: none;
    autocorrect: off;
}

.form-input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Open Sans', sans-serif;
    text-transform: none;
    font-weight: 300;
}

.form-label {
    display: block;
    color: #d4af37;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 400;
    text-transform: none;
}

.bonus-option {
    background: rgba(101, 67, 33, 0.6);
    border: 2px solid #8b4513;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 16px;
}

.bonus-option:hover {
    border-color: #d4af37;
    background: rgba(101, 67, 33, 0.8);
}

.bonus-option.selected {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.casino-button {
    background: linear-gradient(135deg, #1e90ff, #0066cc);
    border: 3px solid #d4af37;
    border-radius: 25px;
    color: white;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

.casino-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.casino-button::before,
.casino-button::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    background: radial-gradient(circle, #d4af37, #ffd700);
    border-radius: 50%;
}

.casino-button::before {
    left: -5px;
    box-shadow:
            5px 0 0 #d4af37,
            10px 0 0 #ffd700,
            15px 0 0 #d4af37;
}

.casino-button::after {
    right: -5px;
    box-shadow:
            -5px 0 0 #d4af37,
            -10px 0 0 #ffd700,
            -15px 0 0 #d4af37;
}

.casino-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #4169e1, #0080ff);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 144, 255, 0.4);
}

.gender-option {
    background: rgba(101, 67, 33, 0.6);
    border: 2px solid #8b4513;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 12px;
}

.gender-option.selected {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.2);
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    background: rgba(101, 67, 33, 0.8);
    border: 2px solid #8b4513;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.custom-checkbox.checked {
    background: #d4af37;
    border-color: #ffd700;
}

.dropdown-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23d4af37' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.step-dot.active {
    background: #d4af37;
}

.error-message {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 4px;
    text-align: center;
}

.success-message {
    color: #4ade80;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
    display: none;
}

.notification-bar {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid #d4af37;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    text-align: center;
    color: #f4e4bc;
    font-size: 14px;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #d4af37;
    font-size: 16px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #ffd700;
}

/* Footer styles */
.text-custom {
    color: var(--text-color);
}

.border-custom {
    border-color: var(--borders);
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--borders);
}
.custom-login-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    justify-content: center;
    width: 100%;
}
/* Background page content - hidden when modal is active */
.page-content {
    opacity: 0.3;
    pointer-events: none;
}

.step-content {
    padding: 40px 35px;
}

.btn-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 3px;
}
.btn-box:hover {
    transform: scale(1.05);
}