/* VNDEVCODE RED PRO V16.5 - generated from local CSS, do not edit this file directly. */

/* ==== styles.css ==== */
:root {
  --bg: #07101c;
  --bg-deep: #040a12;
  --surface: #0d1827;
  --surface-2: #111f31;
  --surface-3: #16263b;
  --glass: rgba(14, 26, 42, .78);
  --border: rgba(137, 169, 204, .14);
  --border-strong: rgba(137, 169, 204, .24);
  --text: #f4f8fc;
  --muted: #8da0b8;
  --muted-2: #63758d;
  --primary: #1687ff;
  --primary-2: #50adff;
  --primary-soft: rgba(22, 135, 255, .13);
  --cyan: #35d2d7;
  --success: #28d493;
  --success-soft: rgba(40, 212, 147, .12);
  --danger: #ff6174;
  --danger-soft: rgba(255, 97, 116, .12);
  --warning: #ffbc42;
  --warning-soft: rgba(255, 188, 66, .12);
  --violet: #8c7cff;
  --sidebar: 272px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .32);
  --radius: 20px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 14px; overflow-x: hidden; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(22, 135, 255, .35); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #24364d; border-radius: 20px; border: 2px solid transparent; background-clip: padding-box; }
.is-hidden { display: none !important; }
.ambient { position: fixed; border-radius: 50%; filter: blur(100px); pointer-events: none; opacity: .2; z-index: -1; }
.ambient-one { width: 420px; height: 420px; background: #0077ff; top: -180px; right: -90px; }
.ambient-two { width: 380px; height: 380px; background: #06a8a8; left: 22%; bottom: -280px; }
.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; display: block; }

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #35acff, #0871ec); box-shadow: 0 10px 28px rgba(16, 132, 255, .33), inset 0 1px 0 rgba(255,255,255,.25); flex: 0 0 auto; }
.brand-mark .icon { width: 21px; height: 21px; transform: translate(-1px, 1px); }
.brand-logo { overflow: hidden; padding: 3px; background: #081321; border: 1px solid rgba(76, 173, 255, .3); }
.brand-logo img { display: block; width: 100%; height: 100%; border-radius: 9px; object-fit: contain; }
.brand > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.brand strong { font-size: 17px; letter-spacing: -.3px; }
.brand small { color: var(--muted); margin-top: 2px; font-size: 11px; letter-spacing: .35px; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(520px, 1.2fr) minmax(440px, .8fr); }
.login-aside { min-height: 100vh; position: relative; padding: 48px clamp(48px, 7vw, 110px); overflow: hidden; display: flex; flex-direction: column; background: radial-gradient(circle at 75% 46%, rgba(24, 129, 255, .18), transparent 34%), linear-gradient(145deg, #071321, #07101c 58%, #091728); border-right: 1px solid var(--border); }
.login-aside::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, black, transparent 85%); }
.brand-large { position: relative; z-index: 1; }
.brand-large .brand-mark { width: 46px; height: 46px; border-radius: 15px; }
.brand-large strong { font-size: 20px; }
.login-copy { position: relative; z-index: 1; margin-top: clamp(90px, 14vh, 150px); max-width: 680px; }
.eyebrow { display: inline-flex; gap: 9px; align-items: center; color: var(--primary-2); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px; }
.eyebrow i { width: 22px; height: 2px; background: var(--primary); border-radius: 2px; box-shadow: 0 0 15px var(--primary); }
.login-copy h1 { margin: 22px 0 20px; font-size: clamp(43px, 5vw, 70px); line-height: 1.05; letter-spacing: -3.8px; font-weight: 750; }
.login-copy h1 em { font-style: normal; color: transparent; background: linear-gradient(90deg, #58b9ff, #31d7cf); background-clip: text; -webkit-background-clip: text; }
.login-copy > p { color: var(--muted); font-size: 16px; line-height: 1.75; max-width: 560px; }
.feature-row { display: flex; gap: 30px; margin-top: 30px; color: #afbdd0; font-size: 12px; font-weight: 650; }
.feature-row span { display: flex; align-items: center; gap: 8px; }
.feature-row b { color: var(--primary-2); }
.feature-row .icon { width: 17px; height: 17px; }
.login-visual { position: relative; z-index: 1; width: min(530px, 90%); height: 250px; margin: 56px auto 0; perspective: 800px; }
.visual-card { background: linear-gradient(145deg, rgba(20, 39, 62, .88), rgba(10, 22, 37, .86)); border: 1px solid rgba(126, 172, 219, .2); box-shadow: 0 34px 90px rgba(0,0,0,.34); backdrop-filter: blur(16px); }
.visual-main { width: 390px; padding: 24px 26px 0; border-radius: 24px; transform: rotateX(6deg) rotateY(-7deg) rotateZ(-2deg); }
.visual-main .mini-label { color: var(--muted); display: block; font-size: 11px; }
.visual-main strong { display: inline-block; font-size: 26px; margin: 8px 12px 0 0; letter-spacing: -.7px; }
.visual-main .trend-up { color: var(--success); font-size: 11px; font-weight: 700; }
.visual-main svg { width: 100%; height: 90px; overflow: visible; margin-top: 4px; }
.visual-main svg path:first-child { fill: none; stroke: #2ca7ff; stroke-width: 3; filter: drop-shadow(0 0 8px rgba(44, 167, 255, .5)); }
.visual-main svg .fill { fill: rgba(44, 167, 255, .12); stroke: none; }
.visual-float { position: absolute; right: 3px; top: 44px; padding: 16px 19px; min-width: 210px; display: flex; align-items: center; gap: 12px; border-radius: 17px; transform: rotate(2deg); }
.visual-float div { display: flex; flex-direction: column; }
.visual-float b { font-size: 12px; }
.visual-float small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 6px rgba(40,212,147,.1), 0 0 18px var(--success); }
.login-foot { position: relative; z-index: 1; margin: auto 0 0; color: #41536a; letter-spacing: 2px; font-size: 9px; }
.login-panel { display: grid; place-items: center; padding: 40px; background: rgba(5, 12, 21, .68); backdrop-filter: blur(30px); }
.login-form { width: min(400px, 100%); }
.mobile-brand { display: none; }
.form-kicker { color: var(--primary-2); font-size: 10px; letter-spacing: 1.8px; font-weight: 800; }
.login-form h2 { font-size: 34px; letter-spacing: -1.4px; margin: 13px 0 8px; }
.login-form > p { color: var(--muted); margin: 0 0 35px; }
.field { display: block; margin-bottom: 18px; }
.field > span, .field-label { display: block; color: #b9c5d3; font-size: 12px; font-weight: 650; margin: 0 0 9px; }
.input-wrap { position: relative; }
.input-wrap > i { position: absolute; top: 50%; left: 16px; transform: translateY(-50%); color: #6e8097; pointer-events: none; }
.input-wrap input { padding-left: 48px; padding-right: 48px; }
input, textarea, select { width: 100%; color: var(--text); background: #0a1523; border: 1px solid var(--border-strong); border-radius: 12px; outline: none; padding: 12px 14px; transition: .18s ease; }
input { min-height: 46px; }
textarea { resize: vertical; min-height: 105px; line-height: 1.55; }
select { min-height: 46px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, #71839a 50%), linear-gradient(135deg, #71839a 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, textarea:focus, select:focus { border-color: rgba(41, 153, 255, .8); box-shadow: 0 0 0 3px rgba(22, 135, 255, .1); background-color: #0d1928; }
input::placeholder, textarea::placeholder { color: #4d6076; }
.password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: #71839a; cursor: pointer; display: grid; place-items: center; }
.password-toggle:hover { color: var(--text); background: rgba(255,255,255,.04); }
.form-error { min-height: 21px; color: var(--danger); font-size: 12px; margin-top: -5px; }
.btn { border: 0; border-radius: 11px; padding: 11px 16px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 700; font-size: 12px; cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease, opacity .16s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, #1b97ff, #096ee9); color: white; box-shadow: 0 8px 26px rgba(12, 119, 238, .22); }
.btn-primary:hover { background: linear-gradient(135deg, #42aaff, #0d7df5); }
.btn-soft { background: rgba(120, 151, 187, .1); color: #c5d0de; border: 1px solid var(--border); }
.btn-soft:hover { background: rgba(120, 151, 187, .16); border-color: var(--border-strong); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-soft { background: var(--danger-soft); color: #ff8795; border: 1px solid rgba(255,97,116,.18); }
.btn-success-soft { background: var(--success-soft); color: #5ae2b0; border: 1px solid rgba(40,212,147,.18); }
.btn-sm { min-height: 34px; padding: 7px 11px; border-radius: 9px; }
.btn-login { width: 100%; min-height: 50px; justify-content: space-between; padding: 0 17px 0 22px; margin-top: 4px; }
.security-note { display: flex; align-items: center; justify-content: center; gap: 7px; color: #5d7088 !important; font-size: 10px !important; margin: 20px 0 0 !important; }
.security-note .icon { width: 14px; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: linear-gradient(180deg, rgba(9, 19, 32, .98), rgba(7, 15, 26, .98)); border-right: 1px solid var(--border); display: flex; flex-direction: column; z-index: 30; transition: width .25s ease, transform .25s ease; }
.sidebar-head { height: 79px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px 0 20px; border-bottom: 1px solid var(--border); }
.sidebar-brand { position: relative; flex: 1 1 auto; min-width: 0; height: 66px; margin-right: 10px; display: flex; align-items: center; overflow: hidden; }
.sidebar-brand::after { content: ""; position: absolute; inset: 4px 0; border-radius: 14px; background: linear-gradient(110deg, transparent 18%, rgba(90, 184, 255, .2), transparent 70%); transform: translateX(-120%); animation: sidebarBrandScan 5s ease-in-out infinite; pointer-events: none; }
.sidebar-brand img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: left center; filter: drop-shadow(0 8px 18px rgba(14, 116, 255, .22)); }
@keyframes sidebarBrandScan { 0%, 66%, 100% { transform: translateX(-120%); } 82% { transform: translateX(120%); } }
.icon-btn { width: 39px; height: 39px; padding: 0; border: 1px solid transparent; border-radius: 11px; display: grid; place-items: center; background: transparent; color: var(--muted); cursor: pointer; transition: .16s ease; }
.icon-btn:hover { color: var(--text); background: rgba(120,151,187,.09); border-color: var(--border); }
.navigation { padding: 17px 12px; overflow-y: auto; flex: 1; }
.nav-label { display: block; color: #4e6178; font-size: 9px; font-weight: 800; letter-spacing: 1.5px; margin: 15px 12px 8px; }
.nav-item { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: 0; border-radius: 12px; color: #8fa1b7; background: transparent; font-size: 12px; font-weight: 650; cursor: pointer; position: relative; margin-bottom: 3px; text-align: left; }
.nav-item .icon { width: 18px; height: 18px; }
.nav-item:hover { color: #d6e0eb; background: rgba(124,153,187,.07); }
.nav-item.active { color: #e8f4ff; background: linear-gradient(90deg, rgba(24, 139, 255, .18), rgba(24, 139, 255, .07)); }
.nav-item.active::before { content: ""; position: absolute; left: -12px; width: 3px; height: 22px; border-radius: 0 5px 5px 0; background: var(--primary); box-shadow: 0 0 15px rgba(22,135,255,.65); }
.nav-item.active .icon { color: var(--primary-2); }
.nav-item .nav-badge { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 10px; background: var(--danger-soft); color: #ff7a8a; font-size: 9px; }
.sidebar-bottom { padding: 12px; border-top: 1px solid var(--border); }
.bot-mini { min-height: 62px; border: 1px solid var(--border); background: rgba(18, 33, 52, .62); border-radius: 14px; display: flex; align-items: center; gap: 11px; padding: 10px 9px 10px 13px; margin-bottom: 9px; }
.bot-mini > div { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.bot-mini strong { font-size: 11px; }
.bot-mini small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.bot-mini button { width: 32px; height: 32px; border-radius: 9px; border: 0; background: rgba(255,255,255,.04); color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.bot-mini button:hover { color: var(--text); background: rgba(255,255,255,.08); }
.bot-mini .icon { width: 15px; height: 15px; }
.bot-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); flex: 0 0 auto; }
.bot-mini.running .bot-pulse { background: var(--success); box-shadow: 0 0 0 5px rgba(40,212,147,.08), 0 0 12px rgba(40,212,147,.5); }
.profile-card { width: 100%; min-height: 57px; border: 0; border-radius: 13px; padding: 8px; display: flex; align-items: center; gap: 10px; color: var(--text); background: transparent; cursor: pointer; text-align: left; }
.profile-card:hover { background: rgba(124,153,187,.07); }
.profile-card > span:nth-child(2) { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.profile-card strong { font-size: 11px; }
.profile-card small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.profile-card > .icon { width: 16px; color: var(--muted); }
.avatar { width: 35px; height: 35px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 800; background: linear-gradient(145deg, #248ff7, #6858de); }
.admin-logo { overflow: hidden; padding: 2px; background: #081321; border: 1px solid rgba(76, 173, 255, .35); box-shadow: 0 8px 24px rgba(26,126,234,.18); }
.admin-logo img { display: block; width: 100%; height: 100%; border-radius: 8px; object-fit: cover; object-position: center; }
.main-shell { margin-left: var(--sidebar); min-height: 100vh; transition: margin .25s ease; }
.topbar { height: 79px; padding: 0 28px; border-bottom: 1px solid var(--border); background: rgba(7, 16, 28, .72); backdrop-filter: blur(24px); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; }
.topbar-left { display: flex; align-items: center; gap: 13px; }
.topbar h1 { font-size: 19px; letter-spacing: -.35px; margin: 5px 0 0; }
.breadcrumb { display: block; color: #53667d; font-size: 9px; }
.breadcrumb b { color: #8192a6; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.global-search { width: min(260px, 23vw); height: 39px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--border); background: rgba(17,31,49,.58); border-radius: 11px; padding: 0 10px 0 12px; color: var(--muted-2); }
.global-search .icon { width: 15px; }
.global-search input { min-height: 0; height: 100%; border: 0; background: transparent; box-shadow: none; padding: 0; color: var(--text); font-size: 11px; }
.global-search kbd { border: 1px solid var(--border); border-radius: 5px; padding: 2px 5px; color: #60738a; font-size: 8px; font-family: inherit; white-space: nowrap; }
.notification-btn { position: relative; background: rgba(17,31,49,.58); border-color: var(--border); }
.notification-btn i { width: 6px; height: 6px; border-radius: 50%; background: var(--danger); border: 2px solid var(--bg); position: absolute; right: 7px; top: 6px; box-sizing: content-box; }
.mobile-menu { display: none; }
.page-content { padding: 26px 28px 48px; max-width: 1750px; margin: 0 auto; }
.page-enter { animation: pageIn .24s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.page-heading h2 { margin: 0 0 5px; font-size: 23px; letter-spacing: -.7px; }
.page-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.heading-actions { display: flex; align-items: center; gap: 8px; }
.date-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; border: 1px solid var(--border); background: rgba(17,31,49,.5); color: var(--muted); padding: 0 12px; border-radius: 10px; font-size: 10px; }
.date-chip .icon { width: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 17px; }
.stat-card { min-height: 132px; position: relative; overflow: hidden; padding: 18px; border: 1px solid var(--border); border-radius: 17px; background: linear-gradient(145deg, rgba(17,32,51,.87), rgba(11,22,37,.87)); box-shadow: 0 14px 40px rgba(0,0,0,.1); }
.stat-card::after { content: ""; position: absolute; width: 100px; height: 100px; border-radius: 50%; right: -42px; top: -42px; background: var(--card-color, var(--primary)); opacity: .08; filter: blur(2px); }
.stat-top { display: flex; justify-content: space-between; align-items: center; }
.stat-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--card-color, var(--primary-2)); background: color-mix(in srgb, var(--card-color, var(--primary)) 12%, transparent); }
.stat-icon .icon { width: 17px; }
.stat-change { color: var(--success); background: var(--success-soft); padding: 4px 7px; border-radius: 8px; font-size: 9px; font-weight: 700; }
.stat-card strong { display: block; font-size: 23px; letter-spacing: -.7px; margin-top: 14px; }
.stat-card > span:last-child { color: var(--muted); font-size: 10px; display: block; margin-top: 3px; }
.stat-card.green { --card-color: #2dd39a; }
.stat-card.blue { --card-color: #2998ff; }
.stat-card.violet { --card-color: #8c7cff; }
.stat-card.orange { --card-color: #ffb540; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); gap: 17px; margin-bottom: 17px; }
.panel { border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(150deg, rgba(16,30,48,.88), rgba(10,20,34,.88)); box-shadow: 0 14px 48px rgba(0,0,0,.1); overflow: hidden; }
.panel-head { min-height: 64px; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); }
.panel-head.no-border { border-bottom: 0; }
.panel-title h3 { margin: 0 0 4px; font-size: 13px; letter-spacing: -.1px; }
.panel-title p { margin: 0; color: var(--muted); font-size: 9px; }
.panel-tools { display: flex; align-items: center; gap: 7px; }
.segmented { display: flex; padding: 3px; border: 1px solid var(--border); border-radius: 9px; background: rgba(3,10,18,.3); }
.segmented button { min-width: 45px; height: 27px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 9px; cursor: pointer; }
.segmented button.active { background: var(--surface-3); color: var(--text); }
.chart-wrap { padding: 5px 18px 17px; height: 250px; }
.chart-wrap svg { width: 100%; height: 100%; overflow: visible; }
.chart-grid-line { stroke: rgba(137,169,204,.11); stroke-width: 1; }
.chart-line { fill: none; stroke: url(#chartGradient); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 5px 6px rgba(25,145,255,.28)); }
.chart-area { fill: url(#areaGradient); }
.chart-dot { fill: #42b5ff; stroke: #10223a; stroke-width: 3; }
.chart-label { fill: #65768b; font-size: 8px; }
.bot-card-body { padding: 19px; }
.bot-orb-wrap { display: flex; align-items: center; gap: 15px; padding: 6px 0 19px; }
.bot-orb { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: var(--muted); background: rgba(120,151,187,.1); border: 1px solid var(--border); }
.bot-orb.running { color: #50e3b0; background: var(--success-soft); border-color: rgba(40,212,147,.2); box-shadow: 0 0 30px rgba(40,212,147,.08); }
.bot-orb .icon { width: 21px; height: 21px; }
.bot-state { flex: 1; display: flex; flex-direction: column; }
.bot-state strong { font-size: 13px; }
.bot-state small { color: var(--muted); margin-top: 4px; font-size: 9px; }
.bot-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bot-actions-spaced { margin-top: 14px; }
.bot-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 15px; }
.bot-meta div { padding: 10px; background: rgba(4,11,19,.3); border-radius: 10px; }
.bot-meta span { color: var(--muted); display: block; font-size: 8px; }
.bot-meta strong { display: block; font-size: 10px; margin-top: 4px; }
.two-panel-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 17px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 11px 15px; color: #65778d; background: rgba(4,11,19,.24); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .5px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { padding: 12px 15px; color: #c3cedb; font-size: 10.5px; border-bottom: 1px solid rgba(137,169,204,.08); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: rgba(79,129,184,.04); }
.data-table .cell-main { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.cell-avatar { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; color: #d7e9fb; font-size: 10px; font-weight: 800; background: linear-gradient(145deg, #193a5e, #1f2f53); flex: 0 0 auto; }
.cell-avatar.has-photo { overflow: hidden; padding: 0; }
.cell-avatar.has-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cell-main > span, .cell-stack { display: flex; flex-direction: column; gap: 3px; }
.cell-main strong, .cell-stack strong { color: #e3ebf3; font-size: 10.5px; }
.cell-main small, .cell-stack small { color: var(--muted); font-size: 8.5px; }
.cell-stack .reply-preview { margin-top: 4px; color: #69c7ff; font-weight: 650; }
.cell-stack .reply-waiting { margin-top: 4px; color: #9a7e54; }
.cell-price { color: #eaf1f8; font-weight: 700; white-space: nowrap; }
.old-price { display: block; color: #65758a; text-decoration: line-through; }
.coupon-code { color: #65baff; letter-spacing: .6px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 8px; font-size: 8.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-success, .status-paid, .status-completed, .status-active { background: var(--success-soft); color: #4edfac; }
.status-pending, .status-processing, .status-low { background: var(--warning-soft); color: #ffc75e; }
.status-failed, .status-cancelled, .status-banned, .status-closed { background: var(--danger-soft); color: #ff7e8e; }
.status-hidden, .status-member, .status-inactive { background: rgba(135,153,176,.1); color: #92a3b7; }
.status-vip, .status-agency, .status-ctv { background: rgba(140,124,255,.12); color: #a99eff; }
.table-responsive { overflow-x: auto; }
.table-empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.table-empty span { width: 44px; height: 44px; border-radius: 14px; margin: 0 auto 12px; display: grid; place-items: center; color: #587089; background: rgba(120,151,187,.08); }
.table-empty strong { display: block; color: #aebccc; font-size: 12px; margin-bottom: 5px; }
.table-empty p { margin: 0; font-size: 10px; }
.stock-list { padding: 5px 16px 16px; }
.stock-item { display: flex; align-items: center; gap: 11px; padding: 11px 2px; border-bottom: 1px solid rgba(137,169,204,.08); }
.stock-item:last-child { border: 0; }
.stock-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--warning-soft); color: var(--warning); }
.stock-icon .icon { width: 15px; }
.stock-item > div { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.stock-item strong { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stock-item small { color: var(--muted); font-size: 8.5px; }
.stock-count { color: var(--warning); font-weight: 800; font-size: 11px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 8px; }
.toolbar-search { position: relative; width: min(290px, 34vw); }
.toolbar-search > .icon { position: absolute; width: 15px; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }
.toolbar-search input { height: 40px; min-height: 40px; padding-left: 39px; font-size: 10px; background: rgba(12,24,40,.72); }
.filter-select { width: auto; min-width: 145px; min-height: 40px; height: 40px; padding: 0 34px 0 12px; font-size: 10px; background-position: calc(100% - 16px) 17px, calc(100% - 11px) 17px; }
.table-panel .panel-head { padding: 12px 16px; }
.table-footer { min-height: 56px; padding: 10px 15px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9px; }
.pagination { display: flex; gap: 5px; }
.pagination button { width: 31px; height: 31px; border-radius: 8px; border: 1px solid var(--border); background: rgba(120,151,187,.06); color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pagination button:hover:not(:disabled), .pagination button.active { background: var(--primary-soft); color: var(--primary-2); border-color: rgba(22,135,255,.24); }
.pagination button:disabled { opacity: .35; cursor: default; }
.bulk-selection-bar { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 12px 15px; }
.bulk-select-all, .bulk-edit-toggle { display: inline-flex; align-items: center; gap: 9px; color: #c5d3e2; font-size: 11px; font-weight: 700; cursor: pointer; }
.bulk-select-all input, .bulk-check-cell input, .category-card-identity input, .bulk-edit-toggle input { flex: 0 0 auto; width: 17px; height: 17px; min-height: 17px; margin: 0; padding: 0; accent-color: #258eff; cursor: pointer; }
.bulk-selection-count { flex: 1; color: var(--muted); font-size: 10px; }
.bulk-selection-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.bulk-check-cell { width: 36px; text-align: center !important; }
.bulk-edit-intro { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; padding: 13px 15px; border: 1px solid rgba(41,153,255,.17); border-radius: 12px; background: rgba(22,135,255,.07); }
.bulk-edit-intro strong { color: #e3f1ff; font-size: 12px; }
.bulk-edit-intro span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.bulk-edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.bulk-edit-option { display: flex; flex-direction: column; gap: 9px; min-width: 0; padding: 13px; border: 1px solid var(--border); border-radius: 12px; background: rgba(9,20,34,.55); }
.bulk-edit-option input[type="number"], .bulk-edit-option input[type="text"], .bulk-edit-option select { min-height: 42px; font-size: 11px; }
.bulk-edit-option small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.bulk-edit-option :disabled { opacity: .5; cursor: not-allowed; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.action-btn { width: 31px; height: 31px; border: 0; border-radius: 8px; background: transparent; color: #75889f; cursor: pointer; display: grid; place-items: center; }
.action-btn:hover { background: rgba(120,151,187,.1); color: #d6e2ed; }
.action-btn.danger:hover { background: var(--danger-soft); color: var(--danger); }
.action-btn .icon { width: 14px; height: 14px; }
.action-btn.pin-toggle { color: #72849a; font-size: 15px; }
.action-btn.pin-toggle.is-pinned { color: #ffc45e; background: rgba(255,196,94,.12); }
.category-card.is-pinned-category { border-color: rgba(255,196,94,.42); }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.category-card { position: relative; min-height: 160px; padding: 18px; border: 1px solid var(--border); border-radius: 17px; background: linear-gradient(145deg, rgba(17,32,51,.87), rgba(10,21,35,.9)); overflow: hidden; }
.category-card.is-hidden-category { border-style: dashed; opacity: .78; }
.category-card::after { content: ""; position: absolute; inset: auto -20px -40px auto; width: 110px; height: 110px; border-radius: 50%; background: var(--primary); opacity: .06; pointer-events: none; }
.category-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.category-card-identity { display: flex; align-items: center; gap: 11px; }
.category-emoji { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 21px; background: var(--primary-soft); border: 1px solid rgba(22,135,255,.12); }
.category-emoji.has-image { overflow: hidden; padding: 0; background: #0b1929; box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.category-emoji img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.category-card h3 { margin: 17px 0 5px; font-size: 13px; }
.category-card p { color: var(--muted); font-size: 9px; margin: 0; }
.category-order-note { margin-top: 10px; color: #7890aa; font-size: 9px; }
.category-order-note b { color: #d8ebff; }
.category-status-block { margin-top: 18px; }
.category-status-block + .category-status-block { margin-top: 28px; }
.category-status-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 2px 10px; padding-bottom: 9px; border-bottom: 1px solid rgba(107,165,220,.13); }
.category-status-head div { display: flex; align-items: baseline; gap: 10px; }
.category-status-head span { color: #77bfff; font-size: 8px; font-weight: 900; letter-spacing: 1.1px; }
.category-status-head strong { color: #eaf5ff; font-size: 12px; }
.category-status-head small { color: #71869e; font-size: 9px; }
.category-status-block.hidden-block .category-status-head span { color: #8796a8; }
.cell-order { width: 62px; text-align: center; white-space: nowrap; }
.cell-order strong { display: inline-flex; min-width: 28px; justify-content: center; padding: 4px 7px; border-radius: 8px; background: rgba(88,151,214,.11); color: #bfe0ff; font-size: 10px; }
.category-card .category-custom-emoji { display: block; margin-top: 5px; color: #7189a4; font-size: 8px; overflow-wrap: anywhere; }
.category-stats { display: flex; gap: 18px; margin-top: 14px; }
.category-stats span { color: var(--muted); font-size: 8px; }
.category-stats b { color: #dce6ef; font-size: 10px; margin-right: 3px; }
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 15px; margin-bottom: 17px; }
.tier-card { min-height: 238px; padding: 19px; border: 1px solid var(--border); border-radius: 18px; background: radial-gradient(circle at 90% 10%, rgba(76, 174, 255, .14), transparent 35%), linear-gradient(145deg, rgba(17,32,51,.94), rgba(8,18,31,.96)); box-shadow: 0 18px 45px rgba(0,0,0,.14); overflow: hidden; }
.tier-card-base { border-color: rgba(40,212,147,.25); background: radial-gradient(circle at 90% 10%, rgba(40,212,147,.14), transparent 35%), linear-gradient(145deg, rgba(17,32,51,.94), rgba(8,18,31,.96)); }
.tier-card header { display: flex; align-items: center; justify-content: space-between; }
.tier-index { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(80,173,255,.22); border-radius: 10px; color: var(--primary-2); background: var(--primary-soft); font-size: 10px; font-weight: 850; }
.tier-card-base .tier-index { color: #59e3b1; border-color: rgba(40,212,147,.22); background: var(--success-soft); }
.tier-kicker { display: block; margin-top: 22px; color: #60758d; font-size: 8px; font-weight: 850; letter-spacing: 1.4px; }
.tier-card h3 { margin: 7px 0 18px; font-size: 22px; letter-spacing: -.55px; }
.tier-benefit { display: flex; align-items: baseline; gap: 9px; }
.tier-benefit strong { color: #65bcff; font-size: 27px; letter-spacing: -1px; }
.tier-card-base .tier-benefit strong { color: #54e1ad; }
.tier-benefit span { color: var(--muted); font-size: 10px; }
.tier-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 21px; padding-top: 15px; border-top: 1px solid var(--border); }
.tier-card footer span { color: var(--muted); font-size: 9px; }
.tier-card footer strong { color: #e6eff7; font-size: 12px; }
.tier-note { display: flex; align-items: flex-start; gap: 13px; padding: 17px 19px; color: var(--muted); }
.tier-note > span { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: var(--primary-2); background: var(--primary-soft); }
.tier-note .icon { width: 17px; height: 17px; }
.tier-note strong { display: block; color: #dce7f1; font-size: 11px; }
.tier-note p { margin: 5px 0 0; font-size: 9.5px; line-height: 1.6; }
.rank-name { color: #5bdcaf; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 17px; }
.settings-section { padding: 20px; }
.section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.section-heading > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--primary-2); background: var(--primary-soft); }
.section-heading h3 { margin: 0 0 4px; font-size: 13px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 9px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-group { min-width: 0; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; margin-bottom: 7px; color: #9daec0; font-size: 10px; font-weight: 650; }
.form-group small { display: block; color: var(--muted-2); font-size: 8.5px; margin-top: 5px; }
.secret-state { padding: 8px 10px; border-radius: 9px; line-height: 1.45; }
.secret-state.saved { color: #58dfad; background: var(--success-soft); border: 1px solid rgba(40,212,147,.16); }
.secret-state.missing { color: #ffc765; background: var(--warning-soft); border: 1px solid rgba(255,188,66,.16); }
.start-media-upload > label { color: #c8d7e7; font-size: 11px; letter-spacing: .35px; }
.media-upload-card { display: flex; align-items: center; gap: 14px; min-height: 82px; padding: 15px; border: 1px dashed rgba(74,169,255,.34); border-radius: 15px; background: linear-gradient(135deg, rgba(21,111,204,.12), rgba(11,25,42,.52)); }
.media-upload-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 14px; color: #70bdff; background: rgba(22,135,255,.14); border: 1px solid rgba(83,174,255,.18); }
.media-upload-icon .icon { width: 23px; height: 23px; }
.media-upload-copy { min-width: 0; flex: 1; }
.media-upload-copy strong { display: block; overflow: hidden; color: #e8f2fb; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.media-upload-copy small { margin-top: 5px; color: #748aa2; font-size: 9px; line-height: 1.5; }
.media-upload-card .btn { flex: 0 0 auto; }
.upload-progress { display: grid; grid-template-columns: minmax(0, 1fr) 46px; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border: 1px solid rgba(65,157,244,.17); border-radius: 11px; background: rgba(5,14,25,.58); }
.upload-progress > div { height: 8px; overflow: hidden; border-radius: 999px; background: #182c42; }
.upload-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1687ff, #52b4ff); box-shadow: 0 0 15px rgba(42,153,255,.42); transition: width .12s linear; }
.upload-progress > span { color: #81c4ff; font-size: 11px; font-weight: 850; text-align: right; }
.upload-progress.is-success { border-color: rgba(40,212,147,.24); }
.upload-progress.is-success i { background: linear-gradient(90deg, #19bb7d, #55e6b0); }
.upload-progress.is-success > span { color: #5fe2b1; }
.upload-progress.is-error { border-color: rgba(255,91,107,.28); }
.upload-progress.is-error i { background: #ff5b6b; }
.upload-progress.is-error > span { color: #ff8e9a; }
.field-label.inline-label { margin: 0; }
.form-group input, .form-group textarea, .form-group select { font-size: 11px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; }
.switch { position: relative; width: 40px; height: 23px; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; border-radius: 20px; background: #26384d; cursor: pointer; transition: .2s; }
.switch i::before { content: ""; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px; border-radius: 50%; background: #aab7c6; transition: .2s; }
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::before { transform: translateX(17px); background: white; }
.settings-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; padding-top: 2px; }
.content-editor-form { display: grid; gap: 17px; }
.content-editor-toolbar { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.content-editor-toolbar > div { display: flex; flex-direction: column; gap: 5px; }
.content-editor-toolbar strong { color: var(--text); font-size: 16px; }
.content-editor-toolbar small { color: var(--muted); font-size: 11px; }
.content-status { display: flex; align-items: center; gap: 7px; color: var(--primary-2); font-size: 10px; font-weight: 850; letter-spacing: 1px; }
.content-status .icon { width: 14px; height: 14px; }
.content-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 17px; align-items: stretch; }
.content-editor { min-width: 0; padding: 20px; }
.content-editor .form-group { display: block; }
.content-editor .form-group > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 750; }
.content-editor textarea { min-height: 560px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.65; }
.content-editor-note { padding: 17px 20px; display: flex; align-items: flex-start; gap: 12px; color: var(--primary-2); }
.content-editor-note > .icon { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; }
.content-editor-note strong { color: var(--text); font-size: 13px; }
.content-editor-note p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.content-editor-note code { padding: 2px 5px; border-radius: 5px; color: #bfe4ff; background: rgba(36, 145, 242, .14); }
.log-terminal { height: 260px; overflow-y: auto; background: #050b12; border: 1px solid rgba(137,169,204,.1); border-radius: 12px; padding: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 9px; line-height: 1.65; color: #8ea2b8; }
.log-line { display: flex; gap: 12px; }
.log-line time { color: #475e75; flex: 0 0 auto; }
.log-line.success span { color: var(--success); }
.log-line.error span { color: var(--danger); }
.log-line.warning span { color: var(--warning); }

.modal-layer { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; }
.modal-scrim { position: absolute; inset: 0; background: rgba(2,7,13,.72); backdrop-filter: blur(7px); animation: fadeIn .17s ease; }
.modal-card { position: relative; width: min(640px, 100%); max-height: min(88vh, 850px); display: flex; flex-direction: column; border: 1px solid var(--border-strong); border-radius: 21px; background: linear-gradient(145deg, #111f31, #0a1523); box-shadow: 0 35px 100px rgba(0,0,0,.5); animation: modalIn .2s ease; overflow: hidden; }
.modal-card.wide { width: min(820px, 100%); }
.modal-card > header { min-height: 72px; padding: 15px 19px 15px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-kicker { color: var(--primary-2); font-size: 8px; letter-spacing: 1.3px; font-weight: 800; }
.modal-card h2 { margin: 5px 0 0; font-size: 17px; letter-spacing: -.3px; }
.modal-card form { min-height: 0; display: flex; flex-direction: column; }
.modal-body { padding: 21px 22px; overflow-y: auto; }
.modal-card footer { min-height: 68px; border-top: 1px solid var(--border); padding: 13px 20px; display: flex; justify-content: flex-end; align-items: center; gap: 8px; background: rgba(4,10,18,.2); }
.member-profile-preview { display: flex; align-items: center; gap: 16px; padding: 16px; margin-bottom: 20px; border: 1px solid rgba(63, 156, 245, .2); border-radius: 16px; background: linear-gradient(135deg, rgba(27, 128, 230, .12), rgba(29, 210, 184, .05)); }
.member-profile-preview > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.member-profile-preview > div > span { color: var(--primary-2); font-size: 10px; font-weight: 800; letter-spacing: 1.25px; }
.member-profile-preview strong { color: #eef7ff; font-size: 19px; }
.member-profile-preview small { color: var(--muted); font-size: 12px; }
.member-avatar-large { width: 68px; height: 68px; overflow: hidden; flex: 0 0 auto; display: grid; place-items: center; border-radius: 19px; color: #e7f4ff; font-size: 20px; font-weight: 850; background: linear-gradient(145deg, #1d72ca, #5145b8); border: 2px solid rgba(112, 192, 255, .35); box-shadow: 0 12px 30px rgba(0, 95, 190, .2); }
.member-avatar-large img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ticket-member { margin-bottom: 14px; }
.ticket-message { margin-bottom: 18px; padding: 17px 18px; border: 1px solid var(--border); border-radius: 15px; background: rgba(4, 11, 19, .32); }
.ticket-message > span { display: flex; align-items: center; gap: 8px; color: #71bdff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .75px; }
.ticket-message .icon { width: 16px; height: 16px; }
.ticket-message strong { display: block; margin-top: 13px; color: #edf5fc; font-size: 16px; }
.ticket-message p { margin: 8px 0 0; color: #b5c4d4; font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.ticket-reply-box textarea { min-height: 160px; }
.confirm-card { position: relative; width: min(410px, 100%); padding: 28px; border: 1px solid var(--border-strong); border-radius: 20px; background: linear-gradient(145deg, #111f31, #0a1523); box-shadow: var(--shadow); text-align: center; animation: modalIn .2s ease; }
.confirm-icon { width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 15px; display: grid; place-items: center; color: var(--danger); background: var(--danger-soft); }
.confirm-card h2 { font-size: 17px; margin: 0 0 8px; }
.confirm-card p { color: var(--muted); line-height: 1.6; font-size: 11px; margin: 0 0 22px; }
.confirm-card > div { display: flex; justify-content: center; gap: 8px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 9px; pointer-events: none; }
.toast { min-width: 290px; max-width: 400px; min-height: 58px; padding: 11px 14px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--border-strong); border-radius: 14px; background: rgba(15,28,45,.94); box-shadow: 0 18px 55px rgba(0,0,0,.35); backdrop-filter: blur(18px); animation: toastIn .24s ease; pointer-events: auto; }
.toast.out { animation: toastOut .2s ease forwards; }
.toast > span:first-child { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; background: var(--success-soft); color: var(--success); flex: 0 0 auto; }
.toast.error > span:first-child { background: var(--danger-soft); color: var(--danger); }
.toast div { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.toast strong { font-size: 10.5px; }
.toast small { color: var(--muted); font-size: 9px; line-height: 1.35; }
@keyframes toastIn { from { opacity: 0; transform: translateX(15px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }
.skeleton { position: relative; overflow: hidden; background: rgba(120,151,187,.08); border-radius: 8px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.loading-page { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.loading-page .skeleton { height: 130px; }

/* VNDEVCODE readability upgrade — larger, clearer admin UI */
:root { --sidebar: 294px; }
body { font-size: 16px; }
.brand strong { font-size: 20px; letter-spacing: -.2px; }
.brand small { font-size: 13px; margin-top: 3px; }
.brand-mark { width: 44px; height: 44px; }
.sidebar-head, .topbar { height: 86px; }
.nav-label { font-size: 11px; margin: 18px 14px 10px; }
.nav-item { min-height: 50px; padding: 0 14px; gap: 13px; font-size: 14px; border-radius: 13px; }
.nav-item .icon { width: 20px; height: 20px; }
.bot-mini { min-height: 70px; }
.bot-mini strong, .profile-card strong { font-size: 13px; }
.bot-mini small, .profile-card small { font-size: 11px; }
.profile-card { min-height: 64px; }
.avatar { width: 40px; height: 40px; font-size: 12px; }
.topbar h1 { font-size: 23px; }
.breadcrumb { font-size: 11px; }
.global-search { height: 44px; width: min(300px, 25vw); }
.global-search input { font-size: 13px; }
.page-content { padding: 30px 32px 52px; }
.page-heading { margin-bottom: 26px; }
.page-heading h2 { font-size: 29px; margin-bottom: 7px; }
.page-heading p { font-size: 14px; line-height: 1.55; }
.btn { min-height: 46px; padding: 12px 18px; font-size: 14px; }
.btn-sm { min-height: 38px; font-size: 12px; }
.stat-card { min-height: 150px; padding: 21px; }
.stat-card strong { font-size: 29px; margin-top: 17px; }
.stat-card > span:last-child { font-size: 13px; margin-top: 5px; }
.stat-icon { width: 42px; height: 42px; }
.stat-icon .icon { width: 20px; }
.stat-change { font-size: 11px; }
.panel-head { min-height: 72px; padding: 17px 20px; }
.panel-title h3 { font-size: 17px; margin-bottom: 5px; }
.panel-title p { font-size: 12px; line-height: 1.45; }
.data-table th { padding: 14px 17px; font-size: 11px; }
.data-table td { padding: 15px 17px; font-size: 13px; }
.cell-main strong, .cell-stack strong { font-size: 13px; }
.cell-main small, .cell-stack small { font-size: 11px; }
.cell-avatar { width: 38px; height: 38px; font-size: 12px; }
.status { padding: 7px 10px; font-size: 10.5px; }
.stock-item strong { font-size: 13px; }
.stock-item small { font-size: 11px; }
.stock-count { font-size: 14px; }
.toolbar-search input, .filter-select { height: 46px; min-height: 46px; font-size: 13px; }
.toolbar-search { width: min(340px, 38vw); }
.filter-select { background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; }
.table-footer { min-height: 62px; font-size: 11px; }
.category-card { min-height: 184px; padding: 21px; }
.category-card h3 { font-size: 17px; }
.category-card p { font-size: 12px; }
.category-stats span { font-size: 11px; }
.category-stats b { font-size: 13px; }
.section-heading h3 { font-size: 17px; }
.section-heading p { font-size: 12px; }
.form-group label, .field > span, .field-label { font-size: 13px; }
.form-group input, .form-group textarea, .form-group select, input, textarea, select { font-size: 14px; }
.form-group small { font-size: 11px; line-height: 1.45; }
.modal-card h2 { font-size: 21px; }
.modal-kicker { font-size: 10px; }
.modal-body { padding: 24px 26px; }
.toast strong { font-size: 13px; }
.toast small { font-size: 11px; }
.login-form { width: min(450px, 100%); }
.login-form h2 { font-size: 40px; }
.login-form > p { font-size: 15px; }
.form-kicker { font-size: 12px; }
.login-form input { min-height: 54px; font-size: 15px; }
.form-error { font-size: 13px; min-height: 24px; }
.btn-login { min-height: 56px; font-size: 14px; }
.security-note { font-size: 11px !important; }

body.sidebar-collapsed { --sidebar: 78px; }
body.sidebar-collapsed .sidebar .nav-label,
body.sidebar-collapsed .sidebar .nav-item > span:not(.icon-holder),
body.sidebar-collapsed .sidebar .nav-badge,
body.sidebar-collapsed .sidebar .bot-mini > div,
body.sidebar-collapsed .sidebar .bot-mini button,
body.sidebar-collapsed .sidebar .profile-card > span:nth-child(2),
body.sidebar-collapsed .sidebar .profile-card > .icon { display: none; }
body.sidebar-collapsed .sidebar-head { justify-content: center; padding: 0; }
body.sidebar-collapsed .sidebar-brand { flex: 0 0 58px; width: 58px; height: 58px; margin: 0; }
body.sidebar-collapsed .sidebar-brand img { object-position: center; }
body.sidebar-collapsed .desktop-collapse { display: none; }
body.sidebar-collapsed .navigation { padding-inline: 10px; }
body.sidebar-collapsed .nav-item { justify-content: center; padding: 0; }
body.sidebar-collapsed .nav-item.active::before { left: -10px; }
body.sidebar-collapsed .bot-mini { justify-content: center; padding: 0; }
body.sidebar-collapsed .profile-card { justify-content: center; padding: 8px 0; }

@media (max-width: 1180px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .dashboard-grid, .two-panel-grid { grid-template-columns: 1fr; }
  .dashboard-grid .panel:last-child { min-height: auto; }
  .settings-grid { grid-template-columns: 1fr; }
  .content-editor-grid { grid-template-columns: 1fr; }
  .content-editor textarea { min-height: 430px; }
}

@media (max-width: 880px) {
  :root { --sidebar: 288px; }
  .sidebar { transform: translateX(-100%); box-shadow: 25px 0 70px rgba(0,0,0,.36); }
  body.mobile-open .sidebar { transform: translateX(0); }
  .main-shell { margin-left: 0; }
  .mobile-menu { display: grid; }
  .desktop-collapse { display: none; }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 25; background: rgba(2,7,13,.62); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: .2s; }
  body.mobile-open .sidebar-scrim { opacity: 1; pointer-events: auto; }
  .login-shell { grid-template-columns: 1fr; }
  .login-aside { display: none; }
  .login-panel { min-height: 100vh; }
  .mobile-brand { display: flex; margin-bottom: 55px; }
  .topbar { padding-inline: 17px; }
  .global-search { display: none; }
  .page-content { padding: 21px 17px 42px; }
}

@media (max-width: 660px) {
  .topbar { height: 68px; }
  .topbar h1 { font-size: 19px; }
  .breadcrumb { display: none; }
  .refresh-btn span:last-child { display: none; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .heading-actions { width: 100%; }
  .heading-actions .btn { flex: 1; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat-card { min-height: 116px; padding: 14px; }
  .stat-card strong { font-size: 24px; }
  .category-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .category-status-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .bulk-selection-bar { flex-wrap: wrap; gap: 10px; }
  .bulk-selection-count { flex: 1 1 100%; order: 3; }
  .bulk-selection-bar > .btn, .bulk-selection-actions { width: 100%; }
  .bulk-selection-actions .btn { flex: 1; }
  .bulk-edit-grid { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-left, .toolbar-right { width: 100%; }
  .toolbar-search { width: 100%; }
  .filter-select { flex: 1; min-width: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .media-upload-card { align-items: stretch; flex-wrap: wrap; }
  .media-upload-copy { min-width: calc(100% - 66px); }
  .media-upload-card .btn { width: 100%; }
  .settings-actions { grid-column: 1; }
  .content-editor-toolbar { align-items: stretch; flex-direction: column; }
  .content-editor-toolbar .btn { width: 100%; }
  .content-editor { padding: 16px; }
  .content-editor textarea { min-height: 360px; }
  .modal-layer { padding: 9px; align-items: end; }
  .modal-card { max-height: 92vh; border-radius: 19px 19px 10px 10px; }
  .toast-stack { left: 12px; right: 12px; bottom: 12px; }
  .toast { min-width: 0; max-width: none; width: 100%; }
  .date-chip { display: none; }
}

@media (max-width: 420px) {
  .stat-grid, .category-grid { grid-template-columns: 1fr; }
  .login-panel { padding: 26px; }
  .login-form h2 { font-size: 34px; }
  .feature-row { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* V15 · Premium operations experience */
body { background: radial-gradient(circle at 82% -12%, rgba(22,135,255,.13), transparent 30%), radial-gradient(circle at 7% 92%, rgba(64,55,214,.09), transparent 30%), var(--bg); }
.brand-logo { position: relative; box-shadow: 0 0 0 1px rgba(63,162,255,.14), 0 12px 34px rgba(0,99,255,.22); }
.brand-logo::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: linear-gradient(120deg, transparent 25%, rgba(110,201,255,.36), transparent 70%); transform: translateX(-125%); animation: logoScan 4.8s ease-in-out infinite; pointer-events: none; }
.brand-logo img { object-fit: cover; }
@keyframes logoScan { 0%, 62%, 100% { transform: translateX(-125%); } 78% { transform: translateX(125%); } }

.ops-command { position: relative; isolation: isolate; min-height: 260px; display: grid; grid-template-columns: minmax(0, 1.35fr) 250px minmax(230px, .55fr); align-items: center; gap: 30px; margin-bottom: 18px; padding: 30px 34px; overflow: hidden; border: 1px solid rgba(73,160,255,.22); border-radius: 25px; background: radial-gradient(circle at 68% 50%, rgba(34,140,255,.19), transparent 28%), linear-gradient(135deg, rgba(14,32,55,.98), rgba(7,18,32,.96)); box-shadow: 0 28px 85px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.04); }
.ops-command::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .19; background-image: linear-gradient(rgba(115,183,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(115,183,255,.12) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(90deg, black, transparent 78%); }
.ops-command::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -180px; top: -230px; border-radius: 50%; border: 1px solid rgba(75,168,255,.23); box-shadow: 0 0 90px rgba(22,135,255,.14); }
.ops-live, .module-kicker { display: inline-flex; align-items: center; gap: 8px; color: #70bcff; font-size: 10px; font-weight: 850; letter-spacing: 1.5px; }
.ops-live i { width: 7px; height: 7px; border-radius: 50%; background: #43e1aa; box-shadow: 0 0 0 6px rgba(67,225,170,.08), 0 0 18px rgba(67,225,170,.62); animation: livePulse 1.7s ease-in-out infinite; }
@keyframes livePulse { 50% { transform: scale(.72); opacity: .58; } }
.ops-command-copy h2 { margin: 14px 0 13px; color: #f4f9ff; font-size: clamp(28px, 3vw, 43px); line-height: 1.08; letter-spacing: -1.7px; }
.ops-command-copy h2 em { color: transparent; font-style: normal; background: linear-gradient(90deg, #6bc3ff, #57ead5); background-clip: text; -webkit-background-clip: text; }
.ops-command-copy p { max-width: 650px; margin: 0; color: #859ab2; font-size: 12px; line-height: 1.75; }
.ops-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ops-chips span { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 11px; color: #a8b9cb; font-size: 9px; font-weight: 700; border: 1px solid rgba(106,160,215,.15); border-radius: 9px; background: rgba(96,142,190,.07); }
.ops-chips .icon, .module-kicker .icon { width: 14px; height: 14px; color: #64b9ff; }
.ops-core { position: relative; width: 210px; height: 210px; display: grid; place-items: center; margin: auto; }
.ops-core::before { content: ""; position: absolute; inset: 35px; border-radius: 50%; background: radial-gradient(circle, rgba(80,169,255,.21), rgba(11,25,44,.95) 62%); box-shadow: 0 0 70px rgba(31,132,241,.2), inset 0 0 34px rgba(74,174,255,.13); }
.ops-core.online::before { background: radial-gradient(circle, rgba(55,221,171,.18), rgba(11,28,42,.96) 64%); box-shadow: 0 0 72px rgba(40,212,147,.17), inset 0 0 34px rgba(40,212,147,.12); }
.ops-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(92,177,255,.28); }
.ring-a { inset: 8px; border-style: dashed; animation: ringSpin 18s linear infinite; }
.ring-b { inset: 24px; border-color: rgba(76,219,190,.22); animation: ringSpin 12s linear infinite reverse; }
@keyframes ringSpin { to { transform: rotate(360deg); } }
.ops-core-center { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.ops-core-center .icon { width: 31px; height: 31px; margin-bottom: 9px; color: #64b9ff; filter: drop-shadow(0 0 12px rgba(76,169,255,.5)); }
.ops-core.online .ops-core-center .icon { color: #55e0b0; filter: drop-shadow(0 0 12px rgba(51,218,164,.45)); }
.ops-core-center strong { font-size: 13px; letter-spacing: 1.7px; }
.ops-core-center small { margin-top: 4px; color: #577087; font-size: 8px; letter-spacing: 1.25px; }
.ops-node { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #55b5ff; box-shadow: 0 0 14px rgba(66,169,255,.8); }
.node-a { top: 18px; left: 62px; }.node-b { right: 16px; bottom: 68px; }.node-c { left: 19px; bottom: 52px; }
.ops-snapshot { padding: 18px; border: 1px solid rgba(106,163,219,.15); border-radius: 17px; background: rgba(5,14,25,.52); backdrop-filter: blur(15px); }
.ops-snapshot > span { color: #587088; font-size: 8px; font-weight: 850; letter-spacing: 1.3px; }
.ops-snapshot strong { display: block; margin-top: 8px; font-size: 18px; }
.ops-snapshot small { display: block; margin-top: 6px; color: #73899f; font-size: 9px; line-height: 1.55; }
.ops-meter { height: 6px; margin-top: 16px; overflow: hidden; border-radius: 9px; background: #14273b; }
.ops-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1687ff, #53dfc4); box-shadow: 0 0 15px rgba(55,182,255,.4); animation: meterGlow 2.3s ease-in-out infinite; }
@keyframes meterGlow { 50% { filter: brightness(1.35); } }
.stat-card { transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease; }
.stat-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--card-color) 40%, transparent); box-shadow: 0 24px 55px rgba(0,0,0,.22); }

.inventory-hero, .category-command { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 17px; padding: 24px 27px; overflow: hidden; border: 1px solid rgba(79,164,247,.19); border-radius: 21px; background: radial-gradient(circle at 88% 10%, rgba(31,140,245,.18), transparent 28%), linear-gradient(135deg, rgba(16,34,56,.94), rgba(8,20,34,.94)); box-shadow: 0 18px 55px rgba(0,0,0,.15); }
.inventory-hero::after, .category-command::after { content: ""; position: absolute; right: -50px; bottom: -85px; width: 230px; height: 230px; border: 1px solid rgba(79,169,255,.16); border-radius: 50%; box-shadow: 0 0 60px rgba(23,136,255,.1); }
.inventory-hero h2, .category-command h2 { margin: 9px 0 7px; font-size: 24px; letter-spacing: -.8px; }
.inventory-hero p, .category-command p { margin: 0; color: #7d92a9; font-size: 11px; }
.inventory-metrics, .category-command-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(105px, 1fr)); gap: 8px; }
.inventory-metrics span, .category-command-stats span { min-width: 112px; padding: 13px 15px; border: 1px solid rgba(107,165,220,.14); border-radius: 13px; background: rgba(3,12,22,.44); }
.inventory-metrics small, .category-command-stats small { display: block; color: #587087; font-size: 7.5px; font-weight: 850; letter-spacing: .8px; }
.inventory-metrics strong, .category-command-stats strong { display: block; margin-top: 6px; color: #eaf5ff; font-size: 19px; }
.premium-table { border-color: rgba(79,157,236,.18); box-shadow: 0 20px 65px rgba(0,0,0,.16); }
.premium-table .data-table tbody tr { transition: transform .18s ease, background .18s ease; }
.product-thumb { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border: 1px solid rgba(94,162,225,.19); border-radius: 13px; background: linear-gradient(145deg, #173653, #172a46); font-size: 18px; box-shadow: 0 8px 20px rgba(0,0,0,.17); }
.product-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.product-cell { min-width: 250px !important; }

.store-image-field > label { color: #d3e4f5; font-size: 11px; letter-spacing: .45px; }
.store-image-uploader { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 16px; padding: 15px; border: 1px solid rgba(77,166,255,.22); border-radius: 16px; background: linear-gradient(145deg, rgba(20,50,80,.3), rgba(6,17,29,.58)); }
.store-image-preview { min-height: 150px; display: grid; place-items: center; align-content: center; gap: 9px; overflow: hidden; border: 1px dashed rgba(103,173,238,.28); border-radius: 13px; color: #5f7891; background: radial-gradient(circle at 50% 30%, rgba(31,140,245,.11), transparent 55%), #091624; }
.store-image-preview .icon { width: 27px; height: 27px; }
.store-image-preview span { font-size: 8px; font-weight: 850; letter-spacing: 1.1px; }
.store-image-preview.has-image { display: block; border-style: solid; }
.store-image-preview img { display: block; width: 100%; height: 100%; min-height: 150px; max-height: 230px; object-fit: contain; }
.store-image-controls { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.btn-upload-image { color: white; background: linear-gradient(135deg, #239cff, #655eea); box-shadow: 0 10px 28px rgba(33,124,240,.2); }
.upload-unlimited { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; color: #58ddae; font-size: 9px; font-weight: 750; }
.upload-unlimited .icon { width: 13px; height: 13px; }
.store-url-label { margin-top: auto; padding-top: 13px; color: #7f94aa !important; font-size: 9px !important; }
.store-image-controls input { min-height: 42px; font-size: 10px; }
.store-upload-progress { display: grid; grid-template-columns: minmax(0,1fr) 47px; align-items: center; gap: 9px; margin-top: 10px; padding: 11px 12px; border: 1px solid rgba(68,156,240,.2); border-radius: 11px; background: rgba(4,13,23,.64); }
.store-upload-progress > div { height: 8px; overflow: hidden; border-radius: 20px; background: #172a40; }
.store-upload-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#1687ff,#5ad9e3); box-shadow: 0 0 14px rgba(45,162,255,.45); transition: width .12s linear; }
.store-upload-progress strong { color: #71c2ff; font-size: 11px; text-align: right; }
.store-upload-progress small { grid-column: 1/-1; margin: 0; color: #70879f; }
.store-upload-progress.is-success { border-color: rgba(40,212,147,.26); }.store-upload-progress.is-success i { background: linear-gradient(90deg,#20bd82,#5be4b2); }.store-upload-progress.is-success strong { color: #5ce1b0; }
.store-upload-progress.is-error { border-color: rgba(255,97,116,.28); }.store-upload-progress.is-error i { background: #ff6174; }.store-upload-progress.is-error strong { color: #ff8897; }

@media (max-width: 1180px) {
  .ops-command { grid-template-columns: minmax(0,1fr) 220px; }
  .ops-snapshot { grid-column: 1/-1; }
  .inventory-hero, .category-command { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 720px) {
  .ops-command { grid-template-columns: 1fr; padding: 24px 20px; }
  .ops-core { width: 180px; height: 180px; }
  .ops-command-copy h2 { font-size: 29px; }
  .ops-chips { gap: 6px; }
  .inventory-metrics, .category-command-stats { width: 100%; grid-template-columns: 1fr; }
  .inventory-metrics span, .category-command-stats span { min-width: 0; }
  .store-image-uploader { grid-template-columns: 1fr; }
  .store-image-preview { min-height: 180px; }
  .premium-category-grid { grid-template-columns: 1fr; }
}

/* V18 · VietQR & Bank API command center */
.payment-settings-form { display: grid; gap: 13px; margin-bottom: 28px; }
.payment-config-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.payment-config-card { position: relative; min-width: 0; padding: 24px; overflow: hidden; border-color: rgba(78,164,247,.2); background: radial-gradient(circle at 96% 0, rgba(36,139,244,.16), transparent 34%), linear-gradient(145deg, rgba(16,34,55,.98), rgba(7,18,31,.98)); box-shadow: 0 22px 60px rgba(0,0,0,.18); }
.payment-config-card::after { content: ""; position: absolute; right: -100px; bottom: -145px; width: 260px; height: 260px; border: 1px solid rgba(83,170,255,.13); border-radius: 50%; pointer-events: none; }
.payment-config-card > header { position: relative; z-index: 1; display: grid; grid-template-columns: 49px minmax(0,1fr) auto; align-items: center; gap: 13px; margin-bottom: 24px; }
.payment-config-card > header > div > span { color: #5e91bd; font-size: 8px; font-weight: 900; letter-spacing: 1.5px; }
.payment-config-card h3 { margin: 5px 0 4px; color: #eef7ff; font-size: 19px; letter-spacing: -.4px; }
.payment-config-card header p { margin: 0; color: #71879d; font-size: 10px; line-height: 1.45; }
.payment-card-icon { width: 49px; height: 49px; display: grid; place-items: center; border: 1px solid rgba(43,198,160,.21); border-radius: 15px; color: #54ddb1; background: rgba(35,184,142,.1); box-shadow: 0 10px 28px rgba(25,164,122,.11); }
.payment-card-icon.api { color: #75baff; border-color: rgba(70,157,246,.24); background: rgba(35,130,231,.11); box-shadow: 0 10px 28px rgba(28,121,220,.12); }
.payment-card-icon .icon { width: 23px; height: 23px; }
.payment-config-card .form-grid { position: relative; z-index: 1; }
.payment-config-card input[readonly] { color: #6ed0ff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 800; background: rgba(20,126,213,.08); cursor: not-allowed; }
.api-state { min-height: 27px; display: inline-flex; align-items: center; gap: 6px; padding: 0 9px; border: 1px solid rgba(132,152,176,.14); border-radius: 8px; color: #71849a; background: rgba(78,99,124,.08); font-size: 7.5px; letter-spacing: .75px; white-space: nowrap; }
.api-state i { width: 6px; height: 6px; border-radius: 50%; background: #607288; }
.api-state.online { color: #65ddb3; border-color: rgba(45,207,153,.2); background: rgba(34,190,138,.08); }
.api-state.online i { background: #42dcaa; box-shadow: 0 0 13px rgba(58,219,167,.75); animation: livePulse 1.7s ease-in-out infinite; }
.bank-provider-link { min-height: 67px; display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid rgba(71,161,246,.2); border-radius: 14px; color: #ddecfa; background: linear-gradient(100deg, rgba(29,129,224,.13), rgba(24,60,95,.08)); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.bank-provider-link:hover { transform: translateY(-2px); border-color: rgba(75,174,255,.4); background: linear-gradient(100deg, rgba(29,129,224,.19), rgba(24,60,95,.12)); }
.bank-provider-link > span:first-child { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: #6fbdff; background: rgba(37,137,230,.13); }
.bank-provider-link > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.bank-provider-link small { color: #627b94; font-size: 7px; font-weight: 850; letter-spacing: 1px; }
.bank-provider-link strong { font-size: 12px; }
.bank-provider-link > b { display: flex; align-items: center; gap: 5px; color: #72bfff; font-size: 9px; white-space: nowrap; }
.bank-provider-link > b .icon { width: 13px; height: 13px; }
.payment-settings-actions { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 13px 11px 17px; border: 1px solid var(--border); border-radius: 15px; background: rgba(11,25,41,.66); }
.payment-settings-actions > span { display: flex; align-items: center; gap: 8px; color: #71879d; font-size: 10px; }
.payment-settings-actions > span .icon { width: 15px; height: 15px; color: #52d7ac; }
.deposit-history-section { padding-top: 4px; }
.deposit-heading { margin-bottom: 13px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(100deg, rgba(17,37,60,.82), rgba(8,20,34,.76)); }
.deposit-heading > span { color: #66b7ff; background: rgba(38,139,235,.12); }

@media (max-width: 1050px) {
  .payment-config-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .payment-config-card { padding: 19px; }
  .payment-config-card > header { grid-template-columns: 44px minmax(0,1fr); }
  .api-state { grid-column: 1 / -1; justify-self: start; }
  .payment-settings-actions { align-items: stretch; flex-direction: column; }
  .payment-settings-actions .btn { width: 100%; }
  .bank-provider-link { grid-template-columns: 38px minmax(0,1fr); }
  .bank-provider-link > b { grid-column: 2; }
}

/* V20 · ShopClone supplier API command center */
.api-command-hero { position: relative; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(390px,.75fr); align-items: center; gap: 24px; margin-bottom: 18px; padding: 28px; overflow: hidden; border: 1px solid rgba(66,163,255,.24); border-radius: 20px; background: radial-gradient(circle at 8% 20%,rgba(35,145,255,.2),transparent 28%),radial-gradient(circle at 95% 20%,rgba(105,83,255,.16),transparent 31%),linear-gradient(135deg,#0e2137,#091421 68%); box-shadow: 0 24px 70px rgba(0,0,0,.2); }
.api-command-hero::after { content: "API"; position: absolute; right: 24px; bottom: -30px; color: rgba(103,180,255,.035); font-size: 128px; font-weight: 950; letter-spacing: -10px; pointer-events: none; }
.api-command-hero h2 { margin: 8px 0 7px; color: #f2f8ff; font-size: 27px; letter-spacing: -.75px; }
.api-command-hero p { max-width: 720px; margin: 0; color: #7f94aa; font-size: 11px; line-height: 1.7; }
.api-command-metrics { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.api-command-metrics span { min-width: 0; padding: 15px; border: 1px solid rgba(93,168,239,.17); border-radius: 14px; background: rgba(7,20,34,.7); }
.api-command-metrics small,.api-source-stats small { display: block; color: #607c96; font-size: 7.5px; font-weight: 850; letter-spacing: .8px; }
.api-command-metrics strong { display: block; margin-top: 7px; color: #6cc0ff; font-size: 20px; }
.api-source-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.api-source-grid > .table-empty { grid-column: 1/-1; min-height: 260px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.api-source-card { position: relative; min-width: 0; padding: 21px; overflow: hidden; border-color: rgba(78,154,227,.19); background: radial-gradient(circle at 100% 0,rgba(38,133,230,.12),transparent 32%),linear-gradient(145deg,rgba(16,34,54,.98),rgba(7,18,30,.98)); }
.api-source-card::after { content: ""; position: absolute; width: 170px; height: 170px; right: -100px; bottom: -110px; border: 1px solid rgba(92,173,251,.12); border-radius: 50%; }
.api-source-card > header { position: relative; z-index: 1; display: grid; grid-template-columns: 49px minmax(0,1fr) auto; align-items: center; gap: 13px; }
.api-source-logo { width: 49px; height: 49px; display: grid; place-items: center; border: 1px solid rgba(66,161,251,.24); border-radius: 15px; color: #73beff; background: rgba(34,126,220,.12); box-shadow: 0 12px 28px rgba(23,107,192,.14); }.api-source-logo .icon { width: 22px; height: 22px; }
.api-source-card header small { display: block; color: #5d83a5; font-size: 7.5px; font-weight: 900; letter-spacing: 1px; }.api-source-card h3 { margin: 5px 0 4px; color: #edf6ff; font-size: 16px; }
.api-source-card header a { display: inline-flex; max-width: 100%; align-items: center; gap: 5px; overflow: hidden; color: #6da8d8; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.api-source-card header a .icon { width: 11px; height: 11px; flex: 0 0 auto; }
.source-status { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid rgba(93,115,139,.18); border-radius: 8px; color: #71859a; background: rgba(74,94,117,.09); font-size: 7px; letter-spacing: .7px; white-space: nowrap; }.source-status i { width: 6px; height: 6px; border-radius: 50%; background: #65778a; }
.api-source-card.online .source-status { color: #5fddb0; border-color: rgba(45,207,153,.22); background: rgba(34,190,138,.08); }.api-source-card.online .source-status i { background: #42dcaa; box-shadow: 0 0 12px rgba(58,219,167,.76); animation: livePulse 1.7s ease-in-out infinite; }
.api-source-card.error .source-status { color: #ff8995; border-color: rgba(255,91,107,.24); background: rgba(255,91,107,.08); }.api-source-card.error .source-status i { background: #ff6173; }.api-source-card.disabled { opacity: .69; filter: saturate(.6); }
.api-source-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin: 19px 0 13px; }.api-source-stats span { padding: 12px; border: 1px solid rgba(119,151,183,.12); border-radius: 11px; background: rgba(5,15,26,.52); }.api-source-stats strong { display: block; margin-top: 6px; color: #dbe9f6; font-size: 14px; }
.source-config-line { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #7890a7; background: rgba(33,65,96,.16); font-size: 8.5px; }.source-config-line span { display: inline-flex; align-items: center; gap: 6px; }.source-config-line .icon { width: 12px; height: 12px; color: #5baef5; }.source-config-line b { color: #6bd6ad; }
.source-error { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 7px; margin: 10px 0 0; padding: 9px 11px; border: 1px solid rgba(255,91,107,.18); border-radius: 9px; color: #df8590; background: rgba(255,91,107,.055); font-size: 8.5px; line-height: 1.5; }.source-error .icon { width: 13px; height: 13px; flex: 0 0 auto; }
.api-source-card > footer { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(128,156,184,.1); }.api-source-card > footer .btn { min-height: 35px; font-size: 9px; }.api-source-card > footer .action-btn:first-of-type { margin-left: auto; }
.api-connect-form { display: grid; gap: 17px; }.api-form-intro { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid rgba(64,160,249,.2); border-radius: 13px; background: linear-gradient(100deg,rgba(28,127,223,.13),rgba(15,42,69,.1)); }.api-form-intro > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: #70bbff; background: rgba(32,134,232,.13); }.api-form-intro .icon { width: 19px; height: 19px; }.api-form-intro strong { display: block; color: #e7f2fc; font-size: 11px; letter-spacing: .6px; }.api-form-intro small { display: block; margin-top: 4px; color: #748aa0; font-size: 9px; }
.api-switch-stack { display: flex; min-height: 42px; align-items: center; flex-wrap: wrap; gap: 13px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: rgba(5,15,26,.46); }.api-switch-stack > span { display: inline-flex; align-items: center; gap: 7px; color: #9cafc1; font-size: 9px; white-space: nowrap; }
.api-form-note { display: flex; align-items: center; gap: 8px; padding: 11px 13px; border: 1px solid rgba(42,209,154,.16); border-radius: 11px; color: #79a899; background: rgba(29,184,133,.06); font-size: 9px; }.api-form-note .icon { width: 14px; height: 14px; color: #52dcae; }.api-form-note b { color: #b7f0dc; }.api-cost { display: block; margin-top: 4px; color: #65c9a7; font-size: 8px; font-weight: 650; }
.stock-visibility-setting { grid-column: 1/-1; }.setting-switch-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 17px 18px; border: 1px solid rgba(66,159,244,.19); border-radius: 14px; background: linear-gradient(105deg,rgba(26,118,207,.11),rgba(11,28,46,.4)); }.setting-switch-card strong { display: block; color: #deebf7; font-size: 11px; letter-spacing: .4px; }.setting-switch-card small { display: block; max-width: 760px; margin-top: 6px; color: #71869a; font-size: 9px; line-height: 1.55; }.switch-large { width: 49px; height: 27px; flex: 0 0 auto; }.switch-large i::before { width: 21px; height: 21px; }.switch-large input:checked + i::before { transform: translateX(22px); }
@media (max-width: 1050px) { .api-command-hero { grid-template-columns: 1fr; }.api-source-grid { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .api-command-hero { padding: 21px; }.api-command-metrics,.api-source-stats { grid-template-columns: 1fr; }.api-source-card > header { grid-template-columns: 45px minmax(0,1fr); }.source-status { grid-column: 1/-1; justify-self: start; }.source-config-line,.api-switch-stack { align-items: flex-start; flex-direction: column; }.api-source-card > footer { flex-wrap: wrap; }.api-source-card > footer .btn { flex: 1 1 42%; }.setting-switch-card { align-items: flex-start; } }

/* V21 · Telegram Custom Emoji bulk command center */
.emoji-command-hero { position: relative; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(360px,.85fr); align-items: center; gap: 28px; margin-bottom: 15px; padding: 28px; overflow: hidden; border: 1px solid rgba(124,95,255,.27); border-radius: 21px; background: radial-gradient(circle at 6% 12%,rgba(72,151,255,.2),transparent 31%),radial-gradient(circle at 94% 0,rgba(133,77,255,.22),transparent 34%),linear-gradient(135deg,#10253d,#0a1423 70%); box-shadow: 0 25px 70px rgba(0,0,0,.2); }
.emoji-command-hero::after { content: "✦"; position: absolute; right: 32px; bottom: -67px; color: rgba(164,137,255,.075); font-size: 180px; line-height: 1; pointer-events: none; filter: drop-shadow(0 0 32px rgba(112,87,255,.25)); }
.emoji-command-hero h2 { margin: 8px 0 8px; color: #f3f7ff; font-size: 28px; letter-spacing: -.8px; }
.emoji-command-hero p { max-width: 720px; margin: 0; color: #8298af; font-size: 11px; line-height: 1.75; }.emoji-command-hero p b { color: #ae9dff; font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; }
.emoji-command-metrics { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.emoji-command-metrics span { min-width: 0; padding: 16px; border: 1px solid rgba(133,119,226,.2); border-radius: 14px; background: rgba(5,15,27,.67); backdrop-filter: blur(12px); }
.emoji-command-metrics small { display: block; color: #6b7698; font-size: 7.5px; font-weight: 900; letter-spacing: .9px; }.emoji-command-metrics strong { display: block; margin-top: 7px; color: #a99aff; font-size: 21px; }
.emoji-bulk-toolbar { position: sticky; top: 80px; z-index: 12; display: grid; grid-template-columns: minmax(280px,1fr) auto auto; align-items: center; gap: 13px; margin-bottom: 15px; padding: 13px; border-color: rgba(93,153,224,.2); background: rgba(9,22,37,.92); box-shadow: 0 15px 44px rgba(0,0,0,.22); backdrop-filter: blur(20px); }
.emoji-search { min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid rgba(96,157,218,.18); border-radius: 11px; background: rgba(4,13,23,.52); }.emoji-search .icon { width: 16px; height: 16px; color: #708ba6; }.emoji-search input { width: 100%; border: 0; outline: 0; color: #e4effa; background: transparent; font-size: 10px; }.emoji-search input::placeholder { color: #51677e; }
.emoji-save-note { display: inline-flex; align-items: center; gap: 7px; color: #70869c; font-size: 8.5px; white-space: nowrap; }.emoji-save-note .icon { width: 14px; height: 14px; color: #54dab0; }
.emoji-bulk-grid { display: grid; gap: 17px; }.emoji-editor-panel { min-width: 0; overflow: hidden; padding: 0; border-color: rgba(94,151,210,.17); box-shadow: 0 21px 60px rgba(0,0,0,.14); }.emoji-editor-panel .panel-head { margin: 0; padding: 19px 21px; border-bottom: 1px solid rgba(104,144,183,.1); background: linear-gradient(100deg,rgba(24,55,86,.34),rgba(12,26,43,.1)); }.emoji-editor-panel .panel-title h3 { margin-top: 5px; }
.emoji-editor-table { min-width: 850px; }.emoji-editor-table th:nth-child(1) { width: 39%; }.emoji-editor-table th:nth-child(2) { width: 135px; }.emoji-editor-table th:nth-child(3) { width: 330px; }.emoji-editor-table tbody tr { transition: background .16s ease,transform .16s ease; }.emoji-editor-table tbody tr:hover { background: rgba(52,131,211,.055); }.emoji-editor-table tbody tr[hidden] { display: none; }
.emoji-identity { min-width: 270px; display: flex; align-items: center; gap: 12px; }.emoji-identity > span:last-child { min-width: 0; }.emoji-identity strong { display: block; overflow: hidden; color: #dce9f5; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }.emoji-identity small { display: block; margin-top: 5px; color: #60788f; font-size: 8px; }
.emoji-preview { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border: 1px solid rgba(124,105,238,.25); border-radius: 13px; color: #e6eaff; background: radial-gradient(circle at 30% 15%,rgba(137,116,255,.28),transparent 52%),#13243a; box-shadow: 0 9px 25px rgba(0,0,0,.17); }.emoji-preview b { font-size: 19px; line-height: 1; }.emoji-preview img { width: 100%; height: 100%; object-fit: cover; }
.emoji-fallback-input,.custom-emoji-input { min-height: 40px; border: 1px solid rgba(98,146,194,.18); border-radius: 10px; color: #dce9f5; background: rgba(4,13,23,.58); transition: border-color .16s ease,box-shadow .16s ease,background .16s ease; }.emoji-fallback-input { width: 92px; padding: 0 12px; font-size: 17px; text-align: center; }.custom-emoji-input { display: flex; align-items: center; overflow: hidden; }.custom-emoji-input:focus-within,.emoji-fallback-input:focus { border-color: rgba(119,104,255,.66); outline: none; background: rgba(24,34,66,.58); box-shadow: 0 0 0 3px rgba(104,87,255,.1); }.custom-emoji-input > span { align-self: stretch; display: grid; place-items: center; padding: 0 12px; border-right: 1px solid rgba(109,143,181,.13); color: #8d7eff; font-weight: 900; background: rgba(116,92,255,.08); }.custom-emoji-input input { width: 100%; min-width: 215px; padding: 0 12px; border: 0; outline: 0; color: #aebfff; background: transparent; font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size: 10px; letter-spacing: .25px; }.custom-emoji-input input::placeholder { color: #50647a; font-family: inherit; }
.system-emoji-panel { border-color: rgba(127,100,255,.23); }.system-emoji-panel .panel-head { background: radial-gradient(circle at 92% 0,rgba(126,86,255,.14),transparent 38%),linear-gradient(100deg,rgba(46,47,100,.3),rgba(12,26,43,.1)); }.emoji-fallback-lock { min-height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid rgba(103,135,169,.13); border-radius: 9px; color: #758ca3; background: rgba(36,54,74,.14); font-size: 9px; white-space: nowrap; }
@media (max-width: 1050px) { .emoji-command-hero { grid-template-columns: 1fr; }.emoji-bulk-toolbar { grid-template-columns: minmax(220px,1fr) auto; }.emoji-save-note { display: none; } }
@media (max-width: 650px) { .emoji-command-hero { padding: 21px; }.emoji-command-metrics { grid-template-columns: 1fr; }.emoji-bulk-toolbar { top: 66px; grid-template-columns: 1fr; }.emoji-bulk-toolbar .btn { width: 100%; }.emoji-editor-panel .panel-head { padding: 17px; } }

/* V24 · Operations intelligence, API observability & dedicated /login */
.login-route .ambient { opacity: .28; }
.login-aside { --login-main-x: 0px; --login-main-y: 0px; --login-float-x: 0px; --login-float-y: 0px; }
.login-scan-line { position: absolute; z-index: 0; left: 0; right: 0; top: -2px; height: 2px; pointer-events: none; background: linear-gradient(90deg,transparent,rgba(65,181,255,.8),rgba(66,228,205,.72),transparent); box-shadow: 0 0 22px rgba(56,170,255,.6); animation: loginScan 7s linear infinite; }
.login-orbit { position: absolute; z-index: 0; pointer-events: none; border: 1px solid rgba(65,155,246,.11); border-radius: 50%; box-shadow: inset 0 0 70px rgba(30,128,232,.025); }
.login-orbit::after { content: ""; position: absolute; width: 8px; height: 8px; top: 50%; left: -4px; border-radius: 50%; background: #45b8ff; box-shadow: 0 0 20px rgba(65,184,255,.9); }
.orbit-one { width: 520px; height: 520px; right: -180px; top: 12%; animation: orbitSpin 22s linear infinite; }
.orbit-two { width: 760px; height: 760px; right: -320px; top: -90px; border-color: rgba(74,220,202,.07); animation: orbitSpin 34s linear infinite reverse; }
.visual-main { transform: translate3d(var(--login-main-x),var(--login-main-y),0) rotateX(6deg) rotateY(-7deg) rotateZ(-2deg); transition: transform .18s ease-out; }
.visual-float { transform: translate3d(var(--login-float-x),var(--login-float-y),0) rotate(2deg); transition: transform .18s ease-out; }
.login-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.login-foot time { color: #607994; font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size: 10px; letter-spacing: 1.2px; }
.login-route-badge { display: inline-flex; min-height: 30px; align-items: center; gap: 8px; margin-bottom: 21px; padding: 0 10px; border: 1px solid rgba(65,157,247,.19); border-radius: 999px; color: #7690a9; background: rgba(23,94,159,.08); font-size: 8px; letter-spacing: .7px; }
.login-route-badge > span { width: 6px; height: 6px; border-radius: 50%; background: #3bddad; box-shadow: 0 0 12px rgba(59,221,173,.85); }
.login-route-badge code { color: #6fbdff; font-size: 9px; }
.login-route-badge b { padding-left: 8px; border-left: 1px solid rgba(125,157,187,.15); color: #71859a; font-size: 7.5px; }
.login-trust { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 14px; }
.login-trust span { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid rgba(116,150,185,.12); border-radius: 9px; color: #6f849a; background: rgba(18,36,57,.48); font-size: 8px; white-space: nowrap; }
.login-trust .icon { width: 12px; height: 12px; color: #58b6ff; }
.btn-login { position: relative; overflow: hidden; }
.btn-login::before { content: ""; position: absolute; inset: 0; transform: translateX(-115%); background: linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent); transition: transform .7s ease; }
.btn-login:hover::before { transform: translateX(115%); }
.btn-login.is-loading { pointer-events: none; opacity: .8; }
.btn-login.is-loading > i { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .75s linear infinite; }
.btn-login.is-loading > i svg { display: none; }
.login-shake { animation: loginShake .4s ease both; }
@keyframes loginScan { 0% { top: 0; opacity: 0; } 8%,92% { opacity: .68; } 100% { top: 100%; opacity: 0; } }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes loginShake { 20%,60% { transform: translateX(-8px); } 40%,80% { transform: translateX(8px); } }
@keyframes spin { to { transform: rotate(360deg); } }

.profit-quick { margin-bottom: 17px; padding: 19px 21px; overflow: hidden; border-color: rgba(50,207,161,.18); background: radial-gradient(circle at 96% 0,rgba(45,213,164,.1),transparent 33%),linear-gradient(120deg,rgba(14,34,53,.95),rgba(8,20,34,.95)); }
.profit-quick > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.profit-quick h3 { margin: 5px 0 0; color: #eaf6f2; font-size: 17px; }
.profit-quick-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; }
.profit-quick-grid > span { min-height: 66px; display: flex; flex-direction: column; justify-content: center; padding: 12px 14px; border: 1px solid rgba(108,146,178,.12); border-radius: 11px; background: rgba(3,13,23,.47); }
.profit-quick-grid small { color: #617d92; font-size: 7.5px; font-weight: 850; letter-spacing: .8px; }
.profit-quick-grid strong { margin-top: 7px; color: #cbdbe8; font-size: 15px; }
.profit-quick-grid .profit-net { border-color: rgba(47,213,160,.23); background: linear-gradient(130deg,rgba(28,159,117,.15),rgba(13,55,47,.12)); }
.profit-quick-grid .profit-net small,.profit-quick-grid .profit-net strong { color: #58dfb0; }
.profit-range { display: flex; flex-wrap: wrap; gap: 7px; }
.profit-hero { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 260px; align-items: center; gap: 28px; margin-bottom: 16px; padding: 28px; overflow: hidden; border-color: rgba(43,213,159,.24); background: radial-gradient(circle at 5% 15%,rgba(31,201,151,.18),transparent 30%),radial-gradient(circle at 92% 10%,rgba(42,141,255,.16),transparent 32%),linear-gradient(135deg,#102c35,#0a1829 72%); box-shadow: 0 24px 70px rgba(0,0,0,.2); }
.profit-hero::after { content: "NET"; position: absolute; right: 25px; bottom: -37px; color: rgba(83,227,181,.035); font-size: 128px; font-weight: 950; letter-spacing: -10px; pointer-events: none; }
.profit-hero h2 { margin: 10px 0 8px; color: #65e3b7; font-size: clamp(32px,4vw,52px); letter-spacing: -2px; }
.profit-hero p { max-width: 720px; margin: 0; color: #7895a0; font-size: 10.5px; line-height: 1.7; }
.profit-margin { position: relative; z-index: 1; min-width: 0; padding: 18px; border: 1px solid rgba(79,207,169,.19); border-radius: 15px; background: rgba(5,23,29,.62); }
.profit-margin span { display: block; color: #6c968c; font-size: 8px; font-weight: 850; letter-spacing: 1px; }
.profit-margin strong { display: block; margin: 7px 0 13px; color: #e6fff7; font-size: 27px; }
.profit-margin i { display: block; height: 7px; overflow: hidden; border-radius: 10px; background: rgba(101,132,139,.16); }
.profit-margin i::before { content: ""; display: block; width: var(--margin); height: 100%; border-radius: inherit; background: linear-gradient(90deg,#20c58f,#45dcce); box-shadow: 0 0 14px rgba(50,217,177,.45); }
.profit-stat-grid,.api-log-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin-bottom: 17px; }
.profit-stat-grid .stat-card,.api-log-metrics .stat-card { min-height: 126px; }
.profit-chart-panel { margin-bottom: 17px; }
.profit-chart-panel .chart-wrap { min-height: 250px; padding: 9px 17px 18px; }
.profit-chart { width: 100%; height: 230px; overflow: visible; }
.profit-revenue-line,.profit-net-line { fill: none; vector-effect: non-scaling-stroke; stroke-width: 2.4; }
.profit-revenue-line { stroke: #348fff; filter: drop-shadow(0 0 7px rgba(52,143,255,.35)); }
.profit-net-line { stroke: #42dda9; filter: drop-shadow(0 0 7px rgba(66,221,169,.38)); }
.profit-net-dot { fill: #6aebbd; stroke: #0b1c2b; stroke-width: 2px; vector-effect: non-scaling-stroke; }
.legend { width: 7px; height: 7px; display: inline-block; margin: 0 3px 0 10px; border-radius: 50%; }
.legend.revenue { background: #348fff; box-shadow: 0 0 8px rgba(52,143,255,.5); }.legend.net { background: #42dda9; box-shadow: 0 0 8px rgba(66,221,169,.5); }
.profit-rank { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid rgba(62,203,157,.2); border-radius: 8px; color: #5cddb2; background: rgba(38,183,137,.09); font-weight: 850; }
.profit-positive { color: #55dcae; font-weight: 800; }

.api-log-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }
.api-log-table { border-color: rgba(72,155,230,.17); }
.api-log-table table { min-width: 1080px; }
.table-subline,.refund-line { display: block; margin-top: 5px; color: #61778d; font-size: 8px; }
.refund-line { color: #a58aff; font-weight: 750; }
.api-action { display: inline-flex; min-height: 25px; align-items: center; padding: 0 8px; border: 1px solid rgba(77,150,222,.17); border-radius: 7px; color: #72b5ef; background: rgba(39,126,211,.08); font-size: 7.5px; font-weight: 850; letter-spacing: .7px; }
.api-action-purchase { color: #66dbb1; border-color: rgba(51,204,154,.2); background: rgba(39,179,135,.08); }
.api-action-refund { color: #ae96ff; border-color: rgba(145,119,245,.2); background: rgba(127,99,230,.08); }
.log-detail { display: block; max-width: 290px; overflow: hidden; color: #8599ad; font-size: 9px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.status-warning { color: #ffc85c; background: var(--warning-soft); }.status-refunded { color: #b39cff; background: rgba(140,124,255,.13); }.status-error { color: #ff8190; background: var(--danger-soft); }

@media (max-width: 1050px) {
  .profit-quick-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .profit-hero { grid-template-columns: 1fr; }
  .profit-margin { max-width: 420px; }
  .profit-stat-grid,.api-log-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
  .login-route-badge { margin-bottom: 16px; }
  .login-trust { grid-template-columns: 1fr; }
  .login-trust span { justify-content: flex-start; padding: 0 11px; }
  .profit-quick > header { align-items: flex-start; flex-direction: column; }
  .profit-quick-grid,.profit-stat-grid,.api-log-metrics { grid-template-columns: 1fr; }
  .profit-hero { padding: 21px; }
  .profit-range { width: 100%; }.profit-range .btn { flex: 1 1 40%; }
}

/* Login: show the complete horizontal logo only (no boxed icon/text beside it). */
.login-full-logo { display:flex; align-items:center; width:min(100%, 300px); min-height:54px; }
.login-full-logo > img { display:block; width:auto; max-width:100%; height:auto; max-height:72px; object-fit:contain; object-position:left center; border:0; border-radius:0; background:transparent; box-shadow:none; }
@media (max-width: 880px) {
  .mobile-brand.login-full-logo { display:flex; width:min(100%, 260px); margin-bottom:38px; }
  .mobile-brand.login-full-logo > img { max-height:64px; }
}

/* Telegram broadcast center */
.btn-telegram-broadcast { border-color: rgba(68,174,255,.30); color: #9bd8ff; background: linear-gradient(135deg,rgba(30,136,229,.16),rgba(37,196,225,.10)); box-shadow: inset 0 0 0 1px rgba(95,191,255,.03),0 8px 24px rgba(10,116,207,.08); }
.btn-telegram-broadcast:hover { color: #e9f8ff; border-color: rgba(82,188,255,.5); background: linear-gradient(135deg,rgba(31,147,244,.24),rgba(39,201,223,.14)); transform: translateY(-1px); }
.btn-telegram-broadcast .icon { width: 16px; height: 16px; }
.notification-btn:hover { color: #6fc7ff; border-color: rgba(64,169,255,.32); box-shadow: 0 0 0 4px rgba(37,145,236,.06); }
.notification-btn:hover i { background: #43d8b0; box-shadow: 0 0 10px rgba(67,216,176,.55); }

.modal-card.broadcast-modal { width: min(850px,100%); border-color: rgba(65,171,255,.22); background: radial-gradient(circle at 96% 0,rgba(35,153,255,.09),transparent 27%),linear-gradient(145deg,#101f31,#091522); box-shadow: 0 42px 120px rgba(0,0,0,.58),0 0 0 1px rgba(71,165,239,.04); }
.broadcast-modal > header { background: linear-gradient(90deg,rgba(24,126,215,.08),transparent 62%); }
.broadcast-modal .modal-kicker { color: #59baff; }
.broadcast-modal footer { background: linear-gradient(180deg,rgba(4,10,18,.10),rgba(4,10,18,.34)); }
.broadcast-modal #modalSubmit { min-width: 154px; background: linear-gradient(135deg,#1596ee,#44b9f6); box-shadow: 0 10px 30px rgba(24,143,227,.22); }
.broadcast-modal #modalSubmit .icon { width: 16px; height: 16px; }
.broadcast-modal.is-broadcasting [data-action="close-modal"] { pointer-events: none; opacity: .35; }

.broadcast-shell { display: grid; gap: 15px; }
.broadcast-info-card { position: relative; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 15px 16px; overflow: hidden; border: 1px solid rgba(54,171,255,.30); border-radius: 14px; background: linear-gradient(135deg,rgba(29,145,231,.12),rgba(27,105,181,.07)); }
.broadcast-info-card::after { content:""; position:absolute; width:180px; height:180px; right:-95px; top:-110px; border-radius:50%; background:rgba(51,178,255,.08); filter:blur(5px); }
.broadcast-info-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(72,187,255,.24); border-radius: 11px; color: #72c7ff; background: rgba(34,151,230,.12); box-shadow: 0 0 20px rgba(35,157,239,.08); }
.broadcast-info-icon .icon { width: 17px; height: 17px; }
.broadcast-info-card strong { display:block; margin-bottom:4px; color:#d8edfb; font-size:12px; }
.broadcast-info-card p { margin:0; color:#78a0bb; font-size:10px; line-height:1.6; }
.broadcast-info-card p b { color:#6dc5ff; }
.broadcast-recipient-pill { position:relative; z-index:1; min-height:32px; display:inline-flex; align-items:center; gap:7px; padding:0 10px; border:1px solid rgba(70,185,255,.21); border-radius:999px; color:#8fd3ff; background:rgba(32,126,194,.12); font-size:9px; font-weight:800; white-space:nowrap; }
.broadcast-recipient-pill .icon { width:13px; height:13px; }
.broadcast-config-warning { display:flex; align-items:center; gap:9px; padding:11px 13px; border:1px solid rgba(255,183,65,.28); border-radius:11px; color:#d9a955; background:rgba(255,172,45,.07); font-size:10px; }
.broadcast-config-warning .icon { width:15px; height:15px; flex:0 0 auto; }

.broadcast-editor-card { overflow:hidden; border:1px solid rgba(113,151,187,.16); border-radius:15px; background:rgba(5,14,24,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.015); }
.broadcast-editor-head { min-height:49px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 14px; border-bottom:1px solid rgba(104,142,180,.12); background:rgba(15,32,49,.45); }
.broadcast-editor-head > div { display:flex; flex-direction:column; gap:3px; }
.broadcast-editor-head label { color:#b6c8d9; font-size:10px; font-weight:850; letter-spacing:.55px; }
.broadcast-editor-head small { color:#61798f; font-size:8.5px; }
#telegramBroadcastCount { color:#668096; font-size:9px; font-variant-numeric:tabular-nums; }
.broadcast-format-toolbar { display:flex; flex-wrap:wrap; gap:6px; padding:9px 12px; border-bottom:1px solid rgba(104,142,180,.10); background:rgba(5,15,26,.32); }
.broadcast-format-toolbar button { min-width:31px; height:29px; display:inline-flex; align-items:center; justify-content:center; gap:5px; padding:0 8px; border:1px solid rgba(96,137,173,.15); border-radius:8px; color:#839bb0; background:rgba(25,44,63,.52); font-family:inherit; font-size:9px; cursor:pointer; transition:.16s ease; }
.broadcast-format-toolbar button:hover { color:#bce6ff; border-color:rgba(60,173,255,.34); background:rgba(36,132,204,.12); transform:translateY(-1px); }
.broadcast-format-toolbar button .icon { width:12px; height:12px; }
#telegramBroadcastMessage { width:100%; min-height:230px; resize:vertical; border:0; border-radius:0; padding:16px 17px; color:#dce9f4; background:rgba(3,11,19,.38); box-shadow:none; line-height:1.62; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace; font-size:12px; }
#telegramBroadcastMessage:focus { outline:0; background:rgba(4,13,23,.55); box-shadow:inset 0 0 0 1px rgba(50,159,239,.18); }
#telegramBroadcastMessage::placeholder { color:#52687a; }
.broadcast-html-help { min-height:38px; display:flex; align-items:center; flex-wrap:wrap; gap:6px; padding:8px 12px; border-top:1px solid rgba(104,142,180,.10); color:#647d92; font-size:8.5px; }
.broadcast-html-help > span { display:inline-flex; align-items:center; gap:5px; margin-right:2px; }
.broadcast-html-help .icon { width:12px; height:12px; }
.broadcast-html-help code { padding:3px 5px; border:1px solid rgba(99,139,174,.12); border-radius:5px; color:#7fa9c8; background:rgba(19,37,54,.52); font-size:8px; }

.broadcast-warning-card { display:flex; align-items:flex-start; gap:11px; padding:13px 14px; border:1px solid rgba(255,183,65,.30); border-radius:12px; color:#dba94c; background:linear-gradient(135deg,rgba(255,169,39,.09),rgba(255,169,39,.045)); }
.broadcast-warning-card > .icon { width:17px; height:17px; flex:0 0 auto; margin-top:1px; }
.broadcast-warning-card strong { display:block; margin-bottom:3px; color:#e8bd68; font-size:10px; }
.broadcast-warning-card p { margin:0; color:#9b8157; font-size:9px; line-height:1.55; }
.broadcast-warning-card p b { color:#dbae5b; }

.broadcast-progress-card { padding:14px; border:1px solid rgba(68,205,158,.21); border-radius:13px; background:linear-gradient(135deg,rgba(38,181,137,.08),rgba(20,83,71,.06)); }
.broadcast-progress-head { display:flex; align-items:center; justify-content:space-between; gap:12px; color:#8db1a4; font-size:9px; }
.broadcast-progress-head > span { display:flex; align-items:center; gap:7px; }
.broadcast-progress-head .icon { width:14px; height:14px; color:#50dcae; }
.broadcast-progress-head b,.broadcast-progress-head > strong { color:#76dfba; }
.broadcast-progress-track { height:7px; margin-top:10px; overflow:hidden; border-radius:999px; background:rgba(88,127,119,.13); }
.broadcast-progress-track i { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,#2bcf9b,#46cfee); box-shadow:0 0 16px rgba(49,211,170,.40); transition:width .32s ease; }
.broadcast-progress-stats { display:flex; flex-wrap:wrap; gap:12px 18px; margin-top:10px; color:#68867c; font-size:8.5px; }
.broadcast-progress-stats b { color:#a4c8bb; }

.toast.warning { border-color:rgba(255,184,67,.25); }

@media (max-width: 760px) {
  .broadcast-info-card { grid-template-columns:auto 1fr; }
  .broadcast-recipient-pill { grid-column:1 / -1; width:max-content; margin-left:50px; }
  .heading-actions .btn-telegram-broadcast { min-width:40px; padding:0 10px; }
  .heading-actions .btn-telegram-broadcast .icon { margin:0; }
}
@media (max-width: 560px) {
  .broadcast-info-card { padding:13px; }
  .broadcast-info-icon { width:34px; height:34px; }
  .broadcast-recipient-pill { margin-left:0; }
  #telegramBroadcastMessage { min-height:210px; padding:14px; font-size:11px; }
  .broadcast-progress-stats { display:grid; grid-template-columns:1fr 1fr; }
  .broadcast-progress-stats span:first-child { grid-column:1 / -1; }
  .heading-actions .btn-telegram-broadcast { width:38px; font-size:0; }
}

/* =========================================================
   TELEGRAM BROADCAST CENTER /thongbaotele
   ========================================================= */
.telegram-hero { position:relative; min-height:210px; display:grid; grid-template-columns:minmax(0,1.45fr) minmax(220px,.55fr) minmax(190px,.4fr); gap:28px; align-items:center; margin-bottom:17px; padding:28px 30px; overflow:hidden; border:1px solid rgba(49,160,255,.19); border-radius:22px; background:radial-gradient(circle at 73% 48%,rgba(33,157,255,.17),transparent 24%),radial-gradient(circle at 96% 0,rgba(46,213,207,.09),transparent 30%),linear-gradient(135deg,rgba(15,32,53,.96),rgba(7,18,31,.96)); box-shadow:0 26px 70px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.025); }
.telegram-hero::before { content:""; position:absolute; inset:0; pointer-events:none; opacity:.12; background-image:linear-gradient(rgba(89,177,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(89,177,255,.06) 1px,transparent 1px); background-size:34px 34px; mask-image:linear-gradient(90deg,#000,transparent 78%); }
.telegram-hero > * { position:relative; z-index:1; }
.telegram-hero-kicker { display:inline-flex; align-items:center; gap:9px; color:#61bcff; font-size:9px; font-weight:850; letter-spacing:1.6px; }
.telegram-hero-kicker i { width:7px; height:7px; border-radius:50%; background:#31d39f; box-shadow:0 0 0 5px rgba(49,211,159,.08),0 0 16px rgba(49,211,159,.7); }
.telegram-hero h2 { margin:13px 0 10px; font-size:30px; line-height:1.08; letter-spacing:-1.5px; }
.telegram-hero h2 em { font-style:normal; color:transparent; background:linear-gradient(90deg,#4fb5ff,#55dfd0); background-clip:text; -webkit-background-clip:text; }
.telegram-hero p { max-width:640px; margin:0; color:#7189a2; font-size:11px; line-height:1.7; }
.telegram-hero-orb { width:174px; height:174px; margin:auto; display:flex; flex-direction:column; align-items:center; justify-content:center; position:relative; border:1px solid rgba(71,183,255,.19); border-radius:50%; color:#6cc4ff; background:radial-gradient(circle,rgba(31,148,237,.13),rgba(6,18,31,.4) 64%,transparent 66%); box-shadow:inset 0 0 40px rgba(37,150,232,.08),0 0 60px rgba(24,123,203,.06); }
.telegram-hero-orb::before,.telegram-hero-orb::after { content:""; position:absolute; border-radius:50%; border:1px dashed rgba(75,178,255,.15); }
.telegram-hero-orb::before { inset:-13px; animation:telegramSpin 20s linear infinite; }
.telegram-hero-orb::after { inset:14px; border-style:solid; border-color:rgba(64,211,192,.08); }
.telegram-hero-orb > span { width:52px; height:52px; display:grid; place-items:center; margin-bottom:9px; border:1px solid rgba(87,192,255,.24); border-radius:18px; background:rgba(35,145,226,.13); box-shadow:0 0 28px rgba(45,163,239,.12); }
.telegram-hero-orb .icon { width:25px; height:25px; }
.telegram-hero-orb b { color:#d9efff; font-size:10px; letter-spacing:1.1px; }
.telegram-hero-orb small { margin-top:4px; color:#5f8098; font-size:8px; }
.telegram-hero-meta { display:grid; gap:10px; }
.telegram-hero-meta span { min-height:70px; display:flex; flex-direction:column; justify-content:center; padding:12px 15px; border:1px solid rgba(103,153,195,.13); border-radius:14px; background:rgba(7,18,30,.52); }
.telegram-hero-meta small { color:#5f7990; font-size:8px; letter-spacing:.9px; }
.telegram-hero-meta strong { margin-top:5px; color:#d7eaff; font-size:22px; font-variant-numeric:tabular-nums; }
@keyframes telegramSpin { to { transform:rotate(360deg); } }

.telegram-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; margin-bottom:17px; }
.telegram-stat-grid article { min-height:112px; display:flex; align-items:center; gap:14px; padding:17px; border:1px solid var(--border); border-radius:17px; background:linear-gradient(145deg,rgba(17,34,53,.83),rgba(8,20,33,.76)); box-shadow:inset 0 1px 0 rgba(255,255,255,.018); }
.telegram-stat-icon { width:42px; height:42px; flex:0 0 auto; display:grid; place-items:center; border-radius:13px; }
.telegram-stat-icon .icon { width:18px; height:18px; }
.telegram-stat-icon.blue { color:#66c1ff; background:rgba(41,151,231,.12); border:1px solid rgba(66,173,247,.18); }
.telegram-stat-icon.green { color:#4bdcad; background:rgba(42,199,148,.1); border:1px solid rgba(52,213,162,.16); }
.telegram-stat-icon.red { color:#ff7f8e; background:rgba(228,70,91,.10); border:1px solid rgba(255,91,112,.16); }
.telegram-stat-icon.violet { color:#a89cff; background:rgba(127,103,235,.11); border:1px solid rgba(157,137,255,.16); }
.telegram-stat-grid article > div { min-width:0; }
.telegram-stat-grid small { color:#6f8398; font-size:7.8px; font-weight:800; letter-spacing:.9px; }
.telegram-stat-grid strong { display:block; margin-top:4px; color:#edf7ff; font-size:23px; letter-spacing:-.6px; font-variant-numeric:tabular-nums; }
.telegram-stat-grid p { margin:3px 0 0; color:#536c83; font-size:8.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.telegram-live-panel { margin-bottom:17px; background:radial-gradient(circle at 90% 0,rgba(40,183,153,.05),transparent 30%),var(--surface); }
.telegram-empty-live { min-height:92px; display:flex; align-items:center; justify-content:center; gap:12px; color:#667d92; }
.telegram-empty-live > span { width:37px; height:37px; display:grid; place-items:center; border-radius:11px; color:#58b7ed; background:rgba(36,145,216,.09); }
.telegram-empty-live strong,.telegram-empty-live small { display:block; }
.telegram-empty-live strong { color:#a9bdce; font-size:10px; }
.telegram-empty-live small { margin-top:3px; color:#5d7488; font-size:8.5px; }
.telegram-live-job { padding:2px 2px 5px; }
.telegram-live-head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.telegram-live-head > div { min-width:0; }
.telegram-live-head > div > span { display:block; margin-bottom:7px; }
.telegram-live-head strong { display:block; max-width:760px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#c9dfef; font-size:11px; }
.telegram-live-head small { display:block; margin-top:4px; color:#617c91; font-size:8.5px; }
.telegram-live-head > b { color:#55d8b1; font-size:20px; font-variant-numeric:tabular-nums; }
.telegram-live-track { height:8px; overflow:hidden; margin-top:13px; border-radius:999px; background:rgba(90,130,150,.12); }
.telegram-live-track i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#2fd19c,#44b8ef); box-shadow:0 0 18px rgba(47,209,156,.32); transition:width .3s ease; }
.telegram-live-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:9px; margin-top:12px; }
.telegram-live-stats span { padding:10px 11px; border:1px solid rgba(104,147,178,.10); border-radius:10px; background:rgba(5,14,23,.36); }
.telegram-live-stats small { display:block; color:#577086; font-size:7.2px; letter-spacing:.7px; }
.telegram-live-stats strong { display:block; margin-top:4px; color:#bdd1df; font-size:10px; }
.telegram-live-error { display:flex; gap:8px; align-items:flex-start; margin-top:10px; padding:9px 10px; border:1px solid rgba(255,102,119,.16); border-radius:9px; color:#d6818b; background:rgba(205,58,75,.06); font-size:8.5px; line-height:1.5; }
.telegram-live-error .icon { width:13px; height:13px; flex:0 0 auto; }

.telegram-main-grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(330px,.65fr); gap:17px; margin-bottom:17px; align-items:start; }
.telegram-compose-card { padding:0; overflow:hidden; }
.telegram-compose-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:20px 21px 17px; border-bottom:1px solid rgba(124,157,190,.10); background:linear-gradient(90deg,rgba(24,117,192,.05),transparent 58%); }
.telegram-compose-head h3 { margin:7px 0 4px; font-size:15px; }
.telegram-compose-head p { margin:0; color:#627b91; font-size:9px; }
.telegram-config-pill { min-height:29px; display:inline-flex; align-items:center; gap:6px; padding:0 9px; border-radius:999px; font-size:8px; font-weight:800; white-space:nowrap; }
.telegram-config-pill .icon { width:12px; height:12px; }
.telegram-config-pill.ok { color:#61d9ad; border:1px solid rgba(54,207,157,.16); background:rgba(40,186,142,.08); }
.telegram-config-pill.warn { color:#e1b35e; border:1px solid rgba(246,183,70,.18); background:rgba(226,163,54,.07); }
.telegram-compose-section { padding:18px 21px; border-bottom:1px solid rgba(124,157,190,.09); }
.telegram-section-title { display:flex; align-items:center; gap:10px; margin-bottom:13px; }
.telegram-section-title > span { width:25px; height:25px; display:grid; place-items:center; border:1px solid rgba(67,171,245,.16); border-radius:8px; color:#62baf4; background:rgba(32,135,208,.08); font-size:8px; font-weight:850; }
.telegram-section-title strong,.telegram-section-title small { display:block; }
.telegram-section-title strong { color:#b8ccdc; font-size:10px; }
.telegram-section-title small { margin-top:2px; color:#5e7487; font-size:8px; }
.telegram-target-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }
.telegram-target-card { min-height:74px; position:relative; display:flex; align-items:center; gap:10px; padding:11px 12px; text-align:left; border:1px solid rgba(101,143,178,.13); border-radius:12px; color:#6e879d; background:rgba(6,16,27,.34); cursor:pointer; transition:.17s ease; }
.telegram-target-card:hover { border-color:rgba(57,166,240,.25); background:rgba(25,112,173,.07); }
.telegram-target-card.active { border-color:rgba(55,178,255,.34); color:#78c8fb; background:linear-gradient(135deg,rgba(36,144,218,.13),rgba(31,104,167,.07)); box-shadow:inset 0 0 0 1px rgba(78,184,255,.035); }
.telegram-target-card > span { width:34px; height:34px; display:grid; place-items:center; flex:0 0 auto; border:1px solid rgba(104,149,185,.11); border-radius:10px; background:rgba(22,43,62,.42); }
.telegram-target-card > span .icon { width:15px; height:15px; }
.telegram-target-card strong,.telegram-target-card small { display:block; }
.telegram-target-card strong { color:#a7bbcc; font-size:9px; }
.telegram-target-card small { margin-top:3px; color:#5c7388; font-size:7.5px; }
.telegram-target-card.active strong { color:#d2eaff; }
.telegram-target-card > i { width:7px; height:7px; position:absolute; right:9px; top:9px; border:1px solid #435b72; border-radius:50%; }
.telegram-target-card.active > i { border-color:#4dbbff; background:#4dbbff; box-shadow:0 0 9px rgba(77,187,255,.55); }
.telegram-target-ids { margin-top:10px; padding:11px; border:1px dashed rgba(67,164,232,.18); border-radius:11px; background:rgba(21,92,143,.04); }
.telegram-target-ids label { display:block; margin-bottom:7px; color:#667f94; font-size:7.5px; letter-spacing:.8px; }
.telegram-target-ids textarea { min-height:72px; font-size:10px; }

.telegram-media-box { min-height:76px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; padding:12px; border:1px dashed rgba(94,145,185,.20); border-radius:13px; background:rgba(5,15,25,.33); transition:.18s ease; }
.telegram-media-box.has-file { border-style:solid; border-color:rgba(57,193,159,.18); background:rgba(32,152,119,.045); }
.telegram-media-icon { width:42px; height:42px; display:grid; place-items:center; color:#68bcef; border:1px solid rgba(76,162,220,.14); border-radius:12px; background:rgba(37,117,170,.08); }
.telegram-media-box.has-file .telegram-media-icon { color:#5dd7ad; border-color:rgba(77,207,165,.14); background:rgba(40,177,135,.08); }
.telegram-media-icon .icon { width:18px; height:18px; }
#broadcastMediaInfo { min-width:0; }
#broadcastMediaInfo strong,#broadcastMediaInfo small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#broadcastMediaInfo strong { color:#b8cad8; font-size:9.5px; }
#broadcastMediaInfo small { margin-top:3px; color:#5f7489; font-size:8px; }
.telegram-media-actions { display:flex; gap:7px; }
.telegram-upload-progress { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:9px; margin-top:9px; color:#648095; font-size:8px; }
.telegram-upload-progress > div { height:5px; overflow:hidden; border-radius:999px; background:rgba(95,134,159,.12); }
.telegram-upload-progress i { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,#32bdff,#46d4ae); transition:width .2s ease; }
.telegram-upload-progress.is-success { color:#56cfa7; }
.telegram-upload-progress.is-error { color:#df7985; }
.telegram-page-editor #telegramBroadcastMessage { min-height:200px; }

.telegram-schedule-section { display:grid; grid-template-columns:minmax(0,1fr) minmax(220px,.45fr); gap:12px 16px; align-items:end; }
.telegram-schedule-section .telegram-section-title { grid-column:1 / -1; margin-bottom:0; }
.telegram-schedule-toggle { min-height:59px; display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px solid rgba(103,145,176,.13); border-radius:11px; background:rgba(5,15,25,.3); cursor:pointer; }
.telegram-schedule-toggle input { display:none; }
.telegram-schedule-toggle > span { width:34px; height:19px; position:relative; flex:0 0 auto; border-radius:999px; background:#1a2c3f; border:1px solid rgba(120,154,184,.14); transition:.17s ease; }
.telegram-schedule-toggle > span::after { content:""; position:absolute; width:13px; height:13px; left:2px; top:2px; border-radius:50%; background:#697d91; transition:.17s ease; }
.telegram-schedule-toggle input:checked + span { background:rgba(25,145,219,.25); border-color:rgba(55,174,240,.28); }
.telegram-schedule-toggle input:checked + span::after { left:17px; background:#50bdff; box-shadow:0 0 10px rgba(80,189,255,.5); }
.telegram-schedule-toggle strong,.telegram-schedule-toggle small { display:block; }
.telegram-schedule-toggle strong { color:#a9bdce; font-size:9px; }
.telegram-schedule-toggle small { margin-top:2px; color:#5b7287; font-size:7.6px; }
.telegram-schedule-field > span { display:block; margin-bottom:6px; color:#637d92; font-size:7.5px; letter-spacing:.7px; }
.telegram-schedule-field input { min-height:40px; font-size:9px; }
.telegram-schedule-field.is-disabled { opacity:.42; }
.telegram-compose-footer { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:16px 21px; background:linear-gradient(180deg,rgba(7,17,27,.1),rgba(5,14,23,.36)); }
.telegram-audience-preview { display:flex; align-items:center; gap:10px; }
.telegram-audience-preview > span { width:34px; height:34px; display:grid; place-items:center; color:#68bcf1; border-radius:10px; background:rgba(40,136,199,.08); }
.telegram-audience-preview .icon { width:15px; height:15px; }
.telegram-audience-preview small,.telegram-audience-preview strong { display:block; }
.telegram-audience-preview small { color:#587185; font-size:7px; letter-spacing:.6px; }
.telegram-audience-preview strong { margin-top:2px; color:#d1e7f6; font-size:15px; }
.telegram-send-button { min-width:165px; background:linear-gradient(135deg,#1596ee,#37b5f2); box-shadow:0 10px 28px rgba(24,143,227,.19); }
.telegram-send-note { display:flex; align-items:center; gap:7px; padding:10px 21px 13px; color:#597388; font-size:7.5px; }
.telegram-send-note .icon { width:12px; height:12px; color:#49c9a3; }

.telegram-bot-console { padding:0; overflow:hidden; position:sticky; top:88px; }
.telegram-console-head { min-height:73px; display:flex; align-items:center; gap:11px; padding:14px 15px; border-bottom:1px solid rgba(107,148,180,.10); }
.telegram-console-icon { width:38px; height:38px; display:grid; place-items:center; color:#55baff; border:1px solid rgba(64,164,233,.17); border-radius:11px; background:rgba(27,122,190,.11); }
.telegram-console-icon .icon { width:17px; height:17px; }
.telegram-console-head h3 { margin:0; color:#d6e3ee; font-size:12px; }
.telegram-console-head p { margin:3px 0 0; color:#607488; font-size:8px; }
.console-live,.console-offline { margin-left:auto; padding:5px 8px; border-radius:999px; font-size:7px; font-weight:850; letter-spacing:.7px; }
.console-live { display:flex; align-items:center; gap:5px; color:#56d7aa; border:1px solid rgba(52,207,157,.16); background:rgba(42,188,143,.07); }
.console-live i { width:5px; height:5px; border-radius:50%; background:#45d5a3; box-shadow:0 0 8px rgba(69,213,163,.7); }
.console-offline { color:#d57883; border:1px solid rgba(229,88,105,.15); background:rgba(209,60,78,.06); }
.telegram-console-terminal { height:425px; overflow:auto; padding:12px 13px; background:#030b13; border-bottom:1px solid rgba(98,137,166,.10); font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; }
.telegram-console-line { display:grid; grid-template-columns:56px minmax(0,1fr); gap:8px; padding:2px 0; color:#6f879a; font-size:7.4px; line-height:1.5; }
.telegram-console-line time { color:#365168; font-variant-numeric:tabular-nums; }
.telegram-console-line span { overflow-wrap:anywhere; }
.telegram-console-line.error span { color:#b96873; }
.telegram-console-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:13px; }

.telegram-history-panel { overflow:hidden; padding:0; }
.telegram-history-panel > .panel-head { padding:17px 18px; }
.broadcast-history-total { min-height:28px; display:inline-flex; align-items:center; padding:0 9px; border:1px solid rgba(94,142,179,.13); border-radius:999px; color:#66849a; background:rgba(67,111,147,.05); font-size:8px; }
.telegram-history-table td { vertical-align:middle; }
.broadcast-history-main { min-width:230px; max-width:430px; }
.broadcast-history-main strong { display:block; color:#b9cddd; font-size:9.5px; font-weight:650; }
.broadcast-history-main small { display:flex; align-items:center; gap:5px; margin-top:5px; color:#5d7488; font-size:7.5px; }
.broadcast-history-main small .icon { width:11px; height:11px; }
.broadcast-counts b { color:#65d6ac; font-size:10px; }
.broadcast-counts span { color:#657d91; font-size:8px; }
.broadcast-counts small { display:block; margin-top:2px; color:#d2727e; font-size:7.3px; }
.broadcast-status { display:inline-flex; align-items:center; gap:6px; min-height:25px; padding:0 8px; border:1px solid rgba(106,143,171,.14); border-radius:999px; color:#7c95aa; background:rgba(77,104,130,.06); font-size:7px; font-weight:850; letter-spacing:.45px; white-space:nowrap; }
.broadcast-status i { width:5px; height:5px; border-radius:50%; background:currentColor; box-shadow:0 0 7px currentColor; }
.broadcast-status-running,.broadcast-status-queued { color:#54c7ff; border-color:rgba(70,178,239,.18); background:rgba(43,137,196,.07); }
.broadcast-status-completed { color:#58d3a7; border-color:rgba(63,200,157,.17); background:rgba(43,173,133,.07); }
.broadcast-status-scheduled { color:#ab9cff; border-color:rgba(153,130,245,.17); background:rgba(123,97,217,.07); }
.broadcast-status-failed { color:#ef7b89; border-color:rgba(235,99,116,.16); background:rgba(207,70,87,.07); }
.broadcast-status-cancelled { color:#8b99a6; }
.icon-action.danger { color:#d97784; }

.broadcast-detail-grid { display:grid; gap:12px; }
.broadcast-detail-stats { display:grid; grid-template-columns:repeat(5,1fr); gap:8px; }
.broadcast-detail-stats > span { padding:10px; border:1px solid rgba(104,143,176,.12); border-radius:10px; background:rgba(6,16,27,.35); }
.broadcast-detail-stats small { display:block; margin-bottom:5px; color:#60778b; font-size:7px; }
.broadcast-detail-stats strong { color:#c9dde9; }
.broadcast-detail-card { padding:12px 13px; border:1px solid rgba(104,143,176,.11); border-radius:11px; background:rgba(5,15,25,.33); }
.broadcast-detail-card > label { display:block; margin-bottom:8px; color:#668096; font-size:7px; letter-spacing:.8px; }
.broadcast-detail-card > div:not(.broadcast-error-list) { color:#b7cbd8; font-size:9px; line-height:1.65; }
.broadcast-detail-card > small { display:flex; align-items:center; gap:5px; margin-top:8px; color:#678098; font-size:7.5px; }
.broadcast-detail-card > small .icon { width:11px; height:11px; }
.broadcast-detail-card p { margin:0; color:#7890a3; font-size:8.5px; line-height:1.65; }
.broadcast-error-list { display:grid; gap:7px; max-height:250px; overflow:auto; }
.broadcast-error-list > div { display:grid; grid-template-columns:110px minmax(0,1fr) auto; gap:8px; align-items:start; padding:8px; border-radius:8px; background:rgba(181,57,75,.045); }
.broadcast-error-list b { color:#db7d88; font-size:8px; }
.broadcast-error-list span { color:#8c737c; font-size:8px; line-height:1.45; }
.broadcast-error-list time { color:#5b6f80; font-size:7px; }

@media (max-width: 1180px) {
  .telegram-hero { grid-template-columns:minmax(0,1fr) 180px; }
  .telegram-hero-meta { display:none; }
  .telegram-stat-grid { grid-template-columns:repeat(2,1fr); }
  .telegram-main-grid { grid-template-columns:1fr; }
  .telegram-bot-console { position:static; }
  .telegram-console-terminal { height:310px; }
}
@media (max-width: 760px) {
  .telegram-hero { grid-template-columns:1fr; padding:22px; }
  .telegram-hero-orb { width:145px; height:145px; }
  .telegram-stat-grid { grid-template-columns:1fr 1fr; }
  .telegram-target-grid { grid-template-columns:1fr; }
  .telegram-schedule-section { grid-template-columns:1fr; }
  .telegram-schedule-section .telegram-section-title { grid-column:auto; }
  .telegram-compose-footer { align-items:stretch; flex-direction:column; }
  .telegram-send-button { width:100%; }
  .telegram-live-stats { grid-template-columns:1fr 1fr; }
  .telegram-media-box { grid-template-columns:auto 1fr; }
  .telegram-media-actions { grid-column:1 / -1; }
  .broadcast-detail-stats { grid-template-columns:1fr 1fr; }
  .broadcast-error-list > div { grid-template-columns:1fr; }
}
@media (max-width: 520px) {
  .telegram-stat-grid { grid-template-columns:1fr; }
  .telegram-compose-head { flex-direction:column; }
  .telegram-compose-section,.telegram-compose-head,.telegram-compose-footer { padding-left:14px; padding-right:14px; }
  .telegram-live-head { flex-direction:column; gap:8px; }
}

.dashboard-telegram-card { display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; align-items:center; gap:15px; margin-bottom:17px; padding:16px 17px; border-color:rgba(56,166,243,.16); background:radial-gradient(circle at 93% 20%,rgba(37,157,235,.09),transparent 24%),linear-gradient(135deg,rgba(14,32,50,.92),rgba(8,20,33,.9)); }
.dashboard-telegram-icon { width:45px; height:45px; display:grid; place-items:center; color:#67c4ff; border:1px solid rgba(71,181,249,.19); border-radius:14px; background:rgba(29,135,203,.11); box-shadow:0 0 26px rgba(31,144,216,.07); }
.dashboard-telegram-icon .icon { width:20px; height:20px; }
.dashboard-telegram-copy { min-width:0; }
.dashboard-telegram-copy span { display:block; color:#4c99c9; font-size:7px; font-weight:850; letter-spacing:1px; }
.dashboard-telegram-copy strong { display:block; margin-top:4px; color:#cce1ef; font-size:11px; }
.dashboard-telegram-copy small { display:block; margin-top:3px; color:#5d778d; font-size:8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dashboard-telegram-metrics { display:flex; gap:7px; }
.dashboard-telegram-metrics span { min-width:72px; padding:8px 10px; border:1px solid rgba(96,141,177,.11); border-radius:10px; background:rgba(5,15,25,.30); }
.dashboard-telegram-metrics small,.dashboard-telegram-metrics b { display:block; }
.dashboard-telegram-metrics small { color:#587187; font-size:6.5px; letter-spacing:.6px; }
.dashboard-telegram-metrics b { margin-top:3px; color:#bcd1df; font-size:12px; }
@media (max-width:900px) { .dashboard-telegram-card { grid-template-columns:auto 1fr; } .dashboard-telegram-metrics,.dashboard-telegram-card > .btn { grid-column:1 / -1; } .dashboard-telegram-card > .btn { width:100%; } }


/* =========================================================
   UI NORMAL V4 — hiệu ứng nhẹ như dashboard quản trị thông thường
   ========================================================= */
body.ui-normal-v4 {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Chuyển trang rất nhẹ, không bay/zoom từng card */
body.ui-normal-v4 #pageContent.ui-normal-enter {
  animation: normalPageEnter .20s ease-out both;
}
@keyframes normalPageEnter {
  from { opacity: .72; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Nút và menu: hover đơn giản, không ripple */
body.ui-normal-v4 .btn,
body.ui-normal-v4 .navigation a,
body.ui-normal-v4 .navigation button,
body.ui-normal-v4 .icon-action {
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease, opacity .16s ease;
}
body.ui-normal-v4 .btn:hover:not(:disabled),
body.ui-normal-v4 .icon-action:hover:not(:disabled) {
  transform: translateY(-1px);
}
body.ui-normal-v4 .btn:active:not(:disabled),
body.ui-normal-v4 .icon-action:active:not(:disabled) {
  transform: translateY(0);
}
body.ui-normal-v4 .navigation a:hover,
body.ui-normal-v4 .navigation button:hover {
  transform: none;
}

/* Card/panel: chỉ sáng viền và nhấc nhẹ */
body.ui-normal-v4 .panel,
body.ui-normal-v4 .stat-card,
body.ui-normal-v4 .dashboard-telegram-card,
body.ui-normal-v4 .telegram-stat-grid article,
body.ui-normal-v4 .telegram-compose-card,
body.ui-normal-v4 .telegram-bot-console,
body.ui-normal-v4 .telegram-history-panel {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background-color .18s ease;
}
body.ui-normal-v4 .panel:hover,
body.ui-normal-v4 .dashboard-telegram-card:hover {
  border-color: rgba(88,160,214,.20);
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
}
body.ui-normal-v4 .stat-card:hover,
body.ui-normal-v4 .telegram-stat-grid article:hover {
  transform: translateY(-2px);
  border-color: rgba(88,160,214,.19);
  box-shadow: 0 9px 24px rgba(0,0,0,.09);
}

/* Chọn đối tượng gửi: tương tác gọn, không nghiêng 3D */
body.ui-normal-v4 .telegram-target-card {
  transform: none !important;
  will-change: auto;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
body.ui-normal-v4 .telegram-target-card:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 7px 18px rgba(0,0,0,.08);
}
body.ui-normal-v4 .telegram-target-card:active {
  transform: translateY(0) !important;
}

/* Toolbar HTML: hover nhẹ */
body.ui-normal-v4 .broadcast-format-toolbar button {
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
body.ui-normal-v4 .broadcast-format-toolbar button:hover {
  transform: translateY(-1px);
}

/* Console giữ kiểu dashboard, cuộn mượt vừa phải */
body.ui-normal-v4 .telegram-console-terminal {
  scroll-behavior: smooth;
}

/* Không dùng hiệu ứng phóng to/ripple/spotlight từ bản V3 */
body.ui-normal-v4 .js-ripple,
body.ui-normal-v4 .pro-spotlight::after {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body.ui-normal-v4 #pageContent.ui-normal-enter,
  body.ui-normal-v4 .btn,
  body.ui-normal-v4 .navigation a,
  body.ui-normal-v4 .navigation button,
  body.ui-normal-v4 .panel,
  body.ui-normal-v4 .stat-card,
  body.ui-normal-v4 .telegram-target-card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Account key / expiry fields */
.field-hint { display:block; margin:7px 2px 0; color:#71859a; font-size:11px; line-height:1.45; }
#activationKeyField:not(.is-hidden) .input-wrap { animation:keyFieldIn .18s ease both; }
@keyframes keyFieldIn { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:none; } }


/* =========================================================
   A2Z RESPONSIVE FAST V1 · 2026-09-28
   Responsive admin console for phone / tablet / desktop.
   ========================================================= */
html { min-width: 0; background: var(--bg-deep); scroll-behavior: smooth; }
body { min-width: 0; min-height: 100dvh; overflow-x: hidden; -webkit-tap-highlight-color: transparent; text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; }
button, [role="button"], .btn, .nav-item { touch-action: manipulation; }
img, svg, video { max-width: 100%; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid rgba(80,173,255,.9); outline-offset: 2px; }
.is-hidden { display: none !important; }
.main-shell, .page-content, .panel, .table-responsive { min-width: 0; }
.page-content { width: min(100%, 1680px); margin-inline: auto; padding-bottom: max(42px, env(safe-area-inset-bottom)); }
.topbar { padding-top: env(safe-area-inset-top); min-height: calc(72px + env(safe-area-inset-top)); }
.sidebar { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
.modal-layer { padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.toast-stack { bottom: max(20px, env(safe-area-inset-bottom)); }
.table-responsive { overflow: auto; overscroll-behavior-inline: contain; scrollbar-gutter: stable; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; min-width: 760px; }
.data-table th { position: sticky; top: 0; z-index: 2; backdrop-filter: blur(12px); }
.btn, .icon-btn, .nav-item, .filter-select, .toolbar-search input { min-height: 42px; }
.icon-btn { min-width: 42px; }
.btn:disabled, button:disabled { cursor: not-allowed; opacity: .56; }
.btn.is-busy, button.is-busy { pointer-events: none; }
.btn.is-busy::after, button.is-busy::after { content: ""; width: 13px; height: 13px; margin-left: 7px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; vertical-align: -2px; animation: a2zSpin .65s linear infinite; }
@keyframes a2zSpin { to { transform: rotate(360deg); } }

/* Stable rendering: large lists no longer make the whole page repaint. */
.panel, .stat-card, .category-card, .api-source-card, .emoji-editor-row { contain: layout paint style; }
.page-content > * { content-visibility: auto; contain-intrinsic-size: auto 260px; }
.page-content > .page-heading, .page-content > .toolbar { content-visibility: visible; contain: none; }

/* Tablet */
@media (max-width: 1024px) {
  .page-content { padding-inline: clamp(14px, 2.4vw, 24px); }
  .topbar-actions { gap: 8px; }
  .topbar .btn { padding-inline: 12px; }
  .modal-card { width: min(720px, 96vw); }
  .panel-head { gap: 12px; }
}

/* Phone */
@media (max-width: 700px) {
  :root { --radius: 16px; }
  .topbar { position: sticky; top: 0; z-index: 20; height: auto; min-height: calc(64px + env(safe-area-inset-top)); padding-inline: 12px; background: rgba(6,15,26,.92); backdrop-filter: blur(18px) saturate(135%); }
  .topbar-left { min-width: 0; gap: 9px; }
  .topbar-left > div { min-width: 0; }
  .topbar h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45vw; }
  .topbar-actions { margin-left: auto; }
  .notification-btn, .refresh-btn, .mobile-menu { width: 42px; min-width: 42px; padding: 0; place-content: center; }
  .page-content { padding: 14px 12px max(32px, env(safe-area-inset-bottom)); }
  .page-heading { margin-bottom: 13px; gap: 11px; }
  .page-heading h2 { font-size: clamp(20px, 6vw, 26px); line-height: 1.15; }
  .page-heading p { margin-top: 6px; font-size: 12px; line-height: 1.55; }
  .heading-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .heading-actions .btn { width: 100%; justify-content: center; }
  .panel { border-radius: 15px; }
  .panel-head { align-items: flex-start; flex-direction: column; padding: 14px; }
  .panel-head > .btn, .panel-head > div + div { width: 100%; }
  .toolbar { gap: 8px; }
  .toolbar-left, .toolbar-right { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .toolbar-right > *, .toolbar-left > * { width: 100%; }
  .filter-select { min-height: 44px; }
  .form-group input, .form-group select, .form-group textarea, .field input { font-size: 16px; } /* prevent iOS zoom */
  .modal-layer { padding-inline: 0; }
  .modal-card { width: 100%; max-width: none; max-height: calc(100dvh - env(safe-area-inset-top)); border-radius: 20px 20px 0 0; }
  .modal-card > header { position: sticky; top: 0; z-index: 3; background: rgba(10,23,38,.96); backdrop-filter: blur(16px); }
  .modal-card footer { position: sticky; bottom: 0; z-index: 3; padding-bottom: max(14px, env(safe-area-inset-bottom)); background: rgba(10,23,38,.96); backdrop-filter: blur(16px); }
  .modal-card footer .btn { flex: 1; min-height: 46px; }
  .toast-stack { left: 9px; right: 9px; bottom: max(9px, env(safe-area-inset-bottom)); }
  .login-panel { min-height: 100dvh; padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom)); }
  .login-form { width: min(100%, 430px); }
  .login-form h2 { font-size: clamp(30px, 9vw, 40px); }
  .login-trust { gap: 6px; flex-wrap: wrap; }
  .sidebar { width: min(88vw, 320px); }
  .sidebar-bottom { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}

/* Very small phones */
@media (max-width: 390px) {
  .page-content { padding-inline: 9px; }
  .stat-grid, .category-grid, .telegram-stat-grid { grid-template-columns: 1fr !important; }
  .topbar h1 { max-width: 39vw; font-size: 17px; }
  .modal-body { padding-inline: 12px; }
  .login-panel { padding-inline: 14px; }
}

/* Wide screens: keep content readable instead of stretching to infinity. */
@media (min-width: 1680px) {
  .page-content { padding-left: 34px; padding-right: 34px; }
  .topbar { padding-left: 34px; padding-right: 34px; }
}

@media (hover: none) and (pointer: coarse) {
  .btn:hover:not(:disabled), .icon-action:hover:not(:disabled), .stat-card:hover, .panel:hover { transform: none !important; }
  .btn, .nav-item, .icon-btn { min-height: 46px; }
  .icon-btn { min-width: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn.is-busy::after, button.is-busy::after { animation-duration: 1.2s; }
}

/* Deposit transfer-content modes */
.deposit-content-card { grid-column: 1 / -1; }
.deposit-mode-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.deposit-mode-option { position: relative; display: grid; gap: 6px; min-width: 0; padding: 16px 15px 14px 42px; border: 1px solid rgba(100,145,183,.18); border-radius: 15px; background: rgba(7,19,32,.58); cursor: pointer; transition: transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease; }
.deposit-mode-option:hover { transform: translateY(-1px); border-color: rgba(73,190,120,.38); }
.deposit-mode-option.active { border-color: rgba(54,210,113,.68); background: linear-gradient(145deg,rgba(24,111,58,.3),rgba(7,28,23,.7)); box-shadow: 0 0 0 1px rgba(54,210,113,.08),0 12px 30px rgba(0,0,0,.14); }
.deposit-mode-option input { position: absolute; opacity: 0; pointer-events: none; }
.deposit-mode-check { position: absolute; left: 15px; top: 17px; width: 17px; height: 17px; border: 2px solid #58748e; border-radius: 50%; box-shadow: inset 0 0 0 4px transparent; transition: all .18s ease; }
.deposit-mode-option.active .deposit-mode-check { border-color: #48df80; background: #48df80; box-shadow: inset 0 0 0 4px #102c20; }
.deposit-mode-option strong { color: #edf8f1; font-size: 13px; }
.deposit-mode-option small { color: #7f93a5; line-height: 1.4; }
.deposit-mode-option code { width: fit-content; max-width: 100%; overflow: hidden; text-overflow: ellipsis; color: #75e6a0; background: rgba(43,183,92,.09); border: 1px solid rgba(43,183,92,.14); border-radius: 8px; padding: 5px 7px; font-size: 10px; }
.deposit-prefix-group { position: relative; z-index: 1; margin-top: 4px; }
.deposit-prefix-group.is-hidden { display: none; }
.deposit-prefix-input { display: grid; grid-template-columns: auto minmax(100px,1fr) auto; align-items: center; gap: 8px; }
.deposit-prefix-input > span { min-height: 42px; display: grid; place-items: center; padding: 0 13px; border: 1px solid rgba(68,210,118,.18); border-radius: 11px; color: #77eba1; background: rgba(30,135,66,.1); font: 800 12px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; }
@media (max-width: 820px) { .deposit-mode-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .deposit-mode-option { padding: 14px 12px 13px 39px; } .deposit-prefix-input { grid-template-columns: auto minmax(0,1fr) auto; } }


/* Deposit content controls - visible inside VietQR card */
.deposit-inline-settings { margin-top: 4px; padding: 16px; border: 1px solid rgba(63,186,119,.22); border-radius: 15px; background: linear-gradient(145deg,rgba(21,86,50,.16),rgba(8,24,36,.56)); }
.deposit-inline-heading { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.deposit-inline-heading > span { width:34px; height:34px; display:grid; place-items:center; border-radius:10px; color:#62e297; background:rgba(46,197,105,.12); border:1px solid rgba(72,220,126,.2); }
.deposit-inline-heading strong { display:block; color:#f0f8f3; font-size:13px; }
.deposit-inline-heading small { display:block; margin-top:3px; color:#7890a1; font-size:10px; line-height:1.4; }
.deposit-mode-grid-inline { margin-bottom:12px; }
@media (max-width: 1180px) { .deposit-mode-grid-inline { grid-template-columns:1fr; } }
\n\n/* BRAND + RESPONSIVE POLISH V5 */\n.sidebar-brand img { width:auto; max-width:100%; height:42px; object-fit:contain; object-position:left center; filter:drop-shadow(0 8px 18px rgba(32,138,255,.10)); }\n.login-full-logo > img { max-width:min(100%, 360px); max-height:86px; object-fit:contain; object-position:left center; }\n.profile-card .admin-logo { overflow:hidden; border:1px solid rgba(89,171,255,.24); background:linear-gradient(145deg,rgba(30,72,112,.34),rgba(10,24,39,.9)); box-shadow:0 6px 18px rgba(0,0,0,.18); }\n.profile-card .admin-logo img { width:100%; height:100%; object-fit:cover; display:block; }\n.app-shell { min-height:100dvh; }\n.main-shell { overflow-x:hidden; }\n.panel, .stat-card, .toolbar, .topbar, .sidebar { backface-visibility:hidden; }\n@media (max-width: 1180px) {\n  .sidebar-brand img { height:38px; }\n  .topbar-actions .global-search { max-width:240px; }\n}\n@media (max-width: 700px) {\n  .sidebar-brand { min-width:0; overflow:hidden; }\n  .sidebar-brand img { height:36px; max-width:190px; }\n  .profile-card { min-height:62px; }\n  .profile-card .admin-logo { width:40px; min-width:40px; height:40px; }\n  .login-full-logo > img { max-height:72px; max-width:290px; }\n  .data-table { min-width:680px; }\n  .panel-body, .panel > .table-responsive { overscroll-behavior:contain; }\n}\n@media (max-width: 390px) {\n  .sidebar-brand img { max-width:168px; }\n  .login-full-logo > img { max-width:250px; max-height:62px; }\n}\n

/* SETTINGS CONTROL CENTER V6 */
.settings-page-pro{display:block;min-width:0}.settings-hero-pro{position:relative;display:flex;align-items:center;justify-content:space-between;gap:28px;margin:0 0 22px;padding:28px 30px;border:1px solid rgba(63,156,255,.22);border-radius:22px;background:radial-gradient(circle at 90% 0,rgba(28,137,255,.18),transparent 38%),linear-gradient(135deg,rgba(17,39,64,.96),rgba(8,20,34,.96));box-shadow:0 18px 52px rgba(0,0,0,.18);overflow:hidden}.settings-hero-pro:after{content:"";position:absolute;inset:auto -80px -110px auto;width:260px;height:260px;border-radius:50%;background:rgba(61,148,255,.07);filter:blur(1px);pointer-events:none}.settings-kicker{display:inline-flex;margin-bottom:9px;font-size:10px;font-weight:800;letter-spacing:1.8px;color:#64b5ff}.settings-hero-pro h2{margin:0 0 8px;font-size:27px;line-height:1.16;letter-spacing:-.6px;color:#f3f8ff}.settings-hero-pro p{max-width:720px;margin:0;color:#9eb2c8;font-size:13px;line-height:1.65}.settings-hero-badges{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;position:relative;z-index:1}.settings-hero-badges span{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border:1px solid rgba(91,165,238,.18);border-radius:999px;background:rgba(10,29,49,.68);color:#bfd4e7;font-size:10px;font-weight:700;white-space:nowrap}.settings-grid-pro{gap:20px}.settings-grid-pro .settings-section{padding:25px;border-radius:20px}.settings-grid-pro .section-heading{margin-bottom:20px;gap:14px}.settings-grid-pro .section-heading>span{width:44px;height:44px;display:grid;place-items:center;border:1px solid rgba(75,162,246,.18);border-radius:13px;background:rgba(31,112,190,.12);flex:0 0 auto}.settings-grid-pro .section-heading h3{font-size:17px;letter-spacing:-.2px;margin-bottom:5px}.settings-grid-pro .section-heading p{font-size:11px;line-height:1.5}.settings-grid-pro .form-group label,.settings-grid-pro .field-label{font-size:11px;font-weight:750}.settings-grid-pro input,.settings-grid-pro select,.settings-grid-pro textarea{min-height:44px;font-size:12px;border-radius:12px}.settings-grid-pro .form-group small{font-size:10px;line-height:1.55}.settings-feature-card{border-color:rgba(64,159,244,.2)!important}.setting-switch-card-pro{min-height:96px;padding:21px 22px;border-radius:16px}.setting-switch-card-pro strong{font-size:13px;letter-spacing:.35px}.setting-switch-card-pro small{max-width:980px;font-size:10.5px;line-height:1.65;color:#8fa5ba}.setting-state-hint{display:flex;align-items:center;gap:7px;margin-top:10px;color:#6f91ac;font-size:9.5px;font-weight:650}.setting-state-hint .dot{width:7px;height:7px;border-radius:50%;background:#32d296;box-shadow:0 0 0 4px rgba(50,210,150,.08)}.switch-xl{width:62px;height:34px}.switch-xl i{border-radius:999px}.switch-xl i::before{width:26px;height:26px;top:4px;left:4px}.switch-xl input:checked+i::before{transform:translateX(28px)}.settings-grid-pro>.settings-actions{position:sticky;bottom:14px;z-index:12;padding:12px 14px;border:1px solid rgba(84,157,226,.16);border-radius:16px;background:rgba(8,19,32,.9);backdrop-filter:blur(18px);box-shadow:0 16px 40px rgba(0,0,0,.24)}.settings-grid-pro>.settings-actions .btn{min-height:44px;font-size:11px;font-weight:750;padding-inline:18px}
@media(max-width:900px){.settings-hero-pro{align-items:flex-start;flex-direction:column;padding:24px}.settings-hero-badges{justify-content:flex-start}.settings-grid-pro .settings-section{padding:20px}.setting-switch-card-pro{align-items:center}}
@media(max-width:650px){.settings-hero-pro{margin-bottom:16px;padding:20px;border-radius:17px}.settings-hero-pro h2{font-size:22px}.settings-hero-pro p{font-size:11px}.settings-hero-badges span{font-size:9px;min-height:31px}.settings-grid-pro{gap:14px}.settings-grid-pro .settings-section{padding:16px;border-radius:16px}.settings-grid-pro .section-heading>span{width:40px;height:40px}.settings-grid-pro .section-heading h3{font-size:15px}.setting-switch-card-pro{min-height:0;align-items:flex-start;padding:17px;gap:16px}.setting-switch-card-pro strong{font-size:11px}.setting-switch-card-pro small{font-size:9.5px}.switch-xl{width:58px;height:32px;margin-top:2px}.switch-xl i::before{width:24px;height:24px}.switch-xl input:checked+i::before{transform:translateX(26px)}.settings-grid-pro>.settings-actions{bottom:8px;display:grid;grid-template-columns:1fr 1fr}.settings-grid-pro>.settings-actions .btn{width:100%;padding-inline:10px}}

/* Hierarchical categories + manual product search */
.toolbar-search-wrap{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.toolbar-search-wrap .toolbar-search{min-width:min(360px,72vw)}.toolbar-search-button{white-space:nowrap}.page-size-control{display:flex;align-items:center;gap:8px;color:var(--muted,#94a3b8);font-size:13px;font-weight:700}.page-size-control span{white-space:nowrap}.category-hierarchy-guide{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;margin-bottom:16px}.category-hierarchy-guide strong{font-size:14px}.category-hierarchy-guide span{color:var(--muted,#94a3b8);font-size:13px}.category-level-badge{display:inline-flex;width:max-content;margin:12px 0 2px;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:900;letter-spacing:.08em;border:1px solid rgba(148,163,184,.18)}.category-level-badge.is-parent{background:rgba(59,130,246,.1)}.category-level-badge.is-child{background:rgba(34,197,94,.1)}@media(max-width:760px){.toolbar-search-wrap{width:100%}.toolbar-search-wrap .toolbar-search{min-width:0;flex:1}.toolbar-search-button{width:100%}.category-hierarchy-guide{align-items:flex-start;flex-direction:column}.page-size-control{width:100%}.page-size-control select{flex:1}}


/* PRODUCT API RESTORE BUTTON - V6 */
.row-actions { align-items: center; flex-wrap: nowrap; }
.action-btn.action-btn-text {
  width: auto;
  min-width: 132px;
  height: 34px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(82, 167, 255, .28);
  border-radius: 9px;
  background: rgba(37, 120, 207, .12);
  color: #bdddff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.action-btn.action-btn-text .icon { width: 14px; height: 14px; flex: 0 0 14px; }
.action-btn.action-btn-text:hover {
  border-color: rgba(82, 167, 255, .5);
  background: rgba(37, 120, 207, .22);
  color: #ffffff;
}
.action-btn.action-btn-text:disabled { opacity: .55; cursor: wait; }
.restore-category-btn span { display: inline-block; }
@media (max-width: 700px) {
  .action-btn.action-btn-text { min-width: 125px; padding-inline: 9px; }
}


/* RESTORE ALL API CATEGORIES - V7 */
.restore-all-category-btn{border-color:rgba(75,163,255,.34)!important;background:rgba(31,113,201,.15)!important;color:#d7ebff!important;font-weight:800!important;white-space:nowrap}.restore-all-category-btn:hover{border-color:rgba(75,163,255,.62)!important;background:rgba(31,113,201,.26)!important;color:#fff!important}.restore-all-category-btn:disabled{opacity:.58;cursor:wait}@media(max-width:760px){.restore-all-category-btn{width:100%;justify-content:center}}

/* Category bulk-selection upgrade: show exactly what is selected. */
.bulk-selection-bar:has([data-category-select-all]){flex-wrap:wrap}
.bulk-selected-preview{flex:1 1 100%;display:flex;align-items:flex-start;gap:8px;padding-top:2px;color:var(--muted);font-size:11px}
.bulk-selected-preview>strong{white-space:nowrap;color:var(--text);font-size:11px}
.bulk-selected-preview>span{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.bulk-selected-preview em{font-style:normal;display:inline-flex;align-items:center;max-width:260px;padding:4px 8px;border:1px solid rgba(148,163,184,.18);border-radius:999px;background:rgba(148,163,184,.08);color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:760px){.bulk-selected-preview{width:100%;flex-direction:column}.bulk-selected-preview>span{width:100%}.bulk-selected-preview em{max-width:100%}}

/* CATEGORY TREE BROWSER V9 - compact drill-down UI */
.category-browser{padding:14px 16px;margin-bottom:12px}.category-browser-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.category-breadcrumb{display:flex;align-items:center;gap:7px;min-width:0;overflow:auto;scrollbar-width:none}.category-breadcrumb::-webkit-scrollbar{display:none}.category-breadcrumb button{border:0;background:transparent;color:#9ab2c9;font:inherit;font-size:11px;font-weight:800;white-space:nowrap;cursor:pointer;padding:6px 4px}.category-breadcrumb button:last-child{color:#e9f4ff}.category-breadcrumb span{color:#47647e}.category-browser-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.category-level-summary{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid rgba(118,161,202,.12)}.category-level-summary span{display:block;color:#4da7ff;font-size:8px;font-weight:900;letter-spacing:1.2px}.category-level-summary strong{display:block;margin-top:4px;color:#ecf6ff;font-size:15px}.category-level-summary small{color:#6f879d;font-size:10px}.category-quick-tools{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:10px 12px;margin-bottom:12px}.category-quick-tool-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-left:auto}.category-quick-tools .bulk-selected-preview{padding-top:0;margin-top:1px}.category-grid-compact{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.category-card-compact{min-height:0!important;padding:12px!important;border-radius:14px!important;display:flex;flex-direction:column;justify-content:space-between;gap:10px}.category-card-compact .category-card-main{display:flex;align-items:flex-start;gap:10px;min-width:0}.category-card-compact .category-card-identity{display:flex;align-items:center;gap:8px;flex:0 0 auto}.category-card-compact .category-emoji{width:39px;height:39px;border-radius:10px}.category-card-compact .category-card-copy{min-width:0;flex:1}.category-card-compact .category-level-badge{margin:0 0 4px;padding:3px 6px;font-size:7px}.category-card-compact h3{margin:0!important;font-size:12px!important;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.category-card-compact small{display:block;margin-top:4px;color:#7189a0;font-size:8.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.category-card-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.category-card-actions .btn-mini{min-height:30px;padding:0 8px;border:1px solid rgba(85,158,226,.2);border-radius:8px;background:rgba(28,91,151,.1);color:#b9d8f5;font-size:8.5px;font-weight:800;display:inline-flex;align-items:center;gap:5px}.category-card-actions .btn-mini .icon{width:12px;height:12px}.category-card-actions .btn-open-category{border-color:rgba(65,160,255,.34);background:rgba(28,119,211,.16);color:#e2f2ff}.category-card-actions .action-btn{width:30px;height:30px;border-radius:8px}.category-card-actions .action-btn.action-btn-text{min-width:0}.category-quick-status.is-on{color:#63e8a2;border-color:rgba(72,220,135,.24);background:rgba(47,187,111,.09)}.category-card-compact.is-hidden-category{opacity:.62}.category-card-compact.is-hidden-category:hover{opacity:.9}.category-grid-compact + .table-footer{margin-top:12px}.category-quick-tools .btn{min-height:32px;padding:0 10px;font-size:9px}.category-quick-tools .bulk-select-all{font-size:10px}.category-quick-tools .bulk-selection-count{font-size:9px}
@media(max-width:1300px){.category-grid-compact{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:980px){.category-grid-compact{grid-template-columns:repeat(2,minmax(0,1fr))}.category-browser-top,.category-level-summary{align-items:flex-start;flex-direction:column}.category-browser-actions{width:100%}.category-quick-tool-actions{margin-left:0}}
@media(max-width:620px){.category-grid-compact{grid-template-columns:1fr}.category-browser-actions .btn,.category-browser-actions .page-size-control{width:100%}.category-browser-actions select{flex:1}.category-card-actions{gap:6px}.category-card-actions .btn-mini{flex:1;justify-content:center}.category-quick-tool-actions{width:100%}.category-quick-tool-actions .btn{flex:1;justify-content:center}.category-level-summary small{font-size:9px}}

/* V10 — Category tree: no pagination, drag/drop ordering, compact hidden category tools */
.category-visible-section { margin-top: 16px; }
.category-section-title { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:0 2px 11px; }
.category-section-title > div { display:flex; flex-direction:column; gap:3px; }
.category-section-title strong { color:#e9f4ff; font-size:12px; }
.category-section-title small { color:#70859c; font-size:9px; }
.category-section-title > span { color:#5dadff; }
.category-sortable { cursor:grab; transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.category-sortable:hover { transform:translateY(-4px); border-color:rgba(62,158,255,.5); box-shadow:0 16px 38px rgba(0,0,0,.28), 0 0 0 1px rgba(58,154,255,.08); background:linear-gradient(145deg, rgba(20,39,62,.98), rgba(10,24,40,.98)); }
.category-sortable:active { cursor:grabbing; }
.category-sortable.is-dragging { opacity:.45; transform:scale(.985); border-style:dashed; }
.category-drag-handle { position:absolute; top:11px; right:12px; z-index:3; color:#617890; font-weight:900; letter-spacing:-2px; cursor:grab; user-select:none; }
.category-order-number { position:absolute; top:10px; left:11px; z-index:3; min-width:25px; height:25px; padding:0 7px; border-radius:8px; display:grid; place-items:center; background:rgba(43,139,236,.13); border:1px solid rgba(71,160,249,.18); color:#a9d5ff; font-size:9px; font-weight:900; }
.category-card.category-card-compact { padding-top:43px; }
.hidden-category-section { margin-top:18px; padding:16px; }
.hidden-category-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:10px; }
.hidden-category-heading > div { display:flex; flex-direction:column; gap:4px; }
.hidden-category-heading strong { color:#e7f2fc; font-size:12px; }
.hidden-category-heading small { color:#71879f; font-size:9px; line-height:1.5; }
.hidden-category-heading > span { min-width:34px; padding:5px 8px; border-radius:9px; text-align:center; background:rgba(125,143,166,.1); color:#93a5b8; font-size:9px; font-weight:800; }
.hidden-category-list { display:grid; gap:8px; }
.hidden-category-row { border:1px solid rgba(113,137,165,.14); border-radius:12px; background:rgba(7,17,29,.38); overflow:hidden; transition:border-color .16s ease, background .16s ease; }
.hidden-category-row:hover { border-color:rgba(82,155,227,.28); background:rgba(12,27,45,.56); }
.hidden-category-summary { width:100%; display:flex; align-items:center; gap:10px; padding:10px 12px; border:0; background:transparent; color:inherit; text-align:left; cursor:pointer; }
.hidden-category-summary > span:nth-child(2) { min-width:0; flex:1; display:flex; flex-direction:column; gap:2px; }
.hidden-category-summary strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#d7e6f4; font-size:10px; }
.hidden-category-summary small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#6f8499; font-size:8px; }
.hidden-category-summary em { color:#6e8298; transition:transform .18s ease; }
.hidden-category-row.is-open .hidden-category-summary em { transform:rotate(90deg); }
.category-emoji-small { width:34px !important; height:34px !important; min-width:34px; border-radius:10px !important; }
.hidden-category-tools { display:none; flex-wrap:wrap; gap:8px; padding:0 12px 11px 56px; }
.hidden-category-row.is-open .hidden-category-tools { display:flex; }
.hidden-category-empty { padding:14px; color:#6f8398; text-align:center; font-size:9px; border:1px dashed rgba(113,137,165,.16); border-radius:10px; }
@media (max-width: 900px) { .hidden-category-tools { padding-left:12px; } .category-sortable:hover { transform:none; } }

/* V11 — Professional product/category management polish */
.category-grid-compact{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:14px!important;
  align-items:stretch;
}
.category-card.category-card-compact{
  min-width:0;
  min-height:190px!important;
  padding:50px 15px 15px!important;
  border-radius:16px!important;
  border-color:rgba(103,158,211,.18)!important;
  background:linear-gradient(150deg,rgba(18,38,61,.98),rgba(8,22,38,.98))!important;
  box-shadow:0 10px 28px rgba(0,0,0,.14);
}
.category-card.category-card-compact:hover{
  transform:translateY(-5px);
  border-color:rgba(68,164,255,.55)!important;
  box-shadow:0 18px 44px rgba(0,0,0,.27),0 0 0 1px rgba(58,154,255,.08);
}
.category-order-number{
  top:12px!important;
  left:13px!important;
  width:31px!important;
  min-width:31px!important;
  max-width:31px!important;
  height:31px!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  border-radius:9px!important;
  font-size:11px!important;
  line-height:1!important;
  font-variant-numeric:tabular-nums;
  box-sizing:border-box!important;
  flex:none!important;
}
.category-drag-handle{
  top:12px!important;
  right:14px!important;
  min-width:30px;
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(116,157,196,.14);
  border-radius:8px;
  background:rgba(3,13,23,.32);
  color:#8198ae!important;
  font-size:16px;
}
.category-card-compact .category-card-main{gap:12px!important;align-items:center!important}
.category-card-compact .category-card-identity{gap:9px!important}
.category-card-compact .category-card-identity input{width:18px;height:18px;min-height:18px}
.category-card-compact .category-emoji{width:46px!important;height:46px!important;min-width:46px;border-radius:12px!important}
.category-card-compact .category-level-badge{
  margin:0 0 6px!important;
  padding:4px 8px!important;
  font-size:8.5px!important;
  letter-spacing:.08em;
}
.category-card-compact h3{
  margin:0!important;
  color:#f0f7ff!important;
  font-size:14px!important;
  line-height:1.35!important;
  font-weight:850!important;
  white-space:normal!important;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:38px;
}
.category-card-compact small{
  margin-top:5px!important;
  color:#8aa0b5!important;
  font-size:10.5px!important;
  line-height:1.4!important;
}
.category-card-compact .category-custom-emoji{font-size:9.5px!important;color:#70a8d8!important}
.category-card-actions{gap:7px!important;margin-top:auto;padding-top:2px}
.category-card-actions .btn-mini{
  min-height:34px!important;
  padding:0 10px!important;
  border-radius:9px!important;
  font-size:10px!important;
  font-weight:800!important;
}
.category-card-actions .btn-mini .icon{width:13px!important;height:13px!important}
.category-card-actions .action-btn{width:34px!important;height:34px!important;border-radius:9px!important}
.category-section-title{margin-bottom:13px!important}
.category-section-title strong{font-size:15px!important}
.category-section-title small{font-size:11px!important;line-height:1.45}
.category-browser{padding:18px 20px!important;border-radius:16px}
.category-breadcrumb button{font-size:12px!important}
.category-level-summary span{font-size:9px!important}
.category-level-summary strong{font-size:17px!important}
.category-level-summary small{font-size:11px!important}
.category-quick-tools{padding:13px 14px!important;gap:10px!important}
.category-quick-tools .btn{min-height:36px!important;padding:0 12px!important;font-size:10px!important}
.category-quick-tools .bulk-select-all,.category-quick-tools .bulk-selection-count{font-size:11px!important}

/* Hidden categories are intentionally larger and easier to scan */
.hidden-category-section{
  margin-top:24px!important;
  padding:20px!important;
  border-radius:18px!important;
  border-color:rgba(112,157,202,.2)!important;
  background:linear-gradient(145deg,rgba(12,28,46,.82),rgba(6,17,29,.88))!important;
  box-shadow:0 16px 46px rgba(0,0,0,.16);
}
.hidden-category-heading{align-items:center!important;margin-bottom:15px!important;padding-bottom:14px;border-bottom:1px solid rgba(119,158,198,.12)}
.hidden-category-heading strong{font-size:16px!important;color:#edf7ff!important}
.hidden-category-heading small{font-size:11px!important;color:#849bb1!important;line-height:1.55!important}
.hidden-category-heading>span{min-width:44px!important;padding:7px 10px!important;font-size:11px!important;border-radius:10px!important}
.hidden-category-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px!important}
.hidden-category-row{
  min-width:0;
  border-radius:14px!important;
  border-color:rgba(112,151,190,.18)!important;
  background:linear-gradient(145deg,rgba(9,23,39,.82),rgba(5,15,27,.9))!important;
  box-shadow:0 8px 22px rgba(0,0,0,.1);
}
.hidden-category-row:hover{transform:translateY(-2px);border-color:rgba(75,163,247,.42)!important;box-shadow:0 13px 30px rgba(0,0,0,.18)}
.hidden-category-summary{gap:13px!important;padding:14px 15px!important}
.hidden-category-summary strong{font-size:13px!important;color:#e6f2fd!important}
.hidden-category-summary small{font-size:10px!important;color:#8398ac!important;margin-top:3px}
.category-emoji-small{width:42px!important;height:42px!important;min-width:42px!important;border-radius:11px!important}
.hidden-category-tools{gap:8px!important;padding:0 15px 14px 70px!important}
.hidden-category-tools .btn-mini{min-height:34px;padding:0 10px;font-size:10px;border-radius:9px}
.hidden-category-empty{grid-column:1/-1;padding:24px!important;font-size:12px!important}

/* Product management: clearer hierarchy, spacing and table readability */
.inventory-hero{
  padding:27px 30px!important;
  border-radius:22px!important;
  border-color:rgba(81,166,249,.24)!important;
  background:radial-gradient(circle at 90% 8%,rgba(37,145,247,.22),transparent 31%),linear-gradient(135deg,rgba(17,39,65,.98),rgba(7,20,35,.98))!important;
  box-shadow:0 20px 58px rgba(0,0,0,.2)!important;
}
.inventory-hero h2{font-size:26px!important;line-height:1.2}
.inventory-hero p{font-size:12px!important;line-height:1.55;color:#8ca2b8!important}
.inventory-metrics{gap:10px!important}
.inventory-metrics span{min-width:125px!important;padding:15px 17px!important;border-radius:14px!important;background:rgba(3,13,24,.55)!important}
.inventory-metrics small{font-size:8.5px!important}
.inventory-metrics strong{font-size:21px!important}
.premium-table{border-radius:18px!important;overflow:hidden;box-shadow:0 18px 54px rgba(0,0,0,.18)!important}
.premium-table .data-table th{padding:15px 16px!important;font-size:10.5px!important;color:#7990a7!important;background:rgba(5,16,28,.72)!important}
.premium-table .data-table td{padding:15px 16px!important;font-size:12px!important}
.premium-table .data-table tbody tr:hover td{background:rgba(48,128,205,.07)!important}
.premium-table .product-thumb{width:50px!important;height:50px!important;border-radius:13px!important}
.premium-table .product-cell>span>strong{font-size:12.5px;color:#e9f4ff}
.premium-table .product-cell>span>small,.premium-table .cell-stack small{font-size:10px;line-height:1.45;color:#758ca3}
.premium-table .cell-stack strong{font-size:11.5px;color:#d9e9f8}
.bulk-selection-bar{padding:12px 14px!important;border-radius:14px!important}

@media(max-width:1550px){.category-grid-compact{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:1220px){.category-grid-compact{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:920px){.category-grid-compact{grid-template-columns:repeat(2,minmax(0,1fr))!important}.hidden-category-list{grid-template-columns:1fr}.hidden-category-tools{padding-left:15px!important}}
@media(max-width:620px){.category-grid-compact{grid-template-columns:1fr!important}.category-card.category-card-compact{min-height:0!important}.category-card-compact h3{min-height:0}.hidden-category-section{padding:14px!important}}

/* V12 — Category presentation: stronger visible section + 3-column square hidden tiles */
.category-visible-pro{
  margin-top:22px;
  padding:20px;
  border:1px solid rgba(87,158,224,.16);
  border-radius:20px;
  background:linear-gradient(145deg,rgba(10,26,44,.72),rgba(5,17,29,.62));
  box-shadow:0 18px 48px rgba(0,0,0,.14);
}
.category-section-title-pro{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px!important;
  padding-bottom:15px;
  border-bottom:1px solid rgba(111,160,207,.12);
}
.category-title-copy{display:flex;align-items:center;gap:12px;min-width:0}
.category-title-icon{
  width:42px;height:42px;min-width:42px;border-radius:13px;display:grid;place-items:center;
  background:linear-gradient(145deg,rgba(42,148,247,.2),rgba(31,102,178,.12));
  border:1px solid rgba(71,164,247,.22);color:#7cc1ff;
}
.category-title-icon .icon{width:19px;height:19px}
.category-title-copy>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.category-title-copy strong{font-size:18px!important;line-height:1.2;color:#f0f8ff!important;font-weight:900!important;letter-spacing:-.01em}
.category-title-copy small{font-size:11px!important;color:#8098af!important;line-height:1.5}
.category-title-badge{display:flex;align-items:center;gap:9px;padding:8px 11px;border-radius:12px;background:rgba(40,145,239,.1);border:1px solid rgba(72,158,238,.17)}
.category-title-badge b{font-size:18px;color:#9cd3ff;line-height:1;font-variant-numeric:tabular-nums}
.category-title-badge span{font-size:8.5px;font-weight:900;letter-spacing:.08em;color:#6f94b7}

.hidden-category-section{padding:22px!important}
.hidden-category-heading{padding-bottom:16px!important;margin-bottom:14px!important}
.hidden-heading-main{display:flex;align-items:center;gap:13px;min-width:0}
.hidden-heading-icon{
  width:44px;height:44px;min-width:44px;border-radius:13px;display:grid;place-items:center;
  background:linear-gradient(145deg,rgba(118,133,151,.15),rgba(64,78,96,.08));
  border:1px solid rgba(128,149,171,.16);color:#9caec0;
}
.hidden-heading-icon .icon{width:19px;height:19px}
.hidden-heading-main>div{display:flex;flex-direction:column;gap:4px}
.hidden-category-heading strong{font-size:18px!important;font-weight:900!important;letter-spacing:-.01em}
.hidden-category-heading small{font-size:11px!important;max-width:760px}
.hidden-count-badge{min-width:64px!important;padding:9px 12px!important;border-radius:12px!important;font-size:11px!important;font-weight:900!important;background:rgba(125,143,166,.11)!important;border:1px solid rgba(125,143,166,.14)}
.hidden-category-bulkbar{
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  margin:0 0 16px;padding:12px 13px;border-radius:14px;
  background:rgba(4,14,25,.38);border:1px solid rgba(103,142,181,.13)
}
.hidden-select-all{display:flex;align-items:center;gap:10px;color:#bed0df;font-size:11px;font-weight:800;cursor:pointer}
.hidden-select-all input,.hidden-category-select-wrap input{width:18px;height:18px;accent-color:#2f98f4;cursor:pointer}
.hidden-bulk-actions{display:flex;gap:8px;flex-wrap:wrap}
.hidden-bulk-actions .btn{min-height:36px;padding:0 12px;font-size:10px}
.hidden-category-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:15px!important}
.hidden-category-tile{
  position:relative;aspect-ratio:1 / .72;min-height:210px;overflow:hidden!important;
  border-radius:18px!important;border:1px solid rgba(117,151,184,.2)!important;
  background:radial-gradient(circle at 88% 7%,rgba(64,126,184,.11),transparent 30%),linear-gradient(145deg,rgba(12,28,47,.96),rgba(5,16,28,.97))!important;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease!important;
}
.hidden-category-tile:hover{transform:translateY(-4px)!important;border-color:rgba(77,164,247,.46)!important;box-shadow:0 18px 38px rgba(0,0,0,.2)!important}
.hidden-category-select-wrap{position:absolute;top:13px;left:13px;z-index:5;width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:rgba(4,14,24,.7);border:1px solid rgba(126,158,190,.15)}
.hidden-category-summary{
  height:100%;min-height:210px;align-items:flex-start!important;padding:54px 17px 58px!important;gap:14px!important;
}
.hidden-category-summary .category-emoji-small{width:58px!important;height:58px!important;min-width:58px!important;border-radius:15px!important;box-shadow:0 8px 20px rgba(0,0,0,.18)}
.hidden-category-summary>span:nth-child(2){gap:5px!important;padding-top:2px}
.hidden-category-summary strong{font-size:15px!important;line-height:1.35!important;white-space:normal!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#f0f7ff!important}
.hidden-category-summary small{font-size:10.5px!important;line-height:1.45!important;white-space:normal!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#8197ad!important}
.hidden-category-summary .hidden-category-meta{margin-top:2px;color:#6eb7ef!important;font-weight:800}
.hidden-category-summary em{position:absolute;right:15px;top:16px;width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:rgba(6,17,29,.5);border:1px solid rgba(117,151,184,.13)}
.hidden-category-tools{
  position:absolute;left:12px;right:12px;bottom:12px;z-index:4;padding:10px!important;gap:7px!important;
  border-radius:12px;background:rgba(4,13,23,.94);border:1px solid rgba(94,146,196,.16);box-shadow:0 12px 26px rgba(0,0,0,.22)
}
.hidden-category-row.is-open .hidden-category-tools{display:flex!important}
.hidden-category-tools .btn-mini{flex:1 1 auto;justify-content:center;min-height:35px!important;font-size:9.5px!important}

@media (max-width:1280px){.hidden-category-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))!important}.category-grid-compact{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media (max-width:900px){.hidden-category-grid-3{grid-template-columns:1fr!important}.category-grid-compact{grid-template-columns:repeat(2,minmax(0,1fr))!important}.hidden-category-tile{aspect-ratio:auto;min-height:200px}.hidden-category-bulkbar{align-items:stretch}.hidden-bulk-actions{width:100%}.hidden-bulk-actions .btn{flex:1}.category-visible-pro{padding:15px}.category-section-title-pro{align-items:flex-start}.category-title-badge{display:none}}
@media (max-width:560px){.category-grid-compact{grid-template-columns:1fr!important}.hidden-heading-icon,.category-title-icon{display:none}.hidden-category-section{padding:15px!important}}

/* V13 — Hidden category gallery: clearer, denser, responsive and professional */
.hidden-category-section{
  padding:24px!important;
  border:1px solid rgba(90,145,197,.16)!important;
  background:
    radial-gradient(circle at 88% 0%,rgba(45,121,190,.08),transparent 27%),
    linear-gradient(180deg,rgba(8,23,39,.74),rgba(5,17,29,.72))!important;
}
.hidden-category-heading{
  align-items:center!important;
  gap:16px!important;
  padding-bottom:18px!important;
  margin-bottom:16px!important;
}
.hidden-heading-icon{
  width:48px!important;height:48px!important;min-width:48px!important;border-radius:15px!important;
  background:linear-gradient(145deg,rgba(77,119,159,.19),rgba(42,71,99,.12))!important;
}
.hidden-category-heading strong{font-size:20px!important;line-height:1.15!important}
.hidden-category-heading small{font-size:12px!important;line-height:1.55!important;color:#8ba2b8!important;margin-top:2px}
.hidden-count-badge{min-width:70px!important;padding:10px 13px!important;font-size:12px!important}

.hidden-category-bulkbar{
  padding:14px 15px!important;margin-bottom:18px!important;border-radius:15px!important;
  background:rgba(4,14,25,.56)!important;border-color:rgba(94,148,199,.16)!important;
}
.hidden-select-all{font-size:12px!important;gap:11px!important}
.hidden-select-all input,.hidden-category-select-wrap input{width:20px!important;height:20px!important}
.hidden-bulk-actions .btn{min-height:40px!important;padding:0 14px!important;font-size:11px!important;border-radius:10px!important}

.hidden-category-grid-3{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
  align-items:stretch;
}
.hidden-category-tile{
  position:relative!important;
  aspect-ratio:auto!important;
  min-height:178px!important;
  border-radius:18px!important;
  overflow:hidden!important;
  border:1px solid rgba(104,157,205,.18)!important;
  background:
    radial-gradient(circle at 95% 0%,rgba(52,139,218,.12),transparent 34%),
    linear-gradient(145deg,rgba(12,30,50,.96),rgba(6,18,31,.98))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.015)!important;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease!important;
}
.hidden-category-tile:hover{
  transform:translateY(-4px)!important;
  border-color:rgba(73,166,249,.5)!important;
  box-shadow:0 18px 42px rgba(0,0,0,.24),0 0 0 1px rgba(61,148,228,.05)!important;
  background:
    radial-gradient(circle at 95% 0%,rgba(57,153,240,.17),transparent 36%),
    linear-gradient(145deg,rgba(13,34,57,.98),rgba(7,20,34,.99))!important;
}
.hidden-category-tile:has(.hidden-category-select-wrap input:checked){
  border-color:rgba(50,159,255,.72)!important;
  box-shadow:0 0 0 2px rgba(43,145,237,.13),0 15px 34px rgba(0,0,0,.22)!important;
}
.hidden-category-select-wrap{
  top:14px!important;left:14px!important;width:36px!important;height:36px!important;border-radius:11px!important;
  background:rgba(3,13,23,.82)!important;border-color:rgba(120,164,204,.18)!important;
}
.hidden-category-status-pill{
  position:absolute;top:15px;right:52px;z-index:5;
  display:flex;align-items:center;gap:6px;height:30px;padding:0 10px;border-radius:999px;
  color:#9eb0c2;background:rgba(79,95,114,.12);border:1px solid rgba(125,145,167,.15);
  font-size:8.5px;font-weight:900;letter-spacing:.08em;pointer-events:none;
}
.hidden-category-status-pill .icon{width:12px;height:12px}
.hidden-category-summary{
  width:100%!important;height:auto!important;min-height:178px!important;
  display:grid!important;grid-template-columns:70px minmax(0,1fr) 34px!important;
  align-items:center!important;gap:14px!important;
  padding:52px 16px 48px!important;text-align:left!important;
}
.hidden-category-avatar{display:grid;place-items:center}
.hidden-category-summary .category-emoji-small{
  width:64px!important;height:64px!important;min-width:64px!important;border-radius:17px!important;
  object-fit:cover!important;border:1px solid rgba(255,255,255,.08)!important;
  box-shadow:0 9px 24px rgba(0,0,0,.23)!important;
}
.hidden-category-copy{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:4px!important;min-width:0!important;padding:0!important}
.hidden-category-level{
  display:inline-flex;width:max-content;max-width:100%;padding:4px 7px;border-radius:7px;
  background:rgba(42,139,227,.1);border:1px solid rgba(68,152,229,.15);color:#77bdf8;
  font-size:8px;font-weight:900;letter-spacing:.055em;text-transform:uppercase;
}
.hidden-category-summary strong{
  width:100%;font-size:15px!important;line-height:1.35!important;font-weight:900!important;color:#f3f8fe!important;
  white-space:normal!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important;
}
.hidden-category-path{
  width:100%;font-size:10px!important;line-height:1.45!important;color:#7f96ac!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;display:block!important;
}
.hidden-category-stats{
  display:flex;align-items:center;gap:5px;margin-top:3px;color:#7791a9;font-size:9.5px;font-weight:700;
}
.hidden-category-stats b{color:#72c3ff;font-size:10.5px;font-weight:900}
.hidden-category-stats i{width:3px;height:3px;border-radius:50%;background:#49657e}
.hidden-category-chevron{
  position:static!important;right:auto!important;top:auto!important;width:32px!important;height:32px!important;
  display:grid!important;place-items:center!important;align-self:center!important;border-radius:10px!important;
  background:rgba(4,15,26,.6)!important;border:1px solid rgba(112,151,187,.14)!important;color:#7390aa!important;
}
.hidden-category-row.is-open .hidden-category-chevron{transform:rotate(90deg)!important;color:#8ac8ff!important;border-color:rgba(69,156,237,.28)!important}
.hidden-category-tools{
  position:absolute!important;left:12px!important;right:12px!important;bottom:11px!important;z-index:6!important;
  display:none!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px!important;padding:9px!important;
  border-radius:12px!important;background:rgba(3,12,21,.96)!important;border:1px solid rgba(86,148,205,.2)!important;
  box-shadow:0 12px 28px rgba(0,0,0,.27)!important;
}
.hidden-category-row.is-open .hidden-category-tools{display:grid!important}
.hidden-category-row.is-open .hidden-category-summary{padding-bottom:102px!important}
.hidden-category-tools .btn-mini{
  width:100%!important;min-height:36px!important;padding:0 8px!important;justify-content:center!important;
  border-radius:9px!important;font-size:9.5px!important;white-space:nowrap!important;
}
.hidden-category-empty{grid-column:1/-1!important;padding:28px!important;font-size:12px!important}

@media (max-width:1200px){
  .hidden-category-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width:780px){
  .hidden-category-section{padding:16px!important}
  .hidden-category-heading{align-items:flex-start!important}
  .hidden-category-heading strong{font-size:18px!important}
  .hidden-category-heading small{font-size:11px!important}
  .hidden-category-grid-3{grid-template-columns:1fr!important;gap:12px!important}
  .hidden-category-bulkbar{align-items:stretch!important}
  .hidden-bulk-actions{display:grid!important;grid-template-columns:1fr 1fr;width:100%!important}
  .hidden-category-tile{min-height:164px!important}
  .hidden-category-summary{min-height:164px!important;grid-template-columns:62px minmax(0,1fr) 32px!important;padding:49px 13px 46px!important;gap:12px!important}
  .hidden-category-summary .category-emoji-small{width:56px!important;height:56px!important;min-width:56px!important;border-radius:15px!important}
  .hidden-category-status-pill{right:49px!important}
}
@media (max-width:480px){
  .hidden-category-section{padding:13px!important;border-radius:15px!important}
  .hidden-heading-icon{display:none!important}
  .hidden-count-badge{min-width:auto!important;padding:7px 9px!important}
  .hidden-category-heading strong{font-size:17px!important}
  .hidden-category-bulkbar{padding:11px!important}
  .hidden-bulk-actions{grid-template-columns:1fr!important}
  .hidden-category-summary{grid-template-columns:54px minmax(0,1fr) 28px!important;gap:10px!important;padding:48px 11px 44px!important}
  .hidden-category-summary .category-emoji-small{width:50px!important;height:50px!important;min-width:50px!important;border-radius:13px!important}
  .hidden-category-summary strong{font-size:14px!important}
  .hidden-category-path{font-size:9.5px!important}
  .hidden-category-status-pill{top:13px!important;right:45px!important;height:28px!important;font-size:7.5px!important;padding:0 8px!important}
  .hidden-category-select-wrap{top:12px!important;left:11px!important;width:34px!important;height:34px!important}
  .hidden-category-tools{grid-template-columns:1fr!important}
  .hidden-category-row.is-open .hidden-category-summary{padding-bottom:184px!important}
}

/* V14 — Category control polish: custom selectors, stronger section headers, all-device responsiveness */
.hidden-category-section,
.category-visible-pro{
  position:relative;
  overflow:hidden;
}
.hidden-category-section::before,
.category-visible-pro::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(92,181,255,.35),transparent);
  pointer-events:none;
}

/* Visible categories heading */
.category-visible-pro{
  padding:22px!important;
  border-radius:20px!important;
  border-color:rgba(77,151,219,.2)!important;
  background:
    radial-gradient(circle at 92% 0%,rgba(44,132,214,.1),transparent 30%),
    linear-gradient(180deg,rgba(8,24,41,.9),rgba(5,17,30,.78))!important;
}
.category-section-title-pro{
  margin:-2px 0 18px!important;
  padding:0 0 17px!important;
  align-items:center!important;
  border-bottom:1px solid rgba(104,158,207,.16)!important;
}
.category-title-icon{
  width:48px!important;height:48px!important;min-width:48px!important;
  border-radius:15px!important;
  color:#8dd0ff!important;
  background:linear-gradient(145deg,rgba(43,151,248,.24),rgba(23,85,145,.13))!important;
  border-color:rgba(75,172,255,.27)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 8px 22px rgba(0,0,0,.12);
}
.category-title-icon .icon{width:21px!important;height:21px!important}
.category-title-copy{gap:14px!important}
.category-title-copy strong{font-size:20px!important;line-height:1.18!important;letter-spacing:-.02em!important}
.category-title-copy small{margin-top:2px;font-size:11.5px!important;color:#8ba3ba!important}
.category-title-badge{
  min-width:82px!important;
  padding:10px 13px!important;
  border-radius:13px!important;
  display:grid!important;
  justify-items:center!important;
  gap:3px!important;
  background:linear-gradient(145deg,rgba(39,143,237,.16),rgba(18,72,121,.11))!important;
  border-color:rgba(72,162,245,.23)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.category-title-badge b{font-size:22px!important;color:#b9e3ff!important}
.category-title-badge span{font-size:8px!important;letter-spacing:.11em!important;color:#79a8cf!important}

/* Hidden categories heading */
.hidden-category-section{
  padding:24px!important;
  border-radius:20px!important;
  border-color:rgba(90,155,214,.2)!important;
}
.hidden-category-heading{
  min-height:64px;
  padding-bottom:18px!important;
  margin-bottom:16px!important;
  align-items:center!important;
  border-bottom:1px solid rgba(105,158,206,.15)!important;
}
.hidden-heading-main{gap:14px!important}
.hidden-heading-icon{
  width:48px!important;height:48px!important;min-width:48px!important;
  border-radius:15px!important;
  color:#a9b9c9!important;
  background:linear-gradient(145deg,rgba(122,143,163,.17),rgba(57,76,95,.1))!important;
  border-color:rgba(136,163,188,.18)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.hidden-category-heading strong{font-size:20px!important;letter-spacing:-.02em!important}
.hidden-category-heading small{font-size:11.5px!important;color:#8ca4bb!important}
.hidden-count-badge{
  min-width:76px!important;
  height:40px;
  padding:0 13px!important;
  display:grid!important;place-items:center!important;
  border-radius:12px!important;
  color:#b9cce0!important;
  background:rgba(102,131,159,.1)!important;
  border-color:rgba(128,158,186,.16)!important;
  font-size:11px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
}

/* Bulk selection bar */
.hidden-category-bulkbar{
  min-height:66px;
  padding:12px 14px!important;
  margin-bottom:18px!important;
  border-radius:16px!important;
  background:linear-gradient(180deg,rgba(4,15,27,.72),rgba(4,13,23,.55))!important;
  border-color:rgba(95,151,202,.18)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018)!important;
}
.hidden-select-all{
  min-height:42px;
  padding:0 12px 0 8px;
  border-radius:11px;
  gap:11px!important;
  color:#d3e1ed!important;
  font-size:11.5px!important;
  transition:background .16s ease,color .16s ease;
}
.hidden-select-all:hover{background:rgba(45,135,218,.08);color:#f1f8ff!important}
.hidden-bulk-actions{gap:9px!important}
.hidden-bulk-actions .btn{
  min-height:42px!important;
  padding:0 15px!important;
  border-radius:11px!important;
  font-size:10.5px!important;
  font-weight:850!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}

/* Custom checkbox used in hidden categories */
.hidden-select-all input[type="checkbox"],
.hidden-category-select-wrap input[type="checkbox"]{
  -webkit-appearance:none!important;
  appearance:none!important;
  width:22px!important;height:22px!important;min-width:22px!important;
  margin:0!important;
  border:1.5px solid rgba(141,171,199,.46)!important;
  border-radius:7px!important;
  background:linear-gradient(145deg,rgba(17,32,48,.96),rgba(8,20,33,.98))!important;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.35),0 0 0 1px rgba(255,255,255,.015)!important;
  cursor:pointer!important;
  transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease,background .15s ease!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  background-size:13px 13px!important;
}
.hidden-select-all input[type="checkbox"]:hover,
.hidden-category-select-wrap input[type="checkbox"]:hover{
  transform:translateY(-1px);
  border-color:rgba(88,183,255,.85)!important;
  box-shadow:0 0 0 3px rgba(42,151,241,.09)!important;
}
.hidden-select-all input[type="checkbox"]:checked,
.hidden-category-select-wrap input[type="checkbox"]:checked{
  border-color:#43a8f5!important;
  background-color:#2389dc!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m5 12 4.2 4.2L19 6.8'/%3E%3C/svg%3E")!important;
  box-shadow:0 0 0 3px rgba(44,151,239,.12),0 7px 16px rgba(23,112,187,.18)!important;
}
.hidden-select-all input[type="checkbox"]:focus-visible,
.hidden-category-select-wrap input[type="checkbox"]:focus-visible{
  outline:2px solid rgba(100,194,255,.75)!important;
  outline-offset:3px!important;
}
.hidden-category-select-wrap{
  top:13px!important;left:13px!important;
  width:42px!important;height:42px!important;
  border-radius:12px!important;
  background:linear-gradient(145deg,rgba(5,17,29,.95),rgba(7,21,35,.88))!important;
  border:1px solid rgba(124,164,201,.2)!important;
  box-shadow:0 7px 18px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.02)!important;
}
.hidden-category-tile:has(.hidden-category-select-wrap input:checked) .hidden-category-select-wrap{
  border-color:rgba(67,168,245,.46)!important;
  background:rgba(16,74,121,.48)!important;
}

/* Hidden card: clearer hover + selection */
.hidden-category-tile{
  border-radius:18px!important;
  border-color:rgba(108,161,208,.2)!important;
}
.hidden-category-tile:hover{transform:translateY(-3px)!important}
.hidden-category-tile:has(.hidden-category-select-wrap input:checked){
  border-color:rgba(66,167,247,.7)!important;
  background:
    radial-gradient(circle at 95% 0%,rgba(45,155,246,.19),transparent 36%),
    linear-gradient(145deg,rgba(13,36,60,.99),rgba(7,21,35,.99))!important;
}
.hidden-category-status-pill{top:16px!important;right:54px!important}
.hidden-category-chevron{top:auto!important}

/* Robust responsive behavior for the whole category management area */
@media (max-width:1200px){
  .hidden-category-section,.category-visible-pro{padding:19px!important}
  .category-title-copy strong,.hidden-category-heading strong{font-size:18px!important}
  .hidden-bulk-actions .btn{padding:0 12px!important}
}
@media (max-width:820px){
  .category-section-title-pro,.hidden-category-heading{align-items:flex-start!important}
  .category-title-badge{min-width:70px!important}
  .hidden-category-bulkbar{align-items:stretch!important;gap:10px!important}
  .hidden-select-all{width:100%;padding:0 8px!important}
  .hidden-bulk-actions{width:100%!important;display:grid!important;grid-template-columns:1fr 1fr!important}
  .hidden-bulk-actions .btn{width:100%!important;justify-content:center!important}
}
@media (max-width:600px){
  .hidden-category-section,.category-visible-pro{padding:14px!important;border-radius:16px!important}
  .category-section-title-pro,.hidden-category-heading{gap:10px!important;padding-bottom:13px!important;margin-bottom:13px!important}
  .category-title-icon,.hidden-heading-icon{width:42px!important;height:42px!important;min-width:42px!important;border-radius:13px!important;display:grid!important}
  .category-title-copy{gap:10px!important}
  .category-title-copy strong,.hidden-category-heading strong{font-size:16.5px!important}
  .category-title-copy small,.hidden-category-heading small{font-size:10px!important;line-height:1.45!important}
  .category-title-badge{min-width:58px!important;padding:8px!important}
  .category-title-badge b{font-size:18px!important}
  .category-title-badge span{font-size:6.8px!important}
  .hidden-count-badge{min-width:54px!important;height:34px!important;padding:0 8px!important;font-size:9px!important}
  .hidden-category-bulkbar{padding:10px!important;border-radius:13px!important}
  .hidden-select-all{min-height:38px;font-size:10.5px!important}
  .hidden-bulk-actions{grid-template-columns:1fr!important;gap:7px!important}
  .hidden-bulk-actions .btn{min-height:40px!important;font-size:10px!important}
  .hidden-category-select-wrap{width:38px!important;height:38px!important;top:11px!important;left:11px!important}
  .hidden-select-all input[type="checkbox"],.hidden-category-select-wrap input[type="checkbox"]{width:20px!important;height:20px!important;min-width:20px!important}
  .hidden-category-status-pill{top:12px!important;right:46px!important}
}
@media (max-width:390px){
  .category-title-icon,.hidden-heading-icon{display:none!important}
  .category-title-badge{min-width:52px!important}
  .hidden-category-heading{min-height:50px!important}
  .hidden-category-heading strong,.category-title-copy strong{font-size:15.5px!important}
}

/* V15 FIX — Hidden-category selection + drag/drop polish */
.hidden-category-select-wrap{
  display:grid!important;
  place-items:center!important;
  overflow:visible!important;
}
.hidden-category-select-wrap input[type="checkbox"]{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  opacity:0!important;
  cursor:pointer!important;
  z-index:3!important;
}
.hidden-category-select-wrap .hidden-checkmark{
  width:23px!important;
  height:23px!important;
  border-radius:8px!important;
  display:grid!important;
  place-items:center!important;
  border:1.5px solid rgba(148,181,211,.48)!important;
  background:linear-gradient(145deg,rgba(18,35,52,.98),rgba(7,20,33,.98))!important;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.42),0 0 0 1px rgba(255,255,255,.018)!important;
  transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease!important;
  pointer-events:none!important;
}
.hidden-category-select-wrap .hidden-checkmark::after{
  content:"";
  width:9px;
  height:5px;
  border-left:2.5px solid #fff;
  border-bottom:2.5px solid #fff;
  transform:rotate(-45deg) scale(.55);
  opacity:0;
  transition:transform .16s ease,opacity .16s ease;
  margin-top:-2px;
}
.hidden-category-select-wrap:hover .hidden-checkmark{
  transform:translateY(-1px);
  border-color:rgba(95,190,255,.9)!important;
  box-shadow:0 0 0 4px rgba(43,151,241,.09),inset 0 1px 2px rgba(0,0,0,.35)!important;
}
.hidden-category-select-wrap input[type="checkbox"]:checked + .hidden-checkmark{
  border-color:#56b7ff!important;
  background:linear-gradient(145deg,#2e9bed,#1677c5)!important;
  box-shadow:0 0 0 4px rgba(43,151,241,.12),0 8px 18px rgba(11,99,169,.25)!important;
}
.hidden-category-select-wrap input[type="checkbox"]:checked + .hidden-checkmark::after{
  opacity:1;
  transform:rotate(-45deg) scale(1);
}
.hidden-category-select-wrap input[type="checkbox"]:focus-visible + .hidden-checkmark{
  outline:2px solid rgba(111,202,255,.78)!important;
  outline-offset:3px!important;
}

.hidden-category-sortable{
  cursor:default!important;
}
.hidden-category-drag-handle{
  position:absolute!important;
  top:14px!important;
  right:14px!important;
  z-index:8!important;
  width:34px!important;
  height:34px!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid rgba(104,161,211,.2)!important;
  border-radius:10px!important;
  color:#82a3bf!important;
  background:linear-gradient(145deg,rgba(8,25,41,.96),rgba(5,17,29,.94))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 7px 18px rgba(0,0,0,.16)!important;
  cursor:grab!important;
  user-select:none!important;
  touch-action:none!important;
  transition:color .16s ease,border-color .16s ease,background .16s ease,transform .16s ease!important;
}
.hidden-category-drag-handle .icon{width:16px!important;height:16px!important}
.hidden-category-drag-handle:hover{
  color:#b9e2ff!important;
  border-color:rgba(77,171,251,.5)!important;
  background:linear-gradient(145deg,rgba(19,65,103,.96),rgba(8,30,50,.96))!important;
  transform:translateY(-1px);
}
.hidden-category-sortable.is-dragging{
  opacity:.52!important;
  transform:scale(.985)!important;
  border-style:dashed!important;
  border-color:rgba(84,180,255,.72)!important;
  box-shadow:0 0 0 2px rgba(49,151,235,.12),0 18px 40px rgba(0,0,0,.24)!important;
}
.hidden-category-list.is-sorting .hidden-category-sortable:not(.is-dragging){
  transition:transform .12s ease,border-color .12s ease!important;
}
/* keep the hidden badge clear of the drag handle */
.hidden-category-sortable .hidden-category-status-pill{right:58px!important}

@media (max-width:600px){
  .hidden-category-drag-handle{top:11px!important;right:11px!important;width:32px!important;height:32px!important}
  .hidden-category-sortable .hidden-category-status-pill{right:51px!important}
  .hidden-category-select-wrap .hidden-checkmark{width:21px!important;height:21px!important;border-radius:7px!important}
}

/* V16 PRO — smooth cross-zone category drag & responsive hierarchy drop */
.category-dragging *{cursor:grabbing!important}
.category-sortable,.hidden-category-sortable{will-change:transform;transform:translateZ(0);backface-visibility:hidden}
.category-grid-compact.is-sorting .category-card:not(.is-dragging),
.hidden-category-list.is-sorting .hidden-category-tile:not(.is-dragging){
  transition:transform .11s cubic-bezier(.2,.8,.2,1),border-color .11s ease,background .11s ease!important;
  box-shadow:none!important;
}
.category-sortable.is-dragging,.hidden-category-sortable.is-dragging{
  opacity:.38!important;transform:scale(.975) translateZ(0)!important;filter:none!important;
  pointer-events:none!important;box-shadow:none!important;
}
[data-category-sort-zone],.hidden-category-list{position:relative}
[data-category-sort-zone].category-drop-zone-active,
.hidden-category-list.category-drop-zone-hidden{
  outline:2px dashed rgba(72,175,255,.58)!important;outline-offset:5px!important;border-radius:16px!important;
}
.category-card.category-drop-parent{
  border-color:rgba(75,191,255,.9)!important;
  background:linear-gradient(145deg,rgba(23,73,110,.94),rgba(10,31,50,.96))!important;
  transform:translateY(-2px) scale(1.012)!important;
  box-shadow:0 0 0 3px rgba(63,171,255,.12)!important;
}
.category-card.category-drop-parent::before{
  content:"Thả vào đây để làm mục con";position:absolute;z-index:20;left:12px;right:12px;bottom:10px;
  min-height:28px;padding:6px 10px;border-radius:9px;display:grid;place-items:center;text-align:center;
  font-size:9px;font-weight:850;letter-spacing:.2px;color:#dff4ff;background:rgba(18,116,184,.9);pointer-events:none;
}
.category-card.category-drop-before::before,.category-card.category-drop-after::before{
  content:"";position:absolute;z-index:22;left:7px;right:7px;height:3px;border-radius:99px;background:#5fc3ff;
  box-shadow:0 0 0 4px rgba(95,195,255,.1),0 0 16px rgba(95,195,255,.42);pointer-events:none;
}
.category-card.category-drop-before::before{top:-8px}.category-card.category-drop-after::before{bottom:-8px}
.category-drag-handle,.hidden-category-drag-handle{touch-action:none!important;cursor:grab!important}
.category-drag-handle:active,.hidden-category-drag-handle:active{cursor:grabbing!important;transform:scale(.96)!important}
.hidden-category-sortable .hidden-category-status-pill{right:58px!important}
@media (hover:none),(pointer:coarse){
  .category-sortable:hover,.hidden-category-tile:hover{transform:none!important}
  .category-drag-handle,.hidden-category-drag-handle{width:38px!important;height:38px!important}
}
@media (max-width:760px){
  .category-card.category-drop-parent::before{font-size:8.5px;left:9px;right:9px;bottom:8px}
  [data-category-sort-zone].category-drop-zone-active,.hidden-category-list.category-drop-zone-hidden{outline-offset:3px!important}
}
@media (prefers-reduced-motion:reduce){
  .category-grid-compact.is-sorting .category-card,.hidden-category-list.is-sorting .hidden-category-tile{transition:none!important}
}


/* V17 SYSTEM SETTINGS — dedicated log channels + smoother responsive UI */
.settings-page-pro{contain:layout paint style}
.settings-grid-pro .settings-section{min-width:0;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
@media(hover:hover){.settings-grid-pro .settings-section:hover{border-color:rgba(77,164,247,.22);box-shadow:0 16px 38px rgba(0,0,0,.12)}}
.settings-subhead{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:2px 0 12px;padding:0 2px}
.settings-subhead>div{min-width:0}.settings-subhead strong{display:block;color:#deebf7;font-size:11.5px;letter-spacing:.15px}.settings-subhead small{display:block;margin-top:4px!important;color:#71869b!important;font-size:9.5px!important}
.settings-subhead>span{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:0 10px;border:1px solid rgba(83,173,245,.18);border-radius:999px;color:#79c8ff;background:rgba(34,128,201,.08);font-size:8px;font-weight:850;letter-spacing:.7px;white-space:nowrap}.settings-subhead>span .icon{width:12px;height:12px}
.log-group-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.log-group-card{min-width:0;display:grid!important;grid-template-columns:42px minmax(0,1fr);align-items:start;gap:11px;padding:14px!important;border:1px solid rgba(111,157,198,.14);border-radius:15px;background:linear-gradient(145deg,rgba(10,26,43,.82),rgba(7,18,31,.72));cursor:text;transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease}
@media(hover:hover){.log-group-card:hover{transform:translateY(-2px);border-color:rgba(75,170,246,.28);background:linear-gradient(145deg,rgba(14,36,59,.9),rgba(7,21,35,.78));box-shadow:0 12px 30px rgba(0,0,0,.14)}}
.log-group-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;border:1px solid rgba(103,165,219,.16);background:rgba(45,126,191,.08)}.log-group-icon .icon{width:17px;height:17px}.log-group-icon.order{color:#70bfff}.log-group-icon.deposit{color:#5cddb0;background:rgba(43,174,128,.08);border-color:rgba(67,209,158,.14)}.log-group-icon.stock{color:#b09aff;background:rgba(118,91,216,.09);border-color:rgba(150,126,238,.14)}
.log-group-copy{min-width:0}.log-group-copy>strong{display:block;color:#dceaf7;font-size:10.5px;line-height:1.35}.log-group-copy>small{display:block!important;min-height:28px;margin:4px 0 9px!important;color:#72889d!important;font-size:8.8px!important;line-height:1.45!important}.log-group-copy>input{min-height:39px!important;padding:9px 11px!important;background:rgba(4,14,24,.55)!important;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:10.5px!important}
.bot-progress-panel .section-heading{position:relative}.bot-log-session-badge{margin-left:auto;display:inline-flex;align-items:center;min-height:27px;padding:0 9px;border:1px solid rgba(61,205,155,.16);border-radius:999px;color:#62d8ad;background:rgba(42,179,135,.07);font-size:7.5px;font-weight:850;letter-spacing:.7px;white-space:nowrap}
.bot-progress-panel .log-terminal{height:300px;scroll-behavior:smooth;border-radius:14px;background:linear-gradient(180deg,#040a10,#06101a);box-shadow:inset 0 1px 0 rgba(255,255,255,.018)}
.bot-progress-panel .log-line{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;padding:5px 2px;border-bottom:1px solid rgba(116,151,180,.045)}.bot-progress-panel .log-line:last-child{border-bottom:0}.bot-progress-panel .log-line time{color:#526d85}.bot-progress-panel .log-line span{overflow-wrap:anywhere}
@media(max-width:1050px){.log-group-grid{grid-template-columns:1fr}.log-group-copy>small{min-height:0}.settings-grid-pro{grid-template-columns:1fr!important}}
@media(max-width:650px){.settings-page-pro .page-heading{gap:10px}.settings-subhead{align-items:flex-start;flex-direction:column}.settings-subhead>span{align-self:flex-start}.log-group-card{grid-template-columns:38px minmax(0,1fr);gap:10px;padding:12px!important;border-radius:13px}.log-group-icon{width:38px;height:38px;border-radius:11px}.log-group-copy>strong{font-size:10px}.log-group-copy>small{font-size:8.5px!important}.bot-progress-panel .section-heading{align-items:flex-start}.bot-log-session-badge{position:absolute;right:0;top:0;font-size:6.8px}.bot-progress-panel .section-heading>div{padding-right:88px}.bot-progress-panel .log-terminal{height:250px;padding:10px;font-size:8.5px}.bot-progress-panel .log-line{grid-template-columns:62px minmax(0,1fr);gap:7px}.bot-actions-spaced{display:grid;grid-template-columns:1fr 1fr;gap:8px}.bot-actions-spaced .btn{width:100%}}
@media(max-width:390px){.settings-grid-pro .settings-section{padding:14px}.settings-hero-badges{display:none}.bot-log-session-badge{display:none}.bot-progress-panel .section-heading>div{padding-right:0}.bot-progress-panel .log-line{grid-template-columns:1fr}.bot-progress-panel .log-line time{font-size:7px}.bot-actions-spaced{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.settings-grid-pro .settings-section,.log-group-card{transition:none!important}.log-terminal{scroll-behavior:auto!important}}


/* =========================================================
   V18 TELEGRAM BROADCAST — LARGE / CLEAR / RESPONSIVE
   ========================================================= */
.telegram-main-grid.telegram-main-grid-single{grid-template-columns:minmax(0,1fr)!important}
.telegram-main-grid-single .telegram-compose-card{width:100%}
.telegram-hero{min-height:250px;padding:34px 36px;gap:34px;border-radius:26px}
.telegram-hero-kicker{font-size:12px;letter-spacing:1.45px;gap:10px}
.telegram-hero-kicker i{width:9px;height:9px}
.telegram-hero h2{margin:16px 0 12px;font-size:40px;line-height:1.08;letter-spacing:-1.8px}
.telegram-hero p{max-width:760px;font-size:14px;line-height:1.75;color:#8da3b8}
.telegram-hero-orb{width:188px;height:188px}
.telegram-hero-orb>span{width:60px;height:60px;border-radius:19px}
.telegram-hero-orb .icon{width:29px;height:29px}
.telegram-hero-orb b{font-size:13px;letter-spacing:1px}
.telegram-hero-orb small{font-size:11px;margin-top:6px}
.telegram-hero-meta{gap:12px}
.telegram-hero-meta span{min-height:82px;padding:15px 18px;border-radius:16px}
.telegram-hero-meta small{font-size:10px}
.telegram-hero-meta strong{font-size:29px}
.telegram-stat-grid{gap:15px;margin-bottom:20px}
.telegram-stat-grid article{min-height:132px;gap:17px;padding:20px;border-radius:19px}
.telegram-stat-icon{width:52px;height:52px;border-radius:15px}
.telegram-stat-icon .icon{width:22px;height:22px}
.telegram-stat-grid small{font-size:10px;letter-spacing:.8px}
.telegram-stat-grid strong{font-size:31px;margin-top:6px}
.telegram-stat-grid p{font-size:11px;margin-top:5px;color:#71879b}
.telegram-live-panel{margin-bottom:20px;padding:22px!important;border-radius:20px}
.telegram-live-panel .panel-title h3{font-size:18px}
.telegram-live-panel .panel-title p{font-size:11px;line-height:1.6}
.telegram-empty-live{min-height:118px;gap:15px}
.telegram-empty-live>span{width:48px;height:48px;border-radius:14px}
.telegram-empty-live strong{font-size:14px}
.telegram-empty-live small{font-size:11px;margin-top:5px}
.telegram-live-job{padding:7px 3px 3px}
.telegram-live-head{align-items:center;gap:22px}
.telegram-live-copy{min-width:0;flex:1}
.telegram-live-head strong{max-width:900px;font-size:15px;line-height:1.45}
.telegram-live-head small{font-size:11px;margin-top:6px}
.telegram-live-controls{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex:0 0 auto}
.telegram-live-controls>b{min-width:68px;text-align:right;color:#55d8b1;font-size:27px;font-variant-numeric:tabular-nums}
.broadcast-stop-button{min-height:42px;padding:0 15px;font-size:11px;font-weight:800;white-space:nowrap}
.broadcast-stop-button .icon{width:15px;height:15px}
.telegram-live-track{height:11px;margin-top:17px}
.telegram-live-stats{gap:11px;margin-top:15px}
.telegram-live-stats span{padding:14px 15px;border-radius:12px}
.telegram-live-stats small{font-size:9px;letter-spacing:.7px}
.telegram-live-stats strong{font-size:14px;margin-top:6px}
.telegram-live-error{margin-top:13px;padding:12px 13px;font-size:11px;border-radius:11px}
.telegram-compose-head{padding:25px 27px 21px;gap:20px}
.telegram-compose-head h3{font-size:20px;margin:8px 0 6px}
.telegram-compose-head p{font-size:11.5px;line-height:1.55}
.telegram-config-pill{min-height:35px;padding:0 12px;font-size:10px}
.telegram-config-pill .icon{width:14px;height:14px}
.telegram-compose-section{padding:23px 27px}
.telegram-section-title{gap:13px;margin-bottom:17px}
.telegram-section-title>span{width:34px;height:34px;border-radius:10px;font-size:11px}
.telegram-section-title strong{font-size:13px}
.telegram-section-title small{font-size:10px;margin-top:4px}
.telegram-target-grid{gap:12px}
.telegram-target-card{min-height:94px;gap:13px;padding:15px 16px;border-radius:14px}
.telegram-target-card>span{width:43px;height:43px;border-radius:12px}
.telegram-target-card>span .icon{width:18px;height:18px}
.telegram-target-card strong{font-size:12px}
.telegram-target-card small{font-size:10px;margin-top:4px}
.telegram-target-card>i{width:9px;height:9px;right:12px;top:12px}
.telegram-target-ids{margin-top:13px;padding:14px;border-radius:13px}
.telegram-target-ids label{font-size:9px;margin-bottom:8px}
.telegram-target-ids textarea{min-height:90px;font-size:12px}
.telegram-media-box{min-height:92px;gap:15px;padding:15px;border-radius:15px}
.telegram-media-icon{width:50px;height:50px;border-radius:14px}
.telegram-media-icon .icon{width:21px;height:21px}
#broadcastMediaInfo strong{font-size:12px}
#broadcastMediaInfo small{font-size:10px;margin-top:5px}
.telegram-media-actions .btn{min-height:38px;font-size:10px}
.telegram-upload-progress{font-size:10px;margin-top:11px}
.telegram-page-editor #telegramBroadcastMessage{min-height:250px!important;padding:18px!important;font-size:14px!important;line-height:1.72!important}
.telegram-page-editor .broadcast-editor-head label{font-size:11px!important}
.telegram-page-editor .broadcast-editor-head small,#telegramBroadcastCount{font-size:10px!important}
.telegram-page-editor .broadcast-format-toolbar button{min-width:38px!important;height:34px!important;font-size:11px!important}
.telegram-schedule-toggle{min-height:72px;gap:13px;padding:13px 15px;border-radius:13px}
.telegram-schedule-toggle>span{width:42px;height:23px}
.telegram-schedule-toggle>span::after{width:15px;height:15px;left:3px;top:3px}
.telegram-schedule-toggle input:checked+span::after{left:22px}
.telegram-schedule-toggle strong{font-size:12px}
.telegram-schedule-toggle small{font-size:10px;margin-top:4px}
.telegram-schedule-field>span{font-size:9px;margin-bottom:8px}
.telegram-schedule-field input{min-height:47px;font-size:12px}
.telegram-compose-footer{padding:20px 27px}
.telegram-audience-preview>span{width:42px;height:42px;border-radius:12px}
.telegram-audience-preview .icon{width:18px;height:18px}
.telegram-audience-preview small{font-size:9px}
.telegram-audience-preview strong{font-size:20px;margin-top:3px}
.telegram-send-button{min-width:210px;min-height:48px;font-size:12px;font-weight:800}
.telegram-send-note{padding:13px 27px 17px;font-size:10px;line-height:1.5}
.telegram-history-panel>.panel-head{padding:21px 22px}
.telegram-history-panel .panel-title h3{font-size:17px}
.telegram-history-panel .panel-title p{font-size:11px;line-height:1.5}
.broadcast-history-total{min-height:34px;padding:0 12px;font-size:10px}
.telegram-history-table th{font-size:10px!important;padding-top:14px!important;padding-bottom:14px!important}
.telegram-history-table td{font-size:11px!important;padding-top:14px!important;padding-bottom:14px!important}
.broadcast-history-main{min-width:270px;max-width:560px}
.broadcast-history-main strong{font-size:12px;line-height:1.5}
.broadcast-history-main small{font-size:9.5px;margin-top:6px}
.broadcast-counts b{font-size:13px}.broadcast-counts span{font-size:10px}.broadcast-counts small{font-size:9px}
.broadcast-status{min-height:30px;padding:0 10px;font-size:9px;letter-spacing:.4px}

@media(max-width:1180px){
  .telegram-hero{grid-template-columns:minmax(0,1fr) 190px;padding:30px}
  .telegram-hero h2{font-size:36px}
}
@media(max-width:760px){
  .telegram-hero{grid-template-columns:1fr;padding:22px 18px;gap:24px;border-radius:20px}
  .telegram-hero h2{font-size:31px;letter-spacing:-1.1px}
  .telegram-hero p{font-size:12.5px}
  .telegram-hero-orb{width:158px;height:158px}
  .telegram-stat-grid{grid-template-columns:1fr 1fr;gap:10px}
  .telegram-stat-grid article{min-height:118px;padding:16px;gap:13px}
  .telegram-stat-grid strong{font-size:26px}
  .telegram-stat-grid p{white-space:normal;font-size:10px}
  .telegram-live-panel{padding:17px!important}
  .telegram-live-head{align-items:flex-start;flex-direction:column}
  .telegram-live-controls{width:100%;justify-content:space-between}
  .telegram-live-controls>b{text-align:left;font-size:24px}
  .broadcast-stop-button{min-height:40px}
  .telegram-live-stats{grid-template-columns:1fr 1fr}
  .telegram-compose-head{padding:20px 17px 17px;flex-direction:column}
  .telegram-compose-section{padding:19px 17px}
  .telegram-compose-footer{padding:17px;align-items:stretch;flex-direction:column}
  .telegram-send-note{padding:12px 17px 16px}
  .telegram-target-grid{grid-template-columns:1fr}
  .telegram-schedule-section{grid-template-columns:1fr}
  .telegram-media-box{grid-template-columns:auto 1fr}
  .telegram-media-actions{grid-column:1/-1}
  .telegram-send-button{width:100%;min-width:0}
  .telegram-history-panel>.panel-head{padding:18px 17px}
}
@media(max-width:520px){
  .telegram-stat-grid{grid-template-columns:1fr}
  .telegram-stat-grid article{min-height:106px}
  .telegram-live-controls{align-items:stretch;flex-direction:column}
  .telegram-live-controls>b{text-align:left}
  .broadcast-stop-button{width:100%}
  .telegram-live-stats{grid-template-columns:1fr}
  .telegram-page-editor #telegramBroadcastMessage{min-height:220px!important;font-size:13px!important}
  .telegram-media-actions{display:grid;grid-template-columns:1fr}
  .telegram-media-actions .btn{width:100%}
}


/* ===== VNDEVCODE Dashboard + Users + Ledger V3 ===== */
.dashboard-v3,.users-page-v2,.ledger-page{display:grid;gap:20px;min-width:0}
.dashboard-hero-v3{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(240px,.75fr) minmax(220px,.6fr);gap:22px;align-items:center;padding:30px;border:1px solid rgba(75,142,255,.2);background:radial-gradient(circle at 82% 15%,rgba(93,95,255,.14),transparent 31%),linear-gradient(135deg,rgba(16,26,48,.98),rgba(9,15,29,.98))}
.dashboard-hero-v3:after{content:"";position:absolute;inset:auto -80px -120px auto;width:330px;height:330px;border:1px solid rgba(95,150,255,.14);border-radius:50%;box-shadow:0 0 0 45px rgba(80,120,255,.035),0 0 0 90px rgba(80,120,255,.025);pointer-events:none}
.dash-hero-copy,.dash-today-focus,.dash-bot-health{position:relative;z-index:1}.dash-kicker{display:inline-flex;align-items:center;gap:9px;font-size:12px;letter-spacing:.16em;font-weight:800;color:#8fbaff}.dash-kicker i{width:8px;height:8px;border-radius:50%;background:#57e8aa;box-shadow:0 0 0 6px rgba(87,232,170,.1)}
.dash-hero-copy h2{margin:12px 0 8px;font-size:clamp(26px,3.2vw,46px);line-height:1.05;letter-spacing:-.045em;color:#fff}.dash-hero-copy h2 em{font-style:normal;background:linear-gradient(90deg,#77b7ff,#7ce8c3);-webkit-background-clip:text;color:transparent}.dash-hero-copy p{max-width:650px;margin:0;color:#9eacc3;font-size:14px;line-height:1.65}.dash-hero-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.dash-hero-tags span{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:rgba(255,255,255,.035);font-size:12px;color:#bdc9dc}.dash-hero-tags .icon{width:15px;height:15px}
.dash-today-focus{padding:20px;border-radius:18px;border:1px solid rgba(97,155,255,.19);background:linear-gradient(145deg,rgba(49,105,204,.18),rgba(25,44,75,.28));box-shadow:inset 0 1px rgba(255,255,255,.035)}.dash-today-focus>span{font-size:11px;letter-spacing:.12em;font-weight:800;color:#7fa8e9}.dash-today-focus strong{display:block;margin:8px 0 5px;font-size:clamp(25px,2.6vw,38px);letter-spacing:-.04em;color:#fff}.dash-today-focus small{color:#91a2bc}.dash-focus-line{height:5px;background:rgba(255,255,255,.07);border-radius:999px;margin-top:15px;overflow:hidden}.dash-focus-line i{display:block;width:74%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#4c8fff,#64e0bf)}
.dash-bot-health{display:flex;gap:12px;align-items:center;padding:18px;border-radius:18px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07)}.dash-bot-health.online{border-color:rgba(64,221,155,.22);background:rgba(38,143,101,.08)}.dash-bot-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:#1b2b48;color:#7eb4ff}.dash-bot-health.online .dash-bot-icon{color:#63e6ad;background:rgba(44,190,127,.12)}.dash-bot-icon .icon{width:22px;height:22px}.dash-bot-health div{min-width:0}.dash-bot-health small,.dash-bot-health em{display:block;font-style:normal;color:#8293ad;font-size:10px;letter-spacing:.08em}.dash-bot-health strong{display:block;margin:4px 0;font-size:13px;color:#ecf4ff}
.today-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.today-stat{min-width:0;display:flex;gap:14px;align-items:center;padding:19px;border-radius:18px;border:1px solid var(--border);background:linear-gradient(145deg,var(--surface),rgba(255,255,255,.018));box-shadow:0 12px 35px rgba(4,10,20,.12)}.today-icon{width:46px;height:46px;flex:0 0 46px;display:grid;place-items:center;border-radius:14px}.today-icon .icon{width:21px}.today-stat small{display:block;color:var(--muted);font-size:10px;letter-spacing:.08em;font-weight:800}.today-stat strong{display:block;margin:4px 0 1px;font-size:clamp(19px,2vw,28px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.03em}.today-stat em{font-style:normal;color:var(--muted);font-size:11px}.today-revenue .today-icon{background:rgba(42,199,124,.12);color:#46d89b}.today-deposit .today-icon{background:rgba(117,95,255,.12);color:#9d8cff}.today-users .today-icon{background:rgba(53,142,255,.12);color:#63a4ff}.today-balance .today-icon{background:rgba(244,170,65,.12);color:#f5b75b}
.dashboard-main-grid-v3{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,.7fr);gap:18px}.dashboard-chart-card,.dashboard-finance-card{min-width:0}.dashboard-chart-card .panel-head{align-items:flex-start}.dashboard-chart-legend{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;white-space:nowrap}.legend-line{width:22px;height:3px;border-radius:99px;background:linear-gradient(90deg,#2b8cff,#66e3bf)}.legend-bar{width:10px;height:14px;border-radius:3px;background:#806ef8;margin-left:7px}.chart-wrap-v3{min-height:280px;padding:5px 2px 0}.dashboard-money-chart{width:100%;height:270px;overflow:visible}.dashboard-deposit-bar{fill:url(#depositBar);opacity:.55}.dashboard-revenue-line{stroke:url(#dashLine)!important;stroke-width:3.2}.dashboard-revenue-dot{fill:#0f1c31;stroke:#64c8ff;stroke-width:2}.dashboard-finance-card{padding:22px;display:flex;flex-direction:column;gap:17px}.dashboard-finance-card>header{display:flex;justify-content:space-between;gap:12px;align-items:center}.dashboard-finance-card>header span{font-size:10px;letter-spacing:.12em;font-weight:800;color:#7099d3}.dashboard-finance-card h3{margin:4px 0 0;font-size:18px}.finance-big{padding:20px;border-radius:16px;background:linear-gradient(135deg,rgba(48,201,128,.12),rgba(36,108,213,.08));border:1px solid rgba(64,204,137,.15)}.finance-big small{display:block;color:#75b99c;font-weight:800;font-size:10px;letter-spacing:.1em}.finance-big strong{display:block;margin-top:5px;font-size:31px;letter-spacing:-.04em}.finance-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.finance-mini-grid span{padding:13px;border-radius:13px;background:var(--surface-2);border:1px solid var(--border)}.finance-mini-grid small{display:block;color:var(--muted);font-size:9px;letter-spacing:.08em}.finance-mini-grid b{display:block;margin-top:4px;font-size:14px}.dashboard-ledger-link{margin-top:auto;width:100%;border:1px solid rgba(84,142,255,.17);background:rgba(70,121,219,.06);color:#86b4ff;border-radius:12px;padding:12px 14px;display:flex;align-items:center;gap:9px;cursor:pointer;font-weight:750}.dashboard-ledger-link .icon:last-child{margin-left:auto}
.dashboard-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.dash-quick-card{text-align:left;display:grid;grid-template-columns:44px minmax(0,1fr) 18px;align-items:center;gap:11px;padding:16px;border:1px solid var(--border);border-radius:16px;background:var(--surface);color:var(--text);cursor:pointer;transition:.18s ease}.dash-quick-card:hover{transform:translateY(-2px);border-color:rgba(79,142,255,.28);box-shadow:0 12px 30px rgba(7,16,31,.13)}.dash-quick-card>span{width:44px;height:44px;border-radius:13px;background:var(--surface-2);display:grid;place-items:center;color:#6ba8ff}.dash-quick-card small,.dash-quick-card em{display:block;color:var(--muted);font-size:10px;font-style:normal}.dash-quick-card strong{display:block;margin:2px 0;font-size:21px}.dash-quick-card>.icon{width:16px;color:var(--muted)}
.users-summary-grid,.ledger-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.users-summary-grid article,.ledger-summary-grid article{display:flex;align-items:center;gap:13px;padding:17px;border:1px solid var(--border);background:var(--surface);border-radius:16px}.users-summary-grid article>span,.ledger-summary-grid article>span{width:43px;height:43px;border-radius:13px;background:var(--surface-2);display:grid;place-items:center;color:#6da9ff}.users-summary-grid small,.ledger-summary-grid small{display:block;color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.08em}.users-summary-grid strong,.ledger-summary-grid strong{display:block;margin-top:3px;font-size:20px}.users-table-panel,.ledger-table-panel{overflow:hidden}.users-pro-table th,.ledger-table th{font-size:10px;letter-spacing:.04em}.users-pro-table td{vertical-align:middle}.user-main-cell strong{font-size:13px}.user-balance{font-weight:800;color:#68d4a4}.user-money-stack strong,.user-money-stack small{display:block}.user-money-stack strong{font-size:13px}.user-money-stack small{margin-top:3px;color:var(--muted);font-size:10px}.user-detail-btn{color:#70aaff}
.ledger-table-head{padding:18px 20px;display:flex;justify-content:space-between;gap:15px;align-items:center;border-bottom:1px solid var(--border)}.ledger-table-head h3{margin:4px 0 0}.ledger-table-head>span{font-size:11px;color:var(--muted);border:1px solid var(--border);padding:7px 9px;border-radius:10px}.ledger-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;color:#8eb9ff}.ledger-source{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:850;letter-spacing:.05em;background:var(--surface-2);border:1px solid var(--border)}.ledger-source-admin{color:#f2b45d;background:rgba(242,180,93,.08)}.ledger-source-deposit{color:#55d49f;background:rgba(85,212,159,.08)}.ledger-source-order{color:#72aaff;background:rgba(114,170,255,.08)}.ledger-source-refund{color:#f08f8f;background:rgba(240,143,143,.08)}.ledger-source-wheel{color:#aa8cff;background:rgba(170,140,255,.08)}.ledger-type strong,.ledger-type small{display:block}.ledger-type strong{font-size:10px}.ledger-type small{margin-top:3px;max-width:250px;white-space:normal;line-height:1.4;color:var(--muted)}.ledger-before,.ledger-after{font-size:11px;font-weight:700}.ledger-amount{font-weight:900;white-space:nowrap}.ledger-amount.credit{color:#4fd69c}.ledger-amount.debit{color:#f07f88}.ledger-admin{font-size:10px;color:var(--muted)}
.member-profile-v2{display:grid;gap:16px}.member-profile-v2 .member-profile-preview{position:relative;padding:18px;border:1px solid var(--border);border-radius:16px;background:linear-gradient(135deg,var(--surface-2),transparent)}.profile-state{margin-left:auto;align-self:center;padding:6px 9px;border-radius:999px;font-size:9px;letter-spacing:.07em}.profile-state.active{color:#50d89e;background:rgba(80,216,158,.1)}.profile-state.locked{color:#f07f88;background:rgba(240,127,136,.1)}.member-kpi-grid,.member-meta-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.member-kpi-grid span,.member-meta-grid span{padding:13px;border:1px solid var(--border);border-radius:13px;background:var(--surface-2)}.member-kpi-grid small,.member-meta-grid small{display:block;font-size:9px;color:var(--muted);letter-spacing:.06em}.member-kpi-grid strong{display:block;margin-top:4px;font-size:16px}.member-meta-grid strong{display:block;margin-top:4px;font-size:11px;line-height:1.4}.member-adjust-card{padding:16px;border-radius:15px;border:1px solid rgba(81,142,255,.18);background:rgba(65,117,205,.05)}.member-adjust-head>div{display:flex;align-items:center;gap:10px;margin-bottom:13px}.member-adjust-head>div>span{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:rgba(77,137,240,.1);color:#73abff}.member-adjust-head strong,.member-adjust-head small{display:block}.member-adjust-head small{margin-top:2px;color:var(--muted);font-size:10px}.member-history{border:1px solid var(--border);border-radius:15px;overflow:hidden}.member-history>header{padding:13px 15px;display:flex;justify-content:space-between;gap:12px;align-items:center;background:var(--surface-2)}.member-history>header>div{display:flex;gap:9px;align-items:center}.member-history header strong,.member-history header small{display:block}.member-history header small{font-size:10px;color:var(--muted);margin-top:2px}.compact-ledger th,.compact-ledger td{font-size:10px;padding:10px}.user-lock-row{padding:10px 0}
@media(max-width:1180px){.dashboard-hero-v3{grid-template-columns:1fr 1fr}.dash-bot-health{grid-column:1/-1}.today-stat-grid,.dashboard-quick-grid,.users-summary-grid,.ledger-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-main-grid-v3{grid-template-columns:1fr}.member-kpi-grid,.member-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.dashboard-v3,.users-page-v2,.ledger-page{gap:14px}.dashboard-hero-v3{grid-template-columns:1fr;padding:20px}.dash-bot-health{grid-column:auto}.today-stat-grid,.dashboard-quick-grid,.users-summary-grid,.ledger-summary-grid{grid-template-columns:1fr 1fr;gap:9px}.today-stat{padding:13px;gap:10px}.today-icon{width:38px;height:38px;flex-basis:38px}.today-stat strong{font-size:17px}.today-stat em{font-size:9px}.dashboard-chart-legend{display:none}.chart-wrap-v3{min-height:230px}.dashboard-money-chart{height:220px}.finance-mini-grid{grid-template-columns:1fr 1fr}.dash-quick-card{padding:12px;grid-template-columns:38px minmax(0,1fr) 16px}.dash-quick-card>span{width:38px;height:38px}.member-kpi-grid,.member-meta-grid{grid-template-columns:1fr 1fr}.member-profile-v2 .member-profile-preview{align-items:flex-start}.profile-state{position:absolute;right:10px;top:10px}.ledger-table-panel,.users-table-panel{border-radius:14px}.ledger-table-head{padding:14px}.users-pro-table,.ledger-table{min-width:1050px}}
@media(max-width:460px){.today-stat-grid,.dashboard-quick-grid,.users-summary-grid,.ledger-summary-grid{grid-template-columns:1fr}.finance-mini-grid,.member-kpi-grid,.member-meta-grid{grid-template-columns:1fr}.dash-hero-tags{display:none}.dash-today-focus strong{font-size:27px}.member-history>header{align-items:flex-start;flex-direction:column}.member-history>header .btn{width:100%;justify-content:center}}


/* ===== V20 DELTA · Dashboard orbit + member filters ===== */
.dashboard-hero-v3{grid-template-columns:minmax(0,1.25fr) minmax(210px,.58fr) minmax(240px,.72fr)}
.dashboard-orbit-zone{position:relative;z-index:2;display:grid;justify-items:center;align-content:center;min-width:0;padding:2px 0}
.dashboard-ops-core{width:220px;height:220px;transform:translateZ(0);transition:transform .3s ease,filter .3s ease}
.dashboard-orbit-zone:hover .dashboard-ops-core{transform:scale(1.035);filter:brightness(1.08)}
.dashboard-orbit-caption{display:flex;align-items:center;justify-content:center;gap:7px;max-width:230px;margin-top:-4px;color:#71879f;font-size:9px;text-align:center;letter-spacing:.02em}
.dashboard-orbit-caption i{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:#6d7d90;box-shadow:0 0 0 5px rgba(109,125,144,.08)}
.dashboard-orbit-caption i.online{background:#50e1ac;box-shadow:0 0 0 5px rgba(80,225,172,.08),0 0 14px rgba(80,225,172,.5)}

/* Hover đồng bộ cho Dashboard: nổi khối nhẹ, không làm giật layout. */
.dashboard-v3 .today-stat,.dashboard-v3 .dashboard-chart-card,.dashboard-v3 .dashboard-finance-card,.dashboard-v3 .dashboard-bottom-v3>.panel,.dashboard-v3 .dash-today-focus,.users-summary-grid article{transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease,background .22s ease;will-change:transform}
.dashboard-v3 .today-stat:hover,.dashboard-v3 .dashboard-chart-card:hover,.dashboard-v3 .dashboard-finance-card:hover,.dashboard-v3 .dashboard-bottom-v3>.panel:hover,.dashboard-v3 .dash-today-focus:hover,.users-summary-grid article:hover{transform:translateY(-4px);border-color:rgba(88,157,255,.3);box-shadow:0 20px 48px rgba(3,11,24,.2)}
.dashboard-v3 .today-stat:hover .today-icon,.users-summary-grid article:hover>span{transform:scale(1.06)}
.today-icon,.users-summary-grid article>span{transition:transform .22s ease,filter .22s ease}
.dashboard-v3 .today-stat:hover .today-icon{filter:drop-shadow(0 8px 15px rgba(61,137,255,.18))}

/* Bộ lọc thành viên */
.users-filter-cluster{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}
.users-filter-cluster>label{display:grid;gap:5px;min-width:150px}
.users-filter-cluster>label>span{padding-left:2px;color:var(--muted);font-size:8px;font-weight:850;letter-spacing:.09em}
.users-filter-cluster .filter-select{min-width:150px;max-width:220px}
.users-filter-cluster .users-page-size .filter-select{min-width:180px}
.users-filter-result{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-3px 0 12px;padding:10px 13px;border:1px solid rgba(83,147,240,.13);border-radius:12px;background:rgba(55,104,180,.045);color:var(--muted);font-size:10px}
.users-filter-result>span{display:flex;align-items:center;gap:7px}.users-filter-result .icon{width:14px;color:#75aaff}.users-filter-result strong{color:var(--text)}.users-filter-result small{font-size:9px;color:var(--muted)}
.users-page-v2 .toolbar{align-items:flex-end}.users-page-v2 .toolbar-left{align-items:flex-end;flex-wrap:wrap}.users-page-v2 .toolbar-search-wrap{align-items:flex-end}
.users-page-v2 .toolbar-right{align-self:flex-end}

@media(max-width:1180px){
  .dashboard-hero-v3{grid-template-columns:minmax(0,1fr) 220px}.dashboard-orbit-zone{grid-column:2;grid-row:1}.dash-hero-copy{grid-column:1;grid-row:1}.dash-today-focus{grid-column:1/-1}.dashboard-ops-core{width:205px;height:205px}
  .users-filter-cluster{width:100%}.users-filter-cluster>label{flex:1 1 180px}.users-filter-cluster .filter-select{width:100%;max-width:none}
}
@media(max-width:720px){
  .dashboard-hero-v3{grid-template-columns:1fr}.dash-hero-copy,.dashboard-orbit-zone,.dash-today-focus{grid-column:auto;grid-row:auto}.dashboard-orbit-zone{order:2}.dash-today-focus{order:3}.dashboard-ops-core{width:190px;height:190px}
  .users-page-v2 .toolbar-left,.users-filter-cluster{display:grid;grid-template-columns:1fr;width:100%}.users-filter-cluster>label,.users-filter-cluster .filter-select{width:100%;max-width:none;min-width:0}.users-filter-result{align-items:flex-start;flex-direction:column}.users-filter-result small{line-height:1.5}
}
@media(max-width:460px){.dashboard-ops-core{width:175px;height:175px}.dashboard-orbit-caption{font-size:8px}.users-filter-result{padding:9px 10px}}
@media(hover:none){.dashboard-v3 .today-stat:hover,.dashboard-v3 .dashboard-chart-card:hover,.dashboard-v3 .dashboard-finance-card:hover,.dashboard-v3 .dashboard-bottom-v3>.panel:hover,.dashboard-v3 .dash-today-focus:hover,.users-summary-grid article:hover{transform:none}}


/* V15 · Deposit / ACB recharge white command center */
.deposit-page{display:grid;gap:18px}
.payment-overview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.payment-overview-card{display:flex;align-items:flex-start;gap:16px;padding:20px 18px;border:1px solid rgba(15,23,42,.08);border-radius:18px;background:#fff;box-shadow:0 10px 35px rgba(15,23,42,.04)}
.payment-overview-icon{width:46px;height:46px;flex:0 0 46px;display:grid;place-items:center;border-radius:14px}
.payment-overview-icon .icon{width:20px;height:20px}
.payment-overview-icon.soft-red{background:rgba(239,68,68,.10);color:#ef4444}
.payment-overview-icon.soft-green{background:rgba(16,185,129,.10);color:#10b981}
.payment-overview-icon.soft-blue{background:rgba(99,102,241,.10);color:#6366f1}
.payment-overview-icon.soft-orange{background:rgba(251,146,60,.12);color:#f97316}
.payment-overview-card span{display:block;color:#64748b;font-size:13px;font-weight:700}
.payment-overview-card strong{display:block;margin-top:8px;color:#0f172a;font-size:18px;line-height:1.2}
.payment-overview-card small{display:flex;align-items:center;gap:8px;margin-top:10px;color:#94a3b8;font-size:12px;line-height:1.5}
.deposit-dot{width:8px;height:8px;border-radius:999px;background:#cbd5e1;display:inline-block}
.deposit-dot.is-online{background:#10b981;box-shadow:0 0 0 4px rgba(16,185,129,.12)}
.text-success{color:#10b981!important}.text-danger{color:#ef4444!important}
.deposit-tabs{display:flex;align-items:center;gap:8px;padding:0 2px;border-bottom:1px solid rgba(15,23,42,.08)}
.deposit-tab{min-height:44px;display:inline-flex;align-items:center;gap:8px;padding:0 14px;border:0;border-bottom:2px solid transparent;background:transparent;color:#64748b;font-weight:700;cursor:pointer;transition:.18s ease}
.deposit-tab .icon{width:16px;height:16px}
.deposit-tab b{min-width:22px;height:22px;padding:0 6px;border-radius:999px;display:grid;place-items:center;background:#fee2e2;color:#ef4444;font-size:11px}
.deposit-tab.is-active{color:#ef4444;border-bottom-color:#ef4444}
.deposit-tab-panel{display:none}.deposit-tab-panel.is-active{display:block}
.payment-config-grid-v2{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(320px,.74fr);gap:18px}
.payment-form-card,.payment-qr-card,.deposit-history-card-v2{padding:0;border:1px solid rgba(15,23,42,.08);border-radius:20px;background:#fff;overflow:hidden;box-shadow:0 12px 36px rgba(15,23,42,.04)}
.payment-card-head{display:flex;align-items:flex-start;gap:14px;padding:22px 24px 16px;border-bottom:1px solid rgba(15,23,42,.06)}
.payment-card-head.align-center{align-items:center}
.payment-card-badge{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:rgba(239,68,68,.10);color:#ef4444;flex:0 0 40px}
.payment-card-badge.qr{background:rgba(99,102,241,.1);color:#6366f1}
.payment-card-badge .icon{width:18px;height:18px}
.payment-card-head h3{margin:0;color:#0f172a;font-size:26px;line-height:1.25}
.payment-card-head p{margin:6px 0 0;color:#94a3b8;font-size:13px;line-height:1.5}
.deposit-form-grid{padding:18px 24px 24px}
.payment-form-card .form-group label{color:#334155;font-weight:700}
.payment-form-card input,.payment-form-card select,.payment-form-card textarea{border-color:#e2e8f0;background:#fff;color:#0f172a;box-shadow:none}
.payment-form-card input[readonly]{color:#2563eb;background:#f8fafc;font-weight:800}
.payment-form-card input::placeholder,.payment-form-card textarea::placeholder{color:#94a3b8}
.payment-form-card small{color:#94a3b8}
.deposit-inline-settings{margin-top:2px;padding:16px;border:1px solid #eef2f7;border-radius:16px;background:#fafcff}
.deposit-inline-heading{display:flex;align-items:flex-start;gap:12px;margin-bottom:14px}
.deposit-inline-heading>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:rgba(239,68,68,.1);color:#ef4444}
.deposit-inline-heading strong{display:block;color:#0f172a;font-size:14px}.deposit-inline-heading small{display:block;margin-top:4px;color:#94a3b8;font-size:12px}
.deposit-mode-grid-inline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.deposit-mode-option{position:relative;display:grid;gap:8px;padding:14px 14px 12px;border:1px solid #e2e8f0;border-radius:16px;background:#fff;cursor:pointer;transition:.18s ease}
.deposit-mode-option input{position:absolute;opacity:0;pointer-events:none}.deposit-mode-check{width:18px;height:18px;border:2px solid #cbd5e1;border-radius:999px;display:inline-block}
.deposit-mode-option strong{color:#0f172a;font-size:14px}.deposit-mode-option small{min-height:32px;color:#94a3b8;font-size:12px;line-height:1.4}.deposit-mode-option code{padding:7px 9px;border-radius:10px;background:#f8fafc;color:#2563eb;font-size:12px;font-weight:700;word-break:break-word}
.deposit-mode-option.active{border-color:rgba(239,68,68,.45);box-shadow:0 0 0 3px rgba(239,68,68,.08);background:#fff7f7}.deposit-mode-option.active .deposit-mode-check{border-color:#ef4444;background:radial-gradient(circle at center,#ef4444 0 45%,transparent 46%)}
.deposit-prefix-group{display:grid;gap:9px;margin-top:14px}.deposit-prefix-group.is-hidden{display:none}
.deposit-prefix-input{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px;border:1px solid #e2e8f0;border-radius:14px;background:#fff}.deposit-prefix-input>span:first-child,.deposit-prefix-input>span:last-child{height:40px;padding:0 14px;display:inline-flex;align-items:center;border-radius:10px;background:#f8fafc;color:#0f172a;font-weight:800}.deposit-prefix-input input{border:0!important;padding:0!important;background:transparent!important}
.secret-state.saved{color:#10b981}.secret-state.missing{color:#f59e0b}
.payment-toggle-list{display:grid;gap:12px;padding:0 24px 24px}.payment-toggle-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 16px;border:1px solid #eef2f7;border-radius:16px;background:#fafcff}.payment-toggle-row strong{display:block;color:#0f172a;font-size:14px}.payment-toggle-row small{display:block;margin-top:3px;color:#94a3b8;font-size:12px}
.toggle-indicator{width:38px;height:22px;border-radius:999px;position:relative;display:inline-block;background:#cbd5e1;flex:0 0 auto}.toggle-indicator::after{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.2);transition:left .18s ease}.toggle-indicator.is-on{background:#10b981}.toggle-indicator.is-on::after{left:19px}.toggle-indicator.is-off{background:#ef4444}
.payment-settings-actions-v2{margin:0 24px 24px;padding:14px 16px;border:1px solid #eef2f7;border-radius:16px;background:#fafcff}.payment-settings-actions-v2>span{color:#64748b;font-size:12px}.payment-settings-actions-v2 .btn{min-width:230px}.btn-block{justify-content:center}
.payment-qr-card{padding-bottom:24px}.payment-qr-preview-box{padding:24px 24px 8px}.payment-qr-preview-inner{min-height:290px;display:grid;place-items:center;padding:24px;border:1px solid #eef2f7;border-radius:18px;background:linear-gradient(180deg,#ffffff,#f8fafc)}
.payment-qr-preview-inner img{max-width:100%;width:min(260px,100%);height:auto;display:block;filter:drop-shadow(0 14px 30px rgba(15,23,42,.08))}
.payment-qr-empty{display:grid;gap:10px;justify-items:center;text-align:center;color:#94a3b8}.payment-qr-empty>span{width:56px;height:56px;display:grid;place-items:center;border-radius:16px;background:#f1f5f9;color:#64748b}.payment-qr-empty .icon{width:24px;height:24px}.payment-qr-empty strong{color:#0f172a;font-size:15px}.payment-qr-empty p{margin:0;max-width:280px;font-size:12px;line-height:1.5}
.payment-qr-meta{display:grid;gap:12px;padding:16px 24px 0}.payment-qr-meta>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 0 12px;border-bottom:1px solid #eef2f7}.payment-qr-meta span{color:#94a3b8;font-size:13px}.payment-qr-meta strong{color:#0f172a;font-size:14px;text-align:right;word-break:break-word}
.payment-helper-card{display:flex;align-items:center;gap:12px;margin:18px 24px 0;padding:14px 16px;border:1px solid #eef2f7;border-radius:16px;background:#fafcff}.payment-helper-card>span{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;background:rgba(99,102,241,.1);color:#6366f1}.payment-helper-card strong{display:block;color:#0f172a;font-size:14px}.payment-helper-card small{display:block;margin-top:4px;color:#94a3b8;font-size:12px}
.deposit-history-toolbar{display:grid;grid-template-columns:minmax(280px,1fr) repeat(2,200px) auto;gap:12px;padding:18px;border-bottom:1px solid rgba(15,23,42,.06)}
.toolbar-search{display:flex;align-items:center;gap:10px;height:46px;padding:0 14px;border:1px solid #e2e8f0;border-radius:14px;background:#fff}.toolbar-search .icon{width:16px;height:16px;color:#94a3b8}.toolbar-search input{width:100%;border:0;background:transparent;color:#0f172a;padding:0;outline:none;box-shadow:none}
.deposit-history-card-v2 .filter-select{height:46px;border-color:#e2e8f0;background:#fff;color:#0f172a}
.deposit-history-table .status{white-space:nowrap}
.deposit-col-code strong,.deposit-transfer-cell strong{display:block;color:#0f172a;font-size:13px}.deposit-col-code small,.deposit-transfer-cell small{display:block;margin-top:4px;color:#94a3b8;font-size:12px;line-height:1.45}.deposit-transfer-cell strong{max-width:360px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.deposit-customer-cell{display:flex;align-items:center;gap:10px;min-width:0}.deposit-customer-cell span{min-width:0}.deposit-customer-cell strong{display:block;color:#0f172a;font-size:13px}.deposit-customer-cell small{display:block;margin-top:4px;color:#94a3b8;font-size:12px}
.deposit-history-avatar{width:38px;height:38px;flex:0 0 38px;border-radius:12px;display:grid;place-items:center;font-weight:800;color:#2563eb;background:#eff6ff;overflow:hidden}.deposit-history-avatar img{width:100%;height:100%;object-fit:cover;display:block}.deposit-history-avatar.is-empty{color:#94a3b8;background:#f1f5f9}
.deposit-amount-cell strong{font-size:14px}.deposit-amount-cell.positive strong{color:#10b981}.deposit-amount-cell.warning strong{color:#f59e0b}.deposit-amount-cell.danger strong{color:#ef4444}
.deposit-history-pill{min-height:34px;padding:0 12px;display:inline-flex;align-items:center;gap:7px;border-radius:10px;font-weight:700;font-size:12px}.deposit-history-pill.success{color:#10b981;background:rgba(16,185,129,.12)}.deposit-history-pill .icon{width:14px;height:14px}
.deposit-history-actions .action-btn-text{min-width:124px;justify-content:center;padding-inline:12px;background:#fff;border-color:#fecaca;color:#ef4444}.deposit-history-actions .action-btn-text:hover{background:#ef4444;color:#fff;border-color:#ef4444}
@media (max-width:1280px){.payment-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.payment-config-grid-v2{grid-template-columns:1fr}.deposit-history-toolbar{grid-template-columns:minmax(200px,1fr) repeat(2,minmax(170px,1fr)) auto}}
@media (max-width:860px){.deposit-mode-grid-inline{grid-template-columns:1fr}.payment-settings-actions-v2{flex-direction:column;align-items:stretch}.payment-settings-actions-v2 .btn{width:100%;min-width:0}.deposit-history-toolbar{grid-template-columns:1fr}.deposit-history-toolbar .btn{width:100%;justify-content:center}.payment-qr-meta>div{align-items:flex-start;flex-direction:column}}
@media (max-width:640px){.payment-overview-grid{grid-template-columns:1fr}.payment-overview-card{padding:16px}.payment-card-head{padding:18px 16px 14px}.payment-card-head h3{font-size:20px}.deposit-form-grid,.payment-toggle-list,.payment-qr-preview-box,.payment-qr-meta,.payment-helper-card{padding-left:16px;padding-right:16px}.payment-helper-card{margin-left:16px;margin-right:16px}.payment-settings-actions-v2{margin:0 16px 16px}.deposit-tabs{overflow:auto;white-space:nowrap}.deposit-tab{padding-inline:10px;font-size:13px}.deposit-col-code small,.deposit-transfer-cell small,.deposit-customer-cell small,.payment-overview-card small{font-size:11px}.payment-qr-preview-inner{min-height:240px;padding:16px}.payment-qr-preview-inner img{width:min(220px,100%)}}


/* V15.1 · polish deposit mode cards and payment page */
.deposit-inline-settings{background:linear-gradient(180deg,#fff,#fafcff);border-color:#e7eef7;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.deposit-inline-heading{margin-bottom:16px}
.deposit-inline-heading>span{box-shadow:0 10px 24px rgba(239,68,68,.14)}
.deposit-mode-grid-inline{gap:14px;align-items:stretch}
.deposit-mode-option{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:9px;min-height:164px;padding:18px 18px 16px;border:1px solid #e2e8f0;border-radius:18px;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.03);overflow:hidden}
.deposit-mode-option::after{content:'';position:absolute;inset:auto 0 0 0;height:4px;background:linear-gradient(90deg,rgba(239,68,68,.0),rgba(239,68,68,.16),rgba(99,102,241,.14));opacity:0;transition:opacity .18s ease}
.deposit-mode-option.active::after{opacity:1}
.deposit-mode-option .deposit-mode-check{position:absolute;top:16px;right:16px;width:20px;height:20px;border:2px solid #cbd5e1;background:#fff;box-shadow:0 3px 8px rgba(15,23,42,.06)}
.deposit-mode-option strong{display:block;padding-right:34px;margin-top:2px;color:#0f172a;font-size:20px;line-height:1.15;letter-spacing:.01em}
.deposit-mode-option small{display:block;min-height:34px;margin:0;color:#64748b;font-size:13px;line-height:1.5}
.deposit-mode-option code{display:inline-flex;align-items:center;max-width:100%;margin-top:auto;padding:9px 12px;border:1px solid #dbeafe;border-radius:999px;background:#f8fbff;color:#2563eb;font-size:13px;font-weight:800;white-space:normal;word-break:break-word}
.deposit-mode-option:hover{transform:translateY(-1px);border-color:#cbd5e1;box-shadow:0 16px 36px rgba(15,23,42,.06)}
.deposit-mode-option.active{border-color:rgba(239,68,68,.44);background:linear-gradient(180deg,#fff7f7,#ffffff);box-shadow:0 0 0 3px rgba(239,68,68,.07),0 16px 36px rgba(239,68,68,.06)}
.deposit-mode-option.active .deposit-mode-check{border-color:#ef4444;background:#fff}.deposit-mode-option.active .deposit-mode-check::after{content:'';position:absolute;inset:4px;border-radius:999px;background:#ef4444}
.payment-toggle-list{padding-top:4px}
.payment-settings-actions-v2{background:linear-gradient(180deg,#fafcff,#fff);border-color:#e7eef7}
.payment-overview-card,.payment-form-card,.payment-qr-card,.deposit-history-card-v2{box-shadow:0 14px 36px rgba(15,23,42,.045)}
@media (max-width:860px){.deposit-mode-option{min-height:unset}.deposit-mode-option strong{font-size:18px}.deposit-mode-option code{font-size:12px}}
@media (max-width:640px){.deposit-inline-settings{padding:14px}.deposit-mode-option{padding:16px 16px 14px;border-radius:16px}.deposit-mode-option strong{font-size:17px;padding-right:30px}.deposit-mode-option small{font-size:12px}.deposit-mode-option .deposit-mode-check{top:14px;right:14px;width:18px;height:18px}}


/* ==== theme-white.css ==== */
/* ============================================================
  VNDEVCODE · WHITE ADMIN THEME — 2026-10-28
  Screenshot-inspired: white navigation/header/cards, cool gray
  canvas, understated red accents. Load AFTER styles.css.
  Theme only: no API/payment/Telegram business logic changed.
   ============================================================ */
:root {
  --bg: #f4f6f9;
  --bg-deep: #edf0f5;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --surface-3: #eff2f6;
  --glass: rgba(255,255,255,.96);
  --border: #e5e8ef;
  --border-strong: #d9dfe8;
  --text: #172235;
  --muted: #748197;
  --muted-2: #93a0af;
  --primary: #e02722;
  --primary-2: #e02722;
  --primary-soft: #fff0ef;
  --cyan: #028eaa;
  --success: #0ba76d;
  --success-soft: #e7f8f1;
  --danger: #e33336;
  --danger-soft: #fff0f1;
  --warning: #bc7b07;
  --warning-soft: #fff5e3;
  --violet: #6754ca;
  --sidebar: 228px;
  --shadow: 0 12px 45px rgba(29,45,75,.12);
  --radius: 5px;
  color-scheme: light;
}
html,body { color-scheme:light; }
body { background:#f4f6f9; color:var(--text); font-size:13px; }
body .ambient { display:none; }
::selection { background:#f8d8d5; color:#831a1c; }
::-webkit-scrollbar-thumb { background:#cdd4df; }
a, .link, .text-link { color:#d92421; }
.icon { stroke-width:1.8; }
:where(button,a,input,select,textarea):focus-visible { outline:2px solid #e44b47; outline-offset:2px; }

/* App chrome */
.sidebar { background:#fff; border-right:1px solid #e4e7ed; box-shadow:none; }
.sidebar-head { height:74px; padding:0 13px 0 17px; }
.sidebar-brand { height:62px; }
.sidebar-brand::after { content:none; animation:none; }
.sidebar-brand img { filter:none; }
.navigation { padding:14px 9px 18px; }
.nav-label { color:#98a2b3; font-size:9px; letter-spacing:1.08px; font-weight:750; margin:16px 11px 10px; text-transform:uppercase; }
.nav-item { min-height:39px; padding:0 12px; gap:11px; border-radius:5px; margin-bottom:3px; font-size:11.8px; font-weight:500; color:#66748a; }
.nav-item .icon { width:16px; height:16px; }
.nav-item:hover { background:#f7f7f9; color:#242f40; }
.nav-item.active { color:#e02722; background:#fff0ef; font-weight:650; }
.nav-item.active::before { left:-9px; height:25px; width:3px; border-radius:0 3px 3px 0; background:#e02722; box-shadow:none; }
.nav-item.active .icon { color:#e02722; }
.nav-item .nav-badge { background:#fff0ef; color:#d92b25; }
.sidebar-bottom { border-top:1px solid var(--border); background:#fff; }
.bot-mini { background:#fafbfc; border-radius:6px; min-height:54px; }
.bot-mini button { background:#f0f2f5; color:#596579; }
.bot-mini button:hover { background:#e7ebf0; }
.bot-mini.running .bot-pulse { background:#0cb878; box-shadow:0 0 0 4px #dbf5ea; }
.profile-card { border-radius:5px; }
.profile-card:hover { background:#f6f7f9; }
.profile-card strong { color:#1e293b; }
.admin-logo { background:#f9fafc; border-color:#edf0f3; box-shadow:none; }
.main-shell { background:#f4f6f9; }
.topbar { height:56px; padding:0 20px; background:#fff; border-bottom:1px solid #e4e7ee; backdrop-filter:none; box-shadow:0 1px 2px rgba(22,35,60,.025); }
.topbar-left > div { display:flex; flex-direction:column-reverse; justify-content:center; gap:2px; }
.topbar h1 { font-size:13px; margin:0; font-weight:700; color:#171d2c; letter-spacing:-.15px; }
.breadcrumb { font-size:9.5px; color:#9ba5b4; }
.breadcrumb b { color:#7c8799; font-weight:500; }
.global-search { border-color:#e5e8ed; background:#fafbfc; color:#8b97a8; height:34px; border-radius:5px; }
.global-search input { color:var(--text); font-size:11px; }
.global-search kbd { color:#9ca7b6; }
.topbar-actions { gap:6px; }
.topbar-actions .icon-btn, .topbar-actions .refresh-btn { background:#fff; color:#758196; }
.topbar-actions .icon-btn:hover, .topbar-actions .refresh-btn:hover { background:#fff8f7; color:#e02722; }
.topbar-account { display:flex; align-items:center; gap:8px; margin-left:5px; padding:4px 2px 4px 12px; border:0; border-left:1px solid #eaedf1; background:transparent; color:var(--text); cursor:pointer; text-align:left; }
.topbar-account:hover { background:#fafafa; }
.topbar-account-avatar { height:33px; width:33px; display:grid; place-items:center; border-radius:10px; background:#e8332c; color:#fff; font-weight:800; font-size:11px; box-shadow:0 8px 18px rgba(232,51,44,.18); }
.topbar-account-copy { display:flex; flex-direction:column; gap:2px; min-width:0; max-width:135px; }
.topbar-account-copy strong { display:block; font-size:11px; color:#243047; font-weight:650; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.topbar-account-copy small { display:block; color:#98a4b3; font-size:9px; }
.topbar-account>.icon { width:13px; height:13px; color:#98a3b2; }
.page-content { padding:22px 20px 40px; max-width:1850px; }
.page-heading { margin-bottom:17px; align-items:center; }
.page-heading h2 { font-size:18px; font-weight:700; letter-spacing:-.25px; color:#151b2a; margin:0 0 8px; }
.page-heading p { color:#8995a7; font-size:11px; }
.date-chip { background:#fff; border:1px solid var(--border); color:#7c8799; height:40px; padding:0 14px; border-radius:12px; box-shadow:0 4px 14px rgba(15,23,42,.04); }

/* Typography and controls */
input, textarea, select { background:#fff; border:1px solid #d9e1eb; color:#263247; border-radius:12px; box-shadow:0 1px 2px rgba(17,24,39,.03); }
input::placeholder,textarea::placeholder { color:#a0aabb; }
input:focus,textarea:focus,select:focus { border-color:#e35d59; background:#fff; box-shadow:0 0 0 4px rgba(224,39,34,.08); }
input:disabled,textarea:disabled,select:disabled { color:#94a0b0; background:#f5f6f8; }
select {
  appearance:none; -webkit-appearance:none; -moz-appearance:none;
  background-color:#fff;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5 10 12.5 15 7.5' stroke='%238A96A8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center; background-size:16px 16px; padding-right:40px;
}
.field > span,.field-label,.form-group label,.settings-grid-pro .form-group label { color:#48556b; font-weight:650; }
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:42px; padding:0 16px; border-radius:12px; border:1px solid transparent;
  font-size:12.5px; font-weight:700; letter-spacing:.01em; line-height:1;
  box-shadow:0 6px 18px rgba(15,23,42,.05);
  transition:background-color .18s,border-color .18s,color .18s,box-shadow .18s,transform .18s;
}
.btn .icon, .btn [data-icon] { width:15px; height:15px; }
.btn:hover { transform:translateY(-1px); box-shadow:0 10px 24px rgba(15,23,42,.08); }
.btn:active { transform:translateY(0); box-shadow:0 4px 12px rgba(15,23,42,.06); }
.btn-primary,.btn-telegram-broadcast {
  background:linear-gradient(180deg,#ea3d35 0%,#da2923 100%);
  border-color:#d92a23; color:#fff; box-shadow:0 10px 22px rgba(217,42,35,.18);
}
.btn-primary:hover,.btn-telegram-broadcast:hover { background:linear-gradient(180deg,#e63730 0%,#ca201a 100%); border-color:#ca211a; }
.btn-soft {
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  color:#516074; border:1px solid #d9e2ec;
}
.btn-soft:hover { background:#ffffff; color:#df2721; border-color:#efc8c6; }
.btn-danger { background:linear-gradient(180deg,#ef595d 0%,#dd3439 100%); border-color:#dc383d; color:#fff; }
.btn-danger-soft { background:#fff0f1; color:#d62e32; border-color:#f5d3d5; }
.btn-success-soft { background:#e9f7f0; color:#078653; border-color:#c8eedb; }
.icon-btn {
  display:inline-grid; place-items:center; width:42px; height:42px; border-radius:12px;
  border:1px solid #dee5ee; background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  color:#758095; box-shadow:0 4px 14px rgba(15,23,42,.04);
}
.icon-btn .icon, .icon-btn [data-icon] { width:17px; height:17px; }
.icon-btn:hover { color:#d9231d; background:#fff8f7; border-color:#f5d9d6; box-shadow:0 8px 20px rgba(217,42,35,.08); }
.segmented { background:#f7f8fa; border-color:#e3e7ee; }
.segmented button { color:#6d7787; }
.segmented button.active { background:#fff; color:#e02722; box-shadow:0 1px 4px rgba(22,35,60,.08); }
.skeleton { background:linear-gradient(100deg,#edf0f4 8%,#f8f9fb 18%,#edf0f4 33%); background-size:200% 100%; }

.btn-group-inline,.toolbar-right,.toolbar-actions,.row-actions,.customer-actions,.modal-card footer,.order-notice-panel footer,.customers-filter-extra { align-items:center; }
.toolbar-right,.toolbar-actions,.row-actions,.customer-actions,.modal-card footer,.order-notice-panel footer { display:flex; flex-wrap:wrap; gap:10px; }
.table-responsive .action-btn,.table-responsive .icon-action { display:inline-grid; place-items:center; min-width:38px; height:38px; padding:0 10px; border:1px solid #e0e7f0; background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%); box-shadow:0 3px 10px rgba(15,23,42,.03); }
.table-responsive .action-btn:hover,.table-responsive .icon-action:hover { background:#fff4f3; border-color:#f1c7c4; }
/* Universal cards used across every admin route */
.panel,.stat-card,.tier-card,.category-card,.api-source-card,.payment-config-card,
.telegram-history-panel,.telegram-live-panel,.telegram-compose-card,
.dashboard-chart-card,.dashboard-finance-card,.today-stat,
.users-summary-grid article,.ledger-summary-grid article,
.dash-quick-card,.setting-switch-card,.setting-switch-card-pro,
.log-group-card,.emoji-editor-panel,.system-emoji-panel,
.broadcast-detail-card,.broadcast-info-card,.broadcast-warning-card,
.broadcast-progress-card,.broadcast-editor-card,.broadcast-editor-panel,
.content-editor,.content-editor-toolbar,.content-editor-note,
.member-history,.member-profile-preview,.member-adjust-card,
.dashboard-telegram-card,.broadcast-compose-card,
.ticket-message,.users-table-panel,.ledger-table-panel {
  background:#fff;
  border:1px solid #e3e7ed;
  border-radius:5px;
  box-shadow:0 1px 2px rgba(23,42,75,.035);
}
.panel-head,.ledger-table-head { border-bottom:1px solid #e9ecf1; }
.panel-title h3,.panel-head h3,.section-heading h3 { color:#182235; font-weight:700; }
.panel-title p,.section-heading p { color:#8894a6; }
.data-table th { color:#8692a4; background:#f7f8fa; border-color:#e9edf2; font-size:10px; }
.data-table td { color:#4b596e; border-color:#eff1f4; font-size:11px; }
.data-table tbody tr:hover td { background:#fffafa; }
.data-table .cell-main strong,.data-table .cell-stack strong,.cell-price,.category-status-head strong,
.category-stats b,.tier-card footer strong,.tier-note strong,
.media-upload-copy strong,.member-profile-preview strong,.ticket-message strong { color:#202d42; }
.cell-main small,.cell-stack small { color:#929dad; }
.table-empty strong { color:#47566c; }
.table-empty span { color:#8997a9; background:#f2f4f7; }
.table-footer { background:#fff; }
.cell-avatar { color:#2363ce; background:#edf3ff; }
.cell-order strong { background:#f1f4f9; color:#44556d; }
.status-success,.status-paid,.status-completed,.status-active { background:#e8f8f1; color:#078751; }
.status-pending,.status-processing,.status-low { background:#fff5e5; color:#a86d08; }
.status-failed,.status-cancelled,.status-banned,.status-closed { background:#fff0f1; color:#c92e32; }
.status-hidden,.status-member,.status-inactive { color:#68778e; background:#eef1f5; }
.status-vip,.status-agency,.status-ctv { color:#6754be; background:#f2efff; }
.pagination button { min-height:38px; padding:0 14px; border-radius:11px; color:#64748b; background:#fff; border:1px solid #e4e7ed; box-shadow:0 2px 8px rgba(15,23,42,.03); }
.pagination button:hover:not(:disabled),.pagination button.active { color:#e02722; background:#fff0ef; border-color:#f3d4d1; }
.toolbar-search input { background:#fff; }
.filter-select { background-color:#fff; }
.bulk-select-all,.bulk-edit-toggle,.bulk-selection-count { color:#45536b; }
.bulk-edit-intro { background:#f8fafc; border-color:#e2e9f2; }
.bulk-edit-intro strong { color:#26374e; }
.bulk-edit-option { background:#fff; }
.action-btn,.icon-action { color:#718096; border-radius:11px; }
.action-btn:hover,.icon-action:hover { background:#f5f6fa; color:#e02722; }
.action-btn.pin-toggle { color:#8a96a6; }
.bot-meta div { background:#f7f9fb; }
.chart-grid-line { stroke:#e9edf2; }
.chart-label { fill:#8793a5; }
.chart-dot,.dashboard-revenue-dot { fill:#fff; stroke:#e44843; }
.stock-icon { background:#fff3e5; color:#ae7509; }

/* Dashboard: simpler than the former dark, glowing banner */
.dashboard-v3,.users-page-v2,.ledger-page { gap:16px; }
.dashboard-inline-status { display:flex; align-items:center; justify-content:flex-start; flex-wrap:wrap; gap:15px; padding:8px 12px; margin-top:-7px; border:1px solid #e5e9f0; border-radius:5px; background:#fff; color:#78869a; font-size:10px; }
.dashboard-inline-status > span { display:flex; align-items:center; gap:5px; }
.dashboard-inline-status .icon { width:13px; height:13px; }
.dashboard-inline-status strong { color:#425069; font-weight:650; }
.dashboard-online-indicator i { width:6px; height:6px; border-radius:50%; background:#abb5c2; }
.dashboard-online-indicator.is-online i { background:#0dbf78; }
.dashboard-online-indicator.is-offline i { background:#df4848; }
.dashboard-inline-link { display:flex; align-items:center; gap:3px; border:0; background:transparent; padding:0; color:#d82722; font-size:10px; cursor:pointer; }
.today-stat-grid { gap:12px; }
.today-stat { flex-direction:column; align-items:flex-start; justify-content:space-between; padding:15px 16px; gap:10px; min-height:123px; }
.today-icon { width:34px; height:34px; flex:0 0 34px; border-radius:5px; }
.today-icon .icon { width:17px; height:17px; }
.today-stat>div { width:100%; }
.today-stat small { color:#8492a5; font-size:10px; letter-spacing:0; font-weight:600; }
.today-stat strong { color:#182337; font-size:21px; margin:4px 0; }
.today-stat em { font-size:10px; color:#8997a9; }
.today-revenue .today-icon { color:#e02c26; background:#fceceb; }
.today-deposit .today-icon { color:#287ce7; background:#eaf2ff; }
.today-users .today-icon { color:#00a96b; background:#e5f7ef; }
.today-balance .today-icon { color:#d38a0b; background:#fff4e4; }
.dashboard-main-grid-v3 { grid-template-columns:minmax(0,1.65fr) minmax(300px,.85fr); gap:12px; }
.dashboard-chart-card .panel-head { min-height:64px; align-items:center; }
.module-kicker { color:#9aa5b6; letter-spacing:.5px; font-weight:650; }
.dashboard-chart-card .module-kicker .icon { color:#d82722; }
.dashboard-chart-legend { color:#8792a3; }
.legend-line { background:#e02722; }
.legend-bar { background:#b4c2da; }
.dashboard-revenue-line { stroke:#e02722!important; }
.dashboard-deposit-bar { opacity:.45; }
.dashboard-finance-card { background:#fff; padding:16px; gap:12px; }
.dashboard-finance-card > header span,.finance-big small { color:#8b98aa; letter-spacing:.5px; }
.dashboard-finance-card h3 { font-size:14px; color:#1e293b; }
.finance-big { background:#f9fafb; border:1px solid #edf0f4; border-radius:5px; padding:12px; }
.finance-big strong { font-size:25px; color:#172337; }
.finance-mini-grid span { background:#fff; border:1px solid #e8ebf0; border-radius:5px; padding:10px; }
.finance-mini-grid b { color:#253148; }
.dashboard-ledger-link { color:#d82722; background:#fff3f2; border:1px solid #ffe1df; border-radius:5px; }
.dashboard-quick-grid { gap:12px; }
.dash-quick-card { border-radius:5px; padding:13px; }
.dash-quick-card:hover { transform:none; border-color:#efc6c3; box-shadow:0 3px 12px rgba(28,43,65,.055); }
.dash-quick-card>span { color:#d82722; background:#fff0ef; border-radius:5px; }
.dash-quick-card strong { color:#1f293b; }
.dashboard-v3 .today-stat:hover,.dashboard-v3 .dashboard-chart-card:hover,.dashboard-v3 .dashboard-finance-card:hover,
.dashboard-v3 .dashboard-bottom-v3>.panel:hover,.users-summary-grid article:hover { transform:none; border-color:#e3e7ed; box-shadow:0 1px 2px rgba(23,42,75,.035); }

/* Customers / balances / categories / tier plans */
.users-summary-grid article,.ledger-summary-grid article { background:#fff; border-radius:5px; }
.users-summary-grid article>span,.ledger-summary-grid article>span { color:#e02722; background:#fff0ef; border-radius:5px; }
.users-summary-grid strong,.ledger-summary-grid strong { color:#1e293b; }
.user-balance,.ledger-amount.credit { color:#008f5f; }
.user-detail-btn,.ledger-code { color:#d82722; }
.member-kpi-grid span,.member-meta-grid span { background:#f9fafc; border-color:#e8ebf0; border-radius:5px; }
.member-kpi-grid strong,.member-meta-grid strong { color:#243046; }
.member-history>header { background:#f9fafc; }
.category-card { background:#fff; }
.category-card h3,.category-card strong,.tier-card h3 { color:#1f2a3e; }
.tier-card,.tier-card-base { background:#fff; border-color:#e4e8ef; border-radius:5px; }
.tier-benefit strong { color:#df2721; }
.tier-card-base .tier-benefit strong { color:#009763; }
.tier-index { color:#d82722; border-color:#f5d8d4; background:#fff0ef; }
.media-upload-card { background:#f9fafc; border:1px dashed #cad3df; border-radius:6px; }
.media-upload-icon { color:#d82722; background:#fff1ef; border-color:#fde1de; }
.upload-progress { background:#f8fafc; }
.upload-progress>div { background:#e8ebf0; }
.section-heading>span { color:#d82722; background:#fff0ef; border-radius:5px; }

/* Settings / content / forms */
.settings-hero-pro,.telegram-hero { background:#fff; color:#172235; border:1px solid #e4e8ef; border-radius:5px; box-shadow:0 1px 2px rgba(23,42,75,.035); }
.settings-hero-pro:after,.dashboard-hero-v3:after { display:none; }
.settings-hero-pro h2,.telegram-hero h2 { color:#1f2937; }
.settings-kicker,.telegram-hero-kicker { color:#d82722; }
.settings-hero-pro p,.telegram-hero p { color:#77869b; }
.settings-hero-badges span { background:#f9fafc; border-color:#e9edf2; color:#65748a; }
.settings-grid-pro .settings-section { border-radius:5px; background:#fff; }
.setting-switch-card-pro { border-radius:5px; background:#fff; }
.setting-switch-card-pro strong { color:#1e293b; }
.setting-switch-card-pro small,.setting-state-hint { color:#8090a2; }
.settings-grid-pro>.settings-actions { background:rgba(255,255,255,.96); border-color:#e4e7ee; box-shadow:0 6px 24px rgba(21,32,50,.08); border-radius:5px; }
.settings-subhead strong { color:#344258; }
.settings-subhead>span { background:#fff0ef; border-color:#f6dcd9; color:#ce2722; }
.settings-feature-card { border-color:#e4e8ef!important; }
.switch i { background:#cbd3df; }
.switch i::before { background:#fff; }
.switch input:checked+i { background:#dd2922; }
.content-editor-note code { background:#fff0ef; color:#cb2c25; }
.content-editor-toolbar,.content-editor-note { background:#fff; }

/* Telegram communication / broadcasts */
.telegram-hero { min-height:0; }
.telegram-hero h2 em { background:none; -webkit-text-fill-color:#d82722; color:#d82722; }
.telegram-hero-orb { border:1px solid #f1d4d0; background:#fff4f3; box-shadow:none; }
.telegram-hero-orb>span { background:#fff; color:#dd2b23; }
.telegram-hero-orb b { color:#d82722; }
.telegram-hero-orb small { color:#77869b; }
.telegram-hero-meta span { background:#f9fafb; border:1px solid #edf0f4; }
.telegram-hero-meta strong { color:#243247; }
.telegram-stat-grid article,.telegram-target-card,.telegram-media-box,.telegram-compose-section,
.telegram-compose-footer,.telegram-schedule-field,.telegram-broadcast-stats article,
.telegram-schedule-toggle,.telegram-broadcast-history,.broadcast-info-row { background:#fff; border-color:#e5e9ef; border-radius:5px; }
.telegram-stat-grid strong,.telegram-stat-grid article strong,.telegram-target-card strong { color:#233149; }
.telegram-stat-grid p,.telegram-target-card small,.telegram-compose-head p { color:#8492a3; }
.telegram-target-card.active { border-color:#ed8e89; background:#fff6f4; }
.telegram-compose-head { background:#fff; border-color:#e5e9ef; }
.telegram-compose-head h3,.telegram-section-title strong,.broadcast-editor-head label { color:#1f2b40; }
.telegram-section-title span { background:#fff0ef; color:#ce2722; }
.telegram-media-icon { background:#fff2f1; color:#d82722; }
.broadcast-format-toolbar { background:#f7f9fb; border-color:#e5e9ef; }
.broadcast-format-toolbar button { min-height:38px; padding:0 12px; border-radius:11px; background:#fff; color:#536379; border-color:#e3e7ee; }
.broadcast-format-toolbar button:hover { color:#d82722; border-color:#f1c6c2; }
.telegram-page-editor textarea,.broadcast-editor-card textarea { background:#fff; color:#253348; }
.telegram-send-note,.telegram-config-pill,.telegram-audience-preview { background:#f9fafb; color:#66778e; border-color:#e7eaf0; }
.telegram-console-terminal,.log-terminal { background:#202a39; color:#c3cbd5; border-color:#314156; }
.telegram-console-line { color:#cad4e1; }
.telegram-console-line time { color:#92a8c2; }

/* Dialogs, notifications, dropdowns */
.modal-scrim { background:rgba(17,25,39,.46); backdrop-filter:blur(3px); }
.modal-card,.modal-card.broadcast-modal,.confirm-card { border:1px solid #e1e5ec; border-radius:7px; background:#fff; color:#1e293b; box-shadow:0 22px 65px rgba(22,33,51,.18); }
.modal-card>header { background:#fff; }
.modal-card h2,.confirm-card h2 { color:#1f2a40; }
.modal-card footer { background:#fafbfc; }
.modal-kicker { color:#d82722; }
.member-profile-preview { background:#fafbfc; }
.member-profile-preview>div>span { color:#d82722; }
.ticket-message { background:#f9fafb; }
.ticket-message>span { color:#d82722; }
.ticket-message p { color:#49576b; }
.toast { background:#fff; border-color:#e4e7ed; border-radius:5px; box-shadow:0 10px 35px rgba(25,42,75,.16); }
.toast strong,.toast b,.toast p { color:#273348; }

/* Clean white login */
.login-shell { background:#f5f6f9; }
.login-aside { background:#f6f7fa; border-right:1px solid #e7eaf1; }
.login-aside::before { display:none; }
.login-aside .login-scan-line,.login-orbit { display:none; }
.login-copy h1 { color:#192438; font-size:clamp(39px,4.6vw,62px); }
.login-copy h1 em { color:#d82722; background:none; -webkit-text-fill-color:#d82722; }
.login-copy>p { color:#728198; }
.eyebrow { color:#d82722; }
.eyebrow i { background:#d82722; box-shadow:none; }
.feature-row { color:#627087; }
.feature-row b { color:#d82722; }
.visual-card { background:#fff; border-color:#e2e7ef; box-shadow:0 18px 60px rgba(27,42,72,.10); }
.visual-main svg path:first-child { stroke:#e02722; filter:none; }
.visual-main svg .fill { fill:rgba(224,39,34,.07); }
.visual-main .trend-up { color:#078e62; }
.visual-float { background:#fff; }
.login-panel { background:#fff; backdrop-filter:none; }
.login-form h2 { color:#172235; }
.form-kicker,.login-route-badge code { color:#d82722; }
.login-route-badge { background:#fff5f4; border-color:#f5d8d5; color:#d82722; }
.login-route-badge>span { background:#18b17a; box-shadow:none; }
.login-route-badge b { color:#a66b68; border-color:#f4d0cc; }
.login-form>p { color:#8896a8; }
.security-note { color:#7f8b9d!important; }
.login-trust { color:#7d8b9e; }
.login-foot { color:#8c98a9; }
.password-toggle { color:#7a8799; }
.password-toggle:hover { background:#f4f6f8; }
.login-visual .visual-main strong,.login-visual .visual-float b { color:#1e293b; }

/* Accessibility, density, responsiveness */
.page-content button { transition:background .18s,border-color .18s,color .18s,box-shadow .18s,transform .18s; }
#pageContent :is(h2,h3,h4) { text-wrap:pretty; }
.sidebar-scrim { background:rgba(14,22,34,.36); }
body.sidebar-collapsed .sidebar-brand img { filter:none; }
@media(max-width:1180px) {
  .dashboard-main-grid-v3 { grid-template-columns:1fr; }
  .topbar-account-copy { max-width:95px; }
}
@media(max-width:880px) {
  .sidebar { box-shadow:8px 0 32px rgba(21,33,51,.12); }
  .topbar { padding:0 13px; }
  .page-content { padding:18px 14px 30px; }
  .global-search,.topbar-account-copy,.topbar-account>.icon { display:none; }
  .topbar-account { margin-left:0; padding-left:7px; }
  .topbar-account-avatar { width:28px; height:28px; }
}
@media(max-width:720px) {
  .page-heading { gap:10px; align-items:flex-start; }
  .page-heading h2 { font-size:17px; }
  .today-stat { min-height:115px; padding:13px; }
  .today-stat strong { font-size:17px; }
  .dashboard-inline-status { gap:8px 12px; }
  .login-aside { background:#f7f8fa; }
  .login-panel { background:#fff; }
}
@media(max-width:460px) {
  .page-content { padding:14px 10px 26px; }
  .today-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .today-stat strong { font-size:15px; }
  .dashboard-quick-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dashboard-inline-status { font-size:9px; }
  .topbar-actions { gap:0; }
}
@media(prefers-reduced-motion:reduce) {
  .dashboard-v3 .today-stat,.users-summary-grid article,.page-enter { animation:none; transform:none; }
}

/* Brand wordmark: visible on white even when remote logo is unavailable. */
.sidebar-brand.wordmark,.login-full-logo { gap:10px; align-items:center; overflow:visible; }
.wordmark-icon { display:grid; place-items:center; flex:0 0 36px; width:36px; height:36px; background:#e12d28; color:#fff; border-radius:8px; font-weight:900; font-size:24px; font-style:italic; letter-spacing:-2px; box-shadow:0 4px 10px rgba(216,42,35,.10); }
.wordmark-copy { display:flex; flex-direction:column; min-width:0; }
.wordmark-copy strong { font-size:17px; line-height:1; font-weight:900; letter-spacing:-.9px; color:#db2420; white-space:nowrap; }
.wordmark-copy small { font-size:8.5px; letter-spacing:.7px; margin-top:4px; font-weight:750; color:#9a5560; white-space:nowrap; }
.login-full-logo .wordmark-icon { width:45px; height:45px; flex-basis:45px; font-size:27px; }
.login-full-logo .wordmark-copy strong { font-size:23px; }
.login-full-logo .wordmark-copy small { font-size:10px; }
body.sidebar-collapsed .sidebar-brand .wordmark-copy { display:none; }
body.sidebar-collapsed .sidebar-brand.wordmark { justify-content:center; flex-basis:58px; }
@media(max-width:880px){.sidebar-brand.wordmark .wordmark-copy strong{font-size:16px}}

/* ============================================================
   Coverage: inventory, hidden categories, API, profitability,
   deposit settings, emoji management and operations console.
   These routes used their own hardcoded dark gradients.
   ============================================================ */
.ops-command,.inventory-hero,.category-command,.api-command-hero,
.emoji-command-hero,.profit-hero,.profit-quick,.deposit-heading,
.hidden-category-section,.category-visible-pro,
.category-card.category-card-compact,.hidden-category-tile,
.category-card.category-drop-parent,.category-sortable:hover,
.deposit-inline-settings,.deposit-mode-option,
.deposit-mode-option.active,.log-group-card,
.telegram-bot-console,.bot-progress-panel {
  color:#253248;
  background:#fff;
  border:1px solid #e4e8ef;
  border-radius:5px;
  box-shadow:0 1px 2px rgba(23,42,75,.035);
}
.ops-command::before,.ops-command::after,
.inventory-hero::before,.category-command::before,.category-visible-pro::before,
.emoji-command-hero::before,.hidden-category-section::before { box-shadow:none; }
.ops-command-copy h2,.inventory-hero h2,.category-command h2,
.api-command-hero h2,.emoji-command-hero h2,.profit-hero h2,
.profit-quick h2,.deposit-heading h2,
.category-visible-pro h3,.hidden-category-section h3 {
  color:#19273b;
}
.ops-command-copy h2 em,.inventory-hero h2 em,.category-command h2 em,
.api-command-hero h2 em,.emoji-command-hero h2 em {
  color:#d82722;
  -webkit-text-fill-color:#d82722;
  background:none;
}
.ops-command p,.ops-command-copy p,.inventory-hero p,.category-command p,
.api-command-hero p,.emoji-command-hero p,.profit-hero p,
.deposit-heading p,.profit-quick p { color:#758499; }
.ops-command-kicker,.inventory-kicker,.category-command-kicker,
.api-command-kicker,.emoji-command-kicker,.profit-kicker { color:#d82722; }
.ops-snapshot,.inventory-metrics span,.category-command-stats span,
.api-command-metrics span,.api-source-stats span,
.emoji-command-metrics span,.profit-quick-grid>span,
.profit-margin,.telegram-live-stats span,
.dashboard-telegram-metrics span,.broadcast-detail-stats>span {
  background:#f9fafc;
  border:1px solid #e8ebf0;
  color:#45566f;
  border-radius:5px;
}
.ops-snapshot strong,.inventory-metrics strong,.category-command-stats strong,
.api-command-metrics strong,.api-source-stats strong,
.emoji-command-metrics strong,.profit-quick-grid strong,
.profit-margin strong { color:#223048; }
.ops-core::before,.ops-core.online::before { background:radial-gradient(circle,#fff5f4,#fff 65%); }
.ops-core-center { background:#fff; color:#29374d; border-color:#eed5d3; }
.ops-core-center strong,.ops-core-center .icon { color:#d82722; }
.ops-ring { border-color:#f2d5d3; }
.ops-node { background:#e3453f; }

/* Product/category cards and hidden-category management */
.product-thumb { background:#f0f3f8; }
.store-image-uploader,.store-image-preview { background:#f9fafc; border-color:#dfe5ed; }
.store-upload-progress { background:#f8fafc; border-color:#e0e6ee; }
.btn-upload-image { color:#fff; background:#d82722; }
.payment-config-card,.api-source-card { background:#fff; }
.payment-config-card :is(h3,strong),.api-source-card :is(h3,strong) { color:#243046; }
.payment-settings-actions,.api-switch-stack,.emoji-bulk-toolbar,.emoji-search,
.emoji-fallback-input,.custom-emoji-input,.log-group-copy>input,
.hidden-category-bulkbar,.hidden-category-tools,.hidden-category-select-wrap,
.hidden-category-summary em,.hidden-category-chevron {
  background:#f9fafc;
  color:#3d4b62;
  border-color:#e4e9f0;
}
.emoji-fallback-input:focus-within,.custom-emoji-input:focus-within {
  background:#fff;
  border-color:#e56c65;
}
.category-visible-pro,.hidden-category-section { padding:16px; }
.hidden-category-section { background:#fcfcfd; }
.hidden-category-row,.hidden-category-row:hover { background:#fff; border-color:#e4e8ef; }
.hidden-category-tile,.hidden-category-tile:hover,
.hidden-category-tile:has(.hidden-category-select-wrap input:checked) { background:#fff; border-color:#e3e8ef; }
.hidden-category-tile:has(.hidden-category-select-wrap input:checked) { background:#fff9f8; border-color:#edb4b0; }
.hidden-category-drag-handle,.hidden-category-drag-handle:hover,
.category-drag-handle,.hidden-category-select-wrap .hidden-checkmark {
  background:#f0f3f7;
  border-color:#dce3ed;
  color:#78879a;
}
.hidden-category-select-wrap input[type="checkbox"]:checked + .hidden-checkmark { background:#dc312b; }
.category-title-icon,.hidden-heading-icon,.category-title-badge { background:#fff0ef; color:#d82722; border-color:#f7d9d6; }
.category-card .category-custom-emoji,.category-status-head small { color:#8191a5; }
.hidden-category-row :is(strong,h3),.hidden-category-tile :is(strong,h3),
.hidden-category-section :is(strong,h3) { color:#243148; }
.hidden-category-section :is(small,p),.hidden-category-tile :is(small,p) { color:#8191a5; }
.emoji-editor-panel .panel-head,.system-emoji-panel .panel-head,
.broadcast-editor-head,.broadcast-modal>header,.broadcast-modal footer { background:#fff; border-color:#e6e9ef; }

/* Forms in special modules */
.api-form-intro,.bank-provider-link,.broadcast-info-card,
.deposit-content-card,.broadcast-detail-card,
.broadcast-warning-card,.broadcast-progress-card { background:#fff; border-color:#e4e8ef; }
.bank-provider-link:hover { background:#fff5f4; border-color:#f4d1ce; }
.deposit-mode-option.active { border-color:#e5aaa6; background:#fff5f4; }
.deposit-mode-option :is(strong,small),.deposit-inline-settings strong,
.api-form-intro strong,.broadcast-info-card strong { color:#304057; }
.profit-quick-grid .profit-net { background:#eef9f3; border-color:#d5eddf; }
.profit-margin { background:#f9fafb; }
.profit-stat-grid .stat-card { background:#fff; }
.profit-revenue-line { stroke:#e02722; }
.profit-net-line { stroke:#12a06c; }
.profit-net-dot { fill:#fff; stroke:#12a06c; }
.broadcast-modal #modalSubmit,.telegram-send-button { background:#dc2822; color:white; box-shadow:none; }
#telegramBroadcastMessage,#telegramBroadcastMessage:focus { background:#fff; color:#263247; }
.broadcast-editor-card { background:#fff; }
.broadcast-html-help code { background:#f2f4f7; color:#d82722; }
.broadcast-format-toolbar button { background:#fff; }
.telegram-target-card>span { background:#fff0ef; color:#d82722; }
.dashboard-telegram-card { background:#fff; border:1px solid #e5e9ef; }
.dashboard-telegram-card strong { color:#28344a; }
.dashboard-telegram-card p { color:#7e8da1; }

/* Distinguish logs: only literal terminal output uses dark colors. */
.bot-progress-panel .log-terminal { background:#202a39; color:#c6d1df; }
.settings-grid-pro .setting-switch-card-pro:hover,
.category-sortable:hover,.hidden-category-tile:hover {
  box-shadow:0 3px 12px rgba(24,41,70,.055);
}
body.ui-normal-v4 .panel:hover,body.ui-normal-v4 .dashboard-telegram-card:hover,
body.ui-normal-v4 .stat-card:hover,body.ui-normal-v4 .telegram-stat-grid article:hover {
  transform:none;
  border-color:#e3e8ef;
  box-shadow:0 2px 6px rgba(24,41,70,.05);
}
body.ui-normal-v4 .btn:hover:not(:disabled) { transform:none; }
/* Login trust notes and form clarity */
.login-trust span { background:#f7f9fb; border:1px solid #edf0f4; border-radius:5px; color:#718096; }
.login-trust span .icon { color:#d82722; }
.login-trust { gap:8px; }
.login-form .input-wrap input { color:#1e293b; background:#fff; }
.login-form .input-wrap input::placeholder { color:#9aa6b7; }


/* V15.2 brand assets + radio positioning fixes, last-loaded sheet */
.sidebar-brand.wordmark { align-items:center; justify-content:flex-start; gap:0; height:auto; min-height:62px; min-width:0; overflow:hidden; }
.sidebar-brand .site-brand-logo { display:block; width:100%; max-width:205px; height:auto; max-height:62px; object-fit:contain; object-position:left center; filter:none; }
.sidebar-brand .site-brand-icon { display:none; width:42px; height:42px; flex:0 0 42px; object-fit:contain; }
body.sidebar-collapsed .sidebar-brand.wordmark { justify-content:center; }
body.sidebar-collapsed .sidebar-brand .site-brand-logo { display:none; }
body.sidebar-collapsed .sidebar-brand .site-brand-icon { display:block; }
.login-full-logo { display:flex; width:min(100%,440px); min-height:90px; justify-content:flex-start; align-items:center; }
.login-full-logo .site-brand-logo { display:block; width:min(100%,440px); height:auto; max-height:170px; object-fit:contain; object-position:left center; }
.sidebar-bottom .admin-logo,.topbar-account-avatar { background:transparent!important; padding:0!important; overflow:hidden; border-radius:12px; }
.sidebar-bottom .admin-logo img, .topbar-account-avatar img { display:block; width:100%; height:100%; object-fit:contain; object-position:center; border-radius:inherit; }
.topbar-account-avatar { display:grid; place-items:center; flex:0 0 36px; width:36px; height:36px; border:1px solid #f2e1e0!important; box-shadow:0 3px 12px rgba(219,37,34,.10)!important; }
.sidebar-bottom .admin-logo { border:1px solid #f2e1e0!important; }
/* Both left and right from older styles were applying simultaneously. Fix physical size. */
.deposit-mode-grid-inline .deposit-mode-option { position:relative; display:flex; flex-direction:column; align-items:flex-start; min-width:0; padding:18px 16px 16px; isolation:isolate; }
.deposit-mode-grid-inline .deposit-mode-option .deposit-mode-check { position:absolute!important; top:16px!important; right:16px!important; left:auto!important; bottom:auto!important; flex:0 0 20px; width:20px!important; height:20px!important; min-width:20px; max-width:20px; min-height:20px; max-height:20px; padding:0!important; border-radius:50%!important; box-sizing:border-box; background:#fff; display:block; transform:none!important; }
.deposit-mode-grid-inline .deposit-mode-option strong { padding:0 32px 0 0!important; margin:0!important; display:block; width:100%; font-size:18px!important; line-height:1.3!important; font-weight:750; overflow-wrap:anywhere; }
.deposit-mode-grid-inline .deposit-mode-option small { display:block; width:100%; font-size:12.5px!important; line-height:1.55; color:#52647a!important; margin-top:3px; }
.deposit-mode-grid-inline .deposit-mode-option code { margin-top:auto; overflow-wrap:anywhere; }
.deposit-mode-grid-inline .deposit-mode-option input[type=radio] { position:absolute; width:1px; height:1px; overflow:hidden; opacity:0; pointer-events:none; }
.deposit-mode-grid-inline .deposit-mode-option:focus-within { outline:3px solid rgba(239,68,68,.20); outline-offset:2px; }
.deposit-mode-grid-inline .deposit-mode-option.active .deposit-mode-check { background:#fff; border-color:#e33530; box-shadow:0 3px 10px rgba(227,53,48,.10); }
.deposit-mode-grid-inline .deposit-mode-option.active .deposit-mode-check::after { content:''; display:block; position:absolute; inset:4px; background:#e33530; border-radius:50%; }
@media(max-width:760px) {
 .login-full-logo .site-brand-logo { max-height:115px; }
 .sidebar-brand .site-brand-logo { max-width:185px; }
 .deposit-mode-grid-inline .deposit-mode-option { padding:16px; min-height:125px; }
 .deposit-mode-grid-inline .deposit-mode-option .deposit-mode-check { top:14px!important; right:14px!important; width:19px!important; height:19px!important; max-width:19px; max-height:19px; min-width:19px; min-height:19px; }
 .deposit-mode-grid-inline .deposit-mode-option strong { font-size:17px!important; }
}


/* ==== theme-clear.css ==== */
/* VNDEVCODE · WHITE PRO · readability & responsive UX
   Loaded after original styles and white theme; no functional overrides. */
:root {
  --sidebar: 258px;
  --text: #1d293b;
  --muted: #607086;
  --border: #e0e5ee;
  --radius: 9px;
}
html { scroll-behavior:auto; }
body { font-size: 14px; font-weight:400; line-height:1.5; -webkit-font-smoothing:antialiased; }
.sidebar { background:#fff; }
.sidebar-head { height:76px; }
.sidebar-brand .wordmark-copy strong { font-size:20px; letter-spacing:-.6px; }
.sidebar-brand .wordmark-copy small { font-size:10px; }
.navigation { padding:14px 11px 20px; }
.nav-label { font-size:10px; letter-spacing:.95px; margin:17px 12px 9px; }
.nav-item { font-size:13.5px; min-height:44px; padding:0 13px; gap:12px; border-radius:8px; }
.nav-item .icon { width:18px; height:18px; }
.nav-item.active { background:#fff0ee; color:#d72b25; }
.nav-item:hover:not(.active) { background:#f4f6f9; }
.sidebar-bottom { padding:13px; }
.bot-mini { min-height:60px; padding:9px; }
.bot-mini strong,.profile-card strong { font-size:13px; }
.bot-mini small,.profile-card small { font-size:11px; }
.main-shell { background:#f4f6fa; }
.topbar { min-height:66px; height:auto; padding:11px clamp(14px,2vw,30px); gap:14px; }
.topbar h1 { font-size:17px; font-weight:700; }
.breadcrumb { font-size:11px; }
.topbar-account-copy strong { font-size:12px; }
.topbar-account-copy small { font-size:10px; }
.topbar-account-avatar { width:36px; height:36px; font-size:12px; border-radius:8px; }
.global-search { height:39px; min-width:180px; border-radius:8px; }
.global-search input { font-size:13px; }
.topbar-actions { gap:8px; }
.topbar-actions .icon-btn { min-height:39px; min-width:39px; border-radius:9px; }
.page-content { max-width:1900px; padding:25px clamp(15px,2vw,32px) 48px; }
.page-heading { gap:14px; margin-bottom:20px; }
.page-heading h2 { font-size:clamp(21px,1.7vw,27px); margin-bottom:6px; letter-spacing:-.6px; }
.page-heading p { font-size:13px; line-height:1.6; }
.date-chip { font-size:12px; min-height:38px; padding-inline:12px; border-radius:8px; }
.btn { font-size:13px; min-height:40px; padding:9px 14px; border-radius:8px; font-weight:650; }
.btn-sm { min-height:34px; font-size:12px; }
.btn .icon { width:16px; height:16px; }
input:not([type="checkbox"]):not([type="radio"]),select,textarea { font-size:14px; min-height:40px; border-radius:8px; }
textarea { line-height:1.55; }
.field > span,.field-label,.form-group label { font-size:13px; }
.panel,.stat-card,.tier-card,.category-card,.api-source-card,.payment-config-card,
.dashboard-chart-card,.dashboard-finance-card,.today-stat,.dash-quick-card,
.users-summary-grid article,.ledger-summary-grid article,.telegram-history-panel,
.telegram-live-panel,.telegram-compose-card,.log-group-card,.ticket-message {
  border-radius:10px;
  box-shadow:0 2px 8px rgba(26,39,67,.035);
}
.panel-head { padding:16px 20px; }
.panel-title h3,.panel-head h3 { font-size:15px; }
.panel-title p,.panel-head p { font-size:12px; }
.data-table th { font-size:11.5px; padding:14px 16px; background:#f8f9fb; }
.data-table td { font-size:13px; line-height:1.5; padding:13px 16px; }
.data-table .cell-main strong,.data-table .cell-stack strong { font-size:13px; }
.data-table .cell-main small,.data-table .cell-stack small { font-size:11px; }
.table-responsive { max-width:100%; overflow-x:auto; overscroll-behavior-inline:contain; }
.today-stat { min-height:152px; padding:20px; gap:14px; }
.today-icon { width:42px; height:42px; flex-basis:42px; border-radius:10px; }
.today-icon .icon { width:22px; height:22px; }
.today-stat small { font-size:11.5px; }
.today-stat strong { font-size:clamp(23px,2vw,29px); letter-spacing:-.65px; }
.today-stat em { font-size:12px; }
.dashboard-inline-status { font-size:12px; border-radius:8px; padding:11px 14px; }
.dashboard-inline-link { font-size:12px; }
.dashboard-v3,.users-page-v2,.ledger-page { gap:19px; }
.dash-quick-card { min-height:112px; padding:17px; }
.dash-quick-card strong { font-size:23px; }
.dash-quick-card small,.dash-quick-card em { font-size:11.5px; }
.modal-card,.confirm-card { border-radius:14px; }
.modal-card h2 { font-size:20px; }
.modal-body { font-size:14px; }
.toast { border-radius:10px; }
.is-hidden { display:none!important; }

/* Purchases: top-right dropdown with isolated scroll and clear hierarchy */
.order-notice-widget { position:relative; display:flex; align-items:center; flex:0 0 auto; }
.order-notice-widget .notification-btn { position:relative; width:40px; height:40px; border:1px solid #e8ecf1; background:#fff; display:grid; place-items:center; border-radius:10px; cursor:pointer; }
.order-notice-widget .notification-btn .icon { width:20px; height:20px; }
.order-notice-widget .notification-btn.has-unread { color:#d62823; background:#fff4f3; border-color:#ffdfdc; }
.order-notice-badge { position:absolute; top:-5px; right:-5px; min-width:19px; height:19px; padding-inline:4px; border-radius:99px; display:grid; place-items:center; background:#db2b26; color:#fff; border:2px solid #fff; font-size:10px; font-weight:800; line-height:1; }
.order-notice-panel { position:absolute; top:calc(100% + 15px); right:-65px; width:min(420px,calc(100vw - 24px)); z-index:100; background:#fff; border:1px solid #e4e9f0; box-shadow:0 18px 55px rgba(25,39,64,.16); border-radius:13px; overflow:hidden; color:#273246; }
.order-notice-panel>header { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:17px 18px; border-bottom:1px solid #edf0f4; }
.order-notice-panel>header>div { display:flex; flex-direction:column; gap:3px; }
.order-notice-panel>header strong { font-size:15px; }
.order-notice-panel>header small { font-size:11px; color:#778498; }
.order-notice-panel>header .icon-btn { flex:0 0 auto; }
.order-notice-list { max-height:min(470px,60dvh); overflow:auto; overscroll-behavior:contain; }
.notice-item { width:100%; display:flex; gap:12px; align-items:flex-start; padding:15px 17px; border:0; border-bottom:1px solid #f0f2f5; background:#fff; color:#273449; text-align:left; cursor:pointer; }
.notice-item:hover,.notice-item.unread { background:#fff7f6; }
.notice-item-icon { flex:0 0 37px; height:37px; background:#fff0ef; color:#da2924; border-radius:10px; display:grid; place-items:center; }
.notice-item-icon .icon { width:18px; height:18px; }
.notice-item-copy { display:flex; flex:1 1 auto; flex-direction:column; gap:4px; min-width:0; }
.notice-item-copy strong { font-size:13px; font-weight:700; }
.notice-item-copy small { font-size:12px; color:#516177; line-height:1.5; overflow-wrap:anywhere; }
.notice-item-copy em { font-size:11px; font-style:normal; color:#95a0af; }
.notice-unread-dot { flex:0 0 7px; width:7px; height:7px; border-radius:50%; background:#e22c28; margin-top:7px; }
.order-notice-panel>footer { display:flex; justify-content:space-between; align-items:center; gap:6px; padding:12px 15px; background:#f9fafc; }
.order-notice-panel>footer button { background:transparent; border:0; padding:8px 6px; color:#66778c; font-size:12px; font-weight:600; cursor:pointer; }
.order-notice-panel>footer .order-notice-all { color:#da2c27; }
.order-notice-panel>footer button:hover { text-decoration:underline; }
.notice-empty { text-align:center; display:flex; flex-direction:column; align-items:center; gap:7px; padding:42px 23px; }
.notice-empty .icon { width:30px; height:30px; color:#abb5c2; margin-bottom:6px; }
.notice-empty strong { font-size:13px; }
.notice-empty span { font-size:12px; color:#8290a3; line-height:1.6; }

/* Non-blocking popup only for real newly paid orders */
.purchase-popup-stack { position:fixed; z-index:175; bottom:calc(18px + env(safe-area-inset-bottom,0px)); right:18px; display:flex; flex-direction:column; gap:12px; width:min(380px,calc(100vw - 28px)); pointer-events:none; }
.purchase-popup { display:flex; gap:11px; align-items:flex-start; position:relative; padding:18px 36px 17px 16px; border:1px solid #e0e9e3; border-left:4px solid #10a36d; border-radius:13px; background:#fff; box-shadow:0 14px 45px rgba(20,36,60,.17); pointer-events:auto; animation:purchaseSlide .28s ease-out; }
.purchase-popup.closing { opacity:0; transform:translateX(15px); transition:opacity .2s ease,transform .2s ease; }
.purchase-popup-symbol { flex:0 0 42px; height:42px; border-radius:11px; display:grid; place-items:center; color:#088d5c; background:#e9f8f0; }
.purchase-popup-symbol .icon { width:21px; height:21px; }
.purchase-popup-copy { display:flex; flex-direction:column; gap:5px; min-width:0; }
.purchase-popup-eyebrow { display:flex; align-items:center; gap:5px; font-size:10px; font-weight:800; color:#07935e; letter-spacing:.55px; }
.purchase-popup-eyebrow .icon { width:14px; height:14px; }
.purchase-popup-copy strong { color:#1b293c; font-size:14px; line-height:1.4; }
.purchase-popup-copy p { margin:0; font-size:12px; color:#607087; overflow-wrap:anywhere; }
.purchase-popup-copy p b { color:#e12c26; white-space:nowrap; }
.purchase-popup-copy button { border:0; background:transparent; cursor:pointer; padding:6px 0 0; font-size:12px; font-weight:700; color:#db302b; display:flex; gap:5px; align-items:center; width:max-content; }
.purchase-popup-copy button .icon { width:14px; height:14px; }
.purchase-popup-close { position:absolute; top:9px; right:8px; border:0; background:transparent; padding:5px; color:#98a4b2; cursor:pointer; }
.purchase-popup-close .icon { width:15px; height:15px; }
@keyframes purchaseSlide { from { opacity:0; transform:translateX(24px) } to { opacity:1; transform:translateX(0) } }

@media (max-width:1100px) {
  :root { --sidebar:238px; }
  .nav-item { font-size:13px; }
  .today-stat-grid { gap:12px; }
  .topbar .global-search { min-width:130px; }
}
@media (max-width:880px) {
  :root { --sidebar:284px; }
  .main-shell { margin-left:0!important; }
  .sidebar { box-shadow:15px 0 55px rgba(25,39,60,.17); }
  .topbar { min-height:60px; padding:10px 15px; }
  .order-notice-panel { right:-52px; }
  .page-content { padding:18px 14px 40px; }
  .nav-item { min-height:47px; font-size:14px; }
}
@media (max-width:650px) {
  .topbar { flex-wrap:nowrap; }
  .topbar h1 { font-size:14px; }
  .breadcrumb { font-size:10px; }
  .topbar-actions { gap:5px; }
  .topbar-actions .icon-btn,.order-notice-widget .notification-btn { min-width:38px; min-height:38px; width:38px; height:38px; }
  .topbar-actions .refresh-btn { display:none; }
  .topbar-account-copy { display:none; }
  .topbar-account { border-left:0; padding:3px 0; margin:0; }
  .topbar-account-avatar { width:33px; height:33px; }
  .order-notice-panel { position:fixed; right:10px; top:calc(63px + env(safe-area-inset-top,0px)); width:calc(100vw - 20px); max-height:80dvh; }
  .page-heading { align-items:flex-start; }
  .page-heading h2 { font-size:21px; }
  .page-heading p { font-size:12.5px; }
  .today-stat { min-height:143px; padding:15px; }
  .today-icon { width:38px; height:38px; flex-basis:38px; }
  .today-stat strong { font-size:20px; overflow-wrap:anywhere; }
  .today-stat small { font-size:10.5px; }
  .today-stat em { font-size:11px; }
  .panel-head { padding:14px 15px; }
  .data-table td { font-size:12.5px; }
  .purchase-popup-stack { right:12px; bottom:max(12px,env(safe-area-inset-bottom)); }
  .purchase-popup { padding:14px 32px 14px 12px; }
  .modal-card > header { background:#fff; }
  .modal-card footer { background:#fff; }
}
@media (max-width:380px) {
  .today-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .today-stat { padding:12px; }
  .today-stat strong { font-size:18px; }
  .topbar-account { display:none; }
}
@media (prefers-reduced-motion:reduce) {
  .purchase-popup,.purchase-popup.closing { animation:none; transition:none; }
  .page-enter { animation:none!important; }
  * { scroll-behavior:auto!important; }
}


/* Final polish 2026-10-28 */
.order-notice-panel>footer { padding:14px 15px; background:linear-gradient(180deg,#fcfcfd,#f7f9fc); border-top:1px solid #edf1f5; }
.order-notice-panel>footer button { min-height:40px; padding:0 14px; border-radius:12px; font-size:12px; font-weight:700; border:1px solid #e5eaf1; background:#fff; color:#55667d; box-shadow:0 4px 10px rgba(15,23,42,.04); }
.order-notice-panel>footer button:hover { text-decoration:none; transform:translateY(-1px); }
.order-notice-panel>footer .order-notice-read { color:#0e8b64; border-color:#ccebdc; background:linear-gradient(180deg,#f3fcf7,#e9f8f0); }
.order-notice-panel>footer .order-notice-all { color:#d92e27; border-color:#f3d2cf; background:linear-gradient(180deg,#fff8f7,#fff1ef); }
.notice-item-copy strong { display:block; line-height:1.45; }
.notice-item-copy small, .notice-item-copy em { line-height:1.5; }


/* ==== theme-customers.css ==== */
/* VNDEVCODE / Customers & Sidebar v3 — readable white UI, responsive drawer.
   Loaded after base white styles. Visual-only rules do not modify APIs or data. */
:root { --sidebar: 258px; }

/* Menu must be reversible on PC (old base hid the only expand button). */
.sidebar-head { gap: 7px; }
.desktop-collapse { flex: 0 0 42px; width:42px; height:42px; display:grid; place-items:center; border-radius:12px; border:1px solid #dfe6ef; color:#667287; background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%); cursor:pointer; box-shadow:0 4px 14px rgba(15,23,42,.04); }
.desktop-collapse:hover { background:#fff1f0; color:#da2924; border-color:#f4d4d1; }
.desktop-collapse:focus-visible,.mobile-menu:focus-visible { outline:3px solid #f4aaa7; outline-offset:2px; }
body.sidebar-collapsed .sidebar-head { height:105px; min-height:105px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; padding:5px 0; }
body.sidebar-collapsed .sidebar .sidebar-brand.wordmark { flex: 0 0 44px; width:54px; height:44px; min-width:0; margin:0; justify-content:center; }
body.sidebar-collapsed .sidebar .sidebar-brand .wordmark-icon { flex:0 0 37px; width:37px; height:37px; font-size:23px; }
body.sidebar-collapsed .sidebar .desktop-collapse { display:grid!important; width:37px; height:30px; min-height:30px; flex:0 0 30px; padding:5px; margin:0; border-color:#e2e7ee; }
body.sidebar-collapsed .sidebar .nav-item { width:100%; min-height:44px; }
body.sidebar-collapsed .sidebar .nav-item .icon-holder { margin:0; }
.sidebar { transition: width .2s ease,transform .2s ease; }
.main-shell { transition:margin-left .2s ease; }

/* Customers: screenshot-like cards, filters, clean table */
.customers-clean-page { width:100%; max-width:100%; display:flex; flex-direction:column; gap:17px; }
.customers-clean-page .page-heading { margin:0 0 3px; }
.customers-clean-page .page-heading h2 { font-size:clamp(22px,1.7vw,26px); color:#182337; }
.customers-clean-page .page-heading p { font-size:13px; color:#778499; }
.customers-kpi-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; }
.customers-kpi { position:relative; min-width:0; min-height:145px; display:flex; flex-direction:column; justify-content:flex-end; padding:21px 20px 17px; border:1px solid #e3e7ee; border-radius:7px; box-shadow:0 1px 3px rgba(20,35,65,.035); background:#fff; }
.customers-kpi-head { position:absolute; left:20px; right:18px; top:20px; display:flex; justify-content:space-between; gap:8px; align-items:flex-start; }
.customers-kpi-head>span { font-size:12.5px; color:#758399; font-weight:550; line-height:1.4; }
.customer-kpi-icon { width:35px; height:35px; flex:0 0 35px; display:grid; place-items:center; border-radius:7px; font-style:normal; }
.customer-kpi-icon .icon { width:19px; height:19px; }
.customer-kpi-icon.blue { color:#3577fa; background:#eaf1ff; }
.customer-kpi-icon.green { color:#0cb981; background:#e6f8f1; }
.customer-kpi-icon.gold { color:#ed9a08; background:#fff5e2; }
.customer-kpi-icon.red { color:#e5322a; background:#fff0ef; }
.customers-kpi>strong { display:block; margin:35px 0 2px; font-size:clamp(21px,1.7vw,27px); font-weight:750; line-height:1.2; color:#182337; overflow-wrap:anywhere; }
.customers-kpi>small { display:block; font-size:11.5px; color:#8490a1; line-height:1.5; }
.customers-kpi .green-text { color:#0eaa6d; }
.customers-kpi .gold-text { color:#e69908; }
.customers-kpi .red-text { color:#e3312a; }
.customers-search-panel { border:1px solid #e3e7ee; border-radius:7px; padding:13px 15px; background:#fff; }
.customers-filter-primary { display:grid; align-items:center; grid-template-columns:minmax(230px,1fr) minmax(155px,195px) minmax(155px,190px) auto; gap:11px; }
.customers-search-input { display:flex; align-items:center; gap:9px; min-width:0; height:43px; background:#fff; border:1px solid #dfe5ed; border-radius:6px; padding:0 12px; color:#9ba8b8; }
.customers-search-input:focus-within { border-color:#e15a54; box-shadow:0 0 0 3px #fff0ef; }
.customers-search-input .icon { width:16px; height:16px; flex:0 0 16px; }
.customers-search-input input[type="search"] { min-width:0; width:100%; height:38px; min-height:38px; font-size:13px; padding:0!important; border:0!important; background:transparent!important; outline:none!important; box-shadow:none!important; color:#29374b; }
.customers-search-input input::placeholder { color:#9ba7b8; }
.customers-filter-primary>.filter-select { min-width:0; width:100%; height:46px; min-height:46px; font-size:13px; background:#fff; border:1px solid #dfe5ed; border-radius:12px; padding:0 14px; box-shadow:0 2px 10px rgba(15,23,42,.03); }
.customers-filter-primary>.customer-search-button { min-height:46px; min-width:128px; border-radius:12px; }
.customers-filter-primary>.customer-search-button:hover { background:#c9201a; }
.customers-advanced { margin-top:14px; border-top:1px solid #f2f3f7; padding-top:12px; }
.customers-advanced>summary { cursor:pointer; width:max-content; max-width:100%; display:flex; align-items:center; gap:8px; color:#55657d; font-weight:700; font-size:12.5px; list-style:none; padding:8px 12px; border:1px solid #e2e8f0; border-radius:12px; background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%); box-shadow:0 4px 14px rgba(15,23,42,.04); }
.customers-advanced>summary::-webkit-details-marker { display:none; }
.customers-advanced>summary .icon { width:12px; height:12px; transform:rotate(90deg); transition:transform .18s; }
.customers-advanced[open]>summary .icon { transform:rotate(-90deg); }
.customers-filter-extra { display:flex; flex-wrap:wrap; align-items:end; gap:12px; padding:12px 0 6px; }
.customers-filter-extra>label { display:flex; flex-direction:column; gap:6px; font-size:11.5px; font-weight:700; color:#68758a; }
.customers-filter-extra select { min-width:190px; height:44px; font-size:12.5px; border-radius:12px; }
.customers-filter-extra>.btn { min-height:44px; font-size:12.5px; border-radius:12px; }
.customers-results-caption { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; color:#60718a; font-size:12px; }
.customers-results-caption>span { display:flex; gap:6px; align-items:center; }
.customers-results-caption .icon { width:16px; height:16px; color:#de302a; }
.customers-results-caption small { color:#93a0af; font-size:11.5px; }
.customers-table-panel { border-radius:7px!important; overflow:hidden; border:1px solid #e0e6ee; background:#fff; }
.customers-table-panel .table-responsive { width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.customers-table { width:100%; min-width:1120px; border-collapse:collapse; }
.customers-table th { font-size:10.5px; text-transform:uppercase; font-weight:700; letter-spacing:.05em; padding:14px 13px; background:#f7f8fb; color:#8f9bac; white-space:nowrap; }
.customers-table td { border-top:1px solid #eff1f5; padding:15px 13px; font-size:12.5px; color:#43536c; white-space:nowrap; }
.customers-table tbody tr:hover { background:#fcfdff; }
.customers-table .customer-person { gap:10px; }
.customers-table .customer-person strong { font-size:13.5px; font-weight:700; color:#1e2a3e; }
.customers-table .customer-person small { font-size:11px; color:#8290a3; }
.customers-table .customer-person .avatar { border-radius:6px; }
.customer-chat-id { display:inline-flex; align-items:center; gap:6px; padding:8px 12px; min-height:38px; font-size:12px; font-weight:700; color:#354257; border:1px solid #e5e9f0; border-radius:12px; background:linear-gradient(180deg,#ffffff 0%,#f4f7fb 100%); cursor:pointer; box-shadow:0 2px 10px rgba(15,23,42,.03); }
.customer-chat-id:hover { color:#da2821; background:#fff4f3; border-color:#f6d7d3; }
.customer-chat-id .icon { width:13px; height:13px; }
.customer-wallet { display:flex; flex-direction:column; align-items:flex-start; gap:3px; }
.customer-wallet strong { font-size:13.5px; color:#1f293a; font-weight:750; }
.customer-wallet button { border:0; background:transparent; color:#377cf2; padding:0; font-size:10.5px; cursor:pointer; }
.customer-purchases strong,.customer-last strong { display:block; color:#304058; font-weight:650; font-size:12.5px; }
.customer-purchases small,.customer-last small,.customer-tier-note { display:block; color:#94a0ad; margin-top:3px; font-size:10.5px; }
.customer-tier { color:#3f6ed4; font-size:11px; background:#eff4ff; border:1px solid #dce8ff; padding:4px 7px; border-radius:5px; }
.customer-status { display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:650; border-radius:5px; padding:6px 9px; }
.customer-status i { width:6px; height:6px; border-radius:100%; background:currentColor; }
.customer-status.active { color:#0fa56a; background:#e8f9f1; border:1px solid #c7ebd9; }
.customer-status.blocked { color:#d52a2a; background:#fff0f0; border:1px solid #f8d7d7; }
.customer-actions { display:flex; align-items:center; justify-content:center; }
.customer-actions .action-btn { display:grid; place-items:center; width:40px; height:40px; border:1px solid #e2e8f0; border-radius:12px; background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%); color:#536b93; box-shadow:0 4px 12px rgba(15,23,42,.03); }
.customer-actions .action-btn:hover { border-color:#f2c0bd; color:#d72d29; background:#fff4f3; }

/* Laptop: cards wrap and filter adapts, without a page-wide horizontal scroll. */
@media (max-width:1300px) {
  .customers-filter-primary { grid-template-columns:minmax(220px,1fr) minmax(135px,175px) minmax(135px,175px) auto; }
  .customers-kpi { padding:18px 16px 15px; }
  .customers-kpi-head { left:16px; right:14px; }
}
@media (max-width:1100px) {
  .customers-kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .customers-filter-primary { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .customers-search-input { grid-column:1/-1; }
  .customers-filter-primary>.customer-search-button { grid-column:1/-1; justify-self:stretch; }
}
@media (max-width:880px) {
  :root { --sidebar:284px; }
  .sidebar { width:284px; max-width:88vw; }
  .sidebar .desktop-collapse { display:none!important; }
  body.mobile-open { overflow:hidden; }
  body.mobile-open .sidebar { transform:translateX(0); }
  .sidebar-scrim { border:0; cursor:pointer; }
  .customers-clean-page .page-heading { gap:10px; }
}
@media (max-width:560px) {
  .customers-clean-page { gap:12px; }
  .customers-kpi-grid { gap:9px; }
  .customers-kpi { min-height:137px; padding:15px 12px 13px; }
  .customers-kpi-head { left:12px; right:10px; top:12px; }
  .customers-kpi-head>span { font-size:11px; }
  .customer-kpi-icon { width:30px; height:30px; flex-basis:30px; }
  .customer-kpi-icon .icon { width:17px; height:17px; }
  .customers-kpi>strong { font-size:20px; margin-top:35px; }
  .customers-kpi>small { font-size:10.5px; }
  .customers-search-panel { padding:12px; }
  .customers-filter-primary { grid-template-columns:1fr; gap:9px; }
  .customers-search-input,.customers-filter-primary>.customer-search-button { grid-column:1; }
  .customers-results-caption small { display:none; }
  .customers-filter-extra>label,.customers-filter-extra>label select { width:100%; }
  .customers-filter-extra>.btn { flex:1; justify-content:center; min-width:0; }
}
@media (max-width:355px) { .customers-kpi-grid { grid-template-columns:1fr; } }
@media (prefers-reduced-motion:reduce) { .sidebar,.main-shell,.customers-advanced>summary .icon { transition:none; } }


/* ==== theme-bot-manager.css ==== */
/* VNDEVCODE multi-bot administration: light theme, responsive controls */
.bot-manager-page .customers-table,.bot-chats-page .customers-table { min-width:1060px; }
.bot-list-symbol { width:37px;height:37px;display:inline-grid;place-items:center;border-radius:11px;background:#fff0ef;color:#df2923;flex:0 0 37px; }
.bot-list-symbol .icon {width:19px;height:19px;}
.bot-token-privacy {display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:9px;background:#f5f7fb;color:#596780;font-size:12px;font-weight:650;}
.bot-token-privacy .icon {width:15px;height:15px;}
.bot-admin-id {display:block;margin-top:5px;color:#9aa6b7;font-size:11px;}
.bot-row-actions {justify-content:flex-start;flex-wrap:nowrap;gap:6px;}
.bot-row-actions .action-btn {width:36px;height:36px;flex:0 0 36px;}
.bot-webhook-tip {background:#fff;border:1px solid #e4e8f1;border-left:3px solid #e73831;border-radius:10px;padding:14px 16px;font-size:12.5px;color:#60718a;display:flex;align-items:flex-start;gap:10px;line-height:1.6;}
.bot-webhook-tip .icon {width:18px;height:18px;flex:0 0 18px;color:#e73831;}
.bot-chat-preview {display:inline-block;max-width:280px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;vertical-align:middle;font-size:12px;color:#53657b;}
.chat-unread-badge {display:inline-block;padding:4px 7px;margin-left:5px;border-radius:7px;background:#fff1ee;color:#de352c;font-size:10px;font-weight:750;}
.bot-conversation-info {display:flex;align-items:center;gap:8px;margin-bottom:12px;font-size:12px;color:#61718a;}
.bot-conversation-info .icon {width:17px;height:17px;color:#ed3430;}
.bot-chat-thread {min-height:200px;max-height:430px;overflow-y:auto;display:flex;flex-direction:column;gap:14px;padding:16px;border:1px solid #e5e9f1;border-radius:13px;background:#f8fafd;margin-bottom:16px;}
.bot-chat-line {max-width:85%;align-self:flex-start;display:flex;flex-direction:column;gap:5px;}
.bot-chat-line.from-bot {align-self:flex-end;}
.bot-chat-line small {color:#98a3b2;font-size:11px;}
.bot-chat-line > div {padding:12px 14px;border-radius:13px;background:#fff;border:1px solid #e4e8f0;color:#2b3b50;font-size:13px;line-height:1.65;overflow-wrap:anywhere;white-space:normal;}
.bot-chat-line.from-bot > div {background:#e1342e;border-color:#e1342e;color:#fff;}
.customer-actions .customer-direct-telegram {color:#2879f1;}
.customer-actions .customer-open-conversation {color:#0ba97c;}
.customer-actions .customer-lock-user {color:#d45a53;}
.customer-actions .action-btn {transition:background .18s,transform .18s,border-color .18s,box-shadow .18s;}
.customer-actions .action-btn:hover {transform:translateY(-1px);box-shadow:0 5px 14px rgba(30,40,70,.08);}
@media(max-width:1100px){.bot-chats-page .customers-filter-primary {grid-template-columns:minmax(0,1fr) minmax(0,1fr);}.bot-chats-page .customers-filter-primary .customers-search-input {grid-column:auto;}.bot-chats-page .customers-filter-primary .btn {grid-column:1/-1;}}
@media(max-width:560px){.bot-chats-page .customers-filter-primary {grid-template-columns:1fr;}.bot-chats-page .customers-filter-primary .customers-search-input {grid-column:1;}.bot-chats-page .customers-filter-primary .btn{grid-column:1;}.bot-chats-page .customers-kpi-grid {grid-template-columns:repeat(2,minmax(0,1fr));}.bot-manager-page .page-heading,.bot-chats-page .page-heading{align-items:flex-start;}.bot-manager-page .page-heading .btn,.bot-chats-page .page-heading .btn {width:100%;}.bot-chat-line {max-width:98%;}}


/* ==== theme-bot-chat.css ==== */
/* LIVE CHAT v6 — white business UI, accessible on phones and desktops. */
.modal-card.chat-modal {width:min(900px,calc(100vw - 28px))!important; max-height:min(94dvh,980px); border:1px solid #e0e6ed; border-radius:18px; box-shadow:0 28px 90px rgba(23,37,61,.25); background:#fff;}
.modal-card.chat-modal>header {min-height:65px; padding:15px 22px; background:#fff; border-bottom:1px solid #e7ebf2;}
.modal-card.chat-modal>header .modal-kicker {font-size:10px; letter-spacing:1px; color:#df322c;}
.modal-card.chat-modal>header h2 {font-size:18px; font-weight:750; margin:1px 0 0;}
.modal-card.chat-modal #modalForm {display:flex; flex-direction:column; flex:1; min-height:0;}
.modal-card.chat-modal #modalBody {display:flex; flex-direction:column; flex:1; min-height:0; overflow-y:auto; padding:0 20px 18px; background:#f8fafd; scrollbar-gutter:stable;}
.modal-card.chat-modal #modalForm>footer.is-hidden {display:none!important;}
.bot-conversation-head {display:flex; align-items:center; gap:12px; flex-shrink:0; padding:16px 3px; border-bottom:1px solid #e9edf3; background:#f8fafd;}
.bot-chat-avatar {width:48px; height:48px; flex:0 0 48px; border:1px solid #dfebfd; border-radius:14px; background:linear-gradient(135deg,#edf4ff,#dbe9ff); color:#2865c4; display:grid; place-items:center; font-weight:800; font-size:15px;}
.bot-chat-person {display:flex;flex-direction:column;min-width:0;gap:2px;flex:1;}
.bot-chat-person strong {font-size:15px;color:#202f46;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.bot-chat-person small {font-size:11px;color:#73819a;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.bot-chat-live {display:inline-flex;gap:5px;font-size:10px;font-weight:700;color:#0a9c67;background:#eaf9f1;border:1px solid #c9efde;border-radius:20px;padding:6px 10px;white-space:nowrap;}
.modal-card.chat-modal .bot-chat-thread {min-height:180px; height:min(39vh,420px); max-height:none; flex:1 0 180px; overflow:auto; overscroll-behavior:contain; margin:0; padding:20px 8px 16px; border:0; border-radius:0; background:#f8fafd; gap:12px;}
.bot-chat-line {max-width:min(82%,580px);gap:5px;}
.bot-chat-line small {font-size:10.5px;color:#8996a8;font-weight:550;}
.bot-chat-line.from-bot small {text-align:right;}
.modal-card.chat-modal .bot-chat-bubble {font-size:13.5px;line-height:1.65;border-radius:15px;white-space:pre-wrap;box-shadow:0 2px 9px rgba(30,50,80,.04);padding:11px 15px;word-break:break-word;overflow-wrap:anywhere;}
.bot-chat-bubble b,.bot-chat-bubble strong {font-weight:750;}
.bot-chat-bubble pre,.bot-chat-bubble code {font-family:ui-monospace,SFMono-Regular,Consolas,monospace;word-break:break-word;white-space:pre-wrap;}
.bot-chat-bubble pre {padding:10px;border-radius:9px;background:rgba(130,140,160,.12);}
.bot-chat-bubble blockquote {margin:7px 0;padding:6px 10px;border-left:3px solid #a6b6cf;background:rgba(150,170,200,.10);border-radius:0 6px 6px 0;}
.bot-chat-line.from-bot .bot-chat-bubble blockquote {border-color:#ffb8b5;background:rgba(255,255,255,.13);}
.bot-chat-bubble a {text-decoration:underline;text-underline-offset:2px;color:inherit;}
.bot-chat-picture {display:block;max-width:340px;text-decoration:none;margin:0;}
.bot-chat-picture img {display:block;max-width:100%;max-height:310px;object-fit:contain;border-radius:9px;}
.bot-chat-photo-caption {display:block;font-size:10px;opacity:.85;margin-top:4px;}
.bot-chat-empty {margin:auto;color:#91a0b2;text-align:center;font-size:13px;}
.bot-chat-quick-bar {flex-shrink:0;padding:12px 12px 13px;background:#fff;border:1px solid #e6ebf3;border-radius:13px;margin-bottom:12px;}
.bot-chat-quick-head {display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:10px;}
.bot-chat-quick-head strong {display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:750;color:#4c5a70;}
.bot-chat-quick-head .icon {width:15px;height:15px;}
.bot-chat-quick-head .btn {min-height:30px;padding:5px 10px;font-size:11px;}
.bot-chat-quick-list {display:flex;gap:8px;flex-wrap:wrap;min-width:0;max-height:112px;overflow:auto;}
.bot-chat-template {display:inline-flex;align-items:center;border:1px solid #dfe6f0;background:#f8fafd;border-radius:10px;overflow:hidden;max-width:100%;}
.bot-chat-template button {display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:5px 10px;border:0;background:transparent;color:#4a607d;font-size:11.5px;font-weight:650;cursor:pointer;}
.bot-chat-template button:hover {background:#edf3fe;color:#1e63c9;}
.bot-chat-template button .icon {width:13px;height:13px;}
.bot-chat-template .quick-edit-btn {padding:6px 8px;border-left:1px solid #dfe6f0;}
.bot-chat-no-quick {color:#9aa7b9;font-size:11px;}
.bot-chat-quick-editor {padding:12px;margin-top:10px;border-radius:12px;border:1px solid #dbe5f3;background:#f8fafd;display:flex;flex-direction:column;gap:8px;}
.bot-chat-quick-editor.is-hidden {display:none;}
.bot-chat-quick-editor input,.bot-chat-quick-editor textarea {width:100%;font-size:12px;padding:10px 12px;min-height:36px;}
.bot-chat-quick-editor textarea {resize:vertical;}
.bot-chat-quick-editor-actions {display:flex;flex-wrap:wrap;gap:8px;}
.bot-chat-quick-editor-actions .btn {min-height:35px;font-size:11px;}
.bot-chat-compose {flex-shrink:0;padding:13px 15px;border:1px solid #e5eaf1;background:#fff;border-radius:13px;}
.bot-chat-compose-label {display:block;color:#4b5d74;font-size:11.5px;font-weight:700;margin-bottom:7px;}
.bot-chat-compose textarea {width:100%;font-size:13px;line-height:1.6;min-height:80px;max-height:150px;resize:vertical;padding:12px;border:1px solid #dce4ee;border-radius:11px;background:#fcfdff;color:#23324a;}
.bot-chat-compose textarea:focus {outline:0;border-color:#e55c56;box-shadow:0 0 0 3px #fff1ef;}
.bot-chat-compose-actions {display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px;}
.bot-chat-compose-actions .btn {min-height:40px;padding:0 14px;border-radius:10px;font-size:12px;cursor:pointer;}
.bot-chat-attach {position:relative;}
.bot-chat-compose-actions .bot-chat-help {flex:1;font-size:10.5px;color:#91a0b3;}
.bot-chat-compose-actions #botChatSend {min-width:113px;}
.bot-chat-photo-preview {display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:11px;color:#61728a;}
.bot-chat-photo-preview:not(:empty) {margin-bottom:9px;padding:9px 10px;background:#eff6ff;border-radius:9px;}
.bot-chat-photo-preview strong {max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.bot-chat-photo-preview button {border:0;color:#d72e2c;background:transparent;cursor:pointer;}
@media(max-width:700px) {
 .modal-layer:has(.chat-modal) {padding:0!important;align-items:stretch;}
 .modal-card.chat-modal {height:100dvh;width:100%!important;max-height:100dvh;border-radius:0!important;}
 .modal-card.chat-modal>header {min-height:60px;padding:10px 13px;}
 .modal-card.chat-modal #modalBody {padding:0 10px 12px;}
 .bot-conversation-head {padding:12px 2px;gap:9px;}
 .bot-chat-avatar {width:40px;height:40px;flex-basis:40px;border-radius:11px;}
 .bot-chat-person strong {font-size:13px;}
 .bot-chat-person small {font-size:10px;}
 .bot-chat-live {font-size:0;padding:6px;}
 .bot-chat-live::before {content:'●';font-size:12px;}
 .modal-card.chat-modal .bot-chat-thread {height:auto;min-height:120px;flex:1 1 auto;padding:14px 4px;}
 .bot-chat-line {max-width:94%;}
 .modal-card.chat-modal .bot-chat-bubble {font-size:12.5px;padding:10px 12px;}
 .bot-chat-quick-bar {margin-bottom:8px;padding:9px;}
 .bot-chat-compose {padding:10px;}
 .bot-chat-compose-actions {gap:6px;}
 .bot-chat-compose-actions .bot-chat-help {display:none;}
 .bot-chat-compose-actions #botChatSend {margin-left:auto;}
}
@media (prefers-reduced-motion: reduce) { .modal-card.chat-modal * {transition:none!important; animation:none!important;} }
/* Keep the compose/send controls visible in the phone-sized chat window. */
@media (max-width:700px) {
  .modal-card.chat-modal #modalBody {overflow:hidden;}
  .modal-card.chat-modal .bot-chat-thread {min-height:72px; flex:1 1 72px; height:auto; overflow-y:auto;}
  .bot-chat-quick-list {max-height:68px;}
  .bot-chat-compose textarea {min-height:64px;max-height:96px;}
  .bot-chat-compose-actions {flex-wrap:nowrap;}
  .bot-chat-compose-actions .btn {min-width:0;padding:0 11px;font-size:11.5px;}
  .bot-chat-quick-bar {padding:8px;margin-bottom:7px;}
  .bot-chat-quick-head {margin-bottom:7px;}
  .bot-chat-quick-editor {max-height:160px;overflow:auto;}
}
@media(max-height:700px) and (max-width:700px) {
  .modal-card.chat-modal .bot-chat-thread {min-height:55px;}
  .bot-chat-compose textarea {min-height:52px;max-height:75px;}
  .bot-chat-quick-bar {padding:6px;}
}
/* Toasts must not cover the send/attach buttons while chat is open. */
body:has(.chat-modal) #toastStack {top:82px;bottom:auto;right:14px;}
@media(max-width:700px) { body:has(.chat-modal) #toastStack {top:76px;bottom:auto;left:12px;right:12px;} }


/* v8 polish — dedicated quick template panel and cleaner chat directory */
.bot-chat-layout { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr); gap:16px; min-height:0; }
.bot-chat-main-panel, .bot-chat-side-panel { min-width:0; display:flex; flex-direction:column; gap:12px; }
.bot-chat-side-panel { align-self:stretch; }
.bot-chat-quick-panel { height:100%; margin-bottom:0; padding:14px; border-radius:16px; box-shadow:0 10px 28px rgba(15,23,42,.05); }
.bot-chat-quick-subtitle { margin:0 0 10px; color:#7b889b; font-size:11.5px; line-height:1.5; }
.bot-chat-quick-list { display:grid; grid-template-columns:1fr; gap:8px; max-height:320px; }
.bot-chat-template { width:100%; border-radius:12px; box-shadow:0 3px 10px rgba(15,23,42,.03); }
.bot-chat-template button { min-height:38px; font-size:12px; }
.bot-chat-template button:first-child { flex:1; justify-content:flex-start; }
.bot-chat-template .quick-edit-btn { flex:0 0 40px; justify-content:center; }
.bot-chat-quick-head strong { font-size:13px; }
.bot-chat-quick-head .btn { min-height:34px; font-size:11.5px; }
.bot-chat-quick-editor { box-shadow:inset 0 1px 0 rgba(255,255,255,.7); }
.bot-chat-compose { border-radius:16px; box-shadow:0 8px 24px rgba(15,23,42,.04); }
.bot-chat-photo-preview:not(:empty) { background:linear-gradient(180deg,#eef6ff 0%,#eaf1ff 100%); border:1px solid #dce9ff; }
.bot-chat-directory-hero { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:22px 24px; border-radius:16px; background:linear-gradient(115deg,#ffffff 0%,#ffffff 58%,#fff6f5 100%); border:1px solid #e7ebf1; box-shadow:0 8px 24px rgba(17,35,63,.035); }
.bot-chat-directory-copy { min-width:0; }
.bot-chat-directory-kicker { display:inline-flex; align-items:center; gap:6px; font-size:10.5px; letter-spacing:.08em; font-weight:800; color:#d8322c; }
.bot-chat-directory-copy h3 { margin:8px 0 6px; font-size:26px; line-height:1.15; letter-spacing:-.03em; color:#23324a; }
.bot-chat-directory-copy p { margin:0; max-width:760px; color:#76849a; font-size:13px; line-height:1.65; }
.bot-chat-directory-actions { display:flex; flex-wrap:wrap; gap:10px; }
.bot-chat-directory-actions .btn { min-height:44px; }
.bot-chat-metrics-xl .customers-kpi { min-height:142px; border-radius:14px; }
.bot-chat-search-panel { border-radius:14px; padding:16px; }
.bot-chat-search-panel .customers-filter-primary { grid-template-columns:minmax(240px,1fr) minmax(170px,220px) auto; }
.bot-chat-list-panel { border-radius:16px!important; }
.bot-chat-list-head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 18px; border-bottom:1px solid #edf1f5; }
.bot-chat-list-head h3 { margin:0 0 4px; color:#27364c; font-size:15px; font-weight:760; }
.bot-chat-list-head p { margin:0; color:#8592a4; font-size:11.5px; }
.bot-chat-list-tips { display:inline-flex; align-items:center; gap:8px; padding:9px 11px; border:1px solid #e8edf4; border-radius:11px; background:#fafbfd; color:#66778f; font-size:11.5px; }
.bot-chat-list-tips .icon { width:14px; height:14px; color:#df322d; }
.bot-chat-directory-table { min-width:1120px!important; }
.bot-chat-directory-table th { padding:15px 16px; background:#f8f9fc; white-space:nowrap; }
.bot-chat-directory-table td { padding:16px; vertical-align:middle; }
.bot-chat-directory-table tbody tr:hover td { background:#fffafa; }
.bot-user-main { display:flex; align-items:center; gap:14px; min-width:250px; }
.bot-user-avatar { width:54px; height:54px; flex:0 0 54px; border-radius:16px; border:1px solid #d9e7ff; background:linear-gradient(135deg,#eef4ff,#dbe9ff); color:#2865c4; display:grid; place-items:center; font-weight:800; font-size:16px; box-shadow:0 6px 16px rgba(52,97,186,.08); overflow:hidden; }
.bot-user-avatar.has-photo { background:#eef3f9; color:transparent; }
.bot-user-avatar img { width:100%; height:100%; object-fit:cover; display:block; }
.bot-user-copy { min-width:0; display:flex; flex-direction:column; gap:5px; }
.bot-user-copy strong { font-size:14px; color:#243249; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bot-user-meta { display:flex; align-items:center; flex-wrap:wrap; gap:8px; color:#7d8b9d; font-size:11.5px; }
.bot-user-meta i { width:4px; height:4px; border-radius:50%; background:#cad3df; }
.bot-user-tags { display:flex; flex-wrap:wrap; gap:6px; }
.bot-user-tag { display:inline-flex; align-items:center; gap:5px; padding:5px 8px; border-radius:999px; background:#f5f7fb; border:1px solid #e7edf4; color:#607187; font-size:10.5px; font-weight:700; }
.bot-user-tag.unread { background:#fff1f0; border-color:#ffd6d3; color:#d53a33; }
.bot-user-tag.ok { background:#ebf9f1; border-color:#caeedc; color:#0a9765; }
.bot-chat-last-box { display:flex; flex-direction:column; gap:5px; min-width:220px; }
.bot-chat-last-box strong { color:#3a4960; font-size:11.5px; }
.bot-chat-last-box .bot-chat-preview { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; line-height:1.55; font-size:12px; }
.bot-chat-counts { display:flex; flex-direction:column; gap:4px; }
.bot-chat-counts strong { font-size:18px; color:#243249; }
.bot-chat-counts small { color:#8a96a7; font-size:11px; }
.bot-chat-actions .btn { min-height:40px; white-space:nowrap; }
@media (max-width:980px) {
  .bot-chat-layout { grid-template-columns:1fr; }
  .bot-chat-side-panel { order:-1; }
  .bot-chat-quick-list { max-height:170px; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); }
  .bot-chat-directory-hero { flex-direction:column; align-items:flex-start; }
  .bot-chat-directory-actions { width:100%; }
  .bot-chat-directory-actions .btn { flex:1 1 180px; }
}
@media (max-width:760px) {
  .bot-chat-search-panel .customers-filter-primary { grid-template-columns:1fr; }
  .bot-chat-list-head { flex-direction:column; align-items:flex-start; }
  .bot-chat-directory-table { display:block; min-width:0!important; width:100%; }
  .bot-chat-directory-table thead { display:none; }
  .bot-chat-directory-table tbody { display:grid; gap:12px; padding:12px; }
  .bot-chat-directory-table tbody tr { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:14px; border:1px solid #e6ebf2; border-radius:14px; background:#fff; box-shadow:0 6px 18px rgba(15,23,42,.04); }
  .bot-chat-directory-table tbody tr td { display:flex; flex-direction:column; gap:6px; padding:0!important; background:transparent!important; border:none!important; min-width:0; }
  .bot-chat-directory-table tbody tr td:first-child { grid-column:1/-1; padding-bottom:10px!important; border-bottom:1px solid #edf1f5!important; }
  .bot-chat-directory-table tbody tr td:nth-child(2)::before { content:'Chat ID'; }
  .bot-chat-directory-table tbody tr td:nth-child(3)::before { content:'Tin gần nhất'; }
  .bot-chat-directory-table tbody tr td:nth-child(4)::before { content:'Số tin'; }
  .bot-chat-directory-table tbody tr td:nth-child(5)::before { content:'Trạng thái'; }
  .bot-chat-directory-table tbody tr td:nth-child(2)::before,
  .bot-chat-directory-table tbody tr td:nth-child(3)::before,
  .bot-chat-directory-table tbody tr td:nth-child(4)::before,
  .bot-chat-directory-table tbody tr td:nth-child(5)::before { display:block; color:#8a96a7; font-size:10px; font-weight:750; text-transform:uppercase; letter-spacing:.06em; }
  .bot-chat-directory-table tbody tr td:last-child { grid-column:1/-1; padding-top:10px!important; border-top:1px solid #edf1f5!important; }
  .bot-chat-actions { width:100%; }
  .bot-chat-actions .btn { width:100%; }
}
@media (max-width:700px) {
  .bot-chat-layout { gap:8px; }
  .bot-chat-side-panel { order:2; }
  .bot-chat-main-panel { order:1; }
  .bot-chat-quick-panel { padding:10px; border-radius:13px; }
  .bot-chat-quick-list { grid-template-columns:1fr; max-height:124px; }
  .bot-chat-template button { min-height:34px; font-size:11.5px; }
  .bot-chat-template .quick-edit-btn { flex-basis:36px; }
}

/* Standalone quick-reply library */
.quick-templates-page {gap:22px;}
.quick-template-hero {display:flex;align-items:center;justify-content:space-between;gap:28px;padding:28px 30px;border-radius:20px;background:linear-gradient(115deg,#fff 0%,#fff 54%,#fff0ee 100%);border:1px solid #e8eaf1;box-shadow:0 9px 30px rgba(17,34,61,.04);}
.quick-template-hero>div:first-child {min-width:0;}
.quick-template-kicker {display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:800;letter-spacing:.08em;color:#dc382f;}
.quick-template-kicker .icon {width:17px;height:17px;}
.quick-template-hero h2 {margin:10px 0 7px;font-size:clamp(24px,2vw,31px);letter-spacing:-.04em;line-height:1.15;color:#243148;}
.quick-template-hero p {max-width:700px;margin:0;color:#7a889b;font-size:13.5px;line-height:1.65;}
.quick-template-summary {display:flex;flex-wrap:wrap;gap:9px;margin-top:16px;}
.quick-template-summary span {padding:8px 12px;border-radius:11px;background:#f6f8fb;border:1px solid #e9edf4;color:#65758d;font-size:11.5px;font-weight:650;}
.quick-template-hero-actions {display:flex;flex-direction:column;gap:10px;flex:0 0 auto;}
.quick-template-hero-actions .btn {min-height:46px;}
.quick-template-section {border:1px solid #e5eaf2;border-radius:18px;background:#fff;padding:20px;box-shadow:0 8px 24px rgba(17,35,63,.03);}
.quick-template-section-head {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px;}
.quick-template-section-head h3 {margin:0 0 4px;color:#233148;font-size:17px;}
.quick-template-section-head p {margin:0;color:#8492a6;font-size:12px;}
.quick-template-section-head>span {padding:8px 12px;border-radius:999px;background:#eef4ff;color:#3566b8;font-size:12px;font-weight:750;white-space:nowrap;}
.quick-template-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;}
.quick-template-card {display:flex;flex-direction:column;min-width:0;min-height:260px;padding:20px;border:1px solid #e4ebf3;border-radius:17px;background:linear-gradient(180deg,#fff 0%,#fcfdff 100%);box-shadow:0 6px 18px rgba(15,23,42,.035);transition:box-shadow .18s,border-color .18s,transform .18s;}
.quick-template-card:hover {transform:translateY(-2px);border-color:#e9cbca;box-shadow:0 12px 28px rgba(15,23,42,.07);}
.quick-template-card header {display:flex;align-items:center;justify-content:space-between;gap:10px;}
.quick-template-icon {display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#fff1ee;color:#d6372d;}
.quick-template-icon .icon {width:19px;height:19px;}
.quick-template-number {font-size:10.5px;letter-spacing:.06em;font-weight:800;color:#96a2b0;}
.quick-template-card h3 {margin:15px 0 8px;font-size:17px;font-weight:760;color:#243248;line-height:1.3;overflow-wrap:anywhere;}
.quick-template-card p {min-height:66px;margin:0;color:#66768e;font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;}
.quick-template-card footer {margin-top:auto;padding-top:18px;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;}
.quick-template-card footer>span {font-size:11px;color:#91a0b0;}
.quick-template-actions {display:flex;flex-wrap:wrap;gap:7px;}
.quick-template-actions .btn {min-height:36px;padding:0 11px;font-size:11.5px;border-radius:11px;}
.quick-template-empty {grid-column:1/-1;display:flex;flex-direction:column;align-items:center;gap:12px;padding:45px 20px;text-align:center;border:1px dashed #dfe6ef;border-radius:16px;background:#fbfcfe;}
.quick-template-empty>.icon {width:35px;height:35px;color:#d53b34;}
.quick-template-empty h3 {margin:0;color:#243148;font-size:17px;}
.quick-template-empty p {margin:0 0 5px;color:#8390a4;font-size:13px;}
.quick-template-form {display:flex;flex-direction:column;gap:15px;}
.quick-template-form .form-group {display:flex;flex-direction:column;gap:7px;}
.quick-template-form label {font-size:12px;font-weight:750;color:#46566e;}
.quick-template-form input,.quick-template-form textarea {width:100%;padding:12px 14px;font-size:13.5px;}
.quick-template-form textarea {resize:vertical;min-height:150px;line-height:1.6;}
.quick-template-form p {display:flex;align-items:center;gap:8px;margin:2px 0;color:#8694a7;font-size:11.5px;line-height:1.5;}
.quick-template-form p .icon {flex:0 0 16px;width:16px;height:16px;}
@media(max-width:1280px) {.quick-template-grid {grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:880px) {.quick-template-hero {flex-direction:column;align-items:flex-start;padding:22px;}.quick-template-hero-actions {flex-direction:row;flex-wrap:wrap;width:100%;}.quick-template-hero-actions .btn {flex:1 1 180px;}}
@media(max-width:650px) {.quick-template-grid {grid-template-columns:1fr;}.quick-template-hero {padding:19px;}.quick-template-section {padding:14px;}.quick-template-card {min-height:220px;padding:17px;}.quick-template-card footer {align-items:flex-start;}.quick-template-hero-actions {flex-direction:column;}.quick-template-hero-actions .btn {width:100%;}.quick-template-section-head {align-items:flex-start;}.quick-template-section-head p {max-width:230px;}}

/* Constrain split chat layout so send bar remains reachable at mobile sizes. */
.modal-card.chat-modal #modalBody {min-height:0;}
.bot-chat-layout {flex:1 1 auto;min-height:0;}
.bot-chat-main-panel {min-height:0;}
.modal-card.chat-modal .bot-chat-main-panel .bot-chat-thread {min-height:70px;height:auto;flex:1 1 70px;}
@media(max-width:700px) {
  .bot-chat-layout {display:flex;flex-direction:column;min-height:0;overflow:hidden;}
  .bot-chat-side-panel {order:-1;flex:0 0 auto;}
  .bot-chat-main-panel {order:1;flex:1 1 auto;min-height:0;}
  .bot-chat-quick-panel {height:auto;padding:7px 9px;}
  .bot-chat-quick-panel .bot-chat-quick-subtitle {display:none;}
  .bot-chat-quick-list {display:flex;flex-wrap:nowrap;gap:6px;max-height:40px;overflow-x:auto;overflow-y:hidden;}
  .bot-chat-template {flex:0 0 auto;width:auto;max-width:185px;}
  .bot-chat-template button {min-height:33px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .bot-chat-quick-head {margin-bottom:6px;}
  .bot-chat-quick-head strong {font-size:11.5px;}
  .modal-card.chat-modal .bot-chat-main-panel .bot-chat-thread {min-height:48px;}
}


/* Avatar reliability in chat lists */
.bot-user-avatar,.cell-avatar,.member-avatar-large,.bot-chat-avatar { overflow:hidden; text-transform:uppercase; letter-spacing:.02em; }
.bot-user-avatar img,.cell-avatar img,.member-avatar-large img,.bot-chat-avatar img { width:100%; height:100%; object-fit:cover; display:block; }
.bot-user-avatar:not(.has-photo),.cell-avatar:not(.has-photo),.member-avatar-large:not(.has-photo),.bot-chat-avatar:not(.has-photo) { display:grid; place-items:center; font-weight:800; }


/* ==== theme-history-bot-v7.css ==== */
/* v7 · History accordion and Telegram Bot manager. Presentation only. */
:root { --bot-ink:#243148; --bot-muted:#7c8a9e; --bot-border:#e3e9f2; --bot-accent:#e33630; }

/* Grouped history navigation. Actual pages and deep links remain unchanged. */
.navigation .nav-group { margin:3px 0 8px; }
.navigation .nav-group-toggle { border:1px solid transparent; width:100%; }
.navigation .nav-group-toggle .nav-group-label { flex:1; }
.navigation .nav-group-toggle .nav-group-arrow { display:inline-flex; align-items:center; justify-content:center; margin-left:auto; color:#8d9aae; transition:transform .2s ease; }
.navigation .nav-group-toggle .nav-group-arrow .icon { width:16px; height:16px; }
.navigation .nav-group.is-open .nav-group-arrow { transform:rotate(90deg); }
.navigation .nav-group-toggle.group-active { background:#fff4f3; color:#d92b25; font-weight:700; }
.navigation .nav-group-toggle.group-active .icon-holder { color:#d92b25; }
.navigation .nav-submenu { padding:4px 0 4px 12px; margin:2px 0 4px 18px; border-left:1px solid #e3e8ef; }
.navigation .nav-submenu[hidden] { display:none!important; }
.navigation .nav-child-item { min-height:40px; margin:2px 0; padding:0 12px; gap:9px; border-radius:9px; font-size:12.7px; }
.navigation .nav-child-item .icon-holder .icon { width:16px; height:16px; }
.navigation .nav-child-item.active { background:#fff0ef; color:#d92b25; }
.navigation .nav-child-item.active::before { left:-12px; height:22px; }
.navigation .nav-group-toggle:focus-visible { outline:2px solid #ed8985; outline-offset:2px; }
body.sidebar-collapsed .navigation .nav-submenu { display:none!important; }
body.sidebar-collapsed .navigation .nav-group { margin:0 0 6px; }
body.sidebar-collapsed .navigation .nav-group-toggle { justify-content:center; padding:0; }
body.sidebar-collapsed .navigation .nav-group-label,
body.sidebar-collapsed .navigation .nav-group-arrow { display:none!important; }

/* Larger, more structured bot dashboard */
.bot-manager-page { gap:16px; }
.bot-manager-hero { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:24px 26px; border:1px solid #e8eaf0; border-radius:16px; background:linear-gradient(118deg,#fff 0%,#fff 62%,#fff7f6 100%); box-shadow:0 7px 24px rgba(20,36,65,.035); }
.bot-hero-copy { min-width:0; }
.bot-hero-eyebrow { display:inline-flex; align-items:center; gap:7px; font-size:10.5px; letter-spacing:.07em; font-weight:800; color:#d6352d; }
.bot-hero-eyebrow .icon { width:15px; height:15px; }
.bot-hero-copy h2 { margin:9px 0 5px; font-size:clamp(22px,2vw,28px); font-weight:750; line-height:1.2; letter-spacing:-.035em; color:var(--bot-ink); }
.bot-hero-copy p { margin:0; color:#75849b; font-size:13px; line-height:1.6; }
.bot-hero-tags { margin-top:14px; display:flex; flex-wrap:wrap; gap:9px; }
.bot-hero-tags span { display:inline-flex; align-items:center; gap:6px; border-radius:8px; background:#f5f7fb; border:1px solid #e7ebf3; color:#677790; padding:7px 9px; font-size:11px; font-weight:650; }
.bot-hero-tags .icon { width:14px; height:14px; color:#1aa47a; }
.bot-hero-actions { display:flex; flex-direction:column; align-items:stretch; gap:10px; flex:0 0 auto; }
.bot-hero-actions .btn { min-height:44px; white-space:nowrap; }
.bot-manager-metrics .customers-kpi { min-height:150px; border-radius:12px; }
.bot-manager-page .bot-webhook-tip { border-radius:12px; background:#fff; border-color:#e7ecf2; border-left:3px solid #e13a32; box-shadow:0 3px 15px rgba(27,39,64,.03); }
.bot-manager-page .bot-webhook-tip strong { color:#43556f; }
.bot-manager-filters { border-radius:12px; padding:16px; }
.bot-manager-filters .customers-filter-primary { grid-template-columns:minmax(200px,1fr) minmax(165px,215px) auto; }
.bot-manager-filters .customers-filter-primary .btn { min-height:46px; }
.bot-manager-list { border-radius:14px!important; }
.bot-manager-list-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:17px 19px; border-bottom:1px solid #edf0f5; }
.bot-manager-list-head h3 { margin:0 0 5px; color:#26354d; font-size:15px; font-weight:750; }
.bot-manager-list-head p { margin:0; color:#8491a4; font-size:11.5px; }
.bot-manager-list-head .btn { min-height:38px; }
.bot-manager-table { min-width:1040px!important; }
.bot-manager-table th { padding:15px 16px; background:#f8f9fc; font-size:10px; white-space:nowrap; }
.bot-manager-table td { padding:17px 16px; vertical-align:middle; }
.bot-manager-table tbody tr:hover td { background:#fffafa; }
.bot-profile { min-width:195px; }
.bot-profile-text { min-width:0; }
.bot-profile-text strong { font-size:13px!important; color:#26354c; }
.bot-profile-text small { display:flex; align-items:center; flex-wrap:wrap; gap:5px; padding-top:4px; font-size:11px!important; color:#7e8da3; }
.bot-list-symbol { width:43px; height:43px; flex:0 0 43px; background:#fff1ef; color:#e3322b; border:1px solid #fae0dd; border-radius:12px; }
.bot-list-symbol .icon { width:20px; height:20px; }
.bot-kind-label { padding:3px 7px; border-radius:6px; background:#edf4ff; color:#426cb6; font-size:10px; font-weight:750; }
.bot-kind-label.is-main { background:#fff1dd; color:#a66d0b; }
.bot-manager-table .bot-token-privacy { background:#f5f7fa; border:1px solid #e8ecf2; color:#64748a; padding:7px 9px; font-size:11px; white-space:nowrap; }
.bot-manager-table .bot-admin-id { font-size:11px; margin-top:7px; }
.bot-chat-stat { display:flex; flex-direction:column; gap:2px; }
.bot-chat-stat strong { font-size:16px; color:#26354d; }
.bot-chat-stat small { font-size:11px; color:#8593a7; }
.bot-manager-table .bot-row-actions { display:flex; flex-wrap:nowrap; gap:6px; justify-content:flex-start; }
.bot-manager-table .bot-row-actions .action-btn { flex:0 0 38px; width:38px; height:38px; min-width:38px; border-radius:10px; color:#6b7f99; border:1px solid #e1e7ee; background:#fff; }
.bot-manager-table .bot-row-actions .action-btn:hover { color:#d93029; border-color:#f2c4bf; background:#fff2f0; }
.bot-manager-table .bot-row-actions .action-btn.customer-open-conversation { color:#099c73; }
.bot-manager-table .bot-row-actions .action-btn.customer-lock-user { color:#ca514b; }
.bot-manager-empty td { text-align:center; padding:36px!important; color:#8593a6; }

@media (max-width:1100px) {
  .bot-manager-filters .customers-filter-primary { grid-template-columns:minmax(0,1fr) minmax(170px,230px) auto; }
  .bot-manager-hero { padding:20px; }
}
@media (max-width:760px) {
  .bot-manager-hero { align-items:flex-start; flex-direction:column; padding:19px 17px; }
  .bot-hero-actions { width:100%; flex-direction:row; flex-wrap:wrap; }
  .bot-hero-actions .btn { flex:1 1 180px; }
  .bot-manager-filters .customers-filter-primary { grid-template-columns:1fr; }
  .bot-manager-filters .customers-filter-primary .customers-search-input { grid-column:1; }
  .bot-manager-filters .customers-filter-primary .btn { grid-column:1; }
  .bot-manager-list-head { padding:15px; }
  .bot-manager-list-head .btn { padding:0 12px; }
  .bot-manager-list .table-responsive { width:100%; overflow:visible; }
  .bot-manager-table { display:block; width:100%; min-width:0!important; }
  .bot-manager-table thead { display:none; }
  .bot-manager-table tbody { display:grid; gap:12px; padding:13px; }
  .bot-manager-table tbody tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:14px; gap:13px; border:1px solid #e4eaf2; border-radius:13px; background:#fff; box-shadow:0 5px 18px rgba(17,35,63,.04); }
  .bot-manager-table tbody tr td { display:flex; flex-direction:column; align-items:flex-start; gap:5px; min-width:0; padding:0!important; background:transparent!important; border:none!important; white-space:normal; }
  .bot-manager-table tbody tr td:first-child { grid-column:1/-1; padding-bottom:10px!important; border-bottom:1px solid #eff1f5!important; }
  .bot-manager-table tbody tr td:nth-child(2) { grid-column:1/-1; }
  .bot-manager-table tbody tr td:nth-child(3)::before { content:'Cấu hình'; }
  .bot-manager-table tbody tr td:nth-child(4)::before { content:'Người chat'; }
  .bot-manager-table tbody tr td:nth-child(5)::before { content:'Trạng thái'; }
  .bot-manager-table tbody tr td:nth-child(n+3):nth-child(-n+5)::before { display:block; color:#8793a5; font-size:10px; font-weight:750; text-transform:uppercase; letter-spacing:.06em; }
  .bot-manager-table tbody tr td:last-child { grid-column:1/-1; padding-top:12px!important; border-top:1px solid #eff1f5!important; }
  .bot-manager-table .bot-row-actions { width:100%; justify-content:flex-start; gap:9px; flex-wrap:wrap; }
  .bot-manager-table .bot-row-actions .action-btn { width:42px; height:42px; flex-basis:42px; }
  .bot-manager-empty { grid-template-columns:1fr!important; }
  .bot-manager-empty td { grid-column:1/-1!important; }
}
@media (max-width:420px) {
  .bot-hero-tags { gap:6px; }
  .bot-hero-tags span { font-size:10px; }
  .bot-hero-actions { flex-direction:column; }
  .bot-hero-actions .btn { width:100%; flex:0 0 auto; }
  .bot-manager-list-head h3 { font-size:13px; }
  .bot-manager-list-head p { font-size:10.5px; }
  .bot-manager-list-head .btn { font-size:11px; }
  .navigation .nav-child-item { font-size:12.2px; }
}
@media(prefers-reduced-motion:reduce) { .navigation .nav-group-arrow { transition:none; } }


/* v8 polish — category product UI */
.category-browser { border-radius:16px; padding:18px 20px; box-shadow:0 8px 24px rgba(17,35,63,.035); }
.category-browser-top { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.category-breadcrumb { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.category-breadcrumb button { min-height:36px; padding:0 12px; border:1px solid #e3e9f2; border-radius:11px; background:#fff; color:#5e6d83; font-weight:700; cursor:pointer; box-shadow:0 3px 10px rgba(15,23,42,.03); }
.category-breadcrumb button:hover { color:#d92b25; border-color:#f0cbc8; background:#fff8f7; }
.category-level-summary { margin-top:14px; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:14px 16px; border:1px solid #edf1f5; border-radius:14px; background:linear-gradient(180deg,#fff 0%,#fbfcfe 100%); }
.category-level-summary span { display:block; color:#8d99aa; font-size:10.5px; font-weight:800; letter-spacing:.08em; }
.category-level-summary strong { display:block; margin-top:5px; color:#25344b; font-size:20px; line-height:1.2; }
.category-level-summary small { color:#7d8ca0; font-size:12px; }
.category-quick-tools { border-radius:16px; padding:16px 18px; box-shadow:0 8px 24px rgba(17,35,63,.03); }
.category-quick-tool-actions { display:flex; flex-wrap:wrap; gap:10px; }
.category-visible-pro, .hidden-category-section { background:transparent; border:0; box-shadow:none; }
.category-section-title-pro { margin-bottom:14px; padding:16px 18px; border:1px solid #e7ebf1; border-radius:15px; background:linear-gradient(120deg,#ffffff 0%,#fff7f6 100%); box-shadow:0 8px 24px rgba(17,35,63,.03); }
.category-title-copy strong { color:#26344b; font-size:16px; }
.category-title-copy small { color:#8090a4; font-size:11.5px; }
.category-title-badge { min-width:90px; padding:10px 12px; border-radius:14px; border:1px solid #f2d3cf; background:#fff7f6; color:#d5352d; }
.category-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.category-card { min-height:188px; padding:18px; border:1px solid #e5ebf2; border-radius:18px; background:linear-gradient(180deg,#ffffff 0%,#fbfcff 100%); box-shadow:0 8px 26px rgba(17,35,63,.045); overflow:hidden; }
.category-card::after { width:120px; height:120px; background:linear-gradient(180deg,#fdf0ef,#ffe9e7); opacity:1; }
.category-card-main { align-items:flex-start; gap:14px; }
.category-card-identity { align-items:flex-start; gap:12px; }
.category-emoji { width:62px; height:62px; border-radius:17px; border:1px solid #e0e8f4; background:linear-gradient(135deg,#eef4ff,#dfeaff); font-size:28px; color:#3665bf; box-shadow:0 6px 18px rgba(43,90,184,.08); }
.category-emoji.has-image img { width:100%; height:100%; object-fit:cover; border-radius:16px; }
.category-card-copy { min-width:0; }
.category-level-badge { display:inline-flex; align-items:center; min-height:24px; padding:0 9px; border-radius:999px; font-size:10.5px; font-weight:800; letter-spacing:.06em; }
.category-level-badge.is-parent { background:#eef4ff; color:#3e65b3; }
.category-level-badge.is-child { background:#fff2df; color:#a87413; }
.category-card-copy h3 { margin:9px 0 7px; color:#243248; font-size:18px; line-height:1.25; }
.category-card-copy small { display:block; color:#7c8a9f; font-size:11.5px; line-height:1.6; }
.category-custom-emoji { margin-top:6px; padding-top:6px; border-top:1px dashed #ebeff5; }
.category-drag-handle, .category-order-number { box-shadow:0 4px 12px rgba(15,23,42,.04); }
.category-drag-handle { border-radius:11px; border:1px solid #e5ebf2; background:#fff; color:#7d8ca2; }
.category-order-number { border-radius:999px; background:#fff7f6; color:#d5362f; border:1px solid #f4d2ce; }
.category-card-actions { margin-top:16px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.category-card-actions .btn-mini { min-height:38px; border-radius:11px; }
.category-card-actions .action-btn { width:40px; height:40px; border-radius:12px; }
.hidden-category-section { margin-top:16px; border-radius:16px; padding:18px; border:1px solid #e7ebf1; background:linear-gradient(180deg,#fff 0%,#fbfcfe 100%); box-shadow:0 8px 24px rgba(17,35,63,.03); }
.hidden-category-heading { margin-bottom:14px; }
.hidden-category-list { gap:14px; }
.hidden-category-row { border-radius:16px; border:1px solid #e7ebf1; box-shadow:0 6px 20px rgba(17,35,63,.03); }
.hidden-category-status-pill { border-radius:999px; }
@media (max-width:1100px) { .category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:760px) {
  .category-browser, .category-quick-tools, .hidden-category-section { padding:14px; }
  .category-grid { grid-template-columns:1fr; gap:12px; }
  .category-level-summary strong { font-size:17px; }
  .category-card { min-height:unset; }
  .category-card-copy h3 { font-size:16px; }
  .category-card-actions { gap:7px; }
  .category-card-actions .btn-mini { flex:1 1 160px; }
}


/* V8 definitive light overrides: earlier category theme has dark !important styles. */
#pageContent .category-visible-pro {
  padding:20px!important; background:linear-gradient(180deg,#ffffff 0%,#fafcff 100%)!important;
  border:1px solid #e1e8f1!important; border-radius:20px!important;
  box-shadow:0 12px 32px rgba(17,35,63,.045)!important;
}
#pageContent .category-section-title-pro {
  margin:0 0 18px!important; padding:15px 17px!important; border:1px solid #e8edf4!important;
  border-radius:15px!important; background:linear-gradient(120deg,#f7faff 0%,#fff7f6 100%)!important;
  display:flex!important; align-items:center!important; justify-content:space-between!important;
  box-shadow:none!important;
}
#pageContent .category-title-copy strong {color:#243148!important;font-size:18px!important;}
#pageContent .category-title-copy small {color:#78889f!important;font-size:12px!important;}
#pageContent .category-title-icon {width:46px!important;height:46px!important;min-width:46px!important;color:#4078cf!important;background:#e9f2ff!important;border:1px solid #dbe9ff!important;box-shadow:none!important;}
#pageContent .category-title-badge {background:#fff!important;border:1px solid #e4e9f0!important;border-radius:13px!important;}
#pageContent .category-title-badge b {color:#d7352e!important;}
#pageContent .category-title-badge span {color:#8491a4!important;}
#pageContent .category-grid-compact {grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;}
#pageContent .category-card.category-card-compact {
  min-height:210px!important; padding:48px 18px 18px!important;
  background:linear-gradient(180deg,#fff 0%,#fbfcff 100%)!important;
  color:#273850!important; border:1px solid #e3eaf2!important; border-radius:18px!important;
  box-shadow:0 8px 26px rgba(17,35,63,.05)!important;
}
#pageContent .category-card.category-card-compact:hover {
  border-color:#ebc9c5!important; box-shadow:0 12px 34px rgba(17,35,63,.09)!important;
}
#pageContent .category-card-compact .category-emoji {width:54px!important;height:54px!important;min-width:54px!important;border-radius:15px!important;background:#eef4ff!important;border:1px solid #dfebff!important;box-shadow:0 4px 13px rgba(54,98,183,.06);}
#pageContent .category-card-compact .category-emoji.has-image img {border-radius:14px!important;object-fit:cover;}
#pageContent .category-card-compact .category-card-main {gap:12px!important;align-items:center!important;}
#pageContent .category-card-compact h3 {font-size:16px!important;font-weight:800!important;color:#243148!important;line-height:1.35!important;min-height:0!important;}
#pageContent .category-card-compact small {color:#78889a!important;font-size:11.2px!important;line-height:1.5!important;}
#pageContent .category-card-compact .category-level-badge {background:#eaf2ff!important;color:#3766b4!important;border:1px solid #dce8ff!important;border-radius:999px!important;font-size:10px!important;padding:4px 9px!important;}
#pageContent .category-card-compact .category-level-badge.is-child {background:#fff1dc!important;color:#a66c08!important;border-color:#fde2ae!important;}
#pageContent .category-card-compact .category-custom-emoji {color:#6c88a9!important;}
#pageContent .category-card .category-drag-handle {background:#fff!important;color:#8a97aa!important;border-color:#e5eaf0!important;box-shadow:none!important;}
#pageContent .category-card .category-order-number {background:#fff0ee!important;color:#d93b33!important;border-color:#f2d4d1!important;}
#pageContent .category-card-compact .category-card-actions {display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-top:auto!important;}
#pageContent .category-card-compact .category-card-actions .btn-mini {font-size:11px!important;min-height:38px!important;color:#536a86!important;background:linear-gradient(180deg,#fff,#f7f9fc)!important;border:1px solid #dde5ef!important;border-radius:11px!important;}
#pageContent .category-card-compact .category-card-actions .btn-mini:hover {color:#d7312b!important;background:#fff7f5!important;border-color:#efc7c4!important;}
#pageContent .category-card-compact .category-card-actions .action-btn {width:38px!important;height:38px!important;border-radius:11px!important;background:#f8fafc!important;border:1px solid #e0e6ee!important;color:#53748c!important;}
#pageContent .category-card-compact .category-card-actions .action-btn:hover {background:#fff4f2!important;border-color:#efc7c4!important;color:#d7312b!important;}
#pageContent .category-quick-tools .btn {min-height:40px!important;font-size:11px!important;border-radius:11px!important;}
#pageContent .category-breadcrumb button {color:#536c85!important;border:1px solid #e3e9f2!important;background:#fff!important;border-radius:11px!important;padding:7px 12px!important;}
#pageContent .category-level-summary {background:#f8fafc!important;border:1px solid #e8edf4!important;border-radius:13px!important;padding:12px 15px!important;}
#pageContent .category-level-summary strong {color:#27374e!important;font-size:18px!important;}
#pageContent .category-level-summary span {color:#6686b1!important;font-size:10.5px!important;}
#pageContent .category-level-summary small {color:#7c8ca2!important;font-size:11.5px!important;}
#pageContent .hidden-category-section {background:linear-gradient(180deg,#fff,#fafbfd)!important;border:1px solid #e2e9f1!important;color:#26374e!important;}
#pageContent .hidden-category-bulkbar {background:#f7f9fc!important;border:1px solid #e5eaf2!important;}
#pageContent .hidden-select-all {color:#566a80!important;}
@media(max-width:1050px) {#pageContent .category-grid-compact {grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:650px) {#pageContent .category-grid-compact {grid-template-columns:1fr!important;} #pageContent .category-card.category-card-compact {min-height:185px!important;} #pageContent .category-section-title-pro {padding:13px!important;} #pageContent .category-visible-pro {padding:13px!important;}}
.sidebar-bottom .admin-avatar-fallback {display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,#ed5951,#db302a);color:#fff;font-size:12px;font-weight:850;border:1px solid #dc433b;box-shadow:0 6px 16px rgba(219,48,42,.14);}


/* Category UI polish */
.category-browser { border-radius:16px; padding:18px 20px; box-shadow:0 8px 24px rgba(17,35,63,.035); }
.category-browser-top { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.category-breadcrumb { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.category-breadcrumb button { min-height:36px; padding:0 12px; border:1px solid #e3e9f2; border-radius:11px; background:#fff; color:#5e6d83; font-weight:700; cursor:pointer; box-shadow:0 3px 10px rgba(15,23,42,.03); }
.category-breadcrumb button:hover { color:#d92b25; border-color:#f0cbc8; background:#fff8f7; }
.category-level-summary { margin-top:14px; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:14px 16px; border:1px solid #edf1f5; border-radius:14px; background:linear-gradient(180deg,#fff 0%,#fbfcfe 100%); }
.category-level-summary span { display:block; color:#8d99aa; font-size:10.5px; font-weight:800; letter-spacing:.08em; }
.category-level-summary strong { display:block; margin-top:5px; color:#25344b; font-size:20px; line-height:1.2; }
.category-level-summary small { color:#7d8ca0; font-size:12px; }
.category-quick-tools { border-radius:16px; padding:16px 18px; box-shadow:0 8px 24px rgba(17,35,63,.03); }
.category-quick-tool-actions { display:flex; flex-wrap:wrap; gap:10px; }
.category-visible-pro, .hidden-category-section { background:transparent; border:0; box-shadow:none; }
.category-section-title-pro { margin-bottom:14px; padding:16px 18px; border:1px solid #e7ebf1; border-radius:15px; background:linear-gradient(120deg,#ffffff 0%,#fff7f6 100%); box-shadow:0 8px 24px rgba(17,35,63,.03); }
.category-title-copy strong { color:#26344b; font-size:16px; }
.category-title-copy small { color:#8090a4; font-size:11.5px; }
.category-title-badge { min-width:90px; padding:10px 12px; border-radius:14px; border:1px solid #f2d3cf; background:#fff7f6; color:#d5352d; }
.category-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.category-card { min-height:188px; padding:18px; border:1px solid #e5ebf2; border-radius:18px; background:linear-gradient(180deg,#ffffff 0%,#fbfcff 100%); box-shadow:0 8px 26px rgba(17,35,63,.045); overflow:hidden; }
.category-card::after { width:120px; height:120px; background:linear-gradient(180deg,#fdf0ef,#ffe9e7); opacity:1; }
.category-card-main { align-items:flex-start; gap:14px; }
.category-card-identity { align-items:flex-start; gap:12px; }
.category-emoji { width:62px; height:62px; border-radius:17px; border:1px solid #e0e8f4; background:linear-gradient(135deg,#eef4ff,#dfeaff); font-size:28px; color:#3665bf; box-shadow:0 6px 18px rgba(43,90,184,.08); }
.category-emoji.has-image img { width:100%; height:100%; object-fit:cover; border-radius:16px; }
.category-card-copy { min-width:0; }
.category-level-badge { display:inline-flex; align-items:center; min-height:24px; padding:0 9px; border-radius:999px; font-size:10.5px; font-weight:800; letter-spacing:.06em; }
.category-level-badge.is-parent { background:#eef4ff; color:#3e65b3; }
.category-level-badge.is-child { background:#fff2df; color:#a87413; }
.category-card-copy h3 { margin:9px 0 7px; color:#243248; font-size:18px; line-height:1.25; }
.category-card-copy small { display:block; color:#7c8a9f; font-size:11.5px; line-height:1.6; }
.category-custom-emoji { margin-top:6px; padding-top:6px; border-top:1px dashed #ebeff5; }
.category-drag-handle, .category-order-number { box-shadow:0 4px 12px rgba(15,23,42,.04); }
.category-drag-handle { border-radius:11px; border:1px solid #e5ebf2; background:#fff; color:#7d8ca2; }
.category-order-number { border-radius:999px; background:#fff7f6; color:#d5362f; border:1px solid #f4d2ce; }
.category-card-actions { margin-top:16px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.category-card-actions .btn-mini { min-height:38px; border-radius:11px; }
.category-card-actions .action-btn { width:40px; height:40px; border-radius:12px; }
.hidden-category-section { margin-top:16px; border-radius:16px; padding:18px; border:1px solid #e7ebf1; background:linear-gradient(180deg,#fff 0%,#fbfcfe 100%); box-shadow:0 8px 24px rgba(17,35,63,.03); }
.hidden-category-heading { margin-bottom:14px; }
.hidden-category-list { gap:14px; }
.hidden-category-row { border-radius:16px; border:1px solid #e7ebf1; box-shadow:0 6px 20px rgba(17,35,63,.03); }
.hidden-category-status-pill { border-radius:999px; }
@media (max-width:1100px) { .category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:760px) {
  .category-browser, .category-quick-tools, .hidden-category-section { padding:14px; }
  .category-grid { grid-template-columns:1fr; gap:12px; }
  .category-level-summary strong { font-size:17px; }
  .category-card { min-height:unset; }
  .category-card-copy h3 { font-size:16px; }
  .category-card-actions { gap:7px; }
  .category-card-actions .btn-mini { flex:1 1 160px; }
}


/* ==== theme-chat-reference.css ==== */
/* VNDEVCODE | Screenshot-matched single-column messenger dialog v9.
   The standalone Quick Replies page stays available on the sidebar. */
.modal-layer:has(.chat-modal) { padding:18px; place-items:center; align-items:center; }
.modal-card.chat-modal {
  width:min(660px,calc(100vw - 28px))!important;
  height:min(790px,calc(100dvh - 36px)); max-height:calc(100dvh - 36px);
  border:1px solid #e0e5ec; border-radius:16px!important; background:#fff;
  box-shadow:0 28px 95px rgba(9,17,34,.32); overflow:hidden;
}
.modal-card.chat-modal>header { display:none!important; }
.modal-card.chat-modal #modalForm { display:flex; flex:1 1 auto; min-height:0; overflow:hidden; }
.modal-card.chat-modal #modalBody {
  display:flex; flex:1 1 auto; flex-direction:column; min-height:0;
  padding:0!important; overflow:hidden!important; scrollbar-gutter:auto;
  background:#fff;
}
.modal-card.chat-modal #modalForm>footer { display:none!important; }
.bot-chat-dialog-header {
  min-height:78px; flex:0 0 auto; display:flex; align-items:center; gap:12px;
  padding:13px 17px; background:#fff; border-bottom:1px solid #e9edf3;
}
.bot-chat-dialog-header .bot-chat-avatar {
  flex:0 0 43px; width:43px; height:43px; border-radius:11px; background:#fff0ef;
  border:1px solid #f5dedb; color:#dd3028; font-size:16px; overflow:hidden;
}
.bot-chat-dialog-header .bot-chat-avatar img {display:block;width:100%;height:100%;object-fit:cover;}
.bot-chat-dialog-heading {min-width:0; flex:1; display:flex; flex-direction:column; gap:3px;}
.bot-chat-dialog-heading h2 {margin:0;color:#223047;font-size:15px;font-weight:750;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.bot-chat-dialog-username {font-size:11px;color:#3974cd;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.bot-chat-dialog-bot {font-size:10px;color:#8895a6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.bot-chat-dialog-bot strong {font-weight:650;color:#63748d;}
.bot-chat-dialog-header .bot-chat-live {font-size:10px;padding:6px 9px;border-radius:30px;}
.bot-chat-dialog-close {
  flex:0 0 34px;display:grid;place-items:center;width:34px;height:34px;border:1px solid transparent;
  border-radius:10px;background:transparent;color:#8392a5;cursor:pointer;
}
.bot-chat-dialog-close:hover {background:#fff0ef;color:#dc302a;border-color:#f9dbd8;}
.bot-chat-dialog-close .icon {width:18px;height:18px;}
.modal-card.chat-modal #botChatThread {
  display:flex; flex:1 1 130px; min-height:0!important; max-height:none!important; height:auto!important;
  flex-direction:column; gap:13px; overflow-y:auto; overscroll-behavior:contain;
  margin:0!important; padding:17px 18px 20px;
  border:0!important;border-top:8px solid #1e293b!important;border-radius:0!important;
  background:#f8fafc; scrollbar-width:thin; scrollbar-color:#c5cfdd transparent;
}
.modal-card.chat-modal .bot-chat-line {width:fit-content;max-width:84%;display:flex; flex-direction:column;gap:5px;}
.modal-card.chat-modal .bot-chat-line.from-user {align-self:flex-start;}
.modal-card.chat-modal .bot-chat-line.from-bot {align-self:flex-end;}
.modal-card.chat-modal .bot-chat-line small {font-size:10px;color:#8895a8;font-weight:550;}
.modal-card.chat-modal .bot-chat-line.from-bot small {text-align:right;}
.modal-card.chat-modal .bot-chat-line .bot-chat-bubble {
  background:#fff; color:#344259;border:1px solid #e1e8f0;border-radius:13px;
  padding:10px 13px;font-size:12.5px;line-height:1.62;
  white-space:pre-wrap; overflow-wrap:anywhere; word-break:break-word;
  box-shadow:0 3px 11px rgba(17,35,63,.045);
}
.modal-card.chat-modal .bot-chat-line.from-bot:not(.from-admin) .bot-chat-bubble {
  background:#1e293b;color:#f7fbff;border-color:#1e293b;
}
.modal-card.chat-modal .bot-chat-line.from-admin .bot-chat-bubble {
  background:#e12b25;color:#fff;border-color:#e12b25;
}
.modal-card.chat-modal .bot-chat-line.from-admin .bot-chat-bubble blockquote,
.modal-card.chat-modal .bot-chat-line.from-bot .bot-chat-bubble blockquote {border-color:#a6c8e4;background:rgba(255,255,255,.10);}
.modal-card.chat-modal .bot-chat-line .bot-chat-picture {max-width:min(360px,100%);}
.modal-card.chat-modal .bot-chat-picture img {max-width:100%;height:auto;max-height:280px;object-fit:contain;}
.bot-chat-quick-strip {
  display:flex;flex-direction:column;flex:0 0 auto;min-width:0;
  padding:7px 10px;background:#fff;border-top:1px solid #e6ebf2;
}
.bot-chat-quick-strip-row {display:flex;align-items:center;gap:9px;min-width:0;}
.bot-chat-quick-strip-label {display:flex;gap:5px;align-items:center;flex:0 0 auto;color:#d62f27;font-size:10.5px;font-weight:750;white-space:nowrap;}
.bot-chat-quick-strip-label .icon {width:14px;height:14px;}
.bot-chat-quick-strip .bot-chat-quick-list {
  display:flex!important;flex:1;align-items:center;flex-wrap:nowrap!important;gap:6px;
  min-width:0;max-height:none!important;overflow-x:auto;overflow-y:hidden;
  padding:2px 0;scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent;
}
.bot-chat-quick-strip .bot-chat-template {
  display:inline-flex;flex:0 0 auto;width:auto;max-width:200px;
  border:1px solid #dfe6ee;background:#f7f9fc;border-radius:8px;
  box-shadow:none;overflow:hidden;
}
.bot-chat-quick-strip .bot-chat-template button {
  min-height:29px;padding:4px 10px;color:#53647d;font-size:11px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.bot-chat-quick-strip .bot-chat-template button:first-child {display:flex;max-width:160px;flex:0 1 auto;}
.bot-chat-quick-strip .bot-chat-template .quick-edit-btn {flex:0 0 30px;padding:4px 7px;border-left:1px solid #e3e8f0;}
.bot-chat-quick-add {display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border:1px solid #dce4ee;background:#f8fafc;color:#e0352d;border-radius:8px;cursor:pointer;}
.bot-chat-quick-add:hover {background:#fff0ef;}
.bot-chat-quick-add .icon {width:14px;height:14px;}
.bot-chat-quick-strip .bot-chat-quick-editor {
  display:flex;flex-direction:column;gap:7px;max-height:min(240px,38vh);
  overflow-y:auto;margin-top:9px;padding:10px;border:1px solid #e1e8f1;border-radius:10px;background:#f8fafc;
}
.bot-chat-quick-strip .bot-chat-quick-editor.is-hidden {display:none!important;}
.bot-chat-quick-strip .bot-chat-no-quick {font-size:11px;}
.modal-card.chat-modal .bot-chat-compose {
  display:flex;flex-direction:column;gap:9px; flex:0 0 auto;
  padding:10px 14px 13px!important;margin:0;border:0!important;border-radius:0!important;
  background:#fff;box-shadow:none!important;border-top:1px solid #e7ecf3!important;
}
.bot-chat-compose-top {display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;}
.bot-chat-compose-top span {color:#68788c;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.bot-chat-compose-top strong {color:#dd322b;font-size:11px;font-weight:750;}
.bot-chat-compose-top small {flex:0 0 auto;font-size:10px;color:#99a4b1;}
.bot-chat-compose-main {display:flex;align-items:stretch;gap:9px;min-width:0;}
.bot-chat-compose-main .bot-chat-attach {
  display:grid;place-items:center; flex:0 0 43px;width:43px;height:43px;
  border:1px solid #dbe3ee;border-radius:9px;background:#f4f7fb;color:#7b8da6;cursor:pointer;
}
.bot-chat-compose-main .bot-chat-attach:hover {background:#eef3ff;color:#3769bc;}
.bot-chat-compose-main .bot-chat-attach .icon {width:20px;height:20px;}
.modal-card.chat-modal .bot-chat-compose-main #botChatInput {
  flex:1;min-width:0;min-height:43px;max-height:94px;height:43px; resize:vertical;
  margin:0;padding:11px 12px;border:1px solid #dfe6ef;border-radius:9px;
  background:#fff;color:#23324a;font-size:12.5px;line-height:1.55;
}
.modal-card.chat-modal .bot-chat-compose-main #botChatSend {
  flex:0 0 auto;min-width:88px;min-height:43px;margin:0;padding:0 15px;
  border-radius:9px;background:#df2d26;color:#fff;border-color:#d72722;
  box-shadow:0 5px 12px rgba(222,42,35,.15);
}
.modal-card.chat-modal #botChatSend:disabled {opacity:.65;cursor:wait;}
.modal-card.chat-modal .bot-chat-photo-preview {margin:0;}
.modal-card.chat-modal .bot-chat-photo-preview:not(:empty) {margin:0;padding:8px 10px;border:1px solid #d9e7fa;border-radius:9px;background:#eff5ff;}
@media(max-width:700px) {
  .modal-layer:has(.chat-modal) {padding:0!important;align-items:stretch;}
  .modal-card.chat-modal {width:100%!important;height:100dvh;max-height:100dvh;border:0!important;border-radius:0!important;}
  .bot-chat-dialog-header {min-height:72px;padding:11px 12px;gap:9px;}
  .bot-chat-dialog-header .bot-chat-avatar {width:40px;height:40px;flex-basis:40px;}
  .bot-chat-dialog-heading h2 {font-size:13.5px;}
  .bot-chat-dialog-username,.bot-chat-dialog-bot {font-size:10px;}
  .bot-chat-dialog-header .bot-chat-live {font-size:0;padding:6px;}
  .bot-chat-dialog-header .bot-chat-live:before {content:'●';font-size:10px;}
  .modal-card.chat-modal #botChatThread {padding:12px 10px 15px;gap:12px;flex:1 1 80px;}
  .modal-card.chat-modal .bot-chat-line {max-width:93%;}
  .modal-card.chat-modal .bot-chat-line .bot-chat-bubble {font-size:12px;padding:9px 11px;}
  .bot-chat-quick-strip {padding:7px 9px;}
  .bot-chat-quick-strip-label span {display:none;}
  .modal-card.chat-modal .bot-chat-compose {padding:9px 10px max(13px,env(safe-area-inset-bottom))!important;}
  .bot-chat-compose-top small {display:none;}
  .bot-chat-compose-main {gap:7px;}
  .bot-chat-compose-main .bot-chat-attach {flex-basis:39px;width:39px;height:42px;}
  .modal-card.chat-modal .bot-chat-compose-main #botChatInput {min-height:42px;height:42px;padding:10px;font-size:12px;}
  .modal-card.chat-modal .bot-chat-compose-main #botChatSend {min-width:74px;min-height:42px;padding:0 10px;font-size:11px;}
}
@media(max-height:570px) and (max-width:700px) {
  .bot-chat-dialog-header {min-height:57px;padding:7px 10px;}
  .bot-chat-dialog-header .bot-chat-avatar {width:34px;height:34px;flex-basis:34px;}
  .bot-chat-dialog-bot {display:none;}
  .bot-chat-quick-strip {padding:4px 8px;}
  .modal-card.chat-modal .bot-chat-compose {gap:5px;padding:6px 9px 8px!important;}
}
@media(prefers-reduced-motion:reduce) {
  .modal-card.chat-modal *, .modal-card.chat-modal *::before {animation:none!important;transition:none!important;}
}


/* ==== theme-scheduled.css ==== */
/* VNDEVCODE Scheduled Telegram — screenshot-inspired white admin UI */
.schedule-page{display:flex;flex-direction:column;gap:18px;width:100%;max-width:100%;min-width:0;color:#253249}
.schedule-page-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;min-width:0;padding:6px 0 2px}
.schedule-title-wrap{display:flex;align-items:center;gap:13px;min-width:0}
.schedule-title-wrap>div{min-width:0}
.schedule-title-icon{width:50px;height:50px;flex:0 0 50px;display:grid;place-items:center;border-radius:13px;background:#fff0ef;color:#e3332c}
.schedule-title-icon .icon{width:25px;height:25px}
.schedule-title-wrap h2{font-size:clamp(21px,1.7vw,28px);font-weight:800;line-height:1.2;margin:0 0 5px;letter-spacing:-.025em;color:#1c293e}
.schedule-title-wrap p{font-size:12.5px;line-height:1.6;margin:0;color:#8290a3}
.schedule-hero-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;flex:0 0 auto}
.schedule-hero-actions .btn{min-height:44px;white-space:nowrap}
.schedule-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.schedule-stat-card{position:relative;display:flex;align-items:center;gap:15px;min-height:106px;padding:18px 20px;background:#fff;border:1px solid #e8edf4;border-radius:14px;box-shadow:0 7px 24px rgba(31,48,77,.035);overflow:hidden;min-width:0}
.schedule-stat-icon{width:54px;height:54px;display:grid;place-items:center;flex:0 0 54px;border-radius:13px}
.schedule-stat-icon .icon{width:26px;height:26px}
.schedule-stat-icon.red{background:#fff0f0;color:#e4312b}.schedule-stat-icon.green{background:#e8f8f1;color:#0fab75}.schedule-stat-icon.blue{background:#ebf3ff;color:#2879e8}.schedule-stat-icon.orange{background:#fff4e3;color:#ed9000}
.schedule-stat-card>div{min-width:0;position:relative;z-index:1}
.schedule-stat-card small{display:block;color:#7a879b;font-size:10.5px;font-weight:750;line-height:1.5;letter-spacing:.02em;overflow-wrap:anywhere}
.schedule-stat-card strong{display:block;margin-top:7px;color:#1e2c43;font-size:clamp(23px,2vw,29px);font-weight:800;line-height:1;letter-spacing:-.03em}
.schedule-stat-bars{position:absolute;right:17px;bottom:20px;display:flex;align-items:flex-end;gap:4px;opacity:.42}
.schedule-stat-bars i{display:block;width:7px;height:12px;border-radius:6px 6px 2px 2px;background:currentColor}
.schedule-stat-bars i:nth-child(2){height:19px}.schedule-stat-bars i:nth-child(3){height:29px}.schedule-stat-bars i:nth-child(4){height:38px}
.schedule-stat-bars.red{color:#f18a88}.schedule-stat-bars.green{color:#7cdbb1}.schedule-stat-bars.blue{color:#92b8f5}.schedule-stat-bars.orange{color:#f2c47f}
.schedule-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0;padding:15px 17px;background:#fff;border:1px solid #e7ebf2;border-radius:14px;box-shadow:0 5px 18px rgba(21,37,65,.025)}
.schedule-search{display:flex;align-items:center;gap:10px;padding:0 13px;min-width:0;flex:1 1 280px;max-width:560px;min-height:44px;color:#8d9aab;background:#f9fafc;border:1px solid #e0e7f1;border-radius:11px}
.schedule-search .icon{width:19px;height:19px;flex:0 0 19px}
.schedule-search input{padding:0!important;min-width:0!important;width:100%;font-size:12.5px;min-height:41px;height:41px;background:transparent!important;border:0!important;box-shadow:none!important;outline:none!important}
.schedule-search:focus-within{border-color:#de615e;box-shadow:0 0 0 3px #fff0ef}
.schedule-search-btn{min-height:42px;flex:0 0 auto}
.schedule-filters{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.schedule-filter-btn{min-height:39px;padding:0 14px;border-radius:10px;border:1px solid #e0e6ef;background:#fff;color:#718096;font-size:11.5px;font-weight:700;white-space:nowrap;cursor:pointer;transition:background-color .18s,border-color .18s,color .18s,transform .18s}
.schedule-filter-btn:hover{color:#df2c27;background:#fff7f6;border-color:#f3cfcf;transform:translateY(-1px)}
.schedule-filter-btn.active{color:#db2b25;border-color:#e83932;background:#fff3f2}
.schedule-campaign-list{min-height:370px;padding:19px;background:#fff;border:1px solid #e5eaf1;border-radius:15px;box-shadow:0 8px 26px rgba(21,37,65,.035);display:flex;flex-direction:column;gap:12px;min-width:0}
.schedule-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:345px;text-align:center;padding:26px 14px}
.schedule-empty-illustration{position:relative;width:150px;height:125px;margin-bottom:24px;display:grid;place-items:center}
.schedule-empty-illustration:before{content:"";width:130px;height:20px;border-radius:50%;background:#f1f4f9;position:absolute;bottom:0;left:10px;filter:blur(2px)}
.schedule-empty-calendar{width:90px;height:90px;display:grid;place-items:center;border-radius:23px;background:linear-gradient(#fbe8e8,#f2f5fa 35%);border:1px solid #e6eaf2;color:#e72c26;box-shadow:0 11px 30px rgba(23,38,65,.11);transform:rotate(-3deg)}
.schedule-empty-calendar .icon{width:48px;height:48px}
.schedule-empty-plane{position:absolute;right:10px;bottom:20px;width:55px;height:55px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#36b8ed,#168fcd);border:4px solid #fff;border-radius:50%;box-shadow:0 6px 14px rgba(24,143,205,.19)}
.schedule-empty-plane .icon{width:25px;height:25px}
.schedule-empty h3{color:#1f2d44;font-size:clamp(17px,1.7vw,21px);margin:0 0 8px;font-weight:800;letter-spacing:-.02em}
.schedule-empty p{color:#8995a7;font-size:12.5px;line-height:1.65;margin:0 auto 23px;max-width:560px}
.schedule-empty .btn{min-height:47px;padding:0 23px}
.schedule-campaign-card{display:flex;gap:16px;align-items:flex-start;padding:18px;border:1px solid #e8edf3;border-radius:14px;background:#fff;box-shadow:0 4px 15px rgba(21,37,65,.025)}
.schedule-campaign-icon{flex:0 0 44px;width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:#f1f6ff;color:#2675dd}
.schedule-campaign-icon .icon{width:22px;height:22px}
.schedule-campaign-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:8px}
.schedule-campaign-copy>strong{font-size:13.5px;line-height:1.45;font-weight:750;color:#2d3d56;overflow-wrap:anywhere}
.schedule-campaign-copy>small{font-size:11px;color:#8390a4;display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.schedule-campaign-copy>small .icon,.schedule-campaign-metrics .icon{width:13px;height:13px}
.schedule-campaign-metrics{display:flex;gap:13px;align-items:center;flex-wrap:wrap;color:#6e7e92;font-size:11px}
.schedule-campaign-metrics span{display:inline-flex;align-items:center;gap:5px}
.schedule-campaign-right{display:flex;flex-direction:column;align-items:flex-end;gap:13px;flex:0 0 auto}
.schedule-status{padding:6px 11px;border-radius:99px;border:1px solid transparent;font-size:10.5px;font-weight:800;white-space:nowrap}
.schedule-status.waiting{background:#fff6e5;color:#bc7b08;border-color:#f7dfb3}.schedule-status.running{background:#e7f6ff;color:#1982c5;border-color:#bfebff}.schedule-status.done{background:#e9f9f1;color:#14946a;border-color:#c8ecdb}.schedule-status.failed,.schedule-status.cancelled{background:#fff0f0;color:#d23e38;border-color:#f6d2ce}
.schedule-campaign-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.schedule-campaign-controls .btn{min-height:36px;font-size:11px;padding:0 12px}
.schedule-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#7a889e;font-size:12px;flex-wrap:wrap}
.schedule-pagination>div{display:flex;gap:9px}
.schedule-pagination .btn{min-height:38px}
.schedule-disclaimer{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:11.5px;color:#8591a5;line-height:1.55;padding:0 4px}
.schedule-disclaimer .icon{width:15px;height:15px;flex:0 0 auto}
.schedule-disclaimer button{background:none;border:0;color:#df3029;padding:0;cursor:pointer;font-weight:700;font-size:inherit}
.schedule-create-note,.schedule-create-warning{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #e8edf3;border-radius:12px;background:#f8fafd;color:#667891;font-size:12px;line-height:1.55}
.schedule-create-note .icon,.schedule-create-warning .icon{width:19px;height:19px;flex:0 0 auto;color:#df3932}
.schedule-create-warning{margin:8px 0 0;background:#fff8ef;border-color:#f9e3c1}
.schedule-create-form .form-grid{margin-top:15px}
.schedule-create-form textarea{width:100%;resize:vertical;line-height:1.6}
@media(max-width:1250px){.schedule-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.schedule-stat-card{min-height:100px}.schedule-toolbar{flex-wrap:wrap}.schedule-filters{flex:1 1 auto}}
@media(max-width:760px){.schedule-page{gap:13px}.schedule-page-hero{flex-direction:column;align-items:stretch;gap:16px}.schedule-hero-actions{width:100%}.schedule-hero-actions .btn{flex:1 1 170px}.schedule-title-icon{width:45px;height:45px;flex-basis:45px}.schedule-title-wrap h2{font-size:21px}.schedule-stat-grid{gap:9px}.schedule-stat-card{padding:14px;gap:10px;min-height:105px}.schedule-stat-icon{width:40px;height:40px;flex-basis:40px}.schedule-stat-icon .icon{width:22px;height:22px}.schedule-stat-card small{font-size:9.5px}.schedule-stat-card strong{font-size:23px}.schedule-stat-bars{right:9px;bottom:12px;opacity:.2}.schedule-toolbar{padding:12px;gap:10px}.schedule-search{flex:1 1 calc(100% - 78px);max-width:none}.schedule-filters{overflow-x:auto;justify-content:flex-start;width:100%;flex-wrap:nowrap;padding-bottom:2px;-webkit-overflow-scrolling:touch}.schedule-filter-btn{flex:0 0 auto}.schedule-campaign-list{min-height:320px;padding:12px}.schedule-empty{min-height:320px;padding:20px 5px}.schedule-campaign-card{flex-wrap:wrap;gap:12px;padding:14px}.schedule-campaign-right{width:100%;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap}.schedule-campaign-controls .btn{padding:0 10px}}
@media(max-width:370px){.schedule-stat-grid{grid-template-columns:1fr}.schedule-hero-actions{flex-direction:column}.schedule-hero-actions .btn{width:100%;flex:auto}.schedule-search{flex:1 1 calc(100% - 66px)}.schedule-search-btn{padding:0 10px}}
@media(prefers-reduced-motion:reduce){.schedule-page *{transition:none!important;animation:none!important}}

/* Align the existing instant Telegram notifications page with the new light UI. */
.telegram-hero{border-radius:17px!important;background:linear-gradient(110deg,#fff 0%,#fff 57%,#fff6f5 100%)!important;border:1px solid #e6ebf3!important;box-shadow:0 9px 28px rgba(22,41,73,.035)!important;padding:23px 25px!important;min-height:0!important}
.telegram-hero h2{font-size:clamp(22px,2vw,29px)!important;line-height:1.2!important;letter-spacing:-.03em!important}
.telegram-hero p{font-size:12.5px!important;line-height:1.65!important}
.telegram-hero-orb{border-radius:16px!important}
.telegram-hero-meta span{border-radius:12px!important}
.telegram-stat-grid{gap:14px!important}
.telegram-stat-grid article{border-radius:14px!important;border:1px solid #e6ebf3!important;background:#fff!important;box-shadow:0 7px 24px rgba(22,41,73,.035)!important}
.telegram-live-panel,.telegram-compose-card,.telegram-history-panel{border-radius:15px!important;box-shadow:0 7px 25px rgba(22,41,73,.035)!important}
.telegram-target-card,.telegram-media-box,.telegram-compose-section,.telegram-schedule-field{border-radius:13px!important}
.telegram-broadcast-stats article{border-radius:13px!important}
@media(max-width:760px){.telegram-hero{padding:17px 15px!important}.telegram-stat-grid{gap:9px!important}}


/* v13 scheduled section polish */
.telegram-compose-card .telegram-schedule-section {
  border-top:1px solid #edf1f6;
  background:linear-gradient(180deg,#ffffff 0%,#fcfdff 100%);
}
.telegram-compose-card .telegram-schedule-toggle {
  min-height:74px;
  padding:16px 18px;
  border:1px solid #dce4ef;
  border-radius:16px;
  background:linear-gradient(180deg,#ffffff 0%,#f9fbfe 100%);
  box-shadow:0 8px 22px rgba(20,40,70,.045);
}
.telegram-compose-card .telegram-schedule-toggle:hover {
  border-color:#b7c7da;
  box-shadow:0 10px 24px rgba(20,40,70,.06);
}
.telegram-compose-card .telegram-schedule-toggle > span {
  width:48px;height:26px;border-radius:999px;
  background:#d7e2ef;border:1px solid #bfd0e3;
}
.telegram-compose-card .telegram-schedule-toggle > span::after {
  width:18px;height:18px;left:3px;top:3px;background:#fff;box-shadow:0 2px 8px rgba(15,23,42,.18);
}
.telegram-compose-card .telegram-schedule-toggle input:checked + span {
  background:linear-gradient(135deg,#31a6ff,#0c87e8);border-color:#0c87e8;
}
.telegram-compose-card .telegram-schedule-toggle input:checked + span::after {
  left:25px;background:#fff;box-shadow:0 4px 12px rgba(12,135,232,.35);
}
.telegram-compose-card .telegram-schedule-field {
  min-height:74px;
  padding:14px 16px;
  border:1px solid #dce4ef;
  border-radius:16px;
  background:linear-gradient(180deg,#ffffff 0%,#f9fbfe 100%);
  box-shadow:0 8px 22px rgba(20,40,70,.04);
}
.telegram-compose-card .telegram-schedule-field > span {
  display:block;
  margin-bottom:9px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  color:#65778f;
}
.telegram-compose-card .telegram-schedule-field input {
  min-height:44px;
  border-radius:12px;
  font-size:14px;
  border:1px solid #d4deea;
  background:#fff;
}
.telegram-compose-card .telegram-compose-footer {
  margin-top:0;
  border-top:1px solid #edf1f6;
  background:linear-gradient(180deg,#ffffff 0%,#f7f9fc 100%);
}
.telegram-compose-card .telegram-audience-preview {
  min-width:230px;
  padding:14px 16px;
  border:1px solid #e3e9f1;
  border-radius:16px;
  background:linear-gradient(180deg,#ffffff 0%,#fbfcfe 100%);
  box-shadow:0 8px 24px rgba(17,35,63,.035);
}
.telegram-compose-card .telegram-audience-preview > span {
  width:46px;height:46px;border-radius:14px;
  background:linear-gradient(135deg,#eef5ff,#ddeaff);
  color:#2b7de0;
  border:1px solid #dbe7fb;
}
.telegram-compose-card .telegram-audience-preview strong {
  font-size:24px!important;
  color:#1f3048!important;
  line-height:1;
}
.telegram-compose-card .telegram-send-button {
  min-width:232px;
  min-height:54px;
  padding:0 22px;
  border-radius:15px;
  font-size:15px!important;
  font-weight:800!important;
  background:linear-gradient(135deg,#e14a43 0%,#b94d4a 100%)!important;
  border:1px solid #b4504c!important;
  color:#fff!important;
  box-shadow:0 12px 28px rgba(185,77,74,.22)!important;
}
.telegram-compose-card .telegram-send-button:hover:not(:disabled) {
  transform:translateY(-1px);
  background:linear-gradient(135deg,#dd3f38 0%,#b24441 100%)!important;
  box-shadow:0 14px 32px rgba(185,77,74,.28)!important;
}
.telegram-compose-card .telegram-send-button .icon { width:18px;height:18px; }
.telegram-compose-card .telegram-send-note {
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  background:#fbfcfe;
  border:1px dashed #dbe4ef;
}
.telegram-history-panel {
  border:1px solid #e6ebf2!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#ffffff 0%,#fbfcfe 100%)!important;
  box-shadow:0 10px 28px rgba(17,35,63,.045)!important;
}
.telegram-history-panel > .panel-head {
  padding:22px 22px 18px!important;
  border-bottom:1px solid #edf1f5;
}
.telegram-history-panel .panel-title h3 {
  font-size:19px!important;
  font-weight:800!important;
}
.telegram-history-panel .panel-title p {
  font-size:13px!important;
  line-height:1.65!important;
  color:#5b6e85!important;
}
.telegram-history-panel .broadcast-history-total {
  min-height:38px;
  padding:0 14px;
  border:1px solid #dfe6ef;
  border-radius:999px;
  background:#f8fafc;
  color:#58708a;
  font-size:11px!important;
  font-weight:700;
}
.telegram-history-panel .empty-state {
  min-height:300px;
  padding:30px 18px;
}
.telegram-history-panel .empty-state h3,
.telegram-history-panel .empty-state strong {
  color:#22324a;
  font-size:22px;
  font-weight:800;
}
.telegram-history-panel .empty-state p,
.telegram-history-panel .empty-state small {
  color:#718198;
  font-size:13px;
  line-height:1.65;
}
.telegram-history-panel .empty-state-illustration,
.telegram-history-panel .empty-state span:first-child {
  width:64px;height:64px;border-radius:18px;
  background:linear-gradient(135deg,#f1f4f9,#e8eef6);
  display:grid;place-items:center;
  margin:0 auto 14px;
  color:#7b8ca2;
}
.telegram-history-panel .pagination,
.telegram-history-panel .table-pagination,
.telegram-history-panel .panel-pagination {
  padding:14px 18px;
  border-top:1px solid #edf1f5;
}
.telegram-history-panel .pagination .btn,
.telegram-history-panel .table-pagination .btn,
.telegram-history-panel .panel-pagination .btn,
.telegram-history-panel .page-link {
  min-width:36px;min-height:36px;border-radius:12px;
  border:1px solid #e1e7ef;background:#fff;color:#61738a;
  box-shadow:0 3px 10px rgba(15,23,42,.03);
}
.telegram-history-panel .pagination .btn.active,
.telegram-history-panel .table-pagination .btn.active,
.telegram-history-panel .panel-pagination .btn.active,
.telegram-history-panel .page-link.active {
  background:#fff3f2;color:#d22d27;border-color:#efb1ad;
}
@media (max-width:760px) {
  .telegram-compose-card .telegram-schedule-toggle,
  .telegram-compose-card .telegram-schedule-field { min-height:unset; padding:14px; border-radius:14px; }
  .telegram-compose-card .telegram-audience-preview { width:100%; min-width:0; }
  .telegram-compose-card .telegram-send-button { width:100%; min-width:0; }
  .telegram-history-panel > .panel-head { padding:18px 16px 15px!important; }
  .telegram-history-panel .empty-state { min-height:240px; }
  .telegram-history-panel .empty-state h3,
  .telegram-history-panel .empty-state strong { font-size:18px; }
}


/* ==== theme-clarity-v12.css ==== */
/* VNDEVCODE — legible white administration controls · 2026-10-28
   Pure presentational patch. No state, auth, scheduling or payment changes. */
:root {
  --text:#1d293b;
  --muted:#56647a;
  --border:#dbe2eb;
  --ui-strong:#172338;
  --ui-subtle:#4b5d73;
  --ui-red:#df2924;
}
html { -webkit-text-size-adjust:100%; }
body { color:var(--ui-strong); font-size:14px; line-height:1.55; }
/* Avoid a site-wide !important font-size. Larger labels target actual controls. */
.navigation .nav-item { min-height:46px; font-size:14px; font-weight:600; color:#405169; }
.navigation .nav-label { font-size:11px; color:#62738a; font-weight:800; }
.nav-item.active { color:#cb251f; font-weight:750; }
.topbar h1 { font-size:18px; }
.topbar .breadcrumb, .topbar-account-copy small { font-size:12px; color:#64748b; }
.topbar-account-copy strong { font-size:13px; font-weight:750; }
.page-heading h2 { font-size:clamp(22px,2.1vw,29px); color:#1c293c; }
.page-heading p, .panel-title p, .panel-head p { font-size:13px; color:#566981; line-height:1.65; }
.panel-title h3,.panel-head h3 { font-size:16px; color:#1e2b40; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  color:#243248; font-size:14px; border-color:#d5deea; background-color:#fff;
}
input::placeholder,textarea::placeholder { color:#66788e; opacity:1; }
button, select, input { -webkit-tap-highlight-color:transparent; }
.btn,.btn-sm, .action-btn,.icon-action {
  font-size:13px; font-weight:750; letter-spacing:0; line-height:1.35;
}
.btn { min-height:44px; padding:9px 16px; border-radius:11px; }
.btn-sm { min-height:39px; }
.btn-soft { background:#fff; color:#40516a; border:1px solid #cdd8e6; }
.btn-soft:hover:not(:disabled) { border-color:#e49b94; background:#fff7f6; color:#b8211d; }
.btn-primary { background:#d82924; color:white; border-color:#c9221c; }
.btn-primary:hover:not(:disabled) { background:#c41f1a; color:white; }
.btn:disabled,button:disabled { opacity:.77; cursor:not-allowed; transform:none; box-shadow:none; }
.btn:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,
.navigation .nav-item:focus-visible { outline:3px solid rgba(216,45,36,.28); outline-offset:2px; }
.data-table th { font-size:12px; color:#52647b; letter-spacing:.02em; }
.data-table td { font-size:13px; color:#33445c; }
.data-table small { color:#607189; font-size:12px; }
/* Broadcast area — explicit specificity defeats legacy dark-theme colors. */
.telegram-main-grid .telegram-compose-card,
.telegram-compose-card .telegram-compose-section { background:#fff; color:#1c293c; }
.telegram-compose-card .telegram-compose-head h3 { font-size:clamp(21px,2vw,27px); font-weight:800; color:#18273c; }
.telegram-compose-card .telegram-compose-head p { color:#4d6078; font-size:14px; line-height:1.65; }
.telegram-compose-card .module-kicker { font-size:12px; font-weight:800; color:#c42b26; }
.telegram-compose-card .telegram-config-pill { font-size:12px; font-weight:750; padding:8px 12px; line-height:1.4; }
.telegram-compose-card .telegram-config-pill.warn { color:#a45d0b; background:#fff8e8; border:1px solid #f6dcae; }
.telegram-compose-card .telegram-config-pill.ok { color:#08764f; background:#ecf9f1; border:1px solid #b8e3cc; }
.telegram-compose-card .telegram-section-title > span { width:38px; height:38px; font-size:13px; font-weight:800; }
.telegram-compose-card .telegram-section-title strong { color:#1d2b42; font-size:16px; font-weight:800; line-height:1.45; }
.telegram-compose-card .telegram-section-title small { color:#576880; font-size:12.5px; line-height:1.55; }
.telegram-compose-card .telegram-target-card {
  background:#fff; border:1px solid #d5dfeb; color:#293a51; border-radius:14px;
  box-shadow:0 3px 13px rgba(24,41,68,.035); opacity:1;
}
.telegram-compose-card .telegram-target-card:hover { background:#f8fbff; border-color:#91b1df; }
.telegram-compose-card .telegram-target-card.active {
  background:#fff3f2; border:2px solid #df4038; color:#bd2620;
  box-shadow:0 5px 16px rgba(212,52,46,.08);
}
.telegram-compose-card .telegram-target-card>span { background:#f4f7fb; border:1px solid #e5eaf1; color:#d73730; }
.telegram-compose-card .telegram-target-card strong,
.telegram-compose-card .telegram-target-card.active strong { font-size:14px; color:#1d2c43; font-weight:800; }
.telegram-compose-card .telegram-target-card small { font-size:12.5px; color:#4a6079; line-height:1.5; }
.telegram-compose-card .telegram-target-card>i { width:10px; height:10px; background:#fff; border:2px solid #9aabbf; }
.telegram-compose-card .telegram-target-card.active>i { border-color:#e3352f; background:#e3352f; box-shadow:0 0 0 3px #ffe0dc; }
.telegram-compose-card .telegram-media-box { background:#fcfdff; border:1px dashed #c7d5e8; }
.telegram-compose-card .telegram-media-box:hover { border-color:#de5147; background:#fffaf9; }
.telegram-compose-card .telegram-media-box strong,
.telegram-compose-card #broadcastMediaInfo strong { font-size:14px; color:#22324b; font-weight:750; }
.telegram-compose-card .telegram-media-box small,
.telegram-compose-card #broadcastMediaInfo small { font-size:12.5px; color:#536880; }
.telegram-compose-card .telegram-media-actions .btn { min-height:42px; font-size:13px; color:#354860; }
.telegram-compose-card .broadcast-editor-head label { font-size:13px!important; font-weight:800; color:#17273f; }
.telegram-compose-card .broadcast-editor-head small,
.telegram-compose-card #telegramBroadcastCount { font-size:12px!important; color:#4a5d75; }
.telegram-compose-card .broadcast-format-toolbar { gap:7px; flex-wrap:wrap; }
.telegram-compose-card .broadcast-format-toolbar button {
  min-width:42px!important; min-height:41px!important; height:41px!important;
  padding:0 12px; font-size:13px!important; font-weight:750; color:#35455d;
  border:1px solid #d4deea; border-radius:11px; background:#fff;
}
.telegram-compose-card .broadcast-format-toolbar button:hover { background:#fff4f2; color:#c92d27; border-color:#e8b3ae; }
.telegram-compose-card .telegram-page-editor #telegramBroadcastMessage {
  font-size:15px!important; line-height:1.75!important; color:#203047!important;
}
.telegram-compose-card .telegram-page-editor #telegramBroadcastMessage::placeholder { color:#61738b; opacity:1; }
.telegram-compose-card .telegram-schedule-toggle strong { font-size:14px; color:#213149; }
.telegram-compose-card .telegram-schedule-toggle small { font-size:12.5px; color:#596a80; }
.telegram-compose-card .telegram-schedule-field>span,
.telegram-compose-card .telegram-audience-preview small { font-size:12px; color:#4b6179; }
.telegram-compose-card .telegram-send-button { min-height:48px; font-size:14px; }
.telegram-compose-card .telegram-send-button:disabled { color:#fff; background:#ae5551; border-color:#ae5551; opacity:1; }
.telegram-compose-card .telegram-send-note { font-size:12px; color:#596c83; line-height:1.6; }
.telegram-compose-card .telegram-target-ids label { font-size:12px; color:#394a61; }
.telegram-compose-card .telegram-target-ids textarea { font-size:14px; }
.telegram-history-panel .panel-title h3,.telegram-live-panel .panel-title h3 { font-size:18px; color:#1d2b42; }
.telegram-history-panel .panel-title p,.telegram-live-panel .panel-title p { font-size:13px; color:#566981; }
.telegram-history-panel .data-table th { font-size:12px!important; }
.telegram-history-panel .data-table td { font-size:13px!important; }
.telegram-history-panel .broadcast-history-main strong { font-size:14px; color:#23334b; }
.telegram-history-panel .broadcast-history-main small { font-size:12px; color:#5b6e85; }
.telegram-history-panel .broadcast-counts small,.telegram-history-panel .broadcast-counts span { font-size:12px; }
/* Scheduled campaign controls and category forms */
.schedule-stat-card small { font-size:12px; color:#52647b; }
.schedule-title-wrap p,.schedule-empty p,.schedule-disclaimer { color:#536780; font-size:13px; }
.schedule-filter-btn { min-height:42px; font-size:13px; color:#40516a; }
.schedule-search input { font-size:14px; }
.schedule-campaign-copy>small,.schedule-campaign-metrics { color:#54677f; font-size:12px; }
.category-card-copy small,.category-level-summary small { color:#55677f; font-size:12.5px; }
.category-card-copy h3 { color:#1d2c43; }
/* Keep disabled buttons visually readable but semantically unavailable. */
button:disabled { pointer-events:none; }
@media (max-width:760px) {
  .navigation .nav-item { font-size:14px; }
  .telegram-compose-card .telegram-compose-head { padding:19px 15px; gap:12px; flex-wrap:wrap; }
  .telegram-compose-card .telegram-compose-section { padding:18px 15px; }
  .telegram-compose-card .telegram-target-grid { grid-template-columns:1fr; gap:10px; }
  .telegram-compose-card .telegram-target-card { min-height:80px; }
  .telegram-compose-card .telegram-media-box { gap:10px; grid-template-columns:auto minmax(0,1fr); }
  .telegram-compose-card .telegram-media-actions { grid-column:1/-1; }
  .telegram-compose-card .telegram-media-actions .btn { width:100%; justify-content:center; }
  .telegram-compose-card .telegram-compose-footer { padding:17px 15px; flex-wrap:wrap; }
  .telegram-compose-card .telegram-send-button { width:100%; min-width:0; }
  .telegram-compose-card .telegram-page-editor #telegramBroadcastMessage { font-size:15px!important; min-height:180px!important; }
  .telegram-compose-card .broadcast-format-toolbar button { min-width:40px!important; }
  .schedule-stat-card small { font-size:11.5px; }
}
@media (prefers-reduced-motion:reduce) { .telegram-compose-card .telegram-target-card,.telegram-compose-card .broadcast-format-toolbar button { transition:none; } }


/* ==== theme-products-bots-v14.css ==== */
/* VNDEVCODE v14: light responsive product management and square SVG bot icons. */
.products-pro-page, .bot-manager-page { color:#223249; min-width:0; }
.products-pro-page { display:flex; flex-direction:column; gap:16px; }
.products-pro-page .page-heading { margin-bottom:0; gap:12px; }
.products-pro-page .page-heading h2 { color:#1b2940; font-size:clamp(22px,2vw,29px); }
.products-pro-page .page-heading p { color:#61728a; font-size:13px; line-height:1.6; }
.products-pro-page .page-heading .btn { min-height:43px; }
.products-pro-page .page-heading .restore-all-category-btn,
.products-pro-page .page-heading .restore-all-category-btn:disabled {
  color:#465b76!important; background:#fff!important; border:1px solid #d5dfec!important;
  box-shadow:0 4px 13px rgba(20,40,70,.04)!important; opacity:1!important;
  text-decoration:none!important;
}
.products-pro-page .page-heading .restore-all-category-btn .icon {color:#56718f!important;}
.products-pro-page .page-heading .restore-all-category-btn:hover:not(:disabled) {background:#fff8f7!important;color:#c8322b!important;border-color:#e9b8b3!important;}

.products-pro-page .inventory-hero {
  display:flex!important; align-items:center!important; justify-content:space-between!important; gap:22px!important;
  padding:24px 26px!important; margin:0!important; border:1px solid #e3eaf3!important;
  border-radius:18px!important; background:linear-gradient(115deg,#fff 0%,#fff 65%,#fff5f4 100%)!important;
  box-shadow:0 9px 28px rgba(22,40,72,.055)!important; color:#26354b!important;
}
.products-pro-page .inventory-hero::after {display:none!important;}
.products-pro-page .inventory-hero > div:first-child {min-width:0; flex:1;}
.products-pro-page .inventory-hero .module-kicker {color:#d63b33!important; font-size:11px; font-weight:800; letter-spacing:.09em;}
.products-pro-page .inventory-hero .module-kicker .icon {width:17px;height:17px;color:#d63b33!important;flex-shrink:0;}
.products-pro-page .inventory-hero h2 {font-size:clamp(20px,2vw,27px)!important; font-weight:800; letter-spacing:-.035em; color:#1e3048!important;}
.products-pro-page .inventory-hero p {font-size:13px!important; color:#64758c!important; line-height:1.65!important; max-width:530px;}
.products-pro-page .inventory-metrics {display:grid!important; grid-template-columns:repeat(3,minmax(108px,1fr));gap:10px!important;flex:0 1 530px;min-width:0;}
.products-pro-page .inventory-metrics span { min-width:0!important; padding:16px!important; border-radius:14px!important;
  border:1px solid #e5ebf3!important; background:#fff!important; box-shadow:0 4px 14px rgba(19,38,69,.035); }
.products-pro-page .inventory-metrics small { color:#63758e!important; font-size:11px!important; line-height:1.4; letter-spacing:.02em; font-weight:750; }
.products-pro-page .inventory-metrics strong { color:#263852!important; font-size:25px!important; font-weight:800; margin-top:7px; }
.products-pro-page .inventory-metrics span:last-child strong {color:#dc3932!important;}
.products-pro-page .toolbar {margin:0!important; padding:16px; flex-wrap:wrap; border-radius:16px; border:1px solid #e2e9f1;
  background:#fff; box-shadow:0 6px 20px rgba(25,45,73,.035); align-items:center; gap:12px;}
.products-pro-page .toolbar-left {display:flex; align-items:center; flex:1 1 620px; flex-wrap:wrap; gap:10px; min-width:0;}
.products-pro-page .toolbar-right {display:flex; align-items:center; flex:0 1 auto; flex-wrap:wrap; gap:10px;}
.products-pro-page .toolbar-search-wrap {display:flex;align-items:center; gap:8px; flex:2 1 290px; min-width:0;}
.products-pro-page .toolbar-search-wrap .toolbar-search {min-width:0; width:auto; flex:1 1 190px;}
.products-pro-page .toolbar-search input {min-height:46px; font-size:13px; padding-left:41px; background:#fbfcff!important; border:1px solid #dbe4ee; border-radius:12px; color:#273850;}
.products-pro-page .toolbar .filter-select {height:46px;min-height:46px;flex:1 1 158px;max-width:250px;border:1px solid #dbe4ee;border-radius:12px;background-color:#fff;color:#35455b;font-size:13px;}
.products-pro-page .toolbar .page-size-control {display:flex;align-items:center; flex:1 1 155px;min-width:155px;gap:7px;color:#52637a; font-size:12px;}
.products-pro-page .toolbar .page-size-control .filter-select {min-width:120px; width:100%; max-width:none;}
.products-pro-page .toolbar .btn {min-height:45px;font-size:12.5px;font-weight:750;white-space:nowrap;border-radius:12px;}
.products-pro-page .products-bulk-bar {display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:0; padding:14px 17px!important;
  border:1px solid #e3e9f2; background:#fff; border-radius:15px!important; box-shadow:0 5px 18px rgba(20,40,72,.03);}
.products-pro-page .bulk-select-all {color:#3f526d;font-size:13px;font-weight:750;}
.products-pro-page .bulk-selection-count {color:#64758c;font-size:12.5px;}
.products-pro-page .products-bulk-bar .btn:disabled {opacity:.65;}
.products-pro-page .products-pro-table-panel {background:#fff!important; border:1px solid #e1e8f1!important;
  border-radius:17px!important; box-shadow:0 10px 30px rgba(23,42,73,.045)!important; overflow:hidden;}
.products-list-header {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:20px 21px;border-bottom:1px solid #e7ecf4;background:#fff;}
.products-list-header h3 {margin:0;color:#203149;font-size:17px;font-weight:800;}
.products-list-header p {margin:4px 0 0;color:#687a92;font-size:12.5px;}
.products-list-tip {display:inline-flex;align-items:center;gap:7px;color:#4a6f92;border:1px solid #dceaf6;background:#f5faff;border-radius:10px;padding:9px 11px;font-size:11.5px;font-weight:700;}
.products-list-tip .icon {width:15px;height:15px;flex:0 0 15px;}
.products-pro-page .products-pro-table {min-width:1020px; border-collapse:separate; border-spacing:0; background:#fff;}
.products-pro-page .premium-table .products-pro-table th {background:#f7f9fc!important; color:#556b84!important;
  font-size:11.5px!important;font-weight:800!important; letter-spacing:.04em; padding:15px 13px!important;border-bottom:1px solid #e5ebf3;}
.products-pro-page .premium-table .products-pro-table td {padding:16px 13px!important; font-size:13px!important;
  color:#34445a!important;border-bottom:1px solid #edf1f6!important;background:#fff!important; vertical-align:middle;}
.products-pro-page .premium-table .products-pro-table tr:hover td {background:#fbfcff!important;}
.products-pro-page .premium-table .product-cell {display:flex;align-items:center;min-width:225px!important; gap:12px;}
.products-pro-page .premium-table .product-cell>span:last-child {display:flex;flex-direction:column;min-width:0;gap:5px;}
.products-pro-page .premium-table .product-thumb {width:55px!important;height:55px!important;flex:0 0 55px;
  border-radius:15px!important;background:#f0f5fb!important;border:1px solid #e0e8f2!important;
  box-shadow:0 5px 14px rgba(20,40,72,.06)!important;display:grid;place-items:center;font-size:22px;}
.products-pro-page .premium-table .product-thumb img {object-fit:cover;width:100%;height:100%;}
.products-pro-page .premium-table .product-cell>span>strong {color:#1e3049!important;font-size:14px!important;font-weight:800;line-height:1.45;overflow-wrap:anywhere;}
.products-pro-page .premium-table .product-cell>span>small {color:#687991!important;font-size:11.5px!important;line-height:1.55;overflow-wrap:anywhere;}
.products-pro-page .premium-table .cell-stack strong {color:#34475d!important;font-size:12.5px!important;font-weight:750;}
.products-pro-page .premium-table .cell-stack small {color:#7a8ba0!important;font-size:11px!important;line-height:1.5;}
.products-pro-page .premium-table .product-price-cell {white-space:nowrap;color:#d42d27!important;font-weight:800;font-size:15px!important;}
.products-pro-page .premium-table .product-price-cell small {font-size:11px!important;font-weight:600;color:#708198!important;}
.products-pro-page .premium-table .product-actions-cell .row-actions {display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap;gap:7px;}
.products-pro-page .premium-table .action-btn {display:inline-grid;place-items:center;width:40px;height:40px;min-width:40px;min-height:40px;
  padding:0 8px;border-radius:11px;border:1px solid #dde6f0;background:#fff;color:#536985;box-shadow:0 3px 10px rgba(20,40,72,.035);}
.products-pro-page .premium-table .action-btn .icon {width:18px;height:18px;flex:0 0 18px;}
.products-pro-page .premium-table .action-btn:hover {color:#d6322a;border-color:#f0c9c5;background:#fff6f5;}
.products-pro-page .premium-table .action-btn.danger {color:#d44440;}
.products-pro-page .premium-table .action-btn.pin-toggle.is-pinned {background:#fff8e8;color:#d28a12;border-color:#f4dcaa;}
.products-pro-page .premium-table .action-btn-text {width:auto;min-width:40px;gap:5px;font-size:11px;}
.products-pro-page .premium-table .status {font-size:11.5px;white-space:nowrap;}
.products-pro-page .premium-table .cell-order strong {font-size:12px;color:#6a7d94;}
.products-pro-page .table-footer {padding:16px 20px; border-top:1px solid #e7edf4;color:#60738b;font-size:12px;}
.products-pro-page .pagination button {min-width:37px;min-height:37px;border-radius:11px;}
/* Square stroke icons across the multi-bot screen; never stretch inline SVGs. */
.bot-manager-page .bot-list-symbol {width:48px!important;height:48px!important;min-width:48px;flex:0 0 48px!important;
  display:grid!important;place-items:center!important;aspect-ratio:1 / 1;border-radius:14px!important;background:#fff0ef;color:#d8322c;}
.bot-manager-page .bot-list-symbol svg.icon {width:23px!important;height:23px!important;min-width:23px;min-height:23px;}
.bot-manager-page .bot-profile {display:flex;align-items:center;gap:13px;min-width:200px;}
.bot-manager-page .bot-profile-text {min-width:0;flex:1;}
.bot-manager-page svg.icon {display:block!important;flex-shrink:0;aspect-ratio:1 / 1;max-width:none;transform:none;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
.bot-manager-page svg.icon path,.bot-manager-page svg.icon circle,.bot-manager-page svg.icon rect,.bot-manager-page svg.icon line {vector-effect:non-scaling-stroke;}
.bot-manager-page .bot-hero-copy .icon,.bot-manager-page .bot-hero-tags .icon {width:16px!important;height:16px!important;}
.bot-manager-page .customer-kpi-icon {width:45px!important;height:45px!important;min-width:45px;flex:0 0 45px;display:grid!important;place-items:center!important;border-radius:13px;}
.bot-manager-page .customer-kpi-icon svg.icon {width:22px!important;height:22px!important;min-width:22px;min-height:22px;}
.bot-manager-page .bot-token-privacy {display:inline-flex;align-items:center;gap:7px;min-height:33px;border-radius:10px;}
.bot-manager-page .bot-token-privacy svg.icon {width:15px!important;height:15px!important;}
.bot-manager-page .bot-row-actions {display:flex!important;gap:7px!important;align-items:center!important;flex-wrap:wrap!important;}
.bot-manager-page .bot-row-actions .action-btn {width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;
  flex:0 0 42px!important;display:inline-grid!important;place-items:center!important;padding:0!important;border-radius:12px!important;line-height:1!important;}
.bot-manager-page .bot-row-actions .action-btn svg.icon {width:19px!important;height:19px!important;min-width:19px!important;min-height:19px!important;}
.bot-manager-page .bot-row-actions .action-btn:hover {transform:translateY(-1px);box-shadow:0 7px 17px rgba(22,40,72,.08);}
.bot-manager-page .bot-webhook-tip svg.icon {width:20px!important;height:20px!important;min-width:20px!important;}
.bot-manager-page .bot-manager-table {min-width:1050px!important;}
.bot-manager-page .bot-manager-table th {font-size:11.5px!important;}
.bot-manager-page .bot-manager-table td {font-size:13px;}
@media (max-width:1270px) {
  .products-pro-page .inventory-hero {flex-wrap:wrap;}
  .products-pro-page .inventory-metrics {flex:1 1 100%;}
}
@media (max-width:920px) {
  .products-pro-page .toolbar-left,.products-pro-page .toolbar-right {flex:1 1 100%;}
  .products-pro-page .toolbar-right .btn {flex:1 1 140px;justify-content:center;}
}
@media (max-width:760px) {
  .products-pro-page {gap:12px;}
  .products-pro-page .inventory-hero {padding:18px 16px!important;gap:16px!important;}
  .products-pro-page .inventory-metrics {grid-template-columns:repeat(3,minmax(0,1fr));gap:7px!important;}
  .products-pro-page .inventory-metrics span {padding:12px 9px!important;}
  .products-pro-page .inventory-metrics small {font-size:10px!important;}
  .products-pro-page .inventory-metrics strong {font-size:21px!important;}
  .products-pro-page .toolbar {padding:12px;}
  .products-pro-page .toolbar-left,.products-pro-page .toolbar-right {display:flex;gap:9px;}
  .products-pro-page .toolbar-search-wrap {flex:1 1 100%;}
  .products-pro-page .toolbar .filter-select {flex:1 1 45%;width:auto;max-width:none;}
  .products-pro-page .toolbar .page-size-control {flex:1 1 100%;}
  .products-pro-page .products-bulk-bar .btn {width:100%;}
  .products-pro-page .products-bulk-bar .bulk-selection-count {flex:1 1 100%;}
  .products-pro-page .products-list-header {padding:16px;}
  .products-pro-page .products-list-tip {display:none;}
  .products-pro-page .products-pro-table-panel .table-responsive {overflow:visible!important;max-width:100%;}
  .products-pro-page .products-pro-table {display:block;width:100%;min-width:0!important;}
  .products-pro-page .products-pro-table thead {display:none;}
  .products-pro-page .products-pro-table tbody {display:grid;gap:12px;padding:12px;}
  .products-pro-page .products-pro-table tbody tr.product-pro-row {position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
    border:1px solid #e2e9f2;border-radius:15px;padding:15px 13px;background:#fff;box-shadow:0 6px 18px rgba(18,39,73,.04);}
  .products-pro-page .premium-table .products-pro-table tbody tr.product-pro-row td {display:flex;flex-direction:column;align-items:flex-start;gap:7px;
    min-width:0;padding:0!important;border:0!important;white-space:normal;background:transparent!important;}
  .products-pro-page .products-pro-table .product-check-cell {position:absolute;top:16px;right:15px;z-index:1;}
  .products-pro-page .products-pro-table .product-order-cell {display:none!important;}
  .products-pro-page .products-pro-table .product-name-cell {grid-column:1/-1;padding-right:35px!important;padding-bottom:12px!important;border-bottom:1px solid #e9eef5!important;}
  .products-pro-page .premium-table .product-cell {min-width:0!important; width:100%;}
  .products-pro-page .products-pro-table .product-category-cell::before {content:'Danh mục';}
  .products-pro-page .products-pro-table .product-price-cell::before {content:'Giá bán';}
  .products-pro-page .products-pro-table .product-stock-cell::before {content:'Tồn kho';}
  .products-pro-page .products-pro-table .product-status-cell::before {content:'Trạng thái';}
  .products-pro-page .products-pro-table .product-category-cell::before,
  .products-pro-page .products-pro-table .product-price-cell::before,
  .products-pro-page .products-pro-table .product-stock-cell::before,
  .products-pro-page .products-pro-table .product-status-cell::before {
    display:block;color:#74869b;font-size:10.5px;letter-spacing:.05em;font-weight:800;text-transform:uppercase;}
  .products-pro-page .products-pro-table .product-actions-cell {grid-column:1/-1;padding-top:12px!important;border-top:1px solid #e9eef5!important;}
  .products-pro-page .premium-table .product-actions-cell .row-actions {justify-content:flex-start;gap:9px;width:100%;}
  .products-pro-page .table-footer {padding:14px;gap:10px;flex-wrap:wrap;}
  .bot-manager-page .bot-profile {min-width:0;}
  .bot-manager-page .bot-manager-table {min-width:0!important;}
  .bot-manager-page .bot-manager-table tbody tr {width:100%;}
}
@media (max-width:410px) {
  .products-pro-page .inventory-metrics {grid-template-columns:1fr 1fr;}
  .products-pro-page .inventory-metrics span:first-child {grid-column:1/-1;}
  .products-pro-page .toolbar .filter-select {flex:1 1 100%;}
  .products-pro-page .toolbar-search-wrap {flex-wrap:wrap;}
  .products-pro-page .toolbar-search-wrap .toolbar-search {flex:1 1 100%;}
  .products-pro-page .toolbar-search-button {width:100%;}
  .products-pro-page .products-pro-table tbody tr.product-pro-row {gap:11px;padding:12px;}
  .products-pro-page .premium-table .product-thumb {width:49px!important;height:49px!important;flex-basis:49px;}
  .bot-manager-page .bot-row-actions {gap:6px!important;}
  .bot-manager-page .bot-row-actions .action-btn {width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;flex-basis:40px!important;}
}
@media (prefers-reduced-motion: reduce) {
  .products-pro-page .product-pro-row,.bot-manager-page .bot-row-actions .action-btn {transition:none!important;transform:none!important;}
}

/* v15.2 final radio positioning */
.deposit-mode-grid-inline .deposit-mode-option .deposit-mode-check { left:auto!important; right:16px!important; top:16px!important; bottom:auto!important; box-sizing:border-box!important; flex:0 0 20px!important; width:20px!important; height:20px!important; min-width:20px!important; max-width:20px!important; min-height:20px!important; max-height:20px!important; transform:none!important; }
.deposit-mode-grid-inline .deposit-mode-option strong { width:100%; padding:0 34px 0 0!important; margin:0!important; font-size:18px!important; line-height:1.35!important; }
.deposit-mode-grid-inline .deposit-mode-option small { font-size:12.5px!important; line-height:1.5!important; }
@media(max-width:640px){.deposit-mode-grid-inline .deposit-mode-option .deposit-mode-check{right:14px!important;top:14px!important}.deposit-mode-grid-inline .deposit-mode-option strong{font-size:17px!important}}


/* ==== theme-menu-v153.css ==== */
/* VNDEVCODE v15.3 · Unified responsive navigation. Only layout/visual changes. */
:root { --sidebar: 260px; }
.sidebar {
  background:#fff;
  border-right:1px solid #e6ebf3;
  box-shadow: 3px 0 25px rgba(32,45,67,.025);
}
.sidebar .sidebar-head {
  height:78px; min-height:78px;
  padding:0 12px 0 16px;
  gap:10px;
  border-bottom:1px solid #eef1f6;
}
.sidebar .sidebar-brand.wordmark {
  flex:1 1 auto; min-width:0; margin:0;
  display:flex; align-items:center; justify-content:flex-start;
}
.sidebar .sidebar-brand .site-brand-logo { max-width:184px; max-height:60px; width:100%; object-fit:contain; }
.sidebar .desktop-collapse { flex:0 0 38px; width:38px; height:38px; min-height:38px; border-radius:11px; box-shadow:none; }
.sidebar .desktop-collapse:hover { box-shadow:0 5px 14px rgba(223,39,33,.09); }
.sidebar .navigation {
  flex:1 1 auto; min-height:0;
  padding:12px 10px 18px;
  overflow-x:hidden; overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#d9e1eb transparent;
}
.sidebar .navigation::-webkit-scrollbar { width:6px; }
.sidebar .navigation::-webkit-scrollbar-thumb { background:#dbe3ed; border-radius:9px; }
.sidebar .navigation .nav-label {
  margin:17px 12px 9px; padding:0;
  font-size:10px; line-height:1.4;
  font-weight:780; letter-spacing:1.05px;
  color:#91a0b2;
}
.sidebar .navigation .nav-label:first-child { margin-top:7px; }
.sidebar .navigation .nav-item {
  width:100%; min-height:43px; height:auto;
  margin:2px 0; padding:10px 12px;
  display:flex; align-items:center; gap:11px;
  border:1px solid transparent;
  border-radius:11px;
  font-size:13px; line-height:1.45;
  font-weight:600; letter-spacing:0;
  color:#52647b; background:transparent;
  text-align:left;
  transition:background-color .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.sidebar .navigation .nav-item > span:not(.icon-holder) { min-width:0; }
.sidebar .navigation .nav-item .icon-holder {
  flex:0 0 21px; width:21px; height:21px;
  display:grid; place-items:center;
  color:#78879c;
}
.sidebar .navigation .nav-item .icon-holder .icon { display:block; width:18px; height:18px; flex:none; stroke-width:1.85; }
.sidebar .navigation .nav-item:hover {
  color:#26364c; background:#f5f7fb;
  border-color:#eaf0f6;
}
.sidebar .navigation .nav-item:hover .icon-holder { color:#506d96; }
.sidebar .navigation .nav-item:focus-visible,
.sidebar .desktop-collapse:focus-visible,
.sidebar .mobile-close-sidebar:focus-visible { outline:3px solid #f3a9a5; outline-offset:2px; }
.sidebar .navigation .nav-item.active {
  color:#d82e28; background:#fff1f0;
  border-color:#ffe4e2;
  font-weight:750; box-shadow:0 2px 8px rgba(215,42,37,.035);
}
.sidebar .navigation .nav-item.active .icon-holder { color:#d82e28; }
.sidebar .navigation .nav-item.active::before {
  left:-10px; top:50%; transform:translateY(-50%);
  height:22px; width:3px; background:#e3312b;
  box-shadow:none; border-radius:0 4px 4px 0;
}
.sidebar .navigation .nav-badge {
  min-width:21px; height:21px; margin-left:auto;
  border-radius:8px; font-size:11px; font-weight:800;
  color:#cf2d27; background:#ffe8e6;
}
.sidebar .navigation .nav-group { margin:2px 0 3px; }
.sidebar .navigation .nav-group-toggle {
  width:100%; min-height:43px; padding:10px 12px; border-radius:11px;
}
.sidebar .navigation .nav-group-toggle .nav-group-label { flex:1; text-align:left; }
.sidebar .navigation .nav-group-toggle .nav-group-arrow { margin-left:auto; flex:0 0 16px; color:#8a9aab; }
.sidebar .navigation .nav-group-toggle .nav-group-arrow .icon { width:16px; height:16px; }
.sidebar .navigation .nav-group-toggle.group-active { color:#d82e28; background:#fff6f5; }
.sidebar .navigation .nav-group-toggle.group-active .icon-holder { color:#d82e28; }
.sidebar .navigation .nav-submenu {
  margin:4px 0 6px 21px; padding:3px 0 4px 10px;
  border-left:1px solid #e3eaf2;
}
.sidebar .navigation .nav-submenu[hidden] { display:none!important; }
.sidebar .navigation .nav-child-item {
  min-height:39px; padding:8px 10px; margin:2px 0;
  font-size:12.2px; border-radius:9px; gap:9px;
}
.sidebar .navigation .nav-child-item .icon-holder { width:17px; height:17px; flex-basis:17px; }
.sidebar .navigation .nav-child-item .icon-holder .icon { width:15px; height:15px; }
.sidebar .navigation .nav-child-item.active::before { left:-11px; width:2px; height:20px; }
.sidebar .sidebar-bottom {
  flex:0 0 auto; padding:11px 10px max(11px,env(safe-area-inset-bottom));
  border-top:1px solid #edf1f6; background:#fff;
}
.sidebar .sidebar-bottom .bot-mini { border-radius:12px; }
.sidebar .sidebar-bottom .profile-card { border-radius:12px; }
.mobile-close-sidebar { display:none; }
/* Collapsed desktop retains the expand button and even alignment of every icon. */
body.sidebar-collapsed .sidebar .sidebar-head {
  height:110px; min-height:110px; flex-direction:column;
  justify-content:center; align-items:center; padding:9px 0; gap:8px;
}
body.sidebar-collapsed .sidebar .sidebar-brand.wordmark { flex:0 0 46px; height:46px; min-height:46px; width:54px; margin:0; }
body.sidebar-collapsed .sidebar .sidebar-brand .site-brand-logo { display:none; }
body.sidebar-collapsed .sidebar .sidebar-brand .site-brand-icon { display:block; width:40px; height:40px; }
body.sidebar-collapsed .sidebar .desktop-collapse { display:grid!important; width:38px; height:32px; min-height:32px; flex:0 0 32px; }
body.sidebar-collapsed .sidebar .navigation { padding-inline:8px; }
body.sidebar-collapsed .sidebar .navigation .nav-item { width:100%; min-height:48px; padding:0; justify-content:center; }
body.sidebar-collapsed .sidebar .navigation .nav-item .icon-holder { width:23px; flex-basis:23px; }
body.sidebar-collapsed .sidebar .navigation .nav-item .icon-holder .icon { width:19px; height:19px; }
body.sidebar-collapsed .sidebar .navigation .nav-item.active::before { left:-8px; }
body.sidebar-collapsed .sidebar .navigation .nav-group-toggle .nav-group-label,
body.sidebar-collapsed .sidebar .navigation .nav-group-toggle .nav-group-arrow { display:none!important; }
body.sidebar-collapsed .sidebar .navigation .nav-submenu { display:none!important; }
@media (max-width:880px) {
  :root { --sidebar: 286px; }
  .sidebar {
    width:min(286px,90vw);
    max-width:90vw;
    border-right:1px solid #e3e9f1;
    box-shadow:15px 0 45px rgba(17,31,53,.13);
  }
  body.mobile-open .sidebar { transform:translate3d(0,0,0)!important; }
  body:not(.mobile-open) .sidebar { transform:translate3d(-101%,0,0)!important; }
  .sidebar .sidebar-head { height:75px; min-height:75px; padding:0 10px 0 16px; gap:9px; }
  .sidebar .sidebar-brand .site-brand-logo { max-width:193px; }
  .sidebar .desktop-collapse { display:none!important; }
  .sidebar .mobile-close-sidebar {
    display:grid; place-items:center; flex:0 0 40px;
    width:40px; height:40px; min-height:40px;
    padding:0; border:1px solid #e4eaf1; border-radius:12px;
    background:#f9fafc; color:#5d6d82; cursor:pointer;
  }
  .sidebar .mobile-close-sidebar:hover { background:#fff0ef; color:#d82e28; border-color:#f8d0cc; }
  .sidebar .mobile-close-sidebar .icon { display:block; width:18px; height:18px; }
  .sidebar .navigation { padding:11px 12px 18px; }
  .sidebar .navigation .nav-item { min-height:46px; padding:11px 12px; font-size:13.5px; }
  .sidebar .navigation .nav-child-item { min-height:42px; font-size:12.5px; }
  .sidebar .navigation .nav-label { font-size:10px; }
}
@media (max-width:360px) {
  .sidebar { width:min(278px,91vw); max-width:91vw; }
  .sidebar .sidebar-brand .site-brand-logo { max-width:169px; }
  .sidebar .navigation .nav-item { font-size:13px; }
}
@media (prefers-reduced-motion:reduce) {
  .sidebar .navigation .nav-item { transition:none; }
}


/* ==== theme-catalog-v154.css ==== */
/* VNDEVCODE v15.4 — category/product/voucher administration, white table layout */
.catalog-section,
.catalog-list-toolbar,.catalog-table,.vouchers-list-panel,.voucher-toolbar,.voucher-stat,
.catalog-product-summary { box-sizing:border-box; }
.catalog-section { margin-top:12px; padding:0!important; min-width:0; background:#fff!important; border:1px solid #e3e8f0!important; border-radius:14px!important; overflow:hidden; box-shadow:0 8px 25px rgba(22,41,68,.035)!important; }
.catalog-list-toolbar {display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px; background:#fff;border-bottom:1px solid #e6ecf3;}
.catalog-search-box {display:flex;align-items:center;gap:10px;min-width:210px;max-width:450px;flex:1 1 310px;padding:0 12px;background:#fff;border:1px solid #dfe5ee;border-radius:11px;min-height:42px;}
.catalog-search-box .icon {width:16px;height:16px;color:#8d9aae;flex:0 0 16px;}
.catalog-search-box input {width:100%;min-width:0;padding:0;border:0!important;outline:0!important;box-shadow:none!important;color:#2f3e55;font-size:13px;background:transparent!important;}
.catalog-list-toolbar-right {display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:9px;}
.catalog-list-toolbar-right select,.catalog-list-toolbar-right button {min-height:42px;border-radius:11px!important;font-size:12.5px!important;}
.catalog-list-toolbar-right select {padding:0 36px 0 12px;border:1px solid #dfe5ee;color:#465973;background-color:#fff;}
.catalog-list-toolbar-right button .icon {width:15px;height:15px;}
.catalog-scroll {max-width:100%;overflow-x:auto;overflow-y:hidden;}
.catalog-table {width:100%;min-width:860px;table-layout:auto;border-collapse:separate;border-spacing:0;}
.catalog-table thead th {padding:15px 16px!important;background:#f7f9fc!important;color:#8695a9!important;white-space:nowrap;font-size:10.5px!important;font-weight:800!important;letter-spacing:.065em;text-transform:uppercase;text-align:left;border-bottom:1px solid #e1e7ef;}
.catalog-table thead th:first-child {width:96px;}.catalog-table thead th:nth-child(2) {width:96px;}.catalog-table thead th:nth-child(3) {width:32%;}.catalog-table thead th:last-child {width:150px;}
.catalog-table tbody tr.catalog-table-row {cursor:default;transform:none!important;transition:background .15s ease!important;}
.catalog-table tbody tr.catalog-table-row td {vertical-align:middle;padding:14px 16px!important;border-bottom:1px solid #edf1f6;background:#fff!important;color:#43556f;font-size:12.5px;}
.catalog-table tbody tr.catalog-table-row:last-child td {border-bottom:0;}
.catalog-table tbody tr.catalog-table-row:hover td {background:#fbfcfe!important;}
.catalog-table tbody tr.catalog-table-row[hidden] {display:none!important;}
.catalog-row-actions {display:flex;align-items:center;gap:7px;}
.catalog-row-actions .action-btn {width:36px;height:36px;min-width:36px;padding:0;display:grid;place-items:center;border:1px solid #e0e7f0;border-radius:9px;background:#fff!important;color:#6f7e93;box-shadow:none;}
.catalog-row-actions .action-btn .icon {width:16px;height:16px;}
.catalog-row-actions .action-btn:hover {border-color:#eab1ae;background:#fff3f2!important;color:#d93730;}
.catalog-sort-col {white-space:nowrap;color:#3c4b62;font-weight:800;}
.catalog-sort-col .category-drag-handle {position:static!important;display:inline-grid!important;place-items:center!important;width:29px!important;height:31px!important;min-width:29px;border:0!important;background:transparent!important;color:#94a3b8;cursor:grab;vertical-align:middle;margin:0 7px 0 0!important;transform:none!important;box-shadow:none!important;}
.catalog-sort-col .category-drag-handle .icon {width:16px;height:16px;}
.catalog-sort-col strong {vertical-align:middle;color:#344358;}
.catalog-name-cell {display:flex;align-items:center;gap:12px;min-width:240px;}
.catalog-name-cell>input {width:17px;height:17px;flex:0 0 17px;accent-color:#df312b;}
.catalog-name-cell>.category-emoji.catalog-icon {position:static!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;flex:0 0 44px!important;border-radius:12px!important;display:grid;place-items:center;background:#fff3f2!important;border:1px solid #f6d9d6!important;color:#e43a33!important;box-shadow:none!important;font-size:21px!important;overflow:hidden;}
.catalog-name-cell>.category-emoji.catalog-icon img {width:100%;height:100%;object-fit:cover;}
.catalog-name-cell>div:last-child {min-width:0;}
.catalog-name-cell strong {display:block;font-size:13.5px;color:#26354c;font-weight:800;line-height:1.45;}
.catalog-name-cell small {display:block;margin-top:3px;color:#8390a4;font-size:11.5px;overflow-wrap:anywhere;}
.catalog-row-submenu {display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:6px;}
.catalog-row-submenu>span {font-size:10.5px;color:#a3adba;}
.catalog-child-link,.catalog-add-sub {display:inline-flex;align-items:center;gap:4px;padding:4px 7px;border-radius:8px;background:#f3f7fc;border:1px solid #e4ebf4;color:#617c9e;font-size:10.5px;font-weight:650;cursor:pointer;}
.catalog-add-sub {background:#fff;color:#ce4c46;border-color:#f5d6d2;}
.catalog-child-link .icon,.catalog-add-sub .icon {width:12px;height:12px;}
.catalog-description-col {color:#78879d!important;max-width:430px;line-height:1.55;}
.catalog-status-toggle {display:inline-flex;align-items:center;gap:7px;min-height:29px;padding:0 10px;border-radius:8px;border:1px solid #c3efdb;color:#079664;background:#eaf9f2;font-size:11px;font-weight:800;white-space:nowrap;cursor:pointer;}
.catalog-status-toggle:hover {filter:brightness(.975);}
.catalog-green-dot {width:7px;height:7px;background:#16b77f;border-radius:50%;}
.catalog-list-footer {padding:12px 16px;background:#fff;border-top:1px solid #edf1f6;color:#718198;font-size:12px;}
.catalog-table tr.category-drop-before td {border-top:3px solid #e33c34!important;}
.catalog-table tr.category-drop-after td {border-bottom:3px solid #e33c34!important;}
.catalog-table tr.category-drop-parent td {background:#fff7f4!important;outline:1px dashed #f0aba8;}
.catalog-table tr.is-dragging td {opacity:.5;}
.catalog-table tbody.category-drop-zone-active {outline:2px dashed #f4a8a3;outline-offset:-2px;}
/* Product list: compact, screenshot-style header without losing bulk/API actions */
.products-pro-page .catalog-product-summary {display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-top:-4px;padding:12px 16px;border:1px solid #e7edf5;border-radius:13px;background:#fff;box-shadow:0 4px 18px rgba(25,45,76,.028);}
.catalog-product-summary>span {display:inline-flex;align-items:center;gap:5px;color:#64758d;font-size:12px;}
.catalog-product-summary strong {font-weight:800;color:#df332d;font-size:14px;}
.catalog-product-summary small {margin-left:auto;color:#8a98aa;font-size:11px;}
.products-pro-page .products-pro-table-panel {border-radius:13px!important;}
.products-pro-page .products-list-header {padding:14px 17px!important;}
.products-pro-page .products-pro-table thead th {font-size:10.5px!important;color:#8190a5!important;}
.products-pro-page .products-pro-table tbody td {padding:13px 12px!important;}
.products-pro-page .premium-table .product-thumb {width:46px!important;height:46px!important;flex-basis:46px!important;border-radius:11px!important;background:#fff3f1!important;border-color:#f5dedb!important;}
.products-pro-page .premium-table .product-cell>span>strong {font-size:13.5px!important;}
.products-pro-page .premium-table .product-cell>span>small {font-size:11px!important;}
.product-row-description {max-width:300px;line-height:1.45;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
/* Coupons modern white admin table */
.vouchers-pro-page {display:grid;gap:16px;min-width:0;}
.voucher-stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;}
.voucher-stat {position:relative;min-width:0;min-height:116px;padding:18px 18px 16px;border:1px solid #e4eaf2;border-radius:13px;background:#fff;box-shadow:0 5px 18px rgba(20,40,70,.032);}
.voucher-stat>span {display:block;color:#75869c;font-size:12px;line-height:1.4;padding-right:42px;}
.voucher-stat>strong {display:block;margin-top:14px;color:#26364e;font-size:26px;line-height:1;font-weight:800;}
.voucher-stat>.icon-bg {position:absolute;top:16px;right:16px;display:grid;place-items:center;width:41px;height:41px;border-radius:11px;}
.voucher-stat>.icon-bg .icon {width:19px;height:19px;}
.voucher-stat>.icon-bg.red {color:#e13732;background:#ffefee;}.voucher-stat>.icon-bg.green {color:#10a66c;background:#e9f9f1;}.voucher-stat>.icon-bg.blue {color:#3174e5;background:#eaf3ff;}.voucher-stat>.icon-bg.amber {color:#d68a13;background:#fff5e3;}
.voucher-toolbar {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border:1px solid #e4eaf1;border-radius:12px;background:#fff;box-shadow:0 5px 18px rgba(20,40,70,.03);}
.voucher-search {display:flex;align-items:center;gap:9px;flex:1 1 300px;max-width:460px;min-width:0;min-height:42px;padding:0 12px;border:1px solid #dde6ef;border-radius:10px;background:#fff;}
.voucher-search>.icon {width:16px;height:16px;flex:0 0 16px;color:#91a0b3;}
.voucher-search input {min-width:0;width:100%;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;font-size:13px;color:#26364e;}
.voucher-filters {display:flex;flex-wrap:wrap;gap:10px;}
.voucher-filters select {min-height:42px;min-width:164px;padding:0 34px 0 12px;border:1px solid #dde6ef;border-radius:10px;color:#586a82;background-color:#fff;font-size:12px;}
.vouchers-list-panel {min-width:0;padding:0!important;border:1px solid #e3e9f1!important;border-radius:13px!important;overflow:hidden;box-shadow:0 7px 22px rgba(20,40,70,.035)!important;background:#fff!important;}
.voucher-table {min-width:990px;width:100%;border-collapse:collapse;}
.voucher-table thead th {padding:15px 13px!important;background:#f7f9fc!important;color:#8795a9!important;font-size:10.5px!important;font-weight:800!important;letter-spacing:.035em;white-space:nowrap;border-bottom:1px solid #e1e7f0;}
.voucher-table td {padding:15px 13px!important;vertical-align:middle;border-bottom:1px solid #eaf0f5!important;font-size:12.5px;color:#40536d;background:#fff!important;}
.voucher-table tbody tr:hover td {background:#fcfdff!important;}
.voucher-name-cell {display:flex;align-items:center;gap:10px;min-width:160px;}
.voucher-icon {width:39px;height:39px;min-width:39px;border-radius:11px;background:#fff1f0;color:#e43732;border:1px solid #f7dcda;display:grid;place-items:center;}
.voucher-icon .icon {width:18px;height:18px;}
.voucher-name-cell strong {display:block;font-weight:800;font-size:13px;color:#283b52;}
.voucher-copy-code {display:inline-flex;align-items:center;gap:4px;margin-top:5px;padding:0;border:0;background:transparent;color:#d42e28;font-weight:700;font-size:10.5px;cursor:pointer;}
.voucher-copy-code .icon {width:11px;height:11px;}
.voucher-price-col strong {color:#da352f;font-weight:800;font-size:14px;}.voucher-price-col small {display:block;margin-top:4px;color:#8b99ab;font-size:10.5px;}
.voucher-minimum {color:#485973;font-size:12px;}.voucher-subline {display:block;margin-top:3px;color:#a1adba;font-size:10.5px;}
.voucher-use-col strong {color:#27374d;font-size:12.5px;}.voucher-use-col strong small {color:#8b98aa;}
.voucher-progress {display:block;max-width:116px;height:5px;margin-top:8px;border-radius:9px;background:#e8ecf1;overflow:hidden;}.voucher-progress i {display:block;height:100%;background:#e6423b;}
.voucher-date-col {white-space:normal;min-width:130px;color:#687a92;}
.voucher-status-col {min-width:140px;}.voucher-status {display:block;max-width:max-content;padding:5px 9px;border-radius:8px;font-weight:750;font-size:10.5px;white-space:nowrap;}
.voucher-status.active {color:#069a66;background:#e9f9f1;}.voucher-status.inactive {color:#a77416;background:#fff3e2;}.voucher-status.expired {color:#a15356;background:#fff0f0;}
.voucher-switch {display:block;position:relative;width:35px;height:20px;margin-top:7px;padding:0;border:0;border-radius:999px;background:#cbd4e0;cursor:pointer;}
.voucher-switch.on {background:#10ae77;}.voucher-switch i {display:block;position:absolute;top:3px;left:3px;width:14px;height:14px;background:white;border-radius:50%;box-shadow:0 1px 3px rgba(0,0,0,.14);transition:left .16s;}
.voucher-switch.on i {left:18px;}.voucher-switch:focus-visible {outline:2px solid #e76a64;outline-offset:3px;}
.voucher-actions-col .action-btn {width:38px;height:38px;display:grid;place-items:center;border-radius:10px;border:1px solid #e2e8ef;background:#fff;color:#728098;}
.voucher-actions-col .action-btn .icon {width:16px;height:16px;}.voucher-actions-col .action-btn:hover {color:#db342e;background:#fff7f6;border-color:#f3ceca;}
.voucher-list-footer {padding:13px 16px;color:#7a8ca0;font-size:11.5px;background:#fff;}
/* Tablet/mobile use readable cards without forcing the whole page to scroll horizontally. */
@media(max-width:1150px){.voucher-stats{grid-template-columns:repeat(2,minmax(0,1fr));}.catalog-product-summary small{flex:1 1 100%;margin-left:0;}}
@media(max-width:760px){
 .catalog-list-toolbar {align-items:stretch;flex-wrap:wrap;padding:12px;}
 .catalog-search-box {flex:1 1 100%;max-width:none;}
 .catalog-list-toolbar-right {flex:1 1 100%;justify-content:stretch;}
 .catalog-list-toolbar-right select {flex:1 1 160px;width:100%;min-width:0;}
 .catalog-list-toolbar-right .btn {flex:1 1 150px;justify-content:center;}
 .catalog-scroll {overflow:visible;}
 .catalog-table {display:block;min-width:0!important;width:100%;}
 .catalog-table thead {display:none;}
 .catalog-table tbody {display:grid;gap:11px;padding:12px;}
 .catalog-table tbody tr.catalog-table-row {display:grid;grid-template-columns:1fr 1fr;gap:11px;padding:14px;border:1px solid #e2eaf3;border-radius:14px;background:#fff!important;box-shadow:0 5px 18px rgba(23,41,71,.035);}
 .catalog-table tbody tr.catalog-table-row td {display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:0!important;border:0!important;background:transparent!important;min-width:0;}
 .catalog-table tbody tr.catalog-table-row td.catalog-name-col {order:0;grid-column:1/-1;grid-row:1;padding-bottom:12px!important;border-bottom:1px solid #eaf0f6!important;}
 .catalog-table tbody tr.catalog-table-row td.catalog-description-col {order:1;grid-column:1/-1;line-height:1.5;}
 .catalog-table tbody tr.catalog-table-row td.catalog-description-col::before {content:'MÔ TẢ';font-size:10px;font-weight:800;color:#91a0b4;letter-spacing:.045em;}
 .catalog-table tbody tr.catalog-table-row td.catalog-sort-col {order:2;display:flex;flex-direction:row;align-items:center;gap:5px;}
 .catalog-table tbody tr.catalog-table-row td.catalog-status-col {order:3;align-items:flex-end;}
 .catalog-table tbody tr.catalog-table-row td.catalog-actions-col {order:4;grid-column:1/-1;padding-top:9px!important;border-top:1px solid #eaf0f6!important;}
 .catalog-name-cell {min-width:0;width:100%;}
 .catalog-row-actions {width:100%;justify-content:flex-end;}
 .catalog-list-footer {font-size:11px;}
 .voucher-toolbar {flex-wrap:wrap;align-items:stretch;}
 .voucher-search {max-width:none;flex:1 1 100%;}
 .voucher-filters {flex:1 1 100%;}
 .voucher-filters select {min-width:0;flex:1 1 140px;}
 .voucher-table {display:block;width:100%;min-width:0!important;}
 .voucher-table thead {display:none;}
 .voucher-table tbody {display:grid;gap:12px;padding:12px;}
 .voucher-table tr.voucher-row {display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px;border:1px solid #e2e9f1;border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(23,41,71,.04);}
 .voucher-table tr.voucher-row td {display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:0!important;border:0!important;background:transparent!important;min-width:0;}
 .voucher-table tr.voucher-row td.voucher-name-col {grid-column:1/-1;padding-bottom:10px!important;border-bottom:1px solid #edf2f7!important;}
 .voucher-table tr.voucher-row td.voucher-actions-col {align-items:flex-end;}
 .voucher-price-col::before,.voucher-use-col::before,.voucher-date-col::before,.voucher-status-col::before {display:block;color:#8e9bae;font-size:10px;font-weight:800;letter-spacing:.04em;}
 .voucher-price-col::before {content:'ƯU ĐÃI';}.voucher-use-col::before {content:'ĐÃ SỬ DỤNG';}.voucher-date-col::before {content:'HẾT HẠN';}.voucher-status-col::before {content:'TRẠNG THÁI';}
 .voucher-table tr.voucher-row td:nth-child(3) {grid-column:1/-1;}
 .voucher-table tr.voucher-row td:nth-child(3)::before {content:'ĐIỀU KIỆN';font-size:10px;color:#8e9bae;font-weight:800;}
 .voucher-list-footer {font-size:11px;}
}
@media(max-width:420px){.voucher-stat {min-height:100px;padding:14px;}.voucher-stat>span {font-size:11px;}.voucher-stat>strong {font-size:22px;}.voucher-stat>.icon-bg {right:12px;top:12px;width:33px;height:33px;}.catalog-name-cell>.category-emoji.catalog-icon {width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;}}


/* ==== theme-deposit-tiers-v155.css ==== */
/* VNDEVCODE V15.5 · Cấp bậc nạp tiền — giao diện sáng, responsive */
.deposit-tiers-page{display:grid;gap:22px;min-width:0}
.deposit-tiers-page .page-heading{margin-bottom:0}
.deposit-tier-add{min-height:46px;padding:0 20px;border-radius:12px;font-size:13px;white-space:nowrap}
.deposit-tier-add .icon{width:18px;height:18px}
.deposit-tier-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.deposit-tier-stat{min-width:0;min-height:132px;display:flex;align-items:center;gap:16px;padding:22px;background:#fff;border:1px solid #e3e9f1;border-radius:16px;box-shadow:0 7px 24px rgba(20,38,67,.04)}
.deposit-tier-stat-icon{display:grid;place-items:center;flex:0 0 54px;width:54px;height:54px;border-radius:16px}
.deposit-tier-stat-icon .icon{width:25px;height:25px;stroke-width:2}
.deposit-tier-stat-icon.blue{color:#2d6ded;background:#ecf3ff}
.deposit-tier-stat-icon.green{color:#08a56e;background:#e6f8f0}
.deposit-tier-stat-icon.orange{color:#de8620;background:#fff5e5}
.deposit-tier-stat>div{min-width:0}.deposit-tier-stat small{display:block;font-size:12px;font-weight:700;color:#64748b;line-height:1.4}
.deposit-tier-stat strong{display:block;margin-top:7px;color:#14243b;font-size:26px;letter-spacing:-.04em;line-height:1.1;overflow-wrap:anywhere}
.deposit-tier-stat div>span{display:block;margin-top:8px;color:#8896a9;font-size:11px;line-height:1.45}
.deposit-tier-content{min-width:0}
.deposit-tier-section-title{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin-bottom:16px}
.deposit-tier-eyebrow{display:flex;align-items:center;gap:7px;color:#df312d;font-size:11px;font-weight:800;letter-spacing:.055em}
.deposit-tier-eyebrow .icon{width:16px;height:16px}
.deposit-tier-section-title h3{margin:7px 0 4px;color:#192940;font-size:21px;font-weight:800;letter-spacing:-.02em}
.deposit-tier-section-title p{margin:0;color:#718096;font-size:12.5px;line-height:1.55}
.deposit-tier-total{display:inline-flex;align-items:center;justify-content:center;min-height:37px;padding:0 14px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;font-size:12px;font-weight:750;color:#586b84}
.deposit-tier-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;min-width:0}
.deposit-tier-card{display:flex;flex-direction:column;min-width:0;min-height:318px;padding:21px 22px 20px;border:1px solid #e1e8f2;border-radius:18px;background:linear-gradient(150deg,#fff,#fbfcff 85%);box-shadow:0 12px 30px rgba(20,38,67,.045);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.deposit-tier-card:hover{transform:translateY(-2px);border-color:#d5e0ee;box-shadow:0 17px 34px rgba(20,38,67,.075)}
.deposit-tier-card.is-base{border-color:#cdeee0;background:linear-gradient(145deg,#fff,#f8fffc)}
.deposit-tier-card-top{display:flex;align-items:center;gap:10px;min-height:42px}
.deposit-tier-symbol{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:13px;color:#e23a34;background:#ffeded}
.deposit-tier-card.is-base .deposit-tier-symbol{color:#0ca96d;background:#e3f8ee}
.deposit-tier-symbol .icon{width:22px;height:22px}
.deposit-tier-order{font-size:11px;color:#7b8ca2;letter-spacing:.09em;font-weight:800}
.deposit-tier-actions{display:flex;gap:6px;margin-left:auto}
.deposit-tier-icon-button{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;padding:0;border-radius:10px;border:1px solid #dfe7f0;background:#fff;color:#5a6b83;box-shadow:0 2px 8px rgba(20,38,67,.025);cursor:pointer;transition:background .18s,border-color .18s,color .18s}
.deposit-tier-icon-button .icon{width:16px;height:16px;flex:none}
.deposit-tier-icon-button:hover{border-color:#adc3e4;background:#edf4ff;color:#2865d4}
.deposit-tier-icon-button.is-danger:hover{border-color:#efc2bf;background:#fff0ef;color:#dc2c26}
.deposit-tier-identity{margin-top:23px}.deposit-tier-type{display:inline-block;color:#8592a5;font-size:10.5px;letter-spacing:.075em;font-weight:800}
.deposit-tier-identity h3{margin:8px 0 7px;color:#1d293f;font-size:24px;line-height:1.15;letter-spacing:-.025em;font-weight:800;overflow-wrap:anywhere}
.deposit-tier-identity p{min-height:34px;margin:0;color:#7e8ba0;font-size:12px;line-height:1.45}
.deposit-tier-reward{margin-top:19px;padding:14px 15px;border:1px solid #f4ddda;border-radius:13px;background:#fff7f5}
.deposit-tier-reward>span{color:#a26964;font-size:10px;letter-spacing:.065em;font-weight:800}
.deposit-tier-reward>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:10px;margin-top:5px}
.deposit-tier-reward strong{font-size:31px;letter-spacing:-.04em;line-height:1.1;color:#dc302a}
.deposit-tier-reward small{font-size:12px;color:#816f70}
.deposit-tier-card.is-base .deposit-tier-reward{background:#effbf4;border-color:#d5f1e1}
.deposit-tier-card.is-base .deposit-tier-reward strong{color:#09985e}.deposit-tier-card.is-base .deposit-tier-reward>span{color:#547e68}
.deposit-tier-threshold{margin-top:auto;padding-top:18px}
.deposit-tier-threshold>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.deposit-tier-threshold>div:first-child span{display:inline-flex;align-items:center;gap:5px;color:#73839a;font-size:11.5px}
.deposit-tier-threshold>div:first-child span .icon{width:14px;height:14px}
.deposit-tier-threshold>div:first-child strong{font-size:15px;color:#213149;letter-spacing:-.02em}
.deposit-tier-next{margin-top:10px;padding-top:11px;border-top:1px solid #edf0f5;color:#8895a6;font-size:11.5px;line-height:1.5}
.deposit-tier-next b{color:#455d7c}
.deposit-tier-guide{display:flex;align-items:flex-start;gap:15px;padding:18px 20px;border-radius:15px;border:1px solid #dbe7f7;background:linear-gradient(110deg,#f9fbff,#f1f7ff)}
.deposit-tier-guide-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:12px;background:#e4efff;color:#3874d8}
.deposit-tier-guide-icon .icon{width:20px;height:20px}
.deposit-tier-guide strong{display:block;margin-top:2px;color:#2c4b78;font-size:13.5px;font-weight:800}
.deposit-tier-guide p{margin:7px 0 0;color:#5d7391;font-size:12px;line-height:1.7}
.deposit-tier-empty{padding:16px;border:1px solid #e4e9ef;border-radius:16px;background:#fff}
.deposit-tier-modal{display:grid;gap:18px}
.deposit-tier-modal-intro{display:flex;gap:12px;align-items:center;padding:15px;border-radius:14px;background:#fff7f6;border:1px solid #f6ddda}
.deposit-tier-modal-intro>.icon{flex:0 0 22px;width:22px;height:22px;color:#dc352c}
.deposit-tier-modal-intro span{display:grid;gap:4px}
.deposit-tier-modal-intro strong{font-size:13.5px;color:#243248}
.deposit-tier-modal-intro small{font-size:11.5px;color:#6c7a91;line-height:1.5}
.deposit-tier-modal-grid{gap:15px}.deposit-tier-modal-grid .form-group{min-width:0}
.deposit-tier-modal-grid label{color:#34435a;font-size:12.5px;font-weight:750}
.deposit-tier-modal-grid label b{color:#df352f}
.deposit-tier-modal-grid input{height:46px;border-radius:12px;background:#fff;font-size:13px}
.deposit-tier-modal-grid input[readonly]{background:#f5f7fa;color:#617189}
.deposit-tier-modal-grid .form-group small{margin-top:5px;color:#7c8a9d;font-size:11px}
.deposit-tier-form-note{display:flex;align-items:flex-start;gap:10px;padding:13px 15px;border:1px solid #e1e9f4;border-radius:12px;background:#f8fafd;color:#62738a;font-size:12px;line-height:1.6}
.deposit-tier-form-note .icon{flex:0 0 16px;width:16px;height:16px;margin-top:2px;color:#477ecb}
@media(max-width:1250px){.deposit-tier-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.deposit-tier-summary{grid-template-columns:1fr 1fr}.deposit-tier-stat:last-child{grid-column:1/-1}.deposit-tier-stat{min-height:115px}}
@media(max-width:630px){.deposit-tiers-page{gap:17px}.deposit-tier-summary{grid-template-columns:1fr;gap:10px}.deposit-tier-stat:last-child{grid-column:auto}.deposit-tier-stat{padding:16px;min-height:102px;gap:13px;border-radius:14px}.deposit-tier-stat-icon{flex-basis:46px;width:46px;height:46px;border-radius:13px}.deposit-tier-stat strong{font-size:23px}.deposit-tier-grid{grid-template-columns:1fr;gap:12px}.deposit-tier-card{min-height:0;padding:17px 16px;border-radius:16px}.deposit-tier-identity{margin-top:17px}.deposit-tier-identity h3{font-size:21px}.deposit-tier-identity p{min-height:0}.deposit-tier-reward{margin-top:16px}.deposit-tier-reward strong{font-size:27px}.deposit-tier-section-title h3{font-size:19px}.deposit-tier-add{width:100%;justify-content:center}.deposit-tier-guide{padding:14px;gap:11px}.deposit-tier-guide-icon{flex-basis:36px;width:36px;height:36px}.deposit-tier-modal-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.deposit-tier-card,.deposit-tier-icon-button{transition:none}.deposit-tier-card:hover{transform:none}}


/* ==== theme-finish-v156.css ==== */
/* VNDEVCODE v15.6: final shared refinements for compact screens.
   No API or database changes. */
#pageContent, #pageContent .panel, #pageContent .table-responsive,
#pageContent .form-grid, #pageContent .grid, #pageContent .toolbar { min-width: 0; }
#pageContent .table-responsive { max-width: 100%; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
#pageContent img, .modal-card img { max-width: 100%; height: auto; }
#pageContent :is(button, input, select, textarea, a):focus-visible,
.modal-card :is(button, input, select, textarea, a):focus-visible {
  outline: 3px solid rgba(220,45,38,.48);
  outline-offset: 2px;
}
#pageContent :is(input, textarea, select), .modal-card :is(input, textarea, select) {
  font-family: inherit;
}
#pageContent .btn:disabled, .modal-card .btn:disabled {
  cursor: not-allowed;
  box-shadow: none;
}
@media (max-width: 640px) {
  #pageContent .table-responsive { overflow-x: auto; }
  #pageContent .btn { min-height: 40px; }
  .modal-card { max-width: calc(100vw - 20px); }
}
@media (prefers-reduced-motion: reduce) {
  #pageContent .btn, #pageContent .icon-btn { transition: none; }
}


/* ==== theme-red-pro-v157.css ==== */
/* ===============================================================
   VNDEVCODE RED PRO · V15.7 · WHITE/RED DESIGN SYSTEM
   Responsive finishing layer for the complete TeleShop interface.
   Presentation only; does not replace business logic or forms.
   =============================================================== */
:root {
  --bg:#f5f6f9;
  --bg-deep:#edeff4;
  --surface:#ffffff;
  --surface-2:#fbfcfe;
  --surface-3:#f2f4f8;
  --glass:rgba(255,255,255,.97);
  --border:#e4e8f0;
  --border-strong:#d4dce8;
  --text:#202c40;
  --muted:#65758d;
  --muted-2:#8795a8;
  --primary:#da2924;
  --primary-2:#ed3f36;
  --primary-soft:#fff1f0;
  --danger:#da2924;
  --danger-soft:#fff1f0;
  --shadow:0 8px 28px rgba(27,39,62,.055);
  --radius:12px;
  color-scheme:light;
}
html { overflow-x:clip; }
body { background:#f5f6f9; color:var(--text); font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif; }
body,button,input,select,textarea { -webkit-tap-highlight-color:transparent; }
:is(.app-shell,.main-shell,.page-content,#pageContent) { min-width:0; }
#pageContent { max-width:100%; }
#pageContent :is(.panel,.table-responsive,.grid,.form-grid,.toolbar,.page-heading,.dashboard-v3,.stat-card) { min-width:0; }
#pageContent :is(img,video,svg) { max-width:100%; }
#pageContent :is(p,small,td,th,label,.field-hint,.panel-title) { overflow-wrap:break-word; }
::selection { background:#ffdcd9; color:#961e19; }

/* Red brand: visible, not overpowering */
.sidebar { background:#fff; border-right:1px solid #e9e9ee; box-shadow:2px 0 19px rgba(31,39,56,.025); }
.sidebar-head { min-height:75px; height:75px; border-bottom:1px solid #edf0f5; }
.sidebar-brand .site-brand-logo { width:100%; max-height:62px; object-fit:contain; }
.sidebar-brand::after { display:none!important; }
.navigation { scrollbar-width:thin; scrollbar-color:#d9dfe8 transparent; }
.nav-label { color:#929cac; letter-spacing:1.05px; font-weight:750; }
.nav-item { color:#586982; border:1px solid transparent; border-radius:10px; min-height:44px; line-height:1.25; }
.nav-item:hover:not(.active) { background:#f8f9fc; color:#283751; border-color:#f0f1f5; }
.nav-item.active { color:#c9221e; background:linear-gradient(90deg,#ffedeb 0%,#fff7f6 100%); border-color:#ffdfdc; font-weight:730; }
.nav-item.active .icon { color:#d92b26; }
.nav-item.active::before { background:#dd302a; width:3px; box-shadow:none; }
.sidebar-bottom { background:#fff; border-color:#e8ebf1; }
.bot-mini { background:#f9fafc; border-color:#e7ebf2; border-radius:11px; }
.profile-card { border-radius:10px; }
.profile-card:hover { background:#fff6f5; }

/* Top chrome and cards */
.main-shell { background:radial-gradient(ellipse at 74% 1%,#fff1f0 0%,transparent 29%),#f5f6f9; }
.topbar { background:rgba(255,255,255,.98); border-bottom:1px solid #e7eaf0; box-shadow:0 2px 14px rgba(22,35,57,.035); }
.topbar h1 { color:#1d2a40; }
.breadcrumb b { color:#d62a23; }
.global-search { background:#f8f9fb; border-color:#e4e9ef; }
.global-search:focus-within { background:#fff; border-color:#efaaa6; box-shadow:0 0 0 3px rgba(220,44,38,.08); }
.topbar .icon-btn,.topbar-actions .icon-btn { border-color:#e8ebf0; background:#fff; box-shadow:none; }
.topbar .icon-btn:hover { background:#fff3f1; border-color:#f3cfcc; color:#d52924; }
.topbar .refresh-btn { background:#fff; border-color:#e5e9f0; }
.topbar-account-avatar { border:1px solid #f2d9d7; }
.page-content { width:100%; max-width:1820px; margin:0 auto; }
.page-heading h2 { color:#1d293d; }
.page-heading p { color:#687991; }
.date-chip { border-radius:10px; box-shadow:none; }
.panel,.stat-card,.tier-card,.category-card,.api-source-card,.payment-config-card,
.dashboard-chart-card,.dashboard-finance-card,.today-stat,.dash-quick-card,
.users-summary-grid article,.ledger-summary-grid article,.telegram-history-panel,
.telegram-live-panel,.telegram-compose-card,.log-group-card,.ticket-message,
.schedule-stat-card,.quick-template-card,.voucher-stat,.broadcast-editor-panel {
  background-color:#fff; border:1px solid #e5e9f0; border-radius:13px;
  box-shadow:0 4px 19px rgba(25,42,70,.04);
}
:is(.panel,.stat-card,.today-stat,.dash-quick-card,.category-card,.api-source-card) { transition:border-color .16s ease,box-shadow .16s ease; }
:is(.panel,.stat-card,.today-stat,.dash-quick-card,.category-card,.api-source-card):hover { border-color:#e3e5eb; }
.panel-head { border-bottom-color:#eef0f4; }
.panel-head h3,.panel-title h3 { color:#233148; }
:where(.page-content) :is(.section-icon,.title-icon,.today-icon.red,.icon-bg.red) { color:#d52924; background:#fff0ee; }
.dashboard-v3 .today-stat:first-child { border-top:3px solid #e24039; }
.today-stat strong,.stat-card strong,.dash-quick-card strong { letter-spacing:-.5px; }

/* Form and action consistency */
input:not([type=checkbox]):not([type=radio]),textarea,select {
  color:#223148; background-color:#fff; border:1px solid #dbe2ec;
  border-radius:10px; box-shadow:none; max-width:100%;
}
input::placeholder,textarea::placeholder { color:#95a2b4; opacity:1; }
:is(input,textarea,select):focus { border-color:#e46861; background-color:#fff; box-shadow:0 0 0 3px rgba(226,53,46,.10); }
:is(input,textarea,select):disabled { color:#8493a6; background:#f4f5f8; }
:where(.page-content,.modal-body) label { color:#34445a; }
.btn { border-radius:10px; font-weight:680; }
.btn-primary,.btn-telegram-broadcast,.telegram-send-button,.broadcast-modal #modalSubmit {
  color:#fff; background:linear-gradient(135deg,#f04c43 0%,#d62822 90%); border-color:#cf241f;
  box-shadow:0 8px 18px rgba(218,41,36,.18);
}
.btn-primary:hover:not(:disabled),.btn-telegram-broadcast:hover:not(:disabled),.telegram-send-button:hover:not(:disabled) {
  color:#fff; background:linear-gradient(135deg,#e23b34,#bc211b); border-color:#bd211b;
  box-shadow:0 9px 20px rgba(198,40,33,.17);
}
.btn-soft { background:#fff; color:#4f6076; border-color:#dce3ec; box-shadow:none; }
.btn-soft:hover { background:#fff5f4; color:#c82924; border-color:#edcac7; }
.btn-danger-soft { background:#fff1f0; color:#c92621; border-color:#f5d4d2; }
.btn-success-soft { color:#08764d; background:#ecf9f2; border-color:#c9e9d6; }
.icon-btn { border-radius:10px; }
.btn:disabled,.icon-btn:disabled { cursor:not-allowed; box-shadow:none; opacity:.6; }
:where(a,button,input,textarea,select,[tabindex]):focus-visible { outline:3px solid rgba(225,45,38,.42); outline-offset:2px; }

/* Tables: keep content intact, horizontally scroll instead of clipping */
.table-responsive { display:block; width:100%; max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch; scrollbar-color:#d0d9e5 transparent; }
.data-table { width:100%; }
.data-table th { color:#5d6b80; background:#f9fafc; border-bottom-color:#e8ecf2; font-weight:730; }
.data-table td { border-bottom-color:#eff1f5; color:#354258; }
.data-table tbody tr:hover { background:#fffafa; }
.data-table :is(.cell-main strong,.cell-stack strong) { color:#26354a; }
.data-table :is(.cell-main small,.cell-stack small) { color:#78869a; }
.table-responsive :is(button,.action-btn,.icon-action) { flex-shrink:0; }

/* Modal, notifications, and status feedback */
.modal-layer { box-sizing:border-box; }
.modal-card,.modal-card.broadcast-modal,.confirm-card { color:#213148; background:#fff; border:1px solid #edf0f4; border-radius:16px; box-shadow:0 25px 75px rgba(21,35,56,.19); }
.modal-card>header,.modal-card footer { background:#fff; }
.modal-card>header { border-bottom:1px solid #edf0f4; }
.modal-card footer { border-top:1px solid #edf0f4; }
.modal-kicker { color:#d52b25; }
.modal-scrim { background:rgba(17,24,39,.48); }
.toast,.order-notice-panel,.purchase-popup { background:#fff; border-color:#e3e8f0; box-shadow:0 18px 47px rgba(23,35,54,.14); }
.order-notice-panel { max-width:calc(100vw - 20px); border-radius:15px; }
.notice-item.unread,.notice-item:hover { background:#fff6f5; }
.order-notice-panel>footer { flex-wrap:wrap; }
.order-notice-panel>footer button { flex:1 1 auto; white-space:normal; }
.purchase-popup { border-left:4px solid #d72a23; }
.purchase-popup-symbol { color:#d72a23; background:#fff0ef; }

/* Login: brand-red atmosphere on clean white, no dark blocks */
.login-shell { color:#202d43; background:#fff; }
.login-aside { background:linear-gradient(152deg,#fff 2%,#fff7f6 61%,#fff1ef 100%); border-right:1px solid #f0e4e3; }
.login-aside::before { display:block; content:""; position:absolute; inset:auto -16% -30% auto; width:min(42vw,480px); height:min(42vw,480px); background:radial-gradient(circle,#ffd4d0,transparent 68%); opacity:.32; pointer-events:none; }
.login-copy h1 { color:#1d2b40; font-weight:800; letter-spacing:-2px; }
.login-copy h1 em { color:#da2924; background:none; -webkit-text-fill-color:#da2924; }
.login-copy>p { color:#596a81; }
.eyebrow,.form-kicker,.login-route-badge code { color:#ca2924; }
.eyebrow i { background:#dc2b25; }
.feature-row { color:#52637a; flex-wrap:wrap; gap:12px 22px; }
.feature-row b { color:#d52c26; }
.login-visual { max-width:100%; }
.visual-card { background:#fff; border-color:#f0dedc; box-shadow:0 20px 46px rgba(144,62,60,.095); }
.visual-main { transform:rotate(-1deg); }
.visual-main svg path:first-child { stroke:#e3342e; }
.visual-main svg .fill { fill:rgba(230,50,44,.09); }
.visual-float { transform:rotate(2deg); }
.login-panel { background:#fff; }
.login-form { width:min(435px,100%); }
.login-form h2 { color:#1e2b41; font-weight:800; }
.login-form>p { color:#63738a; }
.login-form .field > span { color:#344259; }
.login-form .input-wrap input { background:#fff; border:1px solid #dce3eb; border-radius:12px; }
.login-form .input-wrap input:focus { border-color:#e76b64; box-shadow:0 0 0 4px rgba(219,40,34,.08); }
.login-route-badge { color:#d12823; background:#fff4f2; border-color:#f6d6d3; }
.login-trust span { background:#fafbfc; border:1px solid #ebeff4; color:#63748c; }
.login-trust span .icon { color:#d62d27; }
.login-form .btn-login { min-height:51px; font-size:14px; }
.login-form .btn-soft { min-height:46px; }

/* Wide desktop: let tables use space without compressing surrounding cards */
@media(min-width:1440px) {
  .page-content { padding-inline:clamp(24px,2.2vw,42px); }
}
@media(max-width:1180px) {
  .page-content { padding-inline:20px; }
  .topbar-actions { flex-shrink:0; }
  #pageContent :is(.toolbar,.page-heading,.panel-head) { min-width:0; }
}
@media(max-width:880px) {
  body { overflow-x:hidden; }
  .sidebar { width:min(310px,86vw); max-width:86vw; }
  .sidebar-head { min-height:71px; height:71px; }
  .main-shell { width:100%; min-width:0; margin-left:0!important; }
  .topbar { min-height:62px; height:auto; gap:8px; padding:9px 15px; }
  .topbar-left { min-width:0; }
  .topbar-left>div { min-width:0; }
  .topbar h1,.breadcrumb { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .topbar-actions { gap:7px; min-width:0; }
  .topbar-actions .refresh-btn { padding:9px 10px; }
  .page-content { padding:20px 15px 32px; }
  .order-notice-panel { right:-49px; }
  .modal-card,.confirm-card { max-width:calc(100vw - 24px); }
  .sidebar-scrim { background:rgba(16,27,43,.42); }
}
@media(max-width:640px) {
  .topbar { padding:9px 12px; }
  .topbar h1 { font-size:15px; }
  .breadcrumb { font-size:10px; }
  .topbar .refresh-btn span:not(.icon) { display:none; }
  .topbar .refresh-btn { width:40px; min-width:40px; height:40px; padding:0; justify-content:center; }
  .topbar-actions .icon-btn,.mobile-menu { min-width:40px; width:40px; height:40px; }
  .page-content { padding:16px 12px 30px; }
  .page-heading { align-items:flex-start; flex-wrap:wrap; gap:10px; }
  .page-heading h2 { font-size:20px; }
  .page-heading> :last-child { max-width:100%; }
  #pageContent :is(.toolbar,.toolbar-right,.toolbar-actions,.panel-head) { flex-wrap:wrap; gap:9px; }
  #pageContent :is(.toolbar,.toolbar-right,.toolbar-actions) :is(input,select) { max-width:100%; }
  #pageContent .table-responsive { overflow-x:auto!important; }
  #pageContent .data-table { min-width:max-content; }
  #pageContent .data-table th,#pageContent .data-table td { padding:11px 13px; }
  .modal-layer { padding:8px; }
  .modal-card,.confirm-card { max-height:calc(100dvh - 16px); width:min(100%,580px); border-radius:14px; }
  .modal-body { max-width:100%; overflow-x:auto; }
  .modal-card footer { display:flex; flex-wrap:wrap; gap:8px; }
  .modal-card footer .btn { flex:1 1 auto; min-height:42px; }
  .order-notice-panel { width:calc(100vw - 20px); right:-61px; max-height:min(78dvh,650px); }
  .purchase-popup-stack { right:10px; width:calc(100vw - 20px); }
  /* Avoid iPhone Safari auto-zooming text fields. */
  input:not([type=checkbox]):not([type=radio]),textarea,select { font-size:16px!important; }
  .login-panel { padding:26px 20px; }
  .login-form { width:100%; max-width:440px; }
  .login-form h2 { font-size:29px; }
  .login-trust { gap:6px; flex-wrap:wrap; }
  .login-trust span { font-size:10px; }
}
@media(max-width:420px) {
  .topbar { padding:8px; }
  .topbar-actions { gap:4px; }
  .topbar-account { padding-left:2px; }
  .topbar-account-avatar { width:30px; height:30px; }
  .page-content { padding:13px 10px 28px; }
  .today-stat-grid,.dashboard-quick-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .today-stat { min-width:0; padding:12px; }
  .today-stat strong { font-size:clamp(17px,4.4vw,23px); }
  .today-stat small,.today-stat em { line-height:1.35; }
  .login-copy h1 { font-size:34px; }
  .order-notice-panel { right:-52px; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; transition-duration:.01ms!important; }
}
/* Mobile login: distinct labels, compact credentials area */
.login-route-badge { display:flex; width:max-content; max-width:100%; margin-bottom:12px; }
.login-form .form-kicker { display:block; margin:0 0 7px; line-height:1.5; }
@media(max-width:640px) {
  .login-route-badge { margin-bottom:11px; }
  .login-form .form-kicker { font-size:10px; letter-spacing:1.2px; }
  .login-trust { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
  .login-trust span { justify-content:center; min-width:0; font-size:9px; padding:5px 2px; white-space:normal; text-align:center; }
  .login-form>p { margin-bottom:22px; }
  .login-form .field { margin-bottom:15px; }
}
/* A legacy mobile rule hid the Telegram broadcast button caption by font-size:0.
   Keep the action readable on narrow screens instead of showing just an icon. */
@media(max-width:640px) {
  .heading-actions .btn-telegram-broadcast { width:100%; min-width:0; min-height:43px; padding:10px 14px; font-size:13px; line-height:1.3; }
  .heading-actions .btn-telegram-broadcast .icon { width:16px; height:16px; flex:0 0 16px; }
}


/* ==== theme-transactions-catalog-v158.css ==== */
/* ==============================================================
  VNDEVCODE V15.8 — Giao dịch · tìm kiếm · sản phẩm · danh mục
  White / Red / Responsive — display-only adjustments
============================================================== */
:root { --v158-red:#da2924; --v158-red-dark:#b9231e; --v158-ink:#202d42; --v158-muted:#6e7e94; --v158-line:#e5eaf1; }
#pageContent .ledger-page,#pageContent .catalog-management-page,#pageContent .products-pro-page { min-width:0; }
#pageContent .ledger-page { display:flex; flex-direction:column; gap:17px; }
#pageContent .ledger-page>.page-heading,#pageContent .catalog-management-page>.page-heading { margin-bottom:0; }
#pageContent .ledger-page .page-heading .btn,#pageContent .catalog-management-page .page-heading .btn { min-height:42px; white-space:normal; }
/* A universal search field with its own clear affordance; preserves Enter-to-search behavior. */
#pageContent .products-pro-page .toolbar,#pageContent .ledger-page .toolbar {
 display:flex!important; align-items:center!important; gap:12px!important; min-width:0!important; padding:17px!important;
 border-radius:16px!important; border:1px solid #e6eaf1!important; background:#fff!important;
 box-shadow:0 7px 27px rgba(31,43,68,.04)!important; margin:0!important;
}
#pageContent .ledger-page .toolbar-left,#pageContent .products-pro-page .toolbar-left { display:flex!important; align-items:center!important; flex-wrap:wrap!important; flex:1 1 100%; min-width:0!important; gap:10px!important; }
#pageContent .ledger-page .toolbar-right,#pageContent .products-pro-page .toolbar-right { display:flex; justify-content:flex-end; flex-wrap:wrap; min-width:0; gap:9px; }
#pageContent .ledger-page .toolbar-search-wrap,#pageContent .products-pro-page .toolbar-search-wrap { display:flex!important; flex:2 1 380px!important; align-items:center!important; gap:9px!important; min-width:0!important; }
#pageContent .ledger-page .toolbar-search,#pageContent .products-pro-page .toolbar-search {
 display:flex!important; align-items:center!important; width:100%!important; min-width:0!important; flex:1 1 240px!important;
 border-radius:12px!important; border:1px solid #dce2ec!important; background:#fbfcfe!important;
 position:relative!important; min-height:48px!important; padding:0 12px!important; box-shadow:none!important;
}
#pageContent .ledger-page .toolbar-search:focus-within,#pageContent .products-pro-page .toolbar-search:focus-within,
#pageContent .catalog-management-page .catalog-search-box:focus-within { background:#fff!important; border-color:#e46a63!important; box-shadow:0 0 0 4px rgba(218,41,36,.09)!important; }
#pageContent .ledger-page .toolbar-search>.icon,#pageContent .products-pro-page .toolbar-search>.icon { position:static!important; flex:0 0 18px!important; width:18px!important; height:18px!important; color:#d8453e!important; margin-right:9px!important; }
#pageContent .ledger-page .toolbar-search input,#pageContent .products-pro-page .toolbar-search input {
 flex:1 1 auto!important; min-width:0!important; min-height:45px!important; height:45px!important; width:100%!important;
 border:0!important; border-radius:0!important; padding:0!important; margin:0!important; background:transparent!important;
 color:#26354b!important; font-size:13px!important; box-shadow:none!important; outline:none!important;
}
#pageContent .ledger-page .toolbar-search input::placeholder,#pageContent .products-pro-page .toolbar-search input::placeholder { color:#8997a9!important; opacity:1; }
#pageContent .toolbar-search-clear { display:grid!important; place-items:center; width:37px; height:42px; flex:0 0 37px;
 padding:0; border:1px solid #e7ebf1; border-radius:10px; background:#f8f9fc; color:#7e8ea3; cursor:pointer; transition:.16s; }
#pageContent .toolbar-search-clear:hover { border-color:#f1c7c3; color:#c72c27; background:#fff1f0; }
#pageContent .toolbar-search-clear .icon { width:16px; height:16px; }
#pageContent .ledger-page .toolbar-search-button,#pageContent .products-pro-page .toolbar-search-button { min-height:47px!important; flex:0 0 auto; display:inline-flex; gap:7px; align-items:center; justify-content:center; white-space:nowrap; border-radius:11px!important; padding:0 17px; }
#pageContent .ledger-page .toolbar .filter-select,#pageContent .products-pro-page .toolbar .filter-select { min-height:46px!important; height:46px!important; padding:0 33px 0 13px!important; border-color:#dce3ec!important; border-radius:11px!important; color:#42526a!important; background-color:#fff!important; flex:1 1 142px; min-width:125px; }
#pageContent .ledger-page .toolbar .filter-select:focus-visible,#pageContent .products-pro-page .toolbar .filter-select:focus-visible { outline:2px solid #f4aaa6; outline-offset:2px; }
#pageContent .ledger-search-heading,#pageContent .module-filter-intro { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:-8px; }
#pageContent .ledger-search-heading>div { display:grid; gap:5px; }
#pageContent .ledger-search-heading span,#pageContent .module-filter-intro>span { display:inline-flex; align-items:center; gap:8px; color:#bc2a25; font-size:11px; font-weight:850; letter-spacing:.07em; }
#pageContent .ledger-search-heading .icon,#pageContent .module-filter-intro .icon { width:15px; height:15px; }
#pageContent .ledger-search-heading small { font-size:12px; color:#8390a1; }
#pageContent .ledger-search-heading .btn,#pageContent .module-filter-intro .btn { min-height:36px; font-size:12px; white-space:nowrap; border-radius:9px; }
/* Transaction overview / list */
#pageContent .ledger-intro { display:flex; align-items:center; gap:16px; padding:21px 23px; min-width:0; border:1px solid #f3d7d4; border-radius:17px;
 background:linear-gradient(115deg,#fff 20%,#fff7f6 100%); box-shadow:0 8px 22px rgba(171,63,58,.045); }
#pageContent .ledger-intro-icon { display:grid; place-items:center; flex:0 0 54px; width:54px; height:54px; border-radius:15px; border:1px solid #f1d5d1; background:#fff0ee; color:#d82a24; }
#pageContent .ledger-intro-icon .icon { width:26px; height:26px; }
#pageContent .ledger-intro>div:nth-child(2) { min-width:0; flex:1; }
#pageContent .ledger-intro .module-kicker { display:block; color:#d3312b; font-size:10px; letter-spacing:.13em; font-weight:800; }
#pageContent .ledger-intro h3 { margin:4px 0 6px; font-size:20px; font-weight:800; letter-spacing:-.025em; color:#243249; }
#pageContent .ledger-intro p { max-width:650px; margin:0; font-size:12.5px; line-height:1.6; color:#738096; }
#pageContent .ledger-total-count { display:inline-flex; align-items:center; min-width:max-content; font-size:12px; font-weight:800; padding:10px 13px; background:#fff; color:#be302a; border:1px solid #f0d4d1; border-radius:10px; }
#pageContent .ledger-summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; margin:0; }
#pageContent .ledger-summary-grid article { min-width:0!important; min-height:125px; border-radius:15px!important; padding:19px!important; background:#fff!important; border:1px solid #e5eaf1!important; box-shadow:0 5px 19px rgba(20,37,65,.035)!important; position:relative; overflow:hidden; }
#pageContent .ledger-summary-grid article:before { content:''; position:absolute; inset:0 auto 0 0; width:3px; background:#dc4139; }
#pageContent .ledger-summary-grid article:nth-child(1):before { background:#18a76c; }
#pageContent .ledger-summary-grid article:nth-child(2):before { background:#e25b4c; }
#pageContent .ledger-summary-grid article:nth-child(3):before { background:#d52e27; }
#pageContent .ledger-summary-grid article:nth-child(4):before { background:#da962d; }
#pageContent .ledger-summary-grid article>span { width:41px; height:41px; display:grid; place-items:center; border-radius:12px; background:#fff1ef; color:#d8322b; }
#pageContent .ledger-summary-grid article:nth-child(1)>span { background:#e9f8f1;color:#169567; }
#pageContent .ledger-summary-grid article:nth-child(4)>span { background:#fff5e5;color:#c78a2b; }
#pageContent .ledger-summary-grid article>span .icon { width:19px; height:19px; }
#pageContent .ledger-summary-grid article small { font-size:10.5px; color:#79879b; font-weight:800; letter-spacing:.04em; line-height:1.5; }
#pageContent .ledger-summary-grid article strong { display:block; font-size:clamp(17px,1.7vw,26px); line-height:1.3; font-weight:850; letter-spacing:-.03em; color:#28374d; overflow-wrap:anywhere; }
#pageContent .ledger-table-panel { margin:0!important; border-radius:17px!important; overflow:hidden; background:#fff; }
#pageContent .ledger-table-head { min-width:0; display:flex; align-items:center; gap:14px; justify-content:space-between; padding:20px 22px!important; background:#fff!important; border-bottom:1px solid #edf0f5; }
#pageContent .ledger-table-head>div { min-width:0; }
#pageContent .ledger-table-head .module-kicker { color:#d52e28; font-size:10.5px; font-weight:800; letter-spacing:.09em; }
#pageContent .ledger-table-head h3 { color:#25334a; margin:6px 0 4px; font-size:17px; font-weight:800; }
#pageContent .ledger-table-head p { margin:0; font-size:12px; line-height:1.5; color:#7d8a9e; }
#pageContent .ledger-table-head>span { min-width:max-content; padding:8px 11px; background:#fff1f0; color:#c82e28; border:1px solid #f4d8d4; border-radius:999px; font-weight:750; font-size:11px; }
#pageContent .ledger-table { min-width:1160px; }
#pageContent .ledger-table thead th { padding:15px 13px!important; font-size:11px; letter-spacing:.03em; color:#6a788e; background:#f8fafc; }
#pageContent .ledger-table tbody td { padding:15px 13px!important; vertical-align:middle; border-bottom:1px solid #eef0f5; font-size:12.5px; }
#pageContent .ledger-table tbody tr:hover td { background:#fffaf9; }
#pageContent .ledger-table .ledger-code { color:#c12a26; font-weight:820; }
#pageContent .ledger-table .ledger-amount { font-weight:850; font-size:13px; white-space:nowrap; }
#pageContent .ledger-table .ledger-amount.credit { color:#098865; }
#pageContent .ledger-table .ledger-amount.debit { color:#d83a30; }
#pageContent .ledger-table .ledger-type { max-width:245px; overflow-wrap:anywhere; }
#pageContent .ledger-table .ledger-type small { display:block; margin-top:5px; line-height:1.45; }
#pageContent .ledger-table-panel .table-responsive { width:100%; max-width:100%; }
#pageContent .ledger-table-panel .table-footer { padding:15px 19px; background:#fff; }
/* Products hero + easy category shortcuts */
#pageContent .products-pro-page { gap:16px; }
#pageContent .products-pro-page .page-heading .heading-actions { display:flex; gap:8px; flex-wrap:wrap; }
#pageContent .products-pro-page .catalog-product-summary.product-kpi-grid { display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px!important; padding:0!important; border:0!important; background:none!important; box-shadow:none!important; }
#pageContent .product-kpi { display:flex; align-items:center; gap:14px; min-width:0; padding:20px; border:1px solid #e5eaf2; border-radius:15px; background:#fff; box-shadow:0 5px 20px rgba(27,42,71,.035); }
#pageContent .product-kpi-icon { display:grid; place-items:center; flex:0 0 48px; width:48px; height:48px; border-radius:14px; }
#pageContent .product-kpi-icon .icon { width:22px; height:22px; }
#pageContent .product-kpi-icon.red { color:#d5352c; background:#fff0ef; }
#pageContent .product-kpi-icon.green { color:#138e69; background:#eaf9f1; }
#pageContent .product-kpi-icon.orange { color:#c98519; background:#fff5e5; }
#pageContent .product-kpi>div { display:flex; flex-direction:column; min-width:0; gap:4px; }
#pageContent .product-kpi small { color:#718197; font-weight:850; font-size:10px; letter-spacing:.07em; }
#pageContent .product-kpi strong { color:#25354a; font-weight:850; font-size:28px; line-height:1.1; }
#pageContent .product-kpi em { font-size:11px; font-style:normal; color:#9aa4b3; line-height:1.45; }
#pageContent .product-category-shortcuts { min-width:0; padding:18px; background:linear-gradient(135deg,#fff,#fffafa); border:1px solid #e6e9f1; border-radius:16px; box-shadow:0 5px 20px rgba(25,37,62,.035); }
#pageContent .product-shortcuts-title { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
#pageContent .product-shortcuts-title>span { display:inline-flex; gap:8px; align-items:center; color:#bb2c26; font-size:11px; letter-spacing:.055em; font-weight:850; }
#pageContent .product-shortcuts-title .icon { width:16px; height:16px; }
#pageContent .product-shortcuts-title small { color:#909aab; font-size:11.5px; }
#pageContent .product-category-nav { display:flex; flex-wrap:wrap; gap:9px; align-items:center; }
#pageContent .product-category-nav button { min-height:40px; max-width:100%; display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:8px 13px; border:1px solid #e2e7ef; border-radius:10px; background:#fff; color:#52647b; font-size:12px; line-height:1.25; font-weight:720; cursor:pointer; transition:background .16s,border-color .16s; }
#pageContent .product-category-nav button:hover { color:#bd3028; border-color:#f0c9c5; background:#fff5f4; }
#pageContent .product-category-nav button.is-active { background:linear-gradient(135deg,#eb5146,#cf2c27); border-color:#d3322a; color:#fff; box-shadow:0 6px 17px rgba(209,47,40,.16); }
#pageContent .product-category-nav button>.icon { width:16px; height:16px; }
#pageContent .product-category-nav .product-category-manage { margin-left:auto; color:#c12c27; border-color:#f0d2ce; }
#pageContent .products-pro-page .products-bulk-bar { border-radius:14px!important; }
#pageContent .products-pro-page .products-list-header { background:linear-gradient(100deg,#fff,#fff9f8); }
#pageContent .products-pro-page .products-pro-table-panel .data-table th { background:#f8fafc!important; }
#pageContent .products-pro-page .products-pro-table tbody tr:hover td { background:#fff8f7!important; }
#pageContent .products-pro-page .product-category-cell .cell-stack strong { color:#c0322b!important; }
#pageContent .products-pro-page .product-scroll-hint { display:none; }
/* Category management overview and uncluttered form controls */
#pageContent .catalog-management-page { display:flex; flex-direction:column; gap:16px; }
#pageContent .catalog-management-page .category-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
#pageContent .category-metrics>div { position:relative; min-width:0; display:flex; flex-direction:column; gap:5px; padding:16px 18px; border:1px solid #e4e9f1; border-radius:14px; background:#fff; box-shadow:0 4px 19px rgba(23,39,64,.035); }
#pageContent .category-metric-icon { display:grid; place-items:center; width:37px; height:37px; margin-bottom:4px; border-radius:11px; color:#d9352d; background:#fff1f0; }
#pageContent .category-metric-icon .icon { width:19px; height:19px; }
#pageContent .category-metrics>div:nth-child(2) .category-metric-icon { color:#119366; background:#eaf9f1; }
#pageContent .category-metrics>div:nth-child(3) .category-metric-icon { color:#b78026; background:#fff5e6; }
#pageContent .category-metrics small { font-size:10px; letter-spacing:.045em; font-weight:800; color:#8090a2; }
#pageContent .category-metrics strong { font-size:25px; font-weight:850; color:#26384f; line-height:1.25; }
#pageContent .catalog-management-page .category-browser { margin:0!important; padding:17px 19px; border-radius:15px; background:linear-gradient(108deg,#fff 20%,#fff7f6); }
#pageContent .catalog-management-page .category-level-summary { margin-top:13px; background:#fff!important; border:1px solid #f0e5e4!important; }
#pageContent .catalog-management-page .category-level-summary span { color:#cd3731!important; }
#pageContent .catalog-management-page .category-breadcrumb { overflow-x:auto; max-width:100%; padding-bottom:2px; }
#pageContent .catalog-management-page .category-breadcrumb button:last-child { background:#fff2f0!important; border-color:#f4d4d1!important; color:#c62e28!important; }
#pageContent .catalog-management-page .category-quick-tools { margin:0; padding:16px!important; border-radius:15px; background:#fff!important; }
#pageContent .catalog-management-page .category-quick-tool-actions { gap:8px!important; }
#pageContent .catalog-management-page .category-quick-tool-actions .btn { min-height:39px!important; }
#pageContent .catalog-management-page .catalog-section { margin:0!important; border:1px solid #e3e8ef!important; border-radius:16px!important; overflow:hidden; }
#pageContent .catalog-toolbar-heading { padding:20px 20px 0; background:linear-gradient(110deg,#fff,#fff9f8); }
#pageContent .catalog-toolbar-heading>div>span { color:#d0372e; display:inline-flex; align-items:center; gap:7px; font-size:10.5px; font-weight:850; letter-spacing:.085em; }
#pageContent .catalog-toolbar-heading .icon { width:16px; height:16px; }
#pageContent .catalog-toolbar-heading h3 { font-size:18px; margin:6px 0 5px; font-weight:850; color:#25344b; }
#pageContent .catalog-toolbar-heading p { margin:0; color:#8290a1; font-size:12px; line-height:1.5; }
#pageContent .catalog-management-page .catalog-list-toolbar { padding:17px 20px; flex-wrap:wrap; gap:11px; background:linear-gradient(110deg,#fff,#fff9f8); }
#pageContent .catalog-management-page .catalog-search-box { display:flex; align-items:center; max-width:none; flex:2 1 320px; min-width:0; min-height:47px; padding:0 12px; border-radius:11px; border-color:#dce3ec; background:#fff; }
#pageContent .catalog-management-page .catalog-search-box>.icon { flex:0 0 18px; width:18px; height:18px; color:#d83b34; }
#pageContent .catalog-management-page .catalog-search-box>input { flex:1 1 auto; min-width:0; width:100%; height:45px; padding:0 5px!important; border:0!important; background:transparent!important; outline:none!important; box-shadow:none!important; color:#293b50; font-size:13px; }
#pageContent .catalog-management-page .catalog-clear-search { display:grid; place-items:center; width:33px; height:33px; flex:0 0 33px; padding:0; background:#f7f8fa; border:1px solid #e6eaf0; border-radius:8px; color:#8091a4; cursor:pointer; }
#pageContent .catalog-management-page .catalog-clear-search:hover { color:#c42b25; background:#fff3f1; border-color:#f2cfca; }
#pageContent .catalog-management-page .catalog-clear-search .icon { width:15px; height:15px; }
#pageContent .catalog-management-page .catalog-list-toolbar-right { display:flex; flex-wrap:wrap; gap:9px; flex:1 1 370px; justify-content:flex-end; }
#pageContent .catalog-management-page .catalog-list-toolbar-right select,#pageContent .catalog-management-page .catalog-list-toolbar-right .btn { min-height:45px; height:45px; border-radius:11px; }
#pageContent .catalog-management-page .catalog-list-toolbar-right select { min-width:175px; max-width:100%; }
#pageContent .catalog-management-page .catalog-list-footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; padding:15px 20px; background:#fcfdff; }
#pageContent .catalog-management-page .catalog-list-footer>span:first-child { display:inline-flex; align-items:center; gap:7px; color:#118560; font-weight:770; }
#pageContent .catalog-management-page .catalog-list-footer .icon { width:16px; height:16px; }
#pageContent .catalog-management-page .catalog-table th { color:#64758b; background:#f8f9fc; }
#pageContent .catalog-management-page .catalog-table tbody tr:hover td { background:#fff9f8!important; }
#pageContent .catalog-management-page .catalog-name-cell strong { color:#24374c; }
#pageContent .catalog-management-page .catalog-name-cell .catalog-child-link { color:#cf342d; }
#pageContent .catalog-management-page .catalog-table-row[hidden],#pageContent .catalog-management-page .category-card[hidden],#pageContent .catalog-management-page .hidden-category-tile[hidden] { display:none!important; }
#pageContent .catalog-management-page .hidden-category-section { margin:0; border-radius:16px; }
/* Scaled widths: no horizontal page overflow or clipped controls */
@media(max-width:1220px) {
 #pageContent .ledger-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 #pageContent .catalog-management-page .category-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
 #pageContent .products-pro-page .catalog-product-summary.product-kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 #pageContent .products-pro-page .catalog-product-summary.product-kpi-grid>.product-kpi:last-child { grid-column:1/-1; }
}
@media(max-width:800px) {
 #pageContent .products-pro-page .product-scroll-hint { display:flex; align-items:center; gap:7px; color:#7a8ba1; font-size:11px; padding:10px 14px; background:#fff9f7; border-bottom:1px solid #f0e4e1; }
 #pageContent .products-pro-page .product-scroll-hint .icon { width:15px; height:15px; }
 #pageContent .ledger-page .toolbar,#pageContent .products-pro-page .toolbar { padding:13px!important; }
 #pageContent .ledger-page .toolbar-search-wrap,#pageContent .products-pro-page .toolbar-search-wrap { flex:1 1 100%!important; }
 #pageContent .ledger-page .toolbar-left>.filter-select,#pageContent .products-pro-page .toolbar-left>.filter-select { flex:1 1 160px; }
 #pageContent .ledger-table-panel .table-responsive { overflow:visible!important; }
 #pageContent .ledger-page .ledger-table { display:block!important; width:100%!important; min-width:0!important; border:0!important; }
 #pageContent .ledger-page .ledger-table thead { display:none!important; }
 #pageContent .ledger-page .ledger-table tbody { display:grid!important; gap:12px!important; padding:13px!important; }
 #pageContent .ledger-page .ledger-table tbody tr.ledger-transaction-row { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 14px; padding:16px!important; border:1px solid #e4eaf2; border-radius:14px; background:#fff!important; box-shadow:0 5px 18px rgba(20,35,64,.04); min-width:0; }
 #pageContent .ledger-page .ledger-table tbody tr.ledger-transaction-row td { display:flex!important; flex-direction:column; justify-content:flex-start; align-items:flex-start; gap:5px; min-width:0; padding:0!important; border:0!important; background:transparent!important; white-space:normal!important; overflow-wrap:anywhere; }
 #pageContent .ledger-page .ledger-table tbody tr.ledger-transaction-row td:before { content:attr(data-label); display:block; font-size:10px; line-height:1.5; font-weight:850; color:#8998ac; letter-spacing:.055em; text-transform:uppercase; }
 #pageContent .ledger-page .ledger-table tbody tr.ledger-transaction-row td:nth-child(1),#pageContent .ledger-page .ledger-table tbody tr.ledger-transaction-row td:nth-child(2),#pageContent .ledger-page .ledger-table tbody tr.ledger-transaction-row td:nth-child(4) { grid-column:1/-1; }
 #pageContent .ledger-page .ledger-table tbody tr.ledger-transaction-row td:nth-child(1) { padding-bottom:11px!important; border-bottom:1px solid #edf0f5!important; }
 #pageContent .ledger-page .ledger-table tbody tr.ledger-transaction-row td:nth-child(1) .ledger-code { font-size:13px; }
 #pageContent .ledger-page .ledger-table tbody tr.ledger-transaction-row td:nth-child(6) { grid-column:1/-1; padding:11px 13px!important; background:#f4fcf8!important; border-radius:10px; }
 #pageContent .ledger-page .ledger-table tbody tr.ledger-transaction-row td:nth-child(6).debit { background:#fff4f2!important; }
 #pageContent .ledger-page .ledger-table tbody tr.ledger-transaction-row td:nth-child(6).credit { color:#07805c; }
 #pageContent .ledger-page .ledger-table tbody tr.ledger-transaction-row td:nth-child(8) { grid-column:1/-1; }
 #pageContent .ledger-page .ledger-table .cell-main,#pageContent .ledger-page .ledger-table .cell-stack { min-width:0; }
 #pageContent .catalog-management-page .catalog-list-toolbar-right { justify-content:flex-start; }
 #pageContent .catalog-management-page .category-quick-tool-actions { overflow-x:auto; flex-wrap:nowrap!important; padding:2px 0 8px; scrollbar-width:thin; }
 #pageContent .catalog-management-page .category-quick-tool-actions .btn { flex:0 0 auto; white-space:nowrap; }
}
@media(max-width:600px) {
 #pageContent .ledger-intro { flex-wrap:wrap; padding:16px; gap:11px; }
 #pageContent .ledger-intro-icon { flex-basis:43px; width:43px; height:43px; }
 #pageContent .ledger-intro h3 { font-size:17px; }
 #pageContent .ledger-intro .ledger-total-count { margin-left:54px; padding:7px 10px; }
 #pageContent .ledger-summary-grid { gap:9px; }
 #pageContent .ledger-summary-grid article { min-height:120px; padding:13px!important; }
 #pageContent .ledger-summary-grid article strong { font-size:clamp(15px,4.5vw,21px); }
 #pageContent .ledger-summary-grid article small { font-size:9px; }
 #pageContent .ledger-table-head { flex-wrap:wrap; padding:15px!important; }
 #pageContent .ledger-page .toolbar-search-wrap,#pageContent .products-pro-page .toolbar-search-wrap { flex-wrap:wrap; }
 #pageContent .ledger-page .toolbar-search,#pageContent .products-pro-page .toolbar-search { min-height:49px!important; }
 #pageContent .ledger-page .toolbar-search-button,#pageContent .products-pro-page .toolbar-search-button { flex:1 1 120px; }
 #pageContent .ledger-page .toolbar .filter-select,#pageContent .products-pro-page .toolbar .filter-select { min-width:0!important; max-width:none!important; flex:1 1 calc(50% - 5px)!important; }
 #pageContent .products-pro-page .catalog-product-summary.product-kpi-grid { grid-template-columns:1fr; }
 #pageContent .products-pro-page .catalog-product-summary.product-kpi-grid>.product-kpi:last-child { grid-column:auto; }
 #pageContent .product-kpi { padding:14px; }
 #pageContent .product-kpi strong { font-size:24px; }
 #pageContent .product-category-shortcuts { padding:13px; }
 #pageContent .product-category-nav { gap:7px; }
 #pageContent .product-category-nav button { padding:8px 10px; font-size:11px; }
 #pageContent .product-category-nav .product-category-manage { margin-left:0; }
 #pageContent .catalog-management-page .category-metrics { gap:9px; }
 #pageContent .category-metrics>div { padding:12px; }
 #pageContent .category-metrics strong { font-size:21px; }
 #pageContent .category-metrics small { font-size:9px; }
 #pageContent .catalog-management-page .catalog-list-toolbar { padding:12px!important; }
 #pageContent .catalog-management-page .catalog-list-toolbar-right { flex:1 1 100%; }
 #pageContent .catalog-management-page .catalog-list-toolbar-right select { flex:1 1 100%; width:100%; max-width:none; }
 #pageContent .catalog-management-page .catalog-list-toolbar-right .btn { flex:1 1 100%; }
 #pageContent .catalog-management-page .catalog-toolbar-heading { padding:15px 14px 0; }
 #pageContent .catalog-management-page .catalog-list-footer { padding:12px; }
 #pageContent .catalog-management-page .category-browser { padding:13px!important; }
}
@media(prefers-reduced-motion:reduce) {
 #pageContent .product-category-nav button,#pageContent .toolbar-search-clear { transition:none!important; }
}
/* Unify legacy dark "hidden categories" tiles with the requested white-red theme. */
#pageContent .catalog-management-page .hidden-category-section {
 background:linear-gradient(135deg,#fff 0%,#fffaf9 100%)!important;
 border:1px solid #e6eaf1!important; box-shadow:0 6px 22px rgba(30,43,67,.035)!important;
}
#pageContent .catalog-management-page .hidden-category-section:before { background:linear-gradient(90deg,transparent,#eebbb5,transparent)!important; }
#pageContent .catalog-management-page .hidden-category-heading strong { color:#293a51!important; }
#pageContent .catalog-management-page .hidden-category-heading small { color:#7d8ea2!important; }
#pageContent .catalog-management-page .hidden-heading-icon { background:#fff0ee!important; color:#da3029!important; border:1px solid #f2d8d3!important; }
#pageContent .catalog-management-page .hidden-category-bulkbar { background:#f9fafc!important; border:1px solid #e8ecf2!important; }
#pageContent .catalog-management-page .hidden-select-all { color:#52637a!important; }
#pageContent .catalog-management-page .hidden-count-badge { background:#fff2f0!important; border:1px solid #f4d7d4!important; color:#c4372e!important; }
#pageContent .catalog-management-page .hidden-category-tile {
 background:linear-gradient(148deg,#fff,#fdfbfb)!important; border:1px solid #e4e9ef!important;
 box-shadow:0 5px 19px rgba(29,40,65,.045)!important;
}
#pageContent .catalog-management-page .hidden-category-tile:hover { border-color:#e8bbb6!important; background:#fff9f8!important; box-shadow:0 9px 24px rgba(126,50,47,.085)!important; }
#pageContent .catalog-management-page .hidden-category-tile:has(.hidden-category-select-wrap input:checked) { border-color:#e47e77!important; box-shadow:0 0 0 2px rgba(222,60,51,.12)!important; }
#pageContent .catalog-management-page .hidden-category-select-wrap { background:#fff!important; border:1px solid #e5eaf1!important; }
#pageContent .catalog-management-page .hidden-category-summary strong { color:#26384f!important; }
#pageContent .catalog-management-page .hidden-category-path { color:#7c8ca0!important; }
#pageContent .catalog-management-page .hidden-category-level { color:#c5322b!important; border:1px solid #f2d3ce!important; background:#fff0ef!important; }
#pageContent .catalog-management-page .hidden-category-stats { color:#6a7c92!important; }
#pageContent .catalog-management-page .hidden-category-stats b { color:#c8322c!important; }
#pageContent .catalog-management-page .hidden-category-status-pill { color:#a56624!important; border:1px solid #f3e2cb!important; background:#fff6e7!important; }
#pageContent .catalog-management-page .hidden-category-chevron { background:#fff6f5!important; border:1px solid #f1d8d4!important; color:#c73630!important; }
#pageContent .catalog-management-page .hidden-category-row.is-open .hidden-category-chevron { color:#c73630!important; border-color:#ecc1bb!important; }
#pageContent .catalog-management-page .hidden-category-tools { background:#fff!important; border:1px solid #e8ecf2!important; box-shadow:0 9px 21px rgba(23,42,72,.08)!important; }
#pageContent .catalog-management-page .hidden-category-summary .category-emoji-small { box-shadow:0 6px 17px rgba(28,47,76,.08)!important; border:1px solid #f0e6e4!important; }
#pageContent .category-actions-mobile-hint { display:none; color:#8997a9; font-size:11px; line-height:1.45; }
#pageContent .category-actions-mobile-hint .icon { width:14px; height:14px; flex:0 0 14px; }
@media(max-width:800px) { #pageContent .category-actions-mobile-hint { display:flex; align-items:center; gap:7px; margin:0 0 7px; } }


/* ==== theme-category-v159.css ==== */
/* VNDEVCODE V15.9 — category management VIP, white / vivid red.
   Loaded last. Source of truth: this stylesheet, then run build_frontend.py. */
#pageContent .catalog-management-page { --vip-red:#f20f29; --vip-dark:#10213f; --vip-muted:#637b9b; gap:17px!important; min-width:0; }
#pageContent .catalog-management-page * { box-sizing:border-box; }
#pageContent .catalog-management-page .category-vip-metrics {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;}
#pageContent .catalog-management-page .category-vip-metric {
  position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:flex-start;
  min-height:151px;padding:21px 22px 17px!important;overflow:hidden;
  background:linear-gradient(133deg,#fff 52%,#fffafa)!important;
  border:1px solid #edf0f6!important;border-radius:18px!important;
  box-shadow:0 8px 26px rgba(29,55,94,.05)!important;
}
#pageContent .catalog-management-page .category-vip-metric .category-metric-icon {
  display:grid;place-items:center;width:43px;height:43px;min-width:43px;margin:0 0 11px;
  border-radius:13px;background:#fff0f1!important;color:#f00b28!important;
}
#pageContent .catalog-management-page .category-vip-metric .category-metric-icon .icon {width:24px!important;height:24px!important;}
#pageContent .catalog-management-page .category-vip-metric small {font-weight:850!important;font-size:10.5px!important;letter-spacing:.045em;color:#6782a5!important;}
#pageContent .catalog-management-page .category-vip-metric strong {display:block;margin:8px 0 2px;font-size:30px!important;font-weight:900!important;line-height:1.07;color:#0e1e39!important;}
#pageContent .catalog-management-page .category-vip-metric em {font-size:11px;font-style:normal;color:#8798ad;max-width:76%;}
#pageContent .catalog-management-page .category-vip-metric.metric-live .category-metric-icon {background:#e8fff4!important;color:#00ad59!important;}
#pageContent .catalog-management-page .category-vip-metric.metric-hidden .category-metric-icon {background:#fff3e6!important;color:#f39719!important;}
#pageContent .catalog-management-page .category-vip-metric.metric-level .category-metric-icon {background:#eaf1ff!important;color:#176dff!important;}
#pageContent .catalog-management-page .metric-bars {position:absolute;bottom:17px;right:20px;display:flex;align-items:flex-end;gap:5px;height:54px;opacity:.85;pointer-events:none;}
#pageContent .catalog-management-page .metric-bars i {display:block;width:15px;height:20%;border-radius:5px 5px 2px 2px;background:#ffd4d8;}
#pageContent .catalog-management-page .metric-bars i:nth-child(2) {height:58%;background:#ffc8cf;}
#pageContent .catalog-management-page .metric-bars i:nth-child(3) {height:34%;background:#ffb9c2;}
#pageContent .catalog-management-page .metric-bars i:nth-child(4) {height:92%;background:#ff98a7;}
#pageContent .catalog-management-page .metric-live .metric-bars i {background:#b8f4d4;}
#pageContent .catalog-management-page .metric-hidden .metric-bars i {background:#ffdfaf;}
#pageContent .catalog-management-page .metric-level .metric-bars i {background:#b7d4ff;}
#pageContent .catalog-management-page .category-browser {position:relative;padding:0!important;overflow:hidden;border:1px solid #ffe1e2!important;border-radius:19px!important;background:linear-gradient(108deg,#fff 15%,#fff0f2 76%,#ffdadf)!important;box-shadow:0 8px 22px rgba(215,49,71,.05)!important;}
#pageContent .catalog-management-page .category-browser-top {padding:13px 22px 0!important;position:relative;z-index:2;}
#pageContent .catalog-management-page .category-level-summary {position:relative;display:flex;align-items:center;gap:18px;min-height:140px;margin:0!important;padding:15px 26px 26px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;}
#pageContent .catalog-management-page .category-vip-banner-icon {display:grid;place-items:center;width:73px;height:73px;flex:0 0 73px;background:linear-gradient(145deg,#ff7479,#ed001e 76%);border:7px solid #ffdbdf;border-radius:20px;color:white;filter:drop-shadow(0 12px 13px rgba(230,28,48,.24));transform:rotate(-4deg);}
#pageContent .catalog-management-page .category-vip-banner-icon .icon {width:40px;height:40px;}
#pageContent .catalog-management-page .category-vip-banner-copy {flex:1 1 auto;min-width:0;}
#pageContent .catalog-management-page .category-vip-kicker {display:inline-flex!important;width:max-content;max-width:100%;padding:5px 11px;border-radius:999px;color:white!important;background:#f30b28!important;letter-spacing:0!important;font-size:10px!important;font-weight:900!important;}
#pageContent .catalog-management-page .category-vip-banner-copy strong {display:block;overflow-wrap:anywhere;margin-top:8px;font-size:22px;color:#10213e;font-weight:900;line-height:1.3;}
#pageContent .catalog-management-page .category-vip-banner-copy p {margin:8px 0 0;font-size:12px;line-height:1.6;color:#647d9e;}
#pageContent .catalog-management-page .category-vip-banner-count {display:flex;align-items:flex-start;flex-direction:column;flex:0 0 175px;min-width:0;padding:15px 20px;background:rgba(255,255,255,.86);border:1px solid white;border-radius:15px;box-shadow:0 6px 15px rgba(202,59,66,.06);}
#pageContent .catalog-management-page .category-vip-banner-count strong {font-size:29px;font-weight:900;color:#ec0e29;line-height:1.1;}
#pageContent .catalog-management-page .category-vip-banner-count span {font-weight:800;color:#193050;font-size:12px;}
#pageContent .catalog-management-page .category-vip-banner-count small {display:block;margin-top:5px;color:#8493a9;font-size:10px;}
#pageContent .catalog-management-page .category-quick-tools {border:1px solid #edf0f6!important;border-radius:16px!important;box-shadow:0 8px 22px rgba(24,53,88,.04)!important;}
#pageContent .catalog-management-page .category-quick-tool-actions .btn {font-weight:750;border-radius:10px;}
#pageContent .catalog-management-page .catalog-section {border-radius:18px!important;box-shadow:0 8px 25px rgba(25,44,78,.055)!important;}
#pageContent .catalog-management-page .catalog-toolbar-heading {background:linear-gradient(110deg,#fff 30%,#fff4f5);padding:22px 24px 13px!important;border-bottom:0!important;}
#pageContent .catalog-management-page .catalog-toolbar-heading>div>span {display:inline-flex;align-items:center;gap:8px;color:#ec1027!important;font-size:11px!important;font-weight:900!important;letter-spacing:.045em;}
#pageContent .catalog-management-page .catalog-toolbar-heading h3 {margin:8px 0 6px!important;font-size:23px!important;font-weight:900!important;color:#13203b!important;}
#pageContent .catalog-management-page .catalog-toolbar-heading p {color:#6e82a1!important;font-size:12.5px!important;}
#pageContent .catalog-management-page .catalog-list-toolbar {background:#fff!important;}
#pageContent .catalog-management-page .catalog-search-box {min-height:53px!important;border-radius:13px!important;border-color:#dfe8f3!important;}
#pageContent .catalog-management-page .catalog-search-box:focus-within {border-color:#ff6371!important;box-shadow:0 0 0 4px rgba(243,15,41,.075)!important;}
#pageContent .catalog-management-page .catalog-list-toolbar-right select, #pageContent .catalog-management-page .catalog-list-toolbar-right .btn {min-height:49px!important;height:49px!important;}
#pageContent .catalog-management-page .catalog-table {min-width:950px!important;}
#pageContent .catalog-management-page .catalog-table thead th {background:#f8faff!important;color:#6c82a3!important;font-weight:900!important;}
#pageContent .catalog-management-page .catalog-table tbody td {font-size:12.4px!important;}
#pageContent .catalog-management-page .catalog-table .catalog-name-cell strong {font-size:13.3px!important;color:#101f3e!important;}
#pageContent .catalog-management-page .catalog-count-col strong {color:#e6112b;font-size:15px;}
#pageContent .catalog-management-page .catalog-count-col small {color:#8797b2;font-size:11px;}
#pageContent .catalog-management-page .catalog-count-col>span {display:block;margin-top:4px;color:#607b9a;font-size:11px;}
#pageContent .catalog-management-page .catalog-row-actions .action-btn.danger, #pageContent .catalog-management-page .category-card-actions .action-btn.danger {border-color:#ffd7db!important;background:#fff1f2!important;color:#ed102c!important;}
#pageContent .catalog-management-page .catalog-row-actions .action-btn.danger:hover {background:#e61028!important;color:white!important;}
#pageContent .catalog-management-page .hidden-category-section {position:relative;padding:23px!important;border:1px solid #f0dce0!important;border-radius:19px!important;background:linear-gradient(135deg,#fff 60%,#fff7f8)!important;box-shadow:0 10px 27px rgba(27,42,71,.05)!important;}
#pageContent .catalog-management-page .hidden-category-heading {display:flex!important;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0!important;}
#pageContent .catalog-management-page .hidden-heading-main {display:flex;align-items:center;gap:13px;min-width:0;}
#pageContent .catalog-management-page .hidden-heading-icon {display:grid!important;place-items:center;width:46px!important;height:46px!important;min-width:46px;border-radius:14px!important;background:#ffe9ed!important;color:#ed1732!important;}
#pageContent .catalog-management-page .hidden-heading-main strong {display:block;font-size:19px!important;font-weight:900!important;color:#132540!important;}
#pageContent .catalog-management-page .hidden-heading-main small {display:block;max-width:580px;margin-top:4px;color:#7287a1!important;line-height:1.55;}
#pageContent .catalog-management-page .hidden-count-badge {display:inline-flex;align-items:center;gap:7px;border:1px solid #ffdce0!important;border-radius:999px!important;background:#fff1f3!important;padding:8px 12px!important;font-weight:900;color:#ef162d!important;}
#pageContent .catalog-management-page .hidden-count-badge .icon {width:15px;height:15px;}
#pageContent .catalog-management-page .hidden-vip-subtitle {display:flex;justify-content:space-between;align-items:center;gap:7px 14px;flex-wrap:wrap;margin:17px 0 15px;padding:11px 13px;background:#fff7ed;border:1px solid #ffebcc;border-radius:11px;color:#9d6524;font-size:11.5px;line-height:1.55;}
#pageContent .catalog-management-page .hidden-vip-subtitle>span:first-child {display:inline-flex;gap:6px;align-items:center;}
#pageContent .catalog-management-page .hidden-vip-subtitle .icon {width:15px;height:15px;}
#pageContent .catalog-management-page .hidden-category-bulkbar {display:flex!important;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 14px!important;border:1px solid #eef1f7!important;border-radius:12px!important;background:#fafbff!important;}
#pageContent .catalog-management-page .hidden-category-list.hidden-category-grid-3 {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;margin-top:18px!important;}
#pageContent .catalog-management-page .hidden-category-tile {display:flex!important;flex-direction:column;min-width:0!important;min-height:230px;padding:18px!important;border:1px solid #e5eaf3!important;border-radius:17px!important;background:linear-gradient(155deg,#fff,#fffafa)!important;box-shadow:0 7px 21px rgba(15,39,72,.045)!important;transition:border-color .2s,box-shadow .2s,transform .2s;}
#pageContent .catalog-management-page .hidden-category-tile:hover {transform:translateY(-2px);border-color:#ffa8b3!important;box-shadow:0 12px 27px rgba(157,44,66,.095)!important;}
#pageContent .catalog-management-page .hidden-category-tile[hidden] {display:none!important;}
#pageContent .catalog-management-page .hidden-category-select-wrap {position:absolute;top:16px;left:16px;z-index:2;}
#pageContent .catalog-management-page .hidden-category-drag-handle {position:absolute!important;right:16px!important;top:16px!important;}
#pageContent .catalog-management-page .hidden-category-status-pill {align-self:flex-end;margin-right:25px;margin-bottom:12px;padding:5px 9px!important;border-radius:999px!important;color:#ae741e!important;background:#fff5e8!important;font-size:10px!important;font-weight:900!important;}
#pageContent .catalog-management-page .hidden-category-summary {display:flex;flex:1 1 auto;min-height:108px;width:100%;padding:5px 0 9px!important;text-align:left;border:0;background:transparent;cursor:pointer;}
#pageContent .catalog-management-page .hidden-category-avatar {display:grid;place-items:center;flex:0 0 55px;width:55px;height:55px;border-radius:16px;background:linear-gradient(145deg,#fff0f2,#ffe0e5);border:1px solid #ffdee3;}
#pageContent .catalog-management-page .hidden-category-avatar .category-emoji {width:46px!important;height:46px!important;}
#pageContent .catalog-management-page .hidden-category-copy {min-width:0;flex:1;}
#pageContent .catalog-management-page .hidden-category-copy strong {display:block;white-space:normal;overflow-wrap:anywhere;font-size:15px!important;font-weight:850!important;line-height:1.45;}
#pageContent .catalog-management-page .hidden-category-stats {display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin-top:10px;font-size:11px!important;}
#pageContent .catalog-management-page .hidden-category-quick-actions {display:flex;align-items:center;gap:9px;margin-top:auto;padding-top:12px;border-top:1px dashed #e9e3e9;}
#pageContent .catalog-management-page .hidden-category-show-btn {display:flex;align-items:center;justify-content:center;gap:7px;flex:1 1 auto;min-height:38px;border:1px solid #b9eed7;border-radius:10px;color:#078455;background:#ecfbf3;font-weight:850;font-size:11.5px;cursor:pointer;}
#pageContent .catalog-management-page .hidden-category-show-btn:hover {background:#0aa967;color:white;}
#pageContent .catalog-management-page .hidden-category-remove-btn {display:grid;place-items:center;flex:0 0 39px;width:39px;height:38px;border-radius:10px;border:1px solid #ffdade;color:#df1732;background:#fff1f3;cursor:pointer;}
#pageContent .catalog-management-page .hidden-category-remove-btn:hover {background:#e61028;color:#fff;}
#pageContent .catalog-management-page .hidden-category-remove-btn .icon,#pageContent .catalog-management-page .hidden-category-show-btn .icon {width:15px;height:15px;}
#pageContent .catalog-management-page .hidden-category-tools {position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;z-index:2;width:100%!important;margin:11px 0 0;padding:12px!important;border-radius:12px!important;box-shadow:none!important;background:#fff!important;border:1px solid #e7edf4!important;}
#pageContent .catalog-management-page .hidden-category-row.is-open .hidden-category-tools {display:flex!important;flex-wrap:wrap;gap:7px;}
#pageContent .catalog-management-page .hidden-category-tools .btn {flex:1 1 auto;min-width:max-content;}
#pageContent .catalog-management-page .hidden-category-empty {grid-column:1/-1;min-height:88px;display:grid;place-items:center;color:#7690ae;background:#f9fbff;border:1px dashed #dbe2ed;border-radius:12px;}
#pageContent .products-pro-page .product-actions-cell .action-btn.danger {background:#fff1f2!important;color:#e6122b!important;border-color:#ffd9dd!important;}
#pageContent .products-pro-page .product-actions-cell .action-btn[title*="Hiện"] {color:#058358!important;background:#ecfbf3!important;}
@media(max-width:1260px){
 #pageContent .catalog-management-page .hidden-category-list.hidden-category-grid-3 {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 #pageContent .catalog-management-page .category-vip-metric {padding:17px!important;}
}
@media(max-width:900px){
 #pageContent .catalog-management-page .category-vip-metrics {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 #pageContent .catalog-management-page .category-level-summary {gap:12px;padding:15px!important;min-height:115px;}
 #pageContent .catalog-management-page .category-vip-banner-count {flex-basis:130px;padding:12px!important;}
 #pageContent .catalog-management-page .catalog-table {display:block;min-width:0!important;width:100%;}
 #pageContent .catalog-management-page .catalog-table tbody tr.catalog-table-row td.catalog-count-col {order:2;align-items:flex-start;}
 #pageContent .catalog-management-page .catalog-table tbody tr.catalog-table-row td.catalog-sort-col {order:3;}
 #pageContent .catalog-management-page .catalog-table tbody tr.catalog-table-row td.catalog-status-col {order:4;}
 #pageContent .catalog-management-page .catalog-table tbody tr.catalog-table-row td.catalog-actions-col {order:5;}
}
@media(max-width:600px){
 #pageContent .catalog-management-page {gap:12px!important;}
 #pageContent .catalog-management-page .category-vip-metrics {gap:9px!important;}
 #pageContent .catalog-management-page .category-vip-metric {min-height:137px;padding:14px!important;border-radius:14px!important;}
 #pageContent .catalog-management-page .category-vip-metric .category-metric-icon {width:38px;height:38px;min-width:38px;margin-bottom:9px;}
 #pageContent .catalog-management-page .category-vip-metric strong {font-size:25px!important;}
 #pageContent .catalog-management-page .category-vip-metric em {max-width:100%;font-size:10px;}
 #pageContent .catalog-management-page .metric-bars {opacity:.4;right:9px;bottom:13px;gap:3px;}
 #pageContent .catalog-management-page .metric-bars i {width:9px;}
 #pageContent .catalog-management-page .category-browser-top {padding:12px 12px 0!important;}
 #pageContent .catalog-management-page .category-level-summary {display:grid;grid-template-columns:53px minmax(0,1fr);gap:9px 12px;padding:10px 13px 15px!important;}
 #pageContent .catalog-management-page .category-vip-banner-icon {width:53px;height:53px;min-width:53px;flex-basis:53px;border-width:5px;border-radius:15px;}
 #pageContent .catalog-management-page .category-vip-banner-icon .icon {width:30px;height:30px;}
 #pageContent .catalog-management-page .category-vip-banner-copy strong {font-size:17px;}
 #pageContent .catalog-management-page .category-vip-banner-count {grid-column:1/-1;display:flex;align-items:center;flex-direction:row;gap:8px;flex-basis:auto;padding:9px 12px!important;}
 #pageContent .catalog-management-page .category-vip-banner-count strong {font-size:20px;}
 #pageContent .catalog-management-page .category-vip-banner-count small {margin:0 0 0 auto;}
 #pageContent .catalog-management-page .catalog-toolbar-heading {padding:18px 15px 10px!important;}
 #pageContent .catalog-management-page .catalog-toolbar-heading h3 {font-size:20px!important;}
 #pageContent .catalog-management-page .hidden-category-section {padding:14px!important;}
 #pageContent .catalog-management-page .hidden-category-list.hidden-category-grid-3 {grid-template-columns:minmax(0,1fr)!important;gap:11px!important;}
 #pageContent .catalog-management-page .hidden-category-tile {min-height:0;padding:16px!important;}
 #pageContent .catalog-management-page .hidden-category-heading strong {font-size:16px!important;}
 #pageContent .catalog-management-page .hidden-category-bulkbar {padding:10px!important;}
 #pageContent .catalog-management-page .hidden-bulk-actions {display:flex;flex-wrap:wrap;width:100%;}
 #pageContent .catalog-management-page .hidden-bulk-actions .btn {flex:1 1 auto;white-space:normal;min-height:42px;}
 #pageContent .catalog-management-page .category-quick-tools {padding:12px!important;}
 #pageContent .catalog-management-page .catalog-table tbody tr.catalog-table-row {gap:9px;}
 #pageContent .catalog-management-page .catalog-row-actions .action-btn {width:41px;height:41px;}
}
@media(prefers-reduced-motion:reduce){#pageContent .catalog-management-page .hidden-category-tile {transition:none!important;}}


/* V16.0 clarity patch — chuyên mục rõ chữ, nền sạch, không mờ */
#pageContent .catalog-management-page {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
#pageContent .catalog-management-page .category-vip-metric,
#pageContent .catalog-management-page .category-browser,
#pageContent .catalog-management-page .category-vip-banner-count,
#pageContent .catalog-management-page .catalog-section,
#pageContent .catalog-management-page .catalog-toolbar-heading,
#pageContent .catalog-management-page .catalog-list-toolbar,
#pageContent .catalog-management-page .hidden-category-section,
#pageContent .catalog-management-page .hidden-category-tile,
#pageContent .catalog-management-page .hidden-category-tools,
#pageContent .catalog-management-page .catalog-search-box,
#pageContent .catalog-management-page .catalog-list-toolbar-right select,
#pageContent .catalog-management-page .catalog-list-toolbar-right .btn,
#pageContent .catalog-management-page .hidden-category-bulkbar {
  background:#fff !important;
  background-image:none !important;
  backdrop-filter:none !important;
}
#pageContent .catalog-management-page .category-browser,
#pageContent .catalog-management-page .catalog-section,
#pageContent .catalog-management-page .hidden-category-section {
  border-color:#e5ebf3 !important;
  box-shadow:0 8px 22px rgba(16,33,63,.055) !important;
}
#pageContent .catalog-management-page .catalog-toolbar-heading {
  border-bottom:1px solid #edf2f7 !important;
}
#pageContent .catalog-management-page .category-vip-banner-copy strong,
#pageContent .catalog-management-page .catalog-toolbar-heading h3,
#pageContent .catalog-management-page .hidden-heading-main strong,
#pageContent .catalog-management-page .hidden-category-copy strong,
#pageContent .catalog-management-page .catalog-table .catalog-name-cell strong,
#pageContent .catalog-management-page .catalog-table tbody td,
#pageContent .catalog-management-page .catalog-count-col strong,
#pageContent .catalog-management-page .category-vip-banner-count span,
#pageContent .catalog-management-page .category-vip-metric strong,
#pageContent .catalog-management-page .category-vip-metric small {
  color:#10213f !important;
  text-shadow:none !important;
}
#pageContent .catalog-management-page .category-vip-metric small,
#pageContent .catalog-management-page .category-vip-metric em,
#pageContent .catalog-management-page .category-vip-banner-copy p,
#pageContent .catalog-management-page .catalog-toolbar-heading p,
#pageContent .catalog-management-page .hidden-heading-main small,
#pageContent .catalog-management-page .hidden-vip-subtitle,
#pageContent .catalog-management-page .hidden-category-stats,
#pageContent .catalog-management-page .catalog-count-col small,
#pageContent .catalog-management-page .catalog-count-col > span,
#pageContent .catalog-management-page .category-vip-banner-count small {
  color:#5f7491 !important;
  opacity:1 !important;
}
#pageContent .catalog-management-page .metric-bars { opacity:.7 !important; }
#pageContent .catalog-management-page .category-vip-banner-icon { filter:none !important; }
#pageContent .catalog-management-page .catalog-search-box {
  border:1px solid #d8e0ea !important;
  box-shadow:none !important;
}
#pageContent .catalog-management-page .catalog-search-box input,
#pageContent .catalog-management-page .catalog-search-box input::placeholder {
  color:#687d99 !important;
  opacity:1 !important;
}
#pageContent .catalog-management-page .catalog-search-box input { color:#10213f !important; font-weight:700 !important; }
#pageContent .catalog-management-page .catalog-table thead th {
  background:#f7f9fc !important;
  color:#566f8f !important;
}
#pageContent .catalog-management-page .catalog-table tbody tr,
#pageContent .catalog-management-page .catalog-table tbody td { background:#fff !important; }
#pageContent .catalog-management-page .hidden-vip-subtitle {
  background:#fff8f8 !important;
  border:1px solid #ffe1e5 !important;
}
#pageContent .catalog-management-page .hidden-category-bulkbar {
  border-color:#e5ebf3 !important;
}
#pageContent .catalog-management-page .hidden-category-tile {
  border-color:#e5ebf3 !important;
  box-shadow:0 6px 18px rgba(16,33,63,.045) !important;
}
#pageContent .catalog-management-page .hidden-category-tile:hover {
  border-color:#ff8d9a !important;
  box-shadow:0 12px 25px rgba(242,15,41,.09) !important;
}
#pageContent .catalog-management-page .hidden-category-status-pill {
  background:#fff4e8 !important;
  color:#a96a16 !important;
}
#pageContent .catalog-management-page .hidden-category-stats {
  gap:6px !important;
  font-weight:700 !important;
}
#pageContent .catalog-management-page .hidden-category-stats .icon,
#pageContent .catalog-management-page .hidden-vip-subtitle .icon,
#pageContent .catalog-management-page .hidden-count-badge .icon {
  color:inherit !important;
  opacity:1 !important;
}
#pageContent .catalog-management-page .hidden-category-tools {
  border-color:#e7edf4 !important;
}
#pageContent .catalog-management-page .hidden-category-empty {
  background:#fafcff !important;
  color:#5f7491 !important;
  border-color:#dfe7f1 !important;
}
#pageContent .catalog-management-page .hidden-category-section::before,
#pageContent .catalog-management-page .hidden-category-section::after,
#pageContent .catalog-management-page .catalog-section::before,
#pageContent .catalog-management-page .catalog-section::after,
#pageContent .catalog-management-page .category-browser::before,
#pageContent .catalog-management-page .category-browser::after,
#pageContent .catalog-management-page .hidden-category-tile::before,
#pageContent .catalog-management-page .hidden-category-tile::after {
  display:none !important;
  content:none !important;
}
@media (max-width:600px){
  #pageContent .catalog-management-page .catalog-search-box input { font-size:14px !important; }
  #pageContent .catalog-management-page .hidden-heading-main small,
  #pageContent .catalog-management-page .hidden-vip-subtitle,
  #pageContent .catalog-management-page .hidden-category-stats { font-size:11px !important; }
}


/* ==== theme-category-v161.css ==== */
/* VNDEVCODE V16.1 - Category UI refinement, white + red, legibility first.
   Do not edit the generated bundle. This is the final CSS layer. */
#pageContent .catalog-management-page {
  --cat-ink:#11243e;
  --cat-muted:#526982;
  --cat-red:#e91936;
  --cat-line:#e3e9f1;
  gap:16px!important;
  color:var(--cat-ink);
  font-size:14px;
}
#pageContent .catalog-management-page :is(button, input, select) {font-family:inherit;}
#pageContent .catalog-management-page button:focus-visible,
#pageContent .catalog-management-page input:focus-visible,
#pageContent .catalog-management-page select:focus-visible {outline:3px solid rgba(233,25,54,.3);outline-offset:2px;}
#pageContent .catalog-management-page .category-vip-metrics{gap:14px!important;}
#pageContent .catalog-management-page .category-vip-metric{
  min-height:141px!important;
  padding:18px 20px!important;
  border-radius:18px!important;
  border:1px solid var(--cat-line)!important;
  background:#fff!important;
  box-shadow:0 5px 17px rgba(17,36,62,.045)!important;
}
#pageContent .catalog-management-page .category-vip-metric small{
  color:#4e6280!important;font-size:12px!important;letter-spacing:.01em!important;font-weight:800!important;
}
#pageContent .catalog-management-page .category-vip-metric strong{font-size:32px!important;margin:6px 0 2px!important;}
#pageContent .catalog-management-page .category-vip-metric em{font-size:12px!important;color:#62758d!important;max-width:83%!important;line-height:1.45;}
#pageContent .catalog-management-page .metric-bars {opacity:.48!important;}
/* Refined full-width banner, balanced even with no categories. */
#pageContent .catalog-management-page .category-browser {
  margin:0!important;padding:0!important;
  border:1px solid #e9dce0!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:0 8px 24px rgba(33,49,74,.045)!important;
}
#pageContent .catalog-management-page .category-browser-top {
  padding:13px 23px 0!important;
  background:#fff!important;
  display:flex!important;
  align-items:center!important;
  flex-direction:row!important;
  gap:10px!important;
}
#pageContent .catalog-management-page .category-breadcrumb{gap:8px;min-width:0;}
#pageContent .catalog-management-page .category-breadcrumb button{
  font-size:12px!important;color:#50637d!important;font-weight:800!important;min-height:30px;
}
#pageContent .catalog-management-page .category-breadcrumb button:last-child{color:#e91936!important;}
#pageContent .catalog-management-page .category-browser-actions{margin-left:auto;width:auto!important;}
#pageContent .catalog-management-page .category-level-summary{
  min-height:0!important;
  padding:20px 24px!important;
  display:flex!important;flex-direction:row!important;align-items:center!important;
  gap:18px!important;
  background:#fff!important;
}
#pageContent .catalog-management-page .category-vip-banner-icon {
  width:66px!important;height:66px!important;min-width:66px!important;flex-basis:66px!important;
  border:0!important;border-radius:18px!important;
  transform:none!important;
  background:#fcecef!important;color:#e91936!important;
  filter:none!important;
  box-shadow:inset 0 0 0 1px #ffdbe2!important;
}
#pageContent .catalog-management-page .category-vip-banner-icon .icon{width:34px!important;height:34px!important;}
#pageContent .catalog-management-page .category-vip-banner-copy{flex:1 1 0!important;min-width:0;}
#pageContent .catalog-management-page .category-vip-kicker{
  border-radius:7px!important;
  background:#fff0f2!important;color:#d50f2d!important;
  border:1px solid #ffd4dc!important;
  font-size:11px!important;line-height:1.1!important;
  letter-spacing:.015em!important;padding:7px 10px!important;
}
#pageContent .catalog-management-page .category-vip-banner-copy strong {
  font-size:23px!important;color:var(--cat-ink)!important;
  font-weight:900!important;line-height:1.22!important;margin-top:9px!important;
}
#pageContent .catalog-management-page .category-vip-banner-copy p{
  color:var(--cat-muted)!important;font-size:13px!important;
  line-height:1.55!important;margin-top:7px!important;
}
#pageContent .catalog-management-page .category-banner-points-v161{
  display:flex;flex-wrap:wrap;align-items:center;gap:8px 17px;margin-top:10px;
  font-size:12px;font-weight:800;color:#475f7b;
}
#pageContent .catalog-management-page .category-banner-points-v161 span{display:inline-flex!important;align-items:center;gap:5px;color:#475f7b!important;font-size:12px!important;}
#pageContent .catalog-management-page .category-banner-points-v161 .icon{width:15px;height:15px;color:#e91936;}
#pageContent .catalog-management-page .category-vip-banner-count{
  flex:0 0 246px!important;min-width:0!important;
  padding:15px 18px!important;
  border:1px solid #f2d9df!important;border-radius:15px!important;
  background:#fffafa!important;
  box-shadow:none!important;
}
#pageContent .catalog-management-page .category-vip-banner-count .category-count-label-v161{
  color:#536781!important;font-size:11px!important;
  font-weight:900!important;letter-spacing:.035em;
}
#pageContent .catalog-management-page .category-vip-banner-count strong{
  font-size:32px!important;line-height:1.15!important;margin-top:5px!important;color:#dc1731!important;
}
#pageContent .catalog-management-page .category-vip-banner-count .category-count-sub-v161{
  font-size:12px!important;font-weight:700!important;color:#50647d!important;
}
#pageContent .catalog-management-page .category-banner-add-v161{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-height:38px;margin-top:11px;padding:0 11px;width:100%;
  color:#fff;background:#df1733;border:1px solid #df1733;
  border-radius:10px;font-size:12px;font-weight:850;cursor:pointer;
}
#pageContent .catalog-management-page .category-banner-add-v161:hover{background:#bf0d25;}
#pageContent .catalog-management-page .category-banner-add-v161 .icon{width:15px;height:15px;}
/* Actions are readable and available when categories exist. */
#pageContent .catalog-management-page .category-quick-tools{
  margin:0!important;padding:14px 17px!important;background:#fff!important;
  border:1px solid var(--cat-line)!important;box-shadow:none!important;gap:10px 12px!important;
}
#pageContent .catalog-management-page .category-quick-tool-actions {gap:7px!important;}
#pageContent .catalog-management-page .category-quick-tools .btn{
  font-size:12px!important;font-weight:750!important;min-height:37px!important;padding:7px 10px!important;
}
#pageContent .catalog-management-page .category-quick-tools .bulk-select-all,
#pageContent .catalog-management-page .category-quick-tools .bulk-selection-count{
  color:#243a55!important;font-size:12px!important;font-weight:750!important;
}
/* List section */
#pageContent .catalog-management-page .catalog-section{
  overflow:hidden!important;margin-top:0!important;
  border-radius:20px!important;border:1px solid var(--cat-line)!important;
  background:#fff!important;box-shadow:0 5px 20px rgba(20,41,76,.045)!important;
}
#pageContent .catalog-management-page .catalog-toolbar-heading{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:15px!important;flex-wrap:wrap;
  padding:20px 22px 16px!important;background:#fff!important;
  border-bottom:1px solid #edf1f5!important;
}
#pageContent .catalog-management-page .catalog-toolbar-heading>div>span{font-size:11.5px!important;}
#pageContent .catalog-management-page .catalog-toolbar-heading h3{
  margin:5px 0!important;font-size:22px!important;line-height:1.25!important;
  color:#11243e!important;
}
#pageContent .catalog-management-page .catalog-toolbar-heading p,
#pageContent .catalog-management-page .hidden-heading-main small{
  color:#536a86!important;font-size:13px!important;line-height:1.5!important;
}
#pageContent .catalog-management-page .catalog-header-count-v161{
  display:inline-flex;align-items:center;justify-content:center;
  background:#fff0f2!important;color:#d91b34!important;
  border:1px solid #fdd3da!important;border-radius:9px;
  padding:8px 11px;font-size:12px!important;font-weight:850;
}
#pageContent .catalog-management-page .catalog-list-toolbar{
  display:grid!important;grid-template-columns:minmax(230px,1fr) auto!important;
  align-items:center!important;gap:10px!important;
  padding:14px 20px!important;background:#fff!important;
}
#pageContent .catalog-management-page .catalog-search-box{
  min-width:0!important;width:100%!important;min-height:46px!important;
  background:#fff!important;border:1px solid #cdd8e5!important;
  border-radius:11px!important;padding:0 12px!important;
}
#pageContent .catalog-management-page .catalog-search-box input,
#pageContent .catalog-management-page .catalog-search-box input::placeholder{
  font-size:13px!important;font-weight:650!important;color:#4e6480!important;
}
#pageContent .catalog-management-page .catalog-list-toolbar-right{
  display:flex!important;align-items:center!important;gap:9px!important;flex-wrap:wrap!important;
  min-width:0!important;
}
#pageContent .catalog-management-page .catalog-list-toolbar-right select,
#pageContent .catalog-management-page .catalog-list-toolbar-right .btn{
  min-height:46px!important;height:46px!important;border:1px solid #d5deea!important;
  border-radius:11px!important;padding:8px 12px!important;
  font-size:12px!important;font-weight:800!important;color:#2c4362!important;
  background:#fff!important;
}
#pageContent .catalog-management-page .catalog-table thead th{font-size:12px!important;}
#pageContent .catalog-management-page .catalog-table tbody td{font-size:13px!important;}
#pageContent .catalog-management-page .catalog-table .catalog-name-cell strong{font-size:14px!important;}
/* Empty state in table area: balanced, compact and actionable. */
#pageContent .catalog-management-page .category-empty-v161{
  display:flex;align-items:center;gap:17px;flex-wrap:wrap;
  margin:0 18px 16px;padding:22px!important;min-height:125px!important;
  border-radius:15px;border:1px dashed #e6c9d0;
  background:#fffafa;
}
#pageContent .catalog-management-page .category-empty-icon-v161{
  display:grid;place-items:center;flex:0 0 58px;width:58px;height:58px;
  background:#ffeaf0;color:#e91936;border:1px solid #ffdae2;border-radius:16px;
}
#pageContent .catalog-management-page .category-empty-icon-v161 .icon{width:28px;height:28px;}
#pageContent .catalog-management-page .category-empty-copy-v161{min-width:220px;flex:1 1 280px;}
#pageContent .catalog-management-page .category-empty-eyebrow-v161{
  font-size:10.5px!important;letter-spacing:.035em;color:#cf1730!important;font-weight:900!important;
}
#pageContent .catalog-management-page .category-empty-copy-v161 h4{
  font-size:17px!important;line-height:1.3;color:#142943!important;margin:6px 0!important;font-weight:900!important;
}
#pageContent .catalog-management-page .category-empty-copy-v161 p{
  font-size:13px!important;line-height:1.5;color:#526982!important;margin:0!important;
}
#pageContent .catalog-management-page .category-empty-action-v161{
  min-height:42px!important;padding:9px 16px!important;
  font-size:12.5px!important;font-weight:850!important;border-radius:10px!important;
  white-space:nowrap;
}
#pageContent .catalog-management-page .catalog-list-footer{
  background:#f9fbfe!important;border-top:1px solid #edf1f6!important;
  color:#526982!important;font-size:12px!important;
}
/* Hidden-category list: no faded content, clean state when empty. */
#pageContent .catalog-management-page .hidden-category-section{
  padding:19px 21px!important;margin:0!important;
  background:#fff!important;border:1px solid var(--cat-line)!important;
  border-radius:20px!important;box-shadow:0 5px 20px rgba(20,41,76,.045)!important;
}
#pageContent .catalog-management-page .hidden-category-heading{
  display:flex!important;flex-direction:row!important;
  justify-content:space-between!important;align-items:center!important;
  gap:10px!important;
  margin:0!important;padding:0 0 15px!important;
  border-bottom:1px solid #edf0f5!important;
}
#pageContent .catalog-management-page .hidden-heading-main{
  display:flex!important;flex-direction:row!important;align-items:center!important;
  gap:13px!important;min-width:0!important;
}
#pageContent .catalog-management-page .hidden-heading-main>div{
  display:flex!important;flex-direction:column!important;gap:3px!important;min-width:0!important;
}
#pageContent .catalog-management-page .hidden-heading-icon{
  flex:0 0 44px!important;width:44px!important;height:44px!important;min-width:44px!important;
  border-radius:13px!important;background:#ffedf1!important;color:#e91936!important;
}
#pageContent .catalog-management-page .hidden-heading-main strong{
  font-size:19px!important;line-height:1.3!important;color:#11243e!important;
}
#pageContent .catalog-management-page .hidden-count-badge{
  flex:0 0 auto!important;font-size:12px!important;color:#cf1633!important;
  background:#fff4f5!important;border:1px solid #fbdce2!important;
  padding:8px 11px!important;
}
#pageContent .catalog-management-page .hidden-vip-subtitle {
  margin:12px 0!important;padding:10px 12px!important;
  border:1px solid #f6e3e7!important;background:#fffafb!important;
  font-size:12px!important;color:#526982!important;
}
#pageContent .catalog-management-page .hidden-category-bulkbar{
  padding:11px 12px!important;margin:0!important;background:#fff!important;
  border:1px solid #e5ebf2!important;border-radius:11px!important;
}
#pageContent .catalog-management-page .hidden-category-bulkbar .btn,
#pageContent .catalog-management-page .hidden-category-bulkbar label{
  font-size:12px!important;font-weight:750!important;
}
#pageContent .catalog-management-page .hidden-category-list.hidden-category-grid-3{
  margin-top:12px!important;gap:13px!important;
}
#pageContent .catalog-management-page .hidden-empty-v161{
  width:100%;min-height:83px;display:flex;align-items:center;gap:13px;
  padding:15px 16px;background:#f9fbfd;border:1px dashed #dbe4ef;
  border-radius:13px;
}
#pageContent .catalog-management-page .hidden-empty-icon-v161{
  flex:0 0 40px;display:grid;place-items:center;width:40px;height:40px;
  border-radius:12px;background:#edf8f2;color:#08905b;
}
#pageContent .catalog-management-page .hidden-empty-icon-v161 .icon{width:20px;height:20px;}
#pageContent .catalog-management-page .hidden-empty-v161>div{flex:1;min-width:0;}
#pageContent .catalog-management-page .hidden-empty-v161 strong{
  font-size:14px!important;color:#18304b!important;font-weight:850!important;
}
#pageContent .catalog-management-page .hidden-empty-v161 p{
  margin:5px 0 0;font-size:12px!important;line-height:1.5;color:#536984!important;
}
#pageContent .catalog-management-page .hidden-empty-ok-v161{
  flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;
  color:#0b8658;font-size:12px;font-weight:850;
}
#pageContent .catalog-management-page .hidden-category-tile{border-radius:15px!important;}
#pageContent .catalog-management-page .hidden-category-copy strong,
#pageContent .catalog-management-page .hidden-category-copy small {opacity:1!important;text-shadow:none!important;}
#pageContent .catalog-management-page .hidden-category-copy strong{font-size:15px!important;color:#11243e!important;}
/* More humane spacing on tablets and phones; no artificial text fading. */
@media(max-width:1160px){
  #pageContent .catalog-management-page .catalog-list-toolbar{grid-template-columns:minmax(0,1fr)!important;}
  #pageContent .catalog-management-page .catalog-list-toolbar-right{width:100%!important;}
  #pageContent .catalog-management-page .catalog-list-toolbar-right select{flex:1 1 180px!important;}
}
@media(max-width:900px){
  #pageContent .catalog-management-page .category-level-summary{padding:17px 18px!important;flex-direction:row!important;}
  #pageContent .catalog-management-page .category-vip-banner-count{flex-basis:206px!important;padding:13px!important;}
  #pageContent .catalog-management-page .category-vip-banner-copy strong{font-size:20px!important;}
  #pageContent .catalog-management-page .category-banner-points-v161{gap:6px 12px;}
  #pageContent .catalog-management-page .hidden-category-list.hidden-category-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:680px){
  #pageContent .catalog-management-page {gap:12px!important;}
  #pageContent .catalog-management-page .category-vip-metrics{gap:9px!important;}
  #pageContent .catalog-management-page .category-vip-metric{min-height:133px!important;padding:13px!important;}
  #pageContent .catalog-management-page .category-vip-metric small{font-size:11px!important;}
  #pageContent .catalog-management-page .category-vip-metric em{font-size:11px!important;}
  #pageContent .catalog-management-page .category-vip-metric strong{font-size:27px!important;}
  #pageContent .catalog-management-page .metric-bars{display:none!important;}
  #pageContent .catalog-management-page .category-level-summary {
    display:grid!important;grid-template-columns:50px minmax(0,1fr)!important;
    gap:10px!important;padding:16px!important;align-items:start!important;
  }
  #pageContent .catalog-management-page .category-vip-banner-icon{
    grid-column:1;grid-row:1;width:50px!important;height:50px!important;min-width:50px!important;
    border-radius:14px!important;
  }
  #pageContent .catalog-management-page .category-vip-banner-icon .icon{width:27px!important;height:27px!important;}
  #pageContent .catalog-management-page .category-vip-banner-copy{grid-column:2;grid-row:1;}
  #pageContent .catalog-management-page .category-vip-banner-copy strong{font-size:19px!important;}
  #pageContent .catalog-management-page .category-vip-banner-copy p{font-size:12px!important;}
  #pageContent .catalog-management-page .category-vip-banner-count{
    grid-column:1/-1;display:grid!important;grid-template-columns:1fr auto!important;
    align-items:center!important;gap:4px 10px!important;
    margin-top:2px!important;padding:12px!important;
  }
  #pageContent .catalog-management-page .category-count-label-v161{grid-column:1;grid-row:1;}
  #pageContent .catalog-management-page .category-vip-banner-count strong{grid-column:2;grid-row:1/3;margin:0!important;}
  #pageContent .catalog-management-page .category-count-sub-v161{grid-column:1;grid-row:2;}
  #pageContent .catalog-management-page .category-banner-add-v161{grid-column:1/-1;margin-top:4px;}
  #pageContent .catalog-management-page .catalog-toolbar-heading{padding:17px 15px 14px!important;}
  #pageContent .catalog-management-page .catalog-toolbar-heading h3{font-size:19px!important;}
  #pageContent .catalog-management-page .catalog-header-count-v161{font-size:11px!important;}
  #pageContent .catalog-management-page .catalog-list-toolbar{padding:12px 14px!important;gap:9px!important;}
  #pageContent .catalog-management-page .catalog-list-toolbar-right select,
  #pageContent .catalog-management-page .catalog-list-toolbar-right .btn{flex:1 1 130px!important;min-width:0!important;}
  #pageContent .catalog-management-page .category-empty-v161{margin:0 12px 12px!important;padding:17px!important;gap:12px;}
  #pageContent .catalog-management-page .category-empty-icon-v161{flex-basis:44px;width:44px;height:44px;}
  #pageContent .catalog-management-page .category-empty-copy-v161{min-width:0;flex-basis:180px;}
  #pageContent .catalog-management-page .category-empty-copy-v161 h4{font-size:15px!important;}
  #pageContent .catalog-management-page .category-empty-action-v161{width:100%;}
  #pageContent .catalog-management-page .hidden-category-section{padding:16px 14px!important;}
  #pageContent .catalog-management-page .hidden-heading-main{align-items:flex-start!important;}
  #pageContent .catalog-management-page .hidden-heading-main strong{font-size:16px!important;}
  #pageContent .catalog-management-page .hidden-count-badge{font-size:11px!important;}
  #pageContent .catalog-management-page .hidden-category-list.hidden-category-grid-3{grid-template-columns:minmax(0,1fr)!important;}
  #pageContent .catalog-management-page .hidden-empty-v161{flex-wrap:wrap;}
  #pageContent .catalog-management-page .hidden-empty-ok-v161{margin-left:53px;}
  #pageContent .catalog-management-page .category-browser-top{padding:10px 15px 0!important;flex-wrap:wrap!important;}
}

/* V16.1 final visual QA fixes: full-width hidden empty state + single-line desktop tools. */
#pageContent .catalog-management-page .hidden-category-list.hidden-category-grid-3 > .hidden-empty-v161{
  grid-column:1 / -1!important;
  width:100%!important;
  max-width:none!important;
  justify-content:flex-start;
}
#pageContent .catalog-management-page .hidden-category-heading > .hidden-count-badge{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  flex-direction:row!important;
  margin-left:auto!important;
  white-space:nowrap;
}
@media(min-width:1161px){
 #pageContent .catalog-management-page .catalog-list-toolbar-right{
   flex-wrap:nowrap!important;width:auto!important;min-width:max-content!important;
 }
 #pageContent .catalog-management-page .catalog-list-toolbar-right select{
   width:190px!important;max-width:210px!important;min-width:155px!important;
 }
 #pageContent .catalog-management-page .catalog-list-toolbar-right .btn{
   flex:0 0 auto!important;white-space:nowrap!important;
 }
}
@media(min-width:681px){
 #pageContent .catalog-management-page .hidden-empty-v161{gap:15px;}
 #pageContent .catalog-management-page .hidden-empty-v161>div{flex:1 1 auto;}
}


/* ==== theme-settings-v162.css ==== */
/* V16.2 - Screenshots-inspired settings tabs + clear white/red category multiselect.
   Visual-only changes except DOM grouping of existing settings fields in app.js. */
#pageContent .settings-page-pro{
  --settings-ink:#15243b;--settings-muted:#5d708b;--settings-line:#e3e9f2;--settings-red:#e52236;
  max-width:100%;min-width:0;overflow:visible;contain:none!important;
  color:var(--settings-ink);
}
#pageContent .settings-page-pro .page-heading{margin-bottom:12px!important;}
#pageContent .settings-page-pro .settings-hero-v162{
  background:#fff!important;background-image:none!important;
  border:1px solid #e5ebf3!important;box-shadow:0 4px 15px rgba(30,52,77,.035)!important;
  border-radius:16px!important;padding:19px 23px!important;margin:0 0 13px!important;
  gap:14px;min-height:112px;
}
#pageContent .settings-page-pro .settings-hero-v162::after{display:none!important;content:none!important;}
#pageContent .settings-page-pro .settings-kicker{
  color:var(--settings-red)!important;letter-spacing:.035em!important;font-size:11px!important;
  font-weight:900!important;display:inline-flex;align-items:center;gap:7px;margin-bottom:8px;
}
#pageContent .settings-page-pro .settings-kicker .icon{width:17px;height:17px;}
#pageContent .settings-page-pro .settings-hero-v162 h2{color:#13223e!important;font-size:23px!important;font-weight:900!important;letter-spacing:-.025em!important;margin:0 0 5px!important;}
#pageContent .settings-page-pro .settings-hero-v162 p{color:#546984!important;font-size:13px!important;line-height:1.55!important;margin:0!important;}
#pageContent .settings-page-pro .settings-hero-v162 .settings-hero-badges span{
  color:#327458!important;border:1px solid #cceede!important;background:#f1fff7!important;
  border-radius:10px!important;font-size:11px!important;min-height:35px;gap:6px;padding:6px 12px;
}
#pageContent .settings-page-pro .settings-hero-badges .icon{width:14px;height:14px;}
#pageContent .settings-page-pro .settings-tabbar-v162{
  display:flex;align-items:stretch;gap:3px;max-width:100%;overflow-x:auto;overflow-y:hidden;
  scrollbar-width:thin;scrollbar-color:#ebc3c8 transparent;
  background:#fff;border:1px solid #e5ebf3;border-radius:14px;padding:5px 9px 0;
  margin:0 0 16px;box-shadow:0 3px 12px rgba(19,34,62,.025);
}
#pageContent .settings-page-pro .settings-tab-v162{
  flex:1 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:52px;padding:10px 14px;margin:0;border:0;border-bottom:3px solid transparent;
  background:transparent!important;color:#596c85!important;font-family:inherit;font-size:12px!important;
  font-weight:800!important;line-height:1.3;white-space:nowrap;cursor:pointer;
  transition:color .16s,border-color .16s,background-color .16s;
}
#pageContent .settings-page-pro .settings-tab-v162 .icon{width:17px;height:17px;flex:0 0 auto;}
#pageContent .settings-page-pro .settings-tab-v162:hover{color:#cf1a2f!important;background:#fff8f8!important;}
#pageContent .settings-page-pro .settings-tab-v162.is-active{
  color:#d8172c!important;border-bottom-color:#e52236!important;background:#fff8f9!important;
}
#pageContent .settings-page-pro .settings-tab-v162:focus-visible{outline:2px solid #f56576;outline-offset:-3px;border-radius:6px;}
#pageContent .settings-page-pro .settings-grid-pro{
  display:block!important;width:100%;min-width:0;max-width:100%;
}
#pageContent .settings-page-pro .settings-pane-v162{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px;min-width:0;}
#pageContent .settings-page-pro .settings-pane-v162[hidden]{display:none!important;}
#pageContent .settings-page-pro .settings-pane-v162>.settings-section{
  min-width:0;width:100%;margin:0!important;padding:23px!important;
  background:#fff!important;background-image:none!important;
  border:1px solid #e3e9f1!important;border-radius:16px!important;
  box-shadow:0 5px 18px rgba(25,45,73,.045)!important;
}
/* A full-width card for forms that have many related fields. */
#pageContent .settings-page-pro .settings-pane-v162>.settings-section:first-child:last-child{grid-column:1/-1;}
#pageContent .settings-page-pro .settings-pane-v162>.settings-section:first-child:not(:last-child){grid-column:1/-1;}
#pageContent .settings-page-pro .settings-pane-v162>.settings-section:hover{transform:none!important;box-shadow:0 5px 18px rgba(25,45,73,.045)!important;}
#pageContent .settings-page-pro .settings-section .section-heading{margin-bottom:17px!important;gap:11px!important;align-items:center!important;}
#pageContent .settings-page-pro .settings-section .section-heading>span{
  background:#fff1f3!important;border:1px solid #ffd9e0!important;
  border-radius:11px!important;color:#e52236!important;display:grid;place-items:center;width:39px;height:39px;flex:0 0 39px;
}
#pageContent .settings-page-pro .settings-section .section-heading h3{
  color:#14243d!important;font-size:16px!important;font-weight:900!important;line-height:1.35;
}
#pageContent .settings-page-pro .settings-section .section-heading p{
  color:#60718b!important;font-size:12px!important;line-height:1.55;
}
#pageContent .settings-page-pro .settings-section :is(.form-group label,.field-label,.log-group-copy strong,.settings-subhead strong){
  color:#283b56!important;font-size:12px!important;font-weight:800!important;
}
#pageContent .settings-page-pro .settings-section :is(input:not([type='checkbox']),select,textarea){
  background:#fff!important;color:#1d2e48!important;border:1px solid #dbe3ee!important;
  font-size:13px!important;min-height:44px;border-radius:9px!important;box-shadow:none!important;opacity:1!important;
}
#pageContent .settings-page-pro .settings-section :is(input,select,textarea):focus{
  outline:none!important;border-color:#ee5868!important;box-shadow:0 0 0 3px rgba(230,34,54,.11)!important;
}
#pageContent .settings-page-pro .settings-section :is(input,textarea)::placeholder{color:#8291a5!important;opacity:1;}
#pageContent .settings-page-pro .settings-section :is(.form-group small,.settings-subhead small,.log-group-copy small,.setting-switch-card small){
  font-size:11.5px!important;color:#657790!important;line-height:1.55!important;opacity:1!important;
}
#pageContent .settings-page-pro .settings-subhead>span{color:#d9233c!important;background:#fff3f5!important;border-color:#f6dce1!important;}
#pageContent .settings-page-pro .log-group-card{
  background:#f9fafc!important;background-image:none!important;border:1px solid #e3e9f1!important;
  border-radius:12px!important;box-shadow:none!important;
}
#pageContent .settings-page-pro .log-group-copy input{width:100%;}
#pageContent .settings-page-pro .log-group-copy>strong{color:#243550!important;}
#pageContent .settings-page-pro .setting-switch-card,
#pageContent .settings-page-pro .settings-feature-card .setting-switch-card{
  background:#fafbfd!important;background-image:none!important;
  border:1px solid #e4eaf2!important;border-radius:12px!important;
  padding:15px!important;min-width:0;
}
#pageContent .settings-page-pro .setting-switch-card strong{color:#233550!important;font-size:12px!important;letter-spacing:0!important;}
#pageContent .settings-page-pro .setting-state-hint{color:#47705c!important;font-size:11px!important;}
#pageContent .settings-page-pro .log-terminal{border-radius:12px!important;max-width:100%;overflow-x:auto;}
#pageContent .settings-page-pro .media-upload-card{background:#f9fbfe!important;border-color:#e2e8f1!important;}
#pageContent .settings-page-pro .settings-grid-pro>.settings-actions{
  position:sticky!important;bottom:10px;z-index:12;display:flex;justify-content:flex-end;gap:9px;
  margin-top:15px;padding:12px 15px!important;border:1px solid #e2e9f2!important;
  border-radius:13px!important;background:#fff!important;backdrop-filter:none!important;
  box-shadow:0 7px 24px rgba(29,50,76,.09)!important;
}
#pageContent .settings-page-pro .settings-grid-pro>.settings-actions .btn{min-height:43px!important;font-size:12px!important;font-weight:800!important;}
#pageContent .settings-page-pro .settings-grid-pro>.settings-actions .btn-primary{background:#e52236!important;color:#fff!important;}
#pageContent .settings-page-pro .settings-pane-v162 .form-grid{gap:15px!important;}
#pageContent .settings-page-pro .settings-pane-v162 .table-responsive{max-width:100%;}

/* Explicit high contrast check-all control (never dark or blurry). */
#pageContent .catalog-management-page .hidden-category-bulkbar{
  min-height:76px!important;background:#fff!important;background-image:none!important;
  border:1px solid #e2e8f1!important;border-radius:13px!important;
  box-shadow:none!important;padding:12px!important;gap:10px!important;
}
#pageContent .catalog-management-page .hidden-select-all{
  display:flex!important;align-items:center!important;gap:10px!important;flex:0 1 auto;
  min-width:0;min-height:49px;padding:8px 12px!important;margin:0;
  background:#fff!important;border:1.5px solid #e0e7f0!important;border-radius:11px!important;
  color:#22344e!important;box-shadow:0 2px 7px rgba(21,37,64,.025)!important;
  cursor:pointer!important;transition:border-color .15s,background .15s,box-shadow .15s;
}
#pageContent .catalog-management-page .hidden-select-all:hover,
#pageContent .catalog-management-page .hidden-select-all:has(input:checked){
  border-color:#f05c6e!important;background:#fff7f8!important;box-shadow:0 0 0 3px rgba(229,34,54,.06)!important;
}
#pageContent .catalog-management-page .hidden-select-all input[type=checkbox]{
  width:22px!important;height:22px!important;min-width:22px!important;
  border:2px solid #acbacd!important;background:#fff!important;
  border-radius:7px!important;box-shadow:none!important;opacity:1!important;appearance:none!important;
  position:static!important;display:block!important;margin:0!important;
  cursor:pointer!important;flex:0 0 22px!important;
}
#pageContent .catalog-management-page .hidden-select-all input[type=checkbox]:checked{
  background:#e52236 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='m5 12 4 4 10-10'/%3E%3C/svg%3E") center/16px 16px no-repeat!important;
  border-color:#e52236!important;
}
#pageContent .catalog-management-page .hidden-select-all input[type=checkbox]:focus-visible{outline:3px solid #f5a3af!important;outline-offset:2px!important;}
#pageContent .catalog-management-page .hidden-select-all-symbol{
  color:#e52236!important;background:#fff1f3!important;display:grid;place-items:center;
  width:30px;height:30px;min-width:30px;border-radius:9px;opacity:1;
}
#pageContent .catalog-management-page .hidden-select-all-symbol .icon{width:17px;height:17px;}
#pageContent .catalog-management-page .hidden-select-all-copy{display:flex;flex-direction:column;gap:3px;min-width:0;line-height:1.25;}
#pageContent .catalog-management-page .hidden-select-all-copy strong{font-size:12.5px!important;font-weight:900!important;color:#1d2f4a!important;}
#pageContent .catalog-management-page .hidden-select-all-copy small{font-size:10.5px!important;color:#667992!important;opacity:1;}
#pageContent .catalog-management-page .hidden-select-all-counter{
  color:#ce2038!important;background:#fff2f4!important;border-radius:8px;
  font-size:10.5px;font-weight:850;padding:6px 8px;white-space:nowrap;
}
#pageContent .catalog-management-page .hidden-bulk-actions .btn{
  border-radius:10px!important;min-height:44px!important;font-size:12px!important;font-weight:800!important;
}
#pageContent .catalog-management-page .hidden-bulk-actions .btn:disabled{opacity:.62!important;filter:none!important;cursor:not-allowed;}

@media(max-width:1100px){
  #pageContent .settings-page-pro .settings-tab-v162{font-size:11.5px!important;padding-inline:12px;}
  #pageContent .settings-page-pro .settings-pane-v162{grid-template-columns:minmax(0,1fr);}
  #pageContent .settings-page-pro .settings-pane-v162>.settings-section{grid-column:1/-1;}
}
@media(max-width:650px){
  #pageContent .settings-page-pro .settings-hero-v162{padding:16px!important;min-height:0;}
  #pageContent .settings-page-pro .settings-hero-v162 h2{font-size:19px!important;}
  #pageContent .settings-page-pro .settings-hero-v162 p{font-size:12px!important;}
  #pageContent .settings-page-pro .settings-hero-badges{display:none!important;}
  #pageContent .settings-page-pro .settings-tabbar-v162{padding:3px 5px 0;margin-bottom:12px;border-radius:11px;}
  #pageContent .settings-page-pro .settings-tab-v162{flex:0 0 auto;min-height:47px;font-size:11.5px!important;gap:6px;padding-inline:12px;}
  #pageContent .settings-page-pro .settings-pane-v162>.settings-section{padding:16px!important;border-radius:13px!important;}
  #pageContent .settings-page-pro .settings-section .section-heading h3{font-size:15px!important;}
  #pageContent .settings-page-pro .settings-section .section-heading p{font-size:11px!important;}
  #pageContent .settings-page-pro .log-group-grid{grid-template-columns:minmax(0,1fr)!important;}
  #pageContent .settings-page-pro .settings-grid-pro>.settings-actions{bottom:6px;display:grid;grid-template-columns:1fr 1fr;padding:9px!important;}
  #pageContent .settings-page-pro .settings-grid-pro>.settings-actions .btn{min-width:0;padding:8px!important;font-size:11px!important;}
  #pageContent .catalog-management-page .hidden-category-bulkbar{align-items:stretch!important;}
  #pageContent .catalog-management-page .hidden-select-all{width:100%!important;flex:1 1 100%;}
  #pageContent .catalog-management-page .hidden-bulk-actions{width:100%;}
  #pageContent .catalog-management-page .hidden-bulk-actions .btn{flex:1 1 auto;}
}
@media(prefers-reduced-motion:reduce){
  #pageContent .settings-page-pro .settings-tab-v162,
  #pageContent .catalog-management-page .hidden-select-all{transition:none!important;}
}


/* ==== theme-category-v164.css ==== */
/* V16.4 - Clean white/red hidden-category management. All controls remain functional. */
#pageContent .catalog-management-page .hidden-category-section {
  background:#fff!important;background-image:none!important;
  border:1px solid #e2e8f0!important;border-radius:22px!important;
  padding:22px!important;box-shadow:0 12px 30px rgba(19,39,68,.045)!important;
}
#pageContent .catalog-management-page .hidden-category-heading {margin-bottom:0!important;}
#pageContent .catalog-management-page .hidden-heading-main strong {color:#102139!important;font-size:19px!important;font-weight:900!important;}
#pageContent .catalog-management-page .hidden-heading-main small {color:#546982!important;font-size:12.5px!important;}
#pageContent .catalog-management-page .hidden-vip-subtitle {
  margin:16px 0!important;background:#fff8f9!important;border:1px solid #f8e2e7!important;
  padding:13px 15px!important;border-radius:12px!important;color:#526984!important;font-size:12px!important;
}
#pageContent .catalog-management-page .hidden-category-bulkbar {
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:16px!important;padding:15px!important;margin:0 0 15px!important;
  background:#fff!important;background-image:none!important;
  border:1px solid #e2e8f0!important;border-radius:17px!important;box-shadow:0 6px 20px rgba(23,39,62,.035)!important;
}
#pageContent .catalog-management-page .hidden-select-all {
  display:flex!important;align-items:center!important;gap:12px!important;min-height:70px!important;
  padding:12px 16px!important;background:#fff!important;border:1.5px solid #e2e8f0!important;
  border-radius:14px!important;box-shadow:none!important;flex:0 1 auto!important;cursor:pointer!important;
}
#pageContent .catalog-management-page .hidden-select-all:hover,
#pageContent .catalog-management-page .hidden-select-all:has(input:checked){
  background:#fff7f8!important;border-color:#f08e9b!important;box-shadow:0 0 0 3px rgba(225,29,55,.06)!important;
}
#pageContent .catalog-management-page .hidden-select-all input[type=checkbox]{
  width:25px!important;height:25px!important;min-width:25px!important;flex:0 0 25px!important;
  border:2px solid #a5b3c6!important;border-radius:8px!important;
}
#pageContent .catalog-management-page .hidden-select-all input[type=checkbox]:checked{
  border-color:#e52236!important;background-color:#e52236!important;
}
#pageContent .catalog-management-page .hidden-select-all-symbol{
  width:36px!important;height:36px!important;min-width:36px!important;border-radius:11px!important;
  background:#ffedf1!important;color:#dc1831!important;
}
#pageContent .catalog-management-page .hidden-select-all-copy strong {
  font-size:14px!important;font-weight:900!important;color:#142640!important;line-height:1.3!important;
}
#pageContent .catalog-management-page .hidden-select-all-copy small {
  font-size:11.5px!important;color:#596e88!important;line-height:1.5!important;
}
#pageContent .catalog-management-page .hidden-select-all-counter {
  margin-left:auto!important;padding:8px 12px!important;border-radius:999px!important;
  background:#fff1f3!important;color:#c51d34!important;border:1px solid #ffd9df!important;font-size:11px!important;
}
#pageContent .catalog-management-page .hidden-bulk-actions {
  display:flex!important;gap:10px!important;flex-wrap:wrap!important;justify-content:flex-end!important;
}
#pageContent .catalog-management-page .hidden-bulk-actions .btn {
  min-height:44px!important;padding:8px 15px!important;border-radius:11px!important;font-size:12.5px!important;font-weight:800!important;
}
#pageContent .catalog-management-page .hidden-bulk-actions .btn:disabled {opacity:.7!important;filter:none!important;}
#pageContent .catalog-management-page .hidden-category-list.hidden-category-grid-3 {
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:15px!important;margin-top:0!important;align-items:stretch!important;
}
#pageContent .catalog-management-page .hidden-category-tile {
  background:#fff!important;background-image:none!important;border:1px solid #e1e8f0!important;
  border-radius:18px!important;box-shadow:0 8px 22px rgba(25,43,69,.055)!important;
  min-height:230px!important;padding:18px!important;opacity:1!important;
}
#pageContent .catalog-management-page .hidden-category-tile:hover {
  background:#fff!important;border-color:#f298a6!important;box-shadow:0 13px 30px rgba(214,38,62,.085)!important;
}
#pageContent .catalog-management-page .hidden-category-tile:has(.hidden-category-select-wrap input:checked){
  background:#fff9fa!important;border-color:#e5556d!important;box-shadow:0 0 0 3px rgba(232,48,71,.08)!important;
}
#pageContent .catalog-management-page .hidden-category-select-wrap{
  display:grid!important;place-items:center!important;top:14px!important;left:14px!important;
  width:40px!important;height:40px!important;border-radius:13px!important;background:#fff!important;
  border:1px solid #e0e8f2!important;box-shadow:0 5px 14px rgba(24,43,70,.085)!important;
}
#pageContent .catalog-management-page .hidden-category-status-pill{
  color:#96611c!important;background:#fff5e8!important;border:1px solid #f4ddbb!important;
  padding:7px 10px!important;font-size:10.5px!important;font-weight:900!important;border-radius:999px!important;
}
#pageContent .catalog-management-page .hidden-category-summary {
  display:flex!important;align-items:flex-start!important;gap:15px!important;width:100%!important;
  min-height:105px!important;padding:6px 0 12px!important;background:none!important;border:0!important;
}
#pageContent .catalog-management-page .hidden-category-avatar {
  flex:0 0 60px!important;width:60px!important;height:60px!important;border-radius:16px!important;
  background:#fff!important;border:1px solid #e8edf3!important;
}
#pageContent .catalog-management-page .hidden-category-copy {min-width:0!important;}
#pageContent .catalog-management-page .hidden-category-level{
  color:#cd1d35!important;background:#fff0f2!important;border:1px solid #ffd8df!important;border-radius:7px!important;
  padding:5px 8px!important;font-size:10px!important;font-weight:900!important;
}
#pageContent .catalog-management-page .hidden-category-copy strong {
  font-size:18px!important;line-height:1.3!important;color:#14253e!important;font-weight:900!important;
  white-space:normal!important;opacity:1!important;text-shadow:none!important;overflow-wrap:anywhere!important;
}
#pageContent .catalog-management-page .hidden-category-path {
  color:#60738c!important;font-size:12px!important;opacity:1!important;text-shadow:none!important;
}
#pageContent .catalog-management-page .hidden-category-stats {
  color:#526780!important;font-weight:800!important;font-size:12px!important;
}
#pageContent .catalog-management-page .hidden-category-chevron{
  display:grid!important;place-items:center!important;background:#fff1f3!important;color:#e1273f!important;
  border:1px solid #f9d8df!important;border-radius:11px!important;box-shadow:none!important;
}
#pageContent .catalog-management-page .hidden-category-quick-actions {
  gap:10px!important;padding-top:14px!important;border-top:1px solid #edf1f5!important;
}
#pageContent .catalog-management-page .hidden-category-show-btn{
  min-height:44px!important;background:#eafaf1!important;color:#087d4b!important;
  border:1px solid #abe5c2!important;border-radius:11px!important;font-size:12.5px!important;
}
#pageContent .catalog-management-page .hidden-category-remove-btn{
  width:44px!important;min-width:44px!important;height:44px!important;
  border-radius:11px!important;background:#fff2f4!important;color:#d71b36!important;border:1px solid #ffced8!important;
}
#pageContent .catalog-management-page .hidden-category-tools{
  background:#f9fbfd!important;border:1px solid #e4eaf3!important;border-radius:12px!important;
}
@media(max-width:1100px){
  #pageContent .catalog-management-page .hidden-category-list.hidden-category-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  #pageContent .catalog-management-page .hidden-category-bulkbar{flex-wrap:wrap!important;}
  #pageContent .catalog-management-page .hidden-bulk-actions{justify-content:flex-start!important;}
}
@media(max-width:650px){
  #pageContent .catalog-management-page .hidden-category-section{padding:14px!important;border-radius:16px!important;}
  #pageContent .catalog-management-page .hidden-category-list.hidden-category-grid-3{grid-template-columns:minmax(0,1fr)!important;}
  #pageContent .catalog-management-page .hidden-category-bulkbar{padding:10px!important;gap:10px!important;}
  #pageContent .catalog-management-page .hidden-select-all{flex:1 1 100%!important;width:100%!important;gap:9px!important;padding:10px!important;}
  #pageContent .catalog-management-page .hidden-select-all-symbol{width:30px!important;height:30px!important;min-width:30px!important;}
  #pageContent .catalog-management-page .hidden-select-all-copy strong{font-size:12.5px!important;}
  #pageContent .catalog-management-page .hidden-select-all-counter{margin-left:auto!important;}
  #pageContent .catalog-management-page .hidden-bulk-actions{width:100%!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  #pageContent .catalog-management-page .hidden-bulk-actions .btn{white-space:normal!important;min-height:46px!important;padding:8px!important;font-size:11.5px!important;}
  #pageContent .catalog-management-page .hidden-category-tile{padding:15px!important;}
  #pageContent .catalog-management-page .hidden-category-copy strong{font-size:16px!important;}
  #pageContent .catalog-management-page .hidden-category-avatar{width:52px!important;height:52px!important;flex-basis:52px!important;}
}
@media(prefers-reduced-motion:reduce){
  #pageContent .catalog-management-page .hidden-select-all,#pageContent .catalog-management-page .hidden-category-tile{transition:none!important;}
}
/* A single hidden category should not look stranded at the far-left of a wide empty canvas. */
@media(min-width:901px){
  #pageContent .catalog-management-page .hidden-category-list.hidden-category-grid-3:has(> .hidden-category-tile:only-child){
    grid-template-columns:minmax(0, 700px)!important;
    justify-content:center!important;
  }
}
@media(max-width:650px){
  /* Reserve a visible row for the status chip above the category name. */
  #pageContent .catalog-management-page .hidden-category-tile .hidden-category-summary {
    margin-top:27px!important;
  }
  #pageContent .catalog-management-page .hidden-category-tile .hidden-category-status-pill{
    top:14px!important;right:54px!important;
  }
}


/* ==== theme-dashboard-v165.css ==== */
/* VNDEVCODE V16.5 — Professional white / red dashboard and global navigation.
   Visual layer only; metrics, actions and API calls remain backed by app.js. */
:root { --v165-ink:#14213e; --v165-sub:#677d9e; --v165-border:#e4eaf3; --v165-red:#ed2539; }
.main-shell { background:radial-gradient(ellipse at 76% 0,rgba(252,226,229,.58),transparent 36%), #f4f7fc!important; }
.topbar {
  min-height:70px!important; padding:10px clamp(15px,2.2vw,34px)!important;
  background:#fff!important;backdrop-filter:none!important;
  border-bottom:1px solid #e5ebf3!important;box-shadow:0 3px 20px rgba(24,44,78,.035)!important;
}
.topbar-left {gap:13px!important;min-width:0;}
.topbar-left .mobile-menu {border:1px solid #e2e8f1!important;background:#fff!important;}
.topbar h1 {color:#112444!important;font-size:19px!important;font-weight:850!important;letter-spacing:-.04em!important;margin:0 0 5px!important;}
.topbar .breadcrumb {color:#8797af!important;font-size:11px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.topbar .breadcrumb b {color:#e9263c!important;font-weight:800;}
.topbar-actions {gap:10px!important;min-width:0;}
.topbar-actions :is(.icon-btn,.refresh-btn,.topbar-account) {transition:border-color .16s,background-color .16s,box-shadow .16s!important;}
.topbar .icon-btn,.topbar-actions .icon-btn,.topbar .refresh-btn {
  min-height:42px!important;border:1px solid #e0e8f2!important;border-radius:12px!important;
  background:#fff!important;box-shadow:0 3px 9px rgba(30,54,92,.025)!important;color:#627999!important;
}
.topbar .refresh-btn {height:42px!important;padding:0 15px!important;font-weight:750!important;color:#59708f!important;white-space:nowrap;}
.topbar .refresh-btn:hover,.topbar .icon-btn:hover {border-color:#f1b9c2!important;color:#e6283e!important;background:#fff5f6!important;}
.topbar-account {gap:11px!important;padding-left:15px!important;border-left:1px solid #e6ebf3!important;}
.topbar-account-copy strong {font-size:13px!important;font-weight:850!important;color:#10223f!important;}
.topbar-account-copy small {font-size:11px!important;color:#7d8da7!important;}
.topbar-account-avatar {width:39px!important;height:39px!important;border-radius:11px!important;}
/* Global quick-search with command palette: desktop and mobile. */
.topbar .global-search {
  position:relative;display:flex!important;align-items:center!important;flex:0 1 290px;
  width:min(300px,28vw)!important;height:44px!important;min-width:180px;
  padding:0 8px!important;gap:5px!important;
  border:1px solid #dfe7f2!important;border-radius:13px!important;
  background:#f9fbfe!important;color:#7890ac!important;box-shadow:none!important;
  overflow:visible!important;
}
.topbar .global-search:focus-within {background:#fff!important;border-color:#e86c7d!important;box-shadow:0 0 0 4px rgba(237,37,57,.075)!important;}
.topbar .global-search-toggle {display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;padding:0;border:0;border-radius:8px;background:transparent;color:#637b9d;cursor:pointer;}
.topbar .global-search-toggle:hover {background:#ffeff2;color:#e6283e;}
.topbar .global-search-toggle .icon{width:18px;height:18px;}
.topbar .global-search input[type=search] {display:block!important;flex:1;min-width:0!important;width:100%!important;height:40px!important;padding:0 3px!important;border:none!important;border-radius:0!important;box-shadow:none!important;outline:0!important;background:transparent!important;color:#203956!important;font-size:12.5px!important;font-weight:650!important;}
.topbar .global-search input::placeholder{color:#91a2b9!important;font-size:12.5px!important;opacity:1;}
.topbar .global-search-shortcut {display:inline-flex;align-items:center;justify-content:center;border:1px solid #e6edf7!important;background:#fff!important;color:#8799b1!important;font-size:10px!important;padding:4px 6px!important;border-radius:6px!important;}
.topbar .global-search-suggestions{
  position:absolute;top:calc(100% + 10px);left:0;right:0;z-index:120;
  min-width:min(345px,calc(100vw - 24px));padding:9px;
  border:1px solid #e5ebf4;border-radius:15px;background:#fff;
  box-shadow:0 23px 60px rgba(20,38,68,.18);
  max-height:min(460px,65vh);overflow-y:auto;
}
.topbar .global-search-suggestions[hidden] {display:none!important;}
.topbar .global-suggest-title {display:flex;justify-content:space-between;align-items:center;padding:9px 11px 8px;color:#8a9bb0;font-size:10px;font-weight:900;letter-spacing:.08em;}
.topbar .global-suggest-title .icon {width:14px;height:14px;}
.topbar .global-suggest-item,.topbar .global-suggest-filter{
  display:flex;align-items:center;gap:10px;width:100%;min-height:44px;margin:1px 0;padding:7px 10px;
  border:0;border-radius:10px;background:#fff;color:#223b58;text-align:left;cursor:pointer;font-size:12.5px;font-weight:750;
}
.topbar .global-suggest-item:hover,.topbar .global-suggest-item:focus-visible {background:#fff2f3;color:#df2039;}
.topbar .global-suggest-icon {display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:9px;background:#f4f7fb;color:#7086a3;}
.topbar .global-suggest-item:hover .global-suggest-icon {background:#ffebef;color:#e6243d;}
.topbar .global-suggest-icon .icon {width:17px;height:17px;}
.topbar .global-suggest-item>.icon:last-child {margin-left:auto;color:#a5b3c7;width:14px;height:14px;}
.topbar .global-suggest-filter {margin-top:8px;border:1px solid #ffd8df;background:#fff6f7;color:#d61b33;}
.topbar .global-suggest-filter .icon {flex:0 0 15px;width:15px;height:15px;}
.topbar .global-suggest-foot {padding:10px 9px 4px;border-top:1px solid #eef2f7;color:#889bb4;font-size:10.5px;}
.topbar .global-suggest-empty {padding:10px;color:#697b95;font-size:12px;}
/* Sidebar: matching the reference without heavy glows. */
.sidebar {background:#fff!important;border-right:1px solid #e4e9f2!important;}
.sidebar-head {min-height:73px!important;height:73px!important;border-bottom:1px solid #edf1f6!important;}
.nav-label {color:#8093b1!important;font-size:10.5px!important;font-weight:900!important;letter-spacing:.055em!important;}
.navigation .nav-item {border-radius:12px!important;min-height:42px!important;font-size:13px!important;font-weight:650!important;color:#425b7d!important;}
.navigation .nav-item.active {color:#e5233c!important;background:#fff0f2!important;border:1px solid #ffdbdf!important;font-weight:850!important;}
.navigation .nav-item:hover:not(.active){color:#db253b!important;background:#fff8f9!important;}
/* Dashboard layout: faithful to sample with full-size cards + clear financial hierarchy. */
#pageContent .dashboard-v3 {display:grid!important;gap:18px!important;min-width:0!important;}
#pageContent .dashboard-v3>.page-heading {align-items:center!important;margin:4px 0 0!important;gap:18px!important;}
#pageContent .dashboard-v3>.page-heading h2 {font-size:clamp(23px,2vw,30px)!important;line-height:1.2!important;font-weight:900!important;letter-spacing:-.04em!important;color:#0d2140!important;margin:0 0 10px!important;}
#pageContent .dashboard-v3>.page-heading p {font-size:13px!important;line-height:1.5!important;color:#657e9f!important;}
#pageContent .dashboard-v3 .heading-actions {gap:10px!important;align-items:center!important;flex-wrap:wrap!important;}
#pageContent .dashboard-v3 .btn-telegram-broadcast {min-height:44px!important;border-radius:12px!important;padding:0 20px!important;background:linear-gradient(120deg,#ff4b50,#ee142d)!important;border:1px solid #ef2a38!important;font-size:13px!important;font-weight:850!important;box-shadow:0 10px 22px rgba(233,36,56,.16)!important;color:#fff!important;}
#pageContent .dashboard-v3 .date-chip {height:43px!important;padding:0 13px!important;border:1px solid #e4eaf3!important;border-radius:11px!important;color:#587291!important;background:#fff!important;font-size:12px!important;font-weight:750!important;box-shadow:0 3px 12px rgba(26,50,82,.04)!important;}
#pageContent .dashboard-v3 .dashboard-inline-status {display:flex!important;align-items:center!important;flex-wrap:wrap!important;min-height:44px!important;gap:12px 15px!important;padding:10px 16px!important;margin:0!important;background:#fff!important;border:1px solid #e3eaf4!important;border-radius:12px!important;box-shadow:0 4px 13px rgba(26,51,82,.035)!important;color:#68809f!important;font-size:12px!important;}
#pageContent .dashboard-v3 .dashboard-online-indicator i {height:9px!important;width:9px!important;flex:0 0 9px!important;}
#pageContent .dashboard-v3 .dashboard-inline-status strong {color:#1e3151!important;font-weight:850!important;}
#pageContent .dashboard-v3 .dashboard-inline-link {font-size:12px!important;font-weight:800!important;color:#e6243c!important;}
#pageContent .dashboard-v3 .today-stat-grid {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:13px!important;}
#pageContent .dashboard-v3 .today-stat {
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;position:relative;isolation:isolate;
  gap:15px!important;min-height:182px!important;padding:18px 21px!important;overflow:hidden!important;
  border:1px solid #e9edf5!important;border-top:3px solid var(--metric-accent)!important;border-radius:16px!important;
  background:linear-gradient(126deg,#fff 20%,var(--metric-tint) 100%)!important;
  box-shadow:0 8px 20px rgba(20,38,76,.045)!important;
}
#pageContent .dashboard-v3 .today-stat::before {content:"";position:absolute;right:21px;bottom:25px;width:63px;height:61px;opacity:.46;pointer-events:none;z-index:0;background:linear-gradient(to top,var(--metric-accent),var(--metric-tint));clip-path:polygon(0 78%,13% 78%,13% 100%,0 100%,0 78%,22% 58%,35% 58%,35% 100%,22% 100%,22% 58%,43% 75%,56% 75%,56% 100%,43% 100%,43% 75%,66% 20%,79% 20%,79% 100%,66% 100%,66% 20%,88% 40%,100% 40%,100% 100%,88% 100%,88% 40%);}
#pageContent .dashboard-v3 .today-stat::after{content:"";position:absolute;inset:auto 0 0 auto;width:80%;height:66%;background:radial-gradient(circle at 90% 90%,var(--metric-tint),transparent 72%);opacity:.6;z-index:-1;pointer-events:none;}
#pageContent .dashboard-v3 .today-revenue {--metric-accent:#f32236;--metric-tint:#ffe5e8;}
#pageContent .dashboard-v3 .today-deposit {--metric-accent:#1667ff;--metric-tint:#e3edff;}
#pageContent .dashboard-v3 .today-users {--metric-accent:#00b65b;--metric-tint:#dcfae8;}
#pageContent .dashboard-v3 .today-balance {--metric-accent:#f3ad02;--metric-tint:#fff2d1;}
#pageContent .dashboard-v3 .today-icon {height:46px!important;width:46px!important;flex:0 0 46px!important;border-radius:13px!important;color:var(--metric-accent)!important;background:var(--metric-tint)!important;box-shadow:none!important;}
#pageContent .dashboard-v3 .today-icon .icon {height:24px!important;width:24px!important;}
#pageContent .dashboard-v3 .today-stat>div {position:relative;z-index:1;width:100%;min-width:0;}
#pageContent .dashboard-v3 .today-stat small {font-size:12px!important;color:var(--metric-accent)!important;font-weight:900!important;letter-spacing:0!important;}
#pageContent .dashboard-v3 .today-stat strong {display:block!important;max-width:100%;margin:8px 0 7px!important;font-size:clamp(24px,2.1vw,34px)!important;line-height:1!important;font-weight:900!important;letter-spacing:-.045em!important;color:#102542!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#pageContent .dashboard-v3 .today-stat em {font-size:12px!important;color:#6981a1!important;font-style:normal!important;}
#pageContent .dashboard-v3 .dashboard-main-grid-v3 {display:grid!important;grid-template-columns:minmax(0,1.85fr) minmax(290px,1fr)!important;align-items:stretch!important;gap:14px!important;}
#pageContent .dashboard-v3 :is(.dashboard-chart-card,.dashboard-finance-card) {min-width:0!important;border:1px solid #e5eaf2!important;border-radius:16px!important;background:#fff!important;box-shadow:0 6px 22px rgba(18,44,78,.045)!important;}
#pageContent .dashboard-v3 .dashboard-chart-card {overflow:hidden!important;}
#pageContent .dashboard-v3 .dashboard-chart-card .panel-head {display:flex;align-items:flex-start!important;justify-content:space-between!important;gap:14px!important;min-height:95px!important;padding:18px 20px 13px!important;border-bottom:1px solid #e9eef5!important;}
#pageContent .dashboard-v3 .dashboard-chart-card .module-kicker {display:inline-flex;align-items:center;gap:6px;font-size:10.5px!important;color:#7990b0!important;font-weight:900!important;letter-spacing:.07em!important;}
#pageContent .dashboard-v3 .dashboard-chart-card .module-kicker .icon {color:#ef263a!important;width:17px;height:17px;}
#pageContent .dashboard-v3 .dashboard-chart-card h3 {font-size:19px!important;color:#152641!important;margin:9px 0 6px!important;font-weight:900!important;}
#pageContent .dashboard-v3 .dashboard-chart-card .panel-title p {font-size:12px!important;color:#7387a4!important;line-height:1.5!important;}
#pageContent .dashboard-v3 .dashboard-chart-legend {display:flex!important;gap:9px!important;align-items:center!important;margin-top:18px;font-size:11.5px!important;color:#7187a5!important;}
#pageContent .dashboard-v3 .legend-line {background:#f1283c!important;width:23px!important;height:3px!important;}
#pageContent .dashboard-v3 .legend-bar {background:#b6c6e9!important;width:12px!important;height:14px!important;border-radius:4px!important;}
#pageContent .dashboard-v3 .chart-wrap-v3 {padding:15px 20px 15px!important;min-height:280px!important;}
#pageContent .dashboard-v3 .dashboard-money-chart {height:258px!important;max-height:none!important;}
#pageContent .dashboard-v3 .dashboard-deposit-bar {fill:#c7d7f7!important;opacity:.6!important;}
#pageContent .dashboard-v3 .dashboard-revenue-line {stroke:#f22a40!important;stroke-width:3.1!important;fill:none!important;}
#pageContent .dashboard-v3 .dashboard-revenue-dot {fill:#fff!important;stroke:#f22a40!important;stroke-width:2.4!important;}
#pageContent .dashboard-v3 .dashboard-finance-card {padding:17px!important;gap:10px!important;}
#pageContent .dashboard-v3 .dashboard-finance-card>header {align-items:flex-start!important;gap:10px!important;}
#pageContent .dashboard-v3 .dashboard-finance-card>header span {font-size:10px!important;color:#7d90ae!important;font-weight:900!important;letter-spacing:.02em!important;}
#pageContent .dashboard-v3 .dashboard-finance-card h3 {font-size:17px!important;font-weight:900!important;color:#1b2e49!important;line-height:1.3;}
#pageContent .dashboard-v3 .dashboard-finance-card>header .btn {min-height:39px!important;padding:0 12px!important;border-radius:10px!important;white-space:nowrap!important;font-size:11px!important;}
#pageContent .dashboard-v3 .finance-big {padding:13px 15px!important;border:1px solid #e5ebf4!important;border-radius:12px!important;background:#f9fbfd!important;}
#pageContent .dashboard-v3 .finance-big small {font-size:10px!important;color:#7287a2!important;font-weight:800!important;}
#pageContent .dashboard-v3 .finance-big strong {font-size:27px!important;font-weight:900!important;color:#142541!important;}
#pageContent .dashboard-v3 .finance-mini-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}
#pageContent .dashboard-v3 .finance-mini-grid>span {min-height:58px!important;padding:10px 12px!important;border:1px solid #e3e9f1!important;border-radius:10px!important;background:#fff!important;}
#pageContent .dashboard-v3 .finance-mini-grid small {font-size:10px!important;color:#7488a4!important;}
#pageContent .dashboard-v3 .finance-mini-grid b {font-size:14px!important;color:#142542!important;font-weight:900!important;}
#pageContent .dashboard-v3 .dashboard-ledger-link {border-radius:11px!important;border:1px solid #ffe1e5!important;background:#fff3f4!important;color:#e92237!important;min-height:44px!important;font-size:12px!important;font-weight:850!important;}
#pageContent .dashboard-v3 .dashboard-quick-grid {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:13px!important;}
#pageContent .dashboard-v3 .dash-quick-card {min-width:0!important;min-height:90px!important;border-radius:13px!important;padding:14px!important;border:1px solid #e4eaf2!important;background:#fff!important;box-shadow:0 5px 15px rgba(25,44,73,.035)!important;}
#pageContent .dashboard-v3 .dash-quick-card>span {background:#fff0f2!important;color:#e92438!important;border-radius:11px!important;}
#pageContent .dashboard-v3 .dash-quick-card small {color:#7b90ad!important;font-size:11px!important;font-weight:850!important;}
#pageContent .dashboard-v3 .dash-quick-card strong {color:#12233e!important;font-size:23px!important;font-weight:900!important;}
#pageContent .dashboard-v3 .dashboard-bottom-v3 .panel {border:1px solid #e3eaf2!important;border-radius:14px!important;background:#fff!important;overflow:hidden;}
@media(max-width:1360px){
  #pageContent .dashboard-v3 .today-stat{min-height:167px!important;padding:16px!important;}
  #pageContent .dashboard-v3 .today-stat strong{font-size:26px!important;}
  #pageContent .dashboard-v3 .dashboard-main-grid-v3{grid-template-columns:minmax(0,1.45fr) minmax(275px,1fr)!important;}
}
@media(max-width:1120px){
  #pageContent .dashboard-v3 .today-stat-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  #pageContent .dashboard-v3 .dashboard-main-grid-v3 {grid-template-columns:minmax(0,1fr)!important;}
  #pageContent .dashboard-v3 .dashboard-quick-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  #pageContent .dashboard-v3 .dashboard-finance-card {gap:14px!important;}
  .topbar .global-search {flex-basis:240px;width:240px!important;min-width:140px;}
}
@media(max-width:880px){
  .topbar {min-height:64px!important;padding:9px 12px!important;}
  .topbar-actions {gap:6px!important;}
  .topbar .global-search {position:relative!important;width:42px!important;min-width:42px!important;flex:0 0 42px!important;height:42px!important;padding:4px!important;background:#fff!important;}
  .topbar .global-search-toggle {width:32px;height:32px;flex-basis:32px;}
  .topbar .global-search input,.topbar .global-search-shortcut {display:none!important;}
  .topbar .global-search.search-expanded {position:absolute!important;left:12px!important;right:12px!important;top:calc(100% + 8px)!important;width:auto!important;min-width:0!important;height:50px!important;padding:0 8px!important;z-index:125!important;background:#fff!important;box-shadow:0 13px 28px rgba(20,39,69,.18)!important;}
  .topbar .global-search.search-expanded input {display:block!important;min-width:0!important;}
  .topbar .global-search.search-expanded .global-search-shortcut {display:none!important;}
  .topbar .global-search-suggestions {min-width:0!important;left:0!important;right:0!important;}
  .topbar .refresh-btn {display:none!important;}
  .topbar-account-copy {display:none!important;}
  .topbar-account {margin:0!important;padding:0!important;border:0!important;}
  #pageContent .dashboard-v3>.page-heading{align-items:flex-start!important;}
}
@media(max-width:640px){
  .topbar h1 {font-size:16px!important;}
  .topbar .breadcrumb{font-size:10px!important;}
  .topbar .icon-btn {min-width:39px!important;width:39px!important;min-height:39px!important;height:39px!important;}
  #pageContent .dashboard-v3{gap:12px!important;}
  #pageContent .dashboard-v3>.page-heading {flex-direction:column!important;align-items:stretch!important;gap:14px!important;}
  #pageContent .dashboard-v3>.page-heading h2{font-size:24px!important;}
  #pageContent .dashboard-v3>.page-heading p{font-size:12px!important;}
  #pageContent .dashboard-v3 .heading-actions {width:100%;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;}
  #pageContent .dashboard-v3 .btn-telegram-broadcast {min-width:0!important;padding:0 10px!important;font-size:11px!important;}
  #pageContent .dashboard-v3 .date-chip {font-size:10.5px!important;min-width:0;padding:0 10px!important;white-space:nowrap;}
  #pageContent .dashboard-v3 .today-stat-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
  #pageContent .dashboard-v3 .today-stat {min-height:168px!important;padding:13px!important;gap:12px!important;border-radius:13px!important;}
  #pageContent .dashboard-v3 .today-icon {width:40px!important;height:40px!important;flex-basis:40px!important;}
  #pageContent .dashboard-v3 .today-icon .icon{width:21px!important;height:21px!important;}
  #pageContent .dashboard-v3 .today-stat small{font-size:10px!important;line-height:1.4!important;}
  #pageContent .dashboard-v3 .today-stat strong {font-size:24px!important;}
  #pageContent .dashboard-v3 .today-stat em{font-size:10px!important;}
  #pageContent .dashboard-v3 .dashboard-chart-card .panel-head {flex-wrap:wrap!important;padding:15px!important;min-height:0!important;}
  #pageContent .dashboard-v3 .dashboard-chart-card h3 {font-size:17px!important;}
  #pageContent .dashboard-v3 .dashboard-chart-legend {margin-top:0!important;}
  #pageContent .dashboard-v3 .chart-wrap-v3{padding:12px!important;min-height:230px!important;}
  #pageContent .dashboard-v3 .dashboard-money-chart{height:210px!important;}
  #pageContent .dashboard-v3 .dashboard-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}
  #pageContent .dashboard-v3 .dash-quick-card {min-height:88px!important;padding:10px!important;}
  #pageContent .dashboard-v3 .dash-quick-card strong{font-size:20px!important;}
  #pageContent .dashboard-v3 .dash-quick-card em{display:none;}
}
@media(max-width:370px){
  #pageContent .dashboard-v3 .heading-actions{grid-template-columns:minmax(0,1fr)!important;}
  #pageContent .dashboard-v3 .date-chip{width:max-content;}
  #pageContent .dashboard-v3 .today-stat strong{font-size:21px!important;}
  #pageContent .dashboard-v3 .today-stat::before{transform:scale(.7);transform-origin:bottom right;}
  #pageContent .dashboard-v3 .dashboard-inline-status{font-size:10.5px!important;}
}
@media(prefers-reduced-motion:reduce){
 .topbar .global-search,.topbar .global-suggest-item,#pageContent .dashboard-v3 .today-stat {transition:none!important;}
}

