: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; }
.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-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; }
  .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(--panel); }
.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; } }
