#eventsModal .club-info,
#eventsClubInfo {
    background: transparent;
    border: none;
    padding: 10px 12px;
    margin: 6px 12px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-color);
    box-shadow: none;
}

#eventsModal .club-info i {
    color: #e94560;
    font-size: 22px;
    margin-right: 12px;
}

.calendar-wrapper {
    background: rgba(15, 52, 96, 0.4);
    border-radius: 16px;
    padding: 15px;
    border: 1px solid rgba(233, 69, 96, 0.3);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.calendar-header h3 {
    font-size: 16px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-nav .current-month {
    font-weight: 600;
    color: var(--text-color);
}

.nav-btn {
    background: rgba(233, 69, 96, 0.15);
    border: 1px solid rgba(233, 69, 96, 0.4);
    color: var(--text-color);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #a9b7d6;
}

.calendar-weekdays div {
    text-align: center;
    padding: 4px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.calendar-day {
    border: 1px solid rgba(233, 69, 96, 0.2);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    min-height: 60px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(15, 52, 96, 0.25);
}

.calendar-day:hover {
    border-color: rgba(233, 69, 96, 0.6);
    transform: translateY(-2px);
}

.calendar-day.today {
    border-color: #e94560;
    box-shadow: 0 0 10px rgba(233, 69, 96, 0.4);
}

.calendar-day.has-events {
    background: rgba(233, 69, 96, 0.2);
}

.calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.calendar-day .day-number {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.day-events-indicator {
    margin-top: 6px;
    font-size: 12px;
    background: rgba(233, 69, 96, 0.25);
    color: #ff9fb3;
    padding: 2px 6px;
    border-radius: 999px;
    display: inline-block;
}

.calendar-events-list {
    margin-top: 16px;
    padding: 0 4px 20px;
}

.calendar-events-list h4 {
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--text-color);
}

.calendar-event-card {
    border: 1px solid rgba(233, 69, 96, 0.3);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(15, 52, 96, 0.25);
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
}

.calendar-event-card:last-child {
    margin-bottom: 0;
}

.event-card-date {
    font-size: 14px;
    color: #e94560;
    text-transform: capitalize;
    margin-bottom: 6px;
}

.event-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 6px;
}

.event-card-desc {
    color: #a9b7d6;
    font-size: 13px;
    margin-bottom: 8px;
}

.event-card-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #a9b7d6;
}

.event-card-meta i {
    margin-right: 6px;
    color: #e94560;
}

.calendar-event-card.highlight {
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.6);
    border-color: #e94560;
}

.calendar-events-list.empty-list {
    text-align: center;
    color: #a9b7d6;
}

.calendar-events-list.empty-list p {
    margin: 0;
}

.calendar-debug {
    margin-top: 10px;
    font-size: 12px;
    color: #ffb8b8;
}
/* calendar_styles.css - стили для кастомного календаря и участников */

/* === АФИША (полный экран, как участники) === */
#eventsModal {
    align-items: stretch;
    justify-content: flex-start;
}

#eventsModal .modal-content {
    background: var(--bg-color);
    color: var(--text-color);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#eventsModal .modal-header {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
}

#eventsModal .modal-title {
    color: var(--text-color);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

#eventsModal .modal-title i {
    color: #e94560;
}

#eventsModal .close-btn {
    color: white;
    font-size: 28px;
    transition: all 0.3s ease;
}

#eventsModal .close-btn:hover {
    color: #e94560;
    transform: scale(1.2);
}

body.light-theme #eventsModal .close-btn {
    color: #111;
}

#eventsModal .events-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

#eventsModal .club-info,
#eventsClubInfo {
    background: transparent;
    border: none;
    padding: 10px 12px;
    margin: 6px 12px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-color);
    box-shadow: none;
}

#eventsModal .club-info i {
    color: #e94560;
    font-size: 22px;
    margin-right: 12px;
}

/* === КАЛЕНДАРЬ === */
.calendar-section {
    margin-top: 0;
    padding: 12px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.calendar-section h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 24px;
}

#customCalendar,
#custom-calendar {
    min-height: 300px;
    padding: 0 12px 12px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.calendar-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-color);
}

.calendar-loading i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #e94560;
}

.calendar-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-color);
}

.calendar-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    color: rgba(233, 69, 96, 0.5);
}

.calendar-error {
    text-align: center;
    padding: 40px;
    color: #ffb8b8;
}

.calendar-error i {
    font-size: 48px;
    margin-bottom: 15px;
}

/* Группы по датам */
.calendar-date-group {
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
}

.calendar-date-header {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.25), rgba(15, 52, 96, 0.6));
    color: var(--text-color);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.calendar-date-day {
    font-size: 36px;
    font-weight: bold;
}

.calendar-date-month {
    font-size: 18px;
    text-transform: capitalize;
}

.calendar-date-weekday {
    font-size: 16px;
    text-transform: capitalize;
    opacity: 0.9;
}

/* События */
.calendar-event {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s;
}

.calendar-event:hover {
    background: rgba(255, 255, 255, 0.04);
}

.calendar-event:last-child {
    border-bottom: none;
}

.event-time {
    font-weight: bold;
    color: var(--text-color);
    font-size: 16px;
    margin-bottom: 8px;
}

.event-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.event-description {
    color: #a9b7d6;
    margin-bottom: 15px;
    line-height: 1.5;
}

