/* ============================================================
   THEME.CSS - giao diện dùng chung toàn site (shop acc game)
   Bố cục: topbar cố định trên cùng > .shell (khung nội dung max-width, canh giữa)
   ============================================================ */

:root {
    --void: #0b0e14;
    --ink-900: #0f131b;
    --panel: #131822;
    --panel-hi: #1a2130;
    --line: #232b3a;
    --ink-100: #f1f4f9;
    --ink-300: #b7c0d1;
    --ink-400: #838ea3;
    --ember: #ff7a3d;
    --ember-hi: #ff9560;
    --cyan: #37d6c8;
    --green: #35c46a;
    --red: #ef5461;
    --gold: #f2b53c;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--void);
    color: var(--ink-100);
    font-family: 'Be Vietnam Pro', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}
h1, h2, h3 { font-family: 'Chakra Petch', 'Be Vietnam Pro', sans-serif; margin: 0 0 6px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.num { font-variant-numeric: tabular-nums; }

/* ---- topbar ---- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(11,14,20,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 22px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 1.15rem; }
.logo .dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--ember), var(--gold)); box-shadow: 0 0 12px var(--ember); }
.nav-links { display: flex; gap: 18px; flex: 1; }
.nav-links a { color: var(--ink-300); font-weight: 600; font-size: .92rem; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--ink-100); }
.top-right { display: flex; align-items: center; gap: 10px; }
.wallet-chip { background: var(--panel-hi); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: .82rem; color: var(--ink-300); }
.wallet-chip .n { color: var(--gold); font-weight: 700; margin-left: 4px; }

/* ---- menu thả xuống "Chợ ACC" (lọc nhanh theo game ngay từ menu) ---- */
.nav-dd { position: relative; display: inline-flex; align-items: center; }
.nav-dd-trigger { display: inline-flex; align-items: center; gap: 4px; }
.nav-dd-panel { position: absolute; left: 0; top: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); min-width: 200px; max-height: 360px; overflow-y: auto; padding: 6px; z-index: 50; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.nav-dd:hover .nav-dd-panel, .nav-dd-panel:hover { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dd-panel a { display: block; padding: 9px 10px; border-radius: 8px; font-size: .86rem; color: var(--ink-300); font-weight: 500; white-space: nowrap; border-bottom: none; }
.nav-dd-panel a:hover { background: var(--panel-hi); color: var(--ink-100); }

.user-menu { position: relative; }
.user-menu-trigger { display: flex; align-items: center; gap: 6px; background: var(--panel-hi); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; color: var(--ink-100); font-size: .85rem; font-weight: 600; cursor: pointer; }
.user-menu-dropdown { position: absolute; right: 0; top: calc(100% + 8px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); min-width: 220px; padding: 6px; }
.user-menu-dropdown a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: .86rem; color: var(--ink-300); }
.user-menu-dropdown a:hover { background: var(--panel-hi); color: var(--ink-100); }
.user-menu-dropdown .um-logout { color: var(--red); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-hi); color: var(--ink-100); font-weight: 600; font-size: .88rem; cursor: pointer; }
.btn:hover { border-color: #34405a; }
.btn-primary { background: linear-gradient(135deg, var(--ember), #ff5f3d); border-color: transparent; color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.btn.danger, button.danger { color: var(--red); }

/* ---- shell / layout ---- */
.shell { max-width: 1180px; margin: 0 auto; padding: 20px; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0 6px; }
.hero h1 { font-size: 1.5rem; }
.hero p { color: var(--ink-400); margin: 4px 0 0; font-size: .92rem; }
.page-banner { margin: 18px 0; }
.crumb { display: flex; align-items: center; gap: 8px; color: var(--ink-400); font-size: .82rem; margin-top: 16px; }
.crumb a:hover { color: var(--ink-100); }
.crumb .now { color: var(--ink-100); }

/* ---- alerts / notice ---- */
.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: .88rem; border: 1px solid; }
.alert-success { background: rgba(53,196,106,.1); border-color: rgba(53,196,106,.35); color: #8be6ac; }
.alert-error { background: rgba(239,84,97,.1); border-color: rgba(239,84,97,.35); color: #ff9aa2; }
.notice { display: flex; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--cyan); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 16px; }

/* ---- forms ---- */
.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.form-card h1 { font-size: 1.25rem; }
.form-card .sub { color: var(--ink-400); font-size: .86rem; margin-bottom: 16px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: .82rem; color: var(--ink-300); margin-bottom: 6px; font-weight: 600; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: .8rem; color: var(--ink-300); margin-bottom: 5px; font-weight: 600; }
input, select, textarea { width: 100%; background: var(--void); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; color: var(--ink-100); font-size: .9rem; font-family: inherit; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ember); }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-400); pointer-events: none; }
.input-icon input { padding-left: 38px; }
.pw-wrap .pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: .95rem; padding: 4px 6px; }

