/* ═══════════════════════════════════════════════════════════════════
   CONSOLE.CSS — DN CHECKER v2 DESIGN SYSTEM
   P1: tokens + primitives. "PREMIUM FUTURISTIC COMMAND CENTER".
   Class mới dùng prefix cc- (P2 sẽ viết lại markup theo system này).
   Scope: #view-dash. Login + Maintenance KHÔNG đụng.
   ═══════════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS (root scope — dùng cho cả modal/toast ngoài #view-dash) ── */
:root {
  /* color */
  --cc-bg-1: #020706;      /* deep black */
  --cc-bg-2: #04120B;      /* dark green tint */
  --cc-bg-3: #030A08;
  --cc-surf-1: #06110D;    /* base panel */
  --cc-surf-2: #071611;    /* elevated */
  --cc-surf-3: #091A14;    /* overlay / hover */
  --cc-line: rgba(0, 255, 136, 0.10);
  --cc-line-2: rgba(0, 255, 136, 0.24);
  --cc-line-3: rgba(0, 255, 136, 0.45);
  --cc-neon: #00FF88;
  --cc-green: #19D976;
  --cc-green-dk: #0B5C39;
  --cc-txt-1: #D8FFE9;
  --cc-txt-2: #AABDB5;
  --cc-txt-3: #64766F;
  --cc-danger: #FF4D5A;
  --cc-warn: #FFB020;
  --cc-info: #00C8FF;
  --cc-glow: rgba(0, 255, 136, 0.16);

  /* type */
  --cc-font-head: 'Space Grotesk', 'Segoe UI', 'Arial', sans-serif;
  --cc-font-tech: 'JetBrains Mono', 'Consolas', 'SFMono-Regular', monospace;
  --cc-font-body: 'Inter', 'Segoe UI', 'Arial', sans-serif;

  /* spacing scale */
  --cc-sp-1: 4px;  --cc-sp-2: 8px;  --cc-sp-3: 12px;
  --cc-sp-4: 16px; --cc-sp-5: 24px; --cc-sp-6: 32px; --cc-sp-7: 48px;

  /* geometry */
  --cc-r: 6px;       /* control radius */
  --cc-cut: 14px;    /* HUD panel cut size */
  --cc-nav-w: 260px;

  /* motion */
  --cc-fast: 150ms;
  --cc-med: 240ms;
  --cc-ease: cubic-bezier(0.2, 0.6, 0.2, 1);

  /* z-index */
  --cc-z-bg: 0; --cc-z-mark: 1; --cc-z-main: 2; --cc-z-top: 9;
  --cc-z-side: 10; --cc-z-backdrop: 90; --cc-z-drawer: 100;
  --cc-z-toast: 300; --cc-z-modal: 400;
}

/* ── RESET + BASE (trong scope) ── */
#view-dash, #view-dash * { box-sizing: border-box; }
#view-dash {
  position: relative;
  min-height: 100vh;
  background: var(--cc-bg-1);
  color: var(--cc-txt-1);
  font-family: var(--cc-font-body);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
#view-dash a { color: inherit; text-decoration: none; }
/* nav items là <a> — đảm bảo màu trạng thái thắng reset ở trên */
#view-dash a.cc-nav-item { color: var(--cc-txt-3); }
#view-dash a.cc-nav-item:hover { color: var(--cc-txt-2); }
#view-dash a.cc-nav-item.active { color: var(--cc-neon); }
#view-dash b { font-weight: 600; }
#view-dash ::selection { background: rgba(0, 255, 136, 0.22); color: var(--cc-txt-1); }

/* Chặn mọi pseudo-leak của theme cũ (sẽ biến mất hoàn toàn ở P2) */
#view-dash .panel::before, #view-dash .panel::after,
#view-dash .panel-title::before, #view-dash .panel-title::after,
#view-dash .page-heading h2::after { content: none !important; }

/* ── BACKGROUND 4 LAYERS ── */
/* L2: dark green tint (radial) */
#view-dash::before {
  content: '';
  position: fixed; inset: 0; z-index: var(--cc-z-bg); pointer-events: none;
  background:
    radial-gradient(1100px 640px at 72% -8%, rgba(0, 255, 136, 0.055), transparent 62%),
    radial-gradient(900px 560px at -6% 108%, rgba(25, 217, 118, 0.04), transparent 60%),
    linear-gradient(168deg, var(--cc-bg-2) 0%, var(--cc-bg-1) 48%, var(--cc-bg-3) 100%);
}
/* L3: extremely subtle grid */
#view-dash::after {
  content: '';
  position: fixed; inset: 0; z-index: var(--cc-z-bg); pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 25%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 25%, transparent 82%);
}
/* L4: circuit lines (element .cc-circuit do HTML đặt) */
#view-dash .cc-circuit {
  position: fixed; inset: 0; z-index: var(--cc-z-bg); pointer-events: none;
  opacity: 0.5;
}
#view-dash .cc-circuit path {
  fill: none; stroke: rgba(0, 255, 136, 0.05); stroke-width: 1;
}
#view-dash .cc-circuit circle { fill: rgba(0, 255, 136, 0.09); }

/* ═══════════ TYPOGRAPHY ═══════════ */
.cc-head {            /* headline — Space Grotesk */
  font-family: var(--cc-font-head);
  font-weight: 600; letter-spacing: 0.02em;
}
.cc-label {           /* technical label — JetBrains Mono */
  font-family: var(--cc-font-tech);
  font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cc-txt-3);
}
.cc-label.cc-hot { color: var(--cc-txt-2); }
.cc-num {             /* important data — big mono */
  font-family: var(--cc-font-tech);
  font-weight: 700; letter-spacing: 0.01em;
  color: var(--cc-txt-1);
  font-variant-numeric: tabular-nums;
}
.cc-body { font-family: var(--cc-font-body); color: var(--cc-txt-2); }
.cc-dim { color: var(--cc-txt-3); }

