/* ==========================================================================
   USER PRO (2026-10-25) — giao diện cao cấp cổng khách hàng: kính mờ tối (mặc định) hoặc sáng (nút chuyển ở góc phải dưới).
   Được nạp qua @import ở đầu user-portal.css nên áp cho mọi trang /user/**. Bộ tự điều chỉnh màu (common/js/theme-pro.js)
   xử lý thêm các khối có style nội tuyến. Chế độ sáng giữ nguyên bảng màu cũ, chỉ thêm đổ bóng/bo góc/hiệu ứng.
   ========================================================================== */
:root {
    --up-glow: rgba(231,76,60,.38);
    --up-accent2: #7c3aed;
    --up-ease: cubic-bezier(.4,0,.2,1);
}

/* ---------- Chung (cả sáng lẫn tối) ---------- */
body { -webkit-font-smoothing: antialiased; }
@keyframes upFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes upAurora { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-3%,2%,0) scale(1.08); } 100% { transform: translate3d(2%,-3%,0) scale(1.03); } }
.up-main { animation: upFadeUp .4s ease backwards; }
.up-card, .up-stat, .up-wallet-card, .up-order-card, .up-product-card, .up-modal, .up-confirm-box,
.dash-quick-card, .dash-wallet-strip, .dash-recent, .dash-activity {
    border-radius: 18px;
    transition: transform .22s var(--up-ease), box-shadow .22s var(--up-ease), border-color .22s var(--up-ease), background .22s var(--up-ease);
}
.up-stat:hover, .up-wallet-card:hover, .up-order-card:hover, .up-product-card:hover, .dash-quick-card:hover { transform: translateY(-4px); }
.up-btn, .up-wc-btn, .up-page-btn, .up-tab, .up-input, .up-select, .up-textarea { transition: all .18s var(--up-ease); }
.up-btn:hover { transform: translateY(-1px); }
.up-btn:active { transform: translateY(1px) scale(.99); }
.up-main .dash-welcome {
    position: relative; overflow: hidden; border-radius: 22px;
    background: linear-gradient(120deg, var(--tc-primary) 0%, #db2777 45%, var(--up-accent2) 100%);
    box-shadow: 0 22px 50px -22px var(--up-glow), inset 0 1px 0 rgba(255,255,255,.25);
}
.up-main .dash-welcome::before {
    content: ""; position: absolute; inset: -40% -10% auto auto; width: 460px; height: 460px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(255,255,255,.28), transparent 62%); animation: upAurora 14s ease-in-out infinite alternate;
}
.up-main .dash-welcome > * { position: relative; }
.up-main .dash-welcome h1 { text-shadow: 0 2px 18px rgba(0,0,0,.25); letter-spacing: -.02em; }

/* nút đổi giao diện (nút do theme-pro.js tạo) */
.tc-theme-toggle {
    position: fixed; right: 18px; bottom: 18px; z-index: 1045;
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
    background: linear-gradient(135deg, var(--tc-primary), var(--up-accent2)); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 15px; cursor: pointer;
    box-shadow: 0 10px 26px -6px var(--up-glow); transition: transform .2s ease, box-shadow .2s ease;
}
.tc-theme-toggle:hover { transform: rotate(18deg) scale(1.08); }
@media (max-width: 768px) { .tc-theme-toggle { bottom: 78px; } }

/* ---------- Chế độ SÁNG: chỉ nâng cấp bóng đổ / viền ---------- */
html.tc-light .up-card, html.tc-light .up-stat, html.tc-light .up-wallet-card, html.tc-light .up-order-card,
html.tc-light .up-product-card, html.tc-light .dash-quick-card, html.tc-light .dash-wallet-strip, html.tc-light .dash-recent, html.tc-light .dash-activity {
    border: 1px solid rgba(226,232,240,.85);
    box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -14px rgba(15,23,42,.18);
}
html.tc-light .up-stat:hover, html.tc-light .up-wallet-card:hover, html.tc-light .up-order-card:hover,
html.tc-light .up-product-card:hover, html.tc-light .dash-quick-card:hover { box-shadow: 0 18px 38px -16px rgba(15,23,42,.28); }
html.tc-light .up-btn-primary, html.tc-light .up-btn.primary { box-shadow: 0 8px 20px -8px var(--up-glow); }

