:root {
    --red: #ef3340;
    --ink: #17191d;
    --muted: #69707a;
    --line: #e6e8eb;
    --bg: #f6f7f9;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Arial,sans-serif;
    color: var(--ink);
    background-color: #d3e3fd;
}

a {
    color: inherit;
    text-decoration: none
}

button,input,select,textarea {
    font: inherit
}

.topbar {
    height: 75px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    display: grid;
    grid-template-columns: 54px 1fr 54px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding: 0 8px
}
.topbar{
    transition: transform .25s ease;
    will-change: transform;
}

.topbar.hide{
    transform: translateY(-100%);
}
.brand {
    text-align: center;
    font-size: 25px
}

.brand span {
    color: var(--red);
    font-weight: 800
}

.iconbtn {
    border: 0;
    background: none;
    font-size: 25px;
    text-align: center
}

.page {
    padding: 12px 0px 0px;
    max-width: 1100px;
    margin: auto
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;

    margin: 12px;
    padding: 13px 15px;

    background: linear-gradient(
        135deg,
        #fff5d8 0%,
        #fffaf0 55%,
        #ffffff 100%
    );

    border: 1px solid #f5c84c;
    border-left: 5px solid #f5a900;
    border-radius: 9px;

    box-shadow:
        0 6px 18px rgba(245, 169, 0, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);

    overflow: hidden;
}

/* Ánh sáng nhẹ phía sau */
.hero::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    right: -35px;
    top: -45px;
    border-radius: 50%;
    background: rgba(255, 201, 40, 0.15);
    pointer-events: none;
}

.hero-speaker {
    position: relative;
    z-index: 1;

    width: 38px;
    height: 38px;
    flex: 0 0 38px;

    display: grid;
    place-items: center;

    background: linear-gradient(145deg, #ffc928, #f5a900);
    border-radius: 50%;

    box-shadow: 0 4px 10px rgba(245, 169, 0, 0.3);
}

.hero-speaker svg {
    width: 21px;
    height: 21px;
    display: block;
    fill: #2d2100;
}

.hero h3 {
    position: relative;
    z-index: 1;

    margin: 0;
    color: #342600;

    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.2px;
}

@media (max-width: 480px) {
    .hero {
        margin: 10px 12px;
        padding: 11px 12px;
        gap: 9px;
        border-radius: 12px;
    }

    .hero-speaker {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .hero-speaker svg {
        width: 19px;
        height: 19px;
    }

    .hero h3 {
        font-size: 15px;
    }
}

.hero h1 {
    margin: 0 0 6px
}

.bottomnav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    background: #fff;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(5,1fr);
    z-index: 120;
    padding-bottom: env(safe-area-inset-bottom)
}

.bottomnav a,.bottomnav button {
    border: 0;
    background: rgba(0, 0, 0, 0.0);
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 20px
}

.bottomnav small {
    font-size: 10px
}

.bottomnav .next {
    color: var(--red);
    font-weight: bold
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: #0008;
    z-index: 9998;
    align-items: flex-end
}

.overlay.open {
    display: flex
}

.sheet {
    background: #fff;
    border-radius: 18px 18px 0 0;
    width: 100%;
    max-height: 82vh;
    overflow: hidden
}

.sheet.tall {
    max-height: 92vh
}

.handle {
    width: 48px;
    height: 5px;
    background: #c9ccd1;
    border-radius: 5px;
    margin: 8px auto
}

.sheet header {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line)
}

.sheet header button {
    font-size: 20px;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #17191d;
    background: #f1f3f5;
    cursor: pointer;
}
.sheetbody {font-size: 18px;
    line-height: 1.5;
    color: #2b3037;
    padding: 0px 14px 14px 14px;
    overflow: auto;
    max-height: calc(82vh - 58px)

}

.sheetbody>a,.sheetbody>.subcategory {
    display: block;
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
    font-weight: 700
}

.gallery img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 10px
}

.detailvalue {
    font-size: 34px;
    color: var(--red);
    font-weight: 900
}


.actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:6px;
}

.actions a,
.actions button,
.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:110px;
    height:36px;
    padding:0 18px;
    border:1px solid #e4e7ec;
    border-radius:40px;
    background:linear-gradient(180deg,#ffffff 0%,#f7f8fa 100%);
    color:#111827;
    font-size:14px;
    font-weight:700;
    text-decoration:none;
    cursor:pointer;
    box-shadow:
        0 2px 6px rgba(0,0,0,.08),
        inset 0 1px 0 rgba(255,255,255,.9);
    transition:all .18s ease;
}

.actions a:hover,
.actions button:hover,
.btn:hover{
    transform:translateY(-2px);
    box-shadow:
        0 8px 18px rgba(0,0,0,.12),
        inset 0 1px 0 rgba(255,255,255,.95);
}

.actions a:active,
.actions button:active,
.btn:active{
    transform:scale(.96);
    box-shadow:
        inset 0 2px 6px rgba(0,0,0,.12);
}

.actions a svg,
.actions button svg{
    width:18px;
    height:18px;
    margin-right:8px;
    flex-shrink:0;
}
.btn.red {
    background: var(--red)
}

form.card,.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 15px;
    margin-bottom: 12px
}

label {
    display: block;
    font-weight: 700;
    margin: 12px 0 6px
}

input,select,textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccd0d5;
    border-radius: 9px
}