/* ═══════════ PANEL SYSTEM (HUD) ═══════════ */
.cc-panel {
  position: relative;
  background: linear-gradient(168deg, var(--cc-surf-1) 0%, rgba(6, 17, 13, 0.94) 55%, rgba(4, 13, 9, 0.97) 100%);
  border: 1px solid var(--cc-line);
  clip-path: polygon(
    0 0,
    calc(100% - var(--cc-cut)) 0, 100% var(--cc-cut),
    100% 100%,
    var(--cc-cut) 100%, 0 calc(100% - var(--cc-cut))
  );
  transition: border-color var(--cc-fast) var(--cc-ease);
}
/* HUD corner accents — 2 góc nguyên vẹn */
.cc-panel::before, .cc-panel::after {
  content: ''; position: absolute; width: 22px; height: 22px; pointer-events: none;
  opacity: 0.85;
}
.cc-panel::before { top: -1px; left: -1px; border-top: 1px solid var(--cc-line-2); border-left: 1px solid var(--cc-line-2); }
.cc-panel::after  { bottom: -1px; right: -1px; border-bottom: 1px solid var(--cc-line-2); border-right: 1px solid var(--cc-line-2); }
.cc-panel.cc-hot { border-color: var(--cc-line-2); }
.cc-panel.cc-hot::before, .cc-panel.cc-hot::after { opacity: 1; }

/* panel levels: size + weight khác nhau (information hierarchy) */
.cc-hero  { padding: var(--cc-sp-5) var(--cc-sp-6); --cc-cut: 20px; }
.cc-main  { padding: var(--cc-sp-5); }
.cc-util  { padding: var(--cc-sp-4); }
.cc-metric{ padding: var(--cc-sp-4); background: linear-gradient(160deg, rgba(7, 22, 17, 0.9), rgba(5, 14, 10, 0.92)); }

.cc-panel-head {
  display: flex; align-items: center; gap: 10px;
  padding: 0 0 var(--cc-sp-3); margin-bottom: var(--cc-sp-3);
  border-bottom: 1px solid rgba(0, 255, 136, 0.07);
}
.cc-panel-head .cc-label { display: flex; align-items: center; gap: 8px; }
.cc-panel-head .cc-label::before {
  content: ''; width: 3px; height: 12px;
  background: var(--cc-green-dk);
}
.cc-panel.cc-hot .cc-panel-head .cc-label::before { background: var(--cc-neon); }
.cc-panel-head .cc-idx { margin-left: auto; color: var(--cc-txt-3); }
.cc-panel-title {
  font-family: var(--cc-font-head); font-size: 15px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--cc-txt-1); text-transform: uppercase;
}

/* ═══════════ BUTTONS ═══════════ */
.cc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 18px;
  background: var(--cc-surf-2);
  border: 1px solid var(--cc-line);
  color: var(--cc-txt-2);
  font-family: var(--cc-font-tech); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; user-select: none;
  transition: border-color var(--cc-fast) var(--cc-ease), color var(--cc-fast) var(--cc-ease),
              background var(--cc-fast) var(--cc-ease), transform var(--cc-fast) var(--cc-ease);
}
.cc-btn:hover { border-color: var(--cc-line-2); color: var(--cc-txt-1); }
.cc-btn:active { transform: translateY(1px); }
.cc-btn:disabled { opacity: 0.35; pointer-events: none; }
.cc-btn.cc-primary {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.12), rgba(11, 92, 57, 0.35));
  border-color: var(--cc-line-3); color: var(--cc-neon);
}
.cc-btn.cc-primary:hover { border-color: var(--cc-neon); background: linear-gradient(135deg, rgba(0, 255, 136, 0.18), rgba(11, 92, 57, 0.5)); }
.cc-btn.cc-danger { background: rgba(255, 77, 90, 0.07); border-color: rgba(255, 77, 90, 0.4); color: var(--cc-danger); }
.cc-btn.cc-danger:hover { border-color: var(--cc-danger); background: rgba(255, 77, 90, 0.12); }
.cc-btn.cc-ghost { background: transparent; }
.cc-btn.cc-sm { padding: 5px 12px; font-size: 9.5px; letter-spacing: 0.1em; }
.cc-btn.cc-lg { padding: 13px 26px; font-size: 12.5px; }
.cc-btn.cc-icon { padding: 8px; width: 34px; height: 34px; }

/* ═══════════ INPUTS ═══════════ */
.cc-input, .cc-select, .cc-textarea {
  width: 100%;
  background: rgba(1, 5, 3, 0.85);
  border: 1px solid rgba(0, 255, 136, 0.14);
  color: var(--cc-txt-1);
  font-family: var(--cc-font-tech); font-size: 12.5px;
  padding: 9px 12px;
  outline: none;
  caret-color: var(--cc-neon);
  transition: border-color var(--cc-fast) var(--cc-ease), box-shadow var(--cc-fast) var(--cc-ease);
}
.cc-select { appearance: none; cursor: pointer; }
.cc-textarea { resize: vertical; line-height: 1.7; min-height: 120px; }
.cc-input::placeholder, .cc-textarea::placeholder { color: rgba(139, 166, 154, 0.45); }
.cc-input:focus, .cc-select:focus, .cc-textarea:focus {
  border-color: var(--cc-neon);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.07);
}
.cc-field { display: flex; flex-direction: column; gap: 6px; }
.cc-field > .cc-label { display: block; }

/* ═══════════ CHIPS / STATUS ═══════════ */
.cc-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--cc-line); border-radius: 3px;
  font-family: var(--cc-font-tech); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cc-txt-2); background: rgba(7, 22, 17, 0.6);
}
.cc-chip.cc-live { color: var(--cc-neon); border-color: rgba(0, 255, 136, 0.3); background: rgba(0, 255, 136, 0.06); }
.cc-chip.cc-die  { color: var(--cc-danger); border-color: rgba(255, 77, 90, 0.3); background: rgba(255, 77, 90, 0.06); }
.cc-chip.cc-unk  { color: var(--cc-warn); border-color: rgba(255, 176, 32, 0.3); background: rgba(255, 176, 32, 0.06); }
.cc-chip.cc-info { color: var(--cc-info); border-color: rgba(0, 200, 255, 0.3); background: rgba(0, 200, 255, 0.06); }

