/* VMBOX skin (retro / oldschool) */

:root {
  --primary-color: #38bdf8;
  --secondary-color: #a78bfa;
  --accent-color: #fbbf24;
  --success-color: #34d399;
  --warning-color: #fb923c;
  --danger-color: #f87171;
  --dark-bg: #070a12;
  --light-bg: #0a1020;
  --card-bg: rgba(15, 23, 42, 0.92);
  /* Texto mais “slate” que branco puro — lê melhor e não some em fundos claros herdados */
  --text-primary: #e2e8f0;
  --text-secondary: rgba(203, 213, 225, 0.88);
  --text-muted-ui: #94a3b8;
  --border-color: rgba(124, 77, 255, 0.25);
  --header-height: 64px;
  --sidebar-width: 260px;
  --border-radius: 12px;
  --transition-speed: 0.25s;
  --shadow-sm: 0 1px 0 rgba(255,255,255,0.06), 0 12px 22px rgba(0,0,0,0.35);
  --shadow: 0 1px 0 rgba(255,255,255,0.06), 0 18px 35px rgba(0,0,0,0.45);
  --shadow-md: 0 1px 0 rgba(255,255,255,0.08), 0 26px 55px rgba(0,0,0,0.55);
  --shadow-lg: 0 1px 0 rgba(255,255,255,0.10), 0 38px 75px rgba(0,0,0,0.62);
}

/* Base styles — UI em sans; mono só no terminal (.cw-term) */
body.vmbox-skin-retro {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(124, 77, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at 80% 15%, rgba(56, 189, 248, 0.14), transparent 55%),
    radial-gradient(1200px 700px at 40% 90%, rgba(251, 191, 36, 0.06), transparent 60%),
    linear-gradient(180deg, #030712, #0f172a 35%, #020617);
  color: var(--text-primary);
  line-height: 1.55;
  text-shadow: none;
}

body.vmbox-skin-retro #root {
  color: var(--text-primary);
}

/* Bootstrap / tema “classic” costuma deixar fundo branco — texto claro some. Forçar superfícies escuras + cor legível */
body.vmbox-skin-retro .bg-white,
body.vmbox-skin-retro .bg-light,
body.vmbox-skin-retro .table-light,
body.vmbox-skin-retro .list-group-item-light {
  background-color: rgba(15, 23, 42, 0.96) !important;
  color: var(--text-primary) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
}

body.vmbox-skin-retro .text-dark,
body.vmbox-skin-retro .text-body {
  color: var(--text-primary) !important;
}

body.vmbox-skin-retro .text-muted {
  color: var(--text-muted-ui) !important;
}

body.vmbox-skin-retro .border,
body.vmbox-skin-retro .border-light {
  border-color: rgba(148, 163, 184, 0.22) !important;
}

body.vmbox-skin-retro .dropdown-menu {
  background-color: #0f172a !important;
  color: var(--text-primary) !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
}

body.vmbox-skin-retro .dropdown-item {
  color: var(--text-primary) !important;
}

body.vmbox-skin-retro .dropdown-item:hover,
body.vmbox-skin-retro .dropdown-item:focus {
  background: rgba(56, 189, 248, 0.12) !important;
  color: #f8fafc !important;
}

body.vmbox-skin-retro .modal-content {
  color: var(--text-primary) !important;
}

body.vmbox-skin-retro .modal-header .close,
body.vmbox-skin-retro .btn-close {
  filter: invert(1);
  opacity: 0.85;
}

body.vmbox-skin-retro .table {
  color: var(--text-primary) !important;
}

body.vmbox-skin-retro .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(2, 6, 23, 0.35) !important;
}

body.vmbox-skin-retro .table-hover tbody tr:hover {
  background-color: rgba(56, 189, 248, 0.08) !important;
  color: #f8fafc !important;
}

body.vmbox-skin-retro .panelContainer,
body.vmbox-skin-retro .container,
body.vmbox-skin-retro .container-fluid {
  color: var(--text-primary);
}

body.vmbox-skin-retro b,
body.vmbox-skin-retro strong {
  color: #f1f5f9;
  font-weight: 600;
}

body.vmbox-skin-retro .serverDetails,
body.vmbox-skin-retro .templateName,
body.vmbox-skin-retro .actTitle {
  color: var(--text-primary) !important;
}

