/* style.css - Основные стили для КатокПро */
/* Версия: 11.0 - Добавлена реклама в ленте, улучшена адаптивность */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Russo+One&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(145deg, #0b1c2f 0%, #1a3a4f 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 8px;
    font-family: 'Montserrat', sans-serif;
}

.hockey-card {
    max-width: 100%;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px 25px 20px 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.6), 0 0 0 2px #d4af37 inset, 0 0 0 4px #003366 inset;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

/* ============= МЕДИА-ЗАПРОСЫ ============= */
@media (max-width: 480px) {
    body { padding: 5px; }
    .hockey-card { 
        border-radius: 20px 20px 15px 15px; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.6), 0 0 0 1px #d4af37 inset, 0 0 0 2px #003366 inset; 
    }
    h2 { font-size: 20px !important; border-left-width: 6px !important; padding-left: 10px !important; }
    h3 { font-size: 18px !important; }
    .btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning, .btn-info { 
        padding: 12px 18px !important; 
        font-size: 15px !important; 
    }
    .input-group { padding: 2px 12px !important; }
    .input-group input, .input-group select { 
        font-size: 14px !important; 
        padding: 8px 0 !important; 
    }
}

/* ============= ВЕРХНЯЯ ПАНЕЛЬ ============= */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, #002244 0%, #003366 100%);
    border-bottom: 2px solid #d4af37;
}

@media (max-width: 480px) { 
    .top-bar { padding: 6px 10px; } 
}

.profile-quick-btn {
    background: #d4af37;
    color: #002244;
    border: none;
    padding: 8px 14px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    border: 2px solid #ffd966;
    font-family: 'Russo One', sans-serif;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.profile-quick-btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 5px 10px rgba(0,0,0,0.3); 
    background: #ffd966; 
}

.profile-quick-btn:active { 
    transform: translateY(2px); 
}

.profile-quick-btn.logged-in { 
    background: #28a745; 
    color: white; 
    border-color: #d4af37; 
}

.profile-quick-btn.logged-in:hover { 
    background: #34ce57; 
}

@media (max-width: 380px) { 
    .profile-quick-btn { 
        padding: 6px 10px; 
        font-size: 12px; 
        gap: 4px; 
    } 
}

/* ============= БЕЙДЖ ГОРОДА ============= */
.city-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 51, 102, 0.9);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    border: 1.5px solid #d4af37;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.city-badge:hover {
    background: rgba(0, 51, 102, 1);
    transform: translateY(-1px);
    border-color: #ffd966;
}

.city-badge.loading {
    opacity: 0.7;
    cursor: wait;
    animation: pulse 1.5s infinite;
}

.city-badge .city-icon { font-size: 16px; }
.city-badge .city-name {
    font-weight: 600;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #d4af37;
}
.city-badge .city-change-icon { font-size: 12px; opacity: 0.7; }

