/* ═══════════════════════════════════════════
   NsoPlus – Main Stylesheet
   Bootstrap 5.3 + custom overrides
═══════════════════════════════════════════ */

/* ── BASE ── */
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f0f2f5; }

/* ── NAVBAR ── */
.nso-nav { height: 56px; box-shadow: 0 1px 5px rgba(0,0,0,.09); z-index: 1030; }
/* Remove focus/active outline from hamburger button */
.navbar-toggler:focus, .navbar-toggler:active { outline: none !important; box-shadow: none !important; }
.logo-svg { height: 40px; width: auto; }
.btn-fire { background: none; border: none; color: #ff6b35; font-size: 20px; cursor: pointer; padding: 2px 5px; line-height: 1; }
.btn-fire:hover { color: #e85d25; }
.btn-nso-login {
  background: #27ae60; color: #fff; border: none;
  padding: 7px 18px; border-radius: 6px;
  font-size: 13.5px; font-weight: 700; letter-spacing: .3px;
  transition: background .2s; cursor: pointer; white-space: nowrap;
}
.btn-nso-login:hover { background: #219a52; }

/* ── SIDEBAR ── */
#sidebar {
  width: 268px;
  display: flex; flex-direction: column; /* enables sticky header + scrollable body */
  overflow: hidden; /* hide outer overflow; inner sb-nav-body scrolls */
}
#sidebar::-webkit-scrollbar { width: 4px; }
#sidebar::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

/* Scrollable nav content area */
.sb-nav-body {
  flex: 1; overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* smooth momentum scroll on iOS */
}
.sb-nav-body::-webkit-scrollbar { width: 4px; }
.sb-nav-body::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 4px; }

/* Brand logo strip inside sidebar – only shown on desktop */
.sb-desktop-brand {
  height: 56px; display: none;
  align-items: center; padding: 0 14px;
}

@media (min-width: 992px) {
  /* Sidebar: full height from top, sits beside the navbar */
  #sidebar {
    position: fixed !important; top: 0 !important; left: 0 !important; bottom: 0 !important;
    transform: none !important; visibility: visible !important;
    background: #fff !important; z-index: 1031 !important;
    overflow: hidden !important;
    transition: none !important;
    border: none;
  }
  #sidebar .sb-mob-header  { display: none !important; }
  #sidebar .sb-desktop-brand { display: flex !important; }

  /* Navbar starts AFTER the sidebar on desktop */
  .nso-nav { left: 268px !important; }
}

.sb-mob-header {
  background: linear-gradient(135deg, #0d2e18 0%, #1a5c30 50%, #27ae60 100%);
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
  position: relative; overflow: hidden;
}
/* decorative blobs */
.sb-mob-header::before {
  content: ''; position: absolute;
  width: 90px; height: 90px; border-radius: 50%;
  background: rgba(255,255,255,.07);
  top: -30px; right: 30px; pointer-events: none;
}
.sb-mob-header::after {
  content: ''; position: absolute;
  width: 55px; height: 55px; border-radius: 50%;
  background: rgba(255,255,255,.05);
  bottom: -22px; right: 5px; pointer-events: none;
}
.sb-mob-logo-box {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
}
.sb-mob-close {
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s; position: relative; z-index: 1;
}
.sb-mob-close:focus, .sb-mob-close:active { outline: none !important; box-shadow: none !important; }
.sb-mob-close:hover { background: rgba(255,255,255,.28); }

.sb-top { padding: 12px;}
.btn-dl {
  width: 100%; background: #27ae60; color: #fff; border: none;
  padding: 11px; border-radius: 8px; cursor: pointer;
  font-size: 14px; font-weight: 700; letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 8px; transition: background .2s;
}
.btn-dl:hover { background: #219a52; }
.btn-comm {
  width: 100%; background: #fff; color: #444; border: 1px solid #ddd;
  padding: 9px; border-radius: 8px; cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: background .2s;
}
.btn-comm:hover { background: #f5f5f5; }

/* nav accordion */
.ns { border-bottom: 1px solid #f0f0f0; }
.ns-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; cursor: pointer;
  font-size: 13.5px; font-weight: 700; color: #333;
  user-select: none; transition: background .15s;
}
.ns-hd:hover { background: #fafafa; }
.ns-hd-l { display: flex; align-items: center; gap: 9px; }
.ns-ico {
  width: 24px; height: 24px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.ico-g    { background: #e8f5e9; color: #27ae60; }
.ico-o    { background: #fff3e0; color: #f57c00; }
.ico-b    { background: #e3f2fd; color: #1976d2; }
.ico-p    { background: #fce4ec; color: #c2185b; }
.ico-teal { background: #e0f2f1; color: #00897b; }
.ico-red  { background: #fce8e8; color: #e53935; }
.ns-arr { font-size: 10px; color: #bbb; transition: transform .25s; }
.ns-arr.open { transform: rotate(180deg); }
.ns-items { display: none; background: #fafafa; }
.ns-items.open { display: block; }
.ns-link {
  display: block; padding: 9px 14px 9px 46px;
  font-size: 13px; color: #555; text-decoration: none;
  border-left: 2px solid transparent; transition: all .15s;
}
.ns-link:hover  { background: #e8f5e9; color: #27ae60; border-left-color: #27ae60; }
.ns-link.ns-active {
  background: #e8f5e9; color: #27ae60;
  border-left-color: #27ae60; font-weight: 700;
}

/* ── MAIN LAYOUT ── */
.layout-wrap { margin-top: 56px; min-height: calc(100vh - 56px - 50px); }
@media (min-width: 992px) {
  /* Offset the whole content area by sidebar width – not just main-area */
  .layout-wrap { margin-left: 268px; }
}
.main-area { padding: 20px; }

/* Page header */
.g-dot { width: 11px; height: 11px; background: #27ae60; border-radius: 50%; flex-shrink: 0; }
.ph-title { font-size: 22px; font-weight: 800; color: #111; line-height: 1.1; }
.ph-sub   { font-size: 12px; color: #999; margin-top: 2px; }
.btn-play {
  background: #27ae60; color: #fff; border: none;
  padding: 8px 18px; border-radius: 6px;
  font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .2s; cursor: pointer; white-space: nowrap;
}
.btn-play:hover { background: #219a52; }

/* ── BREADCRUMB ── */
.nso-breadcrumb {
  font-size: 12.5px; background: transparent; padding: 0; margin: 0;
}
.nso-breadcrumb .breadcrumb-item a { color: #27ae60; text-decoration: none; }
.nso-breadcrumb .breadcrumb-item a:hover { text-decoration: underline; }
.nso-breadcrumb .breadcrumb-item.active { color: #888; }
.nso-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: #ccc; }

/* ── CONTENT PAGE HEADER ── */
.content-page-hdr {
  background: #fff; border-radius: 10px; padding: 16px 20px;
  margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.06);
  border-left: 4px solid #27ae60;
}
.content-page-hdr .page-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}

/* ── CAROUSEL ── */
.car-wrap {
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,.13);
  height: 416px; position: relative;
}
.car-inner { display: flex; height: 100%; transition: transform .5s ease; }
.car-slide { min-width: 100%; height: 100%; position: relative; overflow: hidden; }

.s1 { background: linear-gradient(150deg,#1a0e06 0%,#5a2d10 20%,#c47830 45%,#e8a840 60%,#c47030 75%,#6b3010 90%,#1a0e06 100%); }
.s2 { background: linear-gradient(140deg,#0a0820 0%,#1a1460 30%,#2a2898 55%,#1a6040 80%,#0a3028 100%); }
.s3 { background: linear-gradient(140deg,#0d2840 0%,#1a5080 35%,#2878b8 60%,#40a0d8 85%,#60c0e8 100%); }

.s1-inner { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 46px; gap: 20px; }
.s1-left  { flex: 0 0 auto; max-width: 350px; }
.s1-badge {
  display: inline-block;
  background: linear-gradient(90deg,#c9a227,#f0d060,#c9a227);
  color: #2a1500; font-size: 12.5px; font-weight: 800;
  padding: 3px 13px; border-radius: 12px; margin-bottom: 7px; letter-spacing: 1px;
}
.s1-title {
  font-size: 23px; font-weight: 900; color: #ffd700;
  text-shadow: 2px 2px 10px rgba(0,0,0,.6);
  line-height: 1.25; margin-bottom: 11px; font-style: italic;
}
.s1-box {
  background: rgba(255,240,180,.92); border: 2px solid #c9a227;
  border-radius: 8px; padding: 10px 13px; margin-bottom: 9px;
}
.s1-box p  { font-size: 11.5px; color: #3a2000; font-weight: 600; margin-bottom: 5px; line-height: 1.5; }
.s1-box ul { padding-left: 15px; margin: 0; }
.s1-box li { font-size: 11.5px; color: #3a2000; margin-bottom: 3px; line-height: 1.5; }
.s1-thanks { font-size: 11.5px; color: #ffe0a0; text-shadow: 1px 1px 4px rgba(0,0,0,.5); }
.s1-bg-mtn { position: absolute; bottom: 0; left: 0; right: 0; width: 100%; height: 55%; opacity: .25; pointer-events: none; }
.s1-sun    { position: absolute; top: 18px; right: 70px; width: 110px; height: 110px; background: radial-gradient(circle,rgba(255,210,80,.65),transparent 70%); border-radius: 50%; pointer-events: none; }
.ninja-wrap { position: absolute; right: 48px; bottom: 0; width: 185px; height: 275px; display: flex; align-items: flex-end; justify-content: center; }

.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.35); color: #fff; border: none;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  font-size: 12px; display: flex; align-items: center; justify-content: center;
  z-index: 10; transition: background .2s;
}
.car-btn:hover { background: rgba(0,0,0,.6); }
.car-btn.prev { left: 12px; }
.car-btn.next { right: 12px; }
.car-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.cdot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; transition: background .2s; }
.cdot.active { background: #fff; }
.sc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; text-align: center; }

/* ── RANKING PANEL (sidebar right of carousel) ── */
.rank-panel {
  background: #fff; border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,.1);
  height: 416px; overflow: hidden; display: flex; flex-direction: column;
}
.rank-head {
  background: linear-gradient(135deg, #1a3a1a, #27ae60);
  padding: 10px 13px;
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.rank-head-title { color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.rtabs { display: flex; gap: 3px; }
.rtab {
  background: rgba(255,255,255,.15); color: rgba(255,255,255,.75);
  border: none; padding: 3px 9px; border-radius: 5px;
  font-size: 10.5px; font-weight: 700; cursor: pointer; transition: all .2s;
}
.rtab.active { background: #fff; color: #27ae60; }
.rtab:hover:not(.active) { background: rgba(255,255,255,.28); color: #fff; }
.rank-body { flex: 1; overflow-y: auto; }
.rank-body::-webkit-scrollbar { width: 3px; }
.rank-body::-webkit-scrollbar-thumb { background: #ddd; }
.rk-row { display: flex; align-items: center; padding: 6px 12px; border-bottom: 1px solid #f3f3f3; cursor: pointer; transition: background .15s; }
.rk-row:hover { background: #f5fff7; }
.rk-num { width: 22px; text-align: center; flex-shrink: 0; font-size: 12px; font-weight: 800; }
.rn1 { color: #f0a500; font-size: 16px; line-height: 1; }
.rn2 { color: #8e8e8e; font-size: 14px; line-height: 1; }
.rn3 { color: #c07030; font-size: 14px; line-height: 1; }
.rnn { color: #ccc; }
.rk-av {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  margin: 0 8px; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff;
}
.av1 { background: linear-gradient(135deg,#e09800,#ffd040); }
.av2 { background: linear-gradient(135deg,#6e6e6e,#b0b0b0); }
.av3 { background: linear-gradient(135deg,#a05018,#d8803a); }
.avA { background: linear-gradient(135deg,#1b8040,#34c870); }
.avB { background: linear-gradient(135deg,#1050a0,#3a80d8); }
.avC { background: linear-gradient(135deg,#780080,#c040d8); }
.rk-info  { flex: 1; min-width: 0; }
.rk-name  { font-size: 12px; font-weight: 700; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-srv   { font-size: 10px; color: #aaa; }
.rk-score { font-size: 11.5px; font-weight: 800; color: #27ae60; flex-shrink: 0; white-space: nowrap; }
.rank-updated { text-align: center; padding: 6px; font-size: 10px; color: #bbb; border-top: 1px solid #f0f0f0; }

/* ── FULL RANKING TABLE (xep-hang pages) ── */
.rank-full-wrap {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.rank-full-head {
  background: linear-gradient(135deg, #1a3a1a, #27ae60);
  padding: 14px 20px; display: flex; align-items: center; justify-content: space-between;
}
.rank-full-head h2 { color: #fff; font-size: 16px; font-weight: 800; margin: 0; }
.rank-full-table { width: 100%; }
.rank-full-table thead th {
  background: #f8f9fa; font-size: 11.5px; font-weight: 700; color: #666;
  padding: 9px 12px; border-bottom: 2px solid #e8e8e8; text-transform: uppercase; letter-spacing: .4px;
}
.rank-full-table tbody td { padding: 9px 12px; border-bottom: 1px solid #f3f3f3; font-size: 13px; vertical-align: middle; }
.rank-full-table tbody tr:hover { background: #f5fff7; }
.rank-full-table .rk-num-lg { font-size: 14px; font-weight: 800; text-align: center; }
.rank-full-table .rk-av-lg {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
}
.rank-season-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.rank-season-tab {
  background: rgba(255,255,255,.2); color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.3); padding: 4px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.rank-season-tab.active, .rank-season-tab:hover { background: #fff; color: #27ae60; border-color: #fff; }

/* ── NEWS / ARTICLE CARDS ── */
.sec-hd h2 { font-size: 20px; font-weight: 800; color: #111; }
.sec-sub   { font-size: 12.5px; color: #999; }
.nc {
  background: #fff; border-radius: 10px; overflow: hidden; border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s; cursor: pointer; height: 100%;
}
.nc:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.nt { width: 100%; height: 182px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.nt-1 { background: linear-gradient(145deg,#b71c1c 0%,#e53935 40%,#f57c00 75%,#ff8f00 100%); }
.nt-2 { background: linear-gradient(145deg,#0d2244 0%,#1565c0 40%,#d4a44c 75%,#c9902a 100%); }
.nt-3 { background: linear-gradient(145deg,#0d47a1 0%,#1976d2 40%,#42a5f5 75%,#90caf9 100%); }
.nt-4 { background: linear-gradient(145deg,#880e0e 0%,#c62828 40%,#ef5350 75%,#ff8a65 100%); }
.nt-5 { background: linear-gradient(145deg,#3e2318 0%,#6d4c41 40%,#a1887f 75%,#d7ccc8 100%); }
.nt-6 { background: linear-gradient(145deg,#0d1b4a 0%,#1565c0 35%,#1976d2 65%,#1e88e5 100%); }
.nt-g { background: linear-gradient(145deg,#1a3a0a 0%,#2d7a10 40%,#4caf50 75%,#a5d6a7 100%); }
.nt-p { background: linear-gradient(145deg,#4a0060 0%,#7b1fa2 40%,#ce93d8 75%,#f3e5f5 100%); }
.nt-y { background: linear-gradient(145deg,#e65100 0%,#f57c00 40%,#ffcc02 75%,#fff9c4 100%); }
.nt-b { background: linear-gradient(145deg,#01579b 0%,#0288d1 40%,#4fc3f7 75%,#e1f5fe 100%); }
.nt-r { background: linear-gradient(145deg,#880e4f 0%,#c2185b 40%,#f06292 75%,#fce4ec 100%); }
.nt-o { background: linear-gradient(145deg,#bf360c 0%,#e64a19 40%,#ff7043 75%,#fbe9e7 100%); }
.ntc { position: absolute; border-radius: 50%; opacity: .14; pointer-events: none; background: #fff; }
.ntc1 { width: 70px; height: 70px; top: -18px; right: -18px; }
.ntc2 { width: 50px; height: 50px; bottom: 5px; left: -12px; }
.ntc3 { width: 35px; height: 35px; top: 25px; left: 16px; }
.nt-emoji   { font-size: 40px; position: relative; z-index: 1; filter: drop-shadow(2px 3px 5px rgba(0,0,0,.45)); }
.nt-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 5px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  color: #fff; font-size: 10px; font-weight: 700; text-align: center;
  text-transform: uppercase; letter-spacing: .4px;
}
.nb       { padding: 10px 11px; }
.n-title  { font-size: 12.5px; font-weight: 700; color: #111; margin-bottom: 6px; line-height: 1.4; text-transform: uppercase; }
.n-desc   { font-size: 11.5px; color: #888; margin-bottom: 8px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.n-foot   { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: #bbb; }
.n-date   { display: flex; align-items: center; gap: 3px; }
.b-hot { background: #ff5722; color: #fff; font-size: 10.5px; padding: 1px 7px; border-radius: 4px; font-weight: 700; }
.b-ev  { background: #27ae60; color: #fff; font-size: 10.5px; padding: 1px 7px; border-radius: 4px; font-weight: 700; }

/* Article filter tabs */
.article-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.af-tab {
  background: #fff; color: #666; border: 1px solid #ddd;
  padding: 5px 16px; border-radius: 20px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: all .2s;
}
.af-tab:hover, .af-tab.active { background: #27ae60; color: #fff; border-color: #27ae60; }

/* ── LOAD MORE ── */
.btn-more {
  background: #fff; color: #555; border: 1px solid #ddd;
  padding: 9px 26px; border-radius: 7px; cursor: pointer; font-size: 13px;
  display: inline-flex; align-items: center; gap: 7px; transition: all .2s;
}
.btn-more:hover { background: #f0f0f0; border-color: #bbb; }

/* ── NSO FORM ELEMENTS ── */
.nso-panel {
  background: #fff; border-radius: 12px; padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08); margin-bottom: 20px;
}
.nso-panel-title {
  font-size: 15px; font-weight: 800; color: #1a1a1a;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid #e8f5e9;
  display: flex; align-items: center; gap: 8px;
}
.nso-panel-title i { color: #27ae60; }
.nso-input {
  width: 100%; padding: 10px 14px; border: 1.5px solid #ddd; border-radius: 8px;
  font-size: 13.5px; color: #333; outline: none; transition: border .2s;
}
.nso-input:focus { border-color: #27ae60; box-shadow: 0 0 0 3px rgba(39,174,96,.12); }
.nso-select {
  width: 100%; padding: 10px 14px; border: 1.5px solid #ddd; border-radius: 8px;
  font-size: 13.5px; color: #333; outline: none; background: #fff;
  transition: border .2s; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
}
.nso-select:focus { border-color: #27ae60; box-shadow: 0 0 0 3px rgba(39,174,96,.12); }
.nso-label { font-size: 13px; font-weight: 600; color: #444; margin-bottom: 6px; display: block; }
.nso-btn {
  background: #27ae60; color: #fff; border: none;
  padding: 11px 28px; border-radius: 8px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background .2s; display: inline-flex; align-items: center; gap: 8px;
}
.nso-btn:hover { background: #219a52; }
.nso-btn-outline {
  background: #fff; color: #27ae60; border: 1.5px solid #27ae60;
  padding: 10px 22px; border-radius: 8px; font-size: 13.5px; font-weight: 700;
  cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 7px;
}
.nso-btn-outline:hover { background: #27ae60; color: #fff; }

/* Package cards */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pkg-card {
  border: 2px solid #e8e8e8; border-radius: 10px; padding: 14px 10px;
  text-align: center; cursor: pointer; transition: all .2s; position: relative;
}
.pkg-card:hover { border-color: #27ae60; box-shadow: 0 4px 14px rgba(39,174,96,.15); }
.pkg-card.selected { border-color: #27ae60; background: #e8f5e9; }
.pkg-card.popular::after {
  content: 'Phổ biến'; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: #ff5722; color: #fff; font-size: 9.5px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px; white-space: nowrap;
}
.pkg-coin { font-size: 22px; margin-bottom: 4px; }
.pkg-amount { font-size: 16px; font-weight: 800; color: #27ae60; margin-bottom: 2px; }
.pkg-price { font-size: 12px; color: #888; }
.pkg-bonus { font-size: 10.5px; color: #ff5722; font-weight: 700; }

/* Payment methods */
.pay-method-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.pay-card {
  border: 2px solid #e8e8e8; border-radius: 8px; padding: 12px;
  text-align: center; cursor: pointer; transition: all .2s;
}
.pay-card:hover  { border-color: #27ae60; }
.pay-card.active { border-color: #27ae60; background: #f0fdf4; }
.pay-card img, .pay-card .pay-icon { font-size: 28px; display: block; margin: 0 auto 6px; }
.pay-card span { font-size: 11.5px; font-weight: 600; color: #444; }

/* ── EVENT PAGES ── */
.event-banner {
  border-radius: 12px; overflow: hidden; margin-bottom: 20px;
  height: 160px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.event-banner-content { position: relative; z-index: 2; text-align: center; padding: 20px; }
.event-timer {
  display: flex; gap: 12px; justify-content: center; margin-top: 10px;
}
.event-timer-block {
  background: rgba(0,0,0,.4); border-radius: 8px; padding: 8px 14px; text-align: center; min-width: 60px;
}
.event-timer-num { font-size: 22px; font-weight: 900; color: #ffd700; line-height: 1; }
.event-timer-lbl { font-size: 10px; color: rgba(255,255,255,.7); margin-top: 2px; }

/* Calendar login */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-day {
  border: 2px solid #e8e8e8; border-radius: 8px; padding: 10px 6px;
  text-align: center; position: relative; cursor: pointer; transition: all .2s;
}
.cal-day:hover { border-color: #27ae60; }
.cal-day.claimed { background: #e8f5e9; border-color: #27ae60; }
.cal-day.claimed::after {
  content: '✓'; position: absolute; top: 4px; right: 6px;
  color: #27ae60; font-size: 11px; font-weight: 700;
}
.cal-day.today { border-color: #ff5722; box-shadow: 0 0 0 2px rgba(255,87,34,.2); }
.cal-day .day-num { font-size: 11px; color: #999; margin-bottom: 4px; }
.cal-day .day-reward { font-size: 18px; line-height: 1; margin-bottom: 3px; }
.cal-day .day-label { font-size: 9.5px; color: #555; font-weight: 600; }

/* Progress accumulation */
.acc-progress-wrap { margin-bottom: 20px; }
.acc-bar-track { height: 14px; background: #e8e8e8; border-radius: 7px; overflow: hidden; position: relative; }
.acc-bar-fill { height: 100%; border-radius: 7px; background: linear-gradient(90deg, #27ae60, #52c27a); transition: width .6s ease; }
.acc-milestone { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.acc-ms {
  flex: 1; min-width: 100px; border: 2px solid #e8e8e8; border-radius: 10px;
  padding: 12px 10px; text-align: center; transition: all .2s;
}
.acc-ms.reached { border-color: #27ae60; background: #e8f5e9; }
.acc-ms.reached .ms-icon { opacity: 1; }
.acc-ms .ms-icon { font-size: 24px; opacity: .5; margin-bottom: 4px; }
.acc-ms .ms-val { font-size: 13px; font-weight: 800; color: #27ae60; margin-bottom: 2px; }
.acc-ms .ms-reward { font-size: 11px; color: #555; }

/* ── GIFTCODE ── */
.giftcode-input-wrap {
  display: flex; gap: 10px;
}
.giftcode-input-wrap input {
  flex: 1; padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
  font-size: 15px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  outline: none; transition: border .2s;
}
.giftcode-input-wrap input:focus { border-color: #27ae60; }
.giftcode-history table { width: 100%; }
.giftcode-history th { font-size: 12px; color: #888; font-weight: 600; padding: 8px 12px; border-bottom: 1px solid #eee; }
.giftcode-history td { font-size: 13px; padding: 10px 12px; border-bottom: 1px solid #f5f5f5; }
.gcode-status-ok  { color: #27ae60; font-weight: 700; }
.gcode-status-err { color: #e53935; font-weight: 700; }

/* ── LUCKY WHEEL ── */
.wheel-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.wheel-canvas {
  width: 260px; height: 260px; border-radius: 50%;
  background: conic-gradient(
    #ff5722 0deg 45deg, #e91e63 45deg 90deg, #9c27b0 90deg 135deg,
    #3f51b5 135deg 180deg, #00bcd4 180deg 225deg, #4caf50 225deg 270deg,
    #ff9800 270deg 315deg, #f44336 315deg 360deg
  );
  box-shadow: 0 8px 30px rgba(0,0,0,.2), inset 0 0 0 8px rgba(255,255,255,.2);
  transition: transform 3s cubic-bezier(.17,.67,.12,.99);
  position: relative;
}
.wheel-pointer {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 14px solid transparent; border-right: 14px solid transparent;
  border-top: 28px solid #ffd700;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
  z-index: 10;
}
.wheel-center {
  position: absolute; width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,.2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #333;
  transition: background .2s;
}
.wheel-rewards { list-style: none; padding: 0; margin: 0; }
.wheel-rewards li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px;
}
.wheel-rewards li .wr-dot {
  width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0;
}
.wr-chance { margin-left: auto; font-size: 11px; color: #aaa; }

/* ── FOOTER ── */
.site-ftr {
  padding: 14px 20px; background: #fff; border-top: 1px solid #e8e8e8;
  font-size: 12.5px; color: #aaa;
  display: flex; justify-content: space-between; align-items: center;
}
.site-ftr a      { color: #27ae60; text-decoration: none; }
.site-ftr strong { color: #27ae60; }
@media (min-width: 992px) { .site-ftr { margin-left: 268px !important; } }

/* ── RESPONSIVE ── */
@media (max-width: 767.98px) {
  .main-area  { padding: 12px; }
  .car-wrap   { height: 267px; }
  .rank-panel { height: 338px; }
  .ninja-wrap { display: none; }
  .s1-inner   { padding: 14px 16px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; }
  .s1-left    { max-width: 100%; }
  .s1-title   { font-size: 16px; margin-bottom: 8px; }
  .s1-badge   { font-size: 11px; padding: 2px 9px; }
  .s1-box     { padding: 7px 10px; }
  .s1-box p   { font-size: 11px; }
  .s1-box li  { font-size: 10.5px; }
  .s1-thanks  { font-size: 10.5px; }
  .sc { padding: 14px 16px; }
  .sc [style*="font-size:34px"] { font-size: 20px !important; }
  .sc [style*="font-size:32px"] { font-size: 20px !important; }
  .sc [style*="font-size:18px"] { font-size: 13px !important; margin-bottom: 10px !important; }
  .sc [style*="font-size:16px"] { font-size: 13px !important; margin-bottom: 10px !important; }
  .sc [style*="font-size:13.5px"] { font-size: 11.5px !important; padding: 9px 14px !important; }
  .sc [style*="max-width:420px"], .sc [style*="max-width:440px"] { max-width: 100% !important; }
  .site-ftr { flex-direction: column; gap: 5px; text-align: center; }
  .ph-title { font-size: 18px; }
  .nso-panel { padding: 16px; }
  .cal-grid { grid-template-columns: repeat(5, 1fr); }
  .pkg-grid { grid-template-columns: repeat(2, 1fr); }
  .giftcode-input-wrap { flex-direction: column; }
  .nt { height: 160px; }
}
@media (max-width: 575.98px) {
  .car-wrap   { height: 228px; }
  .rank-panel { height: 299px; }
  .s1-title   { font-size: 14px; }
  .s1-box p   { display: none; }
  .cal-grid   { grid-template-columns: repeat(4, 1fr); }
  .nt { height: 140px; }
}
