/* =========================================================
   VARLOL – đỏ / đen / trắng, góc cắt vát kiểu poster
   ========================================================= */
:root {
  --bg: #060608;
  --panel: rgba(16, 16, 21, .82);
  --panel-solid: #111116;
  --line: rgba(255, 255, 255, .09);
  --line-red: rgba(255, 42, 61, .45);
  --text: #f4f4f6;
  --muted: #9b9ba7;
  --red: #ff2a3d;
  --red-d: #c8102e;
  --red-dd: #7a0c17;
  --silver: #d6d8de;
  --ok: #3ddc97;
  --err: #ff5d6c;
  --cut: 14px;
  --font: 'Be Vietnam Pro', system-ui, sans-serif;
  --display: 'Chakra Petch', 'Be Vietnam Pro', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--bg); overflow-x: hidden; }
body {
  font-family: var(--font);
  color: var(--text);
  background: transparent; /* để lớp nền .bg-art hiện ra */
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red); }
button { font: inherit; cursor: pointer; }
.hidden { display: none !important; }
::selection { background: var(--red); color: #fff; }

/* ---------- Nền ---------- */
.bg-art {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: url('/img/bg-shards.svg') center / cover no-repeat, var(--bg);
}
.bg-art.custom::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,6,8,.55), rgba(6,6,8,.82) 55%, rgba(6,6,8,.95));
}
#embers { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---------- Thanh trên ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 18px;
  padding: 10px 22px;
  background: rgba(6, 6, 8, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red) 30%, var(--red) 70%, transparent);
  opacity: .55;
}
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 38px; width: auto; display: block; filter: drop-shadow(0 0 10px rgba(255, 42, 61, .35)); }
.brand .brand-text { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--text); letter-spacing: .04em; }
.nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  position: relative; padding: 9px 13px; color: var(--muted); text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
}
.nav a:hover { color: var(--text); }
.nav a.active { color: #fff; }
.nav a.active::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--red); box-shadow: 0 0 10px var(--red);
}
.nav-group { position: relative; flex: none; }
.nav-drop {
  display: flex; align-items: center; gap: 6px; padding: 9px 13px; background: none; border: 0; cursor: pointer; color: var(--muted);
  font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; position: relative;
}
.nav-drop:hover, .nav-drop[aria-expanded="true"] { color: var(--text); }
.nav-drop.active { color: #fff; }
.nav-drop.active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--red); box-shadow: 0 0 10px var(--red); }
.nav-drop .caret { font-size: 11px; transition: transform .2s; }
.nav-drop[aria-expanded="true"] .caret { transform: rotate(180deg); }
.nav-menu {
  position: fixed; z-index: 60; min-width: 200px; padding: 6px; display: none; flex-direction: column;
  background: rgba(12, 12, 16, .97); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line-red), 0 16px 40px rgba(0, 0, 0, .6);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.nav-menu.open { display: flex; }
.nav .nav-menu a { padding: 11px 14px; font-size: 15px; }
.nav .nav-menu a:hover { background: rgba(255, 42, 61, .12); }
.nav .nav-menu a.active::after { left: 14px; right: auto; width: 24px; bottom: 4px; }
.news-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.news-tabs button { padding: 8px 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--muted); cursor: pointer;
  font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: 13px; }