body.vmbox-skin-retro .navbar-light .navbar-brand,
body.vmbox-skin-retro .navbar-light .nav-link {
  color: #cbd5e1 !important;
}

body.vmbox-skin-retro .navbar-light .nav-link:hover,
body.vmbox-skin-retro .navbar-light .nav-link.active {
  color: #38bdf8 !important;
}

/* ---- Contraste extra para telas com fundo claro (print do usuário) ---- */
:root {
  --cw-ink: #0b1224;          /* “preto azul escuro” */
  --cw-ink-muted: #1f2a44;    /* texto secundário no claro */
}

body.vmbox-skin-retro .serverDetailsCard,
body.vmbox-skin-retro .quickActionsCard,
body.vmbox-skin-retro .OsLogo,
body.vmbox-skin-retro .otherActions .action,
body.vmbox-skin-retro .tabcontent,
body.vmbox-skin-retro .nav-tabs {
  color: var(--cw-ink) !important;
}

body.vmbox-skin-retro .serverDetailsCard b,
body.vmbox-skin-retro .serverDetailsCard strong,
body.vmbox-skin-retro .quickActionsCard b,
body.vmbox-skin-retro .quickActionsCard strong,
body.vmbox-skin-retro .OsLogo .templateName,
body.vmbox-skin-retro .otherActions .action .actTitle {
  color: var(--cw-ink) !important;
}

body.vmbox-skin-retro .serverDetailsCard p,
body.vmbox-skin-retro .quickActionsCard p,
body.vmbox-skin-retro .serverDetailsCard small,
body.vmbox-skin-retro .quickActionsCard small {
  color: var(--cw-ink-muted) !important;
}

body.vmbox-skin-retro .nav-tabs .nav-link {
  color: rgba(11, 18, 36, 0.78) !important;
}

body.vmbox-skin-retro .nav-tabs .nav-link.active {
  color: var(--cw-ink) !important;
  border-bottom-color: rgba(56, 189, 248, 0.75) !important;
}

body.vmbox-skin-retro .nav-tabs .nav-link:hover {
  color: #0b1224 !important;
  border-bottom-color: rgba(56, 189, 248, 0.65) !important;
}

body.vmbox-skin-retro::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 1px,
    rgba(0, 0, 0, 0.00) 2px,
    rgba(0, 0, 0, 0.00) 5px
  );
  mix-blend-mode: overlay;
  opacity: 0.07;
  z-index: 99999;
}

/* Theme adjustments for dark mode */
body.dark-theme.vmbox-skin-retro {
  --card-bg: rgba(10, 16, 32, 0.78);
  --light-bg: #060814;
  --text-primary: #eaf2ff;
  --text-secondary: rgba(234, 242, 255, 0.72);
  --border-color: rgba(0, 229, 255, 0.20);
}

/* Navbar styles */
.navbar {
  background-color: var(--card-bg) !important;
  box-shadow: var(--shadow) !important;
  border-bottom: 1px solid var(--border-color) !important;
  transition: all var(--transition-speed) ease;
}

.navbar-brand {
  font-weight: 600;
  color: var(--primary-color) !important;
}

/* Sidebar styles */
.navbar-nav .nav-item .nav-link {
  color: var(--text-secondary) !important;
  padding: 0.75rem 1.25rem !important;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  margin-bottom: 0.25rem;
}

.navbar-nav .nav-item .nav-link:hover,
.navbar-nav .nav-item .nav-link:focus {
  color: var(--primary-color) !important;
  background-color: rgba(59, 130, 246, 0.05);
}

.navbar-nav .nav-item .nav-link.active {
  color: var(--primary-color) !important;
  background-color: rgba(59, 130, 246, 0.1);
  border-left: 3px solid var(--primary-color);
}

/* Cards styles */
.card {
  background-color: var(--card-bg) !important;
  border-radius: var(--border-radius) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow) !important;
  transition: all var(--transition-speed) ease !important;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-2px);
}

.card-header {
  background-color: var(--card-bg) !important;
  border-bottom: 1px solid var(--border-color) !important;
  padding: 1rem 1.25rem !important;
}

.card-body {
  padding: 1.25rem !important;
}

.card-title {
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
}

/* Table styles */
.table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.table th {
  color: #cbd5e1 !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
  background-color: rgba(2, 6, 23, 0.65) !important;
  border-bottom: 1px solid var(--border-color);
}

