:root {
  color-scheme: dark;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #fff1e5;
  background: #1a100c;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --bg: #1a100c;
  --surface: #241811;
  --surface-deep: #1d140f;
  --line: #62402a;
  --orange: #ff963f;
  --orange-light: #ffc07a;
  --muted: #b29f91;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.dashboard-page-loader { position: fixed; z-index: 100; inset: 0 0 auto; height: 3px; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .15s ease; }
.dashboard-page-loader::after { position: absolute; inset: 0 auto 0 0; width: 38%; background: linear-gradient(90deg, #ff9c52, #ffd083, #ff6e57); box-shadow: 0 0 12px #ff9c52a0; content: ""; transform: translateX(-110%); }
.dashboard-page-loader.is-loading { opacity: 1; }
.dashboard-page-loader.is-loading::after { animation: dashboard-page-progress 1.1s ease-in-out infinite; }
@keyframes dashboard-page-progress { to { transform: translateX(280%); } }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { min-width: 320px; margin: 0; background: radial-gradient(ellipse at 84% -8%, #9a4a201f, transparent 27%), var(--bg); }
body, button, input, select { font-family: "Segoe UI", Arial, sans-serif; }
button, input, select { color: inherit; font-size: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #ffc17e; outline-offset: 2px; }
[hidden] { display: none !important; }
.dashboard-layout { min-height: 100vh; }
.sidebar { position: fixed; z-index: 5; inset: 0 auto 0 0; display: flex; width: 250px; flex-direction: column; padding: 22px 15px 15px; border-right: 1px solid #613a252b; background: linear-gradient(180deg, #2b1711 0%, #1e120e 74%, #1a100c 100%); box-shadow: 10px 0 45px #0002; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 1px 8px 24px; font-size: 18px; font-weight: 850; letter-spacing: -.7px; }
.sidebar-brand > span:last-child > span { color: var(--orange-light); }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: linear-gradient(145deg, #ffd18b, #f27d2e); color: #281507; font-size: 12px; font-weight: 900; box-shadow: 0 0 20px #ff8d3b58; }
.sidebar-label { padding: 3px 12px 11px; color: #a98770; font-size: 8px; font-weight: 800; letter-spacing: 1.15px; }
.sidebar-wallet { display: grid; gap: 7px; margin: 0 2px 15px; padding: 13px; border: 1px solid #814535; border-radius: 12px; background: linear-gradient(140deg, #451719, #29130f); box-shadow: inset 0 0 18px #ff6b2010, 0 5px 18px #0002; }
.sidebar-wallet > span { color: #c89b85; font-size: 8px; font-weight: 750; letter-spacing: .7px; }
.sidebar-wallet strong { color: #ffb08f; font-size: 20px; font-weight: 850; font-variant-numeric: tabular-nums; }
.sidebar-wallet a { display: flex; justify-content: space-between; color: #e5bcaa; font-size: 9px; text-decoration: none; }
.sidebar-wallet a:hover { color: #ffd1b0; }
.sidebar nav { display: grid; gap: 5px; }
.nav-link { position: relative; display: flex; min-height: 43px; align-items: center; gap: 12px; padding: 0 12px; border: 1px solid transparent; border-radius: 9px; color: #d4c1b3; font-size: 11px; font-weight: 650; transition: .18s ease; }
.nav-link > span { width: 16px; color: #f5a56c; font-size: 17px; text-align: center; }
.nav-link > i { margin-left: auto; padding: 3px 7px; border: 1px solid #db89455c; border-radius: 20px; background: #a8502538; color: #ffc18a; font-size: 8px; font-style: normal; }
.nav-link > b { margin-left: auto; color: #b08b73; font-size: 11px; }
.nav-link:hover { border-color: #ff9a4d4f; background: #52281950; color: #fff3e8; }
.nav-link.is-active { border-color: #d17b456e; background: linear-gradient(100deg, #7d3c2650, #4a241d88); color: #fff5ed; box-shadow: inset 3px 0 #ff923e, 0 0 20px #ff8d3312; }
.sidebar-bottom { display: grid; gap: 10px; margin-top: auto; padding: 13px 6px 2px; border-top: 1px solid #8a5a3c39; }
.sidebar-user { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 5px 5px 2px; }
.sidebar-user > span, .profile-avatar { display: grid; flex: none; width: 32px; height: 32px; place-items: center; border: 1px solid #ffab6154; border-radius: 50%; background: #6d351e; color: #ffcc97; font-size: 12px; font-weight: 800; }
.sidebar-user > div { display: grid; min-width: 0; gap: 3px; }
.sidebar-user strong { overflow: hidden; color: #f5e4d5; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user small { overflow: hidden; color: #a9907f; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-bottom > button { display: flex; justify-content: space-between; padding: 8px 7px; border: 0; border-radius: 6px; background: transparent; color: #bd9b84; text-align: left; font-size: 10px; cursor: pointer; }
.sidebar-bottom > button:hover { background: #9e4b2e24; color: #ffc18a; }
.main-content { position: relative; z-index: 3; width: calc(100% - 250px); margin-left: 250px; padding: 30px clamp(28px, 4vw, 72px) 60px; }
.page-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.page-kicker, .section-eyebrow { color: #d28c5c; font-size: 8px; font-weight: 800; letter-spacing: 1.2px; }
.page-top h1 { margin: 6px 0 0; font-size: clamp(21px, 3vw, 28px); letter-spacing: -.7px; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.home-link, .top-actions > button { display: grid; min-height: 34px; place-items: center; padding: 0 11px; border: 1px solid #7148308c; border-radius: 7px; background: #2d1d14; color: #f3c29a; font-size: 10px; }
.top-actions > button { width: 35px; padding: 0; font-size: 18px; cursor: pointer; }
.top-actions > button.logout-top { width: auto; padding: 0 9px; font-size: 9px; }
.home-link:hover, .top-actions > button:hover { border-color: var(--orange); box-shadow: 0 0 14px #ff963f2a; }
.content-section { scroll-margin-top: 20px; margin: 19px 0 27px; }
.welcome-card { position: relative; display: flex; min-height: 160px; align-items: center; justify-content: space-between; overflow: hidden; padding: 23px clamp(20px, 4vw, 34px); border: 1px solid #d67e4245; border-radius: 15px; background: radial-gradient(ellipse at 82% 12%, #ffae6330, transparent 28%), linear-gradient(113deg, #4a2719, #302017 58%, #3b2015); box-shadow: 0 12px 32px #0003, inset 0 0 35px #ff953b0b; }
.welcome-card h2 { margin: 9px 0 6px; font-size: clamp(19px, 3vw, 26px); letter-spacing: -.8px; }
.welcome-card p { max-width: 510px; margin: 0; color: #c3a995; font-size: 11px; line-height: 1.7; }
.welcome-orb { display: grid; flex: none; width: 83px; height: 83px; place-items: center; margin-right: 5%; border: 1px solid #ffbd7270; border-radius: 27px; background: linear-gradient(145deg, #ffbc693a, #ff8e2a18); color: #ffd094; font-size: 35px; box-shadow: 0 0 45px #ff8b3940, inset 0 0 22px #ffbe6724; transform: rotate(8deg); animation: orb-glow 3s ease-in-out infinite alternate; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-top: 13px; }
.stat-card { min-width: 0; display: grid; gap: 8px; padding: 15px; border: 1px solid #69452f80; border-radius: 10px; background: linear-gradient(145deg, #2c1d14, #21160f); box-shadow: 0 8px 22px #0002; }
.stat-card > span { color: #c09b7f; font-size: 8px; font-weight: 750; letter-spacing: .5px; }
.stat-card strong { overflow-wrap: anywhere; color: #fff0e2; font-size: clamp(17px, 2.2vw, 23px); }
.stat-card small { color: #a88f7c; font-size: 9px; }
.stat-card-glow { border-color: #ff9c4b79; background: linear-gradient(145deg, #482718, #2c1a11); box-shadow: 0 0 20px #ff91301c, inset 0 0 23px #ff9c4013; }
.stat-card-glow strong { color: #ffc17e; text-shadow: 0 0 15px #ff9b3b38; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 13px; margin: 0 0 13px; }
.section-heading h2 { margin: 5px 0 4px; font-size: 19px; letter-spacing: -.4px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.count-pill, .commission-badge { flex: none; padding: 7px 10px; border: 1px solid #8453338c; border-radius: 20px; background: #7a3e1c2b; color: #ffc281; font-size: 9px; font-weight: 750; }
.commission-badge { border-color: #f5a04f80; background: #b35e2e2b; box-shadow: 0 0 15px #ff963f19; }
.task-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.task-card, .empty-card, .panel { min-width: 0; border: 1px solid #563c2b; border-radius: 10px; background: linear-gradient(145deg, #291c14, #20160f); }
.task-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 13px 14px; }
.task-card.is-pinned { border-color: #edaa50b3; background: linear-gradient(120deg, #54371691, #2a1a10); box-shadow: 0 0 19px #ffc14723, inset 0 0 21px #ffc1470c; }
.task-info { min-width: 0; }
.task-title { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: #ffebd8; font-size: 11px; font-weight: 800; }
.task-title .pin-tag { color: #ffd370; font-size: 8px; }
.task-note { margin: 5px 0; color: #ae9a88; font-size: 9px; line-height: 1.55; overflow-wrap: anywhere; }
.task-progress { color: #927d6c; font-size: 8px; }
.task-action { display: grid; justify-items: end; gap: 8px; }
.task-reward { color: #ffc17c; font-size: 10px; font-weight: 850; white-space: nowrap; }
.task-action button, .primary-button { min-height: 32px; padding: 0 11px; border: 1px solid #e6924f; border-radius: 7px; background: linear-gradient(105deg, #ffc175, #fa8835); color: #2a1609; font-size: 9px; font-weight: 850; cursor: pointer; transition: .18s ease; }
.task-action button:hover, .primary-button:hover { box-shadow: 0 0 16px #ff8a3d4c; transform: translateY(-1px); }
.task-action button:disabled, .primary-button:disabled { opacity: .5; cursor: default; transform: none; }
.empty-card { grid-column: 1 / -1; padding: 20px; color: #a99482; text-align: center; font-size: 10px; }
.fine-print { margin: 9px 0 0; color: #9b8878; font-size: 9px; line-height: 1.65; }
.wallet-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: start; gap: 12px; }
.wallet-main, .wallet-history { display: grid; gap: 11px; }
.wallet-balance { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.wallet-balance > div { display: grid; gap: 7px; padding: 13px; border: 1px solid #74503590; border-radius: 9px; background: linear-gradient(135deg, #402718, #27190f); }
.wallet-balance span, .referral-stats span { color: #bd9d82; font-size: 8px; font-weight: 750; letter-spacing: .45px; }
.wallet-balance strong { color: #ffd09a; font-size: clamp(15px, 2vw, 21px); overflow-wrap: anywhere; }
.panel { padding: 14px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 11px; }
.panel-heading h3 { margin: 0; color: #ffead6; font-size: 12px; }
.panel-heading p { margin: 4px 0 0; color: #a8917e; font-size: 9px; line-height: 1.5; }
.withdrawal-form { display: grid; gap: 7px; }
.withdrawal-form label, .password-form label { margin-top: 2px; color: #d9c4b1; font-size: 9px; font-weight: 650; }
.withdrawal-form input:not([type="checkbox"]), .withdrawal-form select, .password-form input { width: 100%; min-height: 34px; padding: 0 9px; border: 1px solid #634832; border-radius: 6px; background: #1a110c; color: #fff0e1; font-size: 10px; }
.withdrawal-form input:focus, .withdrawal-form select:focus, .password-form input:focus { border-color: #e89653; outline: 2px solid #ed964125; }
.form-fields { display: grid; gap: 6px; }
.withdrawal-form .primary-button { min-height: 35px; margin-top: 3px; }
.inline-message { min-height: 13px; margin: 0; color: #e7b780; font-size: 9px; line-height: 1.5; }
.rows-list { display: grid; gap: 7px; }
.money-row { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 9px; padding: 9px; border: 1px solid #503827; border-radius: 7px; background: #1d140f; }
.money-row > div { min-width: 0; }
.money-row strong { display: block; color: #f4dfcc; font-size: 9px; overflow-wrap: anywhere; }
.money-row span { display: block; margin-top: 4px; color: #a8917e; font-size: 8px; }
.money-amount { flex: none; color: #ffc17c !important; font-size: 9px !important; font-weight: 800; }
.money-positive { color: #a5d89a !important; }
.money-negative { color: #ff9a80 !important; }
.mini-action { flex: none; padding: 5px 7px; border: 1px solid #875733; border-radius: 5px; background: #3b2516; color: #ffcf9f; font-size: 8px; cursor: pointer; }
.referral-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(190px, .7fr); gap: 11px; }
.referral-card { padding: 16px; border: 1px solid #d7824e7a; border-radius: 11px; background: radial-gradient(ellipse at 88% 0%, #ff9f4230, transparent 34%), linear-gradient(135deg, #48281b, #2a1b13); box-shadow: inset 0 0 27px #ff983914; }
.share-box { display: flex; min-width: 0; align-items: center; gap: 8px; margin-top: 10px; padding: 7px; border: 1px solid #8c583b7d; border-radius: 7px; background: #1a110cba; }
.share-box code { flex: 1; min-width: 0; overflow: hidden; color: #ffdab2; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.share-box button { flex: none; min-height: 29px; padding: 0 9px; border: 1px solid #e79b56; border-radius: 5px; background: #c86d2e; color: white; font-size: 8px; font-weight: 800; cursor: pointer; }
.referral-card p { margin: 10px 0 0; color: #c3a68d; font-size: 9px; line-height: 1.65; }
.referral-stats { display: grid; gap: 9px; }
.referral-stats > div { display: grid; align-content: center; gap: 8px; padding: 12px; border: 1px solid #61442f; border-radius: 9px; background: #241810; }
.referral-stats strong { color: #ffc17c; font-size: 18px; overflow-wrap: anywhere; }
.referral-list { margin-top: 10px; }
.feature-placeholder { display: flex; align-items: center; gap: 14px; padding: 17px; }
.feature-placeholder > span { display: grid; flex: none; width: 38px; height: 38px; place-items: center; border: 1px solid #ad653e; border-radius: 10px; background: #6c351f54; color: #ffb277; font-size: 18px; box-shadow: 0 0 17px #ff92391e; }
.feature-placeholder h3 { margin: 0; color: #ffebd8; font-size: 11px; }
.feature-placeholder p { margin: 5px 0 0; color: #a8917e; font-size: 9px; line-height: 1.6; }
.profile-panel { display: grid; grid-template-columns: minmax(170px, .7fr) minmax(240px, 1fr); align-items: start; gap: 20px; }
.profile-identity { display: flex; align-items: center; gap: 10px; }
.profile-avatar { width: 43px; height: 43px; font-size: 16px; }
.profile-identity > div { display: grid; gap: 4px; min-width: 0; }
.profile-identity strong { color: #ffebd8; font-size: 11px; }
.profile-identity > div > span { color: #a8917e; font-size: 9px; overflow-wrap: anywhere; }
.profile-identity > div > small { max-width: 330px; color: #9d8978; font-size: 8px; line-height: 1.5; }
.profile-contact-form { display: grid; gap: 8px; padding: 14px; border: 1px solid #563728; border-radius: 10px; background: #21150f; }
.profile-contact-form { grid-column: 1 / -1; }
.profile-contact-form h3 { margin: 0 0 3px; color: #ffe4cc; font-size: 11px; }
.profile-contact-form label { color: #d9c4b1; font-size: 9px; }
.profile-contact-form label span { color: #a8917e; }
.profile-contact-form input { width: 100%; min-height: 39px; padding: 0 10px; border: 1px solid #5c4435; border-radius: 7px; background: #170f0b; color: #fff2e5; font: inherit; font-size: 10px; }
.profile-contact-form button { justify-self: start; }
.password-form { display: grid; gap: 7px; }
.secondary-button { min-height: 33px; margin-top: 3px; border: 1px solid #a3683f; border-radius: 6px; background: #4c2b1b; color: #ffd0a0; font-size: 9px; font-weight: 750; cursor: pointer; }
.secondary-button:hover { border-color: #ffb66f; box-shadow: 0 0 13px #ff933128; }
.page-error { padding: 10px 12px; border: 1px solid #b95a4e; border-radius: 7px; background: #54221e; color: #ffb2a5; font-size: 10px; }
footer { margin-top: 36px; padding: 15px 0; border-top: 1px solid #513724; color: #917968; font-size: 9px; text-align: center; }
@keyframes orb-glow { to { box-shadow: 0 0 55px #ff8b3965, inset 0 0 27px #ffbe6740; transform: rotate(-4deg) translateY(-3px); } }
@media (max-width: 1000px) { .sidebar { width: 215px; padding-right: 11px; padding-left: 11px; } .main-content { width: calc(100% - 215px); margin-left: 215px; padding-right: 22px; padding-left: 22px; } .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .sidebar { position: sticky; inset: 0 0 auto; width: 100%; padding: 10px 12px 8px; border-right: 0; border-bottom: 1px solid #613a2550; } .sidebar-brand { padding: 0 4px 9px; font-size: 16px; } .sidebar-brand .brand-mark { width: 30px; height: 30px; } .sidebar-label, .sidebar-bottom, .sidebar-wallet { display: none; } .sidebar nav { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; } .nav-link { min-height: 36px; flex: none; gap: 7px; padding: 0 9px; font-size: 9px; } .nav-link > span { width: auto; font-size: 13px; } .nav-link > i, .nav-link > b { display: none; } .main-content { width: 100%; margin: 0; padding: 18px 14px 35px; } .page-top { margin-bottom: 16px; } .page-kicker { font-size: 7px; } .page-top h1 { font-size: 21px; } .content-section { margin: 17px 0 24px; } .welcome-card { min-height: 142px; padding: 18px; } .welcome-orb { width: 58px; height: 58px; border-radius: 20px; font-size: 26px; } .stats-grid { gap: 8px; } .stat-card { padding: 11px; } .stat-card > span { font-size: 7px; } .task-grid, .wallet-layout { grid-template-columns: 1fr; } .referral-layout { grid-template-columns: 1fr; } .referral-stats { grid-template-columns: 1fr 1fr; } .profile-panel { grid-template-columns: 1fr; gap: 15px; } .section-heading h2 { font-size: 17px; } }
@media (max-width: 400px) { .top-actions .home-link { display: none; } .stats-grid { grid-template-columns: 1fr 1fr; } .wallet-balance { grid-template-columns: 1fr; } .section-heading { align-items: start; } .count-pill, .commission-badge { margin-top: 5px; font-size: 8px; } .task-card { padding: 11px; } .task-action button { padding: 0 7px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

.blossom-layer { position: fixed; z-index: 9999; inset: 0; overflow: hidden; pointer-events: none; }
.petal { position: absolute; top: -28px; width: 18px; height: 22px; opacity: 0; animation: petal-fall var(--fall-duration) linear var(--fall-delay) infinite; }
.petal i { position: absolute; inset: 2px 4px 4px 3px; display: block; border: 1px solid #ffd0df83; border-radius: 70% 12% 70% 18%; background: radial-gradient(ellipse at 29% 31%, #fff4ee, transparent 35%), linear-gradient(135deg, #ffc3d4e8, #e982adad 74%, #d56a94a8); box-shadow: 0 0 12px #ff9ec142, inset 1px 1px 4px #fff8; transform: scale(var(--petal-scale)) rotate(28deg); animation: petal-sway var(--sway-duration) ease-in-out infinite alternate; }
.petal-small { width: 12px; height: 15px; }
.content-section:not([hidden]) { animation: page-enter .48s cubic-bezier(.2,.7,.2,1) both; }
.stats-grid .stat-card, .task-card, .shortcut-card, .panel { animation: card-enter .42s ease both; }
.stats-grid .stat-card:nth-child(2) { animation-delay: 55ms; }
.stats-grid .stat-card:nth-child(3) { animation-delay: 110ms; }
.stats-grid .stat-card:nth-child(4) { animation-delay: 165ms; }
.task-grid .task-card:nth-child(2n) { animation-delay: 70ms; }
.task-grid .task-card:nth-child(3n) { animation-delay: 120ms; }
.nav-link, .home-link, .top-actions button, .shortcut-card { transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease; }
.nav-link:hover, .shortcut-card:hover { transform: translateX(3px); }
.page-top h1 { font-size: clamp(25px, 2.5vw, 34px); }
.page-kicker, .section-eyebrow { font-size: 9px; }
.sidebar-label { font-size: 9px; }
.nav-link { min-height: 46px; font-size: 12px; }
.content-section { max-width: 1720px; margin-top: 24px; margin-bottom: 34px; }
.welcome-card { min-height: 185px; }
.welcome-card h2 { font-size: clamp(25px, 2.5vw, 34px); }
.welcome-card p { max-width: 650px; font-size: 13px; }
.stats-grid { gap: 15px; margin-top: 17px; }
.stat-card { gap: 10px; padding: 19px; }
.stat-card > span { font-size: 9px; }
.stat-card strong { font-size: clamp(22px, 2vw, 30px); }
.stat-card small { font-size: 11px; }
.overview-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.overview-gift-code { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, .7fr) auto; align-items: center; gap: 11px; margin-top: 12px; padding: 14px; }
.overview-gift-code > div { display: grid; gap: 4px; }
.overview-gift-code > div > strong { color: #ffecd9; font-size: 12px; }
.overview-gift-code > div > small { color: #b49a84; font-size: 9px; }
.overview-gift-code input { width: 100%; min-width: 0; min-height: 40px; padding: 0 11px; border: 1px solid #61432f; border-radius: 8px; outline: none; background: #190f0b; color: #fff0e1; font: inherit; font-size: 10px; }
.overview-gift-code input:focus { border-color: #f3a05b; box-shadow: 0 0 0 3px #f3a05b20; }
.overview-gift-code .primary-button { min-height: 40px; }
.overview-gift-code .inline-message { grid-column: 1 / -1; margin: 0; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; clip-path: inset(50%) !important; }
.shortcut-card { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 15px; border: 1px solid #6c4933; border-radius: 10px; background: linear-gradient(135deg, #302016, #23170f); }
.shortcut-card:hover { border-color: #e79552; background: #42281a; box-shadow: 0 0 21px #ff963f20; }
.shortcut-card > span { display: grid; flex: none; width: 36px; height: 36px; place-items: center; border: 1px solid #e58e51; border-radius: 9px; background: #763b2166; color: #ffc07e; font-size: 18px; }
.shortcut-card > div { display: grid; min-width: 0; gap: 4px; }
.shortcut-card strong { color: #ffecd9; font-size: 12px; }
.shortcut-card small { color: #b49a84; font-size: 10px; }
.shortcut-card > b { margin-left: auto; color: #ffc07e; font-size: 16px; }
.section-heading h2 { font-size: 23px; }
.section-heading p { font-size: 12px; }
.count-pill, .commission-badge { padding: 8px 12px; font-size: 10px; }
.task-grid { gap: 14px; }
.task-card { min-height: 116px; gap: 16px; padding: 17px 19px; }
.task-title { font-size: 13px; }
.task-note { font-size: 11px; }
.task-progress, .task-reward { font-size: 10px; }
.task-action button, .primary-button { min-height: 38px; padding: 0 14px; font-size: 10px; }
.fine-print { font-size: 10px; }
.wallet-layout { gap: 16px; }
.wallet-balance { gap: 12px; }
.wallet-balance > div { min-height: 94px; padding: 16px; }
.wallet-balance span, .referral-stats span { font-size: 9px; }
.wallet-balance strong { font-size: clamp(20px, 1.9vw, 27px); }
.panel { padding: 18px; }
.panel-heading h3 { font-size: 14px; }
.panel-heading p { font-size: 10px; }
.withdrawal-form, .password-form { gap: 9px; }
.withdrawal-form label, .password-form label { font-size: 10px; }
.withdrawal-form input:not([type="checkbox"]), .withdrawal-form select, .password-form input { min-height: 39px; font-size: 11px; }
.money-row { padding: 11px 12px; }
.money-row strong, .money-amount { font-size: 10px !important; }
.money-row span { font-size: 9px; }
.referral-card { padding: 20px; }
.referral-card p { font-size: 11px; }
.share-box { padding: 9px; }
.share-box code { font-size: 11px; }
.share-box button { min-height: 34px; padding: 0 13px; font-size: 9px; }
.referral-stats strong { font-size: 22px; }
.feature-placeholder { min-height: 105px; padding: 20px; }
.feature-placeholder h3 { font-size: 13px; }
.feature-placeholder p { font-size: 11px; }
.profile-identity strong { font-size: 13px; }
.profile-identity > div > span { font-size: 10px; }
.secondary-button { min-height: 37px; font-size: 10px; }
.page-error { font-size: 11px; }
footer { font-size: 10px; }
@keyframes petal-fall { 0% { opacity: 0; transform: translate3d(0, -4vh, 0) rotate(0deg); } 9% { opacity: .68; } 85% { opacity: .55; } 100% { opacity: 0; transform: translate3d(0, 108vh, 0) rotate(390deg); } }
@keyframes petal-sway { from { translate: -16px 0; rotate: -28deg; } to { translate: 18px 0; rotate: 34deg; } }
@keyframes page-enter { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@keyframes card-enter { from { opacity: 0; translate: 0 7px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 1000px) {
  .main-content { width: calc(100% - 215px); margin-left: 215px; padding-right: 22px; padding-left: 22px; }
  .content-section { margin-top: 19px; margin-bottom: 27px; }
  .welcome-card { min-height: 160px; }
  .welcome-card h2 { font-size: clamp(19px, 3vw, 26px); }
  .welcome-card p { font-size: 11px; }
  .stats-grid { gap: 11px; }
  .stat-card { padding: 12px; }
  .stat-card strong { font-size: clamp(17px, 2.2vw, 23px); }
  .stat-card > span { font-size: 8px; }
  .stat-card small { font-size: 9px; }
  .task-title { font-size: 11px; }
  .task-note { font-size: 9px; }
  .overview-shortcuts { gap: 9px; }
}
@media (max-width: 720px) {
  .main-content { width: 100%; margin: 0; padding: 18px 14px 35px; }
  .blossom-layer { opacity: .55; }
  .overview-shortcuts { grid-template-columns: 1fr; }
  .overview-gift-code { grid-template-columns: minmax(0, 1fr) auto; }
  .overview-gift-code > div { grid-column: 1 / -1; }
  .overview-gift-code input { grid-column: 1; }
  .overview-gift-code .primary-button { grid-column: 2; }
  .shortcut-card { padding: 12px; }
  .section-heading h2 { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .blossom-layer { display: none; } }

.activity-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 15px; }
.chart-panel { min-width: 0; overflow: hidden; }
.activity-chart { min-height: 160px; }
.activity-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid-line { stroke: #75543d; stroke-dasharray: 3 5; stroke-width: 1; opacity: .55; }
.chart-axis-label { fill: #a9927e; font-family: inherit; font-size: 10px; }
.chart-area { fill: #ff963f1c; }
.chart-line { fill: none; stroke: #ffab60; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; filter: drop-shadow(0 0 5px #ff963f66); }
.chart-point { fill: #ffd09a; stroke: #3a2113; stroke-width: 2; }
.chart-point:focus { outline: none; stroke: #fff1dd; stroke-width: 4; }
.task-history-panel { margin-top: 13px; }
.leaderboard-hero { display: grid; gap: 5px; margin: 0 0 14px; padding: 15px 17px; border: 1px solid #7a5433; border-radius: 11px; background: radial-gradient(ellipse at 15% 0, #ff9a3d2b, transparent 62%), linear-gradient(120deg, #40260f, #21150d); }
.leaderboard-hero-eyebrow { color: #f4b774; font-size: 8px; font-weight: 800; letter-spacing: .9px; }
.leaderboard-hero h3 { margin: 0; color: #ffe6c8; font-size: 14px; font-weight: 800; }
.leaderboard-hero p { margin: 0; color: #c2a68d; font-size: 9px; line-height: 1.6; }
.leaderboard-stage { margin: 0 0 14px; }
.leaderboard-stage-title { margin: 0 0 9px; color: #ffd9a8; font-size: 10px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.leaderboard-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 12px; }
.leaderboard-podium > .empty-list { grid-column: 1 / -1; }
.podium-2 { order: 1; }
.podium-1 { order: 2; }
.podium-3 { order: 3; }
.podium-card { position: relative; display: grid; justify-items: center; gap: 7px; min-width: 0; padding: 20px 12px 12px; border: 1px solid #4a3529; border-radius: 14px; background: linear-gradient(165deg, #1f160f, #150f0b); text-align: center; }
.podium-1 { min-height: 178px; border-color: #e2a94f; background: radial-gradient(ellipse at 50% 0, #ffb95b2e, transparent 62%), linear-gradient(165deg, #2c1d11, #1a110a); box-shadow: 0 0 26px #ffb44a26, inset 0 0 20px #ffbf4a10; }
.podium-2, .podium-3 { min-height: 152px; }
.podium-rank { position: absolute; top: 8px; left: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid #6d4a33; border-radius: 999px; background: #22170f; color: #e9c9a4; font-size: 9px; font-weight: 800; }
.podium-1 .podium-rank { border-color: #e6b25c; background: #3a2411; color: #ffd79a; }
.podium-avatar { display: grid; width: 58px; height: 58px; place-items: center; overflow: hidden; border: 2px solid #5a4030; border-radius: 50%; background: linear-gradient(150deg, #3a2618, #1f150f); color: #ffd0a0; font-size: 20px; font-weight: 800; }
.podium-1 .podium-avatar { width: 68px; height: 68px; border-color: #f0b95f; box-shadow: 0 0 20px #ffb44a3d; }
.podium-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.podium-name { overflow-wrap: anywhere; color: #ffead6; font-size: 12px; font-weight: 800; }
.podium-tasks { color: #a8917e; font-size: 9px; }
.podium-income { display: block; width: 100%; margin-top: 2px; padding: 5px 8px; border: 1px solid #4d3728; border-radius: 999px; background: #191110; color: #ffc17c; font-size: 10px; font-weight: 800; }
.podium-1 .podium-income { border-color: #e6b25c; background: linear-gradient(100deg, #4a3013, #6a451c); color: #ffe0ae; }
.leaderboard-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; table-layout: fixed; }
.leaderboard-table th { padding: 0 10px 4px; color: #8d7663; font-size: 8px; font-weight: 800; letter-spacing: .6px; text-align: left; text-transform: uppercase; }
.leaderboard-table th:first-child { width: 84px; }
.leaderboard-table th:nth-child(3) { width: 112px; }
.leaderboard-table th:nth-child(4) { width: 128px; }
.leaderboard-table th:nth-child(3), .leaderboard-table th:nth-child(4),
.leaderboard-table td:nth-child(3), .leaderboard-table td:nth-child(4) { text-align: right; }
.leaderboard-table td { padding: 8px 10px; border-top: 1px solid #3d2b1f; border-bottom: 1px solid #3d2b1f; background: #1a120d; color: #e4cfba; font-size: 10px; }
.leaderboard-table td:first-child { border-left: 1px solid #3d2b1f; border-radius: 9px 0 0 9px; }
.leaderboard-table td:last-child { border-right: 1px solid #3d2b1f; border-radius: 0 9px 9px 0; }
.leaderboard-table tr:hover td { background: #211710; }
.leaderboard-rank { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #533b2a; border-radius: 8px; background: #221710; color: #d9b28c; font-size: 10px; font-weight: 800; }
.leaderboard-person { display: flex; min-width: 0; align-items: center; gap: 9px; }
.leaderboard-avatar { display: grid; width: 30px; height: 30px; flex: none; place-items: center; overflow: hidden; border: 1px solid #543d2c; border-radius: 50%; background: linear-gradient(150deg, #3a2618, #1f150f); color: #ffd0a0; font-size: 12px; font-weight: 800; }
.leaderboard-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.leaderboard-person strong { display: block; overflow: hidden; color: #f6e2cf; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-person-info { min-width: 0; }
.leaderboard-handle { display: block; overflow: hidden; margin-top: 1px; color: #94806d; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-tasks { color: #e4cfba; font-size: 10px; font-weight: 750; }
.leaderboard-badge { display: inline-block; padding: 3px 9px; border: 1px solid #4f3a2b; border-radius: 999px; background: #241a13; color: #c9a888; font-size: 8px; font-weight: 850; letter-spacing: .6px; white-space: nowrap; }
.leaderboard-badge.is-top { border-color: #d9a441; background: linear-gradient(100deg, #3f2c10, #4d3712); color: #ffd286; }
.leaderboard-income { color: #ffc17c; font-size: 10px; font-weight: 800; }
.empty-list { display: grid; min-height: 65px; place-items: center; padding: 14px; color: #aa9481; font-size: 10px; text-align: center; }
.withdrawal-confirm { display: flex; align-items: flex-start; gap: 10px; padding: 11px; border: 1px solid #765033; border-radius: 8px; background: linear-gradient(110deg, #4a2b1b, #281a12); color: #e8c9a8 !important; font-size: 9px !important; line-height: 1.6; cursor: pointer; }
.withdrawal-confirm:has(input:checked) { border-color: #f39b51; box-shadow: 0 0 15px #ff963f1b; }
.withdrawal-confirm input[type="checkbox"] { box-sizing: border-box; flex: 0 0 16px; width: 16px; min-width: 16px; max-width: 16px; min-height: 16px; height: 16px; margin: 1px 0 0; padding: 0; accent-color: #f49448; cursor: pointer; }
.withdrawal-confirm input[type="checkbox"] { appearance: none; border: 1px solid #bd8155; border-radius: 4px; background: #1d1510; }
.withdrawal-confirm input[type="checkbox"]:checked { border-color: #ffad69; background: #e77a35; box-shadow: inset 0 0 0 3px #29170d; }
.withdrawal-confirm > span { display: grid; gap: 3px; }
.withdrawal-confirm strong { color: #ffce9b; font-size: 10px; }
.withdrawal-confirm small { color: #b99c83; font-size: 9px; line-height: 1.5; }
.rush-option { border-color: #b67c42; background: linear-gradient(110deg, #503617, #2d1c10); }
.rush-option[hidden] { display: none; }
.gift-layout { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr); align-items: start; gap: 14px; }
.gift-redeem-card { display: grid; justify-items: center; gap: 10px; padding: 26px; border-color: #a9603777; background: radial-gradient(ellipse at 50% 0, #ff963f20, transparent 58%), linear-gradient(145deg, #2f1d14, #21160f); }
.gift-icon { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid #d7834c; border-radius: 16px; background: #793e245c; color: #ffc17c; font-size: 25px; box-shadow: 0 0 24px #ff963f22; }
.gift-redeem-card h3 { margin: 2px 0 0; color: #ffead6; font-size: 15px; }
.gift-redeem-card > p { margin: 0; color: #b49a84; font-size: 10px; text-align: center; }
.gift-redeem-card label { width: 100%; margin: 6px 0 0; color: #d9c4b1; font-size: 10px; font-weight: 700; }
.gift-redeem-card input { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid #76503a; border-radius: 7px; outline: none; background: #1a110c; color: #fff0e1; font: inherit; font-size: 11px; letter-spacing: .5px; }
.gift-redeem-card input:focus { border-color: #e89653; box-shadow: 0 0 0 3px #ed964125; }
.gift-redeem-card .primary-button { width: 100%; min-height: 40px; }
.gift-redeem-card .inline-message { min-height: 15px; }
.gift-history-panel { min-height: 190px; }
.sidebar-bottom { display: flex; grid-template-columns: minmax(0, 1fr) 40px; align-items: center; gap: 6px; }
.sidebar-user { flex: 1; }
.sidebar-logout { display: grid !important; flex: none; width: 36px; height: 36px; place-items: center; padding: 0 !important; border: 1px solid #b94e633c !important; border-radius: 11px !important; background: linear-gradient(145deg, #54222e, #311923) !important; color: #ffafbb !important; font-size: 17px !important; cursor: pointer; }
.sidebar-logout:hover { border-color: #ff8295 !important; background: linear-gradient(145deg, #762a3c, #47202f) !important; box-shadow: 0 0 17px #f34f7040; transform: translateX(2px); }
.nav-link[data-route="quy-dinh"] { margin-top: auto; }
.chart-point-future { fill: #ffacbd; stroke: #633145; stroke-dasharray: 2 2; }
.withdrawal-method-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-bottom: 2px; }
.withdrawal-method-tab { min-height: 39px; padding: 0 8px; border: 1px solid #704759; border-radius: 8px; background: linear-gradient(110deg, #321e20, #28191a); color: #d5b4b6; font-size: 10px; font-weight: 750; cursor: pointer; transition: .2s ease; }
.withdrawal-method-tab:hover, .withdrawal-method-tab.is-active { border-color: #f17b83; background: linear-gradient(105deg, #8b3946, #a3484b); color: #fff2eb; box-shadow: 0 0 15px #ec66732c; }
.required-hint { color: #ff9ba8; font-size: 9px; }
.withdrawal-form input[type="file"] { height: auto; min-height: 38px; padding: 7px; border-style: dashed; border-color: #a75d72; background: #25171a; }
.withdrawal-form input[type="file"]::file-selector-button { margin-right: 9px; padding: 5px 8px; border: 1px solid #b76173; border-radius: 5px; background: #4a2530; color: #ffd2d6; font-size: 9px; cursor: pointer; }
.bank-qr-preview { display: block; width: min(100%, 210px); max-height: 210px; justify-self: start; padding: 5px; border: 1px solid #b55f78; border-radius: 9px; background: #fff; object-fit: contain; }
.bank-qr-preview[hidden] { display: none; }
.card-choice-group { min-width: 0; margin: 2px 0 5px; padding: 0; border: 0; }
.card-choice-group legend { margin-bottom: 8px; color: #ead3d1; font-size: 10px; font-weight: 750; }
.card-brand-choices { display: grid; width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.card-brand-choice { display: grid; width: 100%; aspect-ratio: 1; grid-template-rows: minmax(0, 1fr) auto; gap: 5px; min-width: 0; padding: 7px; border: 1px solid #67414c; border-radius: 12px; background: linear-gradient(145deg, #2c1b20, #21161a); color: #efd8d8; font-size: 9px; font-weight: 750; cursor: pointer; transition: .2s ease; }
.card-brand-choice img { display: block; width: 100%; height: 100%; min-height: 0; border-radius: 8px; object-fit: contain; background: #fff; }
.card-brand-choice[aria-pressed="true"] { border-color: #ff8e9a; background: linear-gradient(145deg, #592936, #351d28); box-shadow: 0 0 15px #ef607532; }
.card-brand-choice:disabled { opacity: .42; filter: grayscale(.75); cursor: not-allowed; }
.card-denomination-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 112px)); gap: 8px; }
.card-denomination-choice { width: 100%; min-height: 40px; border: 1px solid #65404a; border-radius: 9px; background: #24171b; color: #f1dad7; font-size: 10px; font-weight: 800; cursor: pointer; }
.card-denomination-choice[aria-pressed="true"] { border-color: #fb8f9a; background: linear-gradient(115deg, #873e4b, #a94b50); color: #fff1e9; box-shadow: 0 0 12px #e65d7430; }
.card-denomination-choice:disabled { opacity: .38; cursor: not-allowed; }
.gift-icon { border-color: #f08d9a; background: linear-gradient(145deg, #6a2d3e, #4a2638); color: #ffd0d6; box-shadow: 0 0 24px #ed607422; }
.gift-redeem-card { border-color: #a85d7177; background: radial-gradient(ellipse at 50% 0, #f16f8120, transparent 58%), linear-gradient(145deg, #301b20, #21161a); }
.page-top h1 { font-size: clamp(23px, 2.25vw, 31px); }
.section-heading h2 { font-size: 21px; }
.main-content { padding-top: 24px; }
.stats-grid { gap: 12px; }
.stat-card { padding: 16px; }
.wallet-layout { grid-template-columns: minmax(0, 1fr); gap: 17px; }
.wallet-main { gap: 14px; }
.wallet-history { gap: 12px; }
.withdrawal-form { gap: 13px; padding: clamp(19px, 2.4vw, 30px); border-color: #9d556777; background: radial-gradient(ellipse at 92% 0, #ec658716, transparent 40%), linear-gradient(145deg, #291a1c, #1e1518); box-shadow: 0 16px 44px #0003, 0 0 28px #e75c7311; }
.withdrawal-form .panel-heading { margin-bottom: 2px; }
.withdrawal-form .panel-heading h3 { font-size: 17px; }
.withdrawal-form .panel-heading p { font-size: 11px; }
.withdrawal-method-tab { min-height: 48px; font-size: 12px; }
.withdrawal-form label { font-size: 11px; }
.withdrawal-form input:not([type="file"]):not([type="checkbox"]), .withdrawal-form select { min-height: 45px; padding: 10px 12px; font-size: 12px; }
.withdrawal-form .fine-print { font-size: 10px; }
.card-brand-choices { grid-template-columns: repeat(4, minmax(0, 132px)); gap: 12px; }
.card-brand-choices { grid-template-columns: repeat(4, minmax(0, 132px)); justify-content: space-between; gap: 12px; }
.card-denomination-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-brand-choice { gap: 8px; padding: 9px; font-size: 11px; }
.card-denomination-choice { min-height: 48px; font-size: 12px; }
.withdrawal-form .primary-button { min-height: 48px; font-size: 12px; }
.wallet-history > .panel { min-height: 160px; padding: clamp(18px, 2vw, 26px); }
.rows-list.empty-list { display: grid; min-height: 90px; place-items: center; }
.gift-layout { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.gift-redeem-card { width: min(100%, 780px); min-height: 290px; justify-items: stretch; align-content: center; padding: clamp(24px, 4vw, 48px); border-radius: 18px; box-shadow: 0 20px 55px #0004, 0 0 34px #ed607522; }
.gift-redeem-card h3 { font-size: clamp(20px, 2.5vw, 27px); }
.gift-redeem-card p { font-size: 12px; }
.gift-redeem-card input { min-height: 54px; font-size: 16px; letter-spacing: 1.2px; }
.gift-redeem-card .primary-button { min-height: 49px; font-size: 12px; }
.rules-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.rule-card { position: relative; min-height: 190px; overflow: hidden; border-color: #874c5c77; background: radial-gradient(ellipse at 100% 0, #ed637619, transparent 44%), linear-gradient(145deg, #27191d, #1c1518); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.rule-card:hover { transform: translateY(-4px); border-color: #f18b98; box-shadow: 0 12px 28px #0003, 0 0 22px #ef71801c; }
.rule-number { display: inline-grid; width: 31px; height: 31px; place-items: center; margin-bottom: 13px; border: 1px solid #f18a974f; border-radius: 10px; background: #8c3d4a45; color: #ffb3bf; font-size: 10px; font-weight: 850; }
.rule-card h3 { margin: 0 0 8px; color: #ffe7e3; font-size: 14px; }
.rule-card p, .rules-disclaimer { margin: 0; color: #c2aaaa; font-size: 11px; line-height: 1.8; }
.rules-disclaimer { margin-top: 12px; padding: 13px 16px; border-left: 3px solid #eb7585; border-radius: 0 8px 8px 0; background: #382027; color: #f3c6cb; }
.rule-card:nth-child(2n) { animation-delay: 80ms; }
@media (max-width: 720px) {
  .activity-chart-grid { grid-template-columns: 1fr; }
  .gift-layout { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr; }
  .card-brand-choices { grid-template-columns: repeat(2, minmax(0, 96px)); justify-content: space-between; }
  .leaderboard-podium { gap: 7px; }
  .podium-card { padding: 13px 7px; }
  .podium-name { font-size: 10px; }
  .podium-tasks { font-size: 8px; }
  .podium-income { font-size: 9px; }
  .sidebar-bottom { position: absolute; top: 8px; right: 12px; display: flex; margin: 0; padding: 0; border: 0; }
  .sidebar-user { display: none; }
  .sidebar nav { padding-right: 48px; }
  .card-brand-choices { grid-template-columns: repeat(2, minmax(0, 88px)); justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dashboard-page-loader.is-loading::after { animation: none; transform: translateX(0); }
  .content-section:not([hidden]) { animation: none; }
}

/* v16 — bố cục tổng quan, QR nổi bật, giftcode và chat hỗ trợ */
[hidden] { display: none !important; }
.sidebar-wallet { gap: 4px; }
.sidebar-wallet::after { content: ""; display: block; width: 38px; height: 2px; margin-top: 4px; border-radius: 2px; background: linear-gradient(90deg, #ff9d4d, transparent); }
.stat-card-balance { border-color: #2f6b52; background: linear-gradient(145deg, #1d4737, #14261f); box-shadow: inset 0 0 28px #2b8f5d1c; }
.stat-card-balance strong { color: #a4f3c5; }
.stat-card { transition: transform .2s ease, border-color .2s ease; }
.stat-card:hover { transform: translateY(-2px); border-color: #a8703f; }
.overview-board-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.overview-board { display: grid; gap: 10px; padding: 16px; align-content: start; }
.overview-board .panel-heading { margin-bottom: 0; }
.overview-task-list { display: grid; gap: 8px; }
.overview-task-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid #4a3828; border-radius: 9px; background: #1a1612; text-decoration: none; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.overview-task-row:hover { transform: translateX(3px); border-color: #c98a4f; background: #221a12; }
.overview-task-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: #33220f; font-size: 16px; animation: taskFloat 4s ease-in-out infinite; }
.overview-task-row div { display: grid; min-width: 0; gap: 2px; }
.overview-task-row strong { overflow: hidden; color: #f4e2ca; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.overview-task-row small { overflow: hidden; color: #a2927f; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.overview-task-row b { color: #ffb26b; font-size: 11px; font-variant-numeric: tabular-nums; }
.panel-link { color: #ffb273; font-size: 9px; text-decoration: none; border-bottom: 1px solid #ffb27355; }
.panel-link:hover { color: #ffd3a6; }
@keyframes taskFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.qr-highlight { display: grid; gap: 8px; margin-top: 6px; padding: 14px; border: 1px dashed #e8913f; border-radius: 12px; background: linear-gradient(140deg, #3a230f, #221711); box-shadow: 0 0 24px #ff922b1a; }
.qr-highlight-head { display: flex; align-items: center; gap: 8px; }
.qr-highlight-head strong { color: #ffe0b8; font-size: 12px; }
.qr-highlight p { margin: 0; color: #c9ab8b; font-size: 10px; line-height: 1.6; }
.qr-badge { padding: 2px 7px; border-radius: 999px; background: #ff9d3c; color: #241203; font-size: 8px; font-weight: 900; letter-spacing: .6px; animation: badgePulse 2.6s ease-in-out infinite; }
@keyframes badgePulse { 0%, 100% { box-shadow: 0 0 0 0 #ff9d3c66; } 50% { box-shadow: 0 0 0 7px #ff9d3c00; } }
.qr-drop { display: grid; justify-items: center; gap: 3px; padding: 16px; border: 1px solid #6a4a2c; border-radius: 10px; background: #171310; color: #ffd7ab; cursor: pointer; text-align: center; transition: border-color .2s ease, background .2s ease; }
.qr-drop:hover { border-color: #ffb066; background: #211a13; }
.qr-drop > span { font-size: 20px; }
.qr-drop b { font-size: 12px; }
.qr-drop small { color: #a8947c; font-size: 9px; }
.card-brand-choice.is-out-of-stock, .card-denomination-choice.is-out-of-stock { opacity: .62; filter: grayscale(.35); }
.card-brand-choice[aria-pressed="true"] { border-color: #ff9d3c; background: #2e1d12; box-shadow: 0 0 20px #ff9d3c4d, inset 0 0 16px #ff9d3c14; transform: translateY(-2px); }
.card-denomination-choice[aria-pressed="true"] { border-color: #ffd166; background: #3a2c12; color: #ffe9a8; box-shadow: 0 0 18px #ffd16640; }
.card-brand-choice[aria-pressed="true"]::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 1px #ffb06666; pointer-events: none; }
.card-brand-choice { position: relative; }
.gift-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.gift-redeem-card { width: 100%; min-height: 0; display: grid; gap: 12px; align-content: start; padding: 22px; border-color: #7c4b2a; background: linear-gradient(150deg, #2a1a11, #1b1410); }
.gift-card-head { display: flex; align-items: center; gap: 12px; }
.gift-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 12px; background: linear-gradient(145deg, #8a3a1b, #3c1f10); font-size: 21px; box-shadow: inset 0 0 16px #ffd0a030; }
.gift-card-head h3 { margin: 0; color: #ffe6c6; font-size: 18px; }
.gift-card-head p { margin: 3px 0 0; color: #b8a08a; font-size: 10px; }
.gift-redeem-card label { color: #e6b183; font-size: 9px; font-weight: 850; letter-spacing: .9px; }
.gift-redeem-card input { min-height: 46px; letter-spacing: 1px; text-transform: uppercase; }
.gift-note-card { display: grid; gap: 9px; padding: 18px; border-color: #4b3a2c; background: #191512; }
.gift-note-card h3 { display: flex; align-items: center; gap: 8px; margin: 0; color: #f0dcc4; font-size: 13px; }
.gift-note-card ul { display: grid; gap: 7px; margin: 0; padding-left: 16px; color: #aba08f; font-size: 10px; line-height: 1.6; }
.gift-support-link { justify-self: start; color: #ffbf85; font-size: 10px; text-decoration: none; border-bottom: 1px solid #ffbf8555; }
.support-widget { position: fixed; z-index: 40; right: 22px; bottom: 22px; display: grid; gap: 10px; justify-items: end; }
.support-fab { display: inline-flex; align-items: center; gap: 8px; padding: 11px 15px; border: 1px solid #8c5a2c; border-radius: 999px; background: linear-gradient(140deg, #8a4a1d, #43230f); color: #ffe6c8; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; box-shadow: 0 12px 30px #0005, 0 0 22px #ff9c3c22; }
.support-fab:hover { border-color: #ffc07b; }
.support-fab i { display: grid; min-width: 17px; height: 17px; place-items: center; border-radius: 999px; background: #ff5a4d; color: #fff; font-size: 8px; font-style: normal; }
.support-panel { display: grid; width: min(360px, calc(100vw - 32px)); max-height: min(520px, 70vh); grid-template-rows: auto minmax(120px, 1fr) auto auto; overflow: hidden; border: 1px solid #6d4526; border-radius: 14px; background: #171310; box-shadow: 0 22px 60px #0007; }
.support-panel[hidden] { display: none; }
.support-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; background: linear-gradient(120deg, #6c3517, #3a1e10); }
.support-head strong { display: block; color: #ffe4c4; font-size: 12px; }
.support-head span { display: flex; align-items: center; gap: 5px; color: #d6bfa5; font-size: 9px; }
.support-head i { width: 6px; height: 6px; border-radius: 999px; background: #58d68d; box-shadow: 0 0 8px #58d68d; }
.support-head button { border: 0; background: none; color: #f0d6bb; font-size: 18px; line-height: 1; cursor: pointer; }
.support-messages { display: grid; gap: 8px; padding: 12px; overflow-y: auto; align-content: start; background: #13100e; }
.support-empty { display: grid; justify-items: center; gap: 4px; padding: 22px 12px; color: #a99a89; text-align: center; }
.support-empty span { font-size: 26px; }
.support-empty strong { color: #ffe0bb; font-size: 13px; }
.support-empty p { margin: 0; font-size: 10px; line-height: 1.6; }
.support-bubble { max-width: 85%; padding: 8px 10px; border-radius: 11px; font-size: 11px; line-height: 1.55; }
.support-bubble p { margin: 0; overflow-wrap: anywhere; }
.support-bubble time { display: block; margin-top: 3px; font-size: 8px; opacity: .65; }
.support-member { justify-self: end; border: 1px solid #8a5528; border-bottom-right-radius: 3px; background: #4a2a13; color: #ffe9d2; }
.support-admin { justify-self: start; border: 1px solid #4c4133; border-bottom-left-radius: 3px; background: #241f19; color: #eadfd0; }
.support-form { display: flex; gap: 6px; padding: 9px; border-top: 1px solid #33291f; background: #17130f; }
.support-form input { flex: 1; min-width: 0; padding: 9px 10px; border: 1px solid #4a3b2c; border-radius: 8px; background: #100e0c; color: #f2e4d3; font: inherit; font-size: 11px; }
.support-form button { padding: 0 12px; border: 1px solid #8a5528; border-radius: 8px; background: #5a3317; color: #ffdcb5; cursor: pointer; }
.support-hint { margin: 0; padding: 0 10px 9px; color: #8f8173; font-size: 8px; text-align: center; background: #17130f; }
.locked-steps { margin: 14px 0; padding: 14px; border: 1px solid #54382c; border-radius: 10px; background: #1b1512; text-align: left; }
.locked-steps p { margin: 0 0 6px; color: #e9d5c0; font-size: 11px; }
.locked-steps ol { display: grid; gap: 6px; margin: 0; padding-left: 18px; color: #b9a898; font-size: 10px; line-height: 1.6; }
.locked-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.locked-card .locked-secondary { margin-top: 10px; border-color: #4d4237; background: #251f19; color: #d8c7b5; }
.locked-note { margin-top: 12px; color: #96887a; font-size: 9px; }
@media (max-width: 900px) {
  .overview-board-grid, .gift-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .support-widget { right: 12px; bottom: 12px; }
  .support-fab b { display: none; }
}
.task-card { position: relative; overflow: hidden; }
.task-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 34%, #ffb0660c 50%, transparent 66%); transform: translateX(-110%); animation: taskSheen 7s ease-in-out infinite; pointer-events: none; }
.task-icon { display: inline-block; animation: iconBob 3.6s ease-in-out infinite; }
.task-card.is-pinned::after { background: linear-gradient(115deg, transparent 30%, #ffd76a1f 50%, transparent 70%); animation-duration: 4.6s; }
@keyframes taskSheen { 0%, 55% { transform: translateX(-110%); } 100% { transform: translateX(110%); } }
@keyframes iconBob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-2px) rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) {
  .task-card::after, .task-icon, .overview-task-icon, .qr-badge { animation: none; }
}

/* Hoa anh đào nhiều màu, lấp lánh và thẻ nhiệm vụ mới */
.petal i {
  background:
    radial-gradient(ellipse at 29% 31%, #fff6f0, transparent 35%),
    linear-gradient(135deg, var(--petal-color, #ffc3d4), color-mix(in srgb, var(--petal-color, #ffc3d4) 70%, #b8324a));
  border-color: color-mix(in srgb, var(--petal-color, #ffc3d4) 55%, transparent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--petal-color, #ffc3d4) 55%, transparent);
}
.glitter-layer { position: fixed; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }
.glitter {
  position: absolute;
  width: var(--spark-size);
  height: var(--spark-size);
  border-radius: 50%;
  background: var(--spark-color);
  box-shadow: 0 0 8px var(--spark-color), 0 0 18px var(--spark-color);
  opacity: 0;
  animation: sparkle var(--spark-duration) ease-in-out var(--spark-delay) infinite;
}
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(.3); }
  45%, 55% { opacity: .95; transform: scale(1.35); }
}
.task-grid { align-items: stretch; }
.task-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #6d3c2c;
  border-radius: 15px;
  background: linear-gradient(158deg, #271813, #191310 70%);
  box-shadow: 0 12px 30px #0003;
}
.task-card.is-pinned {
  border-color: #d89b3a;
  background: radial-gradient(ellipse at 90% 0%, #ffb03a1c, transparent 55%), linear-gradient(158deg, #2f1f12, #1b1410 72%);
  box-shadow: 0 0 24px #ffb03a20, 0 12px 30px #0003;
}
.task-head { display: flex; align-items: center; gap: 10px; }
.task-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: none;
  place-items: center;
  border: 1px solid #6c4632;
  border-radius: 13px;
  background: linear-gradient(145deg, #332114, #221710);
  font-size: 22px;
}
.task-heading { flex: 1; min-width: 0; }
.task-title { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: #ffe9d5; font-size: 14px; font-weight: 850; }
.task-badge { padding: 2px 8px; border-radius: 999px; background: #3a2a1d; color: #ffc17c; font-size: 8px; font-weight: 900; letter-spacing: .5px; }
.task-badge.is-hot { background: linear-gradient(120deg, #8a2318, #c2413a); color: #ffe3d5; animation: hotPulse 2.6s ease-in-out infinite; }
@keyframes hotPulse { 0%, 100% { box-shadow: 0 0 0 0 #ff5f3d55; } 50% { box-shadow: 0 0 0 6px #ff5f3d00; } }
.task-sub { margin: 3px 0 0; color: #a89a8a; font-size: 10px; }
.task-slot { flex: none; color: #ffcf9a; font-size: 11px; font-weight: 850; letter-spacing: .4px; }
.task-meta { display: flex; align-items: center; gap: 8px; }
.task-reward { padding: 5px 10px; border: 1px solid #7c5a1e; border-radius: 8px; background: #3d2f12; color: #ffe07a; font-size: 12px; font-weight: 900; }
.task-ip { padding: 4px 9px; border: 1px solid #2e5d6e; border-radius: 8px; background: #132a33; color: #7fd9f2; font-size: 10px; font-weight: 700; }
.task-progressbar { height: 7px; overflow: hidden; border-radius: 999px; background: #3a2a24; }
.task-progressbar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff5f6d, #ffb347 55%, #ffd166); transition: width .5s ease; }
.task-card .task-note { margin: 0; min-height: 32px; color: #a99a8a; font-size: 10px; line-height: 1.6; }
.task-actions { margin-top: 2px; }
.task-join {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(120deg, #d92d3f, #ff5f3d 58%, #ff9d3c);
  color: #fff8f2;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 20px #d92d3f33;
  transition: filter .2s ease, transform .2s ease;
}
.task-join:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.task-join:disabled { background: #3a2a24; color: #9c8b7c; box-shadow: none; cursor: not-allowed; }
.task-success-dialog { width: min(430px, calc(100% - 28px)); padding: 0; border: 1px solid #8a5a2c; border-radius: 18px; background: #151110; color: #f4e6d6; box-shadow: 0 30px 90px #000a; }
.task-success-dialog::backdrop { background: #070505cc; backdrop-filter: blur(3px); }
.task-success-card { display: grid; justify-items: center; gap: 10px; padding: 26px 22px 18px; text-align: center; }
.success-ring { display: grid; width: 66px; height: 66px; place-items: center; border: 1px solid #3ecf7a; border-radius: 19px; background: #123322; color: #66f0a2; font-size: 32px; box-shadow: 0 0 30px #3ecf7a44; animation: successPop .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes successPop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.task-success-card h2 { margin: 0; color: #fff3e5; font-size: 22px; }
.success-caption { margin: 0; color: #bba997; font-size: 11px; }
.success-amount { display: grid; width: 100%; gap: 3px; padding: 13px; border: 1px solid #6f5520; border-radius: 12px; background: #241d0d; }
.success-amount strong { color: #ffd75e; font-size: 30px; line-height: 1.1; }
.success-amount span { color: #bfa76a; font-size: 8px; font-weight: 850; letter-spacing: .8px; }
.success-meta { display: flex; width: 100%; justify-content: space-between; gap: 10px; padding: 9px 4px; border-top: 1px solid #33291f; color: #a9998a; font-size: 10px; }
.success-meta b { color: #ffe1be; }
.success-meta em { padding: 2px 7px; border-radius: 999px; background: #16331f; color: #7ef0a5; font-style: normal; font-size: 9px; }
.success-actions { display: grid; width: 100%; gap: 7px; }
.success-actions .primary-button { min-height: 40px; justify-content: center; }
.success-open-link { color: #ffb273; font-size: 9px; text-decoration: none; }
.success-progress { width: 100%; height: 4px; overflow: hidden; border-radius: 999px; background: #2a221b; }
.success-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #ff5f6d, #ffd166 70%, #66f0a2); transition: width 1s linear; }
.task-success-card small { color: #8f8173; font-size: 9px; }
.support-fab {
  position: relative;
  width: 58px;
  height: 58px;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffb066, #c2531f 58%, #7a2f12);
  font-size: 21px;
  box-shadow: 0 12px 30px #0005, 0 0 24px #ff9c3c3d;
}
.support-fab b { position: absolute; right: 66px; bottom: 13px; padding: 4px 9px; border-radius: 999px; background: #241a12e8; color: #ffd7ac; font-size: 9px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.support-fab:hover b { opacity: 1; }
.support-fab::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 26deg, #ffb347 33deg, transparent 40deg, transparent 86deg, #ff4d6d 93deg, transparent 100deg, transparent 146deg, #ffd166 153deg, transparent 160deg, transparent 206deg, #ff8fa3 213deg, transparent 220deg, transparent 266deg, #ffb347 273deg, transparent 280deg, transparent 326deg, #ff4d6d 333deg, transparent 340deg);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 64%);
  mask: radial-gradient(circle, transparent 62%, #000 64%);
  animation: supportRays 7s linear infinite;
}
.support-fab::after { content: ""; position: absolute; inset: -2px; border: 1px solid #ffb06655; border-radius: 50%; }
@keyframes supportRays { to { transform: rotate(360deg); } }
.support-fab i { position: absolute; top: -4px; right: -2px; }
.sidebar-bottom { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 8px; }
.sidebar-user { width: 100%; }
.sidebar-logout { width: 42px !important; height: 42px !important; margin: 0 auto; border-radius: 13px !important; font-size: 19px !important; }
.sidebar-logout:hover { transform: translateY(-2px); }
@media (max-width: 560px) {
  .support-fab { width: 54px; height: 54px; }
}

/* v22 — nhiệm vụ 4 cột, ví cam đỏ, loading toàn trang và bảng xếp hạng */
.task-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.task-card { gap: 7px; padding: 12px; border-radius: 12px; }
.task-icon { width: 38px; height: 38px; border-radius: 10px; font-size: 18px; }
.task-title { gap: 5px; font-size: 12px; }
.task-badge { padding: 2px 6px; font-size: 7px; }
.task-sub { font-size: 9px; }
.task-slot { font-size: 10px; }
.task-meta { gap: 6px; }
.task-reward { padding: 4px 8px; font-size: 11px; }
.task-ip { padding: 3px 7px; font-size: 9px; }
.task-progressbar { height: 5px; }
.task-card .task-note { display: -webkit-box; min-height: 0; overflow: hidden; font-size: 9px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.task-join { min-height: 34px; font-size: 10px; }
@media (max-width: 1200px) {
  .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .task-grid { grid-template-columns: 1fr; }
}
.page-loading-overlay { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; background: #0b0908e8; backdrop-filter: blur(3px); }
.page-loading-overlay[hidden] { display: none !important; }
.loading-card { display: grid; width: min(330px, 86vw); justify-items: center; gap: 9px; padding: 26px; border: 1px solid #6b4426; border-radius: 16px; background: linear-gradient(160deg, #1d1612, #14100e); text-align: center; box-shadow: 0 24px 60px #0008; }
.loading-card strong { color: #ffe6c9; font-size: 15px; }
.loading-card p { margin: 0; color: #a99a89; font-size: 10px; }
.loading-ring { width: 46px; height: 46px; border: 3px solid #36271d; border-top-color: #ff9d3c; border-right-color: #ff4d6d; border-radius: 50%; animation: spin 1s linear infinite; }
.loading-track { position: relative; width: 100%; height: 5px; overflow: hidden; border-radius: 999px; background: #2e231b; }
.loading-track i { position: absolute; left: -40%; width: 40%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff9d3c, #ffd166); animation: loadingSlide 1.15s ease-in-out infinite; }
@keyframes loadingSlide { to { left: 100%; } }
@keyframes spin { to { transform: rotate(360deg); } }
.stat-card-balance { border-color: #b8862c; background: radial-gradient(ellipse at 82% 0%, #ffd76a1c, transparent 55%), linear-gradient(145deg, #3b2c10, #241b0d); box-shadow: inset 0 0 28px #ffcf5e1a; }
.stat-card-balance strong { color: #ffd76a; }
.card-brand-choices { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; justify-content: stretch; }
.card-brand-choice { width: 100%; }
.card-brand-choice[aria-pressed="true"] { border-color: #34d399; background: #0f2a22; box-shadow: 0 0 20px #34d39955, inset 0 0 16px #34d39914; transform: translateY(-2px); }
.card-brand-choice[aria-pressed="true"]::before { box-shadow: 0 0 0 1px #34d39988; }
.card-denomination-choice[aria-pressed="true"] { border-color: #34d399; background: #0f2a22; color: #a7f3d0; box-shadow: 0 0 18px #34d39944; }
.withdrawal-method-tab.is-active, .withdrawal-method-tab:hover { border-color: #ff8a4a; background: linear-gradient(105deg, #a94420, #cf4530); box-shadow: 0 0 15px #ff6a3d33; }
#withdraw-submit { border: 0; background: linear-gradient(120deg, #ff9d3c, #ff5a2e 55%, #e0233f); color: #fff7ef; box-shadow: 0 10px 24px #ff5a2e33; }
#withdraw-submit:hover { filter: brightness(1.06); }
@media (max-width: 720px) {
  .card-brand-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sidebar-bottom { grid-template-columns: minmax(0, 1fr) auto; justify-items: stretch; align-items: center; }
.sidebar-logout { width: 38px !important; height: 38px !important; margin: 0; border: 1px solid #6a3a48 !important; border-radius: 11px !important; background: linear-gradient(145deg, #46222d, #2c1720) !important; color: #ffb3c0 !important; }
.sidebar-logout:hover { transform: translateY(-1px); box-shadow: 0 0 16px #f34f7033; }
.task-history-pending { margin-left: auto; padding: 2px 7px; border: 1px solid #b8862c; border-radius: 999px; color: #ffd76a; font-size: 8px; font-weight: 850; }
.pending-spinner { width: 54px; height: 54px; border: 4px solid #3a2a20; border-top-color: #ff9d3c; border-right-color: #ff4d6d; border-radius: 50%; animation: spin 1s linear infinite; }
.pending-count { display: flex; align-items: baseline; gap: 5px; color: #ffd08a; }
.pending-count strong { font-size: 30px; line-height: 1; }
.pending-count span { color: #b99a7c; font-size: 10px; }
.support-discord { display: block; padding: 8px 10px 0; color: #ffc08a; font-size: 9px; text-align: center; text-decoration: none; background: #17130f; }
.support-discord:hover { color: #ffe0bd; }
@media (max-width: 700px) {
  .leaderboard-podium { grid-template-columns: 1fr; }
  .podium-1, .podium-2, .podium-3 { order: 0; }
  .podium-avatar { width: 46px; height: 46px; }
  .podium-1 .podium-avatar { width: 54px; height: 54px; }
}

/* v23 — thẻ nhiệm vụ 3 cột, tooltip biểu đồ và trạng thái hoàn thành */
.task-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.task-card {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto minmax(32px, 1fr) auto;
  gap: 12px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid #5f3a2c;
  border-radius: 18px;
  background: radial-gradient(circle at 100% 0%, #ff8a3d14, transparent 46%), linear-gradient(160deg, #271a14, #171210 76%);
  box-shadow: 0 14px 34px #0004;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.task-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff9d3c88 28%, #ff4d6d88 58%, transparent);
  opacity: .7;
}
.task-card:hover {
  transform: translateY(-3px);
  border-color: #c9823f;
  box-shadow: 0 20px 44px #0005, 0 0 26px #ff9b4a1f;
}
.task-card.is-pinned { border-color: #d89b3a; background: radial-gradient(ellipse at 90% 0%, #ffb03a22, transparent 55%), linear-gradient(158deg, #2f1f12, #1b1410 72%); }
.task-card.is-pinned::before { background: linear-gradient(90deg, transparent, #ffd166cc, #ff8a3d99, transparent); opacity: 1; }
.task-card.is-complete { border-color: #397a56; background: radial-gradient(circle at 100% 0%, #4ade8018, transparent 48%), linear-gradient(160deg, #1b2a22, #121813 76%); }
.task-card.is-complete::before { background: linear-gradient(90deg, transparent, #4ade80aa, #ffd16688, transparent); }
.task-head { align-items: flex-start; gap: 12px; }
.task-icon {
  width: 48px;
  height: 48px;
  border: 1px solid #704831;
  border-radius: 14px;
  background: radial-gradient(circle at 32% 24%, #57331e, #241710 72%);
  box-shadow: inset 0 0 16px #ff9d3c14;
  font-size: 24px;
}
.task-title { gap: 6px; color: #fff1df; font-size: 15px; line-height: 1.35; }
.task-badge { padding: 3px 8px; background: #3a2a1d; font-size: 7px; letter-spacing: .55px; }
.task-badge.is-done { background: linear-gradient(120deg, #14532d, #1d7a46); color: #b8ffd4; }
.task-sub { margin-top: 5px; color: #b7a48f; font-size: 10px; line-height: 1.5; }
.task-slot { padding: 4px 8px; border: 1px solid #5c3b27; border-radius: 999px; background: #2c1e16; color: #ffd08a; font-size: 10px; }
.task-meta { justify-content: space-between; gap: 10px; }
.task-reward {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 12px;
  border-color: #7c5a1e;
  border-radius: 11px;
  background: linear-gradient(140deg, #40310f, #2b230d);
  color: #ffe07a;
  font-size: 17px;
  line-height: 1.15;
}
.task-reward small { color: #b99a5f; font-size: 7px; font-weight: 850; letter-spacing: 1px; }
.task-ip { padding: 4px 8px; border-color: #1f5847; border-radius: 999px; background: #102a22; color: #8fd6c0; font-size: 9px; }
.task-progressbar { height: 6px; background: #32241c; box-shadow: inset 0 1px 3px #0006; }
.task-progressbar span { background: linear-gradient(90deg, #ff4d6d, #ff9d3c 55%, #ffd166); box-shadow: 0 0 10px #ffb34766; }
.task-card .task-note { display: -webkit-box; min-height: 32px; overflow: hidden; color: #a99a8a; font-size: 10px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.task-actions { margin-top: 0; }
.task-join {
  min-height: 42px;
  border-radius: 12px;
  background: linear-gradient(120deg, #ff8a3d, #ef4a2f 55%, #d51f3f);
  box-shadow: 0 10px 24px #d51f3f33, inset 0 1px 0 #ffffff2e;
  font-size: 12px;
  letter-spacing: .2px;
}
.task-join:disabled { border: 1px solid #46332a; background: #2b201a; color: #8f7f70; }
.task-card.is-complete .task-join:disabled { border-color: #2f6b4b; background: #143222; color: #8ef0b0; }
.task-card.is-claimed:not(.is-complete) .task-join:disabled { border-color: #5a4030; background: #2d211a; color: #c0a88f; }
@media (max-width: 1100px) {
  .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .task-grid { grid-template-columns: 1fr; }
  .task-card { padding: 16px; }
}
.chart-tooltip {
  position: fixed;
  z-index: 120;
  display: grid;
  min-width: 150px;
  gap: 2px;
  padding: 10px 13px;
  border: 1px solid #8b5c2e;
  border-radius: 12px;
  background: linear-gradient(160deg, #2b1d13f7, #140f0bf7);
  box-shadow: 0 18px 40px #0008, 0 0 22px #ff9c3c22;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -100%) scale(.95);
  transition: opacity .16s ease, transform .16s ease;
}
.chart-tooltip.is-visible { opacity: 1; transform: translate(-50%, -100%) scale(1); }
.chart-tooltip::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 9px; height: 9px; border-right: 1px solid #8b5c2e; border-bottom: 1px solid #8b5c2e; background: #140f0b; transform: translateX(-50%) rotate(45deg); }
.chart-tooltip small { color: #c7a987; font-size: 9px; letter-spacing: .4px; }
.chart-tooltip strong { color: #ffd76a; font-size: 17px; line-height: 1.2; }
.chart-tooltip span { color: #ff9d8a; font-size: 9px; font-weight: 750; }

/* v24 — hộp tạo link nhiệm vụ trước khi mở trang vượt link */
.task-link-dialog {
  width: min(430px, calc(100% - 28px));
  padding: 0;
  border: 1px solid #7b4a2a;
  border-radius: 24px;
  background: linear-gradient(168deg, #241711f7, #140f0bfa 76%);
  color: #f6e8d7;
  box-shadow: 0 30px 90px #000b, 0 0 50px #ff7a1a16;
}
.task-link-dialog::backdrop { background: #070505d9; backdrop-filter: blur(4px); }
.task-link-card { position: relative; display: grid; justify-items: center; gap: 9px; padding: 28px 24px 18px; text-align: center; }
.task-link-x {
  position: absolute;
  top: 12px;
  right: 13px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #4a352a;
  border-radius: 9px;
  background: #221812;
  color: #c0a88f;
  font-size: 16px;
  cursor: pointer;
}
.task-link-x:hover { border-color: #ff8a4a; color: #ffd2a4; }
.task-link-check {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px dashed #4ade8099;
  border-radius: 50%;
  background: radial-gradient(circle, #143222, #0e1d16);
  color: #66f0a2;
  font-size: 29px;
  box-shadow: 0 0 0 7px #4ade8009, 0 0 26px #4ade8033;
  animation: successPop .45s cubic-bezier(.2, 1.4, .4, 1);
}
.task-link-kicker { margin-top: 3px; color: #ff9d6a; font-size: 8px; font-weight: 900; letter-spacing: 1.7px; }
.task-link-card h2 { margin: 0; color: #fff2e2; font-size: 23px; letter-spacing: -.4px; }
.task-link-copy { margin: 0; max-width: 330px; color: #b7a48f; font-size: 10px; line-height: 1.65; }
.task-link-open {
  display: flex;
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(120deg, #ff8a3d, #ef4a2f 55%, #d51f3f);
  color: #fff8f1;
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 12px 26px #d51f3f38, inset 0 1px 0 #ffffff2e;
  transition: filter .2s ease, transform .2s ease;
}
.task-link-open:hover { filter: brightness(1.08); transform: translateY(-1px); }
.task-link-note {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 10px;
  border: 1px solid #3d3024;
  border-radius: 10px;
  background: #1b130e;
  color: #b7a08a;
  font-size: 10px;
}
.task-link-note span { color: #7fb4ff; }
.task-link-note b { color: #ffd76a; font-size: 12px; }
.task-link-reward { color: #ffb273; font-size: 9px; text-decoration: none; }
.task-link-reward:hover { color: #ffd3a8; }
.task-link-close {
  margin-top: 2px;
  padding: 7px 18px;
  border: 1px solid #4a352a;
  border-radius: 999px;
  background: #221812;
  color: #c0a88f;
  font: inherit;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}
.task-link-close:hover { border-color: #ff8a4a; color: #ffd2a4; }
@media (max-width: 420px) {
  .task-link-card { padding: 24px 18px 16px; }
  .task-link-card h2 { font-size: 20px; }
}

/* v25 — nhiệm vụ đang thực hiện, tông đỏ-vàng thay cho xanh */
.current-task-panel {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px 18px;
  border: 1px solid #8b5a2f;
  border-radius: 16px;
  background: radial-gradient(ellipse at 8% 0%, #ff9d3c18, transparent 55%), linear-gradient(120deg, #2a1b13, #1a120e 78%);
  box-shadow: 0 12px 30px #0003, inset 0 1px 0 #ffffff0a;
}
.current-task-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid #7c3a2a;
  border-radius: 15px;
  background: radial-gradient(circle at 34% 28%, #7a2a1e, #3a1712 72%);
  color: #ffd08a;
  font-size: 24px;
  box-shadow: inset 0 0 18px #ff6a3d1c;
}
.current-task-info { min-width: 0; }
.current-task-info small { color: #ff9d6a; font-size: 8px; font-weight: 850; letter-spacing: 1.1px; }
.current-task-info small b { color: #ffd76a; }
.current-task-info strong { display: block; margin-top: 3px; overflow: hidden; color: #fff1df; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.current-task-info p { margin: 3px 0 0; color: #b7a48f; font-size: 10px; line-height: 1.5; }
.current-task-reward { color: #ffd76a; font-size: 21px; font-weight: 950; white-space: nowrap; text-shadow: 0 0 20px #ffd76a33; }
.current-task-actions { display: flex; gap: 8px; }
.current-task-continue {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(120deg, #ff8a3d, #ef4a2f 58%, #d51f3f);
  color: #fff8f1;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 22px #d51f3f30;
}
.current-task-continue:hover { filter: brightness(1.08); transform: translateY(-1px); }
.current-task-cancel {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #7a5238;
  border-radius: 11px;
  background: #241912;
  color: #e3c6aa;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.current-task-cancel:hover { border-color: #ff8a4a; color: #ffd2a4; }
.current-task-cancel:disabled { opacity: .6; cursor: wait; }
@media (max-width: 900px) {
  .current-task-panel { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .current-task-actions { grid-column: 1 / -1; }
  .current-task-actions > button { flex: 1; }
}
@media (max-width: 560px) {
  .current-task-panel { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 12px 14px; }
  .current-task-icon { width: 44px; height: 44px; border-radius: 12px; font-size: 20px; }
  .current-task-reward { grid-column: 2; font-size: 17px; }
  .current-task-info strong { font-size: 14px; }
  .current-task-info p { display: none; }
}
.task-card.is-current { border-color: #ffb066; box-shadow: 0 0 0 1px #ffb06655, 0 0 28px #ff9d3c22, 0 14px 34px #0004; }
.task-card.is-busy:not(.is-current) { opacity: .52; filter: saturate(.65); }
.task-badge.is-live { background: linear-gradient(120deg, #b8401a, #e0233f); color: #ffe9d2; animation: hotPulse 2.6s ease-in-out infinite; }
.task-badge.is-done { background: linear-gradient(120deg, #7a4a12, #b8862c); color: #fff0c9; }
.task-card.is-complete { border-color: #8b6424; background: radial-gradient(circle at 100% 0%, #ffb03a16, transparent 48%), linear-gradient(160deg, #2b2011, #17120d 76%); }
.task-card.is-complete::before { background: linear-gradient(90deg, transparent, #ffd166aa, #ff8a3d88, transparent); }
.task-card.is-complete .task-join:disabled { border-color: #7a5a20; background: #33270f; color: #ffd76a; }
.success-ring { border-color: #c89036; background: #33270f; color: #ffd76a; box-shadow: 0 0 30px #ffb03a33; }
.task-link-check { border-color: #ffb06699; background: radial-gradient(circle, #3a2512, #1c120c); color: #ffd76a; box-shadow: 0 0 0 7px #ffb06609, 0 0 26px #ffb03a33; }
.leaderboard-income { color: #ffd08a; }

/* v27 — thẻ quy định phát sáng theo tông đỏ-cam-vàng */
.rule-card {
  --rule-a: #ff6b4a;
  --rule-b: #ffb347;
  --rule-glow: #ff7a1a33;
  min-height: 190px;
  border: 1px solid #7a4630;
  background: radial-gradient(ellipse at 100% 0, #ff8a3d1a, transparent 46%), linear-gradient(148deg, #2a1a13, #17100d 78%);
  box-shadow: inset 0 1px 0 #ffffff0d, inset 0 0 32px #ff7a1a0d, 0 8px 22px #0002;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.rule-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rule-a), var(--rule-b), transparent);
  opacity: .9;
}
.rule-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--rule-glow);
  filter: blur(32px);
  opacity: .55;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.rule-card:nth-child(1) { --rule-a: #ff5a3c; --rule-b: #ffb347; --rule-glow: #ff6a2a40; }
.rule-card:nth-child(2) { --rule-a: #ffb347; --rule-b: #ffe08a; --rule-glow: #ffb34740; }
.rule-card:nth-child(3) { --rule-a: #ff4d6d; --rule-b: #ff9d3c; --rule-glow: #ff4d6d3d; }
.rule-card:nth-child(4) { --rule-a: #c44dff; --rule-b: #ff7a9c; --rule-glow: #c44dff30; }
.rule-card:hover {
  transform: translateY(-4px);
  border-color: var(--rule-a);
  box-shadow: 0 14px 32px #0004, 0 0 26px var(--rule-glow), inset 0 0 30px #ffffff08;
}
.rule-card:hover::after { opacity: .95; transform: scale(1.12); }
.rule-number {
  border: 0;
  background: linear-gradient(140deg, var(--rule-a), var(--rule-b));
  color: #1b0e08;
  box-shadow: 0 0 16px var(--rule-glow), inset 0 1px 0 #ffffff66;
}
.rule-card h3 { color: #fff0df; }
.rule-card p { color: #c8b4a2; }

/* v28 — SVG icon, đồng bộ cam, số dư, glow xanh và chat trắng */
.stat-card-balance {
  border-color: #69452f80;
  background: linear-gradient(145deg, #2c1d14, #21160f);
  box-shadow: none;
}
.stat-card-balance strong { color: #ffd76a; }
.sidebar-wallet {
  border-color: #443025;
  background: linear-gradient(145deg, #241a14, #1a1310);
  box-shadow: none;
}
.sidebar-wallet > span { color: #a8917c; }
.sidebar-wallet strong { color: #ffd76a; }
.sidebar-wallet a { color: #c9ad92; }
.sidebar-wallet a:hover { color: #ffc38a; }
.sidebar-logout {
  border-color: #a46632 !important;
  background: linear-gradient(145deg, #3d2618, #271912) !important;
  color: #ffc38a !important;
}
.sidebar-logout:hover {
  border-color: #ffb066 !important;
  background: linear-gradient(145deg, #54331e, #332116) !important;
  box-shadow: 0 0 20px #ff8a3d40 !important;
}
.rule-card:nth-child(3) { --rule-a: #ff8a3d; --rule-b: #ffd166; --rule-glow: #ff8a3d42; }
.rule-card:nth-child(4) { --rule-a: #ff6b4a; --rule-b: #ffcf8a; --rule-glow: #ff7a4a36; }
.card-brand-choice[aria-pressed="true"] {
  border-color: #5dffc2;
  background: #103226;
  box-shadow: 0 0 0 2px #34d399, 0 0 28px #34d399aa, 0 0 58px #34d39955, inset 0 0 24px #34d39926;
  animation: greenPulse 1.9s ease-in-out infinite;
}
.card-denomination-choice[aria-pressed="true"] {
  border-color: #5dffc2;
  background: #103226;
  color: #b9ffe0;
  box-shadow: 0 0 0 2px #34d399, 0 0 24px #34d399aa, inset 0 0 18px #34d39924;
  animation: greenPulse 1.9s ease-in-out infinite;
}
@keyframes greenPulse {
  0%, 100% { box-shadow: 0 0 0 2px #34d399, 0 0 28px #34d399aa, 0 0 58px #34d39955, inset 0 0 24px #34d39926; }
  50% { box-shadow: 0 0 0 3px #5dffc2, 0 0 38px #34d399cc, 0 0 80px #34d39977, inset 0 0 30px #34d39938; }
}
.rush-option strong, .rush-option small { color: #ff3d6e; }
.support-fab {
  background: radial-gradient(circle at 34% 28%, #ffb066, #df651d 58%, #7a2f12);
  box-shadow: 0 0 0 2px #ffffff2e, 0 0 26px #ffffffbb, 0 12px 30px #0005;
}
.support-fab::before {
  background: conic-gradient(from 0deg, transparent 0 18deg, #ffffff 26deg, transparent 36deg, transparent 78deg, #fff3e2 86deg, transparent 96deg, transparent 138deg, #ffffff 146deg, transparent 156deg, transparent 198deg, #fff7ee 206deg, transparent 216deg, transparent 258deg, #ffffff 266deg, transparent 276deg, transparent 318deg, #fff3e2 326deg, transparent 340deg);
  filter: drop-shadow(0 0 6px #ffffffcc);
}
.support-fab::after {
  border-color: #ffffffb3;
  box-shadow: 0 0 18px #ffffff99;
}
.support-widget.is-open .support-fab::before { animation-play-state: paused; filter: drop-shadow(0 0 3px #ffffff88); }
.support-widget.is-open .support-fab { box-shadow: 0 0 0 2px #ffffff22, 0 0 16px #ffffff77, 0 12px 30px #0005; }

/* v32 — căn giữa mũi tên đăng xuất, chat phát sáng không xoay */
.sidebar-logout svg {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 !important;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar-logout { justify-content: center !important; align-content: center; }
.support-fab::before {
  background: transparent;
  filter: none;
  -webkit-mask: none;
  mask: none;
  border: 1px solid #ffffffd9;
  box-shadow: 0 0 14px #ffffffcc, 0 0 32px #ffffff80, inset 0 0 16px #ffffff40;
  animation: chatGlow 2.8s ease-in-out infinite;
}
@keyframes chatGlow {
  0%, 100% { box-shadow: 0 0 12px #ffffffaa, 0 0 28px #ffffff66, inset 0 0 14px #ffffff33; }
  50% { box-shadow: 0 0 20px #ffffff, 0 0 46px #ffffff99, inset 0 0 22px #ffffff55; }
}
.support-widget.is-open .support-fab::before { animation: none; }

/* v35 — số dư hiển thị màu trắng */
.sidebar-wallet strong,
.stat-card-balance strong,
.wallet-balance > div:first-child strong {
  color: #ffffff;
  text-shadow: 0 0 14px #ffffff1f;
}

/* v38 — chủ đề chat đồng bộ cam, bỏ nút màu lệch tông */
.task-ip {
  display: inline-flex;
  min-width: 64px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 17px;
  font-weight: 950;
  text-align: center;
}
.card-brand-choice img { filter: brightness(1.07) contrast(1.06) saturate(1.08); }
.card-brand-choice[aria-pressed="true"] img { filter: brightness(1.1) contrast(1.08) saturate(1.14); }
.card-brand-choice, .card-denomination-choice { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.card-brand-choice[aria-pressed="true"] { transform: translateY(-2px) scale(1.035); }
.card-denomination-choice[aria-pressed="true"] { transform: scale(1.035); }
.loading-track i {
  left: 0;
  width: 0;
  animation: loadingFill .34s ease-out forwards;
}
@keyframes loadingFill { to { width: 100%; } }

.support-widget { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.support-panel { display: flex; flex-direction: column; width: min(360px, calc(100vw - 32px)); max-height: min(560px, 74vh); overflow: hidden; border: 1px solid #6d4526; border-radius: 16px; background: #171310; box-shadow: 0 22px 60px #0007; }
.support-head { display: flex; align-items: center; gap: 10px; padding: 13px 14px; background: linear-gradient(115deg, #9a3412, #c2410c 58%, #ea580c); }
.support-head-icon { display: grid; width: 40px; height: 40px; flex: none; place-items: center; justify-content: center; align-content: center; border: 1px solid #ffffff33; border-radius: 50%; background: #ffffff1c; }
.support-head-icon svg { margin: 0; }
.support-head-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.support-head > div:not(.support-head-actions) { display: grid; gap: 2px; min-width: 0; }
.support-head strong { color: #fff7ef; font-size: 13px; }
.support-head span { display: flex; align-items: center; gap: 5px; color: #ffe0c6; font-size: 9px; }
.support-head span i { width: 6px; height: 6px; border-radius: 50%; background: #7dffab; box-shadow: 0 0 8px #7dffab; }
.support-head-actions { display: flex; gap: 6px; margin-left: auto; }
.support-head-actions button { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid #ffffff33; border-radius: 8px; background: #ffffff14; color: #fff; font-size: 15px; line-height: 1; cursor: pointer; }
.support-head-actions button:hover { background: #ffffff28; }
.support-welcome { display: grid; justify-items: center; gap: 7px; padding: 16px 14px 4px; text-align: center; }
.support-welcome-icon { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid #6d4526; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #3a2618, #211710); color: #ffb066; box-shadow: 0 0 24px #ff9d3c22; }
.support-welcome-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.support-welcome strong { color: #fff1e2; font-size: 15px; }
.support-welcome p { max-width: 280px; margin: 0; color: #b7a48f; font-size: 10px; line-height: 1.65; }
.support-topics { display: grid; width: 100%; gap: 7px; margin-top: 5px; }
.support-topics button { display: flex; min-height: 38px; align-items: center; justify-content: flex-start; gap: 8px; padding: 0 12px; border: 0; border-radius: 10px; background: linear-gradient(120deg, #7c2d12, #c2410c); color: #fff3e8; font: inherit; font-size: 10px; font-weight: 850; text-align: left; cursor: pointer; }
.support-topics button:nth-child(2) { background: linear-gradient(120deg, #92400e, #f59e0b); color: #2a1607; }
.support-topics button:nth-child(3) { background: linear-gradient(120deg, #9f1239, #e11d48); color: #fff1f2; }
.support-topics button b { margin-left: auto; font-size: 14px; }
.support-topic-icon { display: grid; width: 24px; height: 24px; flex: none; place-items: center; border-radius: 7px; background: #ffffff1f; }
.support-topic-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.support-topic-text { flex: 1; text-align: left; }
.support-topics button:hover { filter: brightness(1.08); transform: translateX(2px); }
.support-messages { flex: 1; min-height: 70px; overflow-y: auto; padding: 12px; }
.support-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #33251c; background: #1b1410; }
.support-form input { flex: 1; min-width: 0; min-height: 40px; padding: 0 12px; border: 1px solid #4c392b; border-radius: 10px; outline: none; background: #221a14; color: #ffead8; font: inherit; font-size: 11px; }
.support-form input:focus { border-color: #ff9d3c; box-shadow: 0 0 0 3px #ff9d3c1f; }
.support-form button { display: grid; width: 40px; height: 40px; flex: none; place-items: center; border: 0; border-radius: 50%; background: linear-gradient(140deg, #f97316, #c2410c); color: #fff; cursor: pointer; }
.support-form button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.support-hint { margin: 0; padding: 7px 12px; color: #8f7c6b; font-size: 8px; text-align: center; background: #1b1410; }
.support-discord { display: block; padding: 7px 10px 10px; color: #ffb273; font-size: 9px; text-align: center; text-decoration: none; background: #1b1410; }
.support-fab > span { display: grid; place-items: center; }
.support-fab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.support-widget.is-open .support-fab b { display: none; }
.card-redeem-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card-redeem-fields label { display: grid; gap: 6px; color: #d9c4b1; font-size: 9px; font-weight: 700; }
.card-redeem-fields input { width: 100%; min-height: 40px; padding: 0 10px; border: 1px solid #634832; border-radius: 8px; outline: none; background: #1a110c; color: #fff0e1; font: inherit; font-size: 11px; }
.card-redeem-fields input:focus { border-color: #ff9d3c; box-shadow: 0 0 0 3px #ff9d3c1f; }
@media (max-width: 560px) { .card-redeem-fields { grid-template-columns: 1fr; } }

/* v38 — chủ đề chat đồng bộ cam, bỏ nút màu lệch tông */
.support-topics button,
.support-topics button:nth-child(2),
.support-topics button:nth-child(3) {
  border: 1px solid #6b4326;
  background: linear-gradient(120deg, #2a1c13, #1d1410);
  color: #ffe7cf;
}
.support-topic-icon {
  border: 1px solid #ff9d3c33;
  background: #ff9d3c1a;
  color: #ffb066;
}
.support-topics button:hover { border-color: #ffb066; filter: none; }

/* v39 — icon tai nghe căn giữa tuyệt đối và trạng thái admin thật */
.support-widget { z-index: 10000; }
.support-head-icon {
  position: relative;
  display: block;
  padding: 0;
  line-height: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.support-head-icon svg {
  position: absolute;
  inset: 0;
  margin: auto;
  display: block;
  width: 22px;
  height: 22px;
}
.support-head small { color: inherit; font: inherit; font-size: 9px; }
.support-head span.is-offline { color: #c9b8a7; }
.support-head span.is-offline i { background: #9b8b7d; box-shadow: 0 0 8px #9b8b7d; }
.support-empty-note { margin: 0; padding: 26px 16px; color: #a2917f; font-size: 10px; line-height: 1.7; text-align: center; }


/* v42 — task gọn 3 cột, lượt đã làm, popup hủy, thẻ đã giao và ảnh chat */
.task-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.task-card {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 9px;
  padding: 17px 15px;
  border-radius: 14px;
}
.task-card .task-head { align-items: center; gap: 8px; }
.task-card .task-icon { width: 32px; height: 32px; border-radius: 9px; font-size: 15px; }
.task-card .task-title { font-size: 12px; line-height: 1.3; gap: 4px; }
.task-card .task-badge { padding: 1px 5px; font-size: 6px; }
.task-card .task-sub { margin-top: 2px; font-size: 8.5px; line-height: 1.4; }
.task-card .task-slot { padding: 2px 6px; font-size: 8px; }
.task-card .task-reward { padding: 4px 8px; border-radius: 9px; font-size: 13px; }
.task-card .task-reward small { font-size: 6px; }
.task-card .task-progressbar { height: 4px; }
.task-card .task-note { min-height: 0; font-size: 9px; line-height: 1.5; }
.task-card .task-join { min-height: 32px; border-radius: 9px; font-size: 10px; }
.task-ip {
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 3px 8px;
  border-radius: 10px;
  line-height: 1.05;
  text-align: center;
}
.task-ip strong { color: #8ff0c8; font-size: 15px; font-weight: 950; }
.task-ip small { color: #7fbfa8; font-size: 6.5px; font-weight: 850; letter-spacing: .2px; text-transform: uppercase; }
.task-ip em { color: #6f9d8c; font-size: 6px; font-style: normal; }
/* v48 — ba ô thông tin bằng nhau: thưởng / tự động cộng / lượt còn lại */
.task-card .task-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  align-items: stretch;
}
.task-card .task-meta > * {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1px;
  min-width: 0;
  height: 100%;
  padding: 4px 6px;
  border-radius: 10px;
  line-height: 1.05;
  text-align: center;
  white-space: normal;
}
.task-card .task-reward strong { color: #ffe07a; font-size: 13px; font-weight: 950; white-space: nowrap; }
.task-card .task-meta > .task-reward { background: #3d2f12; border-color: #7c5a1e; }
.task-card .task-meta > .task-reward small,
.task-card .task-meta > .task-auto small,
.task-card .task-meta > .task-ip small { font-size: 6.5px; letter-spacing: .2px; }
.task-card .task-reward small { color: #b99a5f; font-weight: 850; text-transform: uppercase; }
.task-auto {
  border: 1px solid #7a4a1c;
  border-radius: 10px;
  background: #33200f;
  color: #ffb066;
}
.task-auto strong { color: #ffcf8f; font-size: 13px; font-weight: 950; letter-spacing: .4px; }
.task-auto small { color: #d59a63; font-weight: 850; text-transform: uppercase; }
.task-auto em { color: #a9805a; font-size: 6px; font-style: normal; }
.current-task-panel { padding: 10px 14px; gap: 10px; grid-template-columns: 38px minmax(0, 1fr) auto; }
.current-task-icon { width: 38px; height: 38px; border-radius: 10px; font-size: 16px; }
.current-task-info strong { font-size: 13px; }
.current-task-info p { display: none; }
.current-task-reward { font-size: 17px; }
.current-task-continue, .current-task-cancel { min-height: 34px; padding: 0 12px; font-size: 10px; }
@media (max-width: 980px) { .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .task-grid { grid-template-columns: 1fr; }
  .task-card { padding: 13px; }
  .task-card .task-title { font-size: 13px; }
  .task-card .task-reward { font-size: 15px; }
}

.task-cancel-dialog, .card-reveal-dialog, .chat-image-dialog { padding: 0; border: 0; background: transparent; }
.task-cancel-dialog::backdrop, .card-reveal-dialog::backdrop, .chat-image-dialog::backdrop { background: #070505d9; backdrop-filter: blur(4px); }
.task-cancel-card, .card-reveal-card {
  display: grid;
  width: min(380px, 90vw);
  gap: 10px;
  padding: 22px;
  border: 1px solid #7a3a2a;
  border-radius: 18px;
  background: radial-gradient(circle at 100% 0%, #ff6a3d18, transparent 55%), linear-gradient(160deg, #271813, #170f0c 80%);
  box-shadow: 0 26px 60px #0009;
  text-align: center;
}
.task-cancel-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin: 0 auto;
  place-items: center;
  border: 1px solid #ff8a5a55;
  border-radius: 50%;
  background: #ff6a3d1a;
  color: #ffb08c;
  font-size: 22px;
  font-weight: 900;
}
.task-cancel-card h2, .card-reveal-card h2 { margin: 0; color: #fff1e2; font-size: 18px; }
.task-cancel-card p, .card-reveal-note { margin: 0; color: #bda894; font-size: 11px; line-height: 1.7; }
.task-cancel-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.task-cancel-actions button { min-height: 40px; border-radius: 10px; font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; }
.task-cancel-keep { border: 1px solid #5c4331; background: #22180f; color: #e8d6c1; }
.task-cancel-confirm { border: 0; background: linear-gradient(120deg, #ff7a3d, #d51f3f); color: #fff4ec; }
.card-reveal-card dl { display: grid; gap: 8px; margin: 6px 0; text-align: left; }
.card-reveal-card dl > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid #5c4331; border-radius: 10px; background: #1d150f; }
.card-reveal-card dt { color: #b7a48f; font-size: 10px; }
.card-reveal-card dd { margin: 0; color: #ffd76a; font-size: 14px; font-weight: 950; letter-spacing: .6px; }
.card-reveal-close { min-height: 40px; border: 0; border-radius: 10px; background: linear-gradient(120deg, #ff9d3c, #d51f3f); color: #fff6ee; font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; }

.support-form { align-items: center; }
.support-form .support-attach {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  padding: 0;
  place-items: center;
  border: 1px solid #4c392b;
  border-radius: 10px;
  background: #221a14;
  color: #ffb273;
  cursor: pointer;
}
.support-form .support-attach:hover { border-color: #ff9d3c; color: #ffd3a6; }
.support-form .support-attach svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.support-form .support-send { width: 38px; height: 38px; }
.support-attachment {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 12px;
  border-top: 1px solid #33251c;
  background: #1b1410;
  color: #c9b7a4;
  font-size: 9px;
}
.support-attachment img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.support-attachment span { flex: 1; }
.support-attachment button { width: 22px; height: 22px; border: 1px solid #5c4331; border-radius: 7px; background: #2a1c14; color: #ffb273; font-size: 12px; line-height: 1; cursor: pointer; }
.support-bubble-image { display: block; max-width: 210px; max-height: 190px; margin-bottom: 4px; border-radius: 9px; object-fit: cover; cursor: zoom-in; }
.chat-image-dialog { position: fixed; inset: 0; width: fit-content; height: fit-content; margin: auto; }
.chat-image-dialog img { display: block; max-width: 92vw; max-height: 86vh; border-radius: 14px; box-shadow: 0 24px 70px #000a; }
.chat-image-close {
  position: absolute;
  top: -14px;
  right: -14px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #ffffff44;
  border-radius: 50%;
  background: #1a120d;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.support-attachment[hidden] { display: none; }
.chat-image-dialog[open] { display: grid; place-items: center; padding: 0; }

/* v43 — 5 loại thẻ trên một hàng và phối lại màu trang rút tiền (bỏ hồng) */
.card-brand-choices {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  justify-content: stretch;
  align-items: stretch;
}
.card-brand-choice {
  aspect-ratio: 1 / 0.92;
  padding: 8px;
  border: 1px solid #6b482c;
  border-radius: 12px;
  background: linear-gradient(150deg, #2a1c13, #1a120d);
  color: #f0dbc4;
}
.card-brand-choice:hover { border-color: #c98a44; }
.card-brand-choice img { border-radius: 8px; background: #fff; }
#card-fields {
  padding: 12px;
  border: 1px solid #6b482c66;
  border-radius: 14px;
  background: linear-gradient(160deg, #241811, #191110);
}
.card-choice-group legend { color: #ffd9a8; letter-spacing: .2px; }
.card-denomination-choice { border-color: #63472c; background: #211710; color: #f2ddc5; }
.card-denomination-choice:hover { border-color: #c98a44; }

.withdrawal-form {
  border-color: #a3702f8c;
  background:
    radial-gradient(ellipse at 92% -8%, #ffb34722, transparent 44%),
    radial-gradient(ellipse at 0% 104%, #ff5a2e14, transparent 46%),
    linear-gradient(150deg, #2c1d13, #17100c 78%);
  box-shadow: 0 18px 46px #0004, 0 0 34px #ff9d3c14;
}
.withdrawal-form .panel-heading h3 { color: #ffe7c8; }
.withdrawal-form .panel-heading p { color: #b3937a; }
.withdrawal-method-tab {
  border-color: #6b5330;
  background: linear-gradient(110deg, #2b2015, #20170f);
  color: #ddc3a4;
}
.withdrawal-method-tab.is-active,
.withdrawal-method-tab:hover {
  border-color: #ffbe63;
  background: linear-gradient(105deg, #a95810, #e08c1b 62%, #f2ab35);
  color: #fff8ee;
  box-shadow: 0 0 16px #ffa63c3d;
}
.required-hint { color: #ffc17c; }
.withdrawal-confirm {
  border-color: #7a5732;
  background: linear-gradient(110deg, #46301a, #261a11);
  color: #ecd3b4 !important;
}
.withdrawal-confirm:has(input:checked) { border-color: #ffb765; box-shadow: 0 0 16px #ffa63c2a; }
.withdrawal-confirm input[type="checkbox"] { accent-color: #e79a2b; border-color: #b1834f; }
.withdrawal-confirm input[type="checkbox"]:checked { border-color: #ffc478; background: #e0912f; }
.rush-option {
  border-color: #c08a3a;
  background: linear-gradient(110deg, #4a3416, #291d0f);
}
.rush-option strong { color: #ffd76a !important; }
.rush-option small { color: #d7b483 !important; }
.withdrawal-form input[type="file"] { border-color: #b1834f; background: #241a12; }
.withdrawal-form input[type="file"]::file-selector-button {
  border-color: #c08a3a;
  background: #46301a;
  color: #ffdcae;
}
.bank-qr-preview { border-color: #c08a3a; }
#withdraw-submit {
  background: linear-gradient(120deg, #ff9d3c, #f5a623 52%, #e8801b);
  color: #241206;
  box-shadow: 0 10px 26px #ff9d3c33;
  font-weight: 950;
}
#withdraw-submit:hover { filter: brightness(1.07); }
.card-reveal-card {
  border-color: #8a6330;
  background: radial-gradient(circle at 100% 0%, #ffb34718, transparent 55%), linear-gradient(160deg, #2a1c13, #17100c 80%);
}
.card-reveal-card dd { color: #ffd76a; }
.card-reveal-close { background: linear-gradient(120deg, #ff9d3c, #e8801b); color: #241206; }
.task-cancel-card { border-color: #8a6330; }
.task-cancel-confirm { background: linear-gradient(120deg, #ff9d3c, #d8471f); }
@media (max-width: 1080px) { .card-brand-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .card-brand-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* v44 — mệnh giá một hàng, vòng xoay tải bỏ màu hồng */
.card-denomination-choices {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.card-denomination-choice { min-height: 46px; font-size: 12px; }
.card-denomination-choice[aria-pressed="true"] { transform: scale(1.02); }
.loading-ring { border-color: #3a2a1c; border-top-color: #ffb347; border-right-color: #ffd166; }
@media (max-width: 1080px) {
  .card-denomination-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .card-denomination-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* v45 — avatar Discord */
.sidebar-user > span img, .profile-avatar img, .avatar-img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}
.sidebar-user > span, .profile-avatar { overflow: hidden; }

/* v46 — ghi chú tài khoản Discord trong hồ sơ */
.discord-account-note {
  display: grid;
  gap: 5px;
  padding: 13px 15px;
  border: 1px solid #5865f266;
  border-radius: 11px;
  background: linear-gradient(140deg, #5865f21f, #1c1712);
}
.discord-account-note[hidden] { display: none; }
.discord-account-note strong { color: #c7cbff; font-size: 12px; }
.discord-account-note p { margin: 0; color: #b1a79c; font-size: 10px; line-height: 1.65; }

/* v47 — hộp thoại link nhiệm vụ: nút chọn nhiệm vụ khác + tải lại */
.task-link-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}
.task-link-actions .task-link-close { margin-top: 0; }
.task-link-secondary {
  padding: 7px 18px;
  border: 1px solid #4a352a;
  border-radius: 999px;
  background: transparent;
  color: #c0a88f;
  font: inherit;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}
.task-link-secondary:hover { border-color: #ff8a4a; color: #ffd2a4; }
.task-link-card .task-link-close,
.task-link-card .task-link-secondary { display: inline-flex; align-items: center; }

@media (max-width: 560px) {
  .leaderboard-podium { grid-template-columns: 1fr; gap: 8px; }
  .podium-1, .podium-2, .podium-3 { min-height: 0; order: 0; }
  .podium-card { padding: 16px 12px 10px; }
  .leaderboard-table th:nth-child(3), .leaderboard-table td:nth-child(3) { display: none; }
  .leaderboard-table th:first-child { width: 42px; }
  .leaderboard-table th:nth-child(4) { width: 92px; }
}

/* v49 — thẻ nhiệm vụ hẹp hơn, cao hơn */
.task-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.task-card {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  align-items: stretch;
  min-height: 250px;
  gap: 10px;
  padding: 15px 13px;
}
.task-card .task-meta { gap: 5px; }
.task-card .task-meta > * { padding: 5px 3px; }
.task-card .task-reward strong, .task-card .task-auto strong { font-size: 12px; }
.task-card .task-ip strong { font-size: 14px; }
.task-card .task-note { min-height: 46px; -webkit-line-clamp: 3; }
.task-card .task-actions { margin-top: 0; align-self: end; }
.task-card .task-join { min-height: 36px; }
@media (max-width: 1100px) {
  .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-card { min-height: 236px; }
}
@media (max-width: 640px) {
  .task-grid { grid-template-columns: 1fr; }
  .task-card { width: 100%; max-width: 360px; min-height: 0; justify-self: center; }
}
.brand-mark img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: contain; }

/* v50 — top tuần trước, top mời bạn, placeholder và thẻ cào gọn hơn */
.podium-card.is-empty { border-style: dashed; border-color: #43332a; background: linear-gradient(165deg, #1a1410, #14100c); opacity: .72; }
.podium-1.is-empty { box-shadow: none; }
.podium-avatar.is-empty, .leaderboard-avatar.is-empty { border-style: dashed; border-color: #453428; background: transparent; color: #6f5c4c; }
.podium-name.is-empty, .leaderboard-empty-name { color: #7d6857; font-weight: 700; }
.podium-income.is-empty, .leaderboard-income.is-empty { border-style: dashed; background: transparent; color: #6f5c4c; }
.leaderboard-badge.is-empty { border: 0; padding: 0; background: transparent; color: #6f5c4c; }
.leaderboard-rank { display: inline-flex; width: auto; min-width: 30px; height: 26px; align-items: center; justify-content: center; padding: 4px 8px; white-space: nowrap; font-size: 9px; }
.leaderboard-row.is-empty td { background: #161009; }
.leaderboard-extra { display: grid; margin-top: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.leaderboard-mini { display: grid; gap: 4px; }
.leaderboard-mini-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid #33251b; border-radius: 8px; background: #1a120d; }
.leaderboard-mini-row.is-empty { border-style: dashed; background: transparent; }
.leaderboard-mini-rank { color: #9a8168; font-size: 9px; font-weight: 800; }
.leaderboard-mini-row .leaderboard-person { gap: 7px; }
.leaderboard-mini-row .leaderboard-avatar { width: 24px; height: 24px; font-size: 10px; }
.leaderboard-mini-row strong { overflow: hidden; color: #f0dcc8; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-mini-value { color: #ffc17c; font-size: 9px; font-weight: 800; white-space: nowrap; }
.leaderboard-mini-value.is-empty { color: #6f5c4c; }
.card-brand-choices { grid-template-columns: repeat(5, minmax(0, 96px)); gap: 12px; justify-content: center; }
.card-brand-choice { aspect-ratio: auto; grid-template-rows: auto auto; gap: 4px; padding: 5px; border-radius: 9px; font-size: 8px; }
.card-brand-choice img { width: 100%; height: auto; aspect-ratio: 2 / 1; border-radius: 6px; }
@media (max-width: 900px) {
  .leaderboard-extra { grid-template-columns: 1fr; }
  .card-brand-choices { grid-template-columns: repeat(3, minmax(0, 108px)); }
}
@media (max-width: 560px) {
  .card-brand-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .leaderboard-mini-value { font-size: 8px; }
}

/* v51 — thẻ cào lấp đầy hàng + tối ưu hiệu năng */
.card-brand-choices { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; justify-content: stretch; }
.card-brand-choice { aspect-ratio: auto; grid-template-rows: auto auto; gap: 5px; padding: 6px; border-radius: 10px; font-size: 9px; }
.card-brand-choice img { width: 100%; height: auto; aspect-ratio: 200 / 96; border-radius: 7px; object-fit: cover; background: transparent; filter: none !important; }
.card-brand-choice[aria-pressed="true"] { transform: none; }
.blossom-layer { contain: layout paint; }
@media (max-width: 900px) {
  .card-brand-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-brand-choice img { height: auto; }
}
@media (max-width: 560px) {
  .card-brand-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .card-brand-choice img { height: auto; }
}

/* v52 — hai bảng xếp hạng (vượt link / invites) + nút thu gọn */
.leaderboard-switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.leaderboard-tabs { display: inline-flex; gap: 6px; padding: 4px; border: 1px solid #4a3527; border-radius: 999px; background: #1b120d; }
.leaderboard-tab { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 14px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: #c2a68d; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.leaderboard-tab:hover { color: #ffd9a8; }
.leaderboard-tab.is-active { border-color: #e2a94f; background: linear-gradient(100deg, #4a3013, #6a451c); color: #ffe0ae; box-shadow: 0 0 14px #ffb44a26; }
.leaderboard-toggle { display: grid; width: 34px; height: 34px; flex: none; place-items: center; border: 1px solid #4a3527; border-radius: 10px; background: #1b120d; color: #ffc17c; font-size: 15px; font-weight: 900; line-height: 1; cursor: pointer; }
.leaderboard-toggle:hover { border-color: #e2a94f; color: #ffe0ae; }
.leaderboard-invite-note { margin: 10px 0 0; padding: 8px 10px; border: 1px dashed #4a3527; border-radius: 8px; color: #cbb096; font-size: 9px; line-height: 1.6; }
.leaderboard-mini-row.is-info { grid-template-columns: 16px minmax(0, 1fr) auto; border-color: #33251b; background: #191110; }
.leaderboard-mini-row.is-info strong { color: #c9b09a; font-size: 9px; font-weight: 700; }
.leaderboard-tasks.is-empty { color: #6f5c4c; }
#leaderboard-body[hidden], #leaderboard-commission-panel[hidden], #leaderboard-lastweek-panel[hidden], #leaderboard-invite-note[hidden] { display: none !important; }
@media (max-width: 560px) {
  .leaderboard-tabs { flex: 1; }
  .leaderboard-tab { flex: 1; justify-content: center; padding: 0 8px; font-size: 9px; }
}

/* v53 — panel phụ (top tháng), hoa văn SVG và chuyển động */
.leaderboard-mini-panel { position: relative; overflow: hidden; }
.leaderboard-mini-panel::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 100% 0, #ffb34714, transparent 45%); pointer-events: none; }
.lb-ornament { position: absolute; top: -14px; right: -12px; width: 96px; height: 96px; opacity: .5; pointer-events: none; animation: lbOrnamentSpin 34s linear infinite; }
.leaderboard-mini-panel:hover .lb-ornament { opacity: .85; }
@keyframes lbOrnamentSpin { to { transform: rotate(360deg); } }
.leaderboard-mini-panel .panel-heading { position: relative; }
.leaderboard-mini-row { position: relative; opacity: 0; animation: lbRowIn .38s ease forwards; animation-delay: calc(var(--row-index, 0) * 45ms); }
@keyframes lbRowIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.leaderboard-mini-row:hover { border-color: #7a5838; background: #221710; }
.leaderboard-mini-row.is-empty { animation: none; opacity: .8; }
.leaderboard-table tr { opacity: 0; animation: lbRowIn .38s ease forwards; animation-delay: calc(var(--row-index, 0) * 40ms); }
.leaderboard-mini-panel::after { content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 2px; background: linear-gradient(90deg, transparent, #ffb06688, transparent); animation: lbSheen 6.5s ease-in-out infinite; pointer-events: none; }
@keyframes lbSheen { 0% { left: -40%; } 55%, 100% { left: 110%; } }
@media (prefers-reduced-motion: reduce) {
  .lb-ornament, .leaderboard-mini-panel::after { animation: none; }
  .leaderboard-mini-row, .leaderboard-table tr { animation: none; opacity: 1; }
}

/* v54 — panel nhập code cao hơn, thoáng hơn */
.gift-layout { align-items: stretch; }
.gift-redeem-card {
  min-height: 360px;
  align-content: center;
  gap: 16px;
  padding: clamp(24px, 3.2vw, 40px) clamp(22px, 3vw, 44px);
}
.gift-card-head { gap: 14px; }
.gift-icon { width: 58px; height: 58px; border-radius: 15px; font-size: 27px; }
.gift-card-head h3 { font-size: 21px; }
.gift-card-head p { margin-top: 5px; font-size: 11px; line-height: 1.55; }
.gift-redeem-card label { margin-top: 4px; font-size: 10px; letter-spacing: 1px; }
.gift-redeem-card input { min-height: 56px; padding: 0 16px; font-size: 15px; letter-spacing: 1.4px; border-radius: 10px; }
.gift-redeem-card .primary-button { min-height: 52px; font-size: 13px; border-radius: 11px; }
.gift-redeem-card .inline-message { min-height: 18px; font-size: 10px; }
.gift-note-card { align-content: space-between; min-height: 360px; padding: 24px; }
.gift-note-card h3 { font-size: 15px; }
.gift-note-card li { font-size: 11px; line-height: 1.7; }
.gift-support-link { justify-self: start; margin-top: 0; padding-top: 10px; font-size: 11px; }
@media (max-width: 900px) {
  .gift-redeem-card, .gift-note-card { min-height: 0; }
  .gift-redeem-card { padding: 22px 18px; gap: 13px; }
  .gift-redeem-card input { min-height: 50px; font-size: 14px; }
}

/* v55 — task 4 cột gọn 1 hàng, ghim, gift SVG động */
.task-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.task-card {
  min-height: 0;
  grid-template-rows: auto auto auto auto;
  gap: 8px;
  padding: 12px 11px;
  border-radius: 12px;
}
.task-card .task-head { gap: 7px; }
.task-card .task-icon { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; }
.task-card .task-title { font-size: 11px; gap: 3px; }
.task-card .task-sub { font-size: 8px; line-height: 1.35; -webkit-line-clamp: 1; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; }
.task-card .task-slot { padding: 1px 5px; font-size: 7.5px; }
.task-card .task-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.task-card .task-meta > * { padding: 3px 2px; border-radius: 7px; }
.task-card .task-reward strong, .task-card .task-auto strong { font-size: 10px; }
.task-card .task-ip strong { font-size: 11px; }
.task-card .task-reward small, .task-card .task-meta > .task-reward small,
.task-card .task-meta > .task-auto small, .task-card .task-ip small { font-size: 5.5px; }
.task-card .task-meta em { display: none; }
.task-card .task-progressbar { height: 3px; }
.task-card .task-note { min-height: 0; font-size: 8px; line-height: 1.45; -webkit-line-clamp: 2; }
.task-card .task-join { min-height: 28px; border-radius: 8px; font-size: 9px; }
.task-card .task-actions { margin-top: 0; }
.task-card.is-pinned { border-color: #e2a94f; box-shadow: 0 0 0 1px #e2a94f55, 0 0 22px #ffb44a26; }
.task-pin-badge {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px; border: 1px solid #e2a94f; border-radius: 999px;
  background: linear-gradient(100deg, #4a3013, #6a451c); color: #ffe0ae;
  font-size: 7px; font-weight: 900; letter-spacing: .4px;
  animation: pinPulse 3.2s ease-in-out infinite;
}
@keyframes pinPulse { 0%,100% { box-shadow: 0 0 0 0 #ffb44a44; } 50% { box-shadow: 0 0 0 5px #ffb44a00; } }
.task-card.is-pinned .task-slot { margin-right: 46px; }
@media (max-width: 1280px) { .task-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) { .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .task-card .task-note { -webkit-line-clamp: 2; } }
@media (max-width: 620px) { .task-grid { grid-template-columns: 1fr; } .task-card { max-width: none; } }

.gift-icon svg { display: block; width: 30px; height: 30px; }
.gift-icon.is-animated { animation: giftFloat 3.4s ease-in-out infinite; }
@keyframes giftFloat { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-4px) rotate(2deg); } }
.gift-icon .gift-lid { animation: giftLid 3.4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes giftLid { 0%,100% { transform: translateY(0) rotate(0); } 45% { transform: translateY(-3px) rotate(-9deg); } }
.gift-icon .gift-spark { animation: giftSpark 2.6s ease-in-out infinite; }
.gift-icon .gift-spark:nth-of-type(2) { animation-delay: .7s; }
.gift-icon .gift-spark:nth-of-type(3) { animation-delay: 1.4s; }
@keyframes giftSpark { 0%,100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) {
  .gift-icon.is-animated, .gift-icon .gift-lid, .gift-icon .gift-spark, .task-pin-badge { animation: none; }
}

/* v56 — SVG động cho bảng xếp hạng */
.leaderboard-hero { position: relative; overflow: hidden; }
.lb-hero-art { position: absolute; top: 50%; right: 10px; width: 220px; height: 90px; transform: translateY(-50%); opacity: .8; pointer-events: none; }
.leaderboard-hero > .leaderboard-hero-eyebrow,
.leaderboard-hero > h3,
.leaderboard-hero > p { position: relative; z-index: 1; padding-right: 200px; }
.lb-art-bar { animation: lbBarGrow 3.6s ease-in-out infinite; transform-origin: bottom; }
.lb-art-bar:nth-of-type(2) { animation-delay: .25s; }
.lb-art-bar:nth-of-type(3) { animation-delay: .5s; }
.lb-art-bar:nth-of-type(4) { animation-delay: .75s; }
@keyframes lbBarGrow { 0%, 100% { transform: scaleY(.72); } 50% { transform: scaleY(1); } }
.lb-art-crown { animation: lbCrownFloat 4.2s ease-in-out infinite; transform-origin: 163px 40px; }
@keyframes lbCrownFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.lb-art-dot { animation: lbDotBlink 2.8s ease-in-out infinite; }
.lb-art-dot:nth-of-type(2) { animation-delay: .8s; }
.lb-art-dot:nth-of-type(3) { animation-delay: 1.6s; }
@keyframes lbDotBlink { 0%,100% { opacity: .15; } 50% { opacity: 1; } }
.lb-art-ring { animation: lbRingSpin 26s linear infinite; transform-origin: 163px 46px; }
@keyframes lbRingSpin { to { transform: rotate(360deg); } }
.podium-1 .podium-avatar { animation: lbChampGlow 4s ease-in-out infinite; }
@keyframes lbChampGlow { 0%,100% { box-shadow: 0 0 18px #ffb44a33; } 50% { box-shadow: 0 0 30px #ffb44a66; } }
.leaderboard-mini-panel .panel-heading h3 { position: relative; }
.leaderboard-mini-panel .panel-heading h3::after {
  content: ""; display: block; width: 28px; height: 2px; margin-top: 5px;
  background: linear-gradient(90deg, #ffb347, transparent);
  animation: lbUnderline 3.6s ease-in-out infinite;
}
@keyframes lbUnderline { 0%,100% { width: 22px; opacity: .5; } 50% { width: 46px; opacity: 1; } }
@media (max-width: 720px) {
  .lb-hero-art { display: none; }
  .leaderboard-hero > .leaderboard-hero-eyebrow,
  .leaderboard-hero > h3,
  .leaderboard-hero > p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lb-art-bar, .lb-art-crown, .lb-art-dot, .lb-art-ring, .podium-1 .podium-avatar,
  .leaderboard-mini-panel .panel-heading h3::after { animation: none; }
}

.task-pin-toggle {
  flex: none; width: 30px; min-height: 28px; display: grid; place-items: center;
  border: 1px solid #6a4a30; border-radius: 8px; background: #241810;
  color: #c9a888; font-size: 13px; cursor: pointer; transition: .18s ease;
}
.task-pin-toggle:hover { border-color: #e2a94f; color: #ffd79a; }
.task-pin-toggle.is-on { border-color: #e2a94f; background: linear-gradient(100deg, #4a3013, #6a451c); color: #ffe0ae; }
.task-card .task-actions { display: flex; gap: 6px; }
.task-card .task-actions .task-join { flex: 1; }

/* ===== v58 · Thẻ nhiệm vụ to rõ hơn + thanh tiến trình đúng ===== */
.task-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.task-card { gap: 10px; padding: 16px 16px 14px; border-radius: 16px; }
.task-card .task-head { gap: 9px; }
.task-card .task-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 16px; }
.task-card .task-title { font-size: 14px; gap: 4px; }
.task-card .task-sub { font-size: 10px; line-height: 1.45; -webkit-line-clamp: 2; }
.task-card .task-slot { padding: 2px 7px; font-size: 9px; }
.task-card .task-meta { gap: 5px; }
.task-card .task-meta > * { padding: 6px 4px; border-radius: 9px; }
.task-card .task-reward strong, .task-card .task-auto strong { font-size: 13px; }
.task-card .task-ip strong { font-size: 14px; }
.task-card .task-reward small, .task-card .task-meta > .task-reward small,
.task-card .task-meta > .task-auto small, .task-card .task-ip small { font-size: 8px; }
.task-card .task-meta em { display: block; margin-top: 2px; color: #92806f; font-size: 7.5px; font-style: normal; line-height: 1.3; }
.task-card .task-progressbar { height: 6px; margin-top: 1px; background: #33251d; }
.task-card .task-progressbar span[data-filled="true"] { min-width: 8px; }
.task-card .task-note { min-height: 0; font-size: 10px; line-height: 1.5; -webkit-line-clamp: 2; }
.task-card .task-join { min-height: 40px; border-radius: 11px; font-size: 12px; font-weight: 800; letter-spacing: .2px; box-shadow: 0 10px 22px -14px #ff8a3d; }
.task-card .task-join:not(:disabled):hover { box-shadow: 0 14px 26px -14px #ff8a3d; }
.task-card .task-pin-toggle { min-width: 40px; min-height: 40px; border-radius: 11px; font-size: 14px; }
.task-pin-badge { top: 10px; right: 10px; padding: 3px 8px; font-size: 8px; }
.task-card.is-pinned .task-slot { margin-right: 54px; }
@media (max-width: 1180px) { .task-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); } }
@media (max-width: 760px) { .task-grid { grid-template-columns: 1fr; gap: 12px; } }

/* ===== v59 · SVG chuyển động cho tên mục ===== */
.section-heading h2::before,
.panel-heading h3::before,
.admin-section-heading h2::before,
.admin-section-heading h3::before,
.admin-heading h1::before,
.dashboard-topbar h1::before {
  content: "";
  display: inline-block;
  width: 17px;
  height: 17px;
  margin-right: 9px;
  vertical-align: -2px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><defs><linearGradient id='m' x1='0' y1='0' x2='1' y2='1'><stop stop-color='%23ffd166'/><stop offset='1' stop-color='%23ff8a34'/></linearGradient></defs><circle cx='12' cy='12' r='9.2' stroke='url(%23m)' stroke-width='1.5' stroke-dasharray='4 5' opacity='.9'/><path d='M12 5.6l1.55 4.25L17.8 11.4l-4.25 1.55L12 17.2l-1.55-4.25L6.2 11.4l4.25-1.55z' fill='url(%23m)'/></svg>") center / contain no-repeat;
  animation: titleMarkSpin 9s linear infinite, titleMarkGlow 3.4s ease-in-out infinite;
}
@keyframes titleMarkSpin { to { transform: rotate(360deg); } }
@keyframes titleMarkGlow {
  0%, 100%% { filter: drop-shadow(0 0 3px #ff9d3c55); opacity: .88; }
  50% { filter: drop-shadow(0 0 9px #ffb347aa); opacity: 1; }
}
.section-heading h2, .panel-heading h3, .admin-section-heading h2,
.admin-section-heading h3, .admin-heading h1 { letter-spacing: -.2px; }
.section-heading h2::first-letter, .panel-heading h3::first-letter { letter-spacing: 0; }

/* ===== v59 · Banner khóa rút tiền ===== */
.withdraw-lock-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 14px;
  padding: 13px 15px;
  border: 1px solid #a4562c;
  border-radius: 13px;
  background: linear-gradient(120deg, #33200f, #241a13);
  box-shadow: inset 0 1px 0 #ffffff0d, 0 10px 26px -20px #000;
  text-align: left;
}
.withdraw-lock-banner[hidden] { display: none; }
.withdraw-lock-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border: 1px solid #ffb06655;
  border-radius: 11px;
  background: #3a2113;
  color: #ffce8f;
  animation: lockPulseSoft 3.2s ease-in-out infinite;
}
@keyframes lockPulseSoft { 50% { box-shadow: 0 0 18px #ff9d3c55; transform: translateY(-1px); } }
.withdraw-lock-banner strong { display: block; color: #ffd9b3; font-size: 12px; font-weight: 800; }
.withdraw-lock-banner p { margin: 4px 0 0; color: #d3b79e; font-size: 11px; line-height: 1.6; }
.withdraw-lock-banner small { display: block; margin-top: 4px; color: #ffce8f; font-size: 10px; font-weight: 700; }
.task-card .task-progressbar span { transition: width .45s ease; }