.event-details {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.event-price {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.event-paid {
    background: rgba(255, 186, 115, 0.25);
    color: #ffb86b;
}

.event-free {
    background: rgba(76, 175, 80, 0.2);
    color: #8ef0a8;
}

.event-participants {
    color: #a9b7d6;
    font-size: 14px;
}

.event-participants i {
    margin-right: 5px;
}

.event-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.event-past {
    background: rgba(255, 255, 255, 0.08);
    color: #a9b7d6;
}

.event-today {
    background: rgba(76, 175, 80, 0.25);
    color: #8ef0a8;
}

.event-future {
    background: rgba(233, 69, 96, 0.2);
    color: #ff9fb3;
}

/* === УЧАСТНИКИ КЛУБА === */
.members-container {
    padding: 20px;
}

.club-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 15px;
    background: linear-gradient(135deg, #2481CC, #1a5f9c);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(36, 129, 204, 0.2);
}

.club-info i {
    margin-right: 10px;
    font-size: 20px;
}

.members-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Список участников */
.members-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Стили скроллбара */
.members-list::-webkit-scrollbar {
    width: 6px;
}

.members-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.members-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.members-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Карточка участника */
.member-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.member-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #2481CC;
}

.member-avatar {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #2481CC;
    background: linear-gradient(135deg, #2481CC, #1a5f9c);
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    flex-grow: 1;
    margin-left: 15px;
    margin-right: 15px;
    min-width: 0; /* Для правильного обрезания текста */
}

.member-name {
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-username {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-city {
    font-size: 13px;
    color: #2481CC;
    display: flex;
    align-items: center;
    gap: 5px;
}

.member-city i {
    font-size: 12px;
}

.member-stats {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.member-stats .stat {
    text-align: center;
}

.member-stats .stat-value {
    font-weight: 700;
    font-size: 18px;
    color: #2481CC;
    line-height: 1;
}

.member-stats .stat-label {
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    margin-top: 3px;
    letter-spacing: 0.5px;
}

/* Пагинация */
.members-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.pagination-btn {
    background: #2481CC;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.pagination-btn:hover:not(:disabled) {
    background: #1a5f9c;
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* Состояния загрузки и ошибок */
.loading-members {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.loading-spinner {
    border: 4px solid rgba(36, 129, 204, 0.2);
    border-left-color: #2481CC;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-members {
    text-align: center;
    padding: 50px 20px;
    color: #6c757d;
}

.empty-members i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #dee2e6;
}

.error-message {
    text-align: center;
    padding: 30px;
    color: #e74c3c;
    background: #fdf2f2;
    border-radius: 8px;
    border: 1px solid #fad2d2;
}

.error-message i {
    font-size: 36px;
    margin-bottom: 15px;
}

/* === АВАТАР В ПРОФИЛЕ И ШАПКЕ === */
/* Шапка */
.header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Профиль */
.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #2481CC;
    box-shadow: 0 4px 15px rgba(36, 129, 204, 0.3);
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
}

.avatar-upload-trigger {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #2481CC;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.avatar-upload-trigger:hover {
    background: #1a5f9c;
    transform: scale(1.1);
}

/* === МОДАЛЬНОЕ ОКНО АВАТАРА (исправленное) === */
.avatar-upload-container {
    padding: 20px;
}

.current-avatar-section {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.current-avatar-section p {
    margin-bottom: 15px;
    color: #6c757d;
    font-weight: 500;
}

.upload-section {
    margin-bottom: 25px;
}

.file-upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.file-upload-area:hover {
    border-color: #2481CC;
    background: #f8fbff;
}

.file-upload-area i {
    font-size: 48px;
    color: #cbd5e0;
    margin-bottom: 15px;
}

.file-upload-area p {
    margin: 0;
    color: #718096;
    font-weight: 500;
}

.upload-hint {
    font-size: 13px;
    color: #a0aec0 !important;
    margin-top: 8px !important;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.simple-preview-container {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    display: none;
}

.simple-hint {
    background: #e3f2fd;
    color: #0d47a1;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.image-container {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    border: 5px solid white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.circle-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #2481CC;
    pointer-events: none;
}

.simple-controls {
    margin-top: 20px;
    text-align: center;
}

.zoom-control {
    max-width: 300px;
    margin: 0 auto;
}

.zoom-control label {
    display: block;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 500;
}

.zoom-control input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #dee2e6;
    outline: none;
}

.zoom-control input[type="range"]::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2481CC;
    cursor: pointer;
    -webkit-appearance: none;
}

.simple-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.btn-cancel, .btn-save {
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    border: none;
}

.btn-cancel {
    background: #e9ecef;
    color: #6c757d;
}

.btn-cancel:hover {
    background: #dee2e6;
}

.btn-save {
    background: #2481CC;
    color: white;
}

.btn-save:hover:not(:disabled) {
    background: #1a5f9c;
    transform: translateY(-2px);
}

.btn-save:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Сообщения */
.error-message, .success-message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
}

.error-message {
    background: #fdf2f2;
    color: #e74c3c;
    border: 1px solid #fad2d2;
}

.success-message {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
    .calendar-date-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .event-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .member-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .member-avatar {
        margin: 0 auto 15px;
    }
    
    .member-info {
        margin: 0 0 15px 0;
        width: 100%;
    }
    
    .member-stats {
        width: 100%;
        justify-content: center;
    }
    
    .image-container {
        width: 200px;
        height: 200px;
    }
    
    .members-pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .simple-actions {
        flex-direction: column;
    }
    
    .btn-cancel, .btn-save {
        width: 100%;
        justify-content: center;
    }
}