/* ---- rail / filter sidebar ---- */
.sub-layout { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; margin-top: 16px; }
.rail { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.rail-title { font-weight: 700; font-size: .95rem; margin-bottom: 12px; }

/* ---- grid / cards ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: #34405a; }
.card-art { position: relative; aspect-ratio: 4/3; background: var(--panel-hi); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.card-art.no-img .ph { color: var(--ink-400); }
.id-badge { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.55); border-radius: 999px; padding: 3px 9px; font-size: .7rem; font-weight: 700; }
.tier-badge { position: absolute; top: 8px; right: 8px; border-radius: 999px; padding: 3px 9px; font-size: .7rem; font-weight: 700; background: var(--panel-hi); }
.card.tier-legend .tier-badge { background: linear-gradient(135deg, var(--gold), #ffdf8a); color: #3a2a00; }
.card.tier-rare .tier-badge { background: linear-gradient(135deg, var(--cyan), #7ff0e6); color: #003531; }
.card-body { padding: 12px; }
.card-title { font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.card-desc { color: var(--ink-400); font-size: .78rem; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.price-old { color: var(--ink-400); text-decoration: line-through; font-size: .78rem; }
.price-now { color: var(--ember-hi); font-weight: 700; font-size: 1.02rem; }
.stat-row { display: grid; grid-template-columns: 40% 1fr; gap: 6px; padding: 3px 0; }
.stat-row .k { color: var(--ink-400); }
.stat-row .v { color: var(--ink-100); font-weight: 600; text-align: right; }
.stat-sheet { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }

/* ---- card mobile layout (giống tham khảo accnro.vn): ảnh sản phẩm để TRỐNG không đè chữ/giá lên
   trên (giá vẫn hiện riêng ở phần thân thẻ, dưới ảnh, như bình thường), hàng icon Bảo hành/Uy tín/
   Giao ngay, 2 nút Xem/Mua riêng biệt ở đáy thẻ - CHỈ áp dụng dưới 640px, trên desktop thẻ vẫn
   hiển thị y như cũ (không đổi gì) để không ảnh hưởng bố cục máy tính. ---- */
.card-link { display: block; color: inherit; text-decoration: none; }
.card-trust-row { display: none; align-items: flex-start; justify-content: space-between; gap: 2px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.card-trust-row .t { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .6rem; color: var(--ink-400); flex: 1; text-align: center; }
.card-trust-row .t svg { color: var(--cyan); flex-shrink: 0; }
.card-actions { display: none; gap: 6px; margin-top: 10px; }
.card-actions a { flex: 1; text-align: center; padding: 8px 0; border-radius: 8px; font-size: .78rem; font-weight: 700; }
.card-actions .btn-view { background: var(--panel-hi); color: var(--ink-100); border: 1px solid var(--line); }
.card-actions .btn-buy { background: linear-gradient(135deg, var(--ember), var(--gold)); color: #2a1400; }
@media (max-width: 640px) {
    .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .card-trust-row { display: flex; }
    .card-actions { display: flex; }
    .card-body { padding: 9px; }
    .card-title { font-size: .82rem; }
}

/* ---- badges ---- */
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.badge-on { background: rgba(53,196,106,.14); color: #6fe397; border: 1px solid rgba(53,196,106,.3); }
.badge-mid { background: rgba(242,181,60,.14); color: var(--gold); border: 1px solid rgba(242,181,60,.3); }
.badge-off { background: rgba(239,84,97,.14); color: #ff9aa2; border: 1px solid rgba(239,84,97,.3); }
.ctv-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: rgba(55,214,200,.14); color: var(--cyan); border: 1px solid rgba(55,214,200,.3); }

/* ---- stock bar ---- */
.stock-bar-wrap { margin: 14px 0; }
.stock-bar-top { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ink-400); margin-bottom: 6px; }
.stock-bar { height: 8px; border-radius: 999px; background: var(--panel-hi); overflow: hidden; }
.stock-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--cyan)); border-radius: 999px; }
.stock-bar.low i { background: linear-gradient(90deg, var(--gold), var(--ember)); }
.stock-bar.critical i { background: linear-gradient(90deg, var(--ember), var(--red)); }