.table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  color: var(--text-primary) !important;
}

.table tbody tr:hover {
  background-color: rgba(59, 130, 246, 0.05);
}

/* Button styles */
.btn {
  border-radius: 0.375rem !important;
  padding: 0.5rem 1rem !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.22), rgba(0, 229, 255, 0.10)) !important;
  border-color: rgba(0, 229, 255, 0.65) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.12), 0 14px 30px rgba(0, 229, 255, 0.12);
}

.btn-primary:hover {
  background: linear-gradient(180deg, rgba(124, 77, 255, 0.28), rgba(124, 77, 255, 0.12)) !important;
  border-color: rgba(124, 77, 255, 0.75) !important;
}

/* PROGRESS (instalação / setup) */
.progress {
  background: rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(0, 229, 255, 0.25) !important;
  border-radius: 999px !important;
  height: 14px !important;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(124, 77, 255, 0.14), 0 16px 28px rgba(0,0,0,0.40);
}

.progress-bar {
  background:
    linear-gradient(90deg, rgba(0, 229, 255, 0.92), rgba(124, 77, 255, 0.92), rgba(255, 234, 0, 0.92)) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15), 0 0 22px rgba(0, 229, 255, 0.25);
  position: relative;
}

.progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(0,0,0,0.18) 0px,
    rgba(0,0,0,0.18) 10px,
    rgba(255,255,255,0.10) 10px,
    rgba(255,255,255,0.10) 20px
  );
  opacity: 0.55;
  animation: vmbox-progress-stripes 1.2s linear infinite;
}

@keyframes vmbox-progress-stripes {
  from { transform: translateX(-30px); }
  to { transform: translateX(30px); }
}

/* Banner VMware (cliente/iframe) */
#vmware-status-banner {
  background: linear-gradient(180deg, rgba(10, 16, 32, 0.92), rgba(10, 16, 32, 0.60)) !important;
  border-top: 1px solid rgba(0, 229, 255, 0.25) !important;
  box-shadow: 0 -2px 22px rgba(0,0,0,0.55) !important;
  color: var(--text-primary) !important;
  backdrop-filter: blur(10px);
}

#connection-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(124, 77, 255, 0.28);
  background: rgba(0, 0, 0, 0.25);
}

.btn-success {
  background-color: var(--success-color) !important;
  border-color: var(--success-color) !important;
}

.btn-warning {
  background-color: var(--warning-color) !important;
  border-color: var(--warning-color) !important;
}

.btn-danger {
  background-color: var(--danger-color) !important;
  border-color: var(--danger-color) !important;
}

.btn-secondary {
  background-color: #6B7280 !important;
  border-color: #6B7280 !important;
}

.btn-outline-primary {
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.35), rgba(56, 189, 248, 0.15)) !important;
  color: #f8fafc !important;
  border-color: rgba(56, 189, 248, 0.85) !important;
}

.btn-icon {
  width: 2.5rem !important;
  height: 2.5rem !important;
  padding: 0 !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Status indicators */
.badge {
  padding: 0.35em 0.65em !important;
  font-weight: 500 !important;
  border-radius: 9999px !important;
  font-size: 0.75em !important;
}

.badge-success {
  background-color: rgba(16, 185, 129, 0.1) !important;
  color: var(--success-color) !important;
}

.badge-warning {
  background-color: rgba(245, 158, 11, 0.1) !important;
  color: var(--warning-color) !important;
}

.badge-danger {
  background-color: rgba(239, 68, 68, 0.1) !important;
  color: var(--danger-color) !important;
}

.badge-info {
  background-color: rgba(59, 130, 246, 0.1) !important;
  color: var(--primary-color) !important;
}

/* Form control styles */
.form-control {
  border-radius: 0.375rem !important;
  padding: 0.5rem 0.75rem !important;
  border: 1px solid var(--border-color) !important;
  background-color: var(--card-bg) !important;
  color: var(--text-primary) !important;
}

.form-control:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Modal styles */
.modal-content {
  border-radius: var(--border-radius) !important;
  border: none !important;
  background-color: var(--card-bg) !important;
}

.modal-header {
  border-bottom: 1px solid var(--border-color) !important;
  background-color: var(--card-bg) !important;
}

.modal-footer {
  border-top: 1px solid var(--border-color) !important;
  background-color: var(--card-bg) !important;
}

/* Tab styles */
.nav-tabs {
  border-bottom: 1px solid var(--border-color) !important;
}

.nav-tabs .nav-link {
  color: var(--text-secondary) !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  background-color: transparent !important;
  padding: 0.75rem 1rem !important;
  border-radius: 0 !important;
  margin-right: 0.5rem !important;
  transition: all 0.2s ease !important;
}

.nav-tabs .nav-link:hover {
  color: var(--primary-color) !important;
  border-bottom-color: var(--accent-color) !important;
}

.nav-tabs .nav-link.active {
  color: var(--primary-color) !important;
  background-color: transparent !important;
  border-bottom-color: var(--primary-color) !important;
  font-weight: 500 !important;
}

/* Alert styles */
.alert {
  border-radius: var(--border-radius) !important;
  padding: 1rem 1.25rem !important;
  border-width: 1px !important;
}

.alert-info {
  background-color: rgba(59, 130, 246, 0.1) !important;
  border-color: rgba(59, 130, 246, 0.2) !important;
  color: var(--primary-color) !important;
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(16, 185, 129, 0.2) !important;
  color: var(--success-color) !important;
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.1) !important;
  border-color: rgba(245, 158, 11, 0.2) !important;
  color: var(--warning-color) !important;
}

