/* =========================
   RESET + BASE
========================= */
*,
*::before,
*::after{
  box-sizing:border-box;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}

html{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}

body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial;
  background:#f4f5f7;
  color:#111;
  padding-bottom:env(safe-area-inset-bottom);
}

a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}

/* =========================
   LAYOUT WRAP
========================= */
.wrap{max-width:100%;margin:0 auto;padding:12px}

/* =========================
   TOPBAR
========================= */
.topbar{
  background:#fff;
  border:1px solid #eee;
  border-radius:16px;
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  box-shadow:0 6px 18px rgba(0,0,0,.05)
}

.brand{display:flex;align-items:center;gap:10px;min-width:0}
.brand img{height:28px}
.brand .text{font-weight:900;letter-spacing:.5px;font-size:18px}

.brand-link{
  display:inline-flex;
  align-items:center;
  gap:10px
}

.brand-247{color:#e11d48;font-weight:900}

/* =========================
   BUTTONS / ICONS
========================= */
.iconbtn{
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid #eee;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  cursor:pointer;
  font-weight:900;
  user-select:none
}

.iconbtn:active{transform:scale(.95)}

.right{display:flex;align-items:center;gap:10px}

.noti-badge{
  position:absolute;
  top:-4px;
  right:-6px;
  background:#ef4444;
  color:#fff;
  font-size:11px;
  min-width:18px;
  height:18px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700
}

.btn-auth{
  padding:8px 14px;
  border-radius:999px;
  font-weight:800;
  font-size:14px;
  border:1px solid #eee;
  background:#fff
}

.btn-register{
  background:#e11d48;
  color:#fff;
  border-color:#e11d48
}

/* =========================
   DROPDOWN MENU
========================= */
.menu{position:relative;display:flex;gap:8px}

.dropdown{
  position:absolute;
  top:48px;
  right:0;
  width:200px;
  background:#fff;
  border:1px solid #eee;
  border-radius:14px;
  box-shadow:0 12px 30px rgba(0,0,0,.12);
  overflow:hidden;
  display:none;
  z-index:50
}

.dropdown a{
  display:block;
  padding:12px;
  font-weight:800;
  border-top:1px solid #f2f2f2
}

.dropdown a:first-child{border-top:none}
.dropdown a:hover{background:#fafafa}
.dropdown a:active{background:#f3f3f3}

/* =========================
   BANNER
========================= */
.banner{
  margin-top:10px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid #eee;
  background:#fff;
  box-shadow:0 8px 22px rgba(0,0,0,.06)
}

/* =========================
   HERO
========================= */
.ck247-hero{
  margin:12px 0 16px;
  padding:18px 16px;
  border-radius:22px;
  background:linear-gradient(135deg,#ff4c92,#ff7a45);
  box-shadow:0 14px 32px rgba(255,77,141,.3);
  color:#fff;
  display:flex;
  justify-content:space-between;
  gap:14px;
  position:relative;
  overflow:hidden
}

.ck247-hero:before{
  content:"";
  position:absolute;
  right:-60px;
  top:-60px;
  width:220px;
  height:220px;
  border-radius:999px;
  background:rgba(255,255,255,.12)
}

.ck247-hero__left{width:60%}
.ck247-hero__title{font-size:22px;font-weight:900}
.ck247-hero__subtitle{font-size:34px;font-weight:900;line-height:1.05}
.ck247-hero__desc{font-size:14.5px;opacity:.95;margin:10px 0 14px}

.ck247-hero__btn{
  display:inline-block;
  background:#fff;
  color:#ff4c92;
  font-weight:900;
  font-size:14px;
  padding:10px 16px;
  border-radius:14px;
  box-shadow:0 8px 18px rgba(0,0,0,.18)
}

.ck247-hero__right{width:40%;display:flex;justify-content:flex-end}

.ck247-hero__svg{
  width:210px;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.18))
}

@supports not (filter:drop-shadow(0 0 0 #000)){
  .ck247-hero__svg{box-shadow:0 10px 18px rgba(0,0,0,.18)}
}

@media(max-width:480px){
  .ck247-hero__subtitle{font-size:26px}
  .ck247-hero__svg{width:170px}
}

/* =========================
   GRID + CARD
========================= */
h2{margin:16px 4px 10px;font-size:26px}

.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px
}

@supports not (display:grid){
  .grid{display:flex;flex-wrap:wrap}
  .grid .card{width:calc(50% - 10px)}
}

.card{
  background:#fff;
  border-radius:16px;
  padding:12px;
  min-height:82px;
  border:1px solid #eee;
  box-shadow:0 6px 16px rgba(0,0,0,.06);
  position:relative
}

.card:active{transform:scale(.99)}

.left{display:flex;gap:10px;align-items:center}
.logoBox{
  width:44px;
  height:44px;
  border-radius:14px;
  background:#f5f6f8;
  display:flex;
  align-items:center;
  justify-content:center
}

.logoBox img{width:28px;height:28px;object-fit:contain}

.title{font-weight:900;font-size:17px}
.rightInfo{text-align:right}
.pct{margin-top:6px;font-weight:900;color:#e91e63}
.chev{position:absolute;right:10px;bottom:8px;color:#bbb}

/* =========================
   ZALO – FINAL & CLEAN
========================= */

.zaloWrap{
  margin-top:12px;
  background:linear-gradient(135deg,#ffe08a,#ffd58f,#f7b7c7);
  border-radius:18px;
  padding:14px;
  box-shadow:0 10px 26px rgba(0,0,0,.08);
}

.zaloTitle{
  text-align:center;
  font-weight:900;
  margin-bottom:10px;
}

.zbtn{
  width:100%;
  min-height:48px;
  background:#1b74ff;
  color:#fff;
  border:none;
  border-radius:14px;
  padding:12px;
  font-weight:900;

  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}

/* 🔒 KHÓA CỨNG ICON – QUYẾT ĐỊNH */
.zbtn img.zalo-icon{
  width:22px !important;
  height:22px !important;
  max-width:22px !important;
  max-height:22px !important;
  flex:0 0 22px !important;
  object-fit:contain;
  display:block;
}
/* ===== DESKTOP FIX – FULL WIDTH ===== */
@media (min-width:1024px){
  body{
    display:block;
  }

  .wrap{
    max-width:1200px;
    margin:0 auto;
    padding:24px;
  }
}
