/* ====================================================
   EXL PANEL — Global Styles
   ==================================================== */

@font-face {
  font-family: 'huy';
  src: url('/huy.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ——— Variables ——— */
:root {
  --bg:         #020712;
  --surface:    #080f20;
  --elev:       #0d1729;
  --elev2:      #122140;
  --line:       rgba(56,189,248,0.15);
  --line2:      rgba(148,163,184,0.12);
  --text:       #e8f0fe;
  --muted:      #7a90b0;
  --cyan:       #22d3ee;
  --cyan2:      #7dd3fc;
  --cyan-glow:  rgba(34,211,238,0.18);
  --cyan-dim:   rgba(34,211,238,0.08);
  --danger:     #f87171;
  --danger-dim: rgba(248,113,113,0.1);
  --ok:         #4ade80;
  --ok-dim:     rgba(74,222,128,0.12);
  --warn:       #fbbf24;
  --font:       'huy', ui-sans-serif, system-ui, sans-serif;
  --mono:       'huy', ui-monospace, monospace;
  --r:          14px;
  --r2:         9px;
  --header-h:   62px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.45), 0 1px 0 rgba(56,189,248,0.05);
  --page-pad:   clamp(14px, 3vw, 24px);
  --safe-top:   env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left:  env(safe-area-inset-left, 0px);
}

/* ——— Reset ——— */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  font-family: var(--font);
  color-scheme: dark;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100svh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

body.drawer-open {
  overflow: hidden;
  touch-action: none;
}

img, svg, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; text-decoration: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; border: none; background: none; }
button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

@media (max-width: 768px) {
  .cc-field input,
  .cc-field select,
  .cc-field textarea {
    font-size: 16px;
  }

  .cc-form-grid {
    grid-template-columns: 1fr;
  }

  .cc-toggle-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}

/* ——— Background atmosphere ——— */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 70% at 60% -20%, rgba(14,165,233,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 100% 50%, rgba(30,64,175,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 0% 80%, rgba(6,40,70,0.35) 0%, transparent 55%);
  animation: atmos 20s ease-in-out infinite alternate;
}

@keyframes atmos {
  0%   { opacity: 0.7; }
  100% { opacity: 1; }
}

/* ——— Keyframes ——— */

/* Blade slash: horizontal line sweeping across screen */
@keyframes blade-slash {
  0%   { transform: scaleX(0) translateX(-50%); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: scaleX(1) translateX(0); opacity: 0; }
}

/* Sword entering from right edge */
@keyframes sword-enter {
  0%   { transform: translateX(110%) rotate(-8deg); opacity: 0; }
  60%  { transform: translateX(-3%) rotate(2deg); opacity: 1; }
  100% { transform: translateX(0) rotate(0deg); opacity: 1; }
}

/* Glow pulse on the sword */
@keyframes sword-glow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(34,211,238,0.5)); }
  50%      { filter: drop-shadow(0 0 22px rgba(34,211,238,0.9)) drop-shadow(0 0 4px #fff); }
}

/* Content rise on page enter */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Card pop-in */
@keyframes pop-in {
  0%   { opacity: 0; transform: scale(0.95) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Spin */
@keyframes spin { to { transform: rotate(360deg); } }

/* Shimmer text */
@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 250% center; }
}

/* Step slide in */
@keyframes step-in {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ——— Page transition line ——— */
.blade-transition-line {
  position: fixed;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan) 40%, #fff 50%, var(--cyan) 60%, transparent);
  box-shadow: 0 0 20px var(--cyan), 0 0 60px rgba(34,211,238,0.4);
  transform-origin: left center;
  z-index: 9998;
  pointer-events: none;
  animation: blade-slash 0.7s cubic-bezier(0.22,1,0.36,1) both;
}

/* ——— Preloader ——— */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.preloader.preloader--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cc-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--line2);
  border-top-color: var(--cyan);
  animation: spin 0.7s linear infinite;
}

/* ——— Buttons ——— */
.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--r2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.15s, box-shadow 0.15s, transform 0.12s, border-color 0.15s;
  border: 1px solid transparent;
  white-space: nowrap;
}

.cc-btn:active { transform: scale(0.97); }