.cc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cc-txt-3); flex: none; }
.cc-dot.cc-on  { background: var(--cc-neon); box-shadow: 0 0 8px var(--cc-glow); }
.cc-dot.cc-err { background: var(--cc-danger); }
.cc-dot.cc-warn{ background: var(--cc-warn); }
.cc-dot.cc-pulse { animation: cc-pulse 2.4s ease-in-out infinite; }
@keyframes cc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ═══════════ DATA TERMINAL (tables) ═══════════ */
.cc-table { width: 100%; border-collapse: collapse; font-family: var(--cc-font-tech); }
.cc-table thead th {
  text-align: left; padding: 8px 12px;
  font-size: 9px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cc-txt-3);
  border-bottom: 1px solid rgba(0, 255, 136, 0.09);
}
.cc-table tbody td {
  padding: 9px 12px;
  font-size: 11.5px; color: var(--cc-txt-1);
  border-bottom: 1px solid rgba(0, 255, 136, 0.045);
}
.cc-table tbody tr { transition: background var(--cc-fast) var(--cc-ease); }
.cc-table tbody tr:hover { background: rgba(0, 255, 136, 0.03); }
.cc-table tbody tr:last-child td { border-bottom: none; }
.cc-table .cc-cell-dim { color: var(--cc-txt-3); font-size: 10.5px; }
.cc-table .cc-cell-num { color: var(--cc-txt-1); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ═══════════ EMPTY / LOADING ═══════════ */
.cc-empty {
  padding: var(--cc-sp-6) var(--cc-sp-4);
  text-align: center;
  font-family: var(--cc-font-tech); font-size: 10.5px; letter-spacing: 0.14em;
  color: var(--cc-txt-3); text-transform: uppercase;
}
.cc-empty .cc-empty-ico {
  display: block; margin-bottom: 10px;
  font-size: 22px; color: rgba(0, 255, 136, 0.28);
}
.cc-skel {
  height: 12px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(0, 255, 136, 0.05) 25%, rgba(0, 255, 136, 0.12) 50%, rgba(0, 255, 136, 0.05) 75%);
  background-size: 200% 100%;
  animation: cc-skel 1.4s linear infinite;
}
@keyframes cc-skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ═══════════ TOAST / MODAL / KBD ═══════════ */
.cc-toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(8px);
  z-index: 400;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px;
  background: rgba(4, 13, 9, 0.96);
  border: 1px solid var(--cc-line-2);
  font-family: var(--cc-font-tech); font-size: 11px; letter-spacing: 0.08em;
  color: var(--cc-txt-1);
  opacity: 0; pointer-events: none;
  transition: opacity var(--cc-med) var(--cc-ease), transform var(--cc-med) var(--cc-ease);
}
.cc-toast.cc-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.cc-toast::before { content: '▸'; color: var(--cc-neon); }

.cc-modal-backdrop {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 2, 1, 0.78);
  backdrop-filter: blur(3px);
}
.cc-modal {
  position: relative;
  width: min(540px, 92vw);
  max-height: 76vh;
  overflow-y: auto;
  padding: var(--cc-sp-5);
  background: linear-gradient(170deg, var(--cc-surf-1), rgba(4, 13, 9, 0.99));
  border: 1px solid var(--cc-line-2);
  clip-path: polygon(0 0, calc(100% - var(--cc-cut)) 0, 100% var(--cc-cut), 100% 100%, var(--cc-cut) 100%, 0 calc(100% - var(--cc-cut)));
}
.cc-modal::before, .cc-modal::after {
  content: ''; position: absolute; width: 22px; height: 22px; pointer-events: none;
}
.cc-modal::before { top: -1px; left: -1px; border-top: 1px solid var(--cc-neon); border-left: 1px solid var(--cc-neon); opacity: 0.7; }
.cc-modal::after  { bottom: -1px; right: -1px; border-bottom: 1px solid var(--cc-neon); border-right: 1px solid var(--cc-neon); opacity: 0.7; }
.cc-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--cc-sp-4); }

kbd.cc-kbd {
  padding: 2px 7px;
  border: 1px solid var(--cc-line); border-bottom-width: 2px; border-radius: 3px;
  font-family: var(--cc-font-tech); font-size: 9px; letter-spacing: 0.1em;
  color: var(--cc-txt-3); background: rgba(7, 22, 17, 0.7);
}

/* ═══════════ SCROLLBAR / PROGRESS ═══════════ */
#view-dash ::-webkit-scrollbar { width: 5px; height: 5px; }
#view-dash ::-webkit-scrollbar-track { background: transparent; }
#view-dash ::-webkit-scrollbar-thumb { background: rgba(0, 255, 136, 0.16); border-radius: 3px; }
#view-dash ::-webkit-scrollbar-thumb:hover { background: rgba(0, 255, 136, 0.3); }
/* .cc-progress định nghĩa ở phần RESULTS (hacker stripes) */

/* ═══════════ SPACING UTILITIES ═══════════ */
.cc-grid { display: grid; gap: var(--cc-sp-4); }
.cc-flex { display: flex; gap: var(--cc-sp-3); align-items: center; }
.cc-between { display: flex; align-items: center; justify-content: space-between; gap: var(--cc-sp-3); }
.cc-mt { margin-top: var(--cc-sp-3); }

/* ═══════════════════════════════════════════════════════════════════
   SHELL (P2-P4): layout, sidebar command panel, topbar, dashboard grids
   ═══════════════════════════════════════════════════════════════════ */

/* matrix rain — hiển thị như cũ (nền sau content) */
#view-dash #dash-matrix {
  display: block;
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.75;
}

#view-dash { display: flex; align-items: stretch; }

