.events-page {
    display: flex;
    gap: 24px;
    margin: 24px 0 48px;
}

.events-page__sidebar {
    flex: 0 0 320px;
    align-self: flex-start;
    position: sticky;
    top: 0;
    z-index: 20;
    max-height: 100vh;
}

.events-page__terms-button {
    width: 100%;
    margin-bottom: 14px;
    border: 0;
    border-radius: 14px;
    background: #f4c542;
    color: #3f2f00;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    padding: 14px 18px;
    box-shadow: 0 10px 24px rgba(244, 197, 66, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.events-page__terms-button:hover,
.events-page__terms-button:focus {
    background: #f0bb24;
    box-shadow: 0 14px 30px rgba(244, 197, 66, 0.34);
    transform: translateY(-1px);
}

.events-page__content {
    flex: 1 1 auto;
}

.events-filters {
    background: #ffffff;
    border: 1px solid #e4e6eb;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 100vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

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

.events-terms-modal {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.events-terms-modal__header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #eceff4;
    background: linear-gradient(135deg, #fff8dc 0%, #fff3bf 100%);
}

.events-terms-modal__title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.events-terms-modal__body {
    padding: 18px;
    color: #334155;
    font-size: 15px;
    line-height: 1.65;
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.08), transparent 26%),
        linear-gradient(180deg, #fffdf8 0%, #ffffff 16%);
}

.events-terms-modal__body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.events-terms-modal__body li{
    list-style: disc;
}
.events-terms-modal__body p {
    margin: 0 0 10px;
}

.events-terms-modal__body ul,
.events-terms-modal__body ol {
    margin: 0 0 10px;
    padding-left: 20px;
}

.events-terms-modal__body li + li {
    margin-top: 4px;
}

.events-terms-modal__body ul {
    list-style: disc;
}

.events-terms-modal__body ol {
    list-style: decimal;
}

.events-terms-modal__intro {
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 244, 214, 0.9) 0%, rgba(255, 250, 235, 0.95) 100%);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    margin-bottom: 14px;
}

.events-terms-modal__eyebrow {
    margin-bottom: 8px;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #b7791f;
}

.events-terms-modal__lead {
    font-size: 20px;
    line-height: 1.45;
    font-weight: 700;
    color: #1e293b;
}

.events-terms-modal__feature-list {
    margin-top: 10px;
}

.events-terms-modal__feature-list li::marker {
    color: #d97706;
}

.events-terms-modal__price-note {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(245, 158, 11, 0.18);
    color: #7c2d12;
}

.events-terms-modal__section {
    padding: 14px 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #edf1f5;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}



.events-terms-modal__section--warning {
    background: linear-gradient(135deg, #fff5f5 0%, #fffdf5 100%);
    border-color: #ffd4cc;
}

.events-terms-modal__section--warning h3 {
    color: #9f1239;
}
.events-terms-modal__steps li {
   list-style: decimal;
}
.events-terms-modal__steps li::marker {
    font-weight: 800;
    color: #1d4ed8;
}

.events-terms-modal__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
    align-items: stretch;
}

.events-terms-modal__section--compact {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

@media (max-width: 767.98px) {
    .events-terms-modal__body {
        padding: 14px;
    }

    .events-terms-modal__lead {
        font-size: 18px;
    }

    .events-terms-modal__grid {
        grid-template-columns: 1fr;
    }
}

.events-filters__title {
    font-size: 18px;
    font-weight: 600;
}

.events-filters__hint {
    margin: -8px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
}

.events-filters__reset {
    font-size: 14px;
    color: #6c757d;
    text-decoration: none;
}

.events-filters__reset:hover {
    text-decoration: underline;
}

.filter-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-card__title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.filter-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
    min-height: 0;
    padding-right: 4px;
}

.filter-search {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-search__icon {
    position: absolute;
    left: 12px;
    font-size: 14px;
    color: #94a3b8;
    pointer-events: none;
}

.filter-search__input {
    width: 100%;
    border: 1px solid #d5d7de;
    border-radius: 10px;
    padding: 10px 12px 10px 34px;
    font-size: 14px;
    color: #1f2937;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.filter-search__input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    background: #fff;
}

.filter-search__input::placeholder {
    color: #94a3b8;
}

.filter-search__empty {
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 13px;
    color: #64748b;
}

.filter-option--hidden {
    display: none;
}

.filter-card__body--inline {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
}

.filter-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #2b2d33;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.filter-option:hover {
    background-color: #f6f7fb;
}

.filter-option--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.filter-option--disabled:hover {
    background-color: transparent;
}

.filter-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.filter-option__box {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #c5c7ce;
    background: #fff;
    flex-shrink: 0;
    position: relative;
}

.filter-option input:checked + .filter-option__box {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.filter-option input:checked + .filter-option__box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-option__label {
    flex: 1 1 auto;
}

.filter-option__label-main,
.filter-option__label-subtitle {
    display: block;
}

.filter-option__label-subtitle {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.25;
    color: #64748b;
}

.filter-option__count {
    font-size: 12px;
    color: #6c757d;
}

.filter-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sport-tag {
    position: relative;
    border: 1px solid #d5d7de;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease-in-out;
    color: #424750;
    background: #fff;
}

.sport-tag input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sport-tag--active,
.sport-tag:hover {
    background: #e8f1ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}

.sport-tag--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sport-tag--disabled:hover {
    background: #fff;
    border-color: #d5d7de;
    color: #424750;
}

.filter-inline-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    flex: 1 1 0;
    min-width: 0;
}

.filter-inline-field input {
    border: 1px solid #d5d7de;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
    background: #fff;
    width: 100%;
    min-width: 0;
}

.filter-inline-field .Zebra_DatePicker_Icon_Wrapper {
    width: 100%;
}

.filter-inline-field .Zebra_DatePicker_Icon {
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%);
    margin: 0;
    width: 18px;
    height: 18px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #475569;
    font-size: 0;
}

.filter-inline-field .Zebra_DatePicker_Icon::before {
    content: "📅";
    font-size: 14px;
    line-height: 18px;
}

.range-control {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.range-control__summary {
    font-size: 14px;
    font-weight: 700;
    color: #1e40af;
}

.range-control__slider {
    position: relative;
    height: 6px;
    background: transparent;
}

.range-control__track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px;
    border-radius: 6px;
    background: #e5e7eb;
    transform: translateY(-50%);
}

.range-control__progress {
    position: absolute;
    top: 50%;
    left: 0;
    height: 6px;
    border-radius: 6px;
    background: #3b82f6;
    transform: translateY(-50%);
}

.range-control__slider input[type="range"] {
    position: absolute;
    pointer-events: none;
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: none;
    top: 50%;
    transform: translateY(-50%);
}

.range-control__slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #3b82f6;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.25);
}

.range-control__slider input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #3b82f6;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.25);
}