.alert-danger {
  background-color: rgba(239, 68, 68, 0.1) !important;
  border-color: rgba(239, 68, 68, 0.2) !important;
  color: var(--danger-color) !important;
}

/* Custom Styles for VMBOX specific elements */
.serverAction {
  transition: all 0.2s ease;
  opacity: 0.9;
  border-radius: 0.375rem;
  padding: 0.5rem;
}

.serverAction:hover {
  transform: scale(1.05);
  opacity: 1;
  background-color: rgba(59, 130, 246, 0.1);
}

.serverAction.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.serverStatus {
  padding: 0.35em 0.65em;
  font-weight: 500;
  border-radius: 9999px;
  font-size: 0.75em;
}

/* OS Logo styling */
.OsLogo {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem;
  border-radius: var(--border-radius);
  background-color: var(--card-bg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) ease;
}

.OsLogo:hover {
  box-shadow: var(--shadow);
}

.OsLogo img {
  max-width: 48px;
  margin-bottom: 0.5rem;
}

/* Screenshot container */
.screenshotFrame {
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  position: relative;
}

.screenshotFrame img {
  width: 100%;
  transition: all 0.3s ease;
}

.screenshotFrame:hover img {
  transform: scale(1.02);
}

/* Separator line */
.seperatorLine {
  height: 1px;
  background-color: var(--border-color);
  margin: 1.5rem 0;
}

/* Action buttons styling */
.otherActions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.action {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-radius: var(--border-radius);
  background-color: var(--card-bg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) ease;
  cursor: pointer;
}

.action:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.action img {
  width: 24px;
  height: 24px;
  margin-right: 1rem;
}

.actTitle {
  font-weight: 500;
}

/* Usage charts */
.usage {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.graphTitle {
  padding: 0.75rem 1rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.graphTitle:hover {
  background-color: rgba(59, 130, 246, 0.05);
}

.graphTitle.active {
  color: var(--primary-color);
  background-color: rgba(59, 130, 246, 0.1);
}

.usageGraphContainer {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 1rem;
  height: 300px;
  box-shadow: var(--shadow-sm);
  margin-top: 1rem;
}

/* Scripts styling */
.scriptsList {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: 0.5rem;
}

/* Panel container */
.panelContainer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .panelHeader {
    flex-direction: column;
  }
  
  .otherActions {
    grid-template-columns: 1fr;
  }
  
  .usage {
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* Animation for tab content */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tabcontent {
  animation: fadeIn 0.3s ease-in;
}

/* Loading Animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s linear infinite;
}

/* Dark Mode Toggle */
.theme-toggle {
  width: 48px;
  height: 24px;
  border-radius: 12px;
  background-color: #6B7280;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle.dark {
  background-color: var(--primary-color);
}

.theme-toggle::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: white;
  top: 2px;
  left: 2px;
  transition: all 0.3s ease;
}

.theme-toggle.dark::after {
  left: 26px;
}

/* --- Deploy: barra nativa (quando visível) + overlay SSH --- */
body.vmbox-skin-retro.cw-deploy-active {
  padding-bottom: min(42vh, 520px);
}

.cw-native-deploy--hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.cw-install-shell {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2147483000;
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 240ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  max-width: 1120px;
  margin: 0 auto;
}

.cw-install-shell--active {
  opacity: 1;
  transform: translateY(0);
}

.cw-install-shell::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(167, 139, 250, 0.28), rgba(52, 211, 153, 0.2));
  opacity: 0.55;
  z-index: -1;
  filter: blur(14px);
  pointer-events: none;
}