textarea {
    min-height: 110px
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px
}

.flash {
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px
}

.flash.error {
    background: #ffe2e4
}

.flash.success {
    background: #dcf8e6
}

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

.admincards {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px
}

.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px
}

.stat strong {
    font-size: 30px;
    display: block
}

.tablewrap {
    overflow: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px
}

table {
    border-collapse: collapse;
    width: 100%
}

th,td {
    padding: 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    white-space: nowrap
}

.adminnav {
    background: #101319;
    color: #fff;
    padding: 12px;
    display: flex;
    gap: 13px;
    overflow: auto
}

.adminnav a {
    white-space: nowrap
}

.pager {
    display: flex;
    gap: 8px;
    margin: 15px 0
}

.muted {
    color: var(--muted)
}

@media(max-width: 700px) {
    .admincards {
        grid-template-columns:1fr 1fr
    }

    .grid2 {
        grid-template-columns: 1fr
    }

    .page {
        padding-left: 0px;
        padding-right: 0px
    }
}

/* BOLSAdeal logo */
.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    line-height: 0;
    text-align: center;
}

.bd-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 190px;
    max-width: 100%;
    line-height: 0;
    text-decoration: none;
}

.bd-logo img {
    display: block;
    width: 100%;
    height: 72px;
    object-fit: contain;
}

@media (max-width: 374px) {
    .bd-logo {
        width: 150px;
    }
}

.section-title{
    display:flex;
    align-items:center;
    gap:10px;

    margin:14px 12px 4px 0;
    padding:0;

    color:#111827;
    font-size:18px;
    font-weight:800;
    line-height:1.3;
}

.section-title::before{
    content:"";
    width:5px;
    height:22px;
    border-radius:999px;
    background:#EF3340;
    flex:none;
}

.section-title::after{
    content:"";
    flex:1;
    height:1px;
    background:linear-gradient(
        to right,
        #EF3340 0%,
        #ffd7da 40%,
        transparent 100%
    );
}

@media (max-width:480px){

    .section-title{
        margin:16px 12px 10px;
        font-size:17px;
    }

    .section-title::before{
        height:20px;
    }
}

.sheet-deal-value-card{
    margin:14px 0;
    padding:6px;
    border-radius:12px;
    background:#fff;
    color:#ef3340;
    text-align:center;
    font-size:28px;
    font-weight:800;
    border:1px solid #e5e7eb;
}

.sheet-deal-dates{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:14px;
    overflow:hidden;
}

.sheet-deal-date-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 14px;
    font-size:14px;
}

.sheet-deal-date-row+.sheet-deal-date-row{
    border-top:1px solid #eceff3;
}

.sheet-deal-date-row .label{
    font-weight:700;
    color:#6b7280;
}


/* BOLSAdeal mobile pagination */
.bd-pagination{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(132px,1.15fr) minmax(0,1fr);
    align-items:center;
    gap:0px;
    margin:18px 10px 8px;
}

.bd-page-button,
.bd-page-select{
    width:100%;
    height:46px;
    border:1px solid #d7dde5;
    border-radius:0px;
    background:#fff;
    color:#17191d;
    box-shadow:0 2px 7px rgba(15,23,42,.06);
    font-size:14px;
    font-weight:800;
}

.bd-page-button{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:0 10px;
    text-decoration:none;
    touch-action:manipulation;
}

.bd-page-button>span[aria-hidden="true"]{
    font-size:24px;
    font-weight:500;
    line-height:1;
}

.bd-page-prev{
    color:#0b57d0;
    border-color:#9fc4ff;
    border-radius: 40px 0 0 40px;
}
.bd-page-next{
    color:#0b57d0;
    border-color:#9fc4ff;
    border-radius: 0 40px 40px 0;
}

.bd-page-button:active{
    transform:scale(.97);
}

.bd-page-button.is-disabled{
    color:#a4aab3;
    background:#f4f5f7;
    border-color:#e5e7eb;
    box-shadow:none;
    pointer-events:none;
}

.bd-page-select-wrap{
    position:relative;
    display:block;
    min-width:0;
    margin:0;
}

.bd-page-select{
    display:block;
    padding:0 36px 0 12px;
    appearance:none;
    -webkit-appearance:none;
    text-align:center;
    text-align-last:center;
    cursor:pointer;
}

.bd-page-select-wrap::after{
    content:"";
    position:absolute;
    top:50%;
    right:14px;
    width:0;
    height:0;
    border-left:5px solid transparent;
    border-right:5px solid transparent;
    border-top:6px solid #4b5563;
    transform:translateY(-25%);
    pointer-events:none;
}

.bd-page-info{
    margin:0 12px 20px;
    color:#69707a;
    font-size:13px;
    font-weight:600;
    line-height:1.3;
    text-align:center;
}

.bd-feed-empty{
    padding:22px 14px;
    color:#69707a;
    text-align:center;
}

.sr-only{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0,0,0,0)!important;
    white-space:nowrap!important;
    border:0!important;
}

@media(max-width:374px){
    .bd-pagination{
        grid-template-columns:44px minmax(0,1fr) 44px;
        gap:7px;
        margin-left:8px;
        margin-right:8px;
    }

    .bd-page-button{
        padding:0;
    }

    .bd-page-button span:not([aria-hidden="true"]){
        display:none;
    }

    .bd-page-select{
        font-size:13px;
    }
}