/* ── SIDEBAR — PREMIUM FUTURISTIC COMMAND PANEL ══ */
.cc-side {
  position: sticky; top: 0; z-index: var(--cc-z-side);
  width: var(--cc-nav-w); min-width: var(--cc-nav-w); height: 100vh;
  display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
  background:
    radial-gradient(340px 220px at 50% -5%, rgba(0, 255, 136, 0.08), transparent 70%),
    linear-gradient(180deg, #04130D 0%, #020706 42%, #010403 100%);
  border-right: 1px solid rgba(0, 255, 136, 0.10);
}
.cc-side::before { /* scanline siêu nhẹ */
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 3px);
}
.cc-side::after { /* edge glow */
  content: ''; position: absolute; top: 0; right: -1px; width: 1px; height: 160px;
  background: linear-gradient(180deg, transparent, var(--cc-green-dk), transparent);
  opacity: 0.8; pointer-events: none;
}

/* ═══ LOGO — HERO AREA (focal point #1) ═══ */
.cc-logo {
  position: relative; z-index: 1; flex-shrink: 0;
  display: flex; align-items: center; gap: 13px;
  margin: 12px 12px 6px; padding: 16px 14px 14px;
  background:
    radial-gradient(130px 60px at 16% 0%, rgba(0, 255, 136, 0.14), transparent 70%),
    linear-gradient(150deg, rgba(11, 92, 57, 0.5), rgba(4, 16, 10, 0.96) 60%);
  border: 1px solid rgba(0, 255, 136, 0.3);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.09);
}
.cc-logo::before, .cc-logo::after { /* HUD corner accents */
  content: ''; position: absolute; width: 18px; height: 18px; pointer-events: none;
}
.cc-logo::before { top: -1px; left: -1px; border-top: 1px solid var(--cc-neon); border-left: 1px solid var(--cc-neon); opacity: 0.85; }
.cc-logo::after { bottom: -1px; right: -1px; border-bottom: 1px solid var(--cc-line-2); border-right: 1px solid var(--cc-line-2); }
.cc-logo-coord {
  position: absolute; top: 7px; right: 11px;
  font-family: var(--cc-font-tech); font-size: 7px; letter-spacing: 0.16em;
  color: var(--cc-txt-3);
}
.cc-logo-mark {
  position: relative;
  width: 46px; height: 46px; flex: none;
  clip-path: polygon(50% 0%, 94% 25%, 94% 75%, 50% 100%, 6% 75%, 6% 25%);
  background: linear-gradient(160deg, rgba(0, 255, 136, 0.22), rgba(11, 92, 57, 0.55) 55%, rgba(2, 8, 6, 0.95));
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.22);
}
.cc-logo-mark::before { /* vỏ tối bên trong */
  content: ''; position: absolute; inset: 1px;
  clip-path: polygon(50% 0%, 94% 25%, 94% 75%, 50% 100%, 6% 75%, 6% 25%);
  background: linear-gradient(160deg, rgba(2, 10, 7, 0.88), rgba(5, 20, 13, 0.92));
}
.cc-logo-core {
  position: absolute; inset: 12px; z-index: 1;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  background: radial-gradient(circle at 50% 40%, rgba(0, 255, 136, 0.95), rgba(0, 255, 136, 0.25) 75%);
  filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.8));
}
.cc-logo-txt { position: relative; z-index: 1; min-width: 0; }
.cc-logo-name {
  font-family: var(--cc-font-head); font-size: 18px; font-weight: 800;
  letter-spacing: 0.1em; color: #E9FFF3; line-height: 1.05;
  text-shadow: 0 0 16px rgba(0, 255, 136, 0.25);
}
.cc-logo-name span { color: var(--cc-neon); }
.cc-logo-sub {
  margin-top: 4px;
  font-family: var(--cc-font-tech); font-size: 8px; letter-spacing: 0.28em;
  color: var(--cc-txt-2); text-transform: uppercase;
}
.cc-logo-ver {
  display: inline-block; margin-top: 6px; padding: 1px 8px 2px;
  font-family: var(--cc-font-tech); font-size: 8px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--cc-neon);
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

/* ═══ NAV ═══ */
.cc-nav { flex: 1 1 auto; min-height: 160px; overflow-y: auto; padding: 4px 8px 14px; position: relative; z-index: 1; }
/* section divider: ── MAIN ──────── */
.cc-navgrp {
  display: flex; align-items: center; gap: 8px;
  margin: 18px 10px 6px;
  font-family: var(--cc-font-tech); font-size: 8.5px; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--cc-txt-3);
}
.cc-navgrp::before { content: ''; width: 14px; height: 1px; background: var(--cc-green-dk); }
.cc-navgrp::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(0, 255, 136, 0.25), rgba(0, 255, 136, 0.03)); }
.cc-navgrp:first-child { margin-top: 2px; }

.cc-nav-item {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  margin: 1px 8px; padding: 8px 10px;
  color: var(--cc-txt-2);
  font-family: var(--cc-font-tech);
  cursor: pointer; user-select: none;
  border: none; background: transparent;
  transition: color var(--cc-fast) var(--cc-ease), background var(--cc-fast) var(--cc-ease);
}
.cc-ni-ico {
  width: 20px; flex: none; text-align: center;
  font-size: 13px; color: #5D7368;
  transition: color var(--cc-fast) var(--cc-ease), text-shadow var(--cc-fast) var(--cc-ease);
}
.cc-ni-txt { display: flex; flex-direction: column; min-width: 0; }
.cc-ni-lbl { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; color: inherit; line-height: 1.3; }
.cc-ni-sub {
  font-size: 8px; letter-spacing: 0.16em; color: var(--cc-txt-3);
  opacity: 0; max-height: 0; overflow: hidden;
  transition: opacity var(--cc-fast) var(--cc-ease), max-height var(--cc-fast) var(--cc-ease);
}
.cc-ni-chev { margin-left: auto; font-size: 11px; color: var(--cc-txt-3); opacity: 0.7; }