.cw-install-shell__header {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.cw-install-shell__title {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 15px;
  color: #f8fafc;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}

.cw-install-shell__subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.cw-install-shell__badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(2, 6, 23, 0.75);
  color: #7dd3fc;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.cw-install-shell__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cw-install-shell__coach {
  pointer-events: auto;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.7);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.3), transparent 55%),
    rgba(15, 23, 42, 0.95);
  color: #e0f2fe;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease,
    box-shadow 0.18s ease;
}

.cw-install-shell__coach:hover {
  transform: translateY(-1px);
  border-color: rgba(191, 219, 254, 1);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.85);
}

.cw-install-shell__min {
  pointer-events: auto;
  width: 34px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(2, 6, 23, 0.6);
  color: #cbd5e1;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.cw-install-shell__min:hover {
  transform: translateY(-1px);
  background: rgba(56, 189, 248, 0.10);
  border-color: rgba(56, 189, 248, 0.35);
}

.cw-install-shell__min:active {
  transform: translateY(0);
}

.cw-install-shell--min .cw-install-shell__grid {
  grid-template-columns: 1fr;
}

.cw-install-shell--min .cw-term,
.cw-install-shell--min .cw-progress-card__hint,
.cw-install-shell--min .cw-progress-card__meta {
  display: none !important;
}

.cw-install-shell__grid {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  padding: 14px 14px 16px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 24px 64px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
}

@media (max-width: 980px) {
  .cw-install-shell__grid {
    grid-template-columns: 1fr;
  }
}

.cw-term {
  border-radius: 10px;
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), #020617);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 32px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.cw-term__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(30, 41, 59, 0.95);
  background: linear-gradient(180deg, #0f172a, #020617);
}

