﻿:root {
    --red: #e60012;
    --red-dark: #c1000f;
    --gold: #ffc400;
    --gray-1: #f2f2f2;
    --gray-2: #e9e9e9;
    --text: #222;
    --ok: #0a7d27;
    --shadow: 0 6px 20px rgba(0,0,0,.12);
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Inter,system-ui,Segoe UI,Roboto,Arial,sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.5
}

.flash-wrap {
    max-width: 840px;
    margin: 16px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--red-dark)
}

.flash-top {
    background: radial-gradient(150% 120% at 15% -20%, #ff7373 0%, transparent 45%), radial-gradient(150% 120% at 85% -40%, #ff4747 0%, transparent 40%), var(--red);
    color: #fff;
    padding: 16px 16px 12px;
    position: relative
}

.row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
    align-items: center
}

@media (max-width:680px) {
    .row {
        grid-template-columns: 1fr;
        gap: 12px
    }
}

/* Left: prices */
.left .title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px
}

    .left .title .bolt {
        display: grid;
        place-items: center;
        width: 26px;
        height: 26px;
        background: #fff2;
        border: 1px solid #fff4;
        border-radius: 6px;
        font-size: 16px;
        color: var(--gold)
    }

.price-line {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-top: 6px;
    flex-wrap: wrap
}

.old-price {
    text-decoration: line-through;
    opacity: .9;
    font-size: 17px
}

.discount {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 18px
}

    .discount .zap {
        font-size: 18px;
        color: var(--gold)
    }

.new-price {
     font-size: 34px;
    font-weight: 900;
    letter-spacing: .3px;
    text-shadow: 0 1px 0 #0002;
    line-height:30px
}

.slots {
    position: absolute;
    right: 16px;
    bottom: 10px;
    font-weight: 600;
    background: #0002;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #fff3
}

/* Right: countdown */
.right label {
    display: block;
    opacity: .95;
    margin-bottom: 6px;
    font-weight: 600
}

.timer {
    display: flex;
    align-items: center;
    gap: 10px
}

    .timer .bar {
        height: 8px;
        flex: 1;
        background: #ffffff33;
        border-radius: 99px;
        overflow: hidden;
        margin-left: 6px;
        position:relative
    }

        .timer .bar > i {
            position: absolute;
            inset: 0 100% 0 0;
            background: linear-gradient(90deg,#ffd38a,#ff9f0a)
        }

.time-cells {
    display: flex;
    gap: 10px;
    margin-top: 6px
}

.time-cell {
    min-width: 40px;
    text-align: center;
    background: #0003;
    border: 1px solid #fff3;
    border-radius: 10px;
    padding: 6px 8px 8px
}

    .time-cell b {
        display: block;
        font-size: 20px;
        letter-spacing: 1px
    }

    .time-cell span {
        display: block;
        font-size: 11px;
        opacity: .95
    }

/* Perks */
.perks {
    background: var(--gray-1);
    padding: 14px;
    border-top: 1px solid #ffffff40
}

    .perks .box {
        background: #fff;
        border: 1px solid var(--gray-2);
        border-radius: 10px;
        padding: 12px
    }

    .perks h3 {
        margin: 0 0 8px;
        font-size: 18px;
        background: #f6f6f6;
        border-radius: 8px;
        padding: 8px 10px
    }

.perks-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: perk
}

    .perks-list li {
        display: flex;
        gap: 12px;
        padding: 5px 6px;
        border-top: 1px dashed #ececec;
        align-items: flex-start
    }

        .perks-list li:first-child {
            border-top: none
        }

        .perks-list li::before {
            counter-increment: perk;
            content: counter(perk);
            min-width: 28px;
            height: 28px;
            border-radius: 50%;
            display: grid;
            place-items: center;
            border: 1px solid #d9d9d9;
            font-weight: 800;
            color: #246bfd;
            background: #f3f6ff;
            box-shadow: inset 0 0 0 3px #fff;
            margin-top: 2px
        }

    .perks-list b {
        font-weight: 800
    }

.hotline {
    font-weight: 800;
    letter-spacing: .3px
}

/* Mobile tweaks */
@media (max-width:680px) {
    .new-price {
        font-size: 30px
    }

    .left .title {
        font-size: 16px
    }

    .time-cell {
        min-width: 52px
    }

    .slots {
        position: static;
        display: inline-block;
        margin-top: 8px
    }
}

@media (max-width:420px) {
    .new-price {
        font-size: 28px
    }

    .time-cell {
        min-width: 48px
    }

    .left .title {
        gap: 8px
    }

    .discount {
        font-size: 16px
    }

    .old-price {
        font-size: 16px
    }

    .row {
        gap: 8px
    }
}
