/* Bookmakers Grid Block Styles */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

.bookmakers-grid-block {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 24px 0;
}

.bookmakers-grid-block__inner {
    padding: 36px 36px 8px 36px;
    background-color: #FFFFFF;
    border-radius: 25px;
}

/* Header with badge and heading */
.bookmakers-grid-block__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.bookmakers-grid-block__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: #F8F8F8;
    border: 1px solid #E6E6E6;
    border-radius: 50%;
    color: #908F8F;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    flex-shrink: 0;
}

.bookmakers-grid-block__heading {
    margin: 0;
    font-size: 36px;
    font-weight: 800;
    color: #34363D;
    font-family: 'Manrope', sans-serif;
    line-height: 1.2;
}

.bookmakers-grid-block__count {
    margin-left: 16px;
    color: #B1BAD380;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 36px;
    line-height: 120%;
}

/* Filters */
.bookmakers-grid-block__filters {
    background: #FFFFFF;
    border-radius: 25px;
    padding: 8px;
    margin-bottom: 24px;
    position: relative;
}

.bookmakers-filters__toggle {
    display: none;
}

.bookmakers-filters__form {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bookmakers-filter {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bookmakers-filter__select {
    padding: 12px 16px;
    padding-right: 40px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 500;
    color: #34363D;
    background: #F8F8F8;
    border: none;
    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='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2334363D' stroke-width='2'%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;
}

.bookmakers-filter__select:hover {
    background-color: #EEEEEE;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2334363D' stroke-width='2'%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;
}

.bookmakers-filter__select:focus {
    outline: none;
    background-color: #E8E8E8;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2334363D' stroke-width='2'%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;
    box-shadow: 0 0 0 3px rgba(93, 178, 76, 0.1);
}

.bookmakers-filter__reset {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    color: #E6E6E6 !important;
    background: transparent;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: 'Manrope', sans-serif;
}

.bookmakers-filter__reset:hover {
    color: #34363D;
}

.bookmakers-filter__reset.is-active {
    color: #5DB24C;
}

.bookmakers-filter__reset:hover svg,
.bookmakers-filter__reset.is-active:hover svg {
    transform: rotate(-45deg);
}

.bookmakers-filter__reset svg {
    transition: transform 0.3s ease;
}

/* List Container */
.bookmakers-grid-block__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}

.bookmakers-grid-block .bookmaker-card {
    margin: 0 !important;
}

/* Responsive */
@media (max-width: 1400px) {
    .bookmakers-grid-block__inner {
        padding: 16px 16px 8px 16px;
    }
}

@media (max-width: 768px) {
    .bookmakers-grid-block__inner {
        padding: 20px 20px 8px 20px;
        border-radius: 16px;
    }
    
    .bookmakers-grid-block__heading {
        font-size: 28px;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .bookmakers-grid-block__filters {
        padding: 8px;
        border-radius: 16px;
    }
    
    .bookmakers-filters__toggle {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 12px 16px;
        background-color: #F8F8F8 !important;
        border: none;
        border-radius: 10px;
        font-family: 'Manrope', sans-serif;
        font-size: 18px;
        font-weight: 500;
        color: #34363D;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .bookmakers-filters__toggle:hover {
        background: #EEEEEE !important;
    }
    
    .bookmakers-filters__toggle svg:first-child {
        flex-shrink: 0;
    }
    
    .bookmakers-filters__toggle span {
        flex: 1;
        text-align: left;
    }
    
    .bookmakers-filters__toggle-arrow {
        flex-shrink: 0;
        transition: transform 0.3s ease;
    }
    
    .bookmakers-grid-block__filters.is-open .bookmakers-filters__toggle-arrow {
        transform: rotate(180deg);
    }
    
    .bookmakers-filters__form {
        grid-template-columns: 1fr;
        gap: 12px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        margin-top: 0;
        transition: all 0.3s ease;
    }
    
    .bookmakers-grid-block__filters.is-open .bookmakers-filters__form {
        max-height: 500px;
        display: block;
        opacity: 1;
        margin-top: 12px;
    }
    
    .bookmakers-filter__select {
        padding: 10px 14px;
        font-size: 16px;
    }
    
    .bookmakers-grid-block__list {
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .bookmakers-grid-block__inner {
        padding: 16px 16px 8px 16px;
        border-radius: 12px;
    }

    .bookmakers-grid-block__header {
        display: flex;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .bookmakers-grid-block__heading {
        font-size: 20px;
        margin-top: 10px;
    }
    
    .bookmakers-grid-block__badge {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 18px;
    }
    
    .bookmakers-grid-block__filters {
        padding: 8px;
        border-radius: 12px;
        margin-bottom: 16px;
    }
    
    .bookmakers-filters__form {
        gap: 8px;
    }
    
    .bookmakers-filter__select {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Show More Button */
.bookmakers-grid-wrapper {
    margin-bottom: 24px;
}

.bookmakers-show-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding: 16px 0;
}

.bookmakers-show-more__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 48px;
    background: linear-gradient(180deg, #5DB24C 0%, #4A9A3B 100%) !important;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(93, 178, 76, 0.3);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.bookmakers-show-more__btn:hover {
    background: linear-gradient(180deg, #6BC55A 0%, #5DB24C 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 178, 76, 0.4);
}

.bookmakers-show-more__btn:hover .bookmakers-show-more__text {
    color: #fff;
}

.bookmakers-show-more__btn:active {
    transform: translateY(0);
}

.bookmakers-show-more__btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.bookmakers-show-more__text {
    display: inline;
    color: #fff;
    transition: color 0.3s ease;
}

.bookmakers-show-more__loading {
    display: none;
}

.bookmakers-show-more__info {
    margin: 0;
    font-size: 14px;
    color: #6B7280;
    font-family: 'Manrope', sans-serif;
}

@media (max-width: 768px) {
    .bookmakers-show-more__btn {
        padding: 14px 36px;
        font-size: 16px;
        width: 100%;
        max-width: 300px;
    }
}


/* ======================= */
/* Bookmaker Card Styles */
/* ======================= */

/* Стили для карточки букмекера */

.bookmaker-card {
    border: 1px solid #e5e7eb;
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin: 0 !important;
    transition: box-shadow 0.3s ease;
    overflow: visible;
    position: relative;
}

.bookmaker-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Карточка с рамкой */
.bookmaker-card--bordered {
    border-width: 4px;
    border-style: solid;
    overflow: visible;
    border-radius: 25px;
}

/* Бейдж внутри карточки */
.bookmaker-card__badge {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 24px;
    margin: 0 auto;
    width: fit-content;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    background-color: #5DB24C;
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    margin-bottom: 24px;
}

.bookmaker-card__badge .badge-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.bookmaker-card__badge .badge-text {
    line-height: 1;
}

/* Отступ для main-row когда есть бейдж */
.bookmaker-card--bordered .bookmaker-card__main-row {
    padding-top: 0;
}

/* Основная строка карточки - фиксированные размеры */
.bookmaker-card__main-row {
    display: grid;
    grid-template-columns: 50px 100px 92px minmax(130px, 1fr) 141px 118px 194px;
    gap: 24px;
    align-items: center;
    padding: 24px 36px;
    background: #FFFFFF;
    border-radius: 25px 25px 0 0;
}

/* 1. Номер в рейтинге */
.bookmaker-card__rank {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #908F8F;
    text-align: center;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #908F8F !important;
    border-radius: 50% !important;
    margin: 0 auto;
}

/* 2. Логотип */
.bookmaker-card__logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bookmaker-card__logo {
    object-fit: contain;
    padding: 4px;
    min-width: 130px;
}

/* 3. Рейтинг звезд */
.bookmaker-card__rating {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 92px;
    height: 70px;
    border-radius: 10px;
    opacity: 1;
    padding: 0 12px;
    background: #FFC1071A;
}

.rating-stars {
    display: flex;
    gap: 2px;
    align-items: center;
}

.star {
    font-size: 23px;
    display: inline-block;
}

.star-full {
    color: #FFC107 !important;
}

.star-half {
    background: linear-gradient(90deg, #FFC107 50%, #e5e7eb 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-number {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    color: #000000;
}

/* 4. Bonus up to */
.bookmaker-card__bonus {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #d4f5e9 0%, #c7f0df 100%);
    padding: 9px 16px;
    border-radius: 8px;
    text-align: center;
}

.bonus-label {
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    color: #5DB24C;
    font-weight: 600;
    margin-bottom: 4px;
}

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

.bonus-percent {
    font-size: 20px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: #5DB24C;
}

/* 5. Deposit Methods */
.bookmaker-card__deposit-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 202.6px;
    height: 70px;
    border-radius: 10px;
    justify-content: space-between;
    opacity: 1;
    padding: 12px 18px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.deposit-label {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    margin: 0;
}

.payment-icons {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
}

.payment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36.89px;
    height: 23.72px;
    opacity: 1;
}

.payment-icon svg,
.payment-icon img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    object-fit: contain;
}

.payment-icon-placeholder svg {
    border: 1px solid #e5e7eb;
}

.more-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    background: #F5F5F5;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    font-size: 12px;
    color: #666666;
    font-weight: 500;
    min-width: 32px;
    flex-shrink: 0;
}

/* 6. Review Button */
.bookmaker-card__review-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151 !important;
    padding: 23px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
}

.bookmaker-card__review-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

/* 7. Claim Bonus Button */
.bookmaker-card__claim-btn {
    display: flex;
    align-items: center;
    color: rgb(255, 255, 255);
    font-weight: 600;
    font-family: 'Manrope', serif;
    font-size: 18px;
    gap: 8px;
    padding: 8px;
    background: rgb(93, 178, 76);
    border-radius: 100px;
    text-decoration: none;
    transition: 0.3s;
    white-space: nowrap;
}
.bookmaker-card__claim-btn .gift-icon-wrapper {
        width: 64px;
        height: 64px;
        background: #FFFFFF;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
}
.bookmaker-card__claim-btn:hover {
    background: #4a9c3d;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 178, 76, 0.4);
}

.gift-icon {
    flex-shrink: 0;
    color: #fff;
    background-color: #fff !important;
    padding: 2px;
}

.claim-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #fff;
}

.claim-label {
    font-size: 12px;
    opacity: 0.95;
    color: #fff;
}

.claim-amount {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.overall-score-label {
    color: #374151;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    margin: 0;
    letter-spacing: 0.5px;
}

.overall-score-value {
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-circle {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: conic-gradient(
        #5DB24C calc(var(--score-percent) * 1%),
        #e5e7eb calc(var(--score-percent) * 1%)
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
}

.score-number {
    position: relative;
    z-index: 1;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

/* 🆕 5a. Общий балл (Overall Score) - альтернатива Deposit Methods */
.bookmaker-card__overall-score {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 140px;
    height: 70px;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    padding: 12px 18px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Expandable Section */
.bookmaker-card__expandable {
    background: #fff;
    border-radius: 0 0 25px 25px;
}

.bookmaker-card__toggle {
    border-radius: 0 0 25px 25px;
    width: 100%;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: #5DB24C;
    transition: background 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: last baseline;
}

.bookmaker-card__toggle:hover {
    background: #f3f4f6;
}
.toggle-container {
    display: flex;
    height: 42px;
    width: 135px;
    justify-content: center;
    align-items: center;
    background-color: #F8F8F8;
    border-radius: 10px 10px 0 0;
} 

.arrow-icon {
    transition: transform 0.3s ease;
}

.bookmaker-card__toggle[aria-expanded="true"] .arrow-icon {
    transform: rotate(180deg);
}

.bookmaker-card__details {
    padding: 24px;
    background: #fafafa;
    border-top: 1px solid #e5e7eb;
    overflow: visible;
    border-radius: 0 0 25px 25px;
}

.bookmaker-card__details[hidden] {
    display: none;
}

.bookmaker-card__promo-section {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    overflow: visible;
    position: relative;
}

.promo-container {
    background: #fff;
    border-radius: 10px;
    overflow: visible;
    border: 1px solid #e5e7eb;
    width: 100%;
    position: relative;
}

.promo-content-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 12px;
    position: relative;
}

.promo-description-box {
    flex: 1;
    font-size: 20px;
    color: #34363D;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    line-height: 1.5;
    margin-left: 20px;
}

.promo-code-button {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 8px;
    background: #5DB24C1A;
    border: 2px dashed #5DB24C;
    border-radius: 8px;
    padding: 0 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    font-family: inherit;
    min-width: 140px;
}

.promo-code-button:hover {
    background: #10b981;
    border-color: #10b981;
    border-style: solid;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.promo-code-button:active {
    transform: translateY(0);
}

.promo-label {
    font-size: 12px;
    color: #34363D80;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
    margin-bottom: -6px;
}

.promo-code-button:hover .promo-label {
    color: #d1fae5;
}

.promo-code-row {
    display: flex;
    text-transform: uppercase;
    font-size: 26px;
    font-weight: 800;
    font-family: 'Manrope', sans-serif;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.promo-code-text {
    font-size: 26px;
    font-weight: 700;
    color: #5DB24C;
    font-family: 'Manrope', sans-serif;
    transition: color 0.2s ease;
}

.promo-code-button:hover .promo-code-text {
    color: #fff;
}

.copy-icon {
    width: 22px;
    height: 22px;
    color: #5DB24C;
    transition: color 0.2s ease;
    flex-shrink: 0;
    margin-top: -20px;
}

.promo-code-button:hover .copy-icon {
    color: #fff;
}

.copied-tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: #1f2937;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 1000;
}

.copied-tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #1f2937;
}

.promo-code-button.copied .copied-tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.promo-code-button.copied {
    background: #10b981;
    border-color: #10b981;
    border-style: solid;
}

.promo-code-button.copied .promo-code-text,
.promo-code-button.copied .copy-icon,
.promo-code-button.copied .promo-label {
    color: #fff;
}

.promo-bonus {
    font-size: 12px;
    color: #374151;
}

.bookmaker-card__info-table {
    background: #FAFAFA;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.info-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.info-column {
    display: flex;
    flex-direction: column;
}

.info-column-left {
    border-right: 1px solid #e5e7eb;
}

.info-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    padding: 14px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.info-row:last-child {
    border-bottom: none;
}

.info-column-left .info-row:nth-child(even),
.info-column-right .info-row:nth-child(even) {
    background: #f9fafb;
}

.info-label {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    color: #ACACB5;
}

.info-value {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    color: #626273;
}

/* Review Modal */
.bookmaker-review-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.review-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.review-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.review-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.review-modal-close:hover {
    background: #e5e7eb;
}

.review-header h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #1f2937;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.review-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

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

.review-author-info strong {
    font-size: 18px;
    color: #1f2937;
}

.review-author-info span {
    font-size: 14px;
    color: #6b7280;
}

.review-image {
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
}

.review-image img {
    width: 100%;
    height: auto;
    display: block;
}

.review-text {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
}

.review-text p {
    margin: 0 0 16px 0;
}

.review-text p:last-child {
    margin-bottom: 0;
}

/* Error State */
.bookmaker-card-error {
    padding: 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    text-align: center;
}

/* Адаптивность */

@media (max-width: 1600px) {
    .bookmaker-card__main-row {
        grid-template-columns: 6% 10% 8% 27% 12% 11% 17%;
        gap: 18px;
        padding: 18px 24px;
    }
}

@media (max-width: 1400px) {
    .bookmaker-card__main-row {
        grid-template-columns: 5% 11% 9% 25% 14% 11% 19%;
        gap: 10px;
        padding: 16px 20px;
    }
}

@media (max-width: 1300px) {
   .bookmaker-card__main-row {
        grid-template-columns: 6% 10% 10% 21% 16% 9% 21%;
   }
}

@media (max-width: 1200px) {
    .bookmaker-card__main-row {
        gap: 12px;
        padding: 14px 18px;
        font-size: 14px;
    }
    
    .bookmaker-card__rank {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .bookmaker-card__logo {
        width: 120px;
        height: auto;
    }
}

@media (max-width: 1024px) {
    .bookmaker-card__main-row {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "rank logo"
            "rating bonus"
            "methods methods"
            "review claim";
        gap: 12px;
        padding: 16px;
    }
    
    .bookmaker-card__rank {
        grid-area: rank;
        justify-self: start;
    }
    
    .bookmaker-card__logo-wrapper {
        grid-area: logo;
        justify-self: end;
    }
    
    .bookmaker-card__rating {
        grid-area: rating;
    }
    
    .bookmaker-card__bonus {
        grid-area: bonus;
    }
    
    .bookmaker-card__deposit-methods {
        grid-area: methods;
    }
    
    .bookmaker-card__review-btn {
        grid-area: review;
    }
    
    .bookmaker-card__claim-btn {
        grid-area: claim;
        justify-self: stretch;
    }
}

@media (max-width: 768px) {
    .bookmaker-card {
        border-radius: 25px;
        margin: 16px 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    .bookmaker-card__badge {
        padding: 6px 16px;
        font-size: 12px;
        gap: 8px;
        margin-top: -1px !important;
    }
    
    .bookmaker-card__badge .badge-icon {
        width: 16px;
        height: 16px;
    }
    
    .bookmaker-card--bordered {
        border-radius: 25px;
    }
    
    .bookmaker-card__main-row {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
        background: #fff;
        position: relative;
        border-radius: 25px 25px 0 0;
    }
    
    .bookmaker-card--bordered .bookmaker-card__main-row {
        padding-top: 8px;
    }
    
    /* Верхняя строка: Rank + Title + Rating */
    .bookmaker-card__rank {
        order: 1;
        width: 28px;
        height: 28px;
        font-size: 12px;
        font-weight: 700;
        border: 2px solid #D1D5DB;
        color: #6B7280;
        flex-shrink: 0;
    }
    
    .bookmaker-card__logo-wrapper {
        order: 1;
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1;
        min-width: 0;
        margin-left: 0;
    }
    
    .bookmaker-card__logo {
        max-width: 140px;
        min-width: auto;
        height: auto;
        padding: 0;
        flex-shrink: 1;
    }
    
    /* Рейтинг в хедере справа */
    .bookmaker-card__rating {
        order: 1;
        width: auto;
        height: auto;
        padding: 11px 18px;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }
    
    .rating-stars {
        order: 1;
    }
    
    .star {
        font-size: 18px;
    }
    
    .rating-number {
        order: 2;
        font-size: 16px;
        font-weight: 700;
        color: #34363D;
    }
    
    /* Overall Score Block - мобильный вариант */
    .bookmaker-card__overall-score {
        order: 3;
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-between;
        padding: 12px 16px;
        background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    }
    
    .overall-score-label {
        font-size: 13px;
        color: #166534;
    }
    
    .score-circle {
        width: 42px;
        height: 42px;
    }
    
    .score-circle::before {
        width: 32px;
        height: 32px;
    }
    
    .score-number {
        font-size: 13px;
    }
    
    
    /* Создаем flexbox контейнер для верхней строки */
    .bookmaker-card__main-row > .bookmaker-card__rank,
    .bookmaker-card__main-row > .bookmaker-card__logo-wrapper,
    .bookmaker-card__main-row > .bookmaker-card__rating {
        order: 1;
    }
    
    .bookmaker-card__main-row {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px;
        background: #fff;
        position: relative;
        align-items: center;
    }
    
    /* Остальные элементы идут ниже */
    .bookmaker-card__bonus,
    .bookmaker-card__deposit-methods,
    .bookmaker-card__claim-btn,
    .bookmaker-card__review-btn,
    .bookmaker-card__expandable {
        width: 100%;
        flex-basis: 100%;
    }
    
    /* Bonus Block - зеленый фон */
    .bookmaker-card__bonus {
        order: 2;
        width: 100%;
        background: #E8F5E9;
        border-radius: 12px;
        padding: 9px 16px;
        text-align: center;
    }
    
    .bonus-label {
        font-size: 12px;
        font-weight: 600;
        color: #5DB24C;
        margin-bottom: 6px;
        line-height: 100%;
        display: block;
    }
    
    .bonus-value {
        display: block;
    }
    
    .bonus-percent {
        font-size: 24px;
        font-weight: 800;
        color: #5DB24C;
        line-height: 100%;
    }
    
    /* Методы депозита */
    .bookmaker-card__deposit-methods {
        order: 3;
        width: 100%;
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 12px;
        flex-wrap: nowrap !important;
    }
    
    .deposit-label {
        font-size: 12px;
        font-weight: 600;
        color: #34363D;
        margin: 0;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .payment-icons {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 3px;
        flex-wrap: nowrap;
        flex: 1;
        overflow-x: auto;
    }
    
    .payment-icon {
        width: 36px;
        height: 23px;
        flex-shrink: 0;
        border-radius: 4px;
        overflow: hidden;
    }
    
    .payment-icon svg,
    .payment-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .more-count {
        font-size: 12px;
        font-weight: 600;
        color: #6B7280;
        padding: 4px 8px;
        background: #F3F4F6;
        border-radius: 4px;
    }
    
    /* Claim Button - зеленая с подарком */
    .bookmaker-card__claim-btn {
        order: 4;
        grid-column: 1 / -1;
        grid-row: 3;
        width: 100%;
        padding: 8px;
        font-size: 13px;
        justify-content: flex-start;
        box-sizing: border-box;
        gap: 16px !important;
    }
    
    .bookmaker-card__claim-btn:hover {
        background: #4a9639;
        box-shadow: 0 4px 12px rgba(93, 178, 76, 0.35);
        transform: translateY(-1px);
    }
    
    /* Белый круг с иконкой подарка */
    .bookmaker-card__claim-btn .gift-icon {
        width: 38px;
        height: 38px;
        background: #FFFFFF;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        padding: 10px;
    }
    
    .bookmaker-card__claim-btn .gift-icon img {
        width: 24px;
        height: 24px;
        filter: invert(64%) sepia(48%) saturate(636%) hue-rotate(75deg) brightness(93%) contrast(87%);
    }
    
    .claim-content {
        display: grid;
        flex-direction: row;
        align-items: flex-start;
        gap: 0;
        flex: 1;
        justify-content: flex-start;
        padding-right: 12px;
    }
    
    .claim-label {
        font-size: 16px;
        font-weight: 600;
        line-height: 140%;
        color: #FFFFFF;
    }
    
    .claim-amount {
        font-size: 16px;
        font-weight: 600;
        color: #FFFFFF;
        line-height: 140%;
    }
    
    /* Review Button - серая */
    .bookmaker-card__review-btn {
        order: 5;
        width: 100%;
        height: 58px;
        font-size: 14px;
        font-weight: 600;
        border-radius: 12px;
        background: #F3F4F6;
        color: #34363D;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    .promo-content-row {
        display: block;
        padding: 20px;
        background-color: #FFFFFF;
        border-radius: 12px;

    }
    .bookmaker-card__review-btn:hover {
        background: #E5E7EB;
    }
    
    /* Expandable секция */
    .bookmaker-card__expandable {
        order: 6;
        width: 100%;
        border-radius: 0 0 25px 25px;
    }
    
    .bookmaker-card__toggle {
        padding: 0;
        width: 100%;
        background: transparent;
        border: none;
        cursor: pointer;
    }
    
    .toggle-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .toggle-text {
        font-size: 15px;
        font-weight: 600;
        color: #5DB24C;
    }
    
    .arrow-icon {
        color: #5DB24C;
        transition: transform 0.3s ease;
    }
    
    .bookmaker-card__toggle[aria-expanded="true"] .arrow-icon {
        transform: rotate(180deg);
    }
    
    .bookmaker-card__details {
        padding: 0 0 16px;
    }
    
    /* Промокоды */
    .promo-container {
        margin-bottom: 16px;
        border-radius: 12px;
        background: #F8F8F8;
        padding: 12px;
    }
    
    .promo-description-box {
        font-size: 14px;
        font-weight: 600;
        color: #34363D;
        line-height: 140%;
        margin-left: 0;
        margin-bottom: 26px;
    }
    
    .promo-code-button {
        width: 100%;
        height: auto;
        padding: 12px 15px;
        border-radius: 10px;
        font-size: 14px;
    }
    
    .promo-code-text {
        font-size: 15px;
        font-weight: 700;
    }
    .promo-code-row {
        font-size: 18px;
        justify-content: space-between;
        width: 100%;
    }
    
    /* Таблица информации */
    .bookmaker-card__info-table {
        margin-top: 16px;
        padding: 20px;
    }
    
    .info-columns {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .info-column {
        width: 100%;
    }
    
    .info-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 0;
        border-bottom: 1px solid #F0F0F0;
        gap: 12px;
    }
    
    .info-row:last-child {
        border-bottom: none;
    }
    
    .info-label {
        font-size: 14px;
        color: #ACACB5;
        flex: 1;
        font-weight: 400;
    }
    
    .info-value {
        font-size: 14px;
        font-weight: 600;
        color: #626273;
        text-align: right;
        line-height: 100%;
        flex-shrink: 0;
    }
    
    /* Иконки приложений */
    .mobile-app-icons {
        gap: 6px;
    }
    
    .app-icon-button {
        width: 32px;
        height: 32px;
    }
    
    .app-icon-button svg {
        width: 20px;
        height: 20px;
    }
    
    /* Модальное окно отзыва */
    .review-modal-content {
        padding: 20px;
        border-radius: 20px;
        margin: 16px;
    }
    
    .review-header h3 {
        font-size: 20px;
    }
    
    .review-author {
        padding: 12px 0;
    }
    
    .review-avatar,
    .review-avatar-placeholder {
        width: 40px;
        height: 40px;
    }
}

/* Mobile App Icons and Modals */
.mobile-app-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.app-icon-button {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.app-icon-button:hover {
    color: #10b981;
    background: #f0fdf4;
    transform: scale(1.1);
}

.app-icon-button svg {
    display: block;
}

/* App Modal */
.app-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.app-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.app-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 1;
}

.app-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.app-modal-close:hover {
    background: #e5e7eb;
    color: #1f2937;
    transform: rotate(90deg);
}

.app-modal-header {
    padding: 10px;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
    align-items: center;
}

.app-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-right: 20px;
}

.app-modal-icon.android-icon {
    background: linear-gradient(135deg, #3ddc84 0%, #07c160 100%);
    color: #fff;
}

.app-modal-icon.ios-icon {
    background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
    color: #fff;
}

.app-modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.app-modal-body {
    padding: 32px;
}

.app-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.app-info-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0 20px;
}

.app-info-item.app-bonus {
    background: #f0fdf4;
    border-color: #10b981;
}

.app-info-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.app-bonus .app-info-label {
    color: #059669;
}

.app-info-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.app-bonus .app-info-value {
    color: #10b981;
}

.app-screenshots {
    margin-bottom: 20px;
}

.app-screenshots h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px 0;
}

.app-screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.app-screenshot {
    height: 300px;
    border-radius: 12px;
}

.app-download-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.app-download-btn {
    flex: 1;
    min-width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.app-download-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

.app-download-btn.apk-btn,
.app-download-btn.pwa-btn {
    background: #6366f1;
}

.app-download-btn.apk-btn:hover,
.app-download-btn.pwa-btn:hover {
    background: #4f46e5;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

@media (max-width: 768px) {
    .app-modal-content {
        max-width: 100%;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .app-modal-header,
    .app-modal-body {
        padding: 24px 20px;
    }
    
    .app-info-grid {
        grid-template-columns: 1fr;
    }
    
    .app-screenshots-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .app-download-buttons {
        flex-direction: column;
    }
    
    .app-download-btn {
        min-width: 100%;
    }
}