/* ---- price panel (mua random) ---- */
.price-panel { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--panel-hi); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; margin: 14px 0; flex-wrap: wrap; }
.price-panel .val { font-size: 1.3rem; font-weight: 700; color: var(--ember-hi); }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-stepper button { width: 30px; height: 34px; background: var(--void); border: none; color: var(--ink-100); font-size: 1rem; cursor: pointer; }
.qty-stepper input { width: 54px; text-align: center; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; height: 34px; padding: 0; }

/* ---- empty state ---- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-400); }
.empty-state .ic-wrap { width: 52px; height: 52px; border-radius: 50%; background: var(--panel-hi); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.empty-state .t { color: var(--ink-100); font-weight: 700; margin-bottom: 4px; }
.empty-state .d { font-size: .86rem; }

/* ---- pager ---- */
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.pager a { min-width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); font-size: .84rem; font-weight: 600; color: var(--ink-300); }
.pager a.active { background: var(--ember); border-color: transparent; color: #fff; }
.pager a:hover { color: var(--ink-100); }

/* ---- banner ngang "Chợ ACC" (trang chủ) ---- */
.promo-banner { display: flex; align-items: center; gap: 16px; background: linear-gradient(120deg, rgba(55,214,200,.16), rgba(19,24,34,.9) 60%); border: 1px solid rgba(55,214,200,.35); border-radius: var(--radius); padding: 16px 18px; margin: 16px 0; text-decoration: none; transition: border-color .15s, transform .15s; }
.promo-banner:hover { border-color: var(--cyan); transform: translateY(-1px); }
.promo-banner-icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--cyan), #1f9c92); color: #04211e; display: flex; align-items: center; justify-content: center; }
.promo-banner-body { flex: 1; min-width: 0; }
.promo-banner-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.promo-banner-title { font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--ink-100); }
.promo-banner-desc { color: var(--ink-400); font-size: .84rem; margin-top: 2px; }
.promo-banner-cta { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, var(--cyan), #1f9c92); color: #04211e; font-weight: 700; font-size: .88rem; padding: 10px 18px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 640px) {
    .promo-banner { flex-wrap: wrap; }
    .promo-banner-cta { width: 100%; justify-content: center; }
}

/* ---- category / server tiles (trang chủ) ---- */
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 14px; }
.server-tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.server-tile:hover { border-color: var(--ember); }
.server-tile .name { font-weight: 700; }
.server-tile .meta { color: var(--ink-400); font-size: .8rem; }

