.dealbot-deal-page {
    --dealbot-border: #e5e7eb;
    --dealbot-muted: #6b7280;
    --dealbot-accent: #2563eb;
    --dealbot-surface: #ffffff;
    --dealbot-bg: #f8fafc;
    --dealbot-radius: 14px;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    box-sizing: border-box;
}

.dealbot-deal-page *,
.dealbot-deal-page *::before,
.dealbot-deal-page *::after {
    box-sizing: border-box;
}

.dealbot-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 20px;
    padding: 4px;
    border: 1px solid var(--dealbot-border);
    border-radius: 12px;
    background: var(--dealbot-bg);
}

.dealbot-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 9px;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.dealbot-tab:hover,
.dealbot-tab:focus-visible {
    background: rgba(37, 99, 235, .08);
    color: inherit;
    text-decoration: none;
}

.dealbot-tab--active {
    background: var(--dealbot-surface);
    color: var(--dealbot-accent);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}

.dealbot-deal-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.dealbot-deal-card {
    display: flex;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--dealbot-border);
    border-radius: var(--dealbot-radius);
    background: var(--dealbot-surface);
}

.dealbot-deal-card__image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    background: var(--dealbot-bg);
    aspect-ratio: 1 / 1;
}

.dealbot-deal-card__image {
    display: block;
    width: 100%;
    max-width: 180px;
    height: 100%;
    max-height: 180px;
    object-fit: contain;
}

.dealbot-deal-card__body {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 14px;
}

.dealbot-deal-card__title {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 5px;
    margin: 0 0 10px;
    font-size: 1rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
}

.dealbot-deal-card__title-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dealbot-deal-card__title a {
    color: inherit;
    text-decoration: none;
}

.dealbot-deal-card__title a:hover,
.dealbot-deal-card__title a:focus-visible {
    color: var(--dealbot-accent);
}

.dealbot-deal-card__pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.dealbot-price {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.1;
}

.dealbot-original-price {
    color: var(--dealbot-muted);
    text-decoration: line-through;
}

.dealbot-offer-line {
    margin-top: 6px;
    font-size: .88rem;
    line-height: 1.4;
}

.dealbot-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 24px 0 0;
    padding: 0;
}

.dealbot-page-link,
.dealbot-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 11px;
    border: 1px solid var(--dealbot-border);
    border-radius: 8px;
    background: var(--dealbot-surface);
    color: inherit;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.dealbot-page-link:hover,
.dealbot-page-link:focus-visible {
    border-color: var(--dealbot-accent);
    background: rgba(37, 99, 235, .08);
    color: var(--dealbot-accent);
    text-decoration: none;
}

.dealbot-page-link--current {
    border-color: var(--dealbot-accent);
    background: var(--dealbot-accent);
    color: #fff;
}

.dealbot-page-link--current:hover,
.dealbot-page-link--current:focus-visible {
    background: var(--dealbot-accent);
    color: #fff;
}

.dealbot-page-ellipsis {
    min-width: 32px;
    padding: 0 4px;
    border-color: transparent;
    background: transparent;
    font-weight: 600;
}

.dealbot-deal-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--dealbot-border);
    color: var(--dealbot-muted);
    font-size: .8rem;
}

.dealbot-view-deal {
    color: var(--dealbot-accent);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.dealbot-view-deal:hover,
.dealbot-view-deal:focus-visible {
    text-decoration: underline;
}

.dealbot-social-alert {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: -6px 0 20px;
    padding: 12px 14px;
    border: 1px solid var(--dealbot-border);
    border-radius: 12px;
    background: var(--dealbot-surface);
    color: inherit;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
}

.dealbot-social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

.dealbot-social-link:hover {
    text-decoration: underline;
}

.dealbot-social-link--telegram {
    color: #229ed9;
}

.dealbot-social-link--discord {
    color: #5865f2;
}

.dealbot-social-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: currentColor;
}


.dealbot-latest-deals {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    box-sizing: border-box;
}

.dealbot-latest-deals *,
.dealbot-latest-deals *::before,
.dealbot-latest-deals *::after {
    box-sizing: border-box;
}

.dealbot-latest-group {
    /*margin: 0 0 24px;*/
}

.dealbot-latest-group__title {
    margin: 0 0 8px;
    font-size: 1.25rem;
    line-height: 1.3;
}

.dealbot-latest-group__grid {
    display: block;
}

.dealbot-latest-item {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 4px;
    margin: 0;
    padding: 7px 0;
    font-size: 1rem;
    line-height: 1.45;
}

.dealbot-latest-item + .dealbot-latest-item {
    border-top: 1px solid var(--dealbot-border);
}

.dealbot-latest-item__icon {
    flex: 0 0 auto;
}

.dealbot-latest-item__title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.dealbot-latest-item__title:hover,
.dealbot-latest-item__title:focus-visible {
    color: var(--dealbot-accent);
    text-decoration: underline;
}

.dealbot-latest-item__separator,
.dealbot-latest-item__price,
.dealbot-latest-item__original-price,
.dealbot-latest-item__discount {
    flex: 0 0 auto;
}

.dealbot-latest-item__price {
    font-weight: 800;
}

.dealbot-latest-item__original-price {
    color: var(--dealbot-muted);
}

.dealbot-latest-item__discount {
    color: var(--dealbot-muted);
}

@media (max-width: 980px) {
    .dealbot-deal-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .dealbot-deal-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .dealbot-page-link,
    .dealbot-page-ellipsis {
        min-width: 36px;
        min-height: 36px;
        padding: 0 9px;
        font-size: .9rem;
    }

    .dealbot-deal-list {
        grid-template-columns: 1fr;
    }

    .dealbot-latest-item {
        font-size: .98rem;
    }
}