@media (max-width: 768px) {
    .city-badge { padding: 4px 10px; font-size: 12px; }
    .city-badge .city-name { max-width: 100px; }
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* ============= ШАПКА С ЛОГОТИПОМ ============= */
.arena-header {
    background: linear-gradient(135deg, #002244 0%, #003366 100%);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 3px solid #d4af37;
    position: relative;
}

@media (max-width: 480px) { 
    .arena-header { padding: 8px 12px; gap: 8px; } 
}

.logo-shield {
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    border: 2px solid #d4af37;
    flex-shrink: 0;
}

@media (max-width: 480px) { 
    .logo-shield { width: 36px; height: 36px; font-size: 20px; } 
}

.team-name {
    color: white;
    font-family: 'Russo One', sans-serif;
    font-size: 22px;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0 #00000055;
    line-height: 1.2;
    width: 100%;
}

@media (max-width: 480px) { 
    .team-name { font-size: 18px; } 
}
@media (max-width: 380px) { 
    .team-name { font-size: 16px; } 
}

.team-name span {
    color: #d4af37;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 12px;
    display: block;
    letter-spacing: 1px;
    margin-top: 2px;
    text-transform: uppercase;
}

@media (max-width: 480px) { 
    .team-name span { font-size: 10px; letter-spacing: 0.5px; } 
}

/* ============= ВКЛАДКИ ============= */
.tabs {
    display: flex;
    background: #0a1e2b;
    padding: 0 8px;
    gap: 12px;
    border-bottom: 2px solid #2a5775;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
}

.tabs::-webkit-scrollbar { display: none; }
@media (max-width: 480px) { 
    .tabs { gap: 8px; padding: 0 5px; } 
}

.tab {
    padding: 10px 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: #9bb7d4;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    font-family: 'Montserrat', sans-serif;
}

@media (max-width: 480px) { 
    .tab { font-size: 12px; padding: 8px 0 6px; letter-spacing: 0.3px; } 
}
@media (max-width: 360px) { 
    .tab { font-size: 11px; } 
}

.tab.active {
    color: #ffffff;
    border-bottom-color: #d4af37;
    text-shadow: 0 0 5px #d4af37;
}

.tab i { margin-right: 4px; }

/* ============= КОНТЕНТ ============= */
.content {
    padding: 16px 12px 25px;
    background: #f0f6fb;
}

@media (max-width: 480px) { 
    .content { padding: 12px 10px 20px; } 
}

.register-panel, .cabinet-panel, .login-panel, .player-profile-panel, 
.about-panel, .rink-panel, .ads-panel, .responses-panel, .feedback-panel {
    display: none;
    animation: fade 0.3s ease;
}

.register-panel.active-panel, .cabinet-panel.active-panel, 
.login-panel.active-panel, .player-profile-panel.active-panel, 
.about-panel.active-panel, .rink-panel.active-panel, 
.ads-panel.active-panel, .responses-panel.active-panel,
.feedback-panel.active-panel {
    display: block;
}

@keyframes fade { 
    from { opacity: 0.3; } 
    to { opacity: 1; } 
}

/* ============= ЗАГОЛОВКИ ============= */
h2 {
    font-size: 22px;
    color: #003366;
    font-weight: 800;
    margin-bottom: 10px;
    border-left: 8px solid #d4af37;
    padding-left: 12px;
    text-transform: uppercase;
    line-height: 1.3;
    word-break: break-word;
    font-family: 'Russo One', sans-serif;
}

h2 small { 
    font-size: 13px; 
    font-weight: 300; 
    color: #2a5775; 
    margin-left: 8px; 
    display: inline-block; 
    font-family: 'Montserrat', sans-serif; 
}

h3 { 
    font-size: 18px; 
    color: #003366; 
    margin: 18px 0 10px; 
    padding-left: 8px; 
    border-left: 5px solid #d4af37; 
    font-family: 'Russo One', sans-serif; 
}

@media (max-width: 480px) {
    h2 { font-size: 20px; border-left-width: 6px; padding-left: 10px; margin-bottom: 8px; }
    h2 small { font-size: 12px; }
    h3 { font-size: 17px; margin: 15px 0 8px; }
}

/* ============= О НАС ============= */
.about-content {
    background: white;
    border-radius: 25px;
    padding: 20px 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: 2px solid #d4af37;
    margin-top: 16px;
}

@media (max-width: 480px) { 
    .about-content { padding: 16px 12px; border-radius: 20px; } 
}

.about-highlight {
    background: linear-gradient(145deg, #003366, #1a4a6e);
    color: white;
    padding: 16px;
    border-radius: 20px;
    margin: 16px 0;
    text-align: center;
    border: 2px solid #d4af37;
}

.about-highlight p { font-size: 16px; font-weight: 500; line-height: 1.5; }
@media (max-width: 480px) { 
    .about-highlight { padding: 12px; } 
    .about-highlight p { font-size: 14px; } 
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.feature-item {
    background: #e8f0f7;
    border-radius: 16px;
    padding: 12px;
    text-align: center;
    border: 1px solid #b5d0e5;
}

.feature-item .emoji { font-size: 28px; margin-bottom: 6px; display: block; }
.feature-item h4 { color: #003366; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.feature-item p { color: #1f4a6e; font-size: 13px; }

@media (max-width: 480px) {
    .about-features { gap: 8px; }
    .feature-item { padding: 8px; }
    .feature-item .emoji { font-size: 24px; }
    .feature-item h4 { font-size: 14px; }
    .feature-item p { font-size: 12px; }
}
@media (max-width: 360px) { 
    .about-features { grid-template-columns: 1fr; } 
}

/* ============= ФОРМЫ ============= */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 16px 0;
}

@media (max-width: 480px) { 
    .form-grid { gap: 12px; margin: 12px 0; } 
}

.input-group {
    background: white;
    border-radius: 25px;
    padding: 4px 16px;
    box-shadow: 0 3px 10px rgba(0,30,50,0.1);
    border: 1px solid #cddbe8;
    transition: 0.2s;
}

@media (max-width: 480px) { 
    .input-group { padding: 2px 14px; border-radius: 22px; } 
}

.input-group:focus-within {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px #d4af3755;
}

.input-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #003366;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Montserrat', sans-serif;
}

@media (max-width: 480px) { 
    .input-group label { font-size: 10px; margin-top: 4px; } 
}

.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    border: none;
    padding: 8px 0;
    font-size: 15px;
    background: transparent;
    outline: none;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
}

@media (max-width: 480px) { 
    .input-group input, .input-group select, .input-group textarea { 
        font-size: 14px; 
        padding: 6px 0; 
    } 
}

.input-group textarea { min-height: 70px; resize: vertical; }
.input-group select { cursor: pointer; }

/* ============= КНОПКИ ============= */
.btn-primary {
    background: linear-gradient(145deg, #003366, #002244);
    color: white;
    border: none;
    padding: 14px 22px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 45px;
    cursor: pointer;
    box-shadow: 0 5px 0 #001122, 0 4px 15px #003366;
    transition: 0.08s linear;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #d4af37;
    width: 100%;
    touch-action: manipulation;
    font-family: 'Russo One', sans-serif;
}

.btn-primary:hover { transform: translateY(3px); box-shadow: 0 2px 0 #001122, 0 6px 15px #003366; }
.btn-primary:active { transform: translateY(5px); box-shadow: 0 1px 0 #001122; }

.btn-secondary {
    background: #2a5775;
    color: white;
    border: none;
    padding: 12px 18px;
    font-size: 15px;
    border-radius: 35px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 4px solid #0f2a3a;
    transition: 0.08s;
    width: 100%;
    touch-action: manipulation;
    font-family: 'Russo One', sans-serif;
}

.btn-secondary:active { transform: translateY(2px); border-bottom-width: 2px; }

.btn-success {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 18px;
    font-size: 15px;
    border-radius: 35px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 4px solid #1e7e34;
    transition: 0.08s;
    width: 100%;
    touch-action: manipulation;
    font-family: 'Russo One', sans-serif;
}

.btn-success:active { transform: translateY(2px); border-bottom-width: 2px; }

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 18px;
    font-size: 15px;
    border-radius: 35px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 4px solid #bd2130;
    transition: 0.08s;
    width: 100%;
    touch-action: manipulation;
    font-family: 'Russo One', sans-serif;
}

.btn-danger:active { transform: translateY(2px); border-bottom-width: 2px; }

.btn-warning {
    background: #ffc107;
    color: #002244;
    border: none;
    padding: 12px 18px;
    font-size: 15px;
    border-radius: 35px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 4px solid #d39e00;
    transition: 0.08s;
    width: 100%;
    touch-action: manipulation;
    font-family: 'Russo One', sans-serif;
}

.btn-warning:active { transform: translateY(2px); border-bottom-width: 2px; }

.btn-info {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 12px 18px;
    font-size: 15px;
    border-radius: 35px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 4px solid #117a8b;
    transition: 0.08s;
    width: 100%;
    touch-action: manipulation;
    font-family: 'Russo One', sans-serif;
}

.btn-info:active { transform: translateY(2px); border-bottom-width: 2px; }

/* Кнопка отмены отклика */
.btn-cancel-response {
    background: linear-gradient(145deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 12px 18px;
    font-size: 15px;
    border-radius: 35px;
    font-weight: 700;
    cursor: pointer;
    border-bottom: 4px solid #990000;
    transition: 0.08s linear;
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Russo One', sans-serif;
}

.btn-cancel-response:active {
    transform: translateY(2px);
    border-bottom-width: 2px;
}

.btn-cancel-response:hover {
    background: linear-gradient(145deg, #e04555, #dc3545);
    transform: translateY(-1px);
}

.btn-approved-disabled {
    background: linear-gradient(145deg, #28a745, #1e7e34);
    color: white;
    padding: 12px 18px;
    font-size: 15px;
    border-radius: 35px;
    font-weight: 700;
    border: none;
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Russo One', sans-serif;
}

@media (max-width: 480px) {
    .btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning, .btn-info,
    .btn-cancel-response, .btn-approved-disabled { 
        padding: 12px 16px !important; 
        font-size: 14px !important; 
        border-radius: 30px !important; 
    }
}

/* ============= ИНДИКАТОР СТАТУСА ОТКЛИКА ============= */
.response-indicator {
    background: linear-gradient(145deg, #f8fafc, #eef5fa);
    border-radius: 20px;
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-left: 5px solid;
    animation: slideInRight 0.3s ease;
}

.response-indicator-pending {
    background: linear-gradient(145deg, #fff9e6, #fff3cd);
    border-left-color: #ffc107;
}

.response-indicator-approved {
    background: linear-gradient(145deg, #e8f5e9, #d4edda);
    border-left-color: #28a745;
}

.response-indicator-rejected {
    background: linear-gradient(145deg, #fee, #f8d7da);
    border-left-color: #dc3545;
}

.response-indicator-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.response-indicator-text {
    flex: 1;
}

.response-indicator-title {
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 4px;
}

.response-indicator-pending .response-indicator-title {
    color: #856404;
}

.response-indicator-approved .response-indicator-title {
    color: #155724;
}

.response-indicator-rejected .response-indicator-title {
    color: #721c24;
}

.response-indicator-desc {
    font-size: 12px;
    color: #4a6f8c;
    line-height: 1.4;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    .response-indicator {
        padding: 12px;
        gap: 10px;
    }
    .response-indicator-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .response-indicator-title {
        font-size: 14px;
    }
    .response-indicator-desc {
        font-size: 11px;
    }
}

/* ============= СТИЛИ ДЛЯ ИНДИКАЦИИ СТАТУСА ОТКЛИКА В КАРТОЧКЕ ============= */
.response-status-info {
    width: 100%;
    margin-top: 8px;
    text-align: center;
    font-size: 12px;
    padding: 6px;
    border-radius: 20px;
}
.response-status-info.pending {
    color: #856404;
    background: rgba(255,193,7,0.1);
}
.response-status-info.approved {
    color: #155724;
    background: rgba(40,167,69,0.1);
}
.response-status-info.rejected {
    color: #721c24;
    background: rgba(220,53,69,0.1);
}

/* ============= СТИЛИ ДЛЯ ИНДИКАЦИИ СТАТУСА ОТКЛИКА В СПИСКЕ ОБЪЯВЛЕНИЙ ============= */
.response-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 8px;
    white-space: nowrap;
}
.response-badge-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}
.response-badge-approved {
    background: #d4edda;
    color: #155724;
    border: 1px solid #28a745;
}
.response-badge-rejected {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #dc3545;
}

@media (max-width: 480px) {
    .response-badge {
        font-size: 9px;
        padding: 2px 6px;
        margin-left: 4px;
    }
}

/* ============= СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ВЫБОРА ГОРОДА ============= */
.city-select-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 20002;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease;
}
.city-select-container {
    background: linear-gradient(145deg, #0f1724, #0a0f18);
    width: 100%;
    max-width: 400px;
    border-radius: 28px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
    overflow: hidden;
}
.city-select-header {
    background: linear-gradient(135deg, #1a2a3a, #0f1724);
    padding: 20px 20px 16px;
    text-align: center;
    border-bottom: 2px solid #d4af37;
    position: relative;
}
.city-select-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #ffd700, #d4af37);
}
.city-select-icon {
    font-size: 44px;
    display: block;
    margin-bottom: 8px;
}
.city-select-header h2 {
    color: white;
    font-size: 22px;
    margin: 0;
    font-weight: 800;
    letter-spacing: 1px;
}
.city-select-header p {
    color: #d4af37;
    font-size: 11px;
    margin: 4px 0 0;
    letter-spacing: 0.5px;
}
.city-select-body {
    padding: 24px;
}
.city-search-group {
    margin-bottom: 20px;
}
.city-search-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d4af37;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.city-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 16px;
    padding: 14px 16px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.city-search-input:focus {
    outline: none;
    border-color: #d4af37;
    background-color: rgba(212, 175, 55, 0.1);
}
.city-search-input::placeholder {
    color: #6a7a8e;
}
.city-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.2);
}
.city-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    color: white;
}
.city-item:hover {
    background: rgba(212, 175, 55, 0.15);
    transform: translateX(4px);
}
.city-item-icon {
    font-size: 20px;
}
.city-item-name {
    flex: 1;
    font-weight: 500;
}
.city-item-region {
    font-size: 11px;
    color: #8a9bb0;
}
.city-no-results {
    text-align: center;
    padding: 30px;
    color: #8a9bb0;
    font-size: 13px;
}
.city-select-buttons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}
.btn-city-select {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 12px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-city-select:hover {
    background: rgba(212, 175, 55, 0.15);
}

/* ============= СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА СМЕНЫ РЕГИОНА ============= */
.region-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 20001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease;
}
.region-modal-container {
    background: linear-gradient(145deg, #0f1724, #0a0f18);
    width: 100%;
    max-width: 400px;
    border-radius: 28px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
    overflow: hidden;
}
.region-modal-header {
    background: linear-gradient(135deg, #1a2a3a, #0f1724);
    padding: 20px 20px 16px;
    text-align: center;
    border-bottom: 2px solid #d4af37;
    position: relative;
}
.region-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #ffd700, #d4af37);
}
.region-modal-icon {
    font-size: 44px;
    display: block;
    margin-bottom: 8px;
}
.region-modal-header h2 {
    color: white;
    font-size: 22px;
    margin: 0;
    font-weight: 800;
    letter-spacing: 1px;
}
.region-modal-header p {
    color: #d4af37;
    font-size: 11px;
    margin: 4px 0 0;
    letter-spacing: 0.5px;
}
.region-modal-body {
    padding: 24px;
}
.region-select-group {
    margin-bottom: 20px;
}
.region-select-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d4af37;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.region-select-group label span {
    font-size: 14px;
}
.region-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 16px;
    padding: 14px 16px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.region-select:hover {
    background-color: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.5);
}
.region-select:focus {
    outline: none;
    border-color: #d4af37;
    background-color: rgba(212, 175, 55, 0.15);
}
.region-select option {
    background: #0f1724;
    color: white;
}
.region-current {
    background: rgba(212, 175, 55, 0.1);
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 1px dashed rgba(212, 175, 55, 0.3);
}
.region-current-label {
    font-size: 11px;
    color: #8a9bb0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.region-current-value {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d4af37;
    font-weight: 600;
    font-size: 14px;
}
.region-current-value span:first-child {
    font-size: 16px;
}
.region-modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.btn-region-save {
    flex: 2;
    background: linear-gradient(145deg, #d4af37, #c49b2a);
    color: #0a0f18;
    border: none;
    padding: 14px;
    border-radius: 40px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-region-save:hover {
    background: linear-gradient(145deg, #e5c44a, #d4af37);
    transform: translateY(-1px);
}
.btn-region-save:active {
    transform: translateY(1px);
}
.btn-region-cancel {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 14px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-region-cancel:hover {
    background: rgba(212, 175, 55, 0.15);
}

/* ============= ИНТЕРАКТИВНАЯ ИНСТРУКЦИЯ ============= */
.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 30000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}
.tour-container {
    background: linear-gradient(145deg, #0f1724, #0a0f18);
    width: 100%;
    max-width: 400px;
    border-radius: 28px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
    overflow: hidden;
}
.tour-header {
    background: linear-gradient(135deg, #1a2a3a, #0f1724);
    padding: 20px 20px 16px;
    text-align: center;
    border-bottom: 2px solid #d4af37;
    position: relative;
}
.tour-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #ffd700, #d4af37);
}
.tour-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 8px;
}
.tour-header h2 {
    color: white;
    font-size: 22px;
    margin: 0;
    font-weight: 800;
    letter-spacing: 1px;
}
.tour-header p {
    color: #d4af37;
    font-size: 11px;
    margin: 4px 0 0;
    letter-spacing: 0.5px;
}
.tour-body {
    padding: 24px;
}
.tour-step-indicator {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}
.tour-step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}
.tour-step-dot.active {
    background: #d4af37;
    width: 24px;
    border-radius: 5px;
}
.tour-step-dot.completed {
    background: #28a745;
}
.tour-step-content {
    text-align: center;
    margin-bottom: 24px;
    min-height: 200px;
}
.tour-step-title {
    color: #d4af37;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
    font-family: 'Russo One', sans-serif;
}
.tour-step-description {
    color: #c0d0e0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}
.tour-feature-list {
    text-align: left;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 16px;
    margin-top: 16px;
}
.tour-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}
.tour-feature-item:last-child {
    border-bottom: none;
}
.tour-feature-icon {
    font-size: 24px;
    min-width: 40px;
    text-align: center;
}
.tour-feature-text {
    flex: 1;
}
.tour-feature-title {
    color: white;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 2px;
}
.tour-feature-desc {
    color: #8a9bb0;
    font-size: 11px;
}
.tour-highlight {
    background: linear-gradient(145deg, #d4af37, #c49b2a);
    color: #0a0f18;
    padding: 12px;
    border-radius: 12px;
    margin-top: 16px;
    font-weight: 600;
    font-size: 13px;
}
.tour-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.tour-btn {
    flex: 1;
    padding: 12px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    border: none;
}
.tour-btn-primary {
    background: linear-gradient(145deg, #d4af37, #c49b2a);
    color: #0a0f18;
}
.tour-btn-primary:hover {
    background: linear-gradient(145deg, #ffd700, #d4af37);
    transform: translateY(-1px);
}
.tour-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.3);
}
.tour-btn-secondary:hover {
    background: rgba(212, 175, 55, 0.15);
}
.tour-skip {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: #6a7a8e;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
}
.tour-skip:hover {
    color: #d4af37;
}
.tour-highlight-element {
    position: relative;
    z-index: 30001;
    box-shadow: 0 0 0 4px #d4af37, 0 0 0 8px rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
    animation: tourPulse 1.5s infinite;
}
@keyframes tourPulse {
    0% { box-shadow: 0 0 0 4px #d4af37, 0 0 0 8px rgba(212, 175, 55, 0.3); }
    50% { box-shadow: 0 0 0 6px #ffd700, 0 0 0 12px rgba(255, 215, 0, 0.2); }
    100% { box-shadow: 0 0 0 4px #d4af37, 0 0 0 8px rgba(212, 175, 55, 0.3); }
}
.tour-tooltip {
    position: absolute;
    background: #0f1724;
    color: white;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 13px;
    max-width: 250px;
    z-index: 30002;
    border: 2px solid #d4af37;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}
.tour-tooltip::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #0f1724;
    border-left: 2px solid #d4af37;
    border-top: 2px solid #d4af37;
    transform: rotate(45deg);
}
.tour-tooltip.top::before {
    bottom: -7px;
    left: 20px;
}
.tour-tooltip.bottom::before {
    top: -7px;
    left: 20px;
}
.tour-tooltip.left::before {
    right: -7px;
    top: 20px;
}
.tour-tooltip.right::before {
    left: -7px;
    top: 20px;
}
.tour-tooltip-title {
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 6px;
    font-size: 14px;
}
.tour-tooltip-text {
    font-size: 12px;
    color: #c0d0e0;
    line-height: 1.4;
}

/* ============= СТИЛИ ДЛЯ АВАТАРОВ ============= */
.avatar-section {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    background: linear-gradient(145deg, #f8fafc, #eef5fa);
    padding: 20px;
    border-radius: 30px;
    border: 2px solid #d4af37;
}
.avatar-container {
    position: relative;
    flex-shrink: 0;
}
.avatar-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #d4af37;
    background: #003366;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.avatar-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}
.avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(145deg, #003366, #1a4a6e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    border: 4px solid #d4af37;
    color: #d4af37;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.avatar-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #003366;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d4af37;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #d4af37;
    font-size: 18px;
}
.avatar-overlay:hover {
    background: #d4af37;
    color: #003366;
    transform: scale(1.1);
}
.avatar-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.avatar-btn {
    padding: 8px 20px;
    border-radius: 35px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.avatar-upload-btn {
    background: linear-gradient(145deg, #003366, #1a4a6e);
    color: white;
    border-bottom: 3px solid #d4af37;
}
.avatar-upload-btn:hover {
    background: linear-gradient(145deg, #1a4a6e, #003366);
    transform: translateY(-2px);
}
.avatar-delete-btn {
    background: #dc3545;
    color: white;
    border-bottom: 3px solid #990000;
}
.avatar-delete-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}
.profile-quick-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #d4af37;
    background: #003366;
}
.user-avatar-medium {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #d4af37;
    background: #003366;
}
#avatarFileInput {
    display: none;
}
.avatar-loading {
    animation: avatarPulse 1s ease-in-out infinite;
}
@keyframes avatarPulse {
    0% { opacity: 0.6; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.02); }
    100% { opacity: 0.6; transform: scale(0.98); }
}
@media (max-width: 480px) {
    .avatar-section { padding: 15px; gap: 16px; }
    .avatar-image, .avatar-placeholder { width: 90px; height: 90px; font-size: 36px; }
    .avatar-overlay { width: 30px; height: 30px; font-size: 14px; }
    .avatar-btn { padding: 6px 16px; font-size: 12px; }
    .profile-quick-avatar { width: 28px; height: 28px; }
}

/* ============= ОБРАТНАЯ СВЯЗЬ ============= */
.feedback-panel {
    background: white;
    border-radius: 25px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: 2px solid #d4af37;
    margin-top: 8px;
}

@media (max-width: 480px) {
    .feedback-panel { padding: 14px; border-radius: 20px; }
}

.feedback-card {
    background: linear-gradient(145deg, #f8fafc, #eef5fa);
    border-radius: 20px;
    padding: 20px;
    margin-top: 16px;
    border: 1px solid #b5d0e5;
}

@media (max-width: 480px) {
    .feedback-card { padding: 16px; }
}

.feedback-card .input-group {
    background: white;
}

.feedback-note {
    border-top: 1px dashed #b5d0e5;
    padding-top: 12px;
    margin-top: 8px;
}

.feedback-info {
    transition: all 0.3s ease;
}

.feedback-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#feedbackMessage {
    resize: vertical;
    min-height: 100px;
}

#feedbackSubject {
    cursor: pointer;
}

/* Анимация для кнопки отправки */
#sendFeedbackBtn {
    position: relative;
    overflow: hidden;
}

#sendFeedbackBtn.sending {
    opacity: 0.7;
    cursor: wait;
}

#sendFeedbackBtn.sending::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: loadingShimmer 1.5s infinite;
}

@keyframes loadingShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ============= АНИМАЦИИ ============= */
@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============= КАРТОЧКА ЛОКАЦИИ (для страницы Ледовых дворцов) ============= */
.location-card {
    background: linear-gradient(145deg, #e8f0f7, #d4e6f5);
    border-radius: 22px;
    padding: 16px;
    margin: 16px 0;
    border: 3px solid #d4af37;
    box-shadow: 0 8px 15px rgba(0,40,70,0.3);
}

@media (max-width: 480px) { 
    .location-card { padding: 14px; border-radius: 18px; } 
}

.location-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.location-icon {
    background: #003366;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 2px solid #d4af37;
}

@media (max-width: 480px) { 
    .location-icon { width: 40px; height: 40px; font-size: 22px; } 
}

.location-title {
    font-size: 20px;
    font-weight: 800;
    color: #003366;
    text-transform: uppercase;
    font-family: 'Russo One', sans-serif;
}

@media (max-width: 480px) { 
    .location-title { font-size: 18px; } 
}

.location-details {
    background: white;
    border-radius: 16px;
    padding: 12px;
    margin: 12px 0;
    border: 2px solid #b5d0e5;
}

.location-coord {
    font-family: monospace;
    font-size: 16px;
    font-weight: 700;
    color: #003366;
    padding: 8px;
    background: #eef5fa;
    border-radius: 12px;
    text-align: center;
    word-break: break-all;
}

@media (max-width: 480px) { 
    .location-coord { font-size: 14px; padding: 6px; } 
}

.location-status {
    padding: 10px;
    border-radius: 25px;
    font-weight: 600;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 480px) { 
    .location-status { font-size: 13px; padding: 8px; } 
}

.location-status.waiting { background: #fff3cd; color: #856404; border: 2px solid #ffeeba; }
.location-status.success { background: #d4edda; color: #155724; border: 2px solid #c3e6cb; }
.location-status.error { background: #f8d7da; color: #721c24; border: 2px solid #f5c6cb; }

.location-map-link {
    display: inline-block;
    background: #003366;
    color: white;
    padding: 10px 18px;
    border-radius: 35px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 8px;
    border: 2px solid #d4af37;
    width: 100%;
    text-align: center;
    font-size: 14px;
}

/* Кнопка для определения местоположения */
.btn-location {
    background: linear-gradient(145deg, #d4af37, #c99f2a);
    color: #002244;
    border: none;
    padding: 14px 22px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 45px;
    cursor: pointer;
    border-bottom: 4px solid #996633;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.08s linear;
    font-family: 'Russo One', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-location:active { 
    transform: translateY(2px); 
    border-bottom-width: 2px;
}

.btn-location:hover {
    background: linear-gradient(145deg, #ffd700, #d4af37);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn-location .search-btn-icon {
    font-size: 18px;
}

/* Кнопка загрузки ЛДС */
.btn-server-load {
    background: linear-gradient(145deg, #17a2b8, #138496);
    color: white;
    border: none;
    padding: 14px 22px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 45px;
    cursor: pointer;
    border-bottom: 4px solid #0f6674;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.08s linear;
    font-family: 'Russo One', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-server-load:active {
    transform: translateY(2px);
    border-bottom-width: 2px;
}

.btn-server-load:hover {
    background: linear-gradient(145deg, #1fc8e0, #17a2b8);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn-server-load .search-btn-icon {
    font-size: 18px;
}

/* Кнопка поиска в другом городе */
.btn-search-city {
    background: linear-gradient(145deg, #17a2b8, #138496);
    color: white;
    border: none;
    padding: 14px 22px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 45px;
    cursor: pointer;
    border-bottom: 4px solid #0f6674;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.08s linear;
    font-family: 'Russo One', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.btn-search-city:active {
    transform: translateY(2px);
    border-bottom-width: 2px;
}

.btn-search-city:hover {
    background: linear-gradient(145deg, #1fc8e0, #17a2b8);
    transform: translateY(-1px);
}

.current-search-city {
    background: rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 8px 12px;
    margin-top: 12px;
    font-size: 13px;
    color: #d4af37;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.reset-city-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #d4af37;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
}

.reset-city-btn:hover {
    background: rgba(212, 175, 55, 0.3);
}

@media (max-width: 480px) {
    .btn-location, .btn-server-load, .btn-search-city {
        padding: 12px 18px;
        font-size: 14px;
    }
    .btn-location .search-btn-icon,
    .btn-server-load .search-btn-icon,
    .btn-search-city .search-btn-icon {
        font-size: 16px;
    }
}

/* ============= СООБЩЕНИЯ ============= */
.message {
    margin: 16px 0 0;
    padding: 10px 16px;
    border-radius: 35px;
    font-weight: 500;
    display: none;
    font-size: 14px;
    word-break: break-word;
}

.message.success { background: #d4edda; color: #155724; border: 2px solid #28a745; display: block; }
.message.error { background: #f8d7da; color: #721c24; border: 2px solid #dc3545; display: block; }
.message.info { background: #d1ecf1; color: #0c5460; border: 2px solid #17a2b8; display: block; }
.message.warning { background: #fff3cd; color: #856404; border: 2px solid #ffc107; display: block; }

@media (max-width: 480px) { 
    .message { font-size: 13px; padding: 8px 14px; } 
}

/* ============= ПРОФИЛЬ ============= */
.profile-card {
    background: white;
    border-radius: 25px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: 2px solid #d4af37;
    margin-top: 16px;
}

@media (max-width: 480px) { 
    .profile-card { padding: 14px; border-radius: 20px; } 
}

.profile-field {
    margin-bottom: 12px;
    border-bottom: 1px solid #e0e9f0;
    padding-bottom: 6px;
}

.profile-field label {
    font-weight: 600;
    color: #003366;
    font-size: 11px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 3px;
}

.profile-field .value {
    font-size: 16px;
    color: #1a3a4f;
    font-weight: 500;
    word-break: break-word;
}

@media (max-width: 480px) { 
    .profile-field .value { font-size: 15px; } 
}

.flex-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.user-info-bar {
    background: #d4af37;
    color: #002244;
    padding: 10px 14px;
    border-radius: 35px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 480px) { 
    .user-info-bar { font-size: 14px; padding: 8px 12px; } 
}

.logout-btn {
    background: #002244;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 35px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    touch-action: manipulation;
}

/* ============= ЛЕДОВЫЕ ДВОРЦЫ ============= */
.rink-panel {
    background: white;
    border-radius: 25px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: 2px solid #d4af37;
    margin-top: 8px;
}

@media (max-width: 480px) { 
    .rink-panel { padding: 14px; border-radius: 20px; } 
}

.rink-panel h2 { margin-top: 0; }
.rink-list { margin-top: 16px; }

.rink-item {
    background: linear-gradient(145deg, #f0f6fb, #e8f0f7);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 12px;
    border: 2px solid #b5d0e5;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s;
}

.rink-item:hover { transform: translateX(5px); border-color: #d4af37; }
@media (max-width: 480px) { 
    .rink-item { padding: 10px; gap: 10px; } 
}

.rink-number {
    background: #003366;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    border: 2px solid #d4af37;
    flex-shrink: 0;
}

@media (max-width: 480px) { 
    .rink-number { width: 32px; height: 32px; font-size: 14px; } 
}

.rink-info { flex: 1; }

.rink-name {
    font-weight: 800;
    color: #003366;
    font-size: 15px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

@media (max-width: 480px) { 
    .rink-name { font-size: 14px; } 
}

.rink-address {
    color: #2a5775;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.rink-distance {
    background: #d4af37;
    color: #002244;
    padding: 3px 8px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
}

.rink-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}

.status-open { background: #28a745; box-shadow: 0 0 5px #28a745; }
.status-closed { background: #dc3545; box-shadow: 0 0 5px #dc3545; }

.rink-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.rink-btn {
    background: #003366;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #d4af37;
}

.rink-btn:hover { background: #1a4a6e; }
@media (max-width: 480px) { 
    .rink-btn { padding: 5px 10px; font-size: 11px; } 
}

/* ============= ФИЛЬТРЫ ============= */
.filter-buttons {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.filter-btn {
    background: #e8f0f7;
    color: #003366;
    border: 2px solid #b5d0e5;
    padding: 6px 12px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    flex: 1;
    min-width: 80px;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 480px) { 
    .filter-btn { padding: 5px 8px; font-size: 12px; min-width: 70px; } 
}
@media (max-width: 360px) { 
    .filter-btn { min-width: 60px; font-size: 11px; padding: 4px 6px; } 
}

.filter-btn.active {
    background: #003366;
    color: white;
    border-color: #d4af37;
}

.filter-btn.level-A { background: linear-gradient(145deg, #ffd700, #ffed4e); color: #002244; border-color: #b8860b; }
.filter-btn.level-A.active { background: #b8860b; color: white; border-color: #ffd700; }
.filter-btn.level-B { background: linear-gradient(145deg, #c0c0c0, #e0e0e0); color: #002244; border-color: #808080; }
.filter-btn.level-B.active { background: #808080; color: white; border-color: #c0c0c0; }
.filter-btn.level-C { background: linear-gradient(145deg, #cd7f32, #e09d5e); color: white; border-color: #8b4513; }
.filter-btn.level-C.active { background: #8b4513; color: white; border-color: #cd7f32; }
.filter-btn.level-D { background: linear-gradient(145deg, #6c757d, #868e96); color: white; border-color: #495057; }
.filter-btn.level-D.active { background: #495057; color: white; border-color: #6c757d; }
.filter-btn.level-E { background: linear-gradient(145deg, #28a745, #34ce57); color: white; border-color: #1e7e34; }
.filter-btn.level-E.active { background: #1e7e34; color: white; border-color: #28a745; }
.filter-btn.level-F { background: linear-gradient(145deg, #17a2b8, #3dd5f3); color: white; border-color: #117a8b; }
.filter-btn.level-F.active { background: #117a8b; color: white; border-color: #17a2b8; }
.filter-btn.level-G { background: linear-gradient(145deg, #6610f2, #8b5cf6); color: white; border-color: #520dc2; }
.filter-btn.level-G.active { background: #520dc2; color: white; border-color: #6610f2; }
.filter-btn.level-H { background: linear-gradient(145deg, #e83e8c, #ff6b9d); color: white; border-color: #c72e7a; }
.filter-btn.level-H.active { background: #c72e7a; color: white; border-color: #e83e8c; }

/* ============= СОРТИРОВКА ============= */
.sort-buttons {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    flex-wrap: wrap;
    justify-content: space-between;
}

.sort-group {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.sort-btn {
    background: white;
    color: #003366;
    border: 2px solid #b5d0e5;
    padding: 6px 12px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-size: 13px;
}

@media (max-width: 480px) { 
    .sort-btn { padding: 5px 8px; font-size: 12px; } 
}

.sort-btn:hover { background: #e8f0f7; border-color: #d4af37; }
.sort-btn.active { background: #003366; color: white; border-color: #d4af37; }

.current-location-info {
    background: #e8f0f7;
    border-radius: 12px;
    padding: 10px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #d4af37;
    font-size: 13px;
    flex-wrap: wrap;
}

/* ============= КАРТОЧКИ ПОИСКА ============= */
.search-card {
    background: white;
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 20, 40, 0.15);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

@media (max-width: 480px) { 
    .search-card { padding: 16px; border-radius: 18px; } 
}

.search-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #d4af37, #ffd966);
}

.search-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); }
.search-card-primary { background: linear-gradient(145deg, #ffffff, #f0f8ff); border-color: #003366; }
.search-card-primary::before { background: linear-gradient(90deg, #003366, #1a4a6e); }
.search-card-success { background: linear-gradient(145deg, #ffffff, #e8f5e9); border-color: #17a2b8; }
.search-card-success::before { background: linear-gradient(90deg, #17a2b8, #4ac7d9); }
.search-card-info { background: linear-gradient(145deg, #ffffff, #fff9e6); border-color: #d4af37; }
.search-card-info::before { background: linear-gradient(90deg, #d4af37, #ffd966); }

.search-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px dashed rgba(0, 51, 102, 0.2);
}

@media (max-width: 480px) { 
    .search-card-header { gap: 10px; margin-bottom: 16px; } 
}

.search-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #003366, #1a4a6e);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    border: 3px solid #d4af37;
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.4);
    transform: rotate(5deg);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

@media (max-width: 480px) { 
    .search-card-icon { width: 45px; height: 45px; font-size: 22px; } 
}

.search-card:hover .search-card-icon { transform: rotate(0deg) scale(1.05); }

.search-card-title h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 800;
    color: #003366;
    letter-spacing: 0.5px;
}

@media (max-width: 480px) { 
    .search-card-title h3 { font-size: 16px; } 
}

.search-card-subtitle {
    font-size: 13px;
    color: #4a6f8c;
    display: block;
    font-weight: 400;
}

.search-card-body { padding: 4px 0; }

.search-field-group {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.search-field { flex: 1; min-width: 180px; }
@media (max-width: 480px) { 
    .search-field { min-width: 100%; } 
}

.search-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-weight: 600;
    color: #003366;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-label-icon { font-size: 14px; }

.search-input-wrapper { position: relative; transition: all 0.3s ease; }

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e9f0;
    border-radius: 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
    color: #1a3a4f;
    font-weight: 500;
}

@media (max-width: 480px) { 
    .search-input { padding: 10px 14px; font-size: 14px; } 
}

.search-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
    transform: scale(1.02);
}

.search-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 45px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
    min-width: 140px;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid transparent;
}

@media (max-width: 480px) { 
    .search-btn { padding: 10px 16px; font-size: 13px; min-width: 120px; } 
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.search-btn:hover::before { width: 300px; height: 300px; }
.search-btn:active { transform: translateY(2px); border-bottom-width: 2px; }

.search-btn-icon { font-size: 16px; z-index: 1; }
.search-btn span:not(.search-btn-icon) { z-index: 1; }

.search-btn-primary {
    background: linear-gradient(145deg, #003366, #1a4a6e);
    color: white;
    border-bottom-color: #001122;
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.3);
}

.search-btn-success {
    background: linear-gradient(145deg, #17a2b8, #138496);
    color: white;
    border-bottom-color: #0f6674;
    box-shadow: 0 5px 15px rgba(23, 162, 184, 0.3);
}

.search-btn-info {
    background: linear-gradient(145deg, #d4af37, #c99f2a);
    color: #002244;
    border-bottom-color: #996633;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.search-btn-secondary {
    background: linear-gradient(145deg, #6c757d, #5a6268);
    color: white;
    border-bottom-color: #495057;
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.search-message {
    margin: 16px 0 0;
    padding: 12px 16px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 14px;
    animation: slideIn 0.3s ease;
}

@media (max-width: 480px) { 
    .search-message { font-size: 13px; padding: 10px 14px; } 
}

.search-message.success { background: linear-gradient(145deg, #d4edda, #c3e6cb); color: #155724; border: 2px solid #28a745; }
.search-message.error { background: linear-gradient(145deg, #f8d7da, #f5c6cb); color: #721c24; border: 2px solid #dc3545; }
.search-message.warning { background: linear-gradient(145deg, #fff3cd, #ffeeba); color: #856404; border: 2px solid #ffc107; }

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============= ОБЪЯВЛЕНИЯ ============= */
.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

@media (max-width: 480px) { 
    .ads-grid { grid-template-columns: 1fr; gap: 12px; } 
}

.ad-card {
    background: white;
    border-radius: 22px;
    padding: 16px;
    border: 2px solid #e0e9f0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.ad-card:hover { transform: translateY(-5px); border-color: #d4af37; box-shadow: 0 20px 30px rgba(0, 51, 102, 0.2); }

.ad-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #28a745, #17a2b8, #ffc107);
}

.ad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f6fb;
    flex-wrap: wrap;
    gap: 6px;
}

.ad-type {
    background: #003366;
    color: white;
    padding: 4px 10px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 700;
}

.ad-status {
    padding: 4px 10px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 700;
}

.ad-status.active { background: #28a745; color: white; }
.ad-status.filled { background: #17a2b8; color: white; }
.ad-status.moderating { background: #ffc107; color: #002244; }
.ad-status.archived { background: #6c757d; color: white; }

.ad-title {
    font-size: 16px;
    font-weight: 700;
    color: #003366;
    margin-bottom: 8px;
}

.ad-info {
    margin: 6px 0;
    color: #2a5775;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ad-info i { width: 18px; color: #d4af37; }

.ad-levels {
    display: flex;
    gap: 4px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.level-badge {
    background: #e8f0f7;
    color: #003366;
    padding: 3px 8px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #b5d0e5;
}

.level-badge.level-A { background: #ffd700; color: #002244; }
.level-badge.level-B { background: #c0c0c0; color: #002244; }
.level-badge.level-C { background: #cd7f32; color: white; }
.level-badge.level-D { background: #6c757d; color: white; }
.level-badge.level-E { background: #28a745; color: white; }
.level-badge.level-F { background: #17a2b8; color: white; }
.level-badge.level-G { background: #6610f2; color: white; }
.level-badge.level-H { background: #e83e8c; color: white; }

.ad-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 2px solid #f0f6fb;
}

.ad-response-count {
    background: #d4af37;
    color: #002244;
    padding: 3px 8px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 700;
}

.ad-author {
    color: #6c757d;
    font-size: 11px;
}

/* ============= ОТКЛИКИ ============= */
.responses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
}

@media (min-width: 768px) { 
    .responses-grid { grid-template-columns: repeat(auto-fill, minmax(450px, 1fr)); } 
}

.response-card {
    background: white;
    border-radius: 22px;
    padding: 16px;
    border: 2px solid #e0e9f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

@media (max-width: 480px) { 
    .response-card { padding: 14px; } 
}

.response-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #17a2b8, #28a745);
}

.response-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.response-status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.response-status-badge.pending { background: #ffc107; color: #002244; }
.response-status-badge.accepted { background: #28a745; color: white; }
.response-status-badge.rejected { background: #dc3545; color: white; }
.response-status-badge.canceled { background: #6c757d; color: white; }

.response-date {
    color: #6c757d;
    font-size: 11px;
}

.response-ad-info {
    background: #e8f0f7;
    border-radius: 12px;
    padding: 8px 12px;
    margin: 8px 0;
    font-size: 13px;
}

.response-ad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 6px;
}

.response-ad-type {
    background: #003366;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}

.response-ad-status {
    font-size: 10px;
    color: #6c757d;
}

.response-ad-title {
    font-weight: 700;
    color: #003366;
    margin: 6px 0;
}

.response-ad-details {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 11px;
    color: #2a5775;
}

.response-message {
    background: #f8fafc;
    border-radius: 12px;
    padding: 10px;
    margin: 10px 0;
    font-size: 13px;
    color: #2a5775;
    border-left: 4px solid #d4af37;
}

.response-message-text {
    margin-top: 4px;
    font-style: italic;
}

.response-card-footer {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #e0e9f0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============= НОВЫЕ СТИЛИ ДЛЯ ОТКЛИКОВ НА МОИ ОБЪЯВЛЕНИЯ ============= */
.responses-to-my-ads {
    grid-template-columns: 1fr !important;
}

.response-to-my-ad {
    background: linear-gradient(145deg, #ffffff, #fafcff);
    border: 2px solid #d4af37;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.1);
    transition: all 0.3s ease;
}

.response-to-my-ad:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.2);
    border-color: #ffd700;
}

.response-to-my-ad::before {
    background: linear-gradient(90deg, #d4af37, #ffd700, #d4af37);
    height: 6px;
}

.response-card-header .response-ad-title-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-weight: 700;
    color: #003366;
    font-size: 14px;
    background: #e8f0f7;
    padding: 6px 12px;
    border-radius: 25px;
}

.response-ad-type-mini {
    background: #003366;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}

.response-ad-details-mini {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #2a5775;
    margin-bottom: 12px;
    padding: 6px 0;
    border-bottom: 1px dashed #e0e9f0;
}

.response-required-position {
    background: linear-gradient(145deg, #fff3cd, #ffeeba);
    color: #856404;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ffc107;
}

.response-user-info {
    background: #f8fafc;
    border-radius: 16px;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #e0e9f0;
}

.response-user-name {
    font-weight: 800;
    color: #003366;
    font-size: 15px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.user-jersey-number {
    background: #d4af37;
    color: #002244;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.response-user-details {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #2a5775;
    margin: 6px 0;
    padding: 4px 0;
}

.response-user-birth {
    font-size: 12px;
    color: #2a5775;
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.response-user-email {
    font-size: 12px;
    color: #17a2b8;
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    word-break: break-all;
}

.response-user-phone {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e0e9f0;
}

.response-actions-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
}

.response-actions-buttons .btn-success-small,
.response-actions-buttons .btn-danger-small,
.response-actions-buttons .btn-info-small {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 30px;
    font-weight: 700;
}

.response-approved-badge {
    background: #28a745;
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.response-rejected-badge {
    background: #dc3545;
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.response-canceled-badge {
    background: #6c757d;
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-success-small,
.btn-danger-small,
.btn-info-small {
    padding: 6px 12px;
    font-size: 12px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-success-small {
    background: #28a745;
    color: white;
}

.btn-success-small:hover {
    background: #218838;
    transform: translateY(-1px);
}

.btn-danger-small {
    background: #dc3545;
    color: white;
}

.btn-danger-small:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.btn-info-small {
    background: #17a2b8;
    color: white;
}

.btn-info-small:hover {
    background: #138496;
    transform: translateY(-1px);
}

.response-approved-message, .response-rejected-message {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 12px;
    margin-top: 8px;
}

.response-approved-message {
    background: #d4edda;
    color: #155724;
}

.response-rejected-message {
    background: #f8d7da;
    color: #721c24;
}

/* ============= МОДАЛЬНЫЕ ОКНА ============= */
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    padding: 10px;
}

.preview-content {
    background: white;
    border-radius: 18px;
    padding: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 3px solid #d4af37;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    animation: slideUp 0.3s ease;
}

@media (max-width: 480px) { 
    .preview-content { padding: 16px; border-radius: 15px; } 
}

@keyframes slideUp { 
    from { transform: translateY(30px); opacity: 0; } 
    to { transform: translateY(0); opacity: 1; } 
}

/* ============= ПАГИНАЦИЯ ============= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.pagination-btn {
    background: white;
    color: #003366;
    border: 2px solid #b5d0e5;
    padding: 6px 12px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    min-width: 36px;
    font-size: 13px;
}

.pagination-btn:hover:not(:disabled) { background: #003366; color: white; border-color: #d4af37; }
.pagination-btn.active { background: #003366; color: white; border-color: #d4af37; }
.pagination-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.pagination-info { color: #2a5775; font-size: 13px; font-weight: 600; }

/* ============= ФОРМА ОБЪЯВЛЕНИЯ ============= */
.ad-form {
    background: white;
    border-radius: 25px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: 2px solid #d4af37;
    margin-bottom: 16px;
}

.level-checkboxes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 8px 0;
}

.level-checkbox {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #e8f0f7;
    padding: 6px 12px;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 13px;
}

.level-checkbox:hover { background: #d4e6f5; }
.level-checkbox input { width: 16px; height: 16px; cursor: pointer; }

.datetime-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) { 
    .datetime-inputs { grid-template-columns: 1fr; gap: 10px; } 
}

.rink-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    margin: 12px 0;
    max-height: 180px;
    overflow-y: auto;
    padding: 8px;
    background: #f8fafc;
    border-radius: 16px;
}

.rink-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    background: white;
    border-radius: 12px;
    border: 1px solid #b5d0e5;
    font-size: 12px;
}

.rink-checkbox:hover { background: #e8f0f7; }
.rink-checkbox input { width: 14px; height: 14px; flex-shrink: 0; }

.country-selector, .region-selector {
    background: #f8fafc;
    border-radius: 25px;
    padding: 12px;
    border: 2px solid #d4af37;
    margin-top: 4px;
}

.city-mode-btn {
    transition: all 0.3s ease;
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 6px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
}

.city-mode-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
.city-mode-btn.active { background: #003366 !important; color: white !important; border-color: #d4af37 !important; }

#profileCityManual {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e9f0;
    border-radius: 25px;
    font-size: 15px;
    transition: all 0.3s ease;
}

#profileCityManual:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}

/* ============= TOAST УВЕДОМЛЕНИЯ ============= */
.toast-container {
    position: fixed;
    top: 10px;
    right: 10px;
    left: 10px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 320px;
    margin: 0 auto;
    pointer-events: none;
}

@media (min-width: 768px) { 
    .toast-container { left: auto; right: 20px; max-width: 320px; } 
}

.toast {
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-left: 5px solid;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease;
    transform-origin: right;
    backdrop-filter: blur(10px);
    border: 2px solid #d4af37;
    pointer-events: auto;
}

.toast.success { border-left-color: #28a745; background: rgba(212, 237, 218, 0.95); }
.toast.error { border-left-color: #dc3545; background: rgba(248, 215, 218, 0.95); }
.toast.warning { border-left-color: #ffc107; background: rgba(255, 243, 205, 0.95); }
.toast.info { border-left-color: #17a2b8; background: rgba(209, 236, 241, 0.95); }

.toast-icon { font-size: 22px; min-width: 28px; text-align: center; }
.toast-message { flex: 1; font-weight: 500; font-size: 13px; color: #002244; }

.toast-close {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 16px;
    padding: 0 4px;
    transition: all 0.2s;
}

.toast-close:hover { color: #dc3545; transform: scale(1.2); }
.toast-hide { animation: slideOutRight 0.3s ease forwards; }

@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100%); }
}

/* ============= ЗАГРУЗКА ============= */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 10002;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.loading-spinner {
    background: white;
    border-radius: 25px;
    padding: 25px;
    text-align: center;
    border: 3px solid #d4af37;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    min-width: 180px;
    width: 100%;
    max-width: 260px;
}

.spinner {
    width: 45px;
    height: 45px;
    border: 5px solid #e0e9f0;
    border-top-color: #003366;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

.loading-message { color: #003366; font-weight: 600; margin-bottom: 8px; }
.loading-progress { color: #d4af37; font-size: 13px; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ============= ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ============= */
.city-detection-status {
    background: linear-gradient(145deg, #003366, #1a4a6e);
    color: white;
    padding: 10px;
    border-radius: 12px;
    margin: 8px 0;
    text-align: center;
    border: 2px solid #d4af37;
    font-weight: 600;
    font-size: 13px;
}

.distance-badge {
    background: #d4af37;
    color: #002244;
    padding: 2px 6px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 6px;
    white-space: nowrap;
}

.notification-badge {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ff4444;
    border-radius: 50%;
    margin-left: 4px;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 5px #ff4444;
}

.ads-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

.ads-filters .filter-btn.active {
    background: #d4af37 !important;
    color: #003366 !important;
    border-color: #d4af37 !important;
    transform: scale(1.02);
}

.role-selector {
    background: #f8fafc;
    border-radius: 16px;
    padding: 12px;
    margin: 12px 0;
    border: 2px solid #d4af37;
}

.role-buttons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.role-btn {
    flex: 1;
    padding: 10px;
    background: #e8f0f7;
    border: 2px solid #b5d0e5;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.role-btn.selected {
    background: #003366;
    color: white;
    border-color: #d4af37;
}

.role-selector-required {
    border: 2px solid #dc3545 !important;
    background: #fff3f3 !important;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.required-hint {
    color: #dc3545;
    font-size: 12px;
    margin-top: 8px;
    padding: 4px 8px;
    background: #fff3f3;
    border-radius: 6px;
    display: inline-block;
}

.required-hint.success {
    color: #28a745;
    background: #f0fff4;
}

.players-count-inputs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.player-count-field {
    flex: 1;
    min-width: 100px;
}

.player-count-field input {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

.accepted-count {
    font-size: 12px;
    color: #28a745;
    margin-left: 6px;
}

.edit-ad-btn {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 0 4px;
    color: #003366;
}

.edit-ad-btn:hover {
    color: #d4af37;
}

.response-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 25px;
    margin: 8px 0;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
}

.selected-rinks-list {
    background: #e8f0f7;
    border-radius: 16px;
    padding: 8px 12px;
    margin: 8px 0;
}

.selected-rinks-list .rink-tag {
    display: inline-block;
    background: #003366;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    margin: 4px 4px 0 0;
}

.rink-selection-btn {
    background: #e8f0f7;
    border: 2px solid #b5d0e5;
    border-radius: 25px;
    padding: 8px 12px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-weight: 500;
}

.rink-selection-btn:hover {
    border-color: #d4af37;
    background: #fff;
}

.filters-info {
    background: #e8f0f7;
    border-radius: 16px;
    padding: 10px 12px;
    margin: 12px 0;
    font-size: 13px;
}

.contact-info {
    background: #f0f6fb;
    border-radius: 12px;
    padding: 8px 12px;
    margin: 8px 0;
    border-left: 3px solid #d4af37;
}

.contact-info .contact-name, .contact-info .contact-phone {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ad-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.ad-tag {
    background: #e8f0f7;
    padding: 2px 8px;
    border-radius: 16px;
    font-size: 10px;
    color: #003366;
}

.ad-detail-section {
    margin: 12px 0;
    padding: 12px;
    background: #f8fafc;
    border-radius: 16px;
}

.ad-detail-section h4 {
    color: #003366;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

.ad-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
    border-bottom: 1px dashed #e0e9f0;
}

.ad-detail-label {
    font-weight: 600;
    color: #2a5775;
}

.ad-detail-value {
    color: #003366;
    font-weight: 500;
    text-align: right;
}

.players-stats {
    display: flex;
    gap: 12px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.players-stat-item {
    background: white;
    border-radius: 12px;
    padding: 6px 12px;
    border: 1px solid #b5d0e5;
    font-size: 12px;
}

.players-stat-item strong {
    color: #003366;
}

.time-range-inputs {
    display: flex;
    gap: 12px;
    align-items: center;
}

.time-range-inputs .input-group {
    flex: 1;
}

.anytime-checkbox {
    margin-top: 8px;
}

.anytime-checkbox label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.input-hint {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #d4af37;
    border-top: none;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.input-hint.show {
    display: block;
}

.hint-item {
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #e0e9f0;
    font-size: 13px;
}

.hint-item:hover {
    background: #e8f0f7;
}

.hint-item:last-child {
    border-bottom: none;
}

.code-response {
    background: linear-gradient(135deg, #003366, #1a4a6e);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    border: 2px solid #d4af37;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.code-title {
    color: #d4af37;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.code-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
}

.code-text {
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 12px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 4px;
    color: #ffd700;
    margin-bottom: 12px;
    word-break: break-all;
}

.code-timer {
    font-size: 12px;
    text-align: center;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
}

.code-footer {
    display: flex;
    justify-content: center;
}

.copy-code-btn {
    background: #d4af37;
    color: #003366;
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.copy-code-btn:hover {
    background: #ffd700;
    transform: scale(1.02);
}

/* ============= ПУСТЫЕ СОСТОЯНИЯ ============= */
.empty-state {
    text-align: center;
    padding: 30px 16px;
    background: #ffffffd0;
    border-radius: 30px;
    color: #1f4a6e;
    font-size: 16px;
    font-weight: 600;
    border: 3px dashed #d4af37;
}

@media (max-width: 480px) { 
    .empty-state { padding: 25px 12px; font-size: 15px; border-radius: 25px; } 
}

.loading {
    text-align: center;
    padding: 25px;
    font-size: 16px;
    color: #003366;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.rink-icon {
    font-size: 22px;
    background: #003366;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d4af37;
    flex-shrink: 0;
}

@media (max-width: 480px) { 
    .rink-icon { width: 40px; height: 40px; font-size: 20px; } 
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 12px 0;
    border-radius: 16px;
    background: white;
    box-shadow: 0 10px 20px #00000020;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
    border: 2px solid #b5c9db;
}

@media (max-width: 480px) { 
    table { min-width: 400px; } 
}

th {
    background: #003366;
    color: white;
    padding: 10px 6px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

td {
    padding: 10px 6px;
    border-bottom: 1px solid #d4e0e9;
    font-weight: 500;
    font-size: 13px;
}

@media (max-width: 480px) { 
    th { font-size: 13px; padding: 8px 4px; } 
    td { font-size: 12px; padding: 8px 4px; } 
}

.position-badge {
    background: #d4af37;
    color: #002244;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 25px;
    font-size: 11px;
    display: inline-block;
    white-space: nowrap;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.range-fields {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

@media (max-width: 480px) { 
    .range-fields { flex-direction: column; gap: 8px; } 
}

.range-field { flex: 1; }

.range-info {
    background: linear-gradient(145deg, #f8fafc, #eef5fa);
    border-radius: 16px;
    padding: 14px;
    margin: 16px 0;
    border: 2px solid #d4af37;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.range-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.range-info-label {
    font-size: 12px;
    color: #4a6f8c;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.range-info-value {
    font-size: 16px;
    font-weight: 700;
    color: #003366;
}

.range-info-badge {
    background: #003366;
    color: #d4af37;
    padding: 4px 12px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 800;
    border: 2px solid #d4af37;
    display: inline-block;
}

/* Дополнительные стили для мобильных устройств */
@media (max-width: 768px) {
    .search-card { padding: 18px; }
    .search-card-header { gap: 10px; }
    .search-card-icon { width: 45px; height: 45px; font-size: 22px; }
    .search-card-title h3 { font-size: 16px; }
    .search-field-group { flex-direction: column; gap: 12px; }
    .range-fields { flex-direction: row; }
    .search-actions { flex-direction: column; }
    .search-btn { width: 100%; }
    .range-info { flex-direction: column; align-items: flex-start; }
    .sort-buttons { flex-direction: column; }
    .sort-group { justify-content: center; }
}

@media (max-width: 480px) {
    .search-card { padding: 14px; }
    .range-fields { flex-direction: column; }
    .search-input { padding: 10px 12px; }
    .range-info-item { width: 100%; }
    .sort-btn { padding: 5px 8px; font-size: 12px; }
    .search-results-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* Стили для блока подтверждения регистрации */
#registrationCodeBlock {
    transition: all 0.3s ease;
}

#sendRegCodeBtn, #registerBtn, #resetRegBtn {
    transition: all 0.2s ease;
}

#sendRegCodeBtn:disabled, #registerBtn:disabled, #resetRegBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ================================================================ */
/* СТИЛИ ДЛЯ МОДАЛЬНЫХ ОКОН АУТЕНТИФИКАЦИИ                          */
/* ================================================================ */

.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 40000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: authFadeIn 0.3s ease;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.auth-modal-container {
    background: linear-gradient(145deg, #0f1724, #0a0f18);
    width: 100%;
    max-width: 420px;
    border-radius: 28px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: authScaleIn 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
    overflow: hidden;
    max-height: 95vh;
    overflow-y: auto;
}

@keyframes authScaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.auth-modal-header {
    background: linear-gradient(135deg, #1a2a3a, #0f1724);
    padding: 20px 24px 16px;
    text-align: center;
    border-bottom: 2px solid #d4af37;
    position: relative;
}

.auth-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #ffd700, #d4af37);
}

.auth-modal-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 6px;
}

.auth-modal-header h2 {
    color: white;
    font-size: 20px;
    margin: 0;
    font-weight: 800;
    letter-spacing: 1px;
    font-family: 'Russo One', sans-serif;
}

.auth-modal-header p {
    color: #d4af37;
    font-size: 12px;
    margin: 4px 0 0;
    letter-spacing: 0.5px;
}

.auth-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #8a9bb0;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px 8px;
}

.auth-modal-close:hover {
    color: #d4af37;
}

.auth-modal-body {
    padding: 24px;
}

.auth-step {
    display: block;
}

.auth-form-group {
    margin-bottom: 16px;
}

.auth-form-group label {
    display: block;
    color: #d4af37;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 16px;
    padding: 14px 16px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.auth-input:focus {
    outline: none;
    border-color: #d4af37;
    background-color: rgba(212, 175, 55, 0.1);
}

.auth-input::placeholder {
    color: #6a7a8e;
}

.auth-hint {
    font-size: 11px;
    color: #6a7a8e;
    margin-top: 4px;
}

.auth-btn-primary {
    width: 100%;
    background: linear-gradient(145deg, #d4af37, #c49b2a);
    color: #0a0f18;
    border: none;
    padding: 14px;
    border-radius: 40px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Russo One', sans-serif;
    letter-spacing: 0.5px;
}

.auth-btn-primary:hover:not(:disabled) {
    background: linear-gradient(145deg, #ffd700, #d4af37);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.auth-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-btn-secondary {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 12px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.auth-btn-secondary:hover:not(:disabled) {
    background: rgba(212, 175, 55, 0.15);
}

.auth-btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-btn-success {
    width: 100%;
    background: linear-gradient(145deg, #28a745, #1e7e34);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 40px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Russo One', sans-serif;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.auth-btn-success:hover:not(:disabled) {
    background: linear-gradient(145deg, #34ce57, #28a745);
    transform: translateY(-1px);
}

.auth-btn-success:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-timer {
    text-align: center;
    color: #8a9bb0;
    font-size: 13px;
    margin: 12px 0 8px;
}

.auth-timer span {
    color: #d4af37;
    font-weight: 700;
}

.auth-code-info {
    text-align: center;
    margin-bottom: 20px;
}

.auth-code-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 8px;
}

.auth-code-info p {
    color: #c0d0e0;
    font-size: 14px;
    margin: 4px 0;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.auth-code-info strong {
    color: #d4af37;
    display: inline-block;
    max-width: 100%;
    word-break: break-all;
}

.auth-code-hint {
    color: #8a9bb0 !important;
    font-size: 12px !important;
    line-height: 1.3;
    margin-top: 2px !important;
}

.auth-code-input {
    text-align: center;
    font-size: 24px !important;
    letter-spacing: 8px;
    font-weight: 700;
}

.auth-success-icon {
    font-size: 64px;
    text-align: center;
    display: block;
    margin-bottom: 12px;
}

.auth-success-sub {
    color: #8a9bb0;
    font-size: 13px;
}

.auth-message {
    margin-top: 16px;
    padding: 10px 16px;
    border-radius: 16px;
    font-weight: 500;
    font-size: 13px;
    display: none;
}

.auth-message.success {
    display: block;
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.auth-message.error {
    display: block;
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.auth-message.info {
    display: block;
    background: rgba(23, 162, 184, 0.15);
    color: #17a2b8;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

.auth-message.warning {
    display: block;
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.auth-modal-footer {
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding: 12px 24px 16px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #8a9bb0;
}

.auth-link {
    color: #d4af37;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #ffd700;
    text-decoration: underline;
}

/* ================================================================ */
/* МОБИЛЬНАЯ ВЕРСИЯ - ИСПРАВЛЕНИЕ ДЛЯ КОДА                         */
/* ================================================================ */
@media (max-width: 480px) {
    .auth-modal-container {
        max-width: 100%;
        margin: 10px;
        border-radius: 20px;
        max-height: 98vh;
    }
    
    .auth-modal-header {
        padding: 14px 16px 12px;
    }
    
    .auth-modal-header h2 {
        font-size: 17px;
    }
    
    .auth-modal-header p {
        font-size: 11px;
    }
    
    .auth-modal-icon {
        font-size: 32px;
        margin-bottom: 4px;
    }
    
    .auth-modal-close {
        top: 8px;
        right: 10px;
        font-size: 20px;
    }
    
    .auth-modal-body {
        padding: 16px;
    }
    
    .auth-form-group {
        margin-bottom: 12px;
    }
    
    .auth-form-group label {
        font-size: 10px;
        margin-bottom: 4px;
    }
    
    .auth-input {
        font-size: 15px;
        padding: 12px 14px;
        border-radius: 14px;
    }
    
    .auth-code-input {
        font-size: 20px !important;
        letter-spacing: 6px;
        padding: 12px 14px;
    }
    
    .auth-btn-primary,
    .auth-btn-secondary,
    .auth-btn-success {
        padding: 12px;
        font-size: 14px;
        border-radius: 35px;
    }
    
    /* ===== ИСПРАВЛЕНИЕ ДЛЯ ТЕКСТА "ВВЕДИТЕ 6-ЗНАЧНЫЙ КОД" ===== */
    .auth-code-info {
        margin-bottom: 14px;
    }
    
    .auth-code-icon {
        font-size: 36px;
        margin-bottom: 4px;
    }
    
    .auth-code-info p {
        font-size: 13px;
        margin: 2px 0;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .auth-code-info strong {
        display: inline-block;
        font-size: 13px;
        max-width: 100%;
        word-break: break-all;
    }
    
    .auth-code-hint {
        font-size: 11px !important;
        line-height: 1.3;
        margin-top: 2px !important;
    }
    
    .auth-timer {
        font-size: 12px;
        margin: 8px 0 6px;
    }
    
    .auth-modal-footer {
        font-size: 12px;
        padding: 10px 14px 12px;
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }
    
    .auth-message {
        font-size: 12px;
        padding: 8px 12px;
        margin-top: 12px;
        border-radius: 12px;
    }
    
    /* Уменьшаем кнопки на мобильных */
    .auth-btn-secondary {
        margin-top: 4px;
        padding: 10px;
        font-size: 13px;
    }
    
    .auth-btn-success {
        margin-top: 4px;
        padding: 10px;
        font-size: 13px;
    }
}

/* Для очень маленьких экранов (до 380px) */
@media (max-width: 380px) {
    .auth-modal-container {
        margin: 5px;
        border-radius: 16px;
    }
    
    .auth-modal-header {
        padding: 12px 12px 10px;
    }
    
    .auth-modal-header h2 {
        font-size: 15px;
    }
    
    .auth-modal-header p {
        font-size: 10px;
    }
    
    .auth-modal-icon {
        font-size: 28px;
    }
    
    .auth-modal-body {
        padding: 12px;
    }
    
    .auth-form-group {
        margin-bottom: 10px;
    }
    
    .auth-input {
        font-size: 14px;
        padding: 10px 12px;
        border-radius: 12px;
    }
    
    .auth-code-input {
        font-size: 18px !important;
        letter-spacing: 4px;
        padding: 10px 12px;
    }
    
    .auth-btn-primary,
    .auth-btn-secondary,
    .auth-btn-success {
        padding: 10px;
        font-size: 13px;
        border-radius: 30px;
    }
    
    .auth-code-icon {
        font-size: 30px;
    }
    
    .auth-code-info p {
        font-size: 12px;
    }
    
    .auth-code-hint {
        font-size: 10px !important;
    }
    
    .auth-modal-footer {
        font-size: 11px;
        padding: 8px 10px 10px;
    }
}

/* ================================================================ */
/* РЕКЛАМА В ЛЕНТЕ ОБЪЯВЛЕНИЙ                                      */
/* ================================================================ */

.advertisement-card {
    background: linear-gradient(145deg, #f8f4e8, #f0ebe0);
    border-radius: 22px;
    padding: 16px;
    border: 2px solid #d4af37;
    position: relative;
    transition: all 0.3s ease;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    overflow: hidden;
}

.advertisement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #ffd700, #d4af37);
}

.advertisement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    border-color: #ffd700;
}

.advertisement-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #d4af37;
    color: #002244;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    border: 1px solid #c49b2a;
}

.ad-badge-icon {
    font-size: 12px;
}

.advertisement-content {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.advertisement-image {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #e8e0d0;
    position: relative;
}

.advertisement-image img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.advertisement-card:hover .advertisement-image img {
    transform: scale(1.02);
}

.advertisement-info {
    padding: 4px 0;
}

.advertisement-title {
    font-size: 16px;
    font-weight: 700;
    color: #003366;
    margin-bottom: 4px;
    line-height: 1.3;
}

.advertisement-description {
    font-size: 13px;
    color: #2a5775;
    line-height: 1.4;
    margin-bottom: 6px;
}

.advertisement-sponsor {
    font-size: 12px;
    color: #6a7a8e;
    display: flex;
    align-items: center;
    gap: 4px;
}

.advertisement-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
}

.advertisement-close-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.advertisement-close-btn:hover {
    background: rgba(220, 53, 69, 0.8);
    transform: scale(1.1);
}

/* Адаптивность рекламы */
@media (max-width: 480px) {
    .advertisement-card {
        padding: 12px;
        border-radius: 18px;
    }
    
    .advertisement-title {
        font-size: 14px;
    }
    
    .advertisement-description {
        font-size: 12px;
    }
    
    .advertisement-image img {
        max-height: 120px;
    }
    
    .advertisement-close-btn {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

/* Темная тема для рекламы */
@media (prefers-color-scheme: dark) {
    .advertisement-card {
        background: linear-gradient(145deg, #1a2a3a, #0f1724);
        border-color: rgba(212, 175, 55, 0.4);
    }
    
    .advertisement-title {
        color: #d4af37;
    }
    
    .advertisement-description {
        color: #a0b0c0;
    }
}