.cc-btn--primary {
  background: linear-gradient(135deg, #0891b2, #0369a1);
  color: #fff;
  border-color: rgba(56,189,248,0.3);
  box-shadow: 0 0 0 0 rgba(34,211,238,0);
}

.cc-btn--primary:hover {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  box-shadow: 0 0 20px rgba(34,211,238,0.3);
}

.cc-btn--accent {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  border-color: rgba(99,102,241,0.3);
}

.cc-btn--accent:hover {
  background: linear-gradient(135deg, #818cf8, #6366f1);
  box-shadow: 0 0 20px rgba(99,102,241,0.3);
}

.cc-btn--ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--line2);
}

.cc-btn--ghost:hover {
  color: var(--text);
  border-color: var(--line);
  background: var(--cyan-dim);
}

.cc-btn--danger {
  background: var(--danger-dim);
  color: var(--danger);
  border-color: rgba(248,113,113,0.25);
}

.cc-btn--danger:hover {
  background: rgba(248,113,113,0.18);
  box-shadow: 0 0 16px rgba(248,113,113,0.2);
}

.cc-btn--block { width: 100%; }

.cc-btn--sm {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 8px;
}

.cc-btn--glow:hover {
  box-shadow: 0 0 28px rgba(34,211,238,0.4);
  transform: translateY(-1px);
}

/* ——— Form fields ——— */
.cc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cc-field--full { grid-column: 1 / -1; }

.cc-field__lab {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.cc-field input,
.cc-field select,
.cc-field textarea {
  padding: 10px 14px;
  border-radius: var(--r2);
  border: 1px solid var(--line2);
  background: var(--elev);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.cc-field input:focus,
.cc-field select:focus,
.cc-field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.12);
}

.cc-field textarea { resize: vertical; min-height: 90px; }

.cc-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.cc-hint code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan2);
  background: var(--elev2);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ——— Form grid ——— */
.cc-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 14px;
}

.cc-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.cc-form-status {
  font-size: 12px;
  font-weight: 700;
}

.cc-form-status--ok  { color: var(--ok); }
.cc-form-status--err { color: var(--danger); }

/* ——— Toggle row ——— */
.cc-toggle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line2);
  cursor: pointer;
}

.cc-toggle-row:last-child { border-bottom: none; }

.cc-toggle-row--subtle { opacity: 0.9; }

.cc-toggle-row__text strong { font-size: 14px; display: block; margin-bottom: 3px; }
.cc-toggle-row__text small  { font-size: 12px; color: var(--muted); }

.cc-toggle-row input[type=checkbox] {
  width: 38px;
  height: 22px;
  flex-shrink: 0;
  appearance: none;
  background: var(--elev2);
  border: 1px solid var(--line2);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  margin: 2px 0 0;
}

.cc-toggle-row input[type=checkbox]::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.2s, background 0.2s;
}

.cc-toggle-row input[type=checkbox]:checked {
  background: var(--cyan);
  border-color: var(--cyan);
}

.cc-toggle-row input[type=checkbox]:checked::after {
  transform: translateX(16px);
  background: #fff;
}

/* ——— Pills / badges ——— */
.cc-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.cc-pill--accent {
  background: rgba(34,211,238,0.15);
  color: var(--cyan2);
  border: 1px solid rgba(34,211,238,0.25);
}

.cc-pill--muted {
  background: rgba(148,163,184,0.1);
  color: var(--muted);
  border: 1px solid var(--line2);
}

.cc-pill--ok {
  background: var(--ok-dim);
  color: var(--ok);
  border: 1px solid rgba(74,222,128,0.2);
}

.cc-pill--danger {
  background: var(--danger-dim);
  color: var(--danger);
  border: 1px solid rgba(248,113,113,0.2);
}

.cc-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cc-badge--vnc {
  background: rgba(99,102,241,0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.3);
}

/* ——— Dot status ——— */
.cc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.5;
  flex-shrink: 0;
}

.cc-dot--on {
  background: var(--ok);
  opacity: 1;
  box-shadow: 0 0 6px rgba(74,222,128,0.6);
  animation: pulse-ok 2s ease-in-out infinite;
}

@keyframes pulse-ok {
  0%, 100% { box-shadow: 0 0 6px rgba(74,222,128,0.6); }
  50%       { box-shadow: 0 0 12px rgba(74,222,128,0.9), 0 0 24px rgba(74,222,128,0.3); }
}

/* ——— Table ——— */
.cc-table-wrap {
  overflow: auto;
  max-width: 100%;
  border-radius: var(--r2);
  border: 1px solid var(--line2);
  -webkit-overflow-scrolling: touch;
}

.cc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.cc-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--elev);
  border-bottom: 1px solid var(--line2);
  white-space: nowrap;
}