/* hover: surface nhẹ + icon green + technical line */
.cc-nav-item:hover { color: #C9DBD3; background: rgba(0, 255, 136, 0.04); }
.cc-nav-item:hover .cc-ni-ico { color: var(--cc-green); }
.cc-nav-item:hover .cc-ni-sub { opacity: 1; max-height: 14px; }
.cc-nav-item:hover::before {
  content: ''; position: absolute; left: 0; top: 28%; bottom: 28%; width: 2px;
  background: var(--cc-green-dk);
}

/* ACTIVE — focal point #2: khác biệt rõ ràng, nhận ra ngay cả khi thu nhỏ */
.cc-nav-item.active {
  margin: 1px 4px; padding-left: 14px;
  background: linear-gradient(90deg, rgba(0, 255, 136, 0.18) 0%, rgba(11, 92, 57, 0.42) 45%, rgba(6, 17, 13, 0.65) 100%);
  border: 1px solid rgba(0, 255, 136, 0.4);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  color: #E9FFF3;
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.14);
}
.cc-nav-item.active::before { /* neon bar trái */
  content: ''; position: absolute; left: -5px; top: 16%; bottom: 16%; width: 3px;
  background: var(--cc-neon);
  box-shadow: 0 0 12px var(--cc-neon);
}
.cc-nav-item.active::after { /* HUD notch góc phải dưới */
  content: ''; position: absolute; right: 0; bottom: 0; width: 10px; height: 10px;
  border-right: 1px solid var(--cc-neon); border-bottom: 1px solid var(--cc-neon);
  opacity: 0.7;
}
.cc-nav-item.active .cc-ni-ico { color: var(--cc-neon); text-shadow: 0 0 10px var(--cc-glow); }
.cc-nav-item.active .cc-ni-lbl { color: #E9FFF3; text-shadow: 0 0 10px rgba(0, 255, 136, 0.3); }
.cc-nav-item.active .cc-ni-sub { opacity: 1; max-height: 14px; color: var(--cc-green); }
.cc-nav-item.active .cc-ni-chev { color: var(--cc-neon); opacity: 1; }

/* ═══ SYSTEM NODE 01 — LIVE MONITORING (hero module #2) ═══ */
.cc-node {
  position: relative; z-index: 1; flex-shrink: 0;
  margin: 6px 12px 14px; padding: 14px 13px 12px;
  background:
    radial-gradient(190px 80px at 50% 0%, rgba(0, 255, 136, 0.10), transparent 70%),
    linear-gradient(160deg, rgba(11, 92, 57, 0.32), rgba(4, 13, 9, 0.97) 60%);
  border: 1px solid rgba(0, 255, 136, 0.28);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.07);
}
.cc-node::before, .cc-node::after {
  content: ''; position: absolute; width: 16px; height: 16px; pointer-events: none;
}
.cc-node::before { top: -1px; left: -1px; border-top: 1px solid var(--cc-neon); border-left: 1px solid var(--cc-neon); opacity: 0.85; }
.cc-node::after { bottom: -1px; right: -1px; border-bottom: 1px solid var(--cc-line-2); border-right: 1px solid var(--cc-line-2); }
.cc-node-head { display: flex; align-items: center; justify-content: space-between; }
.cc-node-title {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--cc-font-tech); font-size: 9px; font-weight: 700;
  letter-spacing: 0.2em; color: #E9FFF3; text-transform: uppercase;
}
.cc-node-title .cc-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cc-neon); box-shadow: 0 0 8px var(--cc-glow);
  animation: cc-pulse 2.4s ease-in-out infinite;
}
.cc-node-slash { font-weight: 700; color: var(--cc-neon); font-size: 10px; }
.cc-node-slash::after { content: '/'; animation: cc-slash 1.4s steps(1) infinite; }
@keyframes cc-slash {
  0% { content: '/'; }
  33% { content: '//'; }
  66% { content: '///'; }
  100% { content: ''; }
}
.cc-node-sep { height: 1px; margin: 8px 0 6px; background: linear-gradient(90deg, rgba(0, 255, 136, 0.32), rgba(0, 255, 136, 0.03)); }
.cc-node-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 3.5px 0;
  font-family: var(--cc-font-tech); font-size: 8.5px; letter-spacing: 0.16em;
  color: var(--cc-txt-3); text-transform: uppercase;
}
.cc-node-row b { color: var(--cc-txt-1); font-weight: 700; font-size: 8.5px; }
.cc-node-row b.cc-on { color: var(--cc-neon); }
.cc-node-glabel {
  margin-top: 9px;
  font-family: var(--cc-font-tech); font-size: 7.5px; letter-spacing: 0.24em;
  color: var(--cc-txt-3); text-transform: uppercase;
}
.cc-node-graph { display: flex; align-items: flex-end; gap: 2px; height: 20px; margin-top: 5px; }
.cc-node-graph i { flex: 1; min-height: 2px; background: linear-gradient(180deg, rgba(0, 255, 136, 0.85), rgba(11, 92, 57, 0.5)); }
.cc-node-graph i:nth-child(1) { height: 30%; } .cc-node-graph i:nth-child(2) { height: 55%; }
.cc-node-graph i:nth-child(3) { height: 40%; } .cc-node-graph i:nth-child(4) { height: 75%; }
.cc-node-graph i:nth-child(5) { height: 48%; } .cc-node-graph i:nth-child(6) { height: 30%; }
.cc-node-graph i:nth-child(7) { height: 88%; } .cc-node-graph i:nth-child(8) { height: 60%; }
.cc-node-graph i:nth-child(9) { height: 42%; } .cc-node-graph i:nth-child(10) { height: 68%; }
.cc-node-graph i:nth-child(11) { height: 35%; } .cc-node-graph i:nth-child(12) { height: 55%; }
.cc-node-graph i:nth-child(13) { height: 25%; } .cc-node-graph i:nth-child(14) { height: 50%; }
.cc-node-graph i:nth-child(15) { height: 38%; } .cc-node-graph i:nth-child(16) { height: 45%; }
.cc-node-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 7px; padding-top: 7px;
  border-top: 1px dashed rgba(0, 255, 136, 0.16);
  font-family: var(--cc-font-tech); font-size: 8px; letter-spacing: 0.1em;
  color: var(--cc-txt-3);
}