.news-tabs button.active { background: rgba(255, 42, 61, .18); border-color: var(--red); color: #fff; }
.news-ch { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--red); margin-bottom: 8px; }
.user-area { display: flex; align-items: center; gap: 10px; flex: none; }
.coin-pill {
  display: flex; align-items: center; gap: 7px; padding: 6px 12px;
  background: rgba(255, 42, 61, .1); border: 1px solid var(--line-red);
  font-family: var(--display); font-weight: 700; color: #fff;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.coin-ico {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #fff, #d6d8de 40%, #8b8d95);
  box-shadow: inset 0 0 0 2px var(--red), 0 0 8px rgba(255, 42, 61, .6);
}
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--red-d); display: grid; place-items: center; font-weight: 700; overflow: hidden; flex: none; border: 2px solid var(--red); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Nút ---------- */
.btn {
  --c: var(--cut);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; padding: 11px 20px; font-family: var(--display); font-weight: 700; font-size: 15px;
  letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  background: #1c1c23; color: var(--text);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  transition: transform .12s, filter .15s, box-shadow .15s;
}
.btn:hover { filter: brightness(1.18); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; transform: none; }
.btn-red, .btn-gold, .btn-pink { background: linear-gradient(180deg, #ff3b4c, #c8102e); color: #fff; }
.btn-discord { background: linear-gradient(180deg, #ff3b4c, #c8102e); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-red); }
.btn-sm { padding: 7px 13px; font-size: 13px; --c: 8px; }
.btn-lg { padding: 15px 30px; font-size: 18px; --c: 16px; }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; white-space: nowrap; border-bottom: 1px solid var(--line); background: rgba(200, 16, 46, .14); font-size: 14px; }
.ticker-track { display: inline-flex; gap: 46px; padding: 8px 0; animation: ticker 40s linear infinite; }
.ticker-item b { color: #fff; }
.ticker-item b:last-child { color: var(--red); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Bố cục ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 30px 20px 80px; }
.page-head { margin-bottom: 24px; }
.kicker { font-family: var(--display); font-size: 13px; letter-spacing: .35em; color: var(--red); text-transform: uppercase; margin: 0 0 6px; }
.page-title { font-family: var(--display); font-size: 40px; font-weight: 700; margin: 0 0 6px; line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; }
.page-sub { color: var(--muted); margin: 0; }
.card {
  position: relative; background: var(--panel); border: 1px solid var(--line); padding: 22px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  backdrop-filter: blur(6px);
}
/* viền đỏ ở góc vát + vạch đỏ ngắn phía trên */
.card::before {
  content: ''; position: absolute; left: 0; top: 0; width: var(--cut); height: var(--cut); pointer-events: none;
  background: linear-gradient(135deg, transparent calc(50% - 1.5px), var(--red) calc(50% - 1.5px), var(--red) calc(50% + 1.5px), transparent calc(50% + 1.5px));
}
.card::after {
  content: ''; position: absolute; left: var(--cut); top: 0; width: 46px; height: 2px; pointer-events: none;
  background: var(--red); box-shadow: 0 0 8px var(--red);
}
.card h3 { margin: 0 0 14px; font-family: var(--display); font-size: 20px; text-transform: uppercase; letter-spacing: .04em; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 20px; }

.banner {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px; margin-bottom: 22px;
  background: rgba(200, 16, 46, .16); border: 1px solid var(--line-red);
}
.banner p { margin: 0; flex: 1; min-width: 200px; }

/* ---------- Trang chủ ---------- */
.hero { text-align: center; padding: 36px 0 10px; }
.hero-tags { font-family: var(--display); letter-spacing: .5em; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.hero-tags span { color: var(--red); margin: 0 .4em; }
.hero-logo { width: min(640px, 92%); height: auto; display: block; margin: 0 auto 16px; filter: drop-shadow(0 0 30px rgba(255, 42, 61, .35)); }
.hero-name { font-family: var(--display); font-size: clamp(48px, 9vw, 96px); margin: 0 0 10px; letter-spacing: .04em; }
.hero p.tagline { color: var(--silver); font-size: 18px; max-width: 620px; margin: 0 auto 26px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 42px; text-align: left; }
.feature b { display: block; font-family: var(--display); font-size: 18px; text-transform: uppercase; margin-bottom: 6px; }
.feature span { color: var(--muted); font-size: 14px; }
.feature .ico { font-size: 26px; margin-bottom: 10px; display: block; }
.section-title { font-family: var(--display); font-size: 26px; text-transform: uppercase; margin: 48px 0 16px; display: flex; align-items: center; gap: 12px; }
.section-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-red), transparent); }

/* ---------- Vòng quay ---------- */
.wheel-stage { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.wheel-wrap { position: relative; width: min(600px, 100%); aspect-ratio: 1; }
.wheel-rim {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 62.5%, #000 63%, #2b2b33 64%, #0c0c10 67%, #3a3a44 69.5%, #121217 70.5%);
  box-shadow: 0 0 0 2px rgba(255, 42, 61, .9), 0 0 30px rgba(255, 42, 61, .55), 0 0 80px rgba(255, 42, 61, .25), inset 0 0 30px rgba(0, 0, 0, .8);
}
.bulb { position: absolute; width: 11px; height: 11px; margin: -5.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff, 0 0 14px var(--red); animation: blink 1s infinite; }
.bulb:nth-child(even) { background: var(--red); box-shadow: 0 0 10px var(--red); animation-delay: .5s; }
.spinning .bulb { animation-duration: .25s; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
#wheel {
  position: absolute; inset: 7%; width: 86%; height: 86%; border-radius: 50%;
  transition: transform 5.4s cubic-bezier(.12, .75, .1, 1);
}
.pointer { position: absolute; left: 50%; top: -3%; width: 46px; height: 58px; transform: translateX(-50%); z-index: 3; filter: drop-shadow(0 0 8px rgba(255, 42, 61, .9)) drop-shadow(0 4px 4px rgba(0, 0, 0, .6)); }
.hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4;
  width: 25%; aspect-ratio: 1; border-radius: 50%; border: 0;
  background: radial-gradient(circle at 40% 30%, #2d2d36, #09090c 70%);
  box-shadow: 0 0 0 4px var(--red), 0 0 0 7px #000, 0 0 26px rgba(255, 42, 61, .8), inset 0 2px 0 rgba(255, 255, 255, .15);
  color: #fff; font-family: var(--display); font-weight: 700; line-height: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  transition: transform .15s;
}
.hub span:first-child { font-size: clamp(18px, 4.4vw, 26px); letter-spacing: .08em; }
.hub span:last-child { font-size: clamp(10px, 2.3vw, 12px); color: var(--red); font-weight: 600; }
.hub:disabled { cursor: not-allowed; filter: grayscale(.5); }
.hub:not(:disabled):hover { transform: translate(-50%, -50%) scale(1.05); }
.spin-meta { color: var(--muted); text-align: center; }
.spin-meta b { color: #fff; }

.odds { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.odds li { display: flex; align-items: center; gap: 10px; padding: 9px 11px; background: rgba(255, 255, 255, .035); border-left: 2px solid transparent; }
.dot { width: 14px; height: 14px; flex: none; transform: rotate(45deg); }
.thumb { width: 30px; height: 30px; object-fit: contain; flex: none; }
.odds .pct { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.tag { font-size: 11px; padding: 2px 7px; background: rgba(255, 42, 61, .18); color: #ff8d98; font-weight: 700; }

.feed { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; max-height: 380px; overflow: auto; }
.feed li { display: flex; gap: 10px; align-items: center; padding: 9px 11px; background: rgba(255, 255, 255, .035); font-size: 14px; }
.feed li.big { background: linear-gradient(90deg, rgba(255, 42, 61, .22), rgba(255, 42, 61, .03)); border-left: 2px solid var(--red); }
.feed .ini { width: 28px; height: 28px; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.feed time { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.empty { color: var(--muted); text-align: center; padding: 22px; }

/* ---------- Điểm danh ---------- */
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin: 6px 0 22px; }
.day { text-align: center; padding: 16px 4px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.day .n { font-size: 12px; color: var(--muted); text-transform: uppercase; font-family: var(--display); letter-spacing: .05em; }
.day .r { font-weight: 700; color: #fff; margin-top: 6px; font-family: var(--display); font-size: 18px; }
.day.got { background: rgba(255, 42, 61, .22); border-color: var(--red); }
.day.next { border-color: #fff; box-shadow: inset 0 0 0 1px #fff, 0 0 18px rgba(255, 42, 61, .5); }

/* ---------- Cửa hàng ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.item { display: flex; flex-direction: column; gap: 10px; }
.item-img { height: 130px; display: grid; place-items: center; background: radial-gradient(circle, rgba(255, 42, 61, .2), transparent 70%); margin: -4px -4px 4px; }
.item-img img { max-height: 110px; max-width: 80%; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .6)); }
.item-img .ph { font-size: 52px; }
.item h4 { margin: 0; font-size: 18px; font-family: var(--display); text-transform: uppercase; }
.item p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.item .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { display: flex; align-items: center; gap: 7px; font-weight: 700; color: #fff; font-family: var(--display); font-size: 18px; }

/* ---------- Dịch vụ ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.svc-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text); transition: transform .15s, border-color .15s; }
.svc-card:hover { transform: translateY(-3px); border-color: var(--line-red); }
.svc-card .svc-emoji { font-size: 34px; line-height: 1; }
.svc-card h4 { margin: 0; font-family: var(--display); font-size: 20px; text-transform: uppercase; }
.svc-card p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.svc-card .more { font-family: var(--display); color: var(--red); font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: .05em; }
.svc-head { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.svc-head .svc-emoji { font-size: 52px; line-height: 1; }
.svc-head .grow { flex: 1; min-width: 240px; }
.svc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.posts { display: grid; gap: 18px; }
.post-title { font-family: var(--display); font-size: 20px; margin: 0 0 10px; text-transform: uppercase; }
.post-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; margin-top: 14px; flex-wrap: wrap; }
.post-meta a { color: var(--muted); }
.md { line-height: 1.6; word-wrap: break-word; overflow-wrap: anywhere; }
.md h3, .md h4, .md h5 { font-family: var(--display); margin: 10px 0 6px; line-height: 1.2; }
.md h3 { font-size: 24px; } .md h4 { font-size: 20px; } .md h5 { font-size: 17px; }
.md blockquote { margin: 2px 0; padding: 2px 0 2px 12px; border-left: 3px solid #4a4a55; color: #d9d9e0; }
.md ul, .md ol { margin: 4px 0; padding-left: 22px; }
.md code { background: rgba(255, 255, 255, .08); padding: 1px 5px; font-size: 90%; }
.md pre { background: #0b0b0f; border: 1px solid var(--line); padding: 10px 12px; overflow-x: auto; }
.md pre code { background: none; padding: 0; }
.md .mention { background: rgba(255, 42, 61, .18); color: #ffb3ba; padding: 0 4px; font-weight: 600; }
.md .emoji { width: 1.35em; height: 1.35em; vertical-align: -.3em; object-fit: contain; }
.md .spoiler { background: #2a2a31; color: transparent; cursor: pointer; }
.md .spoiler:hover, .md .spoiler:focus { color: inherit; }
.md .subtext { display: block; color: var(--muted); font-size: 12px; }
.md a { color: #ff6b78; }
.post-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 12px; }
.post-images img { width: 100%; max-height: 420px; object-fit: cover; display: block; border: 1px solid var(--line); background: #000; }
.post-images.single { grid-template-columns: 1fr; }
.post-images.single img { object-fit: contain; max-height: 560px; }
.embed { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 12px; padding: 12px 14px; background: rgba(0, 0, 0, .35); border-left: 4px solid var(--red); }
.embed .e-title { font-weight: 700; margin-bottom: 6px; }
.embed .e-title a { color: #fff; }
.embed .e-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-top: 8px; }
.embed .e-field.full { grid-column: 1 / -1; }
.embed .e-field .fn { font-weight: 700; font-size: 14px; }
.embed .e-thumb { width: 80px; height: 80px; object-fit: cover; }
.embed .e-image { grid-column: 1 / -1; max-width: 100%; max-height: 400px; object-fit: contain; }
.embed .e-footer { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.files a { font-size: 13px; padding: 6px 10px; background: rgba(255, 255, 255, .06); text-decoration: none; color: var(--text); }

/* ---------- Bảng ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-family: var(--display); }
.table tr.me td { background: rgba(255, 42, 61, .12); }
.rank { font-family: var(--display); font-weight: 700; font-size: 18px; width: 52px; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { padding: 8px 16px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 600; font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; }
.tabs button.active { background: var(--red-d); color: #fff; border-color: var(--red); }
.status { font-size: 12px; font-weight: 700; padding: 3px 8px; white-space: nowrap; }
.status.pending { background: rgba(255, 255, 255, .12); color: #fff; }
.status.done { background: rgba(61, 220, 151, .16); color: var(--ok); }
.status.rejected { background: rgba(255, 93, 108, .18); color: var(--err); }
.table-wrap { overflow-x: auto; }

/* ---------- Ủng hộ ---------- */
.qr { max-width: 240px; width: 100%; background: #fff; padding: 10px; }
.pre { white-space: pre-wrap; }
.note { font-size: 13px; color: var(--muted); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(0, 0, 0, .75); backdrop-filter: blur(5px); padding: 20px; }
.modal-box {
  position: relative; width: min(390px, 100%); text-align: center; padding: 34px 24px 26px;
  background: linear-gradient(180deg, #1a0a0e, #0b0b0f); border: 1px solid var(--line-red);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  box-shadow: 0 0 60px rgba(255, 42, 61, .35);
  animation: pop .35s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
.modal-emoji { font-size: 60px; line-height: 1; }
.modal-img { width: 110px; height: 110px; object-fit: contain; filter: drop-shadow(0 0 18px rgba(255, 42, 61, .6)); }
.modal-box h2 { font-family: var(--display); margin: 12px 0 4px; font-size: 30px; text-transform: uppercase; }
.modal-prize { font-size: 24px; font-weight: 800; color: var(--red); margin: 6px 0 10px; font-family: var(--display); text-shadow: 0 0 18px rgba(255, 42, 61, .6); }
.modal-box p { color: var(--muted); margin: 0 0 22px; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; }

/* ---------- Toast ---------- */
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 70; display: flex; flex-direction: column; gap: 8px; align-items: center; width: calc(100% - 32px); max-width: 440px; }
.toast { padding: 12px 18px; background: #16161c; border: 1px solid var(--line); border-left: 3px solid #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); animation: pop .25s; text-align: center; }
.toast.err { border-left-color: var(--red); }
.toast.ok { border-left-color: var(--ok); }

/* ---------- Form (admin) ---------- */
input, select, textarea {
  font: inherit; color: var(--text); background: rgba(0, 0, 0, .45); border: 1px solid var(--line);
  padding: 8px 10px; width: 100%; border-radius: 0;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
textarea { min-height: 80px; resize: vertical; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.toggle { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; }
.toggle input { width: auto; accent-color: var(--red); }

footer { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 20px 40px; border-top: 1px solid var(--line); }
footer .foot-tags { font-family: var(--display); letter-spacing: .35em; text-transform: uppercase; margin-bottom: 8px; }
footer .foot-tags span { color: var(--red); margin: 0 .5em; }

/* ---------- Điện thoại ---------- */
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .topbar { flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
  .nav { order: 3; flex-basis: 100%; }
  .user-area { margin-left: auto; }
  main { padding: 22px 16px 80px; }
  .days { grid-template-columns: repeat(4, 1fr); }
  .page-title { font-size: 30px; }
  .card { padding: 16px; }
  .brand img { height: 30px; }
}
@media (max-width: 420px) {
  .table th, .table td { padding: 8px 6px; font-size: 14px; }
  .hero-tags { letter-spacing: .25em; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .bulb { animation: none; }
  #embers { display: none; }
}

/* ---------- Xu V ---------- */
.vpill { background: rgba(255, 207, 63, .1); border-color: rgba(255, 207, 63, .45); color: #ffe7a0; }
.v-ico {
  width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font: 800 11px/1 var(--display); color: #2a1800;
  background: radial-gradient(circle at 35% 30%, #fff6c8, #ffcf3f 45%, #c98300);
  box-shadow: 0 0 8px rgba(255, 207, 63, .6);
}
.coin-pill.bump { animation: vbump .6s ease; }
@keyframes vbump { 30% { transform: scale(1.18); box-shadow: 0 0 22px rgba(255, 207, 63, .8); } }
@media (max-width: 420px) { .user-area .coin-pill { padding: 5px 8px; font-size: 13px; } }

/* ---------- Nhiệm vụ ---------- */
.ms-list { display: flex; flex-direction: column; gap: 10px; }
.ms { display: grid; grid-template-columns: 56px 1fr auto auto; align-items: center; gap: 14px; padding: 12px 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.ms.done { opacity: .6; }
.ms.pending { border-color: #ffb020; }
.ms-img { width: 56px; height: 56px; display: grid; place-items: center; background: radial-gradient(circle, rgba(255, 42, 61, .25), transparent 70%); font-size: 26px; }
.ms-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ms-body b { color: #fff; }
.ms-body .note { margin-top: 2px; }
.ms-reward { font-family: var(--display); font-weight: 700; color: var(--red); font-size: 18px; white-space: nowrap; }
.ms-act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ms-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ms-proof { width: 240px; padding: 7px 10px; font-size: 13px; }
.ms-tag { font-size: 13px; font-weight: 700; padding: 6px 10px; white-space: nowrap; }
.ms-tag.ok { color: var(--ok); }
.ms-tag.wait { color: #ffb020; }
@media (max-width: 640px) {
  .ms { grid-template-columns: 44px 1fr auto; }
  .ms-img { width: 44px; height: 44px; }
  .ms-act { grid-column: 1 / -1; align-items: stretch; }
  .ms-proof { width: 100%; }
}

/* ---------- Quỹ VP ---------- */
.fund-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 20px;
  background: linear-gradient(120deg, rgba(255, 42, 61, .22), rgba(12, 12, 16, .9) 60%); border-color: var(--red); }
.fund-main { display: flex; flex-direction: column; gap: 4px; }
.fund-label { font-family: var(--display); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; color: var(--red); }
.fund-total { font-family: var(--display); font-size: clamp(34px, 6vw, 56px); line-height: 1.05; color: #fff; text-shadow: 0 0 24px rgba(255, 42, 61, .55); }
.fund-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.fund-form { display: flex; flex-direction: column; gap: 12px; text-align: left; margin: 14px 0 18px; }
.fund-form label.chk { display: flex; gap: 8px; align-items: center; color: var(--text); font-size: 14px; }
.fund-form label.chk input { width: auto; accent-color: var(--red); }
.fund-goal { flex: 1 1 260px; max-width: 460px; display: flex; flex-direction: column; gap: 8px; }
.fund-bar { height: 12px; background: rgba(255, 255, 255, .08); overflow: hidden; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.fund-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #c8102e, #ff3b4c); transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }

@media (max-width: 560px) { .bag-link span { display: none; } }
@media (max-width: 1480px) and (min-width: 861px) {
  .topbar { gap: 12px; }
  .nav a, .nav-drop { padding: 9px 9px; font-size: 14px; letter-spacing: .02em; }
  .nav a.active::after, .nav-drop.active::after { left: 8px; right: 8px; }
  .bag-link span { display: none; }
}
.wd-amt { color: #fff; }
.wd-bonus { color: var(--ok); font-weight: 700; font-size: 13px; }
.feed li.wd-total { background: transparent; border-top: 1px solid var(--line); color: var(--muted); }

/* ---------- Level ---------- */
.lv-pill { position: relative; display: flex; align-items: center; padding: 6px 10px 8px; text-decoration: none; color: #fff; font-family: var(--display); font-size: 14px;
  background: rgba(255, 42, 61, .12); border: 1px solid var(--line-red); overflow: hidden; }
.lv-pill i { position: absolute; left: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #c8102e, #ff3b4c); box-shadow: 0 0 8px var(--red); }
.lv-card { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.lv-badge { flex: none; width: 64px; height: 64px; display: grid; place-items: center; font-family: var(--display); font-size: 28px; font-weight: 700; color: #fff;
  background: radial-gradient(circle at 30% 30%, #ff3b4c, #7a0a1c); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  filter: drop-shadow(0 0 12px rgba(255, 42, 61, .5)); }
.lv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.lv-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.lv-top b { font-family: var(--display); font-size: 20px; text-transform: uppercase; color: #fff; }
.lv-bar { height: 10px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.lv-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #c8102e, #ff3b4c); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.lv-tag { display: inline-block; padding: 2px 8px; font-family: var(--display); font-size: 13px; color: #fff; background: rgba(255, 42, 61, .2); border: 1px solid var(--line-red); }
@media (max-width: 560px) { .lv-pill { padding: 5px 7px 7px; font-size: 12px; } .lv-badge { width: 52px; height: 52px; font-size: 22px; } }
.ms-reward small { display: block; font-size: 12px; color: var(--ok); text-align: right; }
@media (max-width: 1360px) and (min-width: 861px) {
  .nav a, .nav-drop { padding: 9px 7px; font-size: 13px; }
  .topbar { gap: 10px; padding: 10px 16px; }
  .brand img { height: 32px; }
}
.lv-rank { display: inline-block; margin-left: 6px; padding: 1px 8px; font-size: 13px; background: var(--red); color: #fff; vertical-align: middle; }
.lv-rank:empty { display: none; }
.lv-free { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.lv-free b { color: #fff; font-family: var(--display); }
.lv-bar.thin { height: 6px; }
.lv-bar.thin i { background: linear-gradient(90deg, #1e9e6a, var(--ok)); }
.lv-ranks { display: flex; flex-wrap: wrap; gap: 6px; }
.lv-ranks span { font-size: 12px; padding: 4px 8px; border: 1px solid var(--line); color: var(--muted); }
.lv-ranks span.on { border-color: var(--red); color: #fff; background: rgba(255, 42, 61, .12); }
.lv-ranks b { font-family: var(--display); }
.day .x { margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--ok); font-family: var(--display); }
.day.got .x { opacity: .5; }

/* Chọn số lượt chơi + bảng tổng kết nhiều lượt */
.multi { display: flex; gap: 6px; justify-content: center; margin: 14px 0 4px; }
.multi button { min-width: 56px; padding: 8px 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--muted); cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 15px; }
.multi button.on { background: rgba(255, 42, 61, .2); border-color: var(--red); color: #fff; box-shadow: 0 0 12px rgba(255, 42, 61, .35); }
.multi-sum { text-align: left; margin-top: 12px; }
.ms-stats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 12px; }
.ms-stats div { flex: 1 1 80px; text-align: center; padding: 8px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.ms-stats b { display: block; font-family: var(--display); font-size: 20px; color: #fff; }
.ms-stats b.g { color: var(--ok); } .ms-stats b.r { color: var(--red); }
.ms-stats span { font-size: 12px; color: var(--muted); }
.ms-list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.ms-list li { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 6px 10px; background: rgba(255, 255, 255, .04); }
.ms-list li.miss { opacity: .55; }
.ms-list img { width: 30px; height: 30px; object-fit: contain; } .ms-list .e { font-size: 22px; text-align: center; }
.ms-list b { font-family: var(--display); color: #fff; }

/* Menu nhiều mục: rút gọn tên dài trên màn hình vừa để không bị che mục cuối */
@media (max-width: 1360px) and (min-width: 861px) { .nav-long { display: none; } }
.ms-stats b { font-size: 17px; white-space: nowrap; }
@media (max-width: 480px) { .ms-stats b { font-size: 15px; } }

/* Vòng quay to hơn: cột vòng quay rộng hơn cột bên cạnh */
.spin-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 860px) { .spin-grid { grid-template-columns: minmax(0, 1fr); } }