/* ---- admin ---- */
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--panel); border-right: 1px solid var(--line); padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-sidebar .brand { font-family: 'Chakra Petch', sans-serif; font-weight: 700; padding: 6px 8px 18px; }
.admin-nav-group { margin-bottom: 14px; }
.admin-nav-group .grp-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-400); padding: 0 8px; margin-bottom: 6px; }
.admin-nav-group a { display: block; padding: 8px 10px; border-radius: 8px; font-size: .86rem; color: var(--ink-300); margin-bottom: 2px; }
.admin-nav-group a:hover, .admin-nav-group a.active { background: var(--panel-hi); color: var(--ink-100); }
.admin-main { padding: 24px 28px; }
.admin-topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.admin-card h2 { font-size: 1.02rem; margin-bottom: 4px; }
.admin-table-wrap { overflow-x: auto; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
table.admin-table th { text-align: left; color: var(--ink-400); font-weight: 600; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.admin-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.admin-table tr:hover td { background: var(--panel-hi); }
table.admin-table td.actions { display: flex; gap: 8px; flex-wrap: wrap; }
table.admin-table td.actions a, table.admin-table td.actions button { font-size: .78rem; color: var(--cyan); background: none; border: none; cursor: pointer; padding: 0; }
table.admin-table td.actions button.danger { color: var(--red); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat-box .lbl { color: var(--ink-400); font-size: .8rem; }
.stat-box .val { font-size: 1.5rem; font-weight: 700; margin-top: 4px; }

/* ---- footer (brand + liên kết + hỗ trợ + liên hệ) ---- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 36px 20px 20px; color: var(--ink-400); font-size: .86rem; }
.site-footer-inner { max-width: 1180px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 24px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-100); margin: 0 0 4px; }
.footer-col a { color: var(--ink-400); font-size: .84rem; }
.footer-col a:hover { color: var(--ink-100); }
.footer-brand { display: flex; align-items: center; gap: 8px; font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--ink-100); }
.footer-brand .dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--ember), var(--gold)); box-shadow: 0 0 12px var(--ember); }
.footer-brand-col p { margin: 10px 0 4px; font-size: .82rem; line-height: 1.6; }
.footer-status { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; color: #6fe397; margin-top: 4px; }
.footer-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; text-align: center; font-size: .78rem; }
@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ---- bong bóng chat liên hệ admin (nổi ở mọi trang) ---- */
.chat-bubble { position: fixed; right: 20px; bottom: 20px; z-index: 70; }
.chat-bubble-btn { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, var(--ember), #ff5f3d); border: none; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow); }
.chat-bubble-btn:hover { filter: brightness(1.08); }
.chat-bubble-panel { position: absolute; right: 0; bottom: calc(100% + 12px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 220px; padding: 10px; }
.chat-bubble-title { font-weight: 700; font-size: .88rem; padding: 4px 8px 8px; }
.chat-bubble-panel a { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 8px; font-size: .86rem; color: var(--ink-300); }
.chat-bubble-panel a:hover { background: var(--panel-hi); color: var(--ink-100); }
@media (max-width: 860px) {
    .chat-bubble { right: 14px; bottom: 14px; }
}

/* ---- responsive ---- */
@media (max-width: 860px) {
    .sub-layout { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; }
}

/* Lightbox xem phóng to ảnh acc (views/game/account.php) - overlay toàn màn hình, click ảnh
   nhỏ để mở, có nút đóng/trước/sau, đóng bằng phím Esc hoặc click ra ngoài ảnh. */
.acc-gallery-thumb { cursor: zoom-in; transition: opacity .15s; }
.acc-gallery-thumb:hover { opacity: .85; }
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 14, .92);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
    max-width: 100%;
    max-height: 86vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(255,255,255,.08);
    border: 1px solid var(--line);
    color: var(--ink-100);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.16); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: .8rem;
    color: var(--ink-300);
    background: rgba(255,255,255,.08);
    padding: 4px 12px;
    border-radius: 999px;
}
@media (max-width: 560px) {
    .lightbox-prev, .lightbox-next { width: 36px; height: 36px; }
}

/* Popup thông báo nổi (Admin > Cài đặt site > "Thông báo nổi") - chào khách khi vào site,
   nhớ trạng thái đã đóng qua localStorage theo từng phiên bản nội dung (sửa nội dung sẽ tự
   hiện lại). Đóng bằng nút X, phím Esc hoặc nút "Đã đọc". */
.popup-notice-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6,8,14,.72);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.popup-notice-overlay.open { display: flex; }
.popup-notice-box {
    width: 100%;
    max-width: 420px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.popup-notice-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 18px 0;
}
.popup-notice-head-l { display: flex; align-items: center; gap: 10px; }
.popup-notice-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--cyan), var(--ember));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.popup-notice-title { font-size: 1.02rem; font-weight: 700; color: var(--ink-100); }
.popup-notice-close {
    background: transparent;
    border: none;
    color: var(--ink-400);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}
.popup-notice-close:hover { color: var(--ink-100); }
.popup-notice-body { padding: 14px 18px; font-size: .9rem; color: var(--ink-300); line-height: 1.6; white-space: pre-line; }
.popup-notice-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 18px 16px;
}
.popup-notice-btns a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 9px 10px;
    border-radius: 999px;
    background: var(--panel-hi);
    border: 1px solid var(--line);
    color: var(--ink-100);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
}
.popup-notice-btns a:hover { border-color: var(--cyan); color: var(--cyan); }
.popup-notice-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 18px;
    border-top: 1px solid var(--line);
    font-size: .78rem;
    color: var(--ink-400);
}
.popup-notice-foot button {
    background: var(--cyan);
    border: none;
    color: #04211f;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-size: .82rem;
}
@media (max-width: 420px) {
    .popup-notice-btns { grid-template-columns: 1fr; }
}
