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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
   background: radial-gradient(#cfd5e9, #392cb1);
    min-height: 100vh;
    overflow-x: hidden;
}

.app {
    max-width: 420px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

/* Верхняя панель */
.header {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.notifications-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 12px;
    padding: 8px;
    color: white;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.notifications-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #f97316;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Основной контент */
.main-content {
    padding-bottom: 80px;
    min-height: calc(100vh - 140px);
   padding: 5px 15px 100px 15px;
       background-image: linear-gradient(135deg, #0f93e0 0%, #0f1b84 100%), url(https://404.net.kg/sport/asc/imgs/22.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-blend-mode: overlay;
    background-color: #dbd6d6;
}

.screen {
    display: none;
    
    animation: fadeIn 0.3s ease-in-out;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Поиск */
.search-container {
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px 16px;
    gap: 12px;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-box svg {
    color: #64748b;
    flex-shrink: 0;
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    flex: 1;
    font-size: 16px;
    color: #334155;
}

.search-box input::placeholder {
    color: #94a3b8;
}

/* Фильтры */
.filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.filter-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-btn:hover,
.filter-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    transform: translateY(-1px);
}

/* События */
.events-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-card {
    background: #ffffffb5;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.sport-badge {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.event-price {
    color: #10b981;
    font-weight: 700;
    font-size: 16px;
}

.event-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 14px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.event-location {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.players-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
}

.join-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.join-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.join-btn.full {
    background: #94a3b8;
    cursor: not-allowed;
}

/* Форма создания события */
.create-form {
    max-width: 100%;
}

.create-form h2 {
    color: #1e293b;
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #ffffff; /* полностью непрозрачный */
    color: #000; /* на всякий случай */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.create-btn {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.create-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Карта */
.map-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.map-container h2 {
    color: #1e293b;
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.leaflet-map {
    height: 400px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 20px;
}

.map-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.map-header h3 {
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.map-filters {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.map-filter-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.map-filter-btn:hover,
.map-filter-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    transform: translateY(-1px);
}

.interactive-map {
    flex: 1;
    position: relative;
    min-height: 250px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}

.map-canvas {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.map-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.moscow-map {
    width: 100%;
    height: 100%;
}

.map-marker {
    position: absolute;
    width: 32px;
    height: 32px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.map-marker:hover {
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 20;
}

.marker-icon {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 3px solid #10b981;
    animation: pulse 2s infinite;
}

.map-marker.full .marker-icon {
    border-color: #ef4444;
    background: #fef2f2;
}

@keyframes pulse {
    0% { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 8px rgba(16, 185, 129, 0.1); }
    100% { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(16, 185, 129, 0.4); }
}

.map-marker.full .marker-icon {
    animation: none;
}

.marker-popup {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 30;
}

.marker-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: white;
}

.map-marker:hover .marker-popup {
    opacity: 1;
    visibility: visible;
}

.popup-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    font-size: 14px;
}

.popup-info {
    color: #64748b;
    font-size: 12px;
    margin-bottom: 4px;
}

.popup-players {
    color: #10b981;
    font-size: 12px;
    font-weight: 500;
}

.map-legend {
    position: absolute;
    top: 16px;
    right: 16px;
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
}

.legend-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid;
}

.legend-marker.available {
    border-color: #10b981;
    background: white;
}

.legend-marker.full {
    border-color: #ef4444;
    background: #fef2f2;
}

.map-events-list {
   border-radius: 20px;
    padding: 16px 20px;
    border-top: 1px solid #e2e8f0;
    background: #ffffffb5;
}

.map-events-list h4 {
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.map-events-scroll {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.map-event-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid #10b981;
}

.map-event-card.full {
    border-left-color: #ef4444;
    opacity: 0.7;
}

.map-event-card:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.map-event-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.map-event-info {
    flex: 1;
}

.map-event-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
    margin-bottom: 2px;
}

.map-event-meta {
    color: #64748b;
    font-size: 12px;
    margin-bottom: 2px;
}

.map-event-players {
    color: #64748b;
    font-size: 11px;
}

.map-event-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    flex-shrink: 0;
}

.map-event-status.available {
    background: #dcfce7;
    color: #166534;
}

.map-event-status.full {
    background: #fee2e2;
    color: #991b1b;
}

/* Площадки */
.venues-header {
    text-align: center;
    margin-bottom: 24px;
}

.venues-header h2 {
    color: #1e293b;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.venues-header p {
    color: #64748b;
    font-size: 16px;
}

.venues-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.venue-card {
    background: #ffffffb5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.venue-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.venue-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.venue-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.venue-card:hover .venue-image img {
    transform: scale(1.05);
}

.venue-sport-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.venue-content {
    padding: 20px;
}

.venue-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.venue-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    flex: 1;
    margin-right: 12px;
}

.venue-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.rating-star {
    color: #f59e0b;
    font-size: 14px;
}

.rating-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.rating-count {
    color: #64748b;
    font-size: 12px;
}

.venue-address {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.venue-facilities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.facility-tag {
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.facility-more {
    background: #e2e8f0;
    color: #64748b;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.venue-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.venue-price {
    color: #10b981;
    font-weight: 700;
    font-size: 18px;
}

.venue-book-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.venue-book-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Кастомные стили для Leaflet */
.custom-div-icon {
    background: transparent !important;
    border: none !important;
}

.custom-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 3px solid #10b981;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-marker:hover {
    transform: scale(1.1);
}

.custom-marker.available {
    animation: pulse 2s infinite;
    border-color: #10b981;
}

.custom-marker.full {
    border-color: #ef4444;
    background: #fef2f2;
}

.marker-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-emoji {
    font-size: 18px;
}

/* Маркер пользователя */
.user-marker-icon {
    background: transparent !important;
    border: none !important;
}

.user-marker {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3b82f6;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    animation: userPulse 2s infinite;
}

.user-marker-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-marker span {
    font-size: 16px;
    filter: brightness(0) invert(1);
}

@keyframes userPulse {
    0% { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 8px rgba(59, 130, 246, 0.1); }
    100% { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(59, 130, 246, 0.4); }
}

/* Popup пользователя */
.user-popup {
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.user-popup h4 {
    margin: 0 0 8px 0;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
}

.user-popup p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

@keyframes pulse {
    0% { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 8px rgba(16, 185, 129, 0.1); }
    100% { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(16, 185, 129, 0.4); }
}

/* Стили для popup Leaflet */
.leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.leaflet-popup-content {
    margin: 12px !important;
    min-width: 200px;
}

.leaflet-popup-tip {
    background: white !important;
}

.event-popup {
    font-family: 'Inter', sans-serif;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.popup-header h4 {
    margin: 0;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
}

.sport-emoji {
    font-size: 20px;
}

.popup-info {
    margin-bottom: 12px;
}

.popup-info p {
    margin: 4px 0;
    font-size: 14px;
    color: #64748b;
}

.popup-btn {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Профиль */
.profile-container {
    max-width: 100%;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 20px;
    border-radius: 20px;
    position: relative;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h3 {
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-info p {
    color: #64748b;
    font-size: 14px;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    font-size: 12px;
    color: #64748b;
}

.physical-stats {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.physical-stats h4 {
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.stats-row .stat-item {
    flex: 1;
    text-align: center;
    background: #f8fafc;
    padding: 12px;
    border-radius: 12px;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: 500;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.sports-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.sport-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    border-left: 4px solid #3b82f6;
}

.sport-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.sport-emoji {
    font-size: 24px;
}

.sport-info {
    flex: 1;
}

.sport-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}

.sport-level {
    font-size: 12px;
    color: #64748b;
}

.sport-rating {
    font-weight: 600;
    color: #f59e0b;
}

.sport-stats {
    font-size: 12px;
    color: #64748b;
}

.add-sport-btn {
    width: 100%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-sport-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    border-left: 4px solid #f59e0b;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.review-author {
    font-weight: 600;
    color: #1e293b;
}

.review-rating {
    color: #f59e0b;
}

.review-date {
    font-size: 12px;
    color: #64748b;
}

.review-sport {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.review-comment {
    color: #374151;
    line-height: 1.4;
}

.logout-btn {
    width: 100%;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.skill-level {
    background: #dbeafe;
    color: #1e40af;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Формы оценок */
.rating-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rating-criteria {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.criteria-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.criteria-item label {
    font-weight: 500;
    color: #374151;
}

.star-rating {
    display: flex;
    gap: 4px;
}

.star {
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.3;
}

.star:hover,
.star.active {
    opacity: 1;
    transform: scale(1.1);
}

/* Редактирование профиля */
.edit-profile-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.add-sport-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Отзывы площадок */
.venue-reviews-modal {
    background: #f9fafb;
    padding: 16px;
    border-radius: 12px;
}

.edit-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.3s ease;
}

.edit-btn:hover {
    background: #f1f5f9;
    color: #3b82f6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-item {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 500;
}

.profile-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section h4 {
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.mini-events {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mini-event {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
}

.sport-icon {
    font-size: 20px;
}

.mini-event-title {
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 2px;
}

.mini-event-date {
    font-size: 12px;
    color: #64748b;
}

.achievements {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.achievement {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    padding: 12px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 14px;
}

/* Нижнее меню */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 420px;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    padding: 8px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
}

.nav-item.active {
    color: #3b82f6;
}

.nav-item:hover {
    background: #f8fafc;
    border-radius: 12px;
}

.nav-item span {
    font-size: 12px;
    font-weight: 500;
}

.nav-item svg {
    transition: all 0.3s ease;
}

.nav-item.active svg {
    transform: scale(1.1);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: flex-end;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    border-radius: 20px 20px 0 0;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.modal-header h3 {
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: #f1f5f9;
    border: none;
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.modal-body {
    padding: 20px;
}

/* Адаптивность */
@media (max-width: 480px) {
    .app {
        max-width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .stat-item {
        padding: 16px 12px;
    }
}

/* Модальные окна - дополнительные стили */
.modal-event-details,
.modal-venue-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-sport-badge {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
}

.modal-info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-item strong {
    color: #374151;
    font-size: 14px;
}

.info-item span {
    color: #6b7280;
    font-size: 16px;
}

.modal-description {
    background: #f9fafb;
    padding: 16px;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

.modal-description strong {
    color: #374151;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.modal-description p {
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.modal-join-btn,
.modal-contact-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-join-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.modal-join-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.modal-join-btn.full {
    background: #94a3b8;
    cursor: not-allowed;
}

.modal-contact-btn {
    background: white;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.modal-contact-btn:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-1px);
}

.venue-rating-large {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.venue-facilities-modal {
    background: #f9fafb;
    padding: 16px;
    border-radius: 12px;
}

.venue-facilities-modal strong {
    color: #374151;
    font-size: 14px;
    margin-bottom: 12px;
    display: block;
}

.facilities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.venue-schedule-modal {
    background: #f9fafb;
    padding: 16px;
    border-radius: 12px;
}

.venue-schedule-modal strong {
    color: #374151;
    font-size: 14px;
    margin-bottom: 12px;
    display: block;
}

.schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-days {
    font-weight: 500;
    color: #374151;
}

.schedule-hours {
    color: #6b7280;
}

.distance {
    background: #dbeafe;
    color: #1e40af;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Утилитарные классы */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mt-4 { margin-top: 16px; }

/* Анимации загрузки */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #64748b;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Скрытие скроллбара для мобильных */
.filters::-webkit-scrollbar {
    display: none;
}

.filters {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
/* Экран авторизации */
.auth-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;

    background-image: 
        linear-gradient(135deg, #667eea 0%, #764ba2 100%),
        url('https://404.net.kg/sport/asc/imgs/fon7.png'); /* замените на ваш URL */

    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-blend-mode: overlay; /* можно менять на multiply, soft-light и др. */
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.auth-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgb(18 26 150);
}

.auth-header p {
    font-size: 18px;
    text-shadow: 0 2px 2px rgb(18 26 150);
}

.auth-tabs {
    display: flex;
    background: rgb(17 62 204 / 31%);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.auth-tab {
    flex: 1;
    padding: 12px 24px;
    background: none;
    border: none;
    color: white;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-form {
    display: none;
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.85); /* полупрозрачный белый */
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    
}

.auth-form.active {
    display: block;
    animation: slideUp 0.3s ease-out;
}

.auth-btn {
    width: 100%;
    background: linear-gradient(135deg, #18a2e8 0%, #1f3ebf 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Toast уведомления */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    transition: all 0.3s ease;
    z-index: 10000;
    max-width: 300px;
    font-weight: 500;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: #10b981;
}

.toast.error {
    background: #ef4444;
}

.toast.warning {
    background: #f59e0b;
}

.toast.info {
    background: #3b82f6;
}

/* Состояния загрузки */
.no-events,
.no-venues {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-size: 16px;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 15px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.schedule-table thead {
  background-color: #f7f7f7;
  font-weight: 600;
  color: #333;
}

.schedule-table thead th {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid #e5e5e5;
}

.schedule-table tbody td {
  padding: 10px;
  vertical-align: middle;
  border-bottom: 1px solid #eee;
}

.schedule-table input[type="date"],
.schedule-table input[type="time"],
.schedule-table input[type="text"],
.schedule-table select {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fafafa;
  box-sizing: border-box;
  transition: border 0.3s ease;
}

.schedule-table input:focus,
.schedule-table select:focus {
  border-color: #3498db;
  outline: none;
  background-color: #fff;
}

.schedule-table button.auth-btn {
  padding: 6px 10px;
  background-color: #e74c3c;
  color: #fff;
  border: none;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.schedule-table button.auth-btn:hover {
  background-color: #c0392b;
}

/* Адаптивность */
@media (max-width: 768px) {
  .schedule-table thead {
    display: none;
  }

  .schedule-table, .schedule-table tbody, .schedule-table tr, .schedule-table td {
    display: block;
    width: 100%;
  }

  .schedule-table tr {
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
  }

  .schedule-table td {
    text-align: right;
    padding-left: 50%;
    position: relative;
  }

  .schedule-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    top: 10px;
    font-weight: bold;
    color: #555;
    text-align: left;
  }

  .schedule-table td:last-child {
    text-align: center;
    padding-top: 15px;
  }
}
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 15px;
}


/* 
расписание занятых игр*/
.booking-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 16px;
    font-family: "Segoe UI", sans-serif;
    font-size: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.booking-table thead {
    background: linear-gradient(to right, #4facfe, #00f2fe);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.booking-table th,
.booking-table td {
    padding: 12px 16px;
    text-align: left;
}

.booking-table tr:nth-child(even) {
    background-color: #f9f9f9;
}


.booking-table td {
    color: #333;
}

.booking-table th:first-child,
.booking-table td:first-child {
    border-top-left-radius: 12px;
}

.booking-table th:last-child,
.booking-table td:last-child {
    border-top-right-radius: 12px;
}

/* выбор локации*/
.location-autocomplete {
    position: relative;
}

.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    display: none;
}

.suggestions-list div {
    padding: 10px;
    cursor: pointer;
}

.suggestions-list div:hover {
    background-color: #f3f4f6;
}




#geo-blocker {
  position: fixed; inset: 0; background: rgba(0,0,0,.65);
  display: flex; align-items: center; justify-content: center; z-index: 9999;
}
#geo-blocker .geo-card {
  max-width: 520px; width: calc(100% - 32px);
  background: #fff; color: #111827; border-radius: 16px; padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
#geo-blocker h2 { margin: 0 0 8px; }
#geo-blocker p { margin: 0 0 12px; line-height: 1.5; }
#geo-blocker .geo-help { margin: 0 0 16px 18px; }
#geo-blocker .geo-note { display: block; margin-top: 10px; color: #6b7280; }  




/* Обёртка меню */
.modal-body .menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #4a98ff, #7bb7e3);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  overflow: hidden;
}

/* Пункты списка */
.modal-body .menu-list li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.modal-body .menu-list li:last-child {
  border-bottom: none;
}

/* Ссылки */
.modal-body .menu-list li a {
  display: block;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 500;
  color: #f5f5f5;
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
}

/* Иконка при наведении */
.modal-body .menu-list li a::before {
  content: "➤";
  position: absolute;
  left: 12px;
  opacity: 0;
  transition: 0.25s;
  color: #595959;
}

/* Hover эффект */
.modal-body .menu-list li a:hover {
  background: rgba(255,255,255,0.07);
  color: #595959;
  padding-left: 34px;
}

.modal-body .menu-list li a:hover::before {
  opacity: 1;
  left: 18px;
}

/* Анимация клика */
.modal-body .menu-list li a:active {
  transform: scale(0.97);
  background: rgba(0,255,213,0.15);
}
.map-my-location-btn {
    position: relative;
    z-index: 1000;
    bottom: 75px;
    right: 15px;
    background: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    border: 1px solid #ddd;
    font-size: 14px;
    width: 100%;
    margin: 16px;
}


/* ==== ПЛОЩАДКИ — СУПЕР-КРАСИВАЯ МЕТКА ==== */
.venue-marker {
    width: 46px;
    height: 46px;

    background: linear-gradient(135deg, #4b8dff, #1b6bff);
    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 26px;
    color: white;

    border: 3px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        0 0 12px rgba(27, 107, 255, 0.8),
        0 4px 10px rgba(0, 0, 0, 0.4);

    animation: venuePulse 2.2s infinite ease-in-out;
    transform: translate(-50%, -50%);
}

/* Анимация мягкого пульса */
@keyframes venuePulse {
    0%   { transform: translate(-50%, -50%) scale(1); }
    50%  { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}


.modal-join-btn {
    display: inline-block;
    background: #0f93e0;
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
}

.modal-join-btn:hover {
    background: #0b76b8;
}