/* ── MAIN + TOPBAR ══ */
.cc-main { position: relative; z-index: var(--cc-z-main); flex: 1; min-width: 0; display: flex; flex-direction: column; }

.cc-top {
  position: sticky; top: 0; z-index: var(--cc-z-top);
  display: flex; align-items: center; gap: 16px;
  padding: 13px 24px;
  background: rgba(2, 8, 5, 0.82);
  border-bottom: 1px solid var(--cc-line);
  backdrop-filter: blur(10px);
}
.cc-top-titles { min-width: 0; }
.cc-breadcrumb {
  font-family: var(--cc-font-tech); font-size: 9px; letter-spacing: 0.18em;
  color: var(--cc-txt-3); text-transform: uppercase; margin-bottom: 2px;
}
.cc-breadcrumb b { color: var(--cc-txt-2); font-weight: 600; }
.cc-top-title {
  margin: 0;
  font-family: var(--cc-font-head); font-size: 17px; font-weight: 600;
  letter-spacing: 0.06em; color: var(--cc-txt-1); text-transform: uppercase;
}
.cc-top-sub { font-family: var(--cc-font-tech); font-size: 9.5px; letter-spacing: 0.1em; color: var(--cc-txt-3); }
.cc-top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.cc-search {
  display: flex; align-items: center; gap: 8px;
  width: 230px; padding: 7px 11px;
  background: rgba(1, 5, 3, 0.8);
  border: 1px solid var(--cc-line);
  cursor: text;
  transition: border-color var(--cc-fast) var(--cc-ease);
}
.cc-search:hover, .cc-search:focus-within { border-color: var(--cc-line-2); }
.cc-search-ico { color: var(--cc-txt-3); font-size: 13px; }
.cc-search input {
  flex: 1; min-width: 0;
  background: none; border: none; outline: none;
  font-family: var(--cc-font-tech); font-size: 10.5px; color: var(--cc-txt-1);
}
.cc-search input::placeholder { color: var(--cc-txt-3); }

.cc-syschip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(0, 255, 136, 0.04);
  border: 1px solid rgba(0, 255, 136, 0.14);
  font-family: var(--cc-font-tech); font-size: 9px; font-weight: 600;
  letter-spacing: 0.14em; color: var(--cc-txt-2); text-transform: uppercase;
  white-space: nowrap;
}

.cc-balance {
  display: flex; flex-direction: column; align-items: flex-end;
  padding: 4px 12px;
  background: rgba(1, 5, 3, 0.7);
  border: 1px solid var(--cc-line);
}
.cc-balance-val {
  font-family: var(--cc-font-tech); font-size: 13px; font-weight: 700;
  color: var(--cc-neon); letter-spacing: 0.02em;
}

.cc-user {
  display: flex; align-items: center; gap: 9px;
  padding: 4px 12px 4px 5px;
  background: rgba(1, 5, 3, 0.7);
  border: 1px solid var(--cc-line);
  cursor: pointer;
  transition: border-color var(--cc-fast) var(--cc-ease);
}
.cc-user:hover { border-color: var(--cc-line-2); }
.cc-user-av {
  width: 27px; height: 27px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--cc-font-tech); font-size: 10px; font-weight: 700; color: var(--cc-txt-1);
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.16), rgba(0, 255, 136, 0.03));
  border: 1px solid var(--cc-line-2);
}
.cc-user-txt { display: flex; flex-direction: column; line-height: 1.25; }
.cc-user-id { font-family: var(--cc-font-tech); font-size: 10.5px; color: var(--cc-txt-1); }
.cc-user-role { font-family: var(--cc-font-tech); font-size: 8px; letter-spacing: 0.16em; color: var(--cc-txt-3); text-transform: uppercase; }

.cc-burger { display: none; }
.cc-backdrop { display: none; }

/* ── PAGES ══ */
.cc-page {
  padding: 24px 24px 48px;
  display: flex; flex-direction: column; gap: 16px;
  animation: cc-fade 200ms var(--cc-ease);
}
@keyframes cc-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.hidden { display: none !important; }

/* ── DASHBOARD ══ */
#view-dash #ann-list { display: flex; flex-direction: column; gap: 8px; }

/* check control — form cũ 2 cột: textarea trái + side controls phải */
.cc-check-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 0.9fr);
  gap: 16px;
  align-items: stretch;
}
.cc-ta-lg { min-height: 220px; height: 100%; }
.cc-check-side { display: flex; flex-direction: column; gap: 10px; }
/* cột điều khiển — ô có khung nổi bật, giá trị neon */
.cc-check-side .cc-field {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 12px;
  background: rgba(2, 8, 6, 0.78);
  border: 1px solid var(--cc-line-2);
}
.cc-check-side .cc-field > .cc-label { color: var(--cc-txt-2); }
.cc-check-side .cc-label b { color: var(--cc-neon); font-size: 13px; text-shadow: 0 0 8px var(--cc-glow); }
.cc-check-side .cc-dim { color: var(--cc-txt-2); font-size: 10px; }
/* GATE selector — command style */
.cc-select-wrap { position: relative; display: flex; align-items: center; }
.cc-select-ico {
  position: absolute; left: 11px; z-index: 1;
  color: var(--cc-green); font-size: 11px; pointer-events: none;
}
.cc-check-side .cc-select {
  padding-left: 30px; padding-right: 30px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%2300FF88' stroke-width='1.4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 11px center;
  font-weight: 600;
  transition: border-color var(--cc-fast) var(--cc-ease), box-shadow var(--cc-fast) var(--cc-ease);
}
.cc-check-side .cc-select:hover, .cc-check-side .cc-select:focus {
  border-color: var(--cc-neon);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.07);
}
.cc-gate-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.cc-check-side .cc-g-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: var(--cc-neon);
  font-family: var(--cc-font-tech); font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
}
.cc-check-side #gate-cost {
  color: var(--cc-neon);
  font-family: var(--cc-font-tech); font-size: 12.5px; font-weight: 700;
  text-shadow: 0 0 8px var(--cc-glow);
}
.cc-check-side #cards-count { color: var(--cc-txt-1); font-size: 12.5px; font-family: var(--cc-font-tech); font-weight: 600; }
.cc-check-side #total-cost { color: var(--cc-neon); font-size: 12.5px; font-family: var(--cc-font-tech); font-weight: 700; }
.cc-check-side #btn-start.cc-primary.cc-lg {
  width: 100%;
  padding: 13px 20px;
  font-size: 13px;
  letter-spacing: 0.16em;
}
.cc-run-line {
  margin-top: 12px;
  font-family: var(--cc-font-tech); font-size: 11px; letter-spacing: 0.08em;
  color: var(--cc-txt-3); min-height: 16px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 8px 10px;
  margin-bottom: 12px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.cc-run-line::before { content: '>> '; color: var(--cc-neon); }
.cc-run-state {
  display: flex; gap: 12px;
  font-family: var(--cc-font-tech); font-size: 9.5px; letter-spacing: 0.1em; color: var(--cc-txt-3);
}
.cc-g-tag { color: var(--cc-green); }
.cc-dl-group { display: inline-flex; gap: 6px; flex-wrap: wrap; }

/* feeds (result boxes) — style hacker cũ */
.cc-feeds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.cc-feed {
  background: rgba(0, 255, 136, 0.03);
  border: 1px solid rgba(0, 255, 136, 0.16);
  border-radius: 6px;
  overflow: hidden;
  min-height: 120px;
  display: flex; flex-direction: column;
}
.cc-feed-head {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  background: rgba(0, 255, 136, 0.05);
  font-family: var(--cc-font-tech); font-size: 12px;
}
.cc-feed-head .cc-num { font-size: 15px; font-weight: bold; }
.cc-feed-head .cc-btn { margin-left: auto; }
.cc-feed-list {
  flex: 1; overflow-y: auto;
  padding: 6px 10px;
  font-family: var(--cc-font-tech); font-size: 12px; line-height: 1.6;
  color: #00ff6a; /* màu xanh như bản cũ, KHÔNG trắng */
  max-height: 280px; min-height: 90px;
  scrollbar-width: thin; scrollbar-color: rgba(0, 255, 136, 0.2) rgba(0, 0, 0, 0.35);
}
.cc-feed-more { padding: 2px 10px 4px; font-family: var(--cc-font-tech); font-size: 10px; color: var(--cc-warn); }

/* wallet / settings / misc */
.cc-wallet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cc-wbox {
  background: rgba(1, 5, 3, 0.6);
  border: 1px solid rgba(0, 255, 136, 0.08);
  padding: 14px;
}
.cc-dep-addr {
  margin-top: 10px; padding: 10px;
  background: rgba(0, 255, 136, 0.04);
  border: 1px dashed rgba(0, 255, 136, 0.28);
  font-family: var(--cc-font-tech); font-size: 11px; color: var(--cc-green);
  word-break: break-all;
}
.cc-dep-amt {
  margin: 14px 0 10px;
  font-family: var(--cc-font-tech);
  font-size: 30px; font-weight: 800; letter-spacing: 0.03em;
  color: var(--cc-neon);
  text-shadow: 0 0 22px var(--cc-glow);
  animation: cc-pulse 2.4s ease-in-out infinite;
}
.cc-dep-amt:empty { display: none; }
.cc-set-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 4px;
  border-bottom: 1px solid rgba(0, 255, 136, 0.06);
}
.cc-set-row:last-child { border-bottom: none; }
.cc-set-row b { font-family: var(--cc-font-tech); color: var(--cc-txt-1); font-size: 12px; }
.cc-set-row input[type="checkbox"] { accent-color: var(--cc-neon); }
.cc-dim { font-family: var(--cc-font-tech); font-size: 9.5px; color: var(--cc-txt-3); letter-spacing: 0.06em; }

/* announcement items (Dashboard) */
.cc-ann { display: flex; flex-direction: column; gap: 8px; }
.cc-ann-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px;
  background: rgba(1, 5, 3, 0.6);
  border: 1px solid rgba(0, 255, 136, 0.08);
  border-left: 2px solid var(--cc-green-dk);
}
.cc-ann-ico { color: var(--cc-green); font-size: 12px; line-height: 1.6; }
.cc-ann-txt { color: var(--cc-txt-1); font-size: 12px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.cc-ann-meta { margin-top: 3px; font-family: var(--cc-font-tech); font-size: 8.5px; letter-spacing: 0.1em; color: var(--cc-txt-3); }

/* gate status mini rows */
.cc-gate-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 255, 136, 0.05);
}
.cc-gate-row:last-child { border-bottom: none; }
.cc-gate-row .cc-gate-name { font-family: var(--cc-font-tech); font-size: 10.5px; color: var(--cc-txt-1); }
.cc-gate-row .cc-gate-price { margin-left: auto; font-family: var(--cc-font-tech); font-size: 9.5px; color: var(--cc-txt-3); }

/* feed lines (JS pushLine) — 2 cột giống cũ + flash realtime */
.cc-feed-list .rb-line {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 2px 0;
  border-bottom: 1px dashed rgba(0, 255, 136, 0.08);
  animation: cc-rowIn 0.3s ease;
}
@keyframes cc-rowIn {
  from { opacity: 0; transform: translateY(-4px); background: rgba(0, 255, 136, 0.14); }
  to { opacity: 1; transform: none; }
}
.cc-feed-list .rb-line:last-child { border-bottom: none; }
.cc-feed-list .rb-card { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; }
.cc-feed-list .rb-extra {
  flex-shrink: 0; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #00a844; font-size: 11px;
}
/* thẻ LIVE vừa ra → nhấp nháy pulse x2 (realtime) */
.cc-feed-list .rb-line.is-live { animation: cc-livePulse 1.2s ease 2; }

/* run-line tick màu theo status kèm glow/pulse (hacker cũ) */
.cc-run-line.tick { animation: cc-tickblink 0.25s ease 2; }
@keyframes cc-tickblink { 0%, 100% { opacity: 1; } 50% { opacity: 0.05; } }
.cc-run-line.tick-live {
  background: rgba(0, 255, 136, 0.14);
  border-color: var(--cc-neon);
  color: #b6ffd0;
  text-shadow: 0 0 12px var(--cc-glow);
  animation: cc-livePulse 1.2s ease 1;
}
.cc-run-line.tick-die {
  background: rgba(255, 77, 90, 0.16);
  border-color: var(--cc-danger);
  color: #ff9a9a;
  text-shadow: 0 0 12px rgba(255, 77, 90, 0.7);
  animation: cc-diePulse 0.8s ease 1;
}
.cc-run-line.tick-unk {
  background: rgba(255, 176, 32, 0.14);
  border-color: var(--cc-warn);
  color: #ffe2a3;
  text-shadow: 0 0 12px rgba(255, 176, 32, 0.7);
  animation: cc-unkPulse 0.8s ease 1;
}
@keyframes cc-livePulse {
  0% { box-shadow: inset 0 0 0 rgba(0, 255, 136, 0); background: rgba(0, 255, 136, 0.16); }
  50% { box-shadow: inset 0 0 22px rgba(0, 255, 136, 0.35); }
  100% { box-shadow: inset 0 0 0 rgba(0, 255, 136, 0); }
}
@keyframes cc-diePulse {
  0% { box-shadow: inset 0 0 0 rgba(255, 77, 90, 0); background: rgba(255, 77, 90, 0.35); }
  50% { box-shadow: inset 0 0 26px rgba(255, 77, 90, 0.45); }
  100% { box-shadow: inset 0 0 0 rgba(255, 77, 90, 0); }
}
@keyframes cc-unkPulse {
  0% { box-shadow: inset 0 0 0 rgba(255, 176, 32, 0); background: rgba(255, 176, 32, 0.35); }
  50% { box-shadow: inset 0 0 26px rgba(255, 176, 32, 0.45); }
  100% { box-shadow: inset 0 0 0 rgba(255, 176, 32, 0); }
}

/* progress hacker: stripes 45° chạy chéo + glow */
.cc-progress {
  height: 8px;
  background: #010302;
  border: 1px solid rgba(0, 255, 136, 0.16);
  border-radius: 4px;
  overflow: hidden;
}
.cc-progress > i {
  display: block; height: 100%; width: 0;
  background: repeating-linear-gradient(45deg,
    rgba(0, 255, 136, 0.95) 0 10px,
    rgba(11, 92, 57, 0.55) 10px 20px);
  background-size: 28px 100%;
  transition: width 300ms var(--cc-ease);
  box-shadow: 0 0 12px var(--cc-glow);
  animation: cc-stripes 0.8s linear infinite;
}
@keyframes cc-stripes { to { background-position: 28px 0; } }

/* ═══════════════════════════════════════════════════════════════════
   P6: table wrapper, KPI grid, nav badge
   ═══════════════════════════════════════════════════════════════════ */
.cc-tblwrap { overflow-x: auto; }
#view-dash #kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
#view-dash .cc-nav-item .badge {
  margin-left: auto; padding: 1px 8px 2px;
  background: rgba(11, 92, 57, 0.55);
  border: 1px solid rgba(0, 255, 136, 0.35);
  font-family: var(--cc-font-tech); font-size: 9px; font-weight: 700; letter-spacing: 0.5px;
  color: #B8FFD9; min-width: 20px; text-align: center;
  font-variant-numeric: tabular-nums;
}
#view-dash .cc-nav-item.active .badge { color: var(--cc-neon); background: rgba(0, 255, 136, 0.15); border-color: rgba(0, 255, 136, 0.5); }
#view-dash .cc-nav-item .badge:empty { display: none; }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE (P8 sớm — shell cần khung)
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1280px) {
  .cc-search { width: 160px; }
  .cc-syschip { display: none; }
}
@media (max-width: 900px) {
  .cc-burger { display: inline-flex; }
  .cc-side {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: var(--cc-z-drawer);
    transform: translateX(-105%);
    transition: transform var(--cc-med) var(--cc-ease);
  }
  #view-dash.sidebar-open .cc-side { transform: translateX(0); }
  #view-dash.sidebar-open .cc-backdrop {
    display: block; position: fixed; inset: 0; z-index: var(--cc-z-backdrop);
    background: rgba(0, 2, 1, 0.6);
  }
  .cc-search { display: none; }
  .cc-balance { display: none; }
  .cc-check-grid { grid-template-columns: 1fr; }
  .cc-ta-lg { min-height: 140px; }
  .cc-feeds { grid-template-columns: 1fr; }
  .cc-page { padding: 16px 14px 40px; }
  .cc-top { padding: 11px 14px; }
  .cc-wallet-grid { grid-template-columns: 1fr; }
  .cc-user-txt { display: none; }
}

/* === HIGHLIGHT: CHANNEL + SUPPORT (2026-09-10) === */
.cc-nav-item.cc-nav-hl {
  margin: 3px 8px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 255, 136, 0.35);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.12), rgba(11, 92, 57, 0.25));
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.15);
  color: var(--cc-neon);
}
.cc-nav-item.cc-nav-hl .cc-ni-ico {
  color: var(--cc-neon);
  text-shadow: 0 0 10px var(--cc-glow);
}
.cc-nav-item.cc-nav-hl .cc-ni-lbl {
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--cc-neon);
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.35);
}
.cc-nav-item.cc-nav-hl:hover {
  border-color: var(--cc-neon);
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.22), rgba(11, 92, 57, 0.5));
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.35);
}
.cc-nav-item.cc-nav-hl:hover .cc-ni-lbl {
  color: #E9FFF3;
  text-shadow: 0 0 14px rgba(0, 255, 136, 0.6);
}