.cc-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line2);
  vertical-align: middle;
  color: var(--text);
}

.cc-table tr:last-child td { border-bottom: none; }

.cc-table tbody tr:hover { background: rgba(56,189,248,0.04); }

.cc-table td.cc-empty {
  text-align: center;
  color: var(--muted);
  padding: 28px;
}

/* ——— Modal ——— */
.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, var(--safe-top)) max(12px, var(--safe-right)) max(12px, var(--safe-bottom)) max(12px, var(--safe-left));
}

.cc-modal[hidden] { display: none !important; }

.cc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.cc-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(520px, 100%);
  max-height: calc(100dvh - 24px - var(--safe-top) - var(--safe-bottom));
  overflow-y: auto;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(56,189,248,0.08);
  animation: pop-in 0.28s cubic-bezier(0.22,1,0.36,1) both;
}

.cc-modal__panel--wide { max-width: min(720px, 100%); }

.cc-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--line2);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}

.cc-modal__head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.cc-modal__body { padding: 20px 22px 24px; }

/* ——— Search ——— */
.cc-search {
  position: relative;
}

.cc-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.cc-search input {
  width: 100%;
  padding: 9px 12px 9px 38px;
  border-radius: var(--r2);
  border: 1px solid var(--line2);
  background: var(--elev);
  color: var(--text);
  font-size: 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.cc-search input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.1);
}

/* ——— Segment control ——— */
.cc-seg {
  display: inline-flex;
  align-items: center;
  border-radius: var(--r2);
  border: 1px solid var(--line2);
  background: var(--elev);
  overflow: hidden;
}

.cc-seg button {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
  border-right: 1px solid var(--line2);
}

.cc-seg button:last-child { border-right: none; }

.cc-seg button.is-active {
  background: var(--cyan);
  color: #000;
}

.cc-seg button:hover:not(.is-active) {
  color: var(--text);
  background: var(--cyan-dim);
}

.cc-seg--modal { margin-bottom: 18px; }

/* ——— Segment inside mass panel ——— */
.cc-mass-panel {
  padding-top: 4px;
}

.cc-mass-panel[hidden] { display: none !important; }

/* ——— KV grid (device info) ——— */
.cc-kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.cc-kv-grid dl { margin: 0; }

.cc-kv-grid dt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.cc-kv-grid dd {
  margin: 0;
  font-size: 13px;
  word-break: break-word;
}

/* ——— DL misc ——— */
.cc-dl {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.cc-dl div {
  display: flex;
  gap: 8px;
  font-size: 12px;
}

.cc-dl dt {
  color: var(--muted);
  white-space: nowrap;
  font-size: 11px;
}

/* ——— Empty card ——— */
.cc-empty-card, .xl-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  border: 1px dashed var(--line2);
  border-radius: var(--r);
  background: rgba(255,255,255,0.015);
}

/* ——— Toast ——— */
.cc-toast-host {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9997;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: calc(100vw - 48px);
  pointer-events: none;
}

.cc-toast {
  padding: 12px 18px;
  border-radius: var(--r2);
  background: var(--elev2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.22s, transform 0.22s;
  pointer-events: auto;
}

.cc-toast.cc-toast--show {
  opacity: 1;
  transform: translateX(0);
}

.cc-toast--ok   { border-color: rgba(74,222,128,0.4); }
.cc-toast--err  { border-color: rgba(248,113,113,0.4); }
.cc-toast--info { border-color: rgba(56,189,248,0.35); }

/* ——— Icon btn ——— */
.cc-icon-btn, .xl-icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line2);
  background: var(--elev);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.cc-icon-btn:hover, .xl-icon-btn:hover {
  color: var(--danger);
  border-color: rgba(248,113,113,0.3);
  background: var(--danger-dim);
}

.cc-icon-btn svg, .xl-icon-btn svg {
  width: 16px;
  height: 16px;
}

/* ——— Misc ——— */
.cc-muted { color: var(--muted); font-size: 13px; }
.cc-mono  { font-family: var(--mono); font-size: 12px; color: var(--muted); word-break: break-all; }

.cc-inline-link {
  color: var(--cyan2);
  text-decoration: underline;
  font-weight: 700;
}

.cc-nav-rule {
  height: 1px;
  background: var(--line2);
  margin: 10px 0;
}

/* ========================================
   LOGIN PAGE
   ======================================== */

body.cc-login-page {
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: var(--safe-bottom);
}

