:root {
    --primary-color: #ff3366;
    --secondary-color: #2a2a2a;
    --text-color: #ffffff;
    --background-color: #1a1a1a;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loader {
    border: 5px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid var(--primary-color);
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

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

/* Online Girls Section */
.online-girls-container {
    padding: 1rem;
    background: var(--secondary-color);
    margin-bottom: 2rem;
}

.online-now {
    color: var(--primary-color);
    margin: 0 0 1rem 1rem;
    font-size: 1.2rem;
}

.online-girls {
    display: flex;
    gap: 1rem;
    padding: 0 1rem;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--secondary-color);
}

.online-girls::-webkit-scrollbar {
    height: 8px;
}

.online-girls::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

.girl-thumb {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.girl-thumb.active {
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255,51,102,0.5);
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 20px;
}

/* Gallery Section */
.gallery-section {
    position: relative;
    height: fit-content;
}

.gallery {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    position: relative;
}

.main-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.2;
    object-fit: cover;
    display: block;
    border-radius: 15px 15px 0 0;
    transition: opacity 0.3s ease;
}

.photo-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
}

.arrow {
    background: rgba(0,0,0,0.7);
    border: none;
    color: white;
    padding: 0.8rem 1.2rem;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    backdrop-filter: blur(2px);
}

.arrow:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Chat Now Button */
.chat-now-btn {
    display: flex;
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    text-transform: uppercase;
}

.chat-now-btn:hover {
    background: #e62e5c;
    letter-spacing: 1px;
}

.pulse {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
    70% { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* Form Section */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.timer {
    background: var(--secondary-color);
    padding: 1.2rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.places-left {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.time-left {
    color: #ffd700;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Registration Form */
#registrationForm {
    position: relative;
    transition: all 0.3s ease;
}

.signup-form {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 15px;
}

.form-step {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.form-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    background: #333;
    border: 1px solid #444;
    color: var(--text-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(255,51,102,0.3);
    outline: none;
}

.signup-button {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    width: 100%;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.signup-button:hover {
    background: #e62e5c;
    transform: translateY(-2px);
}

/* Date Inputs */
.date-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

/* Country Select */
#country {
    margin-top: 1rem;
}

/* Timeout Message */
.timeout-message {
    display: none;
    text-align: center;
    padding: 2rem;
    background: var(--secondary-color);
    border-radius: 15px;
    animation: fadeIn 0.5s ease;
}

#notifyEmail {
    width: 100%;
    padding: 12px;
    margin: 1rem 0;
    background: #333;
    border: 1px solid #444;
    color: var(--text-color);
    border-radius: 8px;
    font-size: 16px;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 15px;
    width: 95%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s ease;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #ccc;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* Error State */
.error {
    border-color: var(--primary-color) !important;
    animation: shake 0.4s ease;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
        max-width: 800px;
    }
    
    .date-inputs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .timer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .arrow {
        padding: 0.5rem;
        font-size: 1.2rem;
    }
    
    .form-step {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .girl-thumb {
        width: 50px;
        height: 50px;
    }
    
    .date-inputs select {
        width: 100%;
    }
    
    .signup-button {
        font-size: 14px;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
}

.modal-content {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 15px;
    width: 95%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s ease;
    text-align: center; /* Добавлено */
}

#closeNotification {
    margin: 20px auto 0;
    display: block;
    width: auto;
    padding: 10px 30px;
}

/* Добавить в конец styles.css */
.notification-text {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.notification-text.success {
    background: #2ecc71;
    color: white;
}

.notification-text.error {
    background: #e74c3c;
    color: white;
}

#notificationModal .modal-content {
    text-align: center;
    max-width: 400px;
}