.cw-term__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.cw-term__dot--r { background: #ff5f56; }
.cw-term__dot--y { background: #ffbd2e; }
.cw-term__dot--g { background: #27c93f; }

.cw-term__title {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.cw-term__body {
  margin: 0;
  padding: 14px 14px 16px;
  min-height: 200px;
  max-height: 38vh;
  overflow: auto;
  font-size: 12.5px;
  line-height: 1.6;
  color: #cbd5e1;
  background: #010409;
  background-image: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(56, 189, 248, 0.12), transparent 55%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  scroll-behavior: smooth;
  border-top: 1px solid rgba(30, 41, 59, 0.85);
}

.cw-logline {
  margin: 6px 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.cw-logline__ts {
  color: #34d399;
  margin-right: 8px;
  font-weight: 600;
}

.cw-logline--info .cw-logline__msg { color: #94a3b8; }
.cw-logline--ok .cw-logline__msg { color: #4ade80; }
.cw-logline--err .cw-logline__msg { color: #fca5a5; }

.cw-caret {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -2px;
  border-left: 1px solid rgba(148, 163, 184, 0.85);
  animation: cw-caret-blink 1s steps(1) infinite;
}

@keyframes cw-caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.cw-progress-card {
  border-radius: 10px;
  border: 1px solid rgba(51, 65, 85, 0.95);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 14px 14px 12px;
}

.cw-progress-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cw-progress-card__label {
  font-weight: 600;
  font-size: 13px;
  color: #f1f5f9;
  line-height: 1.35;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.cw-progress-card__pct {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #38bdf8, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.35));
}

.cw-progress-track {
  position: relative;
  height: 22px;
  border-radius: 999px;
  overflow: visible;
  background: linear-gradient(180deg, #020617, #0f172a);
  border: 1px solid rgba(71, 85, 105, 0.85);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(56, 189, 248, 0.12);
}

.cw-progress-track::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cw-progress-fill {
  position: relative;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #6366f1 45%, #a855f7 80%, #22d3ee);
  box-shadow:
    0 0 24px rgba(56, 189, 248, 0.45),
    0 0 40px rgba(129, 140, 248, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateZ(0);
  transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cw-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 55%);
  opacity: 0.5;
  pointer-events: none;
}

.cw-progress-shimmer {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.10) 45%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-40%);
  animation: cw-shimmer 1.25s ease-in-out infinite;
}

.cw-progress-track[data-state="indeterminate"] .cw-progress-shimmer {
  opacity: 1;
}

.cw-progress-track[data-state="indeterminate"] .cw-progress-fill {
  width: 38% !important;
  opacity: 0.75;
  animation: cw-indeterminate 1.35s ease-in-out infinite;
  box-shadow: 0 0 26px rgba(168, 85, 247, 0.35);
}

@keyframes cw-shimmer {
  from { transform: translateX(-55%); }
  to { transform: translateX(55%); }
}

@keyframes cw-indeterminate {
  0% { transform: translateX(-35%); }
  50% { transform: translateX(35%); }
  100% { transform: translateX(-35%); }
}

.cw-progress-rocket {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  font-size: 16px;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 10px rgba(56, 189, 248, 0.4));
  transition: left 260ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 2;
}

.cw-progress-track[data-state="indeterminate"] .cw-progress-rocket {
  left: calc(50% - 10px) !important;
  animation: cw-rocket-idle 1.1s ease-in-out infinite;
}

@keyframes cw-rocket-idle {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-52%) translateX(2px); }
}

.cw-progress-card__meta {
  margin-top: 12px;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.cw-progress-card__hint {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: rgba(2, 6, 23, 0.65);
  color: #cbd5e1;
  font-size: 11px;
}

.cw-hint__icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: rgba(191, 219, 254, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.12);
  flex: 0 0 auto;
}

/* OS picker: premium cards */
.cw-os-card {
  border-radius: 14px !important;
  border: 1px solid rgba(124, 77, 255, 0.22) !important;
  background: rgba(10, 16, 32, 0.55) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease !important;
}

.cw-os-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md) !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
}

.cw-os-card:focus-within {
  border-color: rgba(59, 130, 246, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16), var(--shadow-md) !important;
}

@keyframes cw-os-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body.vmbox-skin-retro .cw-os-card {
  animation: cw-os-enter 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.vmbox-skin-retro .row > [class*="col-"].cw-os-card:nth-child(1) {
  animation-delay: 0.02s;
}
body.vmbox-skin-retro .row > [class*="col-"].cw-os-card:nth-child(2) {
  animation-delay: 0.07s;
}
body.vmbox-skin-retro .row > [class*="col-"].cw-os-card:nth-child(3) {
  animation-delay: 0.12s;
}
body.vmbox-skin-retro .row > [class*="col-"].cw-os-card:nth-child(4) {
  animation-delay: 0.17s;
}
body.vmbox-skin-retro .row > [class*="col-"].cw-os-card:nth-child(5) {
  animation-delay: 0.22s;
}
body.vmbox-skin-retro .row > [class*="col-"].cw-os-card:nth-child(6) {
  animation-delay: 0.27s;
}

body.vmbox-skin-retro .otherActions .action.cw-os-tile:nth-child(1) {
  animation: cw-os-enter 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.02s both;
}
body.vmbox-skin-retro .otherActions .action.cw-os-tile:nth-child(2) {
  animation: cw-os-enter 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.07s both;
}
body.vmbox-skin-retro .otherActions .action.cw-os-tile:nth-child(3) {
  animation: cw-os-enter 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}
body.vmbox-skin-retro .otherActions .action.cw-os-tile:nth-child(4) {
  animation: cw-os-enter 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.17s both;
}
body.vmbox-skin-retro .otherActions .action.cw-os-tile:nth-child(5) {
  animation: cw-os-enter 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}
body.vmbox-skin-retro .otherActions .action.cw-os-tile:nth-child(6) {
  animation: cw-os-enter 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.27s both;
}

body.vmbox-skin-retro .cw-os-card .cw-os-showcase {
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms ease;
  border-radius: 12px;
}

body.vmbox-skin-retro .cw-os-card:hover .cw-os-showcase {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.35), 0 0 0 1px rgba(56, 189, 248, 0.22);
}

body.vmbox-skin-retro .cw-os-card:hover .cw-os-showcase img {
  transform: scale(1.06);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.vmbox-skin-retro .cw-os-card .cw-os-showcase img {
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cw-os-card__desc {
  width: 100%;
  max-width: 52ch;
  margin: 8px auto 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  /* Sempre legível em fundo claro ou escuro */
  color: var(--cw-ink-muted) !important;
}

body.vmbox-skin-retro .cw-os-card .cw-os-card__desc {
  color: var(--cw-ink-muted) !important;
}

.cw-os-card__desc--row {
  margin: 10px 0 0;
  text-align: left;
  max-width: none;
}

/* layout antigo (cw-os-row) removido — causava blocos “bugados” */

/* Tiles modernos do seletor de SO */
body.vmbox-skin-retro .otherActions .action.cw-os-tile {
  display: grid !important;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "icon title"
    "icon desc";
  gap: 6px 12px;
  align-items: start !important;
  padding: 14px 14px !important;
}

body.vmbox-skin-retro .otherActions .action.cw-os-tile img {
  grid-area: icon;
  width: 56px !important;
  height: 56px !important;
  margin: 0 !important;
  object-fit: contain;
}

body.vmbox-skin-retro .otherActions .action.cw-os-tile .actTitle {
  grid-area: title;
  margin: 0;
}

body.vmbox-skin-retro .otherActions .action.cw-os-tile .cw-os-card__desc--row {
  grid-area: desc;
  margin: 0;
  color: var(--cw-ink-muted) !important; /* corrigir “Popular…” sem contraste */
}

body.vmbox-skin-retro .otherActions .action.cw-os-tile select,
body.vmbox-skin-retro .otherActions .action.cw-os-tile .dropdown-toggle,
body.vmbox-skin-retro .otherActions .action.cw-os-tile button {
  grid-column: 1 / -1;
  margin-top: 10px;
  justify-self: start;
}

/* Copiar (IP/Senha) + Toast */
.cw-copy-btn {
  appearance: none;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(2, 6, 23, 0.55);
  color: #7dd3fc;
  border-radius: 10px;
  width: 34px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.cw-copy-btn:hover { transform: translateY(-1px); background: rgba(56, 189, 248, 0.10); border-color: rgba(56, 189, 248, 0.55); }
.cw-copy-btn:active { transform: translateY(0); }

.cw-copy-btn--inline {
  margin-left: 10px;
  vertical-align: middle;
}

.cw-copy-btn--input {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

input.cw-has-copy {
  padding-right: 46px !important;
}

/* Senha: linha com mostrar/ocultar + copiar (flex) */
.cw-password-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
}

.cw-password-wrap input.cw-has-copy {
  flex: 1;
  min-width: 0;
  padding-right: 10px !important;
}

.cw-password-wrap .cw-copy-btn--input {
  position: static;
  transform: none;
  flex-shrink: 0;
}

.cw-toggle-visibility {
  appearance: none;
  flex-shrink: 0;
  width: 36px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(2, 6, 23, 0.45);
  color: #7dd3fc;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.cw-toggle-visibility:hover {
  transform: translateY(-1px);
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.55);
}

.cw-toggle-visibility__eye {
  width: 18px;
  height: 14px;
  border-radius: 60% 60% 50% 50%;
  border: 2px solid currentColor;
  position: relative;
  display: block;
  box-sizing: border-box;
}

.cw-toggle-visibility__eye::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.cw-toggle-visibility--on .cw-toggle-visibility__eye {
  opacity: 0.85;
}

/* Console em nova guia — destaque sem quebrar o clique do React */
body.vmbox-skin-retro .cw-console-launch-btn {
  position: relative;
  overflow: hidden;
  border-radius: 12px !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(124, 77, 255, 0.14)) !important;
  color: #e0f2fe !important;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease, border-color 200ms ease,
    filter 200ms ease;
}

body.vmbox-skin-retro .cw-console-launch-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.12) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

body.vmbox-skin-retro .cw-console-launch-btn:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(125, 211, 252, 0.75) !important;
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  filter: brightness(1.05);
}

body.vmbox-skin-retro .cw-console-launch-btn:hover::before {
  transform: translateX(100%);
}

body.vmbox-skin-retro .cw-console-launch-btn:active {
  transform: translateY(0) scale(0.99);
}

body.vmbox-skin-retro .cw-console-launch-btn .vmbox-btn-icon svg {
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.45));
}