/* ---------- Chế độ TỐI kính mờ (mặc định) ---------- */
html:not(.tc-light) {
    color-scheme: dark;
    --tc-dark: 1;   /* dấu hiệu để theme-pro.js biết CSS tối đã được nạp */
    background: #060914;
    --bg-body: #060914;
    --bg-white: #121a31;   /* ĐẶC (không trong suốt): nhiều dropdown/popover/ô chọn dùng biến này làm nền */
    --bg-sidebar: #070c1d;
    --bg-sidebar-h: rgba(255,255,255,.07);
    --text-main: #eaf0ff;
    --text-muted: #8b97b8;
    --border: rgba(255,255,255,.09);
    --shadow-sm: 0 8px 24px -14px rgba(0,0,0,.7);
    --shadow-md: 0 14px 34px -14px rgba(0,0,0,.75);
    --shadow-lg: 0 22px 54px -18px rgba(0,0,0,.8);
    --glass: rgba(255,255,255,.05);
    --glass-strong: rgba(255,255,255,.09);
    --glass-border: rgba(255,255,255,.10);
    --rainbow: linear-gradient(90deg, #ef4444, #f59e0b, #eab308, #22c55e, #06b6d4, #4f46e5, #a855f7);
}
html:not(.tc-light) body { background: transparent; color: var(--text-main); }
html:not(.tc-light) body::before {
    content: ""; position: fixed; inset: -10%; z-index: -1; pointer-events: none; filter: blur(30px);
    background:
        radial-gradient(38% 34% at 84% 6%,  rgba(231,76,60,.30), transparent 70%),
        radial-gradient(34% 30% at 8% 92%,  rgba(124,58,237,.30), transparent 70%),
        radial-gradient(30% 28% at 55% 55%, rgba(56,189,248,.10), transparent 70%);
    animation: upAurora 22s ease-in-out infinite alternate;
}
html:not(.tc-light) .user-sidebar {
    background: linear-gradient(180deg, rgba(14,21,48,.88), rgba(7,11,26,.95));
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-right: 1px solid var(--glass-border); box-shadow: 10px 0 40px -18px rgba(0,0,0,.8);
}
html:not(.tc-light) .us-header, html:not(.tc-light) .us-footer { border-color: var(--glass-border); }
html:not(.tc-light) .us-nav-item { border-radius: 10px; transition: background .18s var(--up-ease), transform .18s var(--up-ease); }
html:not(.tc-light) .us-nav-item:hover { background: var(--glass-strong); transform: translateX(3px); }
html:not(.tc-light) .us-nav-item.active {
    background: linear-gradient(90deg, rgba(231,76,60,.38), rgba(231,76,60,.05));
    box-shadow: inset 3px 0 0 #fb7185, 0 8px 22px -10px rgba(231,76,60,.5);
}
html:not(.tc-light) .user-sidebar select, html:not(.tc-light) .user-sidebar input { background: rgba(255,255,255,.08) !important; color: #e2e8f0 !important; border-color: var(--glass-border) !important; }
html:not(.tc-light) .up-main .dash-welcome .up-btn, html:not(.tc-light) .up-main .dash-welcome a { text-shadow: none; }
html:not(.tc-light) .us-collapse-toggle { background: linear-gradient(135deg, var(--tc-primary), var(--up-accent2)); box-shadow: 0 4px 12px var(--up-glow); }

/* thẻ kính */
html:not(.tc-light) .up-card, html:not(.tc-light) .up-stat, html:not(.tc-light) .up-wallet-card, html:not(.tc-light) .up-order-card,
html:not(.tc-light) .up-product-card, html:not(.tc-light) .up-table-wrap, html:not(.tc-light) .up-cart-item, html:not(.tc-light) .up-cart-summary,
html:not(.tc-light) .up-filters, html:not(.tc-light) .up-notif-panel, html:not(.tc-light) .up-empty,
html:not(.tc-light) .dash-quick-card, html:not(.tc-light) .dash-wallet-strip, html:not(.tc-light) .dash-recent, html:not(.tc-light) .dash-activity {
    background: var(--glass); color: var(--text-main);
    border: 1px solid var(--glass-border);
    box-shadow: 0 18px 44px -20px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.07);
    -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
}
html:not(.tc-light) .up-stat:hover, html:not(.tc-light) .up-wallet-card:hover, html:not(.tc-light) .up-order-card:hover,
html:not(.tc-light) .up-product-card:hover, html:not(.tc-light) .dash-quick-card:hover {
    border-color: rgba(231,76,60,.5); box-shadow: 0 22px 50px -18px rgba(0,0,0,.75), 0 0 34px -10px var(--up-glow);
}
html:not(.tc-light) .up-stat, html:not(.tc-light) .up-wallet-card { position: relative; overflow: hidden; }
html:not(.tc-light) .up-stat::before, html:not(.tc-light) .up-wallet-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--rainbow); opacity: .8; }
html:not(.tc-light) .up-stat-value, html:not(.tc-light) .up-wc-amount { color: #fff; text-shadow: 0 0 22px rgba(231,76,60,.4); letter-spacing: -.02em; }
html:not(.tc-light) .up-card-header, html:not(.tc-light) .up-card-footer, html:not(.tc-light) .dash-section-head { background: rgba(255,255,255,.03); border-color: var(--glass-border); }

/* bảng, form, modal */
html:not(.tc-light) .up-table th { background: rgba(255,255,255,.045); color: #aab8dc; border-color: var(--glass-border); }
html:not(.tc-light) .up-table td { border-color: rgba(255,255,255,.06); color: var(--text-main); }
html:not(.tc-light) .up-table tbody tr:hover td { background: rgba(231,76,60,.07); }
html:not(.tc-light) .up-input, html:not(.tc-light) .up-select, html:not(.tc-light) .up-textarea, html:not(.tc-light) .up-search-input,
html:not(.tc-light) input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), html:not(.tc-light) select, html:not(.tc-light) textarea {
    background-color: rgba(255,255,255,.055); border-color: var(--glass-border); color: var(--text-main);
}
html:not(.tc-light) input::placeholder, html:not(.tc-light) textarea::placeholder { color: #6f7ea6; }
html:not(.tc-light) .up-input:focus, html:not(.tc-light) .up-select:focus, html:not(.tc-light) .up-textarea:focus,
html:not(.tc-light) input:focus, html:not(.tc-light) select:focus, html:not(.tc-light) textarea:focus {
    outline: none; border-color: #fb7185; box-shadow: 0 0 0 4px rgba(231,76,60,.2), 0 0 22px -6px var(--up-glow);
}
html:not(.tc-light) select option, html:not(.tc-light) optgroup { background: #0d1530; color: #eaf0ff; }
html:not(.tc-light) .up-modal, html:not(.tc-light) .up-confirm-box, html:not(.tc-light) .up-toast {
    background: linear-gradient(160deg, rgba(22,31,66,.97), rgba(10,15,36,.98)); color: var(--text-main);
    border: 1px solid var(--glass-border); box-shadow: 0 30px 80px -20px rgba(0,0,0,.85), 0 0 60px -30px var(--up-glow);
}
html:not(.tc-light) .up-modal-header, html:not(.tc-light) .up-modal-footer { background: rgba(255,255,255,.03); border-color: var(--glass-border); }
html:not(.tc-light) .up-modal-overlay, html:not(.tc-light) .up-confirm-overlay { background: rgba(2,4,12,.66); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
html:not(.tc-light) .up-tab { color: var(--text-muted); }
html:not(.tc-light) .up-tab.active { color: #fff; border-color: #fb7185; }
html:not(.tc-light) .up-page-btn { background: var(--glass); border-color: var(--glass-border); color: var(--text-main); }
html:not(.tc-light) .up-page-btn.active { background: var(--tc-primary); border-color: var(--tc-primary); color: #fff; box-shadow: 0 0 18px -4px var(--up-glow); }
html:not(.tc-light) .up-progress { background: rgba(255,255,255,.08); }
html:not(.tc-light) .up-progress-bar { background: var(--rainbow); }
html:not(.tc-light) .up-btn-primary, html:not(.tc-light) .up-btn.primary { background-image: linear-gradient(135deg, var(--tc-primary), #db2777); border-color: transparent; box-shadow: 0 10px 26px -10px var(--up-glow); }
html:not(.tc-light) .up-topbar, html:not(.tc-light) .up-mobile-header, html:not(.tc-light) .up-bottom-nav {
    background: rgba(10,15,36,.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--glass-border);
}
html:not(.tc-light) .up-notif-item:hover { background: var(--glass-strong); }
html:not(.tc-light) h1, html:not(.tc-light) h2, html:not(.tc-light) h3, html:not(.tc-light) h4, html:not(.tc-light) h5, html:not(.tc-light) h6 { color: #f4f7ff; }
html:not(.tc-light) .text-muted, html:not(.tc-light) .small.text-muted, html:not(.tc-light) .form-text { color: var(--text-muted) !important; }
html:not(.tc-light) .up-btn.primary, html:not(.tc-light) .up-btn-primary, html:not(.tc-light) .cm-ph-cta, html:not(.tc-light) .tr-search-btn { color: #fff !important; }
html:not(.tc-light) a:not(.up-btn):not(.us-nav-item):not(.up-page-btn):not(.up-tab):not([class*="btn"]) { color: #fda4af; }
html:not(.tc-light) hr { border-color: var(--glass-border); }
/* Bootstrap .bg-light (vd khung hóa đơn VAT ở tạo lô ký gửi) nền trắng → chữ/ô nhập nhạt không đọc được trên nền tối */
html:not(.tc-light) .bg-light, html:not(.tc-light) .bg-light-subtle { background-color: var(--glass) !important; color: var(--text-main); border-color: var(--glass-border) !important; }
html:not(.tc-light) .bg-light .form-label, html:not(.tc-light) .bg-light label { color: var(--text-main); }
html:not(.tc-light) ::selection { background: rgba(231,76,60,.32); }
* { scrollbar-width: thin; scrollbar-color: #475569 transparent; }

/* ==========================================================================
   THÀNH PHẦN CAO CẤP DÙNG CHUNG (thẻ ví, nút, bảng, khối trống) — theo mẫu kính mờ có chiều sâu, ánh sáng viền và đổ sáng
   Mọi trạng thái hover được định nghĩa tường minh: nền ĐẬM + chữ TRẮNG, không bao giờ đổi sang nền sáng chữ sáng.
   ========================================================================== */
html:not(.tc-light) .up-wallet-cards { gap: 18px; }
html:not(.tc-light) .up-wallet-card {
    position: relative; overflow: hidden; border-radius: 24px; padding: 22px 22px 20px;
    background: linear-gradient(155deg, rgba(255,255,255,.09), rgba(255,255,255,.025) 60%);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 24px 50px -24px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.12);
}
html:not(.tc-light) .up-wallet-card::after {
    content: ""; position: absolute; inset: -30% -20% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, var(--wc-glow, rgba(231,76,60,.38)), transparent 66%); filter: blur(6px); opacity: .9;
    transition: opacity .3s ease, transform .5s ease;
}
html:not(.tc-light) .up-wallet-card:hover::after { opacity: 1; transform: scale(1.15); }
html:not(.tc-light) .up-wallet-card.vnd { --wc-glow: rgba(231,76,60,.42); }
html:not(.tc-light) .up-wallet-card.cny { --wc-glow: rgba(245,158,11,.38); }
html:not(.tc-light) .up-wallet-card.usd { --wc-glow: rgba(99,102,241,.55); background: linear-gradient(135deg, #1d4ed8 0%, #5b21b6 100%); border-color: rgba(255,255,255,.22); }
html:not(.tc-light) .up-wallet-card > * { position: relative; z-index: 1; }
html:not(.tc-light) .up-wc-icon { position: absolute !important; right: 18px; top: 16px; font-size: 38px; opacity: .22; z-index: 0 !important; filter: drop-shadow(0 0 14px var(--wc-glow)); }
html:not(.tc-light) .up-wc-label { text-transform: uppercase; letter-spacing: .09em; font-size: 11.5px; font-weight: 700; color: #b9c5e8; }
html:not(.tc-light) .up-wc-amount { font-size: clamp(28px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.025em; color: #fff; margin: 4px 0 2px; text-shadow: 0 0 28px var(--wc-glow); }
html:not(.tc-light) .up-wc-sub { color: #a9b8de; font-size: 12.5px; }
html:not(.tc-light) .up-wc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
html:not(.tc-light) .up-wc-btn {
    display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px; cursor: pointer;
    font-size: 12.5px; font-weight: 700; color: #ffffff !important; background: rgba(255,255,255,.14) !important;
    border: 1px solid rgba(255,255,255,.32) !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
html:not(.tc-light) .up-wc-btn:hover {
    color: #ffffff !important; transform: translateY(-2px); border-color: transparent !important;
    background: linear-gradient(135deg, #e0412f, #be185d) !important; box-shadow: 0 12px 26px -8px rgba(231,76,60,.7);
}
html:not(.tc-light) .up-wallet-card.usd .up-wc-btn:hover { background: linear-gradient(135deg, #4f46e5, #9333ea) !important; box-shadow: 0 12px 26px -8px rgba(99,102,241,.8); }

/* Nút: rõ ràng cả lúc thường lẫn khi hover (chữ luôn trắng/sáng trên nền đậm) */
html:not(.tc-light) .up-btn { font-weight: 700; border-radius: 12px; letter-spacing: .005em; }
html:not(.tc-light) .up-btn.primary { background: linear-gradient(135deg, #d93a2a, #be185d) !important; color: #fff !important; border: 1px solid transparent !important; box-shadow: 0 10px 24px -10px rgba(231,76,60,.7); }
html:not(.tc-light) .up-btn.primary:hover { filter: brightness(1.12) saturate(1.1); transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(231,76,60,.85); color: #fff !important; }
html:not(.tc-light) .up-btn.danger { background: linear-gradient(135deg, #dc2626, #9f1239) !important; color: #fff !important; border: 1px solid transparent !important; box-shadow: 0 10px 24px -10px rgba(220,38,38,.65); }
html:not(.tc-light) .up-btn.danger:hover { filter: brightness(1.12); transform: translateY(-2px); color: #fff !important; }
html:not(.tc-light) .up-btn.success, html:not(.tc-light) .up-btn.green { background: linear-gradient(135deg, #059669, #0d9488) !important; color: #fff !important; border: 1px solid transparent !important; }
html:not(.tc-light) .up-btn.success:hover, html:not(.tc-light) .up-btn.green:hover { filter: brightness(1.12); transform: translateY(-2px); color: #fff !important; }
html:not(.tc-light) .up-btn.outline { background: rgba(231,76,60,.08) !important; color: #fecdd3 !important; border: 1px solid rgba(251,113,133,.65) !important; }
html:not(.tc-light) .up-btn.outline:hover { background: rgba(231,76,60,.32) !important; color: #fff !important; border-color: #fb7185 !important; transform: translateY(-2px); }
html:not(.tc-light) .up-btn.secondary, html:not(.tc-light) .up-btn.ghost { background: rgba(255,255,255,.1) !important; color: #e8edff !important; border: 1px solid rgba(255,255,255,.24) !important; }
html:not(.tc-light) .up-btn.secondary:hover, html:not(.tc-light) .up-btn.ghost:hover { background: rgba(255,255,255,.22) !important; color: #fff !important; border-color: rgba(255,255,255,.5) !important; transform: translateY(-2px); }
html:not(.tc-light) .up-btn:disabled, html:not(.tc-light) .up-btn[disabled] { opacity: .5; filter: saturate(.6); transform: none !important; box-shadow: none; cursor: not-allowed; }
html:not(.tc-light) .up-btn:focus-visible, html:not(.tc-light) .up-wc-btn:focus-visible, html:not(.tc-light) button:focus-visible, html:not(.tc-light) a:focus-visible { outline: 2px solid #fb7185; outline-offset: 2px; }

/* Bảng & hàng: hover sáng viền trái, chữ trắng */
html:not(.tc-light) .up-table th { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; color: #aebbe0; }
html:not(.tc-light) .up-table tbody tr { transition: background .15s ease, box-shadow .15s ease; }
html:not(.tc-light) .up-table tbody tr:hover { background: rgba(231,76,60,.10); box-shadow: inset 3px 0 0 #fb7185; }
html:not(.tc-light) .up-table tbody tr:hover td { color: #ffffff; background: transparent; }

/* Khối trống ("chưa có yêu cầu…") */
html:not(.tc-light) .up-empty {
    background: radial-gradient(120% 140% at 50% 0%, rgba(231,76,60,.10), rgba(255,255,255,.03) 60%) !important;
    border: 1px dashed rgba(255,255,255,.22) !important; border-radius: 18px; color: #b9c5e8; box-shadow: none; padding: 28px 16px;
}
html:not(.tc-light) .up-empty i, html:not(.tc-light) .up-empty svg { color: #fb7185; opacity: .85; filter: drop-shadow(0 0 12px rgba(231,76,60,.5)); }
html:not(.tc-light) .up-empty p, html:not(.tc-light) .up-empty div { color: #c9d4f2; }

/* Tiêu đề thẻ & thanh bên trong */
html:not(.tc-light) .up-card-header h2, html:not(.tc-light) .up-card-header h3, html:not(.tc-light) .up-card-header h4 { color: #f4f7ff; letter-spacing: -.01em; }
html:not(.tc-light) .up-page-header h1 { letter-spacing: -.02em; text-shadow: 0 0 30px rgba(231,76,60,.35); }

/* Huy hiệu trạng thái */
html:not(.tc-light) .up-badge { border: 1px solid rgba(255,255,255,.14); font-weight: 700; }

/* ---------- Ô số lượng (− 12 +): số to, đậm, trắng; nút −/+ rõ; viền sáng ---------- */
html:not(.tc-light) input[type=number], html:not(.tc-light) [class*="qty"] input, html:not(.tc-light) input[class*="qty"] {
    color: #ffffff !important; -webkit-text-fill-color: #ffffff; font-weight: 800 !important; font-size: 16px !important;
    background-color: rgba(255,255,255,.14) !important; caret-color: #fb7185; text-shadow: none; opacity: 1;
}
html:not(.tc-light) input[type=number]:focus { background-color: rgba(255,255,255,.2) !important; box-shadow: 0 0 0 3px rgba(231,76,60,.35); }
html:not(.tc-light) input[type=number]:disabled { color: #aab6d8 !important; -webkit-text-fill-color: #aab6d8; }
html:not(.tc-light) [class*="qty"] button, html:not(.tc-light) button[class*="qty"], html:not(.tc-light) [class*="stepper"] button {
    color: #ffffff !important; font-weight: 800; background-color: rgba(255,255,255,.18) !important; border-color: rgba(255,255,255,.3) !important;
}
html:not(.tc-light) [class*="qty"] button:hover, html:not(.tc-light) button[class*="qty"]:hover { background-color: rgba(231,76,60,.45) !important; }
html:not(.tc-light) [class*="qty-ctrl"], html:not(.tc-light) [class*="batch-qty"], html:not(.tc-light) [class*="qty-box"], html:not(.tc-light) [class*="qty-wrap"] { border-color: rgba(255,255,255,.35) !important; background-color: rgba(255,255,255,.06); }
html:not(.tc-light) input[type=number]::-webkit-inner-spin-button, html:not(.tc-light) input[type=number]::-webkit-outer-spin-button { opacity: .75; filter: invert(1); }

/* ---------- Tách bạch & dễ đọc: ô nhập, danh sách chọn, lớp nổi ---------- */
html:not(.tc-light) .up-input, html:not(.tc-light) .up-select, html:not(.tc-light) .up-textarea, html:not(.tc-light) .up-search-input,
html:not(.tc-light) input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]), html:not(.tc-light) select, html:not(.tc-light) textarea {
    background-color: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.24); color: #f4f7ff;
}
html:not(.tc-light) input:not([type=checkbox]):not([type=radio]):hover, html:not(.tc-light) select:hover, html:not(.tc-light) textarea:hover { border-color: rgba(255,255,255,.42); }
html:not(.tc-light) input::placeholder, html:not(.tc-light) textarea::placeholder { color: #94a3c9; opacity: 1; }
html:not(.tc-light) input:disabled, html:not(.tc-light) select:disabled, html:not(.tc-light) textarea:disabled, html:not(.tc-light) input[readonly] { background-color: rgba(255,255,255,.045); color: #aab6d8; border-style: dashed; cursor: not-allowed; }
html:not(.tc-light) input[type=checkbox], html:not(.tc-light) input[type=radio] { accent-color: #fb7185; }
html:not(.tc-light) select { color-scheme: dark; }
html:not(.tc-light) select option, html:not(.tc-light) select optgroup, html:not(.tc-light) datalist option { background: #141c36; color: #f4f7ff; }
html:not(.tc-light) select option:checked { background: #3b2a5e; color: #fff; }
html:not(.tc-light) label { color: #c9d4f2; }
/* lớp nổi luôn đặc để không lộ nội dung phía sau */
html:not(.tc-light) [class*="dropdown"]:not(button):not(a):not(i):not(span), html:not(.tc-light) [class*="popover"], html:not(.tc-light) [class*="suggest"], html:not(.tc-light) [class*="autocomplete"],
html:not(.tc-light) [class*="listbox"], html:not(.tc-light) [class*="-menu"]:not(nav):not(li), html:not(.tc-light) [role="listbox"], html:not(.tc-light) [role="menu"], html:not(.tc-light) .up-notif-panel, html:not(.tc-light) .up-modal {
    background-color: #141c36;
}
html:not(.tc-light) [role="listbox"], html:not(.tc-light) [role="menu"], html:not(.tc-light) [class*="suggest"][class*="list"], html:not(.tc-light) [class*="dropdown-menu"], html:not(.tc-light) [class*="popover"] {
    border: 1px solid rgba(255,255,255,.24); box-shadow: 0 18px 44px -10px rgba(0,0,0,.85); color: #f4f7ff;
}
html:not(.tc-light) [role="option"]:hover, html:not(.tc-light) [class*="suggest"] > *:hover, html:not(.tc-light) [class*="dropdown"] li:hover { background-color: rgba(231,76,60,.22); color: #fff; }
/* bảng thuộc tính / thông số: hàng tách bạch, tên thuộc tính khác màu giá trị */
html:not(.tc-light) .up-info-row, html:not(.tc-light) [class*="attr-row"], html:not(.tc-light) [class*="spec-row"] { border-color: rgba(255,255,255,.12); }
html:not(.tc-light) [class*="attr-key"], html:not(.tc-light) [class*="spec-key"], html:not(.tc-light) [class*="-label"]:not(label) { color: #a9b6dc; }
html:not(.tc-light) [class*="attr-val"], html:not(.tc-light) [class*="spec-val"] { color: #f4f7ff; }

@media (prefers-reduced-motion: reduce) {
    .up-main, .up-main .dash-welcome::before, html:not(.tc-light) body::before { animation: none; }
    .up-card, .up-stat, .up-btn { transition: none; }
}
@media print { html:not(.tc-light) body::before { display: none; } html:not(.tc-light) { background: #fff; --text-main: #000; } }
