﻿@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700;800&display=swap');

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background-color: #dff3ff;
    background-image: url('/static/background_blue_before_yellow.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: #333333;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 52px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #4f94cf;
    color: #ffffff;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-actions a {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
}

.page {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 28px 16px 46px;
}

.heading {
    margin: 0 0 28px;
    color: #1e5d8a;
    line-height: 1.16;
    font-weight: 800;
    text-align: center;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.heading small {
    display: block;
    font-size: clamp(16px, 2vw, 22px);
}

.heading strong {
    display: block;
    font-size: clamp(28px, 4vw, 42px);
}

.bonus-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.bonus-card {
    min-width: 0;
    padding: 12px;
    border: 2px solid #b7dcf3;
    border-radius: 12px;
    background: rgba(238, 249, 255, 0.96);
    box-shadow: 0 8px 18px rgba(37, 111, 168, 0.20);
    display: flex;
    flex-direction: column;
}

.bonus-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
}

.bonus-image img {
    width: 100%;
    height: 100%;
    padding: 10px;
    object-fit: contain;
    display: block;
}

.bonus-type {
    position: absolute;
    top: 10px;
    right: 10px;
    max-width: calc(100% - 20px);
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #4f94cf;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(30, 93, 138, 0.22);
    font-size: 12px;
    line-height: 1.1;
    font-weight: 800;
    text-align: center;
}

.bonus-type-one_time {
    background: #256fa8;
}

.bonus-type-accumulative {
    background: #22c55e;
}

.bonus-price {
    margin: 0 0 6px;
    color: #1e5d8a;
    font-size: clamp(24px, 2.8vw, 34px);
    line-height: 1;
    font-weight: 800;
}

.bonus-title {
    margin: 0;
    color: #333333;
    font-size: clamp(17px, 1.8vw, 23px);
    line-height: 1.2;
    font-weight: 800;
}

.admin-tools {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.admin-tools a {
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 7px;
    background: #ffffff;
    color: #1e5d8a;
    border: 1px solid #b7dcf3;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
}

.empty {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #64748b;
    font-size: 20px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .bonus-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 560px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .page {
        padding: 22px 12px 38px;
    }

    .heading {
        margin-bottom: 22px;
    }

    .bonus-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .bonus-card {
        padding: 8px;
    }

    .bonus-type {
        top: 8px;
        right: 8px;
        max-width: calc(100% - 16px);
        padding: 4px 7px;
        font-size: 10px;
    }

    .bonus-price {
        font-size: clamp(18px, 5vw, 24px);
    }

    .bonus-title {
        font-size: clamp(14px, 4vw, 17px);
    }
}

@media (max-width: 340px) {
    .bonus-grid {
        grid-template-columns: 1fr;
    }
}