body.vmbox-skin-retro .cw-console-launch-btn .vmbox-btn-icon--external svg {
  opacity: 0.95;
}

/* Bloco IP / credenciais */
body.vmbox-skin-retro .cw-credentials-panel.cw-credentials-panel {
  border-radius: 14px;
}

body.vmbox-skin-retro p.cw-server-details-block {
  position: relative;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(2, 6, 23, 0.25);
  line-height: 1.65;
}

body.vmbox-skin-retro p.cw-server-details-block .cw-copy-btn--inline {
  vertical-align: middle;
}

.cw-toast-host {
  position: fixed;
  right: 14px;
  bottom: 72px; /* acima do banner do WHMCS */
  z-index: 2147483500;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.cw-toast {
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(2, 6, 23, 0.82);
  color: #e2e8f0;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 600;
  max-width: 320px;
}

.cw-toast--in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Loading skeleton (subtle) */
.cw-skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.10);
}
.cw-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-40%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
  animation: cw-shimmer 1.25s ease-in-out infinite;
}

.cw-skeleton-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(13, 17, 23, 0.35);
  min-width: 96px;
  min-height: 56px;
}

/* Pós-instalação: coach de acesso (Linux / Windows) */
.cw-access-coach {
  position: fixed;
  right: 16px;
  bottom: 96px;
  z-index: 2147483600;
  max-width: 420px;
  color: #e5e7eb;
  font-size: 13px;
  pointer-events: none;
}