.range-control__inputs {
    display: flex;
    gap: 12px;
}

.range-control__inputs label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.range-control__field {
    flex: 1 1 0;
}

.range-control__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.range-control__inputs input {
    border: 1px solid #d5d7de;
    border-radius: 8px;
    padding: 8px 54px 8px 10px;
    font-size: 14px;
    width: 100%;
    min-width: 0;
}

.range-control__suffix {
    position: absolute;
    right: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    pointer-events: none;
}

.range-control__inputs--currency {
    align-items: flex-end;
}

.events-filters__actions {
    margin-top: 8px;
}

.events-filters__submit {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.events-filters__submit:hover {
    transform: translateY(-1px);
}

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.events-header__title h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.events-header__subtitle {
    font-size: 14px;
    color: #6c757d;
    margin-top: 4px;
}

.events-summary {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.events-summary__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.events-summary__meta-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dbe4f0;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

.events-summary__meta-item--accent {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.events-summary__lead {
    margin: 0;
    font-size: 15px;
    color: #4b5563;
}

.events-summary__empty {
    padding: 14px 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    color: #475569;
    font-size: 14px;
}

.events-active-filters {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.events-active-filters__title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.events-active-filters__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.events-active-filters__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.events-active-filters__chip:hover {
    background: #dbeafe;
    color: #1e40af;
    transform: translateY(-1px);
}

.events-active-filters__chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    font-size: 14px;
    line-height: 1;
}

.events-filters,
.filter-card__body {
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #e2e8f0;
}

.events-filters::-webkit-scrollbar,
.filter-card__body::-webkit-scrollbar {
    width: 10px;
}

.events-filters::-webkit-scrollbar-track,
.filter-card__body::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 999px;
}

.events-filters::-webkit-scrollbar-thumb,
.filter-card__body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
    border-radius: 999px;
    border: 2px solid #e2e8f0;
}

.events-filters::-webkit-scrollbar-thumb:hover,
.filter-card__body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #64748b 0%, #475569 100%);
}

.Zebra_DatePicker {
    z-index: 10040 !important;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-card {
    display: flex;
    gap: 24px;
    background: #fff;
    border: 1px solid #e4e6eb;
    border-radius: 16px;
    padding: 20px 24px;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.event-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.event-card__date {
    text-align: center;
    border-right: 1px solid #e4e6eb;
    padding-right: 20px;
    min-width: 80px;
}

.event-card__month {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
}

.event-card__day {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.event-card__time {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.event-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.event-card__header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.event-card__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    flex: 1 1 auto;
    min-width: 0;
}

.event-card__title-link {
    display: grid;
    gap: 3px;
    color: inherit;
    text-decoration: none;
}

.event-card__title-main {
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.event-card__title-subtitle {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 500;
    color: #64748b;
    overflow-wrap: anywhere;
}

.event-card__title-link:hover {
    color: #1d4ed8;
}

.event-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.event-card__badge--info {
    background: #e8f1ff;
    color: #1d4ed8;
}

.event-card__badge--warning {
    background: #fee2e2;
    color: #b91c1c;
}

.event-card__tournament {
    display: grid;
    gap: 2px;
}

.event-card__tournament-main {
    font-size: 14px;
    color: #6b7280;
}

.event-card__tournament-subtitle {
    font-size: 13px;
    line-height: 1.25;
    color: #94a3b8;
}

.event-card__location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4b5563;
}

.event-card__venue {
    color: #6b7280;
}

.event-card__meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.event-card__tag {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
}

.event-card__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    min-width: 140px;
    flex: 0 0 140px;
}

.event-card__price {
    text-align: right;
    color: #4b5563;
    font-size: 13px;
}

.event-card__price strong {
    display: block;
    font-size: 18px;
    color: #111827;
}

.event-card__price-note {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.35;
    color: #6b7280;
}

.event-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    text-decoration: none;
    text-align: center;
}

.event-card__action--primary {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.event-card__action--outline {
    background: #fff;
    border: 1px solid #d1d5db;
    color: #374151;
}

.event-card__action:hover {
    transform: translateY(-1px);
}

.events-empty {
    text-align: center;
    padding: 40px;
    background: #fff;
    border: 1px dashed #d1d5db;
    border-radius: 16px;
    color: #6b7280;
}

.events-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    list-style: none;
    padding: 0;
}

.events-pagination li {
    list-style: none;
}

.events-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    color: #374151;
    text-decoration: none;
    min-width: 36px;
}

.events-pagination li.active .events-pagination__link {
    background: #3b82f6;
    border-color: #2563eb;
    color: #fff;
}

.events-pagination__link--disabled {
    opacity: 0.4;
    pointer-events: none;
}

.events-pagination__link:hover,
.events-pagination__link:focus {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}

@media (max-width: 1200px) {
    .events-page {
        flex-direction: column;
    }

    .events-page__sidebar {
        flex: 1 1 auto;
        position: static;
        max-height: none;
    }

    .events-filters {
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 768px) {
    .events-page {
        margin-top: 16px;
        gap: 18px;
    }

    .events-filters {
        padding: 18px;
        border-radius: 14px;
    }

    .events-header {
        margin-bottom: 18px;
    }

    .events-header__title h1 {
        font-size: 24px;
    }

    .event-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .event-card__date {
        border-right: none;
        padding-right: 0;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .event-card__aside {
        align-items: flex-start;
        width: 100%;
    }

    .range-control__inputs {
        flex-direction: column;
    }

    .range-control__inputs input {
        width: 100%;
    }

    .event-card__action {
        width: 100%;
        text-align: center;
    }
}
