body {
  margin: 0;
  color: #1a1a2e;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f0f2f7;
}

/* ── TICKER ── */
.ticker-wrap {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.07);
  display: flex;
  align-items: center;
  height: 34px;
  overflow: hidden;
}
.ticker-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px 0 16px;
  font-size: 11px;
  font-weight: 700;
  color: #d97706;
  border-right: 1px solid rgba(0,0,0,.07);
  height: 100%;
  white-space: nowrap;
  background: rgba(245,158,11,.06);
}
.ticker-label i { font-size: 12px; }
.ticker-track-outer { flex: 1; overflow: hidden; position: relative; height: 100%; }
.ticker-track {
  display: inline-flex;
  align-items: center;
  height: 100%;
  animation: ticker 65s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #4b5563;
  padding: 0 20px;
}
.ticker-item i { color: #f59e0b; font-size: 11px; }
.ticker-item b { color: #1a1a2e; font-weight: 700; }
.ticker-dot { color: #d1d5db; padding: 0 4px; font-size: 10px; }
.ticker-time { color: #9ca3af; font-size: 11px; }

/* ── HERO ── */
.hero {
  text-align: left;
  padding: 52px 20px 48px;
  position: relative;
  overflow: hidden;
  background-color: #f0f2f7;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Cline x1='18' y1='12' x2='18' y2='24' stroke='%23c8d0dc' stroke-width='1'/%3E%3Cline x1='12' y1='18' x2='24' y2='18' stroke='%23c8d0dc' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.hero-bg-orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .2; pointer-events: none; z-index: 0; }
.hero-bg-orb.o1 { width: 500px; height: 500px; top: -150px; left: 50%; transform: translateX(-50%); background: #f59e0b; }
.hero-bg-orb.o2 { width: 300px; height: 300px; bottom: -80px; right: 5%; background: #f97316; }
.hero-inner { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; display: flex; align-items: center; gap: 48px; }
.hero-left { flex: 1; min-width: 0; text-align: left; }
/* Top buyers panel */
.hero-top-buyers { width: 340px; flex-shrink: 0; background: rgba(255,255,255,.78); backdrop-filter: blur(14px); border: 1px solid rgba(245,158,11,.25); border-radius: 18px; padding: 20px 22px; box-shadow: 0 6px 30px rgba(0,0,0,.1); }
.htb-title { font-size: 14px; font-weight: 800; color: #1a1a2e; margin-bottom: 14px; display: flex; align-items: center; }
.htb-empty { font-size: 12px; color: #9ca3af; text-align: center; padding: 16px 0; }
.htb-list { display: flex; flex-direction: column; gap: 10px; }
.htb-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(245,158,11,.07); transition: background .15s; }
.htb-row:hover { background: rgba(245,158,11,.16); }
.htb-rank { font-size: 18px; line-height: 1; flex-shrink: 0; width: 28px; text-align: center; }
.htb-name { flex: 1; font-size: 13px; font-weight: 700; color: #1a1a2e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: monospace; }
.htb-spent { font-size: 12px; font-weight: 700; color: #d97706; white-space: nowrap; flex-shrink: 0; }
@media (max-width: 780px) {
  .hero-inner { flex-direction: column; gap: 24px; }
  .hero-left { text-align: center; }
  .hero-top-buyers { width: 100%; max-width: 420px; }
}
.hero-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 99px; border: 1px solid rgba(245,158,11,.3); background: rgba(245,158,11,.1); font-size: 12px; font-weight: 600; color: #d97706; margin-bottom: 18px; letter-spacing: .4px; }
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #f59e0b; animation: bdot 2s ease-in-out infinite; }
@keyframes bdot { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero-h1 { font-size: clamp(24px,5vw,44px); font-weight: 900; line-height: 1.1; letter-spacing: -1px; margin: 0 0 8px; color: #1a1a2e; }
.hero-h1 .grad { background: linear-gradient(90deg,#f59e0b,#f97316); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 13px; color: #6b7280; margin: 0 0 24px; line-height: 1.6; }
.hero-auth {
  background: #fff;
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  max-width: 360px;
  margin: 0 auto;
}
.hero-auth-title { font-size: 14px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.hero-auth-sub   { font-size: 12px; color: #6b7280; margin-bottom: 14px; }
.hero-auth-row { display: flex; gap: 8px; }
.hero-auth-row input {
  flex: 1; height: 40px; padding: 0 12px;
  border-radius: 9px; border: 1px solid rgba(0,0,0,.1);
  background: #f5f6fa; font-size: 13px; color: #1a1a2e; outline: none;
  transition: border-color .15s;
}
.hero-auth-row input:focus { border-color: #f59e0b; }
.hero-auth-row input::placeholder { color: #aaa; }
.hero-auth-btn {
  height: 40px; padding: 0 16px; border-radius: 9px; border: none;
  background: linear-gradient(90deg,#f59e0b,#f97316); color: #fff;
  font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
  display: flex; align-items: center; gap: 6px; transition: opacity .15s;
}
.hero-auth-btn:hover    { opacity: .88; }
.hero-auth-btn:disabled { opacity: .5; cursor: not-allowed; }
.hero-auth-err { font-size: 12px; color: #ef4444; margin-top: 8px; min-height: 16px; }
.hero-confirm-card {
  display: flex; align-items: center; gap: 12px;
  background: #f5f6fa; border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 14px;
}
.hero-confirm-card img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.hero-confirm-card .dn { font-weight: 700; font-size: 14px; color: #1a1a2e; }
.hero-confirm-card .un { font-size: 11px; color: #6b7280; margin-top: 2px; }
.hero-confirm-btn {
  width: 100%; height: 40px; border-radius: 9px; border: none;
  background: linear-gradient(90deg,#f59e0b,#f97316); color: #fff;
  font-size: 13px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: opacity .15s; margin-bottom: 8px;
}
.hero-confirm-btn:hover { opacity: .88; }
.hero-back-btn {
  width: 100%; height: 34px; border-radius: 8px;
  border: 1px solid rgba(0,0,0,.1); background: none;
  color: #6b7280; font-size: 12px; cursor: pointer; transition: background .15s;
}
.hero-back-btn:hover { background: rgba(0,0,0,.04); color: #1a1a2e; }
.hero-spin { display:inline-block; width:14px; height:14px; border:2px solid rgba(255,255,255,.3); border-top-color:#fff; border-radius:50%; animation:sp .6s linear infinite; }
@keyframes sp { to{transform:rotate(360deg)} }

/* ── SHOP ── */
.shop-wrap { max-width: 1100px; margin: 0 auto; padding: 28px 16px 72px; }

/* Category section */
.cat-section { margin-bottom: 36px; }

/* Header hàng duy nhất: bar + title + count + search + sort + arrows */
.cat-section-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: nowrap;
}
.cat-section-bar {
  width: 3px; height: 20px; border-radius: 2px;
  background: linear-gradient(180deg,#f59e0b,#f97316);
  flex-shrink: 0;
}
.cat-section-title {
  font-size: 15px; font-weight: 800; color: #1a1a2e;
  flex-shrink: 0;
}
.cat-section-count {
  font-size: 12px; color: #9ca3af; font-weight: 500;
  white-space: nowrap; flex-shrink: 0;
}

/* ── Search inline (luôn hiển thị, cố định) ── */
.cat-search-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}
.cat-search-wrap .search-icon {
  position: absolute;
  left: 10px; top: 50%; transform: translateY(-50%);
  color: #f59e0b; font-size: 11px; pointer-events: none;
  z-index: 1;
}
.cat-search-input {
  width: 100%;
  height: 32px;
  padding: 0 32px 0 30px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.1);
  background: #fff;
  font-size: 12px;
  color: #1a1a2e;
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
.cat-search-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,.12);
}
.cat-search-input::placeholder { color: #bbb; }
.cat-search-clear-btn {
  position: absolute;
  right: 7px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px;
  border: none; background: none;
  color: #bbb; font-size: 11px; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  border-radius: 50%; transition: color .15s, background .15s;
  padding: 0;
}
.cat-search-clear-btn:hover { color: #6b7280; background: #f3f4f6; }
.cat-search-clear-btn.visible { display: flex; }

/* ── Sort dropdown ── */
.cat-sort-wrap {
  position: relative;
  flex-shrink: 0;
}
.cat-sort-btn {
  height: 32px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.1);
  background: #fff;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s;
  user-select: none;
}
.cat-sort-btn:hover,
.cat-sort-btn.open {
  border-color: rgba(245,158,11,.4);
  background: rgba(245,158,11,.06);
  color: #d97706;
}
.cat-sort-btn .sort-label {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media(max-width:480px) { .cat-sort-btn .sort-label { display: none; } }
.cat-sort-btn i.fa-chevron-down {
  font-size: 9px;
  transition: transform .2s;
}
.cat-sort-btn.open i.fa-chevron-down { transform: rotate(180deg); }

/* Dropdown menu */
.cat-sort-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.13);
  padding: 6px;
  z-index: 200;
  opacity: 0;
  transform: translateY(-6px) scale(.97);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.cat-sort-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.cat-sort-menu-label {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: .6px;
  padding: 4px 10px 6px;
  text-transform: uppercase;
}
.cat-sort-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  transition: background .13s;
}
.cat-sort-item:hover { background: #f9fafb; }
.cat-sort-item.active {
  background: rgba(245,158,11,.08);
  color: #d97706;
  font-weight: 700;
}
.cat-sort-item i.sort-icon {
  width: 16px; text-align: center;
  font-size: 12px; color: #9ca3af; flex-shrink: 0;
}
.cat-sort-item.active i.sort-icon { color: #f59e0b; }
.cat-sort-item .sort-check {
  margin-left: auto;
  font-size: 11px; color: #f59e0b;
  display: none;
}
.cat-sort-item.active .sort-check { display: block; }
.cat-sort-divider { height: 1px; background: rgba(0,0,0,.06); margin: 4px 0; }

/* No result */
.cat-search-no-result {
  text-align: center; padding: 28px 0;
  color: #9ca3af; font-size: 13px;
}

/* Row arrows */
.row-arrows { display: flex; gap: 4px; flex-shrink: 0; }
.row-btn {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(0,0,0,.1);
  background: #fff; color: #6b7280; font-size: 11px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s, border-color .15s, opacity .15s;
  flex-shrink: 0;
}
.row-btn:hover { background: rgba(245,158,11,.08); color: #d97706; border-color: rgba(245,158,11,.3); }
.row-btn.disabled { opacity: .3; cursor: default; pointer-events: none; }

/* ── Row mode ── */
.prod-row {
  display: flex; gap: 14px; overflow-x: auto;
  scrollbar-width: none; padding-bottom: 6px; scroll-behavior: smooth;
}
.prod-row::-webkit-scrollbar { display: none; }
.prod-row .prod-card { flex-shrink: 0; width: 200px; }
@media(min-width:480px) { .prod-row .prod-card { width: 220px; } }
@media(min-width:769px) { .prod-row .prod-card { width: 240px; } }

/* ── Grid mode ── */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media(max-width:900px)  { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media(max-width:600px)  { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
.prod-grid .prod-card { width: 100%; }

.prod-card-items {
  font-size: 11px; font-weight: 600; color: #059669;
  background: rgba(16,185,129,.08); border-radius: 6px;
  padding: 2px 7px; display: inline-block; margin-top: 4px;
}

/* Product card */
.prod-card {
  background: #fff; border-radius: 14px; border: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 2px 8px rgba(0,0,0,.05); overflow: hidden;
  text-decoration: none; color: inherit; display: flex;
  flex-direction: column; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.prod-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(245,158,11,.15); border-color: rgba(245,158,11,.3); }
.prod-card:active { transform: scale(.97); }
.prod-card-img {
  width: 100%; aspect-ratio: 1/1;
  background: linear-gradient(135deg,#f5f6fa,#e9ecf0);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; overflow: hidden; position: relative;
}
.prod-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prod-card-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.prod-card-name {
  font-size: 14px; font-weight: 700; color: #1a1a2e; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prod-card-price { font-size: 16px; font-weight: 800; color: #d97706; margin-top: 6px; }
.prod-card-stock { font-size: 12px; color: #9ca3af; }
.prod-card-stock.low { color: #ef4444; font-weight: 600; }
.prod-card-stock.out { color: #d1d5db; }
.prod-card-actions { display: flex; gap: 6px; margin-top: 8px; }
.prod-card-actions button {
  flex: 1; border: none; border-radius: 8px; font-size: 12px; font-weight: 700;
  padding: 7px 4px; cursor: pointer; transition: opacity .15s, transform .12s;
}
.prod-card-actions button:active { transform: scale(.95); }
.prod-card-btn-cart { background: #f3f4f6; color: #374151; }
.prod-card-btn-cart:hover { background: #e5e7eb; }
.prod-card-btn-buy { background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; }
.prod-card-btn-buy:hover { opacity: .88; }
.prod-card-actions button:disabled { opacity: .45; cursor: not-allowed; }

/* Loading / empty */
.shop-loading { text-align:center; padding: 52px 0; color: #9ca3af; font-size: 14px; }
.shop-empty   { text-align:center; padding: 52px 0; color: #9ca3af; font-size: 14px; }

/* ── Reviews ── */
.reviews-section { padding: 0 0 56px; overflow: hidden; }
.reviews-hd {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
  max-width: 1100px; margin-left: auto; margin-right: auto; padding: 0 16px;
}
.reviews-hd-title { font-size: 18px; font-weight: 900; color: #1a1a2e; }
.reviews-hd-sub { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.reviews-marquee-wrap { display: flex; flex-direction: column; gap: 14px; }
.reviews-marquee-row  { overflow: hidden; position: relative; }
.reviews-marquee-row::before,
.reviews-marquee-row::after {
  content:''; position:absolute; top:0; bottom:0; width:80px; z-index:2; pointer-events:none;
}
.reviews-marquee-row::before { left:0;  background:linear-gradient(to right,#f0f2f7,transparent); }
.reviews-marquee-row::after  { right:0; background:linear-gradient(to left, #f0f2f7,transparent); }
.reviews-marquee-track {
  display: inline-flex; gap: 14px; white-space: nowrap;
  animation: rv-scroll 35s linear infinite;
  will-change: transform;
}
.reviews-marquee-track.rev { animation-name: rv-scroll-rev; }
.reviews-marquee-wrap:hover .reviews-marquee-track { animation-play-state: paused; }
@keyframes rv-scroll     { from{transform:translateX(0)} to{transform:translateX(-33.333%)} }
@keyframes rv-scroll-rev { from{transform:translateX(-33.333%)} to{transform:translateX(0)} }
.review-card {
  display: inline-flex; flex-direction: column; gap: 8px;
  width: 280px; flex-shrink: 0; white-space: normal;
  background: #fff; border-radius: 14px; border: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 2px 8px rgba(0,0,0,.04); padding: 16px; vertical-align: top;
}

/* ── Event Floating Button ── */
.ev-float-btn {
  position: fixed; bottom: 100px; right: 20px; z-index: 900;
  width: 72px; height: 72px; border-radius: 50%; border: 3px solid #f59e0b;
  background: linear-gradient(135deg,#1e1b4b,#312e81);
  cursor: pointer; overflow: visible;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(99,102,241,.45), 0 0 0 0 rgba(245,158,11,.4);
  animation: ev-float-glow 2.5s ease-in-out infinite;
  transition: transform .2s, box-shadow .2s;
  padding: 0;
}
.ev-float-btn:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(99,102,241,.6), 0 0 0 6px rgba(245,158,11,.15); }
@keyframes ev-float-glow { 0%,100%{box-shadow:0 4px 20px rgba(99,102,241,.45),0 0 0 0 rgba(245,158,11,.4)} 50%{box-shadow:0 4px 24px rgba(99,102,241,.6),0 0 0 8px rgba(245,158,11,.1)} }
.ev-float-icon { font-size: 32px; line-height: 1; }
.ev-float-pulse {
  position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(245,158,11,.5);
  animation: ev-pulse-ring 2s ease-in-out infinite;
}
@keyframes ev-pulse-ring { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.3;transform:scale(1.12)} }
.ev-float-badge {
  position: absolute; top: -6px; right: -6px;
  background: #ef4444; color: #fff;
  font-size: 8px; font-weight: 800; letter-spacing: .06em;
  padding: 2px 5px; border-radius: 99px; border: 1.5px solid #fff;
}

/* ── Event Modal Overlay ── */
.ev-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 16px;
}
.ev-modal-overlay.open { display: flex; }
.ev-modal {
  background: linear-gradient(160deg,#1e1b4b 0%,#312e81 60%,#1e1b4b 100%);
  border-radius: 22px; width: 100%; max-width: 460px; max-height: 88vh;
  overflow-y: auto; padding: 28px 24px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08);
  position: relative; animation: ev-modal-in .22s cubic-bezier(.34,1.56,.64,1);
}
@keyframes ev-modal-in { from{opacity:0;transform:scale(.92) translateY(20px)} to{opacity:1;transform:none} }
.ev-modal-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
  border-radius: 50%; border: none; background: rgba(255,255,255,.1); color: rgba(255,255,255,.7);
  cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.ev-modal-close:hover { background: rgba(255,255,255,.2); color: #fff; }
.ev-modal-header { margin-bottom: 18px; }
.ev-modal-label {
  font-size: 10px; font-weight: 800; letter-spacing: .12em; color: #fbbf24;
  text-transform: uppercase; margin-bottom: 4px;
}
.ev-modal-title { font-size: 20px; font-weight: 900; color: #fff; line-height: 1.25; }
.ev-modal-dates { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 4px; }
.ev-modal-prize {
  background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.25);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 18px;
  font-size: 13px; color: rgba(255,255,255,.8); line-height: 1.65;
}
.ev-modal-board-title {
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,.65);
  text-align: center; margin-bottom: 16px; letter-spacing: .03em;
}
.ev-modal-empty {
  text-align: center; padding: 24px; color: rgba(255,255,255,.5); font-size: 14px;
  border: 1px dashed rgba(255,255,255,.15); border-radius: 12px;
}
/* Podium inside modal */
.ev-modal-podium {
  display: flex; align-items: flex-end; justify-content: center; gap: 8px; margin-bottom: 16px;
}
.ev-modal-podium-item {
  flex: 1; max-width: 140px; display: flex; flex-direction: column;
  align-items: center; gap: 5px;
}
.ev-pdm-medal { font-size: 26px; line-height: 1; }
.ev-modal-podium-item.gold .ev-pdm-medal { font-size: 32px; }
.ev-pdm-name {
  font-size: 11px; font-weight: 700; color: #fff; text-align: center;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ev-pdm-amt { font-size: 12px; font-weight: 800; color: #fbbf24; text-align: center; }
.ev-modal-podium-item.silver .ev-pdm-amt { color: #c0c0c0; }
.ev-modal-podium-item.bronze .ev-pdm-amt { color: #cd7f32; }
.ev-pdm-bar {
  width: 100%; border-radius: 7px 7px 0 0;
}
.ev-pdm-bar.rank1 { height: 64px; background: linear-gradient(180deg,#f59e0b,#d97706); box-shadow: 0 -4px 18px rgba(245,158,11,.5); }
.ev-pdm-bar.rank2 { height: 46px; background: linear-gradient(180deg,#94a3b8,#64748b); box-shadow: 0 -4px 12px rgba(148,163,184,.3); }
.ev-pdm-bar.rank3 { height: 32px; background: linear-gradient(180deg,#b45309,#92400e); box-shadow: 0 -4px 12px rgba(180,83,9,.3); }
/* Rest rows */
.ev-modal-rest { display: flex; flex-direction: column; gap: 5px; }
.ev-modal-rest-row {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07);
  border-radius: 9px; padding: 8px 13px; transition: background .15s;
}
.ev-modal-rest-row:hover { background: rgba(255,255,255,.09); }
.ev-rest-rank { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.4); min-width: 26px; flex-shrink: 0; }
.ev-rest-name { flex: 1; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-rest-amt  { font-size: 12px; font-weight: 700; color: #fbbf24; flex-shrink: 0; }
.ev-modal-cta {
  margin-top: 18px; padding: 10px 18px;
  background: linear-gradient(90deg,rgba(245,158,11,.18),rgba(239,68,68,.18));
  border: 1px solid rgba(245,158,11,.3); border-radius: 10px;
  text-align: center; font-size: 13px; font-weight: 700; color: #fbbf24;
}

/* ── Old section styles (kept for fallback) ── */
.event-bxh-section {
  max-width: 900px; margin: 0 auto 36px; padding: 0 16px;
}
.event-bxh-inner {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
  border-radius: 20px; padding: 28px 28px 24px;
  box-shadow: 0 8px 40px rgba(99,102,241,.3), 0 2px 8px rgba(0,0,0,.2);
  position: relative; overflow: hidden;
}
.event-bxh-inner::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 80% 20%, rgba(167,139,250,.15) 0%, transparent 60%);
}
.event-bxh-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 22px;
}
.event-bxh-icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
  box-shadow: 0 4px 14px rgba(245,158,11,.4);
}
.event-bxh-title {
  font-size: 20px; font-weight: 900; color: #fff; line-height: 1.2;
}
.event-bxh-dates {
  font-size: 12px; color: rgba(255,255,255,.55); margin-top: 4px;
}
.event-bxh-live {
  margin-left: auto; display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: #34d399;
  background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.3);
  border-radius: 20px; padding: 4px 12px; flex-shrink: 0;
}
.event-bxh-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #34d399; display: inline-block;
  animation: bxh-blink 1.2s ease-in-out infinite;
}
@keyframes bxh-blink {
  0%,100% { opacity: 1; } 50% { opacity: .3; }
}
.event-bxh-desc {
  font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.6;
  background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.2);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 18px;
}
.event-bxh-empty {
  text-align: center; padding: 24px; color: rgba(255,255,255,.5);
  font-size: 14px; border: 1px dashed rgba(255,255,255,.15); border-radius: 12px;
}
.event-bxh-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px;
}
.event-bxh-row {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 11px 14px;
  transition: background .15s;
}
.event-bxh-row:hover { background: rgba(255,255,255,.1); }
.event-bxh-row.top3 { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.25); }
.event-bxh-row.rank-1 { background: rgba(245,158,11,.18); border-color: rgba(245,158,11,.4); }
.event-bxh-rank {
  font-size: 20px; min-width: 32px; text-align: center; flex-shrink: 0;
  font-weight: 900; color: rgba(255,255,255,.4);
}
.event-bxh-row.top3 .event-bxh-rank { font-size: 22px; }
.event-bxh-name {
  flex: 1; font-size: 14px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.event-bxh-meta {
  display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0;
}
.event-bxh-orders { font-size: 10px; color: rgba(255,255,255,.4); }
.event-bxh-spent  { font-size: 13px; font-weight: 800; color: #fbbf24; }
/* Glowing orbs */
.event-orb {
  position: absolute; border-radius: 50%; pointer-events: none; filter: blur(60px);
}
.event-orb1 { width: 220px; height: 220px; top: -60px; right: -40px; background: rgba(139,92,246,.35); }
.event-orb2 { width: 160px; height: 160px; bottom: -40px; left: 10%; background: rgba(245,158,11,.25); }
.event-orb3 { width: 120px; height: 120px; top: 30%; left: -30px; background: rgba(99,102,241,.3); }
/* Icon pulse ring */
.event-bxh-icon { position: relative; }
.event-bxh-icon-pulse {
  position: absolute; inset: -6px; border-radius: 20px;
  border: 2px solid rgba(245,158,11,.4);
  animation: icon-pulse 2s ease-in-out infinite;
}
@keyframes icon-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.08)} }
/* Label above title */
.event-bxh-label {
  font-size: 10px; font-weight: 800; letter-spacing: .12em; color: #fbbf24;
  text-transform: uppercase; margin-bottom: 4px;
}
/* Prize block */
.event-bxh-prize {
  background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.25);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 20px;
}
.event-bxh-prize-title {
  font-size: 12px; font-weight: 700; color: #fbbf24; margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.event-bxh-prize-text {
  font-size: 13px; color: rgba(255,255,255,.8); line-height: 1.65;
}
/* Board container */
.event-bxh-board { margin-bottom: 16px; }
.event-bxh-board-title {
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,.7);
  margin-bottom: 16px; text-align: center; letter-spacing: .03em;
}
/* Podium */
.event-podium {
  display: flex; align-items: flex-end; justify-content: center; gap: 8px;
  margin-bottom: 16px;
}
.event-podium-item {
  flex: 1; max-width: 180px; display: flex; flex-direction: column;
  align-items: center; gap: 6px; position: relative;
}
.event-podium-medal { font-size: 28px; line-height: 1; }
.event-podium-item.gold .event-podium-medal { font-size: 34px; }
.event-podium-name {
  font-size: 12px; font-weight: 700; color: #fff; text-align: center;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.event-podium-amt {
  font-size: 13px; font-weight: 800; color: #fbbf24; text-align: center;
}
.event-podium-item.silver .event-podium-amt { color: #c0c0c0; }
.event-podium-item.bronze .event-podium-amt { color: #cd7f32; }
.event-podium-bar {
  width: 100%; border-radius: 8px 8px 0 0; display: flex; align-items: center; justify-content: center;
}
.event-podium-bar.rank1 { height: 72px; background: linear-gradient(180deg,#f59e0b,#d97706); box-shadow: 0 -4px 20px rgba(245,158,11,.5); }
.event-podium-bar.rank2 { height: 52px; background: linear-gradient(180deg,#94a3b8,#64748b); box-shadow: 0 -4px 14px rgba(148,163,184,.3); }
.event-podium-bar.rank3 { height: 36px; background: linear-gradient(180deg,#b45309,#92400e); box-shadow: 0 -4px 14px rgba(180,83,9,.3); }
.event-podium-rank {
  font-size: 11px; font-weight: 900; color: rgba(255,255,255,.85);
}
/* Ranks 4+ */
.event-bxh-rest { display: flex; flex-direction: column; gap: 6px; }
.event-bxh-row-rest {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px; padding: 9px 14px; transition: background .15s;
}
.event-bxh-row-rest:hover { background: rgba(255,255,255,.09); }
.event-bxh-rank-rest {
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,.4);
  min-width: 28px; flex-shrink: 0;
}
.event-bxh-name-rest {
  flex: 1; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.event-bxh-spent-rest {
  font-size: 12px; font-weight: 700; color: #fbbf24; flex-shrink: 0;
}
/* CTA strip */
.event-bxh-cta {
  margin-top: 20px; padding: 12px 20px;
  background: linear-gradient(90deg, rgba(245,158,11,.18), rgba(239,68,68,.18));
  border: 1px solid rgba(245,158,11,.3); border-radius: 12px;
  text-align: center; font-size: 13px; font-weight: 700; color: #fbbf24;
  letter-spacing: .02em; animation: cta-glow 2.5s ease-in-out infinite;
}
@keyframes cta-glow { 0%,100%{box-shadow:0 0 0 rgba(245,158,11,0)} 50%{box-shadow:0 0 20px rgba(245,158,11,.2)} }

@media (max-width: 600px) {
  .event-bxh-inner { padding: 20px 16px; }
  .event-bxh-title { font-size: 16px; }
  .event-bxh-live { display: none; }
  .event-bxh-list { grid-template-columns: 1fr; }
  .event-podium-item { max-width: 120px; }
  .event-podium-medal { font-size: 22px; }
  .event-podium-item.gold .event-podium-medal { font-size: 28px; }
  .event-podium-amt { font-size: 11px; }
  .event-podium-name { font-size: 11px; }
}
