/* August Live Codes — trang /code-live. Author: August — https://augustcsgo.com */
.alc-wrap { --alc-gold: #ffd700; --alc-muted: #8892b0; --alc-text: #e8ecf5; max-width: 1100px; margin: 0 auto; padding: 34px 16px 50px; color: var(--alc-text); font-family: Montserrat, "Segoe UI", Roboto, Arial, sans-serif; box-sizing: border-box; }
.alc-wrap *, .alc-wrap *::before, .alc-wrap *::after, .alc-modal, .alc-modal * { box-sizing: border-box; }
.alc-wrap .alc-title { margin: 0; padding: 0; text-align: center; font-size: 34px; line-height: 1.2; font-weight: 900; letter-spacing: 1px; background: linear-gradient(90deg, #ff6b35, #ffd700); -webkit-background-clip: text; background-clip: text; color: transparent; text-transform: none; }
.alc-wrap .alc-sub { text-align: center; color: #9aa4bf; margin: 8px 0 26px; font-size: 14px; }
.alc-wrap .alc-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; }
.alc-wrap .alc-card { background: linear-gradient(160deg, #141b28, #1a2332); border: 1px solid rgba(255, 215, 0, .16); border-radius: 18px; padding: 22px; min-width: 0; }
.alc-wrap .alc-full { grid-column: 1 / -1; }
.alc-wrap .alc-h3 { margin: 0 0 14px; padding: 0; font-size: 16px; font-weight: 800; color: var(--alc-text); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.alc-wrap .alc-h3 small { font-size: 12px; color: var(--alc-muted); font-weight: 600; }

.alc-wrap .alc-status { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: 13px; }
.alc-wrap .alc-live-dot { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: rgba(239, 68, 68, .15); border: 1px solid rgba(239, 68, 68, .5); color: #ff6b6b; font-size: 11px; font-weight: 800; letter-spacing: 1px; }
.alc-wrap .alc-live-dot i { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 10px #ef4444; animation: alc-blink 1.2s infinite; }
.alc-wrap .alc-live-dot--paused { background: rgba(250, 204, 21, .12); border-color: rgba(250, 204, 21, .45); color: #facc15; }
.alc-wrap .alc-live-dot--paused i { background: #facc15; box-shadow: none; animation: none; }
.alc-wrap .alc-badge-x2 { padding: 4px 10px; border-radius: 99px; background: var(--alc-gold); color: #1a1a1a; font-size: 11px; font-weight: 900; }
.alc-wrap .alc-status-title { font-weight: 700; color: #cbd5e1; }
.alc-wrap .alc-off { color: #9aa4bf; font-weight: 600; }
.alc-wrap .alc-yt { margin-left: auto; color: #ff6b6b; font-weight: 700; text-decoration: none; font-size: 12.5px; }
.alc-wrap .alc-yt:hover { text-decoration: underline; }

.alc-wrap .alc-code-row { display: flex; gap: 10px; margin: 6px 0 0; }
.alc-wrap .alc-code-input { flex: 1; min-width: 0; height: 58px; margin: 0; padding: 0 12px; border-radius: 14px; border: 2px solid rgba(255, 215, 0, .35); background: #0b0f18; color: var(--alc-gold); font: 800 24px Consolas, "Courier New", monospace; letter-spacing: 6px; text-align: center; text-transform: uppercase; box-shadow: none; outline: none; }
.alc-wrap .alc-code-input:focus { border-color: var(--alc-gold); box-shadow: 0 0 0 3px rgba(255, 215, 0, .15); }
.alc-wrap .alc-code-input::placeholder { color: #4b5570; letter-spacing: 4px; }
.alc-wrap .alc-btn, .alc-modal .alc-btn { display: inline-flex; align-items: center; justify-content: center; height: 58px; margin: 0; border: 0; border-radius: 14px; padding: 0 26px; font: 800 15px Montserrat, "Segoe UI", Arial, sans-serif; color: #fff; background: linear-gradient(135deg, #ff6b35, #e63946); box-shadow: 0 8px 22px rgba(230, 57, 70, .35); cursor: pointer; text-decoration: none; text-transform: none; letter-spacing: .5px; white-space: nowrap; }
.alc-wrap .alc-btn:hover { filter: brightness(1.08); color: #fff; }
.alc-wrap .alc-btn:disabled, .alc-wrap .alc-btn.is-loading { opacity: .6; cursor: wait; }
.alc-wrap .alc-btn--login { height: 46px; }

.alc-wrap .alc-login { text-align: center; padding: 16px; border: 1px dashed rgba(255, 215, 0, .3); border-radius: 14px; background: rgba(11, 15, 24, .6); }
.alc-wrap .alc-login p { margin: 0 0 12px; color: #cbd5e1; font-weight: 600; }

.alc-wrap .alc-notice { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-weight: 700; font-size: 14px; line-height: 1.5; }
.alc-wrap .alc-notice.is-ok { background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .35); color: #4ade80; }
.alc-wrap .alc-notice.is-bad { background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .35); color: #fca5a5; }

.alc-wrap .alc-session { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: #b8c0d8; }
.alc-wrap .alc-pip { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; font-size: 12px; border: 2px dashed #3a4560; color: #5c6680; }
.alc-wrap .alc-pip.is-x2 { border-color: var(--alc-gold); color: var(--alc-gold); }
.alc-wrap .alc-pip.is-open { border-style: solid; border-color: #ef4444; color: #ff6b6b; animation: alc-ring 1.2s infinite; }
.alc-wrap .alc-pip.is-miss { opacity: .45; border-style: solid; }
.alc-wrap .alc-pip.is-done { border: 2px solid #22c55e; background: rgba(34, 197, 94, .15); color: #4ade80; opacity: 1; animation: none; }
.alc-wrap .alc-session-note { margin-left: 6px; color: var(--alc-muted); }
.alc-wrap .alc-session-note b { color: var(--alc-gold); }

.alc-wrap .alc-rules { list-style: none; margin: 16px 0 0; padding: 0; font-size: 12.5px; color: var(--alc-muted); line-height: 1.6; }
.alc-wrap .alc-rules li { margin: 0 0 4px; padding: 0; }
.alc-wrap .alc-rules b { color: #cbd5e1; }

.alc-wrap .alc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.alc-wrap .alc-stat { background: #0d121c; border: 1px solid #232c3f; border-radius: 14px; padding: 14px 8px; text-align: center; }
.alc-wrap .alc-stat b { display: block; font-size: 26px; font-weight: 900; color: var(--alc-gold); line-height: 1.2; }
.alc-wrap .alc-stat span { font-size: 11px; color: var(--alc-muted); font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.alc-wrap .alc-stat--blue b { color: #60a5fa; }
.alc-wrap .alc-stat--green b { color: #4ade80; }
.alc-wrap .alc-wallet-notes { list-style: none; margin: 14px 0 0; padding: 0; font-size: 12.5px; color: var(--alc-muted); line-height: 1.6; }
.alc-wrap .alc-wallet-notes li { margin: 0 0 4px; padding: 0; }
.alc-wrap .alc-wallet-notes b { color: #cbd5e1; }
.alc-wrap .alc-wallet-notes li.is-warn { color: #fbbf24; }
.alc-wrap .alc-hint { margin: 0; font-size: 13px; color: var(--alc-muted); line-height: 1.6; }

.alc-wrap .alc-table-wrap { overflow-x: auto; }
.alc-wrap .alc-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 13px; background: transparent; border: 0; }
.alc-wrap .alc-table th, .alc-wrap .alc-table td { padding: 9px 10px; border: 0; border-bottom: 1px solid #1e2738; text-align: left; color: #cbd5e1; background: transparent; vertical-align: middle; }
.alc-wrap .alc-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--alc-muted); font-weight: 700; }
.alc-wrap .alc-table .alc-num { text-align: right; font-weight: 800; white-space: nowrap; }
.alc-wrap .alc-table .is-pos { color: #4ade80; }
.alc-wrap .alc-table .is-neg { color: #f87171; }
.alc-wrap .alc-nowrap { white-space: nowrap; }

.alc-modal { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(5, 8, 14, .72); backdrop-filter: blur(3px); font-family: Montserrat, "Segoe UI", Roboto, Arial, sans-serif; }
.alc-modal__box { position: relative; width: 100%; max-width: 420px; padding: 26px 22px 20px; border-radius: 18px; text-align: center; color: #e8ecf5; background: linear-gradient(160deg, #141b28, #1a2332); border: 1px solid rgba(255, 215, 0, .3); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); animation: alc-pop .25s ease-out; }
.alc-modal__box.is-ok { border-color: rgba(34, 197, 94, .5); }
.alc-modal__box.is-bad { border-color: rgba(239, 68, 68, .5); }
.alc-modal__icon { font-size: 40px; line-height: 1; margin-bottom: 8px; }
.alc-modal__box h3 { margin: 0 0 8px; font-size: 18px; font-weight: 900; color: #fff; }
.alc-modal__box p { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: #cbd5e1; }
.alc-modal__lines { list-style: none; margin: 0 0 14px; padding: 0; text-align: left; }
.alc-modal__lines li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; margin-bottom: 6px; border-radius: 10px; background: #0d121c; border: 1px solid #232c3f; font-size: 13px; }
.alc-modal__lines b { color: #ffd700; white-space: nowrap; }
.alc-modal__x { position: absolute; top: 8px; right: 10px; border: 0; background: transparent; color: #8892b0; font-size: 24px; line-height: 1; cursor: pointer; padding: 4px; }
.alc-modal .alc-modal__close { height: 44px; min-width: 120px; }

@keyframes alc-blink { 50% { opacity: .35; } }
@keyframes alc-ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .5); } 50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); } }
@keyframes alc-pop { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 820px) {
    .alc-wrap .alc-grid { grid-template-columns: 1fr; }
    .alc-wrap .alc-title { font-size: 28px; }
}
@media (max-width: 480px) {
    .alc-wrap { padding: 22px 10px 40px; }
    .alc-wrap .alc-card { padding: 16px; }
    .alc-wrap .alc-code-row { flex-direction: column; }
    .alc-wrap .alc-code-input { height: 54px; font-size: 21px; letter-spacing: 4px; }
    .alc-wrap .alc-btn { width: 100%; height: 50px; }
    .alc-wrap .alc-stat b { font-size: 22px; }
    .alc-wrap .alc-yt { margin-left: 0; }
}

/* ── GĐ2: ví 2×2, cửa hàng, đồ của tôi, bảng xếp hạng ── */
.alc-wrap .alc-stats { grid-template-columns: repeat(2, 1fr); }
.alc-wrap .alc-stat--purple b { color: #c084fc; }
.alc-wrap .alc-gold { color: var(--alc-gold); }

.alc-wrap .alc-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.alc-wrap .alc-tab { margin: 0; padding: 7px 13px; border-radius: 99px; font: 700 12px Montserrat, "Segoe UI", Arial, sans-serif; background: #161e2c; border: 1px solid #2a3348; color: #9aa4bf; cursor: pointer; line-height: 1.2; text-transform: none; box-shadow: none; }
.alc-wrap .alc-tab:hover { color: #e8ecf5; }
.alc-wrap .alc-tab.is-on { background: linear-gradient(135deg, #ff6b35, #e63946); color: #fff; border-color: transparent; }

.alc-wrap .alc-shop-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; }
.alc-wrap .alc-shop-head .alc-h3 { margin-bottom: 8px; }
.alc-wrap .alc-shop-bal { margin: 0 0 12px; font-size: 13px; color: var(--alc-muted); }
.alc-wrap .alc-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.alc-wrap .alc-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; background: #0d121c; border: 1px solid #232c3f; border-radius: 14px; padding: 14px 12px; text-align: center; transition: border-color .2s, transform .2s; }
.alc-wrap .alc-item:hover { border-color: rgba(255, 215, 0, .35); transform: translateY(-2px); }
.alc-wrap .alc-item[hidden] { display: none; }
.alc-wrap .alc-item.is-out { opacity: .6; } /* v1.3.7: thiếu điểm vẫn hiện sáng */
.alc-wrap .alc-item-img { width: 100%; height: 96px; display: flex; align-items: center; justify-content: center; }
.alc-wrap .alc-item-img img { max-width: 100%; max-height: 96px; border-radius: 6px; object-fit: contain; margin: 0; border: 0; box-shadow: none; }
.alc-wrap .alc-item-ico { font-size: 40px; line-height: 86px; height: 86px; }
.alc-wrap .alc-item-nm { font-weight: 800; font-size: 13.5px; color: #e8ecf5; margin-top: 4px; }
.alc-wrap .alc-item-note { font-size: 11.5px; color: var(--alc-muted); line-height: 1.45; }
.alc-wrap .alc-item-stock { font-size: 11px; color: #7c869f; }
.alc-wrap .alc-item-odds { font-size: 11.5px; color: #93c5fd; text-decoration: none; font-weight: 700; }
.alc-wrap .alc-item-odds:hover { text-decoration: underline; }
.alc-wrap .alc-price { margin: auto 0 0; margin-top: 8px; padding: 8px 14px; border: 0; border-radius: 10px; font: 800 13px Montserrat, "Segoe UI", Arial, sans-serif; color: #fff; background: linear-gradient(135deg, #ff6b35, #e63946); cursor: pointer; text-transform: none; box-shadow: none; line-height: 1.2; }
.alc-wrap .alc-price:hover:not(:disabled) { filter: brightness(1.1); }
.alc-wrap .alc-price:disabled { background: #2a3246; color: #9aa4bf; cursor: not-allowed; }
.alc-wrap .alc-item-why { font-size: 11px; color: #fbbf24; font-weight: 700; }
.alc-wrap .alc-tag { position: absolute; top: 8px; right: 8px; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: rgba(96, 165, 250, .15); color: #93c5fd; border: 1px solid rgba(96, 165, 250, .35); }
.alc-wrap .alc-tag--hot { background: rgba(239, 68, 68, .15); color: #fca5a5; border-color: rgba(239, 68, 68, .4); }
.alc-wrap .alc-tag--rare { background: rgba(192, 132, 252, .15); color: #d8b4fe; border-color: rgba(192, 132, 252, .4); }

.alc-wrap .alc-inv { display: grid; gap: 14px; }
.alc-wrap .alc-inv-group h4 { margin: 0 0 8px; padding: 0; font-size: 14px; font-weight: 800; color: #e8ecf5; }
.alc-wrap .alc-inv-group h4 small { color: var(--alc-muted); font-weight: 600; }
.alc-wrap .alc-inv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.alc-wrap .alc-inv-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; padding: 9px 12px; border-radius: 12px; background: #0d121c; border: 1px solid #1e2738; font-size: 13px; }
.alc-wrap .alc-inv-row.is-used, .alc-wrap .alc-inv-row.is-missing { opacity: .55; }
.alc-wrap .alc-inv-code { font: 800 14px Consolas, "Courier New", monospace; color: var(--alc-gold); letter-spacing: 1px; background: transparent; padding: 0; }
.alc-wrap .alc-inv-meta { color: var(--alc-muted); flex: 1; min-width: 120px; }
.alc-wrap .alc-inv-st { font-weight: 700; color: #cbd5e1; }
.alc-wrap .alc-mini, .alc-modal .alc-mini { display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: 6px 11px; border-radius: 9px; border: 1px solid #2a3348; background: #161e2c; color: #e8ecf5; font: 700 12px Montserrat, "Segoe UI", Arial, sans-serif; cursor: pointer; text-decoration: none; text-transform: none; line-height: 1.2; box-shadow: none; }
.alc-wrap .alc-mini--go, .alc-modal .alc-mini--go { background: linear-gradient(135deg, #ff6b35, #e63946); border-color: transparent; color: #fff; }

.alc-wrap .alc-lb-list { list-style: none; margin: 0; padding: 0; }
.alc-wrap .alc-lb-row { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; padding: 9px 10px; border-radius: 12px; background: #0d121c; border: 1px solid #1e2738; font-size: 13.5px; }
.alc-wrap .alc-lb-row.is-me { border-color: rgba(255, 215, 0, .5); background: rgba(255, 215, 0, .06); }
.alc-wrap .alc-lb-rk { width: 26px; font-weight: 900; text-align: center; color: #9aa4bf; }
.alc-wrap .alc-lb-row.r1 .alc-lb-rk { color: #ffd700; }
.alc-wrap .alc-lb-row.r2 .alc-lb-rk { color: #cbd5e1; }
.alc-wrap .alc-lb-row.r3 .alc-lb-rk { color: #f59e0b; }
.alc-wrap .alc-lb-av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; margin: 0; background: #1e293b; }
.alc-wrap .alc-lb-nm { flex: 1; font-weight: 700; color: #e8ecf5; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alc-wrap .alc-lb-nm a { color: inherit; text-decoration: none; }
.alc-wrap .alc-lb-nm small { color: var(--alc-gold); font-weight: 600; }
.alc-wrap .alc-lb-pt { font-weight: 900; color: var(--alc-gold); white-space: nowrap; }
.alc-wrap .alc-lb-me { margin-top: 8px; padding: 9px 12px; border-radius: 12px; border: 1px dashed rgba(255, 215, 0, .4); font-size: 13px; color: #cbd5e1; }
.alc-wrap .alc-lb-me b { color: var(--alc-gold); }
.alc-wrap .alc-lb-panel[hidden] { display: none; }
.alc-wrap.alc-wrap--lb { padding: 0; }
.alc-wrap--lb .alc-lb { background: linear-gradient(160deg, #141b28, #1a2332); border: 1px solid rgba(255, 215, 0, .16); border-radius: 18px; padding: 22px; }

.alc-modal .alc-gift-code { margin: 6px 0 12px; padding: 12px; border-radius: 12px; background: #0b0f18; border: 2px dashed rgba(255, 215, 0, .45); font: 900 22px Consolas, "Courier New", monospace; letter-spacing: 2px; color: #ffd700; word-break: break-all; }
.alc-modal .alc-gift-text { margin: 6px 0 12px; padding: 12px; border-radius: 12px; background: #0d121c; border: 1px solid #232c3f; font-weight: 700; color: #e8ecf5; }
.alc-modal .alc-gift-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.alc-modal .alc-gift-actions .alc-btn { height: 40px; }
.alc-modal .alc-gift-bal { font-size: 13px; color: #9aa4bf; }

@media (max-width: 480px) {
    .alc-wrap .alc-shop { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .alc-wrap .alc-item { padding: 12px 8px; }
    .alc-wrap .alc-item-img, .alc-wrap .alc-item-ico { height: 64px; line-height: 64px; }
    .alc-wrap .alc-item-img img { max-height: 64px; }
}

/* v1.3.4 shop tools: tab + search */
.alc-wrap .alc-shop-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.alc-wrap .alc-shop-tools .alc-tabs { margin: 0; }
.alc-wrap .alc-shop-search { flex: 1 1 180px; max-width: 280px; height: 34px; margin: 0; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #e8eaf0; font-size: 13px; outline: none; box-shadow: none; }
.alc-wrap .alc-shop-search:focus { border-color: #ff6a3d; }
.alc-wrap .alc-shop-search::placeholder { color: #8a93a6; }
.alc-wrap .alc-shop-empty { grid-column: 1 / -1; }
/* v1.3.5 thẻ gọn + popup chi tiết */
.alc-wrap .alc-item { cursor: pointer; transition: transform .15s, border-color .15s; }
.alc-wrap .alc-item:hover, .alc-wrap .alc-item:focus-visible { transform: translateY(-2px); border-color: rgba(255,106,61,.55); outline: none; }
.alc-wrap .alc-item-chip { display: inline-block; margin-top: 8px; padding: 5px 14px; border-radius: 999px; background: rgba(255,193,7,.12); color: #ffc107; font-weight: 700; font-size: 13px; }
.alc-wrap .alc-item.is-out .alc-item-chip { background: rgba(255,255,255,.06); color: #8a93a6; }
.alc-modal--item { text-align: center; }
.alc-modal--item .alc-item-img { height: auto; margin: 4px 0 10px; display: flex; justify-content: center; }
.alc-modal--item .alc-item-img img { max-width: 100%; max-height: 160px; object-fit: contain; border-radius: 8px; }
.alc-modal--item .alc-item-ico { font-size: 56px; line-height: 1.2; margin: 6px 0; }
.alc-modal--item .alc-item-pop { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 6px; }
.alc-modal--item .alc-item-note { color: #c9cfdb; font-size: 14px; }
.alc-modal--item .alc-item-stock { color: #8a93a6; font-size: 12.5px; }
.alc-modal--item .alc-price { margin-top: 8px; min-width: 180px; }
.alc-modal--item .alc-item-why { color: #f0b429; font-size: 12.5px; }
.alc-wrap .alc-item.is-poor .alc-item-chip { background: rgba(255,193,7,.12); color: #ffc107; }
/* v1.3.8 popup: ảnh trái · thông tin phải · nút dưới phải */
.alc-modal--item { text-align: left; max-width: 600px; width: calc(100% - 24px); }
.alc-modal--item .alc-pop-grid { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: stretch; }
.alc-modal--item .alc-pop-media { display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.03); border-radius: 10px; padding: 12px; min-height: 160px; }
.alc-modal--item .alc-pop-media .alc-item-img { margin: 0; height: auto; }
.alc-modal--item .alc-pop-media .alc-item-img img { max-height: 180px; }
.alc-modal--item .alc-pop-info { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.alc-modal--item .alc-pop-info h3 { margin: 0 28px 4px 0; text-align: left; font-size: 19px; }
.alc-modal--item .alc-pop-info .alc-item-note { text-align: left; }
.alc-modal--item .alc-pop-act { margin-top: auto; padding-top: 12px; align-self: flex-end; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.alc-modal--item .alc-pop-act .alc-price { margin: 0; min-width: 170px; }
@media (max-width: 560px) {
  .alc-modal--item .alc-pop-grid { grid-template-columns: 1fr; gap: 12px; }
  .alc-modal--item .alc-pop-media { min-height: 0; }
  .alc-modal--item .alc-pop-act { align-self: stretch; align-items: stretch; }
  .alc-modal--item .alc-pop-act .alc-price { width: 100%; }
}
.alc-modal--item .alc-item-odds { color: #7cc4ff; font-weight: 600; text-decoration: none; }
.alc-modal--item .alc-item-odds:hover { color: #a8d8ff; text-decoration: underline; }
/* v1.3.9 nút + lý do canh giữa với nhau, sát nhau */
.alc-modal--item .alc-pop-act { align-items: center; gap: 2px; }
.alc-modal--item .alc-pop-act .alc-item-why { margin: 0; text-align: center; }
.alc-modal--item .alc-pop-act .alc-price { margin: 0 !important; }
/* v1.3.10 nút căn trái + mô tả rút gọn */
.alc-modal--item .alc-pop-act { align-self: flex-start; align-items: flex-start; }
.alc-modal--item .alc-pop-act .alc-item-why { text-align: left; }
.alc-modal--item .alc-item-note.is-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.alc-modal--item .alc-note-more { background: none; border: 0; padding: 0; margin: -2px 0 0; color: #7cc4ff; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: none; }
.alc-modal--item .alc-note-more:hover { text-decoration: underline; background: none; }
@media (max-width: 560px) { .alc-modal--item .alc-pop-act { align-self: stretch; align-items: stretch; } }
.alc-modal--item .alc-pop-act .alc-price { min-width: 0; padding-left: 18px; padding-right: 18px; }
.alc-modal--item .alc-note-more { text-transform: none; letter-spacing: normal; }
/* v1.3.12 nút trong popup (popup nằm ngoài .alc-wrap) */
.alc-modal--item .alc-pop-act .alc-price { padding: 11px 26px; border: 0; border-radius: 10px; font: 800 14px Montserrat, "Segoe UI", Arial, sans-serif; color: #fff; background: linear-gradient(135deg, #ff6b35, #e63946); cursor: pointer; text-transform: none; line-height: 1.2; box-shadow: 0 6px 18px rgba(230,57,70,.35); transition: transform .15s, filter .15s; }
.alc-modal--item .alc-pop-act .alc-price:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.alc-modal--item .alc-pop-act .alc-price:disabled { background: #2a3246; color: #9aa4bf; cursor: not-allowed; box-shadow: none; }
/* v1.3.13 nhãn "Cực hiếm": khung vàng lấp lánh */
.alc-wrap .alc-tag--legend { background: linear-gradient(135deg, #fff3b0, #ffd700 45%, #b8860b); color: #3a2a00; border: 0; font-weight: 800; box-shadow: 0 0 10px rgba(255,215,0,.55); }
.alc-wrap .alc-item.is-legend { position: relative; border: 1px solid transparent; background:
    linear-gradient(#0d121c, #0d121c) padding-box,
    linear-gradient(120deg, #b8860b, #ffd700, #fff6c2, #ffd700, #b8860b) border-box;
  background-size: 100% 100%, 300% 300%; animation: alc-gold-border 4s linear infinite; box-shadow: 0 0 18px rgba(255,215,0,.28), inset 0 0 22px rgba(255,215,0,.06); overflow: hidden; }
.alc-wrap .alc-item.is-legend::after { content: ""; position: absolute; top: -60%; left: -80%; width: 45%; height: 220%; background: linear-gradient(105deg, transparent, rgba(255,246,194,.28), transparent); transform: rotate(18deg); animation: alc-gold-shine 3.2s ease-in-out infinite; pointer-events: none; }
.alc-wrap .alc-item.is-legend:hover { box-shadow: 0 0 26px rgba(255,215,0,.45), inset 0 0 22px rgba(255,215,0,.1); }
.alc-wrap .alc-item.is-legend .alc-item-nm { color: #ffe27a; }
@keyframes alc-gold-border { 0% { background-position: 0 0, 0% 50%; } 100% { background-position: 0 0, 300% 50%; } }
@keyframes alc-gold-shine { 0% { left: -80%; } 55%, 100% { left: 140%; } }
@media (prefers-reduced-motion: reduce) { .alc-wrap .alc-item.is-legend, .alc-wrap .alc-item.is-legend::after { animation: none; } }
.alc-wrap .alc-item.is-legend .alc-tag { z-index: 2; }
/* v1.4.0 ± số lượng */
.alc-modal--item .alc-qty { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.alc-modal--item .alc-qty__b { width: 34px; height: 34px; border-radius: 8px; border: 1px solid #2c3650; background: #1b2234; color: #e8eaf0; font-size: 18px; font-weight: 800; cursor: pointer; padding: 0; line-height: 1; box-shadow: none; }
.alc-modal--item .alc-qty__b:disabled { opacity: .4; cursor: not-allowed; }
.alc-modal--item .alc-qty__n { width: 64px; height: 34px; text-align: center; border-radius: 8px; border: 1px solid #2c3650; background: #0d121c; color: #ffd700; font-weight: 800; font-size: 15px; padding: 0 4px; margin: 0; -moz-appearance: textfield; }
.alc-modal--item .alc-qty__n::-webkit-outer-spin-button, .alc-modal--item .alc-qty__n::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.alc-modal--item .alc-qty__max { height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(255,215,0,.35); background: rgba(255,215,0,.08); color: #ffd700; font-size: 12px; font-weight: 700; cursor: pointer; box-shadow: none; }
/* v1.4.1 ± số lượng: nhóm liền khối, chống CSS theme đè */
.alc-modal .alc-qty { display: inline-flex !important; align-items: stretch; gap: 8px; margin: 0 0 10px !important; }
.alc-modal .alc-qty__grp { display: inline-flex; align-items: stretch; height: 38px; border: 1px solid #2c3650; border-radius: 10px; background: #0d121c; overflow: hidden; }
.alc-modal .alc-qty .alc-qty__b { all: unset; box-sizing: border-box; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; color: #e8eaf0; font: 700 20px/1 Montserrat, "Segoe UI", Arial, sans-serif; cursor: pointer; background: #161d2c; transition: background .15s, color .15s; }
.alc-modal .alc-qty .alc-qty__b:hover:not(:disabled) { background: #ff6b35; color: #fff; }
.alc-modal .alc-qty .alc-qty__b:disabled { color: #4b5570; cursor: not-allowed; }
.alc-modal .alc-qty .alc-qty__n { all: unset; box-sizing: border-box; width: 56px; height: 38px; text-align: center; color: #ffd700; font: 800 16px/38px Montserrat, "Segoe UI", Arial, sans-serif; border-left: 1px solid #2c3650; border-right: 1px solid #2c3650; background: #0d121c; -moz-appearance: textfield; }
.alc-modal .alc-qty .alc-qty__n::-webkit-outer-spin-button, .alc-modal .alc-qty .alc-qty__n::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.alc-modal .alc-qty .alc-qty__max { all: unset; box-sizing: border-box; height: 38px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 10px; border: 1px solid rgba(255,215,0,.4); background: rgba(255,215,0,.08); color: #ffd700; font: 700 12.5px Montserrat, "Segoe UI", Arial, sans-serif; cursor: pointer; }
.alc-modal .alc-qty .alc-qty__max:hover { background: rgba(255,215,0,.18); }