@media (min-width: 900px) {
  body.cc-login-page {
    flex-direction: row;
    overflow: hidden;
  }
}

/* Blade slash effect on login — removed, use glow instead */

/* Left atmospheric side */
.cc-login__side {
  display: none;
  flex: 1;
  position: relative;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  padding: 48px 56px;
  background: linear-gradient(145deg, #040c1a 0%, #020712 55%, #061428 100%);
}

@media (min-width: 900px) {
  .cc-login__side { display: flex; }
}

.cc-login__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 30% 35%, rgba(34,211,238,0.14) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 80% 70%, rgba(14,116,144,0.2) 0%, transparent 60%);
}

.cc-login__side::after {
  content: '';
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--cyan), transparent);
  opacity: 0.35;
}

.cc-login__side-content {
  position: relative;
  z-index: 1;
  max-width: 400px;
}

.cc-login__mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 18px;
  background: rgba(34,211,238,0.06);
  border: 1px solid rgba(56,189,248,0.2);
  box-shadow: 0 0 40px rgba(34,211,238,0.08);
}

.cc-login__mark img {
  width: 32px;
  height: auto;
  filter: drop-shadow(0 0 8px rgba(34,211,238,0.5));
}

.cc-login__tagline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 14px;
}

.cc-login__title {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--text);
}

.cc-login__desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Right panel */
.cc-login__right {
  flex: 1;
  width: 100%;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    max(28px, calc(16px + var(--safe-top)))
    max(20px, var(--safe-right))
    max(32px, calc(16px + var(--safe-bottom)))
    max(20px, var(--safe-left));
  position: relative;
  background: linear-gradient(180deg, rgba(8,15,32,0.98) 0%, var(--surface) 100%);
  border-left: none;
  min-height: min(100dvh, 100svh);
}

@media (min-width: 900px) {
  .cc-login__right {
    flex: 0 0 min(440px, 42vw);
    max-width: 480px;
    min-height: 100dvh;
    border-left: 1px solid var(--line);
    box-shadow: -24px 0 60px rgba(0,0,0,0.35);
  }
}

.cc-login__panel {
  width: 100%;
  max-width: 360px;
  animation: rise 0.55s cubic-bezier(0.22,1,0.36,1) 0.15s both;
}

.cc-login__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

@media (min-width: 900px) {
  .cc-login__brand { display: none; }
}

.cc-login__brand img { width: 22px; height: auto; opacity: 0.9; }

.cc-login__brand-name {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, #7dd3fc, #e0f9ff, var(--cyan));
  background-size: 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
}

.cc-login__step-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 8px;
}

.cc-login__heading {
  margin: 0 0 24px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.cc-login__err {
  padding: 10px 14px;
  border-radius: var(--r2);
  background: var(--danger-dim);
  border: 1px solid rgba(248,113,113,0.3);
  color: #fca5a5;
  font-size: 13px;
  margin-bottom: 16px;
}

.cc-login-form[hidden], #bootstrapBox[hidden] { display: none !important; }

.cc-login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: step-in 0.4s cubic-bezier(0.22,1,0.36,1) both;
}

#bootstrapBox:not([hidden]) {
  animation: step-in 0.4s cubic-bezier(0.22,1,0.36,1) both;
}

.cc-login__hint {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.cc-login__hint--top {
  margin: 0 0 12px;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
}

.cc-login__foot-hint {
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  opacity: 0.7;
}

/* ========================================
   HOME / CHART INTERNALS (referenced by JS)
   ======================================== */

/* donut & ring containers referenced by JS via className */
.cc-home-donut, .xl-donut { border-radius: 50%; }
.cc-home-ring, .xl-ring   { border-radius: 50%; }

/* ========================================
   SETTINGS PAGE — legacy class hooks
   ======================================== */

.cc-settings-tg-log.is-disabled { opacity: 0.4; pointer-events: none; }

/* ========================================
   DEVICE PAGE — legacy class hooks
   ======================================== */

.cc-table-wrap--device-sms { max-height: 480px; overflow-y: auto; }

/* ========================================
   VNC PAGE — legacy styles
   ======================================== */

.cc-btn--accent { /* already defined */ }
.cc-btn--icon {
  padding: 8px;
  min-width: 38px;
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  .blade-slash-anim::before,
  .blade-transition-line,
  .cc-login-form,
  .cc-login__panel,
  body::before {
    animation: none !important;
  }
  .cc-dot--on { animation: none; }
  .cc-spinner { animation: spin 1.2s linear infinite; }
}
