/* Oxo Web – Cộng tác viên: đăng nhập / đăng ký / bảng điều khiển */
/* --af-red: nền/viền/icon · --af-red-t: CHỮ đỏ (#c8232a sáng / #ff8a8e tối, đạt AA – rules §2) */
/* --af-on-ink: CHỮ đặt trên nền var(--af-ink). --af-ink đổi sáng ↔ tối nên chữ trên nó phải đổi theo (trắng ở sáng, gần đen ở tối) – KHÔNG gán cứng #fff */
:root { --af-red: var(--oxo-red, #ec3237); --af-red-t: var(--oxo-red-t, #c8232a); --af-ink: var(--oxo-text, #1d1d24); --af-on-ink: #fff; --af-ln: #ece4e2; --af-soft: #fbf6f4; --af-tint: #fdecea; --af-mute: #636873; --af-faint: #6b7280; }
/* chế độ tối: biến dùng chung cho mọi khối của plugin (nền nhạt gán cứng → nền tối, chữ phụ đủ tương phản – A5-20) */
html[data-theme="dark"] { --af-on-ink: #1b1d22; --af-ln: rgba(255, 255, 255, .1); --af-soft: rgba(255, 255, 255, .05); --af-tint: rgba(236, 50, 55, .16); --af-mute: rgba(255, 255, 255, .64); --af-faint: rgba(255, 255, 255, .6); }
html.aff-lock { overflow: hidden; }

/* ---------- nút header ---------- */
.aff-hdr__login { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border: 1px solid var(--af-ln); border-radius: 999px; background: #fff; color: var(--af-ink) !important; font-size: 14px; font-weight: 700; white-space: nowrap; transition: border-color .25s, color .25s; }
.aff-hdr__login svg { color: var(--af-red); }
.aff-hdr__login:hover { border-color: var(--af-red); color: var(--af-red-t) !important; }
.aff-hdr { position: relative; }
.aff-hdr__btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; min-height: 0; margin: 0; padding: 0; overflow: hidden; border: 2px solid var(--af-tint); border-radius: 50%; background: #fff; }
.aff-hdr__btn img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.aff-hdr__menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 99; display: flex; width: 230px; flex-direction: column; gap: 2px; padding: 8px; border: 1px solid var(--af-ln); border-radius: 16px; background: #fff; box-shadow: 0 20px 40px -20px rgba(17, 17, 26, .3); }
.aff-hdr__menu[hidden] { display: none; }
.aff-hdr__menu p { display: flex; flex-direction: column; margin: 0 0 4px !important; padding: 8px 10px 10px; border-bottom: 1px solid var(--af-ln); }
.aff-hdr__menu p b { color: var(--af-ink); font-size: 14.5px; }
.aff-hdr__menu p small { color: var(--af-mute); font-size: 12px; }
.aff-hdr__menu a { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 10px; color: #374151 !important; font-size: 14px; font-weight: 600; }
.aff-hdr__menu a svg { color: var(--af-red); }
.aff-hdr__menu a:hover { background: var(--af-soft); }

/* ---------- thẻ form ---------- */
.aff-card { position: relative; width: 100%; max-width: 460px; overflow: hidden; border: 1px solid var(--af-ln); border-radius: 24px; background: #fff; box-shadow: 0 30px 60px -30px rgba(17, 17, 26, .35); }
.aff-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--af-soft); }
.aff-tabs button { position: relative; height: 54px; min-height: 0; margin: 0; padding: 0; border: 0; border-bottom: 1px solid var(--af-ln); border-radius: 0; background: transparent; color: var(--af-mute); font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; transition: color .25s, background .25s; }
.aff-tabs button.is-on { border-bottom-color: transparent; background: #fff; color: var(--af-red-t); }
.aff-tabs button.is-on::after { content: ""; position: absolute; left: 24%; right: 24%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--af-red); }
.aff-tabs .aff-x { position: absolute; right: 8px; top: 8px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; color: var(--af-mute); font-size: 22px; line-height: 1; }
.aff-tabs .aff-x:hover { color: var(--af-red-t); }
.aff-panes { padding: 26px 30px 24px; }
.aff-pane { display: none; }
.aff-card[data-view="login"] [data-pane="login"], .aff-card[data-view="register"] [data-pane="register"], .aff-card[data-view="forgot"] [data-pane="forgot"] { display: block; animation: affIn .35s ease both; }
@keyframes affIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.aff-form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.aff-form__hd { text-align: center; }
.aff-av { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 10px; overflow: hidden; border-radius: 50%; background: var(--af-tint); color: var(--af-red); }
.aff-av img { border-radius: 50%; }
.aff-form__hd h2, .aff-form__hd .aff-form__t { margin: 0 0 4px !important; color: var(--af-ink); font-size: 23px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; text-transform: none; }
.aff-form__hd p { margin: 0 !important; color: var(--af-mute); font-size: 14px; }
.aff-google { display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; border: 1px solid var(--af-ln); border-radius: 12px; background: #fff; color: var(--af-ink) !important; font-size: 14.5px; font-weight: 700; transition: border-color .25s, background .25s; }
.aff-google:hover { border-color: #c9d6f5; background: #f8faff; }
.aff-or { display: flex; align-items: center; gap: 12px; margin: 0 !important; color: var(--af-faint); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.aff-or::before, .aff-or::after { content: ""; flex: 1; height: 1px; background: var(--af-ln); }
.aff-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.aff-f { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.aff-f > span { display: flex; align-items: center; gap: 6px; color: #374151; font-size: 13.5px; font-weight: 700; }
.aff-f > span svg { color: var(--af-red); }
.aff-f > span a { margin-left: auto; color: var(--af-red-t) !important; font-size: 12.5px; font-weight: 700; }
.aff-f input, .aff-pw input { width: 100%; height: 46px; margin: 0 !important; padding: 0 14px !important; border: 1px solid transparent !important; border-radius: 12px !important; background: #f4efed !important; box-shadow: none !important; color: var(--af-ink); font-size: 15px; transition: border-color .25s, background .25s; }
.aff-f input:focus, .aff-pw input:focus { border-color: var(--af-red) !important; background: #fff !important; }
.aff-pw { position: relative; display: block; font-style: normal; }
.aff-pw input { padding-right: 46px !important; }
.aff-eye { position: absolute; right: 6px; top: 50%; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; min-height: 0; margin: -17px 0 0; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--af-faint); }
.aff-eye.is-on { color: var(--af-red); }
.aff-check { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: var(--af-mute); font-size: 13.5px; font-weight: 500; line-height: 1.5; }
.aff-check input { margin: 3px 0 0 !important; accent-color: var(--af-red); }
.aff-check a { color: var(--af-red-t) !important; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.aff-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; min-height: 0; margin: 4px 0 0; padding: 0 22px; border: 0; border-radius: 14px; background: var(--af-red); color: #fff !important; font-size: 15.5px; font-weight: 800; letter-spacing: 0; text-transform: none; transition: background .25s, transform .3s; }
.aff-btn:hover { background: #d42a2f; }
.aff-btn.is-load { opacity: .7; pointer-events: none; }
.aff-msg { min-height: 0; margin: 0 !important; font-size: 14px; font-weight: 600; text-align: center; }
.aff-msg:empty { display: none; }
.aff-msg.is-ok { color: #15803d; }
.aff-msg.is-err { color: #c81e24; }
.aff-swap { margin: 0 !important; color: var(--af-mute); font-size: 14px; text-align: center; }
.aff-swap a { color: var(--af-red-t) !important; font-weight: 700; }
.aff-hp { position: absolute !important; left: -9999px !important; }
.aff-note { display: flex; align-items: center; gap: 8px; max-width: 460px; margin: 0 0 12px !important; padding: 12px 14px; border-radius: 12px; background: #fff7ec; color: #9a4b07; font-size: 14px; }

/* ---------- popup ---------- */
.aff-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity .25s; }
.aff-modal[hidden] { display: none; }
.aff-modal.is-on { opacity: 1; }
.aff-modal__bg { position: absolute; inset: 0; background: rgba(20, 16, 16, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.aff-modal .aff-card { max-height: calc(100vh - 40px); overflow-y: auto; transform: translateY(14px) scale(.98); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.aff-modal.is-on .aff-card { transform: none; }

/* ---------- trang /tai-khoan/ ---------- */
.aff-page { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 30px 64px; min-height: 70vh; padding: 48px 20px 72px; background: #fff7f4 radial-gradient(rgba(236, 50, 55, .08) 1px, transparent 1.4px) 0 0 / 22px 22px; }
.aff-page__side { flex: 0 1 420px; }
.aff-page__eye { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px; padding: 6px 13px; border-radius: 999px; background: #fff; color: var(--af-red-t); font-size: 13px; font-weight: 700; box-shadow: 0 0 0 1px rgba(236, 50, 55, .18); }
.aff-page__side h1 { margin: 0 0 18px !important; color: var(--af-ink); font-size: clamp(28px, 3vw, 40px); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; }
.aff-page__side h1 em { display: block; color: var(--af-red-t); font-style: normal; }
.aff-page__side ul { display: flex; flex-direction: column; gap: 12px; margin: 0 0 20px !important; padding: 0 !important; list-style: none; }
.aff-page__side li { display: flex; align-items: center; gap: 12px; margin: 0 !important; color: #374151; font-size: 15px; font-weight: 600; list-style: none; }
.aff-page__side li svg { flex: none; width: 36px; height: 36px; padding: 9px; border-radius: 11px; background: #fff; color: var(--af-red); box-sizing: border-box; box-shadow: 0 0 0 1px var(--af-ln); }
.aff-page__side > a { display: inline-flex; align-items: center; gap: 6px; color: var(--af-red-t) !important; font-weight: 700; }
.aff-card--done { padding: 30px; text-align: center; }
.aff-card--done .aff-btn { width: 100%; }

/* ---------- bảng điều khiển ---------- */
.affd { padding: 22px 0 70px; background: var(--af-soft); }
.affd__in { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; max-width: 1280px; margin: 0 auto; padding: 0 20px; align-items: start; }
.affd-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--af-ln); border-radius: 22px; background: #fff; }
.affd-me { display: flex; align-items: center; gap: 12px; }
.affd-me img { border-radius: 50%; }
.affd-me b { display: block; color: var(--af-ink); font-size: 15.5px; }
.affd-st { display: inline-block; margin-top: 3px; padding: 1px 9px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 12px; font-weight: 700; }
.affd-st.is-active { background: #e3f6e9; color: #166534; } /* #15803d trên #e3f6e9 chỉ 4,45:1 → 6,32:1 */
.affd-st.is-pending { background: #fff3e0; color: #b45309; }
.affd-st.is-locked { background: #fdecea; color: #b4232a; }
.affd-code { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--af-red); color: #fff; }
.affd-code small { grid-column: 1; color: #fff; font-size: 12px; }
.affd-code b { grid-column: 1; font-family: ui-monospace, Consolas, monospace; font-size: 20px; letter-spacing: .08em; }
.affd-code button { position: relative; grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 11px; background: rgba(255, 255, 255, .18); color: #fff; }
.affd-nav { display: flex; flex-direction: column; gap: 2px; }
.affd-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; color: #374151 !important; font-size: 14.5px; font-weight: 600; transition: background .2s, color .2s; }
.affd-nav a svg { color: #a59a97; }
.affd-nav a:hover { background: var(--af-soft); }
.affd-nav a.is-on { background: var(--af-tint); color: var(--af-red-t) !important; font-weight: 800; }
.affd-nav a.is-on svg { color: var(--af-red); }
.affd-nav a.is-off { color: var(--af-faint) !important; pointer-events: none; } /* tab chưa mở (CTV chờ duyệt): chữ xám vẫn đọc được (opacity .45 trước đây 2,35:1) */
.affd-nav a.is-off svg { opacity: .55; }
.affd-out { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--af-ln); color: var(--af-mute) !important; font-size: 14px; font-weight: 600; }
.affd-main { display: flex; min-width: 0; flex-direction: column; gap: 18px; }
.affd-hd h1 { margin: 4px 0 0 !important; color: var(--af-ink); font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.affd-hd .pjx-crumb { margin: 0 !important; }
.affd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.affd-stats.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.affd-stat { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--af-ln); border-radius: 18px; background: #fff; }
.affd-stat i { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: 6px; border-radius: 12px; background: var(--af-tint); color: var(--af-red); }
.affd-stat small { color: var(--af-mute); font-size: 13px; font-weight: 600; }
.affd-stat b { color: var(--af-ink); font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.affd-stat em { color: var(--af-faint); font-size: 12.5px; font-style: normal; }
.affd-stat.is-main { border-color: var(--af-red); background: var(--af-red); }
.affd-stat.is-main i { background: rgba(255, 255, 255, .18); color: #fff; }
.affd-stat.is-main small, .affd-stat.is-main em { color: #fff; }
.affd-stat.is-main b { color: #fff; }
.affd-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.affd-box { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--af-ln); border-radius: 20px; background: #fff; }
.affd-box h2, .affd-cat h2 { display: flex; align-items: center; gap: 8px; margin: 0 !important; color: var(--af-ink); font-size: 17px; font-weight: 800; }
.affd-box h2 svg, .affd-cat h2 svg { color: var(--af-red); }
.affd-box h2 small, .affd-cat h2 small { color: var(--af-faint); font-size: 13px; font-weight: 600; }
.affd-box > p { margin: 0 !important; color: var(--af-mute); font-size: 14px; line-height: 1.6; }
.affd-copy { display: flex; gap: 8px; }
.affd-copy input { flex: 1; min-width: 0; height: 44px; margin: 0 !important; padding: 0 12px !important; border: 1px dashed #e7bdb8 !important; border-radius: 12px !important; background: #fffaf8 !important; box-shadow: none !important; color: var(--af-ink); font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; }
.affd-copy button, [data-aff-copy] { position: relative; }
.affd-copy button { display: inline-flex; align-items: center; gap: 6px; height: 44px; min-height: 0; margin: 0; padding: 0 16px; border: 0; border-radius: 12px; background: var(--af-red); color: #fff; font-size: 14px; font-weight: 700; text-transform: none; letter-spacing: 0; }
/* "Đã chép": phủ lên chính nút vừa bấm (trước đây nổi phía trên nên đè chữ nút "Tạo link" nằm ngay trên hàng Chép) */
[data-aff-copy] em { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: inherit; background: var(--af-ink); color: var(--af-on-ink); font-size: 13px; font-weight: 700; font-style: normal; text-transform: none; letter-spacing: 0; white-space: nowrap; opacity: 0; transition: opacity .2s; pointer-events: none; }
[data-aff-copy].is-done em { opacity: 1; }
.affd-more { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; color: var(--af-red-t) !important; font-size: 14px; font-weight: 700; }
.affd-tiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 !important; padding: 0 !important; list-style: none; }
.affd-tiers li { display: flex; flex-direction: column; margin: 0 !important; padding: 12px; border-radius: 14px; background: var(--af-soft); list-style: none; }
.affd-tiers b { color: var(--af-red-t); font-size: 22px; font-weight: 800; }
.affd-tiers span { color: var(--af-mute); font-size: 12.5px; }
.affd-month { margin: 0 !important; color: var(--af-mute); font-size: 13.5px; }
.affd-month b { color: var(--af-ink); }
.affd-tbl { overflow-x: auto; }
.affd-tbl table { width: 100%; margin: 0; border-collapse: collapse; font-size: 14px; }
.affd-tbl th { padding: 10px 12px; border-bottom: 1px solid var(--af-ln); background: var(--af-soft); color: var(--af-mute); font-size: 12.5px; font-weight: 700; text-align: left; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.affd-tbl td { padding: 12px; border-bottom: 1px solid var(--af-ln); color: #374151; vertical-align: top; }
.affd-tbl td b { display: block; color: var(--af-ink); }
.affd-tbl td small { color: var(--af-faint); font-size: 12px; }
.affd-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 12px; font-weight: 700; white-space: nowrap; }
.affd-pill.is-new { background: #e8f0fe; color: #1a56c4; }
.affd-pill.is-talk { background: #fff3e0; color: #b45309; }
.affd-pill.is-ok { background: #e3f6e9; color: #166534; } /* 4,45 → 6,32:1 */
.affd-pill.is-off { background: #f3f4f6; color: var(--af-mute); } /* #6b7280 trên #f3f4f6 4,39 → #636873 5,08:1 */
.affd-empty { margin: 0 !important; padding: 26px; border: 1px dashed var(--af-ln); border-radius: 14px; color: var(--af-mute); text-align: center; }
.affd-hint { display: flex; align-items: center; gap: 8px; margin: 0 !important; padding: 10px 14px; border-radius: 12px; background: var(--af-soft); color: var(--af-mute); font-size: 13.5px; }
.affd-hint svg { flex: none; color: var(--af-red); }
.affd-hint.is-warn { background: #fff7ec; color: #9a4b07; }
.affd-hint a { color: var(--af-red-t) !important; font-weight: 700; }
.affd-wait { display: flex; gap: 16px; padding: 24px; border: 1px solid #f3d9b8; border-radius: 20px; background: #fff7ec; }
.affd-wait > span { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; flex: none; border-radius: 16px; background: #ea7a1e; color: #fff; }
.affd-wait b { color: var(--af-ink); font-size: 18px; }
.affd-wait p { margin: 6px 0 0 !important; color: #4b5563; font-size: 14.5px; line-height: 1.6; }
.affd-wait a { color: var(--af-red-t) !important; font-weight: 700; }
/* lấy link */
.affd-make { display: flex; gap: 8px; }
.affd-make input { flex: 1; min-width: 0; height: 46px; margin: 0 !important; padding: 0 14px !important; border: 1px solid var(--af-ln) !important; border-radius: 12px !important; background: #fff !important; box-shadow: none !important; }
.affd-make button { height: 46px; min-height: 0; margin: 0; padding: 0 18px; border: 0; border-radius: 12px; background: var(--af-ink); color: var(--af-on-ink); font-weight: 700; text-transform: none; letter-spacing: 0; }
.affd-find { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border: 1px solid var(--af-ln); border-radius: 999px; background: #fff; }
.affd-find svg { color: var(--af-red); }
.affd-find input { flex: 1; height: 100%; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 15px; }
.affd-cat { display: flex; flex-direction: column; gap: 12px; }
.affd-cat[hidden], .affd-svc[hidden] { display: none; }
.affd-svcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.affd-svc { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--af-ln); border-radius: 18px; background: #fff; }
.affd-svc__hd { display: flex; align-items: center; gap: 8px; }
.affd-svc__hd > div { flex: 1; min-width: 0; }
.affd-svc__hd b { display: block; overflow: hidden; color: var(--af-ink); font-size: 15px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.affd-svc__hd small { color: var(--af-faint); font-size: 12.5px; }
.affd-svc__hd a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; border: 1px solid var(--af-ln); border-radius: 10px; color: var(--af-mute) !important; }
.affd-svc__hd button, .affd-plans button { display: inline-flex; flex: none; align-items: center; gap: 6px; height: 36px; min-height: 0; margin: 0; padding: 0 12px; border: 0; border-radius: 10px; background: var(--af-tint); color: var(--af-red-t); font-size: 13px; font-weight: 700; text-transform: none; letter-spacing: 0; white-space: nowrap; transition: background .2s, color .2s; }
.affd-svc__hd button:hover, .affd-plans button:hover { background: var(--af-red); color: #fff; }
.affd-plans { display: flex; flex-direction: column; gap: 4px; margin: 0 !important; padding: 8px 0 0 !important; border-top: 1px dashed var(--af-ln); list-style: none; }
.affd-plans li { display: flex; align-items: center; gap: 8px; margin: 0 !important; padding: 6px 0; list-style: none; }
.affd-plan__n { flex: 1; min-width: 0; color: #374151; font-size: 14px; font-weight: 600; }
.affd-plan__p { color: var(--af-red-t); font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.affd-plans button { height: 30px; padding: 0 10px; font-size: 12px; background: var(--af-soft); color: #4b5563; }
@media (max-width: 1099px) {
    .affd__in { grid-template-columns: minmax(0, 1fr); }
    .affd-side { position: static; min-width: 0; }
    .affd-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
    .affd-nav a { flex: none; }
    .affd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .affd-grid, .affd-svcs { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .aff-panes { padding: 20px 18px; }
    .aff-row { grid-template-columns: 1fr; }
    .affd-stats, .affd-stats.is-3 { grid-template-columns: 1fr 1fr; }
    .affd-stat b { font-size: 19px; }
    .affd-tbl thead { display: none; }
    .affd-tbl tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--af-ln); }
    .affd-tbl td { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border: 0; text-align: right; }
    .affd-tbl td::before { content: attr(data-l); color: var(--af-faint); font-size: 12.5px; text-align: left; }
    .affd-svc__hd { flex-wrap: wrap; }
}
html[data-theme="dark"] .aff-card, html[data-theme="dark"] .aff-hdr__menu, html[data-theme="dark"] .affd-side, html[data-theme="dark"] .affd-box, html[data-theme="dark"] .affd-stat:not(.is-main), html[data-theme="dark"] .affd-svc, html[data-theme="dark"] .aff-hdr__login { background: var(--oxo-surface, #1b1b22); --af-ln: rgba(255, 255, 255, .1); --af-ink: rgba(255, 255, 255, .92); }
html[data-theme="dark"] .affd, html[data-theme="dark"] .aff-page { background: var(--oxo-bg, #121216); }
html[data-theme="dark"] .aff-tabs, html[data-theme="dark"] .aff-f input, html[data-theme="dark"] .aff-pw input { background: rgba(255, 255, 255, .05) !important; }
/* header chật: nút đăng nhập chỉ còn icon dưới 1500px */

/* =========================================================================
 * v2 – popup 2 cột · ô nhập có icon · không rớt chữ mồ côi
 * ====================================================================== */
.aff-card { display: grid; grid-template-columns: 330px minmax(0, 1fr); max-width: 900px; border: 0; border-radius: 28px; text-wrap: pretty; }
.aff-card__main { position: relative; display: flex; min-width: 0; flex-direction: column; }
/* bảng thương hiệu */
.aff-brand { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 34px 30px; overflow: hidden; background: var(--af-red); color: #fff; }
.aff-brand::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 260px; height: 260px; border: 34px solid rgba(255, 255, 255, .07); border-radius: 50%; }
.aff-brand > * { position: relative; z-index: 1; }
.aff-brand__eye { display: inline-flex; align-self: flex-start; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 12.5px; font-weight: 700; }
.aff-brand__t { margin: 0 !important; font-size: 26px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; }
.aff-brand__t b { color: #ffe0b8; }
.aff-brand ul { display: flex; flex-direction: column; gap: 12px; margin: 0 !important; padding: 0 !important; list-style: none; }
.aff-brand li { display: flex; align-items: flex-start; gap: 10px; margin: 0 !important; font-size: 14px; line-height: 1.5; list-style: none; }
.aff-brand li svg { flex: none; width: 30px; height: 30px; padding: 7px; border-radius: 9px; background: rgba(255, 255, 255, .16); box-sizing: border-box; }
.aff-brand__tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: auto; }
.aff-brand__tiers span { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 12px; background: rgba(255, 255, 255, .12); }
.aff-brand__tiers b { font-size: 18px; font-weight: 800; line-height: 1.1; }
.aff-brand__tiers small { color: #fff; font-size: 12px; }
/* tab trượt */
.aff-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 26px 30px 0; padding: 4px; border-radius: 14px; background: #f4efed; }
.aff-tabs button { position: relative; z-index: 1; height: 42px; border: 0 !important; border-radius: 11px; background: transparent !important; }
.aff-tabs button.is-on { color: var(--af-ink); }
.aff-tabs button.is-on::after { display: none; }
.aff-tabs__ink { position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc(50% - 4px); border-radius: 11px; background: #fff; box-shadow: 0 2px 8px rgba(17, 17, 26, .08); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.aff-card[data-view="register"] .aff-tabs__ink { transform: translateX(100%); }
.aff-x { position: absolute; right: 12px; top: 12px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--af-faint); font-size: 24px; line-height: 1; }
.aff-x:hover { background: var(--af-soft); color: var(--af-red-t); }
.aff-card__main .aff-tabs { margin-right: 60px; }
.aff-panes { padding: 22px 30px 26px; }
.aff-form { gap: 13px; }
.aff-form__hd { display: flex; align-items: center; gap: 12px; text-align: left; }
.aff-av { width: 44px; height: 44px; flex: none; margin: 0; border-radius: 14px; }
.aff-form__hd h2, .aff-form__hd .aff-form__t { margin: 0 0 2px !important; font-size: 20px !important; text-wrap: balance; } /* !important: theme có .oxo-ui #content h1 { font-size: clamp(26px…36px) } */
.aff-form__hd p { font-size: 13.5px; text-wrap: balance; }
.aff-f { gap: 5px; }
.aff-f__l { color: #4b5563; font-size: 12.5px; font-weight: 700; }
.aff-f__l small { color: var(--af-faint); font-size: 12px; font-weight: 500; } /* "(nếu có)" – trước kế thừa small của trình duyệt 10,8px */
.aff-in { position: relative; display: block; font-style: normal; }
.aff-in > svg { position: absolute; left: 13px; top: 50%; z-index: 1; margin-top: -8.5px; color: #b3a7a4; pointer-events: none; transition: color .2s; }
.aff-in:focus-within > svg { color: var(--af-red); }
.aff-in input { width: 100%; height: 44px; margin: 0 !important; padding: 0 14px 0 40px !important; border: 1px solid #ece4e2 !important; border-radius: 12px !important; background: #fff !important; box-shadow: none !important; color: var(--af-ink); font-size: 14.5px; transition: border-color .2s, box-shadow .2s; }
.aff-in input:focus { border-color: var(--af-red) !important; box-shadow: 0 0 0 3px rgba(236, 50, 55, .1) !important; }
.aff-in.has-eye input { padding-right: 44px !important; }
.aff-in .aff-eye { right: 5px; }
.aff-row { gap: 10px; }
.aff-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.aff-line > a { color: var(--af-red-t) !important; font-size: 13px; font-weight: 700; white-space: nowrap; }
.aff-check { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; }
.aff-check span { flex: 1; min-width: 0; }
.aff-google { height: 44px; border-radius: 12px; }
.aff-or { font-size: 12px; }
.aff-btn { height: 48px; margin-top: 2px; border-radius: 13px; }
.aff-btn.is-line { border: 1px solid var(--af-ln); background: #fff; color: var(--af-ink) !important; }
.aff-btn.is-line:hover { border-color: var(--af-red); background: #fff; color: var(--af-red-t) !important; }
/* popup */
.aff-modal { padding: 16px; }
.aff-modal .aff-card { width: 100%; max-height: calc(100vh - 32px); overflow: hidden; }
.aff-modal .aff-card__main { max-height: calc(100vh - 32px); overflow-y: auto; scrollbar-width: thin; }
/* trang /dang-nhap/ */
.aff-page { min-height: 0; padding: 48px 16px 72px; }
.aff-page .aff-page__side { display: none; }
.aff-page > .aff-card { max-width: 900px; }
/* khối kêu gọi trên trang Cộng tác viên */
.aff-join { padding: 64px 0; background: #fff; scroll-margin-top: 80px; }
.aff-join__box { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 40px 44px; border-radius: 30px; background: var(--af-red); color: #fff; overflow: hidden; position: relative; }
.aff-join__box::after { content: ""; position: absolute; right: -120px; top: -120px; width: 340px; height: 340px; border: 46px solid rgba(255, 255, 255, .07); border-radius: 50%; }
.aff-join__box > * { position: relative; z-index: 1; }
.aff-join__txt h2 { margin: 14px 0 18px !important; color: #fff; font-size: clamp(26px, 2.8vw, 36px); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.aff-join__txt ol { display: flex; flex-direction: column; gap: 10px; margin: 0 0 24px !important; padding: 0 !important; list-style: none; }
.aff-join__txt li { display: flex; align-items: center; gap: 12px; margin: 0 !important; color: #fff; font-size: 15px; font-weight: 600; list-style: none; }
.aff-join__txt li b { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: #fff; color: #c8232a; font-size: 13px; } /* nền trắng cả ở chế độ tối → giữ đỏ đậm cố định */
.aff-join__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.aff-join__btns .aff-btn { background: #fff; color: #c8232a !important; }
.aff-join__btns .aff-btn:hover { background: #fff4f2; }
.aff-join__btns .aff-btn.is-line { border-color: rgba(255, 255, 255, .45); background: transparent; color: #fff !important; }
.aff-join__btns .aff-btn.is-line:hover { border-color: #fff; color: #fff !important; }
.aff-join__tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 !important; padding: 0 !important; list-style: none; }
.aff-join__tiers li { display: flex; flex-direction: column; gap: 2px; margin: 0 !important; padding: 18px; border-radius: 18px; background: rgba(0, 0, 0, .18); list-style: none; }
.aff-join__tiers b { font-size: 30px; font-weight: 800; line-height: 1; }
.aff-join__tiers span { color: #fff; font-size: 13px; }
@media (max-width: 860px) {
    .aff-card { grid-template-columns: 1fr; max-width: 480px; }
    .aff-brand { display: none; }
    .aff-join__box { grid-template-columns: 1fr; padding: 28px 22px; }
}
@media (max-width: 520px) {
    .aff-tabs { margin: 18px 18px 0; }
    .aff-card__main .aff-tabs { margin-right: 54px; }
    .aff-panes { padding: 18px; }
    .aff-row { grid-template-columns: 1fr; }
    .aff-join__btns .aff-btn { flex: 1 1 100%; }
}
html[data-theme="dark"] .aff-tabs { background: rgba(255, 255, 255, .06) !important; }
html[data-theme="dark"] .aff-tabs__ink, html[data-theme="dark"] .aff-in input { background: var(--oxo-surface, #1b1b22) !important; }
/* v3 – nút tài khoản nằm trong cụm icon header (cùng kiểu Tìm kiếm / Sáng-Tối) */
.oxh__tools .aff-hdr__login { width: auto; height: auto; padding: 0; border: 0; background: none; }
.oxh__tools .aff-hdr__login.oxh__icon { display: inline-flex; align-items: center; justify-content: center; }
.oxh__tools .aff-hdr__login svg { color: inherit; }
.oxh__tools .aff-hdr__login:hover { color: var(--af-red-t) !important; }
.oxh__tools .aff-hdr { display: flex; }
.oxh__tools .aff-hdr__btn { padding: 2px; border: 0; background: none; }
.oxh__tools .aff-hdr__btn img { width: 30px; height: 30px; border: 2px solid var(--af-tint); }
@media (max-width: 849px) { .oxh__tools .aff-hdr__login, .oxh__tools .aff-hdr { display: none; } }
/* khối đỏ: chữ trắng rõ ràng (theme ép màu tiêu đề) */
.aff-join__box .aff-brand__eye { background: rgba(0, 0, 0, .2) !important; color: #fff !important; }
.aff-join__box h2, .aff-join__txt h2 { color: #fff !important; }
.aff-join__txt li, .aff-join__txt li span { color: #fff !important; }
.aff-join__tiers b, .aff-join__tiers span { color: #fff !important; }
.aff-brand, .aff-brand * { color: #fff; }
.aff-brand__t b { color: #ffe0b8 !important; }
/* header: nút Đăng ký CTV, logo không bị co → chuyển sang oxo_aff_head_css() (inc/auth.php, in sẵn ở mọi trang) */
/* chế độ tối – chữ đủ tương phản trên form đăng nhập / đăng ký */
html[data-theme="dark"] .aff-card, html[data-theme="dark"] .aff-page, html[data-theme="dark"] .affd, html[data-theme="dark"] .aff-modal { --af-mute: rgba(255, 255, 255, .64); --af-ink: rgba(255, 255, 255, .94); }
html[data-theme="dark"] .aff-f__l { color: rgba(255, 255, 255, .8) !important; }
html[data-theme="dark"] .aff-f__l small { color: rgba(255, 255, 255, .55); }
html[data-theme="dark"] .aff-form__hd h2, html[data-theme="dark"] .aff-form__hd .aff-form__t { color: #fff !important; }
html[data-theme="dark"] .aff-form__hd p, html[data-theme="dark"] .aff-swap { color: rgba(255, 255, 255, .64); }
html[data-theme="dark"] .aff-tabs button:not(.is-on) { color: rgba(255, 255, 255, .6) !important; }
html[data-theme="dark"] .aff-tabs button.is-on { color: #fff !important; }
html[data-theme="dark"] .aff-check, html[data-theme="dark"] .aff-check span { color: rgba(255, 255, 255, .86); }
html[data-theme="dark"] .aff-in svg, html[data-theme="dark"] .aff-eye { color: rgba(255, 255, 255, .55) !important; }
html[data-theme="dark"] .aff-in input, html[data-theme="dark"] .aff-f input { color: #fff !important; border-color: rgba(255, 255, 255, .16) !important; }
html[data-theme="dark"] .aff-in input::placeholder, html[data-theme="dark"] .aff-f input::placeholder { color: rgba(255, 255, 255, .42); }
html[data-theme="dark"] .aff-or span { color: rgba(255, 255, 255, .55); }
/* ===== Bảng điều khiển CTV v2 ===== */
.affd-av { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: linear-gradient(135deg, #c2410c, #d4252a); color: #fff; font-size: 20px; font-weight: 800; } /* chữ cái trắng: #ff7a2e→#ec3237 chỉ 2,6–4,1:1 (đo 3,18) → cam đậm → đỏ đậm (Q30) ≥ 5,1:1 */
.affd-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 22px; padding: 24px; border: 1px solid var(--af-ln); border-radius: 22px; background: linear-gradient(120deg, #fff 0%, #fff 55%, var(--af-tint) 100%); }
.affd-hero__t small { color: var(--af-mute); font-size: 13.5px; font-weight: 600; }
.affd-hero__t h2 { margin: 2px 0 6px !important; color: var(--af-ink); font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.affd-hero__t p { margin: 0 !important; color: var(--af-mute); font-size: 14px; line-height: 1.6; }
.affd-hero__a { display: grid; gap: 10px; }
.affd-hero__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.affd-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin: 0; padding: 0 13px; border: 1px solid var(--af-ln); border-radius: 999px; background: #fff; color: var(--af-ink) !important; font-size: 13px; font-weight: 700; text-transform: none; letter-spacing: 0; cursor: pointer; }
.affd-chip svg { color: var(--af-red); }
.affd-chip:hover { border-color: var(--af-red); }
.affd-stack { display: flex; flex-direction: column; gap: 18px; }
.affd-steps { display: grid; gap: 12px; margin: 0 !important; padding: 0 !important; list-style: none; counter-reset: st; }
.affd-steps li { position: relative; display: grid; gap: 2px; padding-left: 40px; counter-increment: st; }
.affd-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--af-tint); color: var(--af-red-t); font-size: 13px; font-weight: 800; }
.affd-steps b { color: var(--af-ink); font-size: 14px; }
.affd-steps span { color: var(--af-mute); font-size: 13px; line-height: 1.5; }
.affd-leads { display: grid; gap: 10px; margin: 0 !important; padding: 0 !important; list-style: none; }
.affd-lead { display: grid; gap: 12px; padding: 14px 16px; border: 1px solid var(--af-ln); border-radius: 16px; }
.affd-lead__t { display: flex; justify-content: space-between; gap: 12px; }
.affd-lead__t > div:first-child { min-width: 0; }
.affd-lead__t b { display: block; color: var(--af-ink); font-size: 14.5px; }
.affd-lead__t small { display: block; color: var(--af-mute); font-size: 12.5px; }
.affd-lead__m { flex: none; text-align: right; }
.affd-lead__m b { color: var(--af-red-t); font-size: 15px; }
.affd-lead__x { margin: 0 !important; color: var(--af-mute); font-size: 13px; }
/* khách không thành: KHÔNG làm mờ cả thẻ (opacity .7 kéo chữ phụ xuống 2,99:1) – biểu thị bằng nền nhạt, viền đứt, tên chữ phụ và nhãn xám */
.affd-lead.is-lost { border-style: dashed; background: var(--af-soft); }
.affd-lead.is-lost .affd-lead__t b { color: var(--af-mute); }
.affd-lead.is-lost .affd-lead__m small { display: inline-block; padding: 1px 9px; border-radius: 999px; background: #eef0f3; color: #475569; font-size: 12px; font-weight: 700; }
.affd-prog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 !important; padding: 0 !important; list-style: none; }
.affd-prog li { display: grid; gap: 6px; color: var(--af-faint); font-size: 12px; font-weight: 600; }
.affd-prog li::before { content: ""; height: 6px; border-radius: 3px; background: var(--af-ln); }
.affd-prog li.is-done { color: var(--af-mute); }
.affd-prog li.is-done::before { background: #16a34a; }
.affd-prog li.is-now { color: var(--af-ink); }
.affd-prog li.is-now::before { background: var(--af-red); }
.affd-empty { display: grid; justify-items: center; gap: 6px; }
.affd-empty svg { color: var(--af-red); }
.affd-empty b { color: var(--af-ink); }
.affd-empty span { font-size: 13.5px; }
@media (max-width: 960px) {
	.affd-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
	.affd-hero { padding: 18px; }
	.affd-hero__t h2 { font-size: 22px; }
	.affd-chip { flex: 1 1 auto; justify-content: center; }
	.affd-prog span { font-size: 12px; line-height: 1.25; }
}
html[data-theme="dark"] .affd-hero { background: linear-gradient(120deg, var(--oxo-surface, #1b1b22) 55%, rgba(236, 50, 55, .16)); --af-ln: rgba(255, 255, 255, .1); }
html[data-theme="dark"] .affd-chip { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .92) !important; }
html[data-theme="dark"] .affd-lead { border-color: rgba(255, 255, 255, .1); }
html[data-theme="dark"] .affd-lead.is-lost { border-color: rgba(255, 255, 255, .16); }
html[data-theme="dark"] .affd-lead.is-lost .affd-lead__m small { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .82); }
html[data-theme="dark"] .affd-prog li::before { background: rgba(255, 255, 255, .12); }
html[data-theme="dark"] .affd-prog li.is-done::before { background: #22c55e; }
html[data-theme="dark"] .affd-prog li.is-now::before { background: var(--af-red); }
html[data-theme="dark"] .affd-steps li::before { background: rgba(236, 50, 55, .18); }.affd-grid { align-items: start; }
html[data-theme="dark"] .affd-copy input { background: rgba(255, 255, 255, .06) !important; border-color: rgba(255, 255, 255, .22) !important; color: rgba(255, 255, 255, .92) !important; }
html[data-theme="dark"] .affd-tiers li { background: rgba(255, 255, 255, .06); }
html[data-theme="dark"] .affd-stat:not(.is-main) i { background: rgba(236, 50, 55, .16); }
html[data-theme="dark"] .affd-nav a { color: rgba(255, 255, 255, .78) !important; }
html[data-theme="dark"] .affd-nav a svg { color: rgba(255, 255, 255, .5); }
html[data-theme="dark"] .affd-nav a:hover { background: rgba(255, 255, 255, .06); }
html[data-theme="dark"] .affd-nav a.is-on { background: rgba(236, 50, 55, .18); color: #ff8a8d !important; }
html[data-theme="dark"] .affd-nav a.is-on svg { color: #ff8a8d; }
html[data-theme="dark"] .affd-nav a.is-off { color: rgba(255, 255, 255, .6) !important; }
html[data-theme="dark"] .affd-tbl th { color: rgba(255, 255, 255, .7); }
/* ===== Đăng ký 2 lựa chọn: thành viên (link bio) / cộng tác viên – gọn 1 dòng ===== */
.aff-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 16px; padding: 4px; border-radius: 12px; background: var(--oxo-surface-2, #f5f6f8); }
.aff-kind { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; margin: 0 !important; padding: 0 10px !important; border: 0; border-radius: 9px; background: transparent; color: var(--oxo-muted, #6f7480); font-size: 14px; line-height: 1.2; text-transform: none; letter-spacing: 0; white-space: nowrap; box-shadow: none; cursor: pointer; transition: background .2s, color .2s; }
.aff-kind b { font-weight: 700; }
.aff-kind.is-on { background: var(--oxo-surface, #fff); color: var(--af-red-t); box-shadow: 0 1px 4px rgba(17,20,30,.1); }
.aff-kindpane { display: none; }
.aff-kindbox[data-kind="member"] [data-kindpane="member"], .aff-kindbox[data-kind="aff"] [data-kindpane="aff"] { display: block; }
.aff-card[data-kind="member"] .aff-brand.is-aff, .aff-card:not([data-kind="member"]) .aff-brand.is-member { display: none; }
.aff-brand.is-member .aff-brand__url { margin-top: auto; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.14); font-weight: 700; font-size: 13px; text-align: center; overflow-wrap: anywhere; }
.aff-mem .aff-btn { margin-top: 6px; }
.aff-up { margin-top: 16px; padding: 12px 14px; border: 1px dashed var(--oxo-border-strong, #dcdce0); border-radius: 12px; }
.aff-up > summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.aff-up .aff-form { margin-top: 12px; }
html[data-theme="dark"] .aff-kind.is-on { background: var(--oxo-surface, #1a1d24); }
/* ===== A5-20 – chế độ tối: khối nền sáng gán cứng còn sót (dải trắng quanh khối Đăng ký CTV, ô/nút nền trắng, nhãn trạng thái) ===== */
html[data-theme="dark"] .aff-join { background: var(--oxo-bg, #0f1115); }
html[data-theme="dark"] .aff-google, html[data-theme="dark"] .aff-btn.is-line, html[data-theme="dark"] .aff-hdr__btn, html[data-theme="dark"] .aff-tabs .aff-x, html[data-theme="dark"] .affd-make input, html[data-theme="dark"] .affd-find, html[data-theme="dark"] .aff-page__eye { background: var(--oxo-surface-2, #14161b) !important; border-color: rgba(255, 255, 255, .16) !important; color: rgba(255, 255, 255, .92) !important; }
html[data-theme="dark"] .aff-google:hover, html[data-theme="dark"] .aff-btn.is-line:hover { background: rgba(255, 255, 255, .08) !important; color: #fff !important; }
html[data-theme="dark"] .aff-join__btns .aff-btn.is-line, html[data-theme="dark"] .aff-join__btns .aff-btn.is-line:hover { border-color: rgba(255, 255, 255, .45) !important; background: transparent !important; color: #fff !important; }
html[data-theme="dark"] .aff-join__btns .aff-btn:not(.is-line) { background: #fff !important; color: #c8232a !important; }
html[data-theme="dark"] .aff-hdr__menu a, html[data-theme="dark"] .aff-f > span, html[data-theme="dark"] .affd-tbl td, html[data-theme="dark"] .affd-plan__n, html[data-theme="dark"] .aff-page__side li, html[data-theme="dark"] .affd-plans button { color: rgba(255, 255, 255, .84) !important; }
html[data-theme="dark"] .aff-msg.is-ok { color: #86efac; } /* #15803d / #c81e24 trên nền tối chỉ ~3:1 (báo đăng nhập/đăng ký, "Tạo link" sai địa chỉ) */
html[data-theme="dark"] .aff-msg.is-err { color: #ff9a9d; }
html[data-theme="dark"] .aff-note, html[data-theme="dark"] .affd-wait, html[data-theme="dark"] .affd-hint.is-warn { border-color: rgba(234, 122, 30, .35); background: rgba(234, 122, 30, .12); color: #fbc58a; }
html[data-theme="dark"] .affd-wait p { color: rgba(255, 255, 255, .8); }
html[data-theme="dark"] .affd-pill, html[data-theme="dark"] .affd-st { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .82); }
html[data-theme="dark"] .affd-pill.is-new { background: rgba(59, 130, 246, .2); color: #a5c8ff; }
html[data-theme="dark"] .affd-pill.is-talk, html[data-theme="dark"] .affd-st.is-pending { background: rgba(234, 122, 30, .18); color: #fbc58a; }
html[data-theme="dark"] .affd-pill.is-ok, html[data-theme="dark"] .affd-st.is-active { background: rgba(34, 197, 94, .16); color: #86efac; }
html[data-theme="dark"] .affd-pill.is-off { background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .6); }
html[data-theme="dark"] .affd-st.is-locked { background: rgba(236, 50, 55, .18); color: #ff9a9d; }
html[data-theme="dark"] .affd-tiers b, html[data-theme="dark"] .affd-plan__p, html[data-theme="dark"] .affd-lead__m b { color: var(--af-red-t); }
@media (max-width: 380px) { .aff-kind { font-size: 13px; padding: 0 6px !important; } .aff-kind svg { display: none; } }