.cw-access-coach__chrome {
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.25), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.35), transparent 55%),
    rgba(15, 23, 42, 0.96);
  border-radius: 18px;
  border: 1px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.85);
  padding: 14px 14px 12px;
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.cw-access-coach__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.cw-access-coach__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.cw-access-coach__subtitle {
  font-size: 12px;
  color: rgba(226, 232, 240, 0.86);
}

.cw-access-coach__actions {
  display: flex;
  gap: 4px;
}

.cw-access-coach__btn {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  padding: 0;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.cw-access-coach__btn--ghost {
  background: rgba(15, 23, 42, 0.6);
}

.cw-access-coach__btn:hover {
  background: rgba(30, 64, 175, 0.9);
  border-color: rgba(191, 219, 254, 0.9);
  transform: translateY(-1px);
}

.cw-access-coach__tabs {
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(51, 65, 85, 0.9);
  margin-bottom: 10px;
}

.cw-access-coach__tab {
  position: relative;
  border: none;
  background: transparent;
  color: rgba(203, 213, 225, 0.9);
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.cw-access-coach__tab--active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.95), rgba(129, 140, 248, 0.95));
  color: #0b1120;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.7);
}

.cw-access-coach__body {
  border-radius: 14px;
  background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.4), transparent 60%),
    rgba(15, 23, 42, 0.9);
  padding: 10px 10px 8px;
}

.cw-access-coach__panel {
  display: none;
}

.cw-access-coach__panel--active {
  display: block;
}

.cw-access-coach__lead {
  font-size: 12px;
  margin-bottom: 6px;
}

.cw-access-coach__list {
  list-style: none;
  padding: 0;
  margin: 0 0 6px;
}

.cw-access-coach__list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.7);
  margin-bottom: 4px;
}

.cw-access-coach__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(148, 163, 184, 0.95);
}

.cw-access-coach__value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  font-size: 11px;
}

.cw-access-coach__hint-text {
  font-size: 11px;
  color: rgba(226, 232, 240, 0.86);
  margin: 0 0 6px;
}

.cw-access-coach__action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.7);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.2), transparent 55%),
    rgba(15, 23, 42, 0.95);
  color: #e0f2fe;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  gap: 6px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease,
    box-shadow 0.18s ease;
}

.cw-access-coach__action-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.95);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.9), rgba(129, 140, 248, 0.95));
  color: #020617;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.85);
}

.cw-access-coach__media {
  border-radius: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
}

.cw-access-coach__media-label {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.9);
}

.cw-access-coach__gif {
  display: block;
  width: 100%;
  max-height: 150px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.9);
}

.cw-access-coach__footer {
  margin-top: 8px;
  font-size: 10px;
  color: rgba(148, 163, 184, 0.95);
}

.cw-access-coach--min .cw-access-coach__body,
.cw-access-coach--min .cw-access-coach__footer {
  display: none;
}

.cw-access-coach--min .cw-access-coach__chrome {
  padding-bottom: 6px;
}

.cw-access-coach--hidden {
  display: none;
}

.cw-access-coach--visible {
  animation: cw-os-enter 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}