:root {
  --bg: #0f1115;
  --bg-elevated: #171a21;
  --bg-card: #1b1f28;
  --border: #2a2f3a;
  --text: #e8eaed;
  --text-dim: #9aa1ac;
  --accent: #8b3fd4;
  --accent-hover: #a565e8;
  --danger: #e5484d;
  --danger-hover: #ff6167;
  --radius: 14px;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #050609;
  color: var(--text);
  min-height: 100vh;
}

.bg-decor {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  background: #050609;
}

.glow {
  position: absolute;
  width: 65vw;
  height: 22vh;
  filter: blur(45px);
  border-radius: 50%;
}

.glow-a {
  left: -15%;
  bottom: 6%;
  background: linear-gradient(90deg, transparent, #8b3fd4 35%, #e6c9ff 55%, transparent);
  transform: rotate(-9deg);
  opacity: 0.5;
  animation: driftA 17s ease-in-out infinite alternate;
}

.glow-b {
  right: -15%;
  bottom: 10%;
  background: linear-gradient(270deg, transparent, #6b2fb3 35%, #c9a6ff 55%, transparent);
  transform: rotate(9deg);
  opacity: 0.45;
  animation: driftB 19s ease-in-out infinite alternate;
}

@keyframes driftA {
  0%   { transform: translate(0, 0) rotate(-9deg); opacity: 0.35; }
  100% { transform: translate(5%, -4%) rotate(-6deg); opacity: 0.65; }
}

@keyframes driftB {
  0%   { transform: translate(0, 0) rotate(9deg); opacity: 0.3; }
  100% { transform: translate(-5%, -3%) rotate(6deg); opacity: 0.6; }
}

.topbar, main {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(6px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-home {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

.brand-home:hover .brand-mark {
  filter: drop-shadow(0 0 18px rgba(147, 79, 255, 0.75));
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  filter: drop-shadow(0 0 12px rgba(147, 79, 255, 0.5));
}

.brand-mark.round {
  border-radius: 50%;
}

.brand h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.3px;
}

.brand p {
  margin: 2px 0 0;
  color: var(--text-dim);
  font-size: 13px;
}

.module-home {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  min-height: calc(100vh - 91px);
  padding: 60px 20px;
}

.module-home-title {
  margin: 0;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.watch-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 48px;
  max-width: 560px;
}

.watch-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.watch-bubble-add {
  border: 2px dashed var(--border);
  border-radius: 22px;
  font-size: 40px;
  line-height: 1;
  color: var(--text-dim);
}

.watch-bubble-add:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.watch-item-admin {
  position: absolute;
  top: -6px;
  right: -6px;
  display: flex;
  gap: 4px;
  z-index: 2;
}

.watch-item-admin button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.watch-item-admin button:hover {
  background: var(--accent);
  color: white;
}

.watch-item-admin .watch-remove-btn:hover {
  background: var(--danger);
}

.watch-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.2px;
}

.watch-bubble {
  width: 148px;
  height: 148px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.watch-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 22px;
  filter: drop-shadow(0 0 14px rgba(147, 79, 255, 0.55));
  transition: filter 0.22s ease;
}

.watch-bubble-methods img {
  object-fit: contain;
  border-radius: 0;
}

.watch-bubble-utilidades img {
  border-radius: 50%;
}

.watch-bubble-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.watch-bubble:hover {
  transform: translateY(-4px) scale(1.08);
}

.watch-bubble:hover img {
  filter: drop-shadow(0 0 22px rgba(147, 79, 255, 0.8));
}

.watch-bubble:active {
  transform: translateY(-1px) scale(1.03);
}

.watch-bubble:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 22px;
}

main {
  padding: 32px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.main-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 40px 0;
}

.toolbar-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
}

.tab-btn {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}

.tab-btn:hover { color: var(--text); }

.tab-btn.active {
  background: var(--accent);
  color: white;
}

.tabs-dropdown {
  position: relative;
}

.tab-btn.dropdown-toggle {
  white-space: nowrap;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 160px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 20;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.dropdown-menu.hidden {
  display: none;
}

.dropdown-item {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover {
  background: var(--bg-card);
  color: var(--text);
}

.dropdown-item.active {
  background: var(--accent);
  color: white;
}

.dropdown-item.hidden {
  display: none;
}

.dropdown-menu.open-inline {
  position: static;
  display: flex;
  flex-direction: row;
  min-width: 0;
  background: transparent;
  border: none;
  padding: 0;
  gap: 4px;
  box-shadow: none;
  z-index: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 84px));
  gap: 20px;
}

.card {
  width: 84px;
  height: 84px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.card:hover {
  transform: translateY(-3px) scale(1.04);
  filter: drop-shadow(0 8px 16px rgba(139, 63, 212, 0.5));
}

.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.card-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.parceria-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.parceria-name {
  max-width: 84px;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-dim);
}

.empty.hidden { display: none; }

/* Buttons */
.btn {
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
}
.btn-danger:hover { background: var(--danger); color: white; }

.btn-copy {
  background: var(--accent);
  color: white;
  padding: 8px 14px;
  font-size: 13px;
  white-space: nowrap;
}
.btn-copy:hover { background: var(--accent-hover); }
.btn-copy.copied { background: #2fbf71; }

#viewDownloadBlock .code-box {
  margin-bottom: 10px;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px;
  font-size: 15px;
  text-decoration: none;
}

/* Overlay / Modal */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 9, 0.7);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.overlay.hidden { display: none; }

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

.modal-small {
  max-width: 360px;
}

.modal-small h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.confirm-text {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--text); }

.modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg-card);
}

.modal-header h2 {
  margin: 0;
  font-size: 19px;
}

.calc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.materials-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.material-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #0b0d11;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
}

.material-line .material-qty-value {
  color: var(--text-dim);
  font-family: 'Cascadia Code', 'Consolas', monospace;
}

.material-line.result {
  border-color: var(--accent);
}

.material-line.result .material-qty-value {
  color: var(--accent-hover);
  font-weight: 600;
}

.materials-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 10px;
}

.material-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.material-row .material-name {
  flex: 2;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}

.material-row .material-qty {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}

.material-row input:focus {
  outline: none;
  border-color: var(--accent);
}

.material-row .btn-remove {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}
.material-row .btn-remove:hover { color: var(--danger); }

.section { margin-bottom: 22px; }
.section.hidden { display: none; }
.section h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-dim);
  margin: 0 0 10px;
}

.command-item {
  background: #0b0d11;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.code-box code {
  font-family: 'Cascadia Code', 'Consolas', monospace;
  font-size: 14px;
  color: #7ee787;
  white-space: pre-wrap;
  word-break: break-word;
  flex: 1;
}

.commands-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.command-item .btn-remove {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}
.command-item .btn-remove:hover { color: var(--danger); }

.command-desc-text {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.4;
}

.command-desc-input {
  width: 100%;
  margin-bottom: 8px;
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--text-dim);
  font-size: 12.5px;
  font-family: inherit;
  line-height: 1.4;
  resize: none;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
}
.command-desc-input:focus {
  outline: none;
  border-style: solid;
  border-color: var(--accent);
  color: var(--text);
}

.add-command-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
}

.add-command-inputs {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.add-command-row input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--text);
  font-size: 13px;
  font-family: 'Cascadia Code', 'Consolas', monospace;
}
.add-command-row input:focus {
  outline: none;
  border-color: var(--accent);
}
.add-command-row #newCommandDescInput {
  font-family: inherit;
  font-size: 12.5px;
}

.add-command-row > .btn {
  align-self: center;
}

.steps-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.steps-list li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

/* Form */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.field-row {
  display: flex;
  gap: 12px;
}

.field-row .field {
  flex: 1;
}

.checkbox-field {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.field span {
  font-size: 13px;
  color: var(--text-dim);
}

.field input[type="text"],
.field input[type="password"],
.field input[type="number"],
.field textarea,
.field select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}

.field input[type="file"] {
  color: var(--text-dim);
  font-size: 13px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
}

.icon-preview {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  margin-top: 6px;
}
.icon-preview.hidden { display: none; }

.image-field-preview {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 180px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--bg-elevated);
  margin-top: 6px;
}
.image-field-preview.hidden { display: none; }

.view-image {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: var(--bg-elevated);
  border-radius: 12px;
  margin-bottom: 20px;
}
.view-image.hidden { display: none; }

.hidden { display: none !important; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
  z-index: 100;
}

/* Login page */
.auth-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 360px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

.auth-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
}

.auth-card h1 {
  margin: 0 0 4px;
  font-size: 20px;
}

.auth-sub {
  margin: 0 0 24px;
  color: var(--text-dim);
  font-size: 13px;
}

.auth-card .field {
  text-align: left;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}

.auth-error {
  color: var(--danger);
  font-size: 13px;
  margin: -6px 0 14px;
}

.auth-hint {
  margin: 16px 0 0;
  color: var(--text-dim);
  font-size: 12px;
}

/* User bar */
.user-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-bar .username {
  font-size: 13px;
  color: var(--text-dim);
}

.user-bar .role-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 2px 6px;
}

/* User management */
/* Botão "Utilizadores" no topo */
.btn-users { display: inline-flex; align-items: center; gap: 8px; }
.btn-users svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; flex: none; }
.btn-users:hover svg { stroke: var(--accent-hover); }

/* Gestão de utilizadores */
.modal-users { max-width: 600px; }
.users-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; padding-right: 36px; }
.users-head h2 { margin: 0; }
.users-count {
  font-size: 12px;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
}

.users-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.user-row {
  --role: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.user-row:hover { border-color: #3a404d; }
.user-row.editing { border-color: color-mix(in srgb, var(--role) 55%, var(--border)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--role) 25%, transparent); }
.user-row.role-admin { --role: var(--accent-hover); }
.user-row.role-aion2 { --role: #e8b64a; }
.user-row.role-aion { --role: #4a9bf2; }
.user-row.role-user { --role: #7ee787; }

.user-main {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
}

.user-avatar {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 15px;
  color: var(--role);
  background: color-mix(in srgb, var(--role) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--role) 45%, transparent);
}

.user-row .user-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.user-name-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.user-name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-me {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-dim);
  background: var(--bg-elevated);
  border-radius: 6px;
  padding: 1px 6px;
}
.user-sub { font-size: 12px; color: var(--text-dim); }

.user-row .role-badge {
  flex: none;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
  color: var(--role);
  border: 1px solid color-mix(in srgb, var(--role) 60%, transparent);
  background: color-mix(in srgb, var(--role) 10%, transparent);
  border-radius: 6px;
  padding: 3px 8px;
}

.user-actions { display: flex; gap: 6px; flex: none; }
.user-act {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.user-act:hover { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, var(--bg-elevated)); }
.user-act.danger { font-size: 19px; }
.user-act.danger:hover { color: #fff; border-color: var(--danger); background: color-mix(in srgb, var(--danger) 30%, var(--bg-elevated)); }

.user-panel { border-top: 1px solid var(--border); padding: 14px 12px 12px; }
.user-panel .field { margin-bottom: 12px; }
.user-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.user-edit-actions { display: flex; justify-content: flex-end; gap: 8px; }
.user-confirm { display: flex; flex-direction: column; gap: 12px; font-size: 13px; color: var(--text-dim); }

.users-create {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 16px 16px 4px;
}
.users-create h3 { margin: 0 0 12px; font-size: 15px; }
.users-create .modal-actions { margin-top: 4px; margin-bottom: 12px; }

@media (max-width: 560px) {
  .user-edit-grid { grid-template-columns: 1fr; }
}

.empty-icon {
  display: block;
  font-size: 34px;
  margin-bottom: 10px;
  opacity: 0.7;
}

.vendas-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.vendas-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.stat-tile-accent {
  border-color: rgba(139, 63, 212, 0.5);
  background: linear-gradient(160deg, rgba(139, 63, 212, 0.16), var(--bg-card) 65%);
}

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-dim);
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.stat-tile-accent .stat-value {
  color: var(--accent-hover);
}

.vendas-table-wrap {
  overflow-x: auto;
}

.vendas-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 640px;
}

.vendas-row {
  display: grid;
  grid-template-columns: 2fr 0.9fr 1fr 1.2fr 1.4fr 32px;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.vendas-row .btn-remove {
  justify-self: end;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}

.vendas-row .btn-remove:hover { color: var(--danger); }

.vendas-row:not(.vendas-head):hover {
  border-color: var(--accent);
  background: #20242f;
}

.vendas-row.vendas-head {
  background: transparent;
  border: none;
  padding: 0 16px;
  color: var(--text-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vendas-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  min-width: 0;
}

.vendas-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vendas-item-icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.vendas-row .vendas-num {
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
}

.vendas-row .vendas-value {
  font-variant-numeric: tabular-nums;
  color: var(--accent-hover);
  font-weight: 600;
}

.vendas-seller {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 13px;
}

.vendas-seller-avatar {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
}

.vendas-date {
  color: var(--text-dim);
  font-size: 13px;
}

/* Aion 2 Guide */
.watch-bubble-aion .aion-mark {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #f3e9ff;
  background: radial-gradient(circle at 30% 25%, #6b2fb3, #1b1030 70%);
  border: 1px solid rgba(201, 166, 255, 0.35);
  box-shadow: 0 0 14px rgba(147, 79, 255, 0.55);
  transition: box-shadow 0.22s ease;
}

.watch-bubble-aion .aion-mark b {
  color: #e8b64a;
  font-size: 32px;
}

.watch-bubble-aion:hover .aion-mark {
  box-shadow: 0 0 22px rgba(147, 79, 255, 0.8);
}

.guide-view {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 40px 80px;
}

.guide-hero {
  background: linear-gradient(160deg, rgba(139, 63, 212, 0.22), var(--bg-elevated) 65%);
  border: 1px solid rgba(139, 63, 212, 0.45);
  border-radius: 18px;
  padding: 26px 28px;
  margin-bottom: 24px;
}

.guide-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #e8b64a;
}

.guide-hero h1 {
  margin: 6px 0 14px;
  font-size: 26px;
  line-height: 1.2;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-meta span {
  font-size: 12px;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
}

.guide-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.guide-toc {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}

.guide-toc-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  padding: 4px 8px 8px;
}

.guide-toc a {
  font-size: 12.5px;
  color: var(--text-dim);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
  line-height: 1.3;
}

.guide-toc a b {
  display: inline-block;
  min-width: 20px;
  color: var(--accent-hover);
}

.guide-toc a:hover {
  background: var(--bg-card);
  color: var(--text);
}

.guide-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-section {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  scroll-margin-top: 16px;
}

.guide-section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 17px;
  letter-spacing: 0.3px;
}

.guide-num {
  flex: none;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border-radius: 9px;
  background: var(--accent);
  color: white;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-sub {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  margin: 18px 0 10px;
}

.guide-sub:first-of-type { margin-top: 0; }

.guide-section p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.guide-section > p:first-child,
.guide-section h2 + p { margin-top: 0; }

.guide-callout {
  background: rgba(139, 63, 212, 0.1);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 10px 14px;
}

.guide-callout strong { color: var(--accent-hover); }

.guide-legend {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #0b0d11;
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
}

.guide-legend.p-red { border-left-color: #e5484d; }
.guide-legend.p-orange { border-left-color: #f08c3a; }
.guide-legend.p-yellow { border-left-color: #e8c94a; }
.guide-legend.p-none { border-left-color: var(--border); }

.guide-legend strong { font-size: 13px; }

.guide-legend p {
  margin: 4px 0 0 !important;
  font-size: 13px !important;
  color: var(--text-dim) !important;
}

.guide-list,
.guide-steps {
  margin: 12px 0 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  line-height: 1.5;
}

.guide-section h2 + .guide-list,
.guide-section h2 + .guide-steps { margin-top: 0; }

.guide-list li::marker { color: var(--accent-hover); }

.guide-steps li::marker {
  color: var(--accent-hover);
  font-weight: 700;
}

.guide-table-wrap {
  overflow-x: auto;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.guide-section h2 + .guide-table-wrap { margin-top: 0; }

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.guide-table th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  background: var(--bg-card);
  padding: 10px 14px;
  white-space: nowrap;
}

.guide-table td {
  padding: 9px 14px;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}

.guide-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

.guide-table td.prio { text-align: center; }

.guide-table td.stars {
  color: #e8b64a;
  letter-spacing: 1px;
  white-space: nowrap;
}

.stars-off { color: var(--border); }

.prio-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 14px;
  line-height: 1;
}

.prio-dot.p-none { color: var(--text-dim); }

.tier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-weight: 800;
  font-size: 13px;
}

.tier-s { background: rgba(232, 182, 74, 0.18); color: #e8b64a; }
.tier-a { background: rgba(139, 63, 212, 0.22); color: var(--accent-hover); }
.tier-b { background: var(--bg-card); color: var(--text-dim); }

.guide-check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.guide-check label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0b0d11;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.guide-check label:hover { border-color: var(--accent); }

.guide-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex: none;
}

.guide-check input:checked + span {
  color: var(--text-dim);
  text-decoration: line-through;
}

.guide-check-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

@media (max-width: 860px) {
  .guide-view { padding: 16px 16px 60px; }
  .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .guide-toc {
    position: static;
    max-height: none;
    flex-direction: row;
    overflow-x: auto;
    padding: 8px;
  }
  .guide-toc-title { display: none; }
  .guide-toc a { white-space: nowrap; }
  .guide-hero { padding: 20px; }
  .guide-hero h1 { font-size: 21px; }
  .guide-section { padding: 18px 16px; }
}

.guide-check-actions-start { justify-content: flex-start; }

/* Checklist diária */
.watch-bubble-aion .cl-mark {
  font-size: 64px;
  font-weight: 700;
  color: #7ee787;
  background: radial-gradient(circle at 30% 25%, #2f6b4a, #0f1f18 70%);
  border-color: rgba(126, 231, 135, 0.35);
  box-shadow: 0 0 14px rgba(126, 231, 135, 0.35);
}

.watch-bubble-aion:hover .cl-mark {
  box-shadow: 0 0 22px rgba(126, 231, 135, 0.6);
}

.checklist-view {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 40px 80px;
}

.cl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.cl-title {
  margin: 0;
  font-size: 22px;
}

.cl-datebar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.cl-nav {
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
  flex: none;
}

.cl-date-label {
  position: relative;
  flex: 1;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: border-color 0.15s ease;
}

.cl-date-label:hover { border-color: var(--accent); }

.cl-date-label small {
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cl-date-label input[type="date"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

#clToday { height: 44px; flex: none; }
#clToday:disabled { opacity: 0.45; cursor: default; }

.cl-progress-card {
  background: linear-gradient(160deg, rgba(139, 63, 212, 0.18), var(--bg-elevated) 65%);
  border: 1px solid rgba(139, 63, 212, 0.45);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
}

.cl-progress-top {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.cl-prog-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
}

.cl-progress-top strong { font-size: 18px; }

.cl-prog-pct {
  margin-left: auto;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-hover);
  font-variant-numeric: tabular-nums;
}

.cl-bar {
  display: block;
  height: 10px;
  background: #0b0d11;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.cl-bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #7ee787);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.cl-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-dim);
}

.cl-stats b {
  color: var(--text);
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}

.cl-notice {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-dim);
  background: rgba(232, 182, 74, 0.08);
  border-left: 3px solid #e8b64a;
  border-radius: 0 10px 10px 0;
  padding: 10px 14px;
}

.cl-state {
  text-align: center;
  color: var(--text-dim);
  padding: 30px 20px;
}

.cl-state p { margin: 0 0 12px; }

.cl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  align-items: start;
  transition: opacity 0.15s ease;
}

.cl-grid.cl-loading {
  opacity: 0.45;
  pointer-events: none;
}

.cl-cat {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.cl-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.cl-cat-head h3 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.6px;
}

.cl-cat-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-hover);
  background: rgba(139, 63, 212, 0.15);
  border-radius: 999px;
  padding: 3px 10px;
  font-variant-numeric: tabular-nums;
}

.guide-check.cl-check {
  grid-template-columns: 1fr;
  gap: 6px;
}

.guide-check.cl-check label { min-height: 42px; }

.guide-check input:disabled + span { opacity: 0.6; }
.guide-check label:has(input:disabled) { cursor: default; }

.cl-empty {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0;
  padding: 20px 0;
}

.cl-result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cl-result-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0b0d11;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13.5px;
}

.cl-result-list .cl-result-title { flex: 1; }

.cl-result-list small {
  color: var(--text-dim);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.cl-mark-icon {
  width: 20px;
  height: 20px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.cl-result-list li.done .cl-mark-icon { background: rgba(126, 231, 135, 0.15); color: #7ee787; }
.cl-result-list li.missed .cl-mark-icon { background: rgba(229, 72, 77, 0.15); color: var(--danger); }
.cl-result-list li.missed .cl-result-title { color: var(--text-dim); }

.cl-hist-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.cl-hist-hint {
  font-size: 13px;
  color: var(--text-dim);
}

.cl-hist-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
}

.cl-hist-pick input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--text);
  font-family: inherit;
  color-scheme: dark;
}

.cl-hist-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cl-hist-row {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cl-hist-row.open { border-color: rgba(139, 63, 212, 0.55); }

.cl-hist-head {
  width: 100%;
  display: grid;
  grid-template-columns: 170px minmax(80px, 1fr) 80px 64px;
  align-items: center;
  gap: 16px;
  background: transparent;
  border: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  padding: 14px 18px;
  cursor: pointer;
}

.cl-hist-head:hover { background: rgba(255, 255, 255, 0.02); }

.cl-hist-when {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.cl-hist-when b { font-size: 14px; }

.cl-hist-when span {
  font-size: 12.5px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.cl-bar-small { height: 8px; }

.cl-hist-nums {
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cl-hist-pct {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-hover);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cl-hist-body {
  display: none;
  padding: 0 18px 18px;
}

.cl-hist-row.open .cl-hist-body { display: block; }

.cl-hist-summary {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-dim);
}

.cl-hist-body .cl-cat { background: var(--bg-card); }

.cl-hist-edit { margin-top: 12px; }

.cl-hist-more {
  display: block;
  margin: 16px auto 0;
}

@media (max-width: 860px) {
  .checklist-view { padding: 16px 16px 60px; }
  .cl-datebar { flex-wrap: wrap; }
  .cl-date-label { order: -1; flex-basis: 100%; }
  .cl-datebar .cl-nav { flex: 1; }
  #clToday { flex: 1; }
  .cl-grid { grid-template-columns: minmax(0, 1fr); }
  .cl-hist-head {
    grid-template-columns: 1fr auto auto;
    gap: 8px 12px;
    padding: 12px 14px;
  }
  .cl-hist-head .cl-bar { grid-column: 1 / -1; grid-row: 2; }
  .cl-hist-body { padding: 0 14px 14px; }
}

/* Checklist — Performance / Histórico */
.cl-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.cl-section-title {
  margin: 24px 0 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
}

.cl-section-head .cl-section-title { margin: 0; }

.cl-perf-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  transition: opacity 0.15s ease;
}

.cl-perf-summary .stat-value { font-variant-numeric: tabular-nums; }

.cl-tile-sub {
  font-size: 12.5px;
  color: var(--text-dim);
}

.cl-perf-period { transition: opacity 0.15s ease; }

.cl-perf-summary.cl-loading,
.cl-perf-period.cl-loading { opacity: 0.45; }

.cl-chart-card { padding: 12px 14px; }

.cl-chart-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 240px;
}

.cl-chart-grid {
  stroke: var(--border);
  stroke-width: 1;
}

.cl-chart-label {
  fill: var(--text-dim);
  font-size: 11px;
  font-family: inherit;
}

.cl-chart-line {
  fill: none;
  stroke: var(--accent-hover);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.cl-chart-dot {
  fill: var(--bg-elevated);
  stroke: #7ee787;
  stroke-width: 2.5;
}

.cl-perf-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.cl-perf-row {
  display: grid;
  grid-template-columns: 90px 1fr 70px;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.cl-perf-row:hover { border-color: var(--accent); }

.cl-perf-date { font-weight: 600; }

.cl-perf-nums {
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.cl-perf-pct {
  text-align: right;
  font-weight: 700;
  color: var(--accent-hover);
  font-variant-numeric: tabular-nums;
}

.cl-perf-row-empty .cl-perf-nums,
.cl-hist-row-empty .cl-hist-nums {
  font-style: italic;
  font-weight: 400;
  font-size: 12.5px;
}

.cl-detail-title {
  margin: 0 0 4px;
  font-size: 15px;
}

.cl-missed {
  margin-bottom: 14px;
  border-color: rgba(229, 72, 77, 0.35);
}

.cl-count-missed {
  color: var(--danger);
  background: rgba(229, 72, 77, 0.15);
}

.cl-empty-small {
  padding: 4px 0;
  font-size: 13px;
}

.cl-cat-collapsible .cl-cat-head { margin-bottom: 0; }

.cl-cat-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cl-cat-toggle h3 { flex: 1; }

.cl-chevron {
  color: var(--text-dim);
  font-size: 13px;
  transition: transform 0.15s ease;
}

.cl-cat-collapsible .cl-result-list { display: none; }

.cl-cat-collapsible.open .cl-result-list {
  display: flex;
  margin-top: 12px;
}

.cl-cat-collapsible.open .cl-chevron { transform: rotate(180deg); }

@media (max-width: 860px) {
  .cl-perf-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-perf-summary .stat-value { font-size: 22px; }
  .cl-perf-row { grid-template-columns: 70px 1fr auto; padding: 10px 12px; }
  .cl-result-list li { flex-wrap: wrap; }
  .cl-result-list small { flex-basis: 100%; padding-left: 30px; }
}

/* Tutoriais AION2 (reutiliza as bolhas e o layout .guide-* do Aion 2 Guide) */
.watch-bubble-aion .tut-mark { font-size: 58px; }

.watch-bubble-aion .tut-mark-text {
  font-size: 30px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.watch-bubble-aion .tut-mark-text b { font-size: 22px; margin-left: 2px; }

.tut-back { margin-bottom: 16px; }

/* Bolhas com ícone circular (PNG transparente) */
.watch-bubble-icon img {
  object-fit: contain;
  border-radius: 50%;
}

.watch-bubble-green img { filter: drop-shadow(0 0 14px rgba(126, 231, 135, 0.45)); }
.watch-bubble-green:hover img { filter: drop-shadow(0 0 22px rgba(126, 231, 135, 0.7)); }

/* AION2 Armory */
/* Classes pelo id interno da API; nome no jogo entre parênteses */
.g-common { --g: #b9b3a4; }   /* Common */
.g-rare { --g: #57c98a; }     /* Rare */
.g-legend { --g: #4a9bf2; }   /* Epic */
.g-unique { --g: #e3bd6e; }   /* Unique */
.g-epic { --g: #e0708a; }     /* Heroic */
.g-special { --g: #c77dff; }  /* Special */
.g-none { --g: var(--border); }
.g-none .ar-grade { color: var(--text-dim); }

.ar-tabs { display: inline-flex; flex-wrap: wrap; margin-bottom: 20px; }

.ar-search {
  display: grid;
  grid-template-columns: 190px 200px 1fr auto;
  gap: 10px;
  margin-bottom: 8px;
}

.ar-search select,
.ar-search input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  min-width: 0;
}

.ar-search select:focus,
.ar-search input:focus { outline: none; border-color: var(--accent); }

.ar-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.ar-card,
.ar-card-open {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.ar-card:hover { border-color: var(--accent); }

.ar-fav-card { position: relative; padding: 0; cursor: default; }
.ar-fav-card .ar-card-open { border: none; background: transparent; padding-right: 40px; }

.ar-fav-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
}

.ar-fav-remove:hover { color: var(--danger); border-color: var(--danger); }

.ar-card-img {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.ar-card-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ar-card-body strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-card-body small { color: var(--text-dim); font-size: 12px; }

.ar-card-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.ar-card-stats b { color: var(--text); }
.ar-card-region { opacity: 0.7; }

.ar-more { display: block; margin: 16px auto 0; }
.ar-more.hidden { display: none; }

.ar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ar-toolbar .btn.hidden { display: none; }

.ar-hint { color: var(--text-dim); font-size: 13px; }
.ar-empty { color: var(--text-dim); font-size: 14px; }

.ar-delta { font-size: 12px; font-weight: 700; margin-left: 6px; }
.ar-delta.up { color: #7ee787; }
.ar-delta.down { color: var(--danger); }

/* Ficha */
.ar-profile { display: flex; align-items: center; gap: 22px; }
.ar-profile h1 { margin: 4px 0 6px; }
.ar-profile-main { flex: 1; min-width: 0; }
.ar-profile-actions { flex: none; align-self: flex-start; }

.ar-portrait {
  flex: none;
  width: 110px;
  height: 110px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(201, 166, 255, 0.35);
  background: var(--bg-card);
}

.ar-title { color: var(--g, var(--text-dim)); font-weight: 600; font-size: 14px; margin-bottom: 12px; }

.ar-kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.ar-kpi {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ar-kpi span { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.6px; }
.ar-kpi b { font-size: 22px; font-variant-numeric: tabular-nums; }
.ar-kpi small { font-size: 12px; color: var(--text-dim); }
.ar-kpi .ar-delta { margin-left: 0; }

.ar-kpi-main {
  border-color: rgba(232, 182, 74, 0.45);
  background: linear-gradient(160deg, rgba(232, 182, 74, 0.12), var(--bg-card) 70%);
}

.ar-kpi-main b { color: #e8b64a; font-size: 26px; }

.ar-section h2 { font-size: 18px; }

.ar-equip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.ar-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--g);
  border-radius: 12px;
  padding: 10px 12px;
}

button.ar-slot { cursor: pointer; }
button.ar-slot:hover { border-color: var(--g); }

.ar-slot-icon {
  position: relative;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #0b0d11;
  border: 1px solid var(--g);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ar-slot-icon img { width: 40px; height: 40px; object-fit: contain; }

.ar-slot-icon em {
  position: absolute;
  right: -6px;
  bottom: -6px;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 1px 6px;
}

.ar-slot-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ar-slot-body small { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.ar-slot-body strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-grade { font-size: 12px; color: var(--g, var(--text-dim)); }

.ar-skills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}

.ar-skill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  opacity: 0.65;
}

.ar-skill.equipped { opacity: 1; border-color: rgba(139, 63, 212, 0.55); }
.ar-skill img { width: 36px; height: 36px; border-radius: 8px; flex: none; }
.ar-skill span { display: flex; flex-direction: column; min-width: 0; }
.ar-skill strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-skill small { font-size: 12px; color: var(--text-dim); }

.ar-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.ar-stat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
}

.ar-stat.zero { opacity: 0.5; }
.ar-stat-name { font-size: 13px; }
.ar-stat b { font-variant-numeric: tabular-nums; }
.ar-stat small { grid-column: 1 / -1; font-size: 12px; color: var(--text-dim); }

.ar-boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }

.ar-board {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.ar-board img { width: 40px; height: 40px; flex: none; object-fit: contain; }
.ar-board-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ar-board-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.ar-board-top span { color: var(--text-dim); }
.ar-board-top b { color: var(--text); }
.ar-board-note { font-size: 12px; color: var(--text-dim); }
.ar-board-note span { color: var(--g, var(--text)); font-weight: 600; }

/* Daevanion: separadores por tabuleiro + mapa nó a nó */
.ar-daev-tab { font: inherit; color: inherit; text-align: left; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.ar-daev-tab:hover { border-color: #4a4f5c; }
.ar-daev-tab.active { border-color: #c9a85c; background: linear-gradient(180deg, rgba(201, 168, 92, 0.12), var(--bg-elevated)); box-shadow: 0 0 0 1px rgba(201, 168, 92, 0.35); }
.ar-daev-tab .ar-board-body, .ar-daev-tab .ar-board-top { display: flex; }

.ar-daev { margin-top: 16px; }
.ar-daev-map {
  position: relative;
  width: min(100%, calc(var(--cols) * 58px));
  aspect-ratio: var(--cols) / var(--rows);
  margin: 0 auto;
  padding: 0;
  box-sizing: content-box;
  border: 18px solid transparent;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at center, rgba(74, 155, 242, 0.10) 0%, rgba(201, 168, 92, 0.05) 40%, transparent 70%) padding-box,
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.015) 0 2px, transparent 2px 14px) padding-box,
    #0c0e12 padding-box;
  outline: 1px solid #2c3140;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(201, 168, 92, 0.18);
}
.ar-daev-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.ar-daev-lines line { stroke: #2a2f3b; stroke-width: 3px; vector-effect: non-scaling-stroke; }
.ar-daev-lines line.on { stroke: #d8b56a; stroke-width: 4px; filter: drop-shadow(0 0 3px rgba(216, 181, 106, 0.8)); }
.ar-daev-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  grid-template-rows: repeat(var(--rows), 1fr);
}
.ar-daev-node {
  position: relative;
  margin: 9%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  filter: brightness(0.62) saturate(0.7);
  transition: transform 0.12s, filter 0.12s;
}
.ar-daev-node img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.ar-daev-node.open { filter: drop-shadow(0 0 5px rgba(216, 181, 106, 0.55)); }
.ar-daev-node.start { margin: 0; filter: drop-shadow(0 0 10px rgba(80, 200, 220, 0.6)); z-index: 1; }
.ar-daev-node:hover { transform: scale(1.12); filter: brightness(1.05); z-index: 2; }
.ar-daev-node.selected { transform: scale(1.12); z-index: 2; filter: brightness(1.15) drop-shadow(0 0 8px #fff3); }
.ar-daev-node.selected::after { content: ''; position: absolute; inset: -6%; border: 2px solid #f2d48a; border-radius: 6px; }

.ar-daev-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  margin: 14px auto 0;
  max-width: 640px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13px;
}
.ar-daev-info img { width: 44px; height: 44px; flex: none; }
.ar-daev-info-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ar-daev-info-body strong { font-size: 14px; }
.ar-daev-info-meta { display: flex; gap: 10px; font-size: 12px; }
.ar-daev-info-meta .ar-grade { color: var(--g, var(--text-dim)); }
.ar-daev-state { color: var(--text-dim); }
.ar-daev-state.on { color: #d8b56a; font-weight: 600; }

.ar-daev-effects { margin-top: 18px; }
.ar-daev-effects h3 small { color: var(--text-dim); font-weight: 400; font-size: 12px; margin-left: 6px; }
.ar-daev-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ar-daev-chip { padding: 5px 10px; border-radius: 999px; background: var(--bg-elevated); border: 1px solid var(--border); font-size: 12px; }
.ar-daev-chip.skill { border-color: rgba(74, 155, 242, 0.5); color: #9cc8ff; }

@media (max-width: 860px) {
  .ar-daev-map { border-width: 8px; }
  .ar-daev-lines line { stroke-width: 2px; }
  .ar-daev-lines line.on { stroke-width: 2.5px; }
}

.ar-foot { color: var(--text-dim); font-size: 12px; text-align: center; margin-top: 10px; }

/* Modal de item */
.ar-item-head { gap: 14px; }
.ar-item-head h2 { margin: 0 0 2px; }
.ar-item-facts { margin: 6px 0 4px; }
.ar-item-stats { display: flex; flex-direction: column; gap: 6px; }

.ar-item-stats div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  padding: 7px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.ar-item-stats em { color: #7ee787; font-style: normal; font-size: 12px; }

@media (max-width: 860px) {
  .ar-search { grid-template-columns: 1fr 1fr; }
  .ar-search input { grid-column: 1 / -1; }
  .ar-search .btn { grid-column: 1 / -1; }
  .ar-kpis { grid-template-columns: repeat(2, 1fr); }
  .ar-profile { flex-wrap: wrap; gap: 14px; }
  .ar-portrait { width: 80px; height: 80px; }
  .ar-profile-actions { width: 100%; }
  .ar-toolbar { flex-direction: column; align-items: stretch; }
  .ar-results, .ar-equip, .ar-boards { grid-template-columns: 1fr; }
}

/* AION2 Armory — Timers */
.ar-tz { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); white-space: nowrap; }
.ar-tz.hidden { display: none; }
.ar-tz select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 8px 10px;
  font-family: inherit;
}

.ar-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--text-dim); margin-bottom: 14px; }
.ar-legend span { display: inline-flex; align-items: center; gap: 7px; }

.ar-dot {
  flex: none;
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #5b616d;
}
.ar-dot.alive { background: #7ee787; box-shadow: 0 0 10px rgba(126, 231, 135, 0.8); animation: arPulse 1.6s ease-in-out infinite; }
.ar-dot.dead { background: var(--danger); }
.ar-dot.pending { background: #5b616d; }

@keyframes arPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(126, 231, 135, 0.6); }
  50% { box-shadow: 0 0 16px rgba(126, 231, 135, 1); }
}

.ar-map { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.ar-zone {
  position: relative;
  border: 1px solid rgba(139, 63, 212, 0.4);
  border-radius: 18px;
  padding: 18px;
  background:
    radial-gradient(circle at 20% 15%, rgba(139, 63, 212, 0.22), transparent 55%),
    radial-gradient(circle at 85% 90%, rgba(232, 182, 74, 0.10), transparent 50%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 32px),
    var(--bg-elevated);
}

.ar-zone-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.ar-zone-head h3 { margin: 0; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; color: #e8b64a; }
.ar-zone-head span { font-size: 12px; color: #7ee787; font-weight: 700; }

.ar-pins { display: flex; flex-direction: column; gap: 10px; }

.ar-boss {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(11, 13, 17, 0.75);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
}
.ar-boss.alive { border-color: rgba(126, 231, 135, 0.55); }
.ar-boss.dead { border-color: rgba(229, 72, 77, 0.35); }
.ar-boss.pending { opacity: 0.75; }

.ar-boss-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ar-boss-body strong { font-size: 14px; }
.ar-boss-status { font-size: 13px; font-variant-numeric: tabular-nums; }
.ar-boss.alive .ar-boss-status { color: #7ee787; font-weight: 600; }
.ar-boss.dead .ar-boss-status { color: #ff8a8e; }
.ar-boss.pending .ar-boss-status { color: var(--text-dim); }
.ar-boss-body small { font-size: 12px; color: var(--text-dim); line-height: 1.4; }

.ar-boss-edit {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dim);
  cursor: pointer;
}
.ar-boss-edit:hover { color: var(--text); border-color: var(--accent); }

.ar-boss-title { margin: 0 0 6px; font-size: 20px; }
.ar-days { display: flex; flex-wrap: wrap; gap: 6px; }
.ar-days label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 9px;
  cursor: pointer;
}
.ar-gen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); margin: -4px 0 14px; }
.ar-gen input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 6px 8px;
  font-family: inherit;
  width: 90px;
}
.ar-gen .btn { padding: 6px 12px; font-size: 13px; }
.ar-check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 4px 0 6px; cursor: pointer; }

@media (max-width: 860px) {
  .ar-map { grid-template-columns: 1fr; }
  .ar-tz { white-space: normal; }
}

.ar-sync { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ar-sync .btn.hidden { display: none; }
.ar-sync .btn { padding: 7px 14px; font-size: 13px; flex: none; }
.ar-sync-info { font-size: 12px; color: var(--text-dim); line-height: 1.5; }
.ar-sync-info.ok::before { content: '● '; color: #7ee787; }
.ar-sync-info.error { color: #ff8a8e; }
.ar-sync-info.error::before { content: '● '; }
#arTzNotice { margin-bottom: 12px; }

@media (max-width: 860px) {
  .ar-sync { flex-direction: column; align-items: stretch; }
}

/* Timers — dungeons e estado da sincronização */
.ar-zone-dungeons { grid-column: 1 / -1; }
.ar-zone-dungeons .ar-pins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ar-dot.reset { background: #4a9bf2; box-shadow: 0 0 8px rgba(74, 155, 242, 0.6); }
.ar-boss.reset { border-color: rgba(74, 155, 242, 0.4); }
.ar-boss.reset .ar-boss-status { color: #8cc2ff; font-weight: 600; }
.ar-boss-items { opacity: 0.8; font-style: italic; }
.ar-sync-info { display: flex; flex-direction: column; gap: 2px; }
.ar-sync-when { color: var(--text-dim); }
.ar-sync-part::before { content: '● '; }
.ar-sync-part.ok::before { color: #7ee787; }
.ar-sync-part.error { color: #ff8a8e; }
.ar-sync-part b { color: var(--text); font-weight: 600; }

@media (max-width: 860px) {
  .ar-zone-dungeons .ar-pins { grid-template-columns: 1fr; }
}

/* Timers — selo de horário provisório (KR/TW) */
.ar-prov {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid rgba(232, 182, 74, 0.5);
  background: rgba(232, 182, 74, 0.12);
  color: #e8b64a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  vertical-align: middle;
}
.ar-legend .ar-prov { margin-left: 0; margin-right: 6px; }

/* Timers — painel de eventos */
.ar-zone-events { grid-column: 1 / -1; }
.ar-zone-events .ar-pins { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 860px) {
  .ar-zone-events .ar-pins { grid-template-columns: 1fr; }
}

.ar-tz-fix { margin-left: 8px; padding: 5px 12px; font-size: 12px; }


.ar-toolbar-end { justify-content: flex-end; }


/* Lopez Meter — aprovação do login e lista de meters ligados */

@media (max-width: 860px) { .user-bar { flex-wrap: wrap; justify-content: flex-end; } }

.ar-boss-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 2px; }
.ar-boss-links a { font-size: 12px; color: #c9a6ff; text-decoration: none; }
.ar-boss-links a:hover { color: #e8b64a; text-decoration: underline; }

/* BlackShadow Meter: licenças */


/* ==========================================================================
   Lopez Hub — design v2 (2026-10-04)
   Camada por cima do estilo original: mantém o fundo escuro, o roxo, o dourado
   do logótipo e o fumo; afina letra, superfícies, botões e detalhes.
   ========================================================================== */

:root {
  --bg-elevated: #14121b;
  --bg-card: #1b1824;
  --border: #2a2636;
  --border-strong: #3a3449;
  --text: #ecebf2;
  --text-dim: #9d98ad;
  --accent: #8b3fd4;
  --accent-hover: #a565e8;
  --accent-soft: rgba(139, 63, 212, 0.14);
  --gold: #e8b64a;
  --radius: 16px;
  --surface: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0) 120px), var(--bg-elevated);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 18px 40px -24px rgba(0, 0, 0, 0.8);
  --font-display: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: rgba(139, 63, 212, 0.45); color: #fff; }

/* Scrollbar discreta, a condizer */
* { scrollbar-width: thin; scrollbar-color: #3a3449 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2f2a3c; border-radius: 999px; border: 2px solid #050609; }
::-webkit-scrollbar-thumb:hover { background: #4a3f63; }

/* Títulos com a letra "de jogo" */
h1, h2, h3,
.brand h1, .cl-title, .guide-hero h1, .guide-section h2, .watch-label,
.ar-kpi b, .users-head h2 {
  font-family: var(--font-display);
  letter-spacing: 0.4px;
}
.guide-section h2, .cl-title { font-weight: 700; }

/* Fundo: uma luz roxa muito suave no topo, além do fumo original */
.bg-decor::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -30vh;
  width: 90vw;
  height: 60vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(139, 63, 212, 0.16), transparent 65%);
}

/* --- Barra de topo --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 32px;
  background: rgba(8, 7, 12, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(139, 63, 212, 0.55) 30%, rgba(232, 182, 74, 0.45) 50%, rgba(139, 63, 212, 0.55) 70%, transparent) 1;
}
.brand h1 {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff 30%, #cdb4f5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-mark { width: 44px; height: 44px; transition: filter 0.2s ease, transform 0.2s ease; }
.brand-home:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }

.user-bar { gap: 8px; }
.user-bar .username {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  padding-left: 4px;
}
.user-bar .role-badge {
  font-weight: 700;
  color: #d9c2ff;
  background: var(--accent-soft);
  border-color: rgba(165, 101, 232, 0.55);
  border-radius: 999px;
  padding: 3px 9px;
  margin-right: 6px;
}

/* --- Botões --- */
.btn {
  border-radius: 10px;
  font-family: inherit;
  letter-spacing: 0.1px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.1s ease;
}
.btn:focus-visible, .tab-btn:focus-visible, .user-act:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}
.btn-primary {
  background: linear-gradient(180deg, #9a4fe3, #7b31c4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 8px 22px -10px rgba(139, 63, 212, 0.9);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #ab66ee, #8b3fd4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 10px 26px -10px rgba(165, 101, 232, 1);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--border);
  color: #c9c4d6;
}
.btn-ghost:hover {
  background: var(--accent-soft);
  border-color: rgba(165, 101, 232, 0.6);
  color: #fff;
}
.btn-danger:hover { box-shadow: 0 8px 22px -12px rgba(229, 72, 77, 0.9); }
.topbar .btn { padding: 8px 14px; font-size: 13px; }

/* "‹ Início": sempre no mesmo sítio, como pílula flutuante */
#btnBackHome {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 15;
  border-radius: 999px;
  padding: 9px 16px;
  background: rgba(20, 18, 27, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.9);
}

/* --- Separadores --- */
.tabs {
  background: rgba(20, 18, 27, 0.8);
  border-color: var(--border);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}
.tab-btn { border-radius: 9px; }
.tab-btn.active {
  background: linear-gradient(180deg, #9a4fe3, #7b31c4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 6px 16px -8px rgba(139, 63, 212, 0.9);
}

/* --- Página inicial --- */
.module-home { min-height: calc(100vh - 73px); }
.watch-grid { gap: 52px 56px; max-width: 600px; }
.watch-item { gap: 14px; }
.watch-label {
  font-size: 15px;
  font-weight: 700;
  color: #d8d4e4;
  letter-spacing: 0.6px;
  transition: color 0.2s ease;
}
.watch-item:hover .watch-label { color: #fff; text-shadow: 0 0 14px rgba(165, 101, 232, 0.8); }
.watch-item::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 136px;
  width: 96px;
  height: 14px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(139, 63, 212, 0.45), transparent 70%);
  filter: blur(4px);
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.25s ease, width 0.25s ease;
}
.watch-item:hover::after { opacity: 1; width: 130px; }

/* --- Superfícies (cartões, secções, modais) --- */
.guide-section, .guide-toc, .cl-cat, .cl-progress-card, .card, .stat-tile,
.ar-kpi, .ar-slot, .ar-board, .user-row, .cl-hist-row, .ar-boss {
  box-shadow: var(--shadow-card);
}
.guide-section, .guide-toc, .cl-cat, .cl-progress-card { background: var(--surface); }
.guide-section { border-radius: var(--radius); }
.guide-section h2 { font-size: 20px; }
.guide-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(232, 182, 74, 0.10), transparent 45%),
    linear-gradient(160deg, rgba(139, 63, 212, 0.26), var(--bg-elevated) 65%);
  border-color: rgba(139, 63, 212, 0.5);
  border-radius: 20px;
  box-shadow: 0 24px 60px -30px rgba(139, 63, 212, 0.55);
}
.guide-hero h1 { font-size: 32px; font-weight: 700; }
.guide-kicker { color: var(--gold); }
.guide-toc a { transition: background 0.15s ease, color 0.15s ease; }
.guide-toc a:hover { background: var(--accent-soft); }

.card { transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
.card:hover { border-color: rgba(165, 101, 232, 0.55); transform: translateY(-2px); }

.ar-board:hover, .ar-slot:hover, .cl-cat:hover { border-color: var(--border-strong); }

/* Modais */
.overlay { background: rgba(4, 3, 8, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal {
  background:
    radial-gradient(ellipse at 50% -20%, rgba(139, 63, 212, 0.18), transparent 60%),
    var(--bg-elevated);
  border-color: var(--border-strong);
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(139, 63, 212, 0.12), 0 40px 90px -30px rgba(0, 0, 0, 0.9);
  animation: lhModalIn 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes lhModalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.modal-close { transition: color 0.15s ease, transform 0.15s ease; }
.modal-close:hover { transform: rotate(90deg); }

/* Campos */
.field input[type="text"],
.field input[type="password"],
.field input[type="number"],
.field textarea,
.field select,
.ar-search input, .ar-search select {
  background: #0f0d15;
  border-color: var(--border);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus,
.ar-search input:focus, .ar-search select:focus {
  outline: none;
  border-color: var(--accent-hover);
  box-shadow: 0 0 0 3px rgba(139, 63, 212, 0.25);
}

/* Barras de progresso com brilho */
.cl-bar > span { box-shadow: 0 0 12px rgba(126, 231, 135, 0.35); }

/* Avisos */
.toast {
  border-color: var(--border-strong);
  border-left: 3px solid var(--accent-hover);
  border-radius: 12px;
  background: rgba(20, 18, 27, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.9);
  animation: lhToastIn 0.25s ease;
}
@keyframes lhToastIn {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Login */
.auth-card {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(139, 63, 212, 0.22), transparent 60%),
    var(--bg-elevated);
  border-color: var(--border-strong);
  border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(139, 63, 212, 0.15), 0 40px 90px -30px rgba(0, 0, 0, 0.9);
}
.auth-card h1 {
  font-size: 30px;
  background: linear-gradient(180deg, #ffffff 30%, #cdb4f5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .modal, .toast { animation: none; }
}

@media (max-width: 860px) {
  .topbar { padding: 12px 16px; position: relative; }
  .brand h1 { font-size: 20px; }
  .watch-grid { gap: 36px 32px; }
  #btnBackHome { left: 12px; bottom: 12px; }
}

/* Com a barra de topo fixa, o índice e os saltos para secções descontam a altura dela */
.guide-toc { top: 88px; max-height: calc(100vh - 104px); }
.guide-section, .cl-hist-row { scroll-margin-top: 90px; }
@media (max-width: 860px) {
  .guide-toc { top: 16px; max-height: calc(100vh - 32px); }
  .guide-section, .cl-hist-row { scroll-margin-top: 16px; }
}

/* Telemóvel: nome numa só linha, topo a quebrar com espaço, e "‹ Início" de volta ao fluxo para não tapar conteúdo */
.brand h1 { white-space: nowrap; }
@media (max-width: 860px) {
  .topbar { flex-wrap: wrap; gap: 10px; }
  .user-bar { margin-left: auto; }
  #btnBackHome { position: static; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Cabeçalhos só com título (Armory, Aion 2 Guide, tutoriais) */
.guide-hero > h1:only-child { margin: 0; }

/* BlackShadow Armory: emblema com fundo transparente (sem recorte redondo) */
.watch-bubble-armory img { border-radius: 0; width: 116%; height: 116%; flex: none; }

/* Login: botão "Entrar" nos tons do emblema BlackShadow (anel néon #cc2efe → violeta #5401d7) */
.auth-submit {
  position: relative;
  overflow: hidden;
  padding: 13px 18px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(221, 120, 255, 0.55);
  border-radius: 12px;
  background: linear-gradient(135deg, #d135fe 0%, #9b1cf0 45%, #5401d7 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 0 0 1px rgba(204, 46, 254, 0.25),
    0 10px 28px -8px rgba(204, 46, 254, 0.75),
    0 0 22px -4px rgba(204, 46, 254, 0.55);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}
.auth-submit::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.auth-submit:hover {
  background: linear-gradient(135deg, #e04dff 0%, #ac2ef8 45%, #6410e6 100%);
  border-color: rgba(236, 150, 255, 0.8);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.32) inset,
    0 0 0 1px rgba(224, 77, 255, 0.4),
    0 12px 32px -8px rgba(224, 77, 255, 0.9),
    0 0 34px -2px rgba(204, 46, 254, 0.7);
}
.auth-submit:hover::after { left: 120%; }
.auth-submit:active { transform: scale(0.98); }
.auth-submit:focus-visible { outline: 2px solid #ec96ff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .auth-submit::after { display: none; } }

/* Cabeçalho com ícone à esquerda do título (BlackShadow Armory) */
.hero-with-icon { display: flex; align-items: center; gap: 18px; padding-top: 18px; padding-bottom: 18px; }
.hero-with-icon h1 { margin: 0; }
.hero-icon { width: 72px; height: 72px; flex: none; object-fit: contain; filter: drop-shadow(0 0 12px rgba(165, 101, 232, 0.6)); }
@media (max-width: 560px) { .hero-icon { width: 56px; height: 56px; } .hero-with-icon { gap: 12px; } }

/* Armory — Favoritos (cartões de jogador) */
.fav-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fav-count {
  font-size: 12px;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
}
.fav-sort { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 12px; color: var(--text-dim); }
.fav-sort select {
  background: #0f0d15;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 7px 10px;
  font: inherit;
  font-size: 13px;
}
.fav-sort select:focus { outline: none; border-color: var(--accent-hover); box-shadow: 0 0 0 3px rgba(139, 63, 212, 0.25); }
.fav-refresh { display: inline-flex; align-items: center; gap: 8px; }
.fav-refresh svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fav-refresh:disabled svg { animation: favSpin 0.9s linear infinite; }
.fav-sort.hidden + .fav-refresh { margin-left: auto; }
@keyframes favSpin { to { transform: rotate(360deg); } }

.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }

.fav-card {
  --race: #6fb7ff;
  --race-soft: rgba(111, 183, 255, 0.14);
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 0% 0%, var(--race-soft), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 120px),
    var(--bg-elevated);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.fav-card.race-asmo { --race: #c56cff; --race-soft: rgba(197, 108, 255, 0.16); }
.fav-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--race) 55%, var(--border));
  box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--race) 70%, transparent), var(--shadow-card);
}

.fav-open {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 16px;
}
.fav-open:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 2px; }

.fav-head { display: flex; align-items: center; gap: 14px; min-width: 0; padding-right: 26px; }
.fav-portrait {
  width: 68px;
  height: 68px;
  flex: none;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--race) 30%, #1b1824), #0f0d15 75%);
  border: 1px solid color-mix(in srgb, var(--race) 55%, transparent);
  box-shadow: 0 0 18px -6px var(--race);
}
.fav-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fav-initial { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--race); }

.fav-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fav-id strong {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fav-class { font-size: 13px; color: #d8d4e4; font-weight: 600; }
.fav-where { font-size: 12px; color: var(--text-dim); }

.fav-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fav-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 11px;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
}
.fav-stat small { font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-dim); }
.fav-stat b { font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.1; color: #fff; }
.fav-stat .ar-delta { margin-left: 0; font-size: 11px; }

.fav-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--text-dim); }

.fav-top {
  position: absolute;
  left: 16px;
  top: -9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #1a1206;
  background: linear-gradient(180deg, #f3cf73, #d9a43c);
  border-radius: 999px;
  padding: 2px 8px;
  box-shadow: 0 4px 12px -4px rgba(232, 182, 74, 0.8);
  pointer-events: none;
}

.fav-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s, color 0.15s, background 0.15s, border-color 0.15s;
}
.fav-card:hover .fav-remove, .fav-remove:focus-visible { opacity: 1; }
.fav-remove:hover { color: #fff; background: color-mix(in srgb, var(--danger) 30%, transparent); border-color: var(--danger); }

.fav-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 44px 20px;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: 16px;
  background: rgba(20, 18, 27, 0.6);
}
.fav-empty-star { font-size: 34px; color: var(--gold); text-shadow: 0 0 16px rgba(232, 182, 74, 0.5); }
.fav-empty strong { font-family: var(--font-display); font-size: 20px; }
.fav-empty small { color: var(--text-dim); font-size: 13px; }

@media (max-width: 560px) {
  .fav-sort { margin-left: 0; }
  .fav-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .fav-refresh:disabled svg { animation: none; } }

/* Checklist — design v2 */
.cl-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  margin-bottom: 18px;
  border-radius: 20px;
  border: 1px solid rgba(126, 231, 135, 0.35);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(126, 231, 135, 0.10), transparent 45%),
    linear-gradient(160deg, rgba(139, 63, 212, 0.24), var(--bg-elevated) 65%);
  box-shadow: 0 24px 60px -30px rgba(139, 63, 212, 0.5);
}
.cl-hero .cl-title { font-size: 32px; font-weight: 700; line-height: 1.1; }
.cl-hero .hero-icon { filter: drop-shadow(0 0 12px rgba(126, 231, 135, 0.5)); }
.cl-hero .tabs { margin-left: auto; }

/* Barra de data */
.cl-date-label {
  background: var(--surface);
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.4px;
}
.cl-date-label:hover { border-color: rgba(165, 101, 232, 0.6); }
.cl-nav { border-radius: 12px; }
#clToday { border-radius: 12px; }

/* Cartão de progresso com anel */
.cl-progress-card {
  --p: 0;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 22px;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 0% 50%, rgba(139, 63, 212, 0.22), transparent 55%),
    var(--bg-elevated);
  box-shadow: var(--shadow-card);
}
.cl-ring {
  position: relative;
  width: 96px;
  height: 96px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from -90deg, #a565e8 0, #7ee787 calc(var(--p) * 1%), rgba(255, 255, 255, 0.06) calc(var(--p) * 1%));
  box-shadow: 0 0 24px -6px rgba(139, 63, 212, 0.7);
  transition: box-shadow 0.3s ease;
}
.cl-ring::before {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #1d1a28, #0d0b13);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.6);
}
.cl-ring .cl-prog-pct {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  color: #fff;
}
.cl-progress-main { flex: 1; min-width: 0; }
.cl-progress-top { margin-bottom: 12px; }
.cl-progress-top strong { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.3px; }
.cl-stats { gap: 8px; margin-top: 12px; }
.cl-stats > span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
}
.cl-stats b { margin-left: 0; font-family: var(--font-display); font-size: 15px; }
.cl-stat-done b { color: #7ee787; }
.cl-stat-pending b { color: var(--gold); }
.cl-progress-card.complete { border-color: rgba(126, 231, 135, 0.55); }
.cl-progress-card.complete .cl-ring { box-shadow: 0 0 30px -4px rgba(126, 231, 135, 0.85); }

/* Cartões de categoria */
.cl-cat { padding: 16px; border-radius: 16px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.cl-cat-head { margin-bottom: 10px; }
.cl-cat-head h3 { font-family: var(--font-display); font-size: 16px; letter-spacing: 0.8px; }
.cl-cat-count { font-family: var(--font-display); font-weight: 700; }
.cl-cat-bar {
  height: 4px;
  margin: 0 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.cl-cat-bar > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #a565e8, #7ee787);
  transition: width 0.3s ease;
}
.cl-cat.complete {
  border-color: rgba(126, 231, 135, 0.5);
  box-shadow: 0 0 0 1px rgba(126, 231, 135, 0.15), 0 18px 40px -24px rgba(126, 231, 135, 0.6);
}
.cl-cat.complete .cl-cat-count { color: #0b1f12; background: #7ee787; border-color: #7ee787; }
.cl-cat.complete .cl-cat-count::before { content: '✓ '; }

/* Tarefas: caixa de seleção própria */
.cl-check { gap: 7px; }
.cl-check label {
  gap: 12px;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.32);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cl-check label:hover { border-color: rgba(165, 101, 232, 0.6); background: rgba(139, 63, 212, 0.08); }
.cl-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1.5px solid #4a4360;
  background: #0f0d15;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.cl-check input[type="checkbox"]::after {
  content: '';
  width: 5px;
  height: 10px;
  margin-top: -2px;
  border: solid #0b1f12;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s cubic-bezier(0.3, 1.6, 0.6, 1);
}
.cl-check input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #9ff0a6, #5fd36a);
  border-color: #7ee787;
  box-shadow: 0 0 10px rgba(126, 231, 135, 0.45);
}
.cl-check input[type="checkbox"]:checked::after { transform: rotate(45deg) scale(1); }
.cl-check input[type="checkbox"]:active { transform: scale(0.9); }
.cl-check input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 2px; }
.cl-check input[type="checkbox"]:disabled { cursor: not-allowed; opacity: 0.6; }
.cl-check li:has(input:checked) label { background: rgba(126, 231, 135, 0.06); border-color: rgba(126, 231, 135, 0.22); }
.cl-check input:checked + span { color: var(--text-dim); text-decoration-color: rgba(126, 231, 135, 0.6); }

@media (max-width: 860px) {
  .cl-hero { flex-wrap: wrap; padding: 14px 16px; }
  .cl-hero .cl-title { font-size: 24px; }
  .cl-hero .tabs { margin-left: 0; width: 100%; }
  .cl-progress-card { gap: 14px; padding: 14px 16px; }
  .cl-ring { width: 76px; height: 76px; }
  .cl-ring .cl-prog-pct { font-size: 19px; }
}

/* Checklist — nomes dos personagens */
.cl-chars-edit { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: 13px; }

.cl-slot-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  vertical-align: 2px;
  color: #d9c2ff;
  background: rgba(139, 63, 212, 0.18);
  border: 1px solid rgba(165, 101, 232, 0.45);
}
.cl-slot-main .cl-slot-tag { color: #1a1206; background: linear-gradient(180deg, #f3cf73, #d9a43c); border-color: #e8b64a; }
.cl-cat-head h3 { text-transform: none; }

.cl-chars-modal { max-width: 460px; padding: 0; overflow: hidden; }
.cl-chars-hero {
  position: relative;
  text-align: center;
  padding: 30px 28px 20px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(126, 231, 135, 0.16), transparent 60%),
    radial-gradient(ellipse at 50% 120%, rgba(139, 63, 212, 0.25), transparent 70%);
  border-bottom: 1px solid var(--border);
}
.cl-chars-hero img { width: 72px; height: 72px; filter: drop-shadow(0 0 16px rgba(126, 231, 135, 0.55)); }
.cl-chars-hero h2 { margin: 10px 0 6px; font-size: 26px; }
.cl-chars-hero p { margin: 0 auto; max-width: 320px; font-size: 13px; color: var(--text-dim); line-height: 1.5; }

.cl-chars-form { display: flex; flex-direction: column; gap: 10px; padding: 20px 24px 24px; }
.cl-char-field {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  cursor: text;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cl-char-field:focus-within { border-color: var(--accent-hover); box-shadow: 0 0 0 3px rgba(139, 63, 212, 0.22); }
.cl-char-rank {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: #d9c2ff;
  background: rgba(139, 63, 212, 0.18);
  border: 1px solid rgba(165, 101, 232, 0.5);
}
.cl-char-main { border-color: rgba(232, 182, 74, 0.45); background: linear-gradient(90deg, rgba(232, 182, 74, 0.08), rgba(0, 0, 0, 0.3) 60%); }
.cl-char-main .cl-char-rank { color: #1a1206; background: linear-gradient(180deg, #f3cf73, #d9a43c); border-color: #e8b64a; box-shadow: 0 0 14px -2px rgba(232, 182, 74, 0.7); }
.cl-char-main:focus-within { border-color: #e8b64a; box-shadow: 0 0 0 3px rgba(232, 182, 74, 0.2); }
.cl-char-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cl-char-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-dim); }
.cl-char-main .cl-char-label { color: var(--gold); }
.cl-char-body input {
  width: 100%;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.3px;
  outline: none;
}
.cl-char-body input::placeholder { color: #5d5670; font-weight: 600; }
.cl-chars-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

@media (max-width: 860px) {
  .cl-chars-edit { width: 100%; justify-content: center; }
}

/* Checklist com emblema roxo (estilo BlackShadow Armory) */
.cl-hero { border-color: rgba(139, 63, 212, 0.5); background: radial-gradient(ellipse at 100% 0%, rgba(232, 182, 74, 0.10), transparent 45%), linear-gradient(160deg, rgba(139, 63, 212, 0.26), var(--bg-elevated) 65%); }
.cl-hero .hero-icon, .cl-chars-hero img { filter: drop-shadow(0 0 12px rgba(165, 101, 232, 0.6)); }
.cl-chars-hero { background: radial-gradient(ellipse at 50% 0%, rgba(165, 101, 232, 0.22), transparent 60%), radial-gradient(ellipse at 50% 120%, rgba(139, 63, 212, 0.25), transparent 70%); }

/* Página inicial: escolha de balões (super admin) */
.watch-item.pref-hidden { display: none; }
.module-home { position: relative; }
.home-customize {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 15;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(165, 101, 232, 0.25);
  background: rgba(20, 18, 27, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #9d98ad;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.home-customize svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.home-customize:hover, .home-customize:focus-visible {
  opacity: 1;
  color: #fff;
  border-color: rgba(204, 46, 254, 0.7);
  box-shadow: 0 0 18px -2px rgba(204, 46, 254, 0.7);
  transform: rotate(-12deg) scale(1.06);
  outline: none;
}

.home-prefs-modal { max-width: 620px; }
.home-prefs-head { padding-right: 36px; margin-bottom: 18px; }
.home-prefs-head h2 { margin: 0 0 6px; font-size: 26px; }
.home-prefs-head p { margin: 0; font-size: 13px; color: var(--text-dim); }
.home-prefs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.home-pref-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-dim);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}
.home-pref-tile:active { transform: scale(0.97); }
.home-pref-pic { width: 72px; height: 72px; display: grid; place-items: center; }
.home-pref-pic img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1) brightness(0.45); transition: filter 0.2s ease; }
.home-pref-name { font-family: var(--font-display); font-weight: 700; font-size: 14px; text-align: center; line-height: 1.15; }
.home-pref-state {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.home-pref-tile.on { color: var(--text); border-color: rgba(165, 101, 232, 0.55); background: linear-gradient(180deg, rgba(139, 63, 212, 0.16), rgba(0, 0, 0, 0.3)); box-shadow: 0 10px 24px -16px rgba(165, 101, 232, 0.9); }
.home-pref-tile.on .home-pref-pic img { filter: drop-shadow(0 0 8px rgba(147, 79, 255, 0.55)); }
.home-pref-tile.on .home-pref-state { color: #d9c2ff; background: rgba(139, 63, 212, 0.2); border-color: rgba(165, 101, 232, 0.55); }
.home-pref-tile:hover { border-color: rgba(204, 46, 254, 0.6); }
.home-prefs-actions { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.home-prefs-spacer { flex: 1; }

@media (max-width: 560px) {
  .home-prefs-grid { grid-template-columns: repeat(2, 1fr); }
  .home-prefs-actions { flex-wrap: wrap; }
  .home-customize { right: 14px; bottom: 14px; }
}

/* BlackShadow Meter — janela de ligação e licenças (tons do emblema: #cc2efe → #5401d7) */
.ml-modal {
  --bs-neon: #cc2efe;
  --bs-deep: #5401d7;
  max-width: 720px;
  padding: 0;
  overflow-x: hidden;
  border-color: rgba(204, 46, 254, 0.35);
  box-shadow: 0 0 0 1px rgba(204, 46, 254, 0.15), 0 0 60px -20px rgba(204, 46, 254, 0.45), 0 40px 90px -30px rgba(0, 0, 0, 0.9);
}
.ml-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 56px 18px 24px;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(204, 46, 254, 0.22), transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(84, 1, 215, 0.25), transparent 60%);
  border-bottom: 1px solid rgba(204, 46, 254, 0.2);
}
.ml-hero img { width: 64px; height: 64px; flex: none; filter: drop-shadow(0 0 14px rgba(204, 46, 254, 0.65)); }
.ml-hero-text { min-width: 0; }
.ml-hero h2 {
  margin: 0 0 6px;
  font-size: 28px;
  background: linear-gradient(180deg, #ffffff 30%, #e3a8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ml-license {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 4px 12px 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
}
.ml-license::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.ml-license.ok { color: #8ff0a4; border-color: rgba(126, 231, 135, 0.4); }
.ml-license.off { color: #ff9a9a; border-color: rgba(255, 143, 143, 0.4); }

.ml-tabs { display: flex; gap: 4px; padding: 12px 20px 0; border-bottom: 1px solid var(--border); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.ml-tabs::-webkit-scrollbar { display: none; }
.ml-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px 12px;
  border: 0;
  background: none;
  color: var(--text-dim);
  font: inherit;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease;
}
.ml-tab:hover { color: var(--text); }
.ml-tab.active { color: #fff; }
.ml-tab.active::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--bs-neon), var(--bs-deep));
  box-shadow: 0 0 12px rgba(204, 46, 254, 0.8);
}
.ml-tab-count:empty { display: none; }
.ml-tab-count {
  min-width: 20px;
  padding: 1px 7px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #f0d4ff;
  background: rgba(204, 46, 254, 0.2);
  border: 1px solid rgba(204, 46, 254, 0.4);
}
.ml-pane { padding: 20px 24px 24px; }

/* Ligar meter */
.ml-code-box { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.ml-code-box label { font-size: 12px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-dim); }
#mlCode {
  width: min(100%, 340px);
  padding: 14px 16px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: #fff;
  background: #0d0a14;
  border: 2px solid rgba(204, 46, 254, 0.45);
  border-radius: 16px;
  outline: none;
  box-shadow: inset 0 0 20px rgba(84, 1, 215, 0.35);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#mlCode::placeholder { color: #3e3550; letter-spacing: 8px; }
#mlCode:focus { border-color: var(--bs-neon); box-shadow: inset 0 0 20px rgba(84, 1, 215, 0.45), 0 0 0 4px rgba(204, 46, 254, 0.18), 0 0 24px -4px rgba(204, 46, 254, 0.7); }
.ml-code-box small { color: var(--text-dim); font-size: 12px; max-width: 360px; }

.ml-request:empty { display: none; }
.ml-request {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  font-size: 13px;
  color: var(--text-dim);
}
.ml-request.wait { justify-content: center; }
.ml-request.err { color: #ffb0b0; border-color: rgba(229, 72, 77, 0.45); background: rgba(229, 72, 77, 0.08); }
.ml-request.pending { border-color: rgba(204, 46, 254, 0.5); background: linear-gradient(90deg, rgba(204, 46, 254, 0.12), rgba(0, 0, 0, 0.3)); }
.ml-request.ok { border-color: rgba(126, 231, 135, 0.5); background: rgba(126, 231, 135, 0.08); }
.ml-req-icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; font-size: 22px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border); }
.ml-request.ok .ml-req-icon { color: #8ff0a4; font-weight: 700; border-color: rgba(126, 231, 135, 0.45); }
.ml-req-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ml-req-body strong { font-family: var(--font-display); font-size: 18px; color: #fff; }
.ml-req-body b { color: var(--text); }
.ml-req-body small { font-size: 12px; }
.ml-actions { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.ml-approve {
  color: #fff;
  border: 1px solid rgba(221, 120, 255, 0.55);
  background: linear-gradient(135deg, #d135fe 0%, #9b1cf0 45%, #5401d7 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 26px -10px rgba(204, 46, 254, 0.9);
}
.ml-approve:hover:not(:disabled) { background: linear-gradient(135deg, #e04dff 0%, #ac2ef8 45%, #6410e6 100%); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 12px 30px -8px rgba(224, 77, 255, 1); }
.ml-approve:disabled, .ml-actions .btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

/* Meters (cartões) */
.ml-devices, .ml-licenses { display: flex; flex-direction: column; gap: 10px; }
.ml-device {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
}
.ml-device-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(204, 46, 254, 0.1); border: 1px solid rgba(204, 46, 254, 0.3); color: #e3a8ff; }
.ml-device-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ml-device-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ml-device-body strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-device-body small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim); }
.ml-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #5d566c; }
.ml-device.online { border-color: rgba(126, 231, 135, 0.35); }
.ml-device.online .ml-dot { background: #7ee787; box-shadow: 0 0 8px #7ee787; animation: mlPulse 1.8s ease-in-out infinite; }
@keyframes mlPulse { 50% { opacity: 0.4; } }
.ml-revoke { flex: none; padding: 6px 12px; font-size: 12px; color: #ff9a9a; background: transparent; border: 1px solid rgba(229, 72, 77, 0.45); }
.ml-revoke:hover:not(:disabled) { color: #fff; background: rgba(229, 72, 77, 0.35); border-color: var(--danger); }

.ml-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px 16px; text-align: center; border: 1px dashed var(--border-strong); border-radius: 14px; color: var(--text-dim); }
.ml-empty strong { font-family: var(--font-display); font-size: 18px; color: var(--text); }
.ml-empty small { font-size: 12px; }

/* Licenças */
.ml-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.ml-stat { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border); }
.ml-stat b { font-family: var(--font-display); font-size: 24px; line-height: 1; color: #fff; }
.ml-stat span { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.ml-stat-on b { color: #8ff0a4; }
.ml-search {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: #0f0d15;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
}
.ml-search:focus { border-color: var(--bs-neon); box-shadow: 0 0 0 3px rgba(204, 46, 254, 0.2); }

.ml-lic {
  --st: #5d566c;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(90deg, color-mix(in srgb, var(--st) 10%, transparent), rgba(0, 0, 0, 0.28) 45%);
  position: relative;
  overflow: hidden;
}
.ml-lic::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--st); box-shadow: 0 0 10px var(--st); }
.ml-lic.ok { --st: #7ee787; }
.ml-lic.admin { --st: var(--bs-neon); }
.ml-lic.expired { --st: var(--gold); }
.ml-lic.off { --st: #4a4458; }
.ml-lic-head { display: flex; align-items: center; gap: 12px; }
.ml-avatar {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, rgba(204, 46, 254, 0.55), rgba(84, 1, 215, 0.55));
  border: 1px solid rgba(204, 46, 254, 0.5);
}
.ml-lic.off .ml-avatar { background: #241f2e; border-color: var(--border); color: var(--text-dim); }
.ml-lic-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ml-lic-id strong { font-family: var(--font-display); font-size: 18px; line-height: 1.1; }
.ml-lic-id small { font-size: 12px; color: var(--text-dim); }
.ml-by { opacity: 0.75; }
.ml-on { color: #8ff0a4; }
.ml-state {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--st);
  border: 1px solid color-mix(in srgb, var(--st) 55%, transparent);
  background: color-mix(in srgb, var(--st) 12%, transparent);
}
.ml-lic.off .ml-state { color: var(--text-dim); }

.ml-lic-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-left: 52px; }
.ml-days { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border); }
.ml-days label { position: relative; cursor: pointer; }
.ml-days input { position: absolute; opacity: 0; pointer-events: none; }
.ml-days span { display: block; padding: 5px 10px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--text-dim); transition: background 0.15s ease, color 0.15s ease; }
.ml-days label:hover span { color: var(--text); }
.ml-days input:checked + span { color: #fff; background: linear-gradient(135deg, rgba(209, 53, 254, 0.75), rgba(84, 1, 215, 0.85)); box-shadow: 0 0 10px -2px rgba(204, 46, 254, 0.8); }
.ml-days input:focus-visible + span { outline: 2px solid var(--bs-neon); outline-offset: 1px; }
.ml-grant { padding: 7px 14px; font-size: 12px; color: #fff; border: 1px solid rgba(221, 120, 255, 0.5); background: linear-gradient(135deg, #d135fe, #5401d7); }
.ml-grant:hover:not(:disabled) { box-shadow: 0 8px 20px -8px rgba(204, 46, 254, 1); }
.ml-lic-actions .ml-revoke { padding: 7px 12px; }

.ml-lic-devices { padding-left: 52px; }
.ml-lic-devices summary { cursor: pointer; font-size: 12px; font-weight: 600; color: #e3a8ff; list-style: none; }
.ml-lic-devices summary::-webkit-details-marker { display: none; }
.ml-lic-devices summary::before { content: '▸ '; }
.ml-lic-devices[open] summary::before { content: '▾ '; }
.ml-lic-devices[open] summary { margin-bottom: 8px; }
.ml-lic-devices .ml-device { margin-top: 6px; padding: 8px 10px; }

@media (max-width: 640px) {
  .ml-hero { padding: 18px 48px 14px 16px; }
  .ml-hero img { width: 48px; height: 48px; }
  .ml-hero h2 { font-size: 22px; }
  .ml-tabs { padding: 10px 10px 0; }
  .ml-pane { padding: 16px; }
  #mlCode { font-size: 26px; letter-spacing: 5px; }
  .ml-summary { grid-template-columns: repeat(2, 1fr); }
  .ml-lic-actions, .ml-lic-devices { padding-left: 0; }
  .ml-device { flex-wrap: wrap; }
}

/* Página inicial: só os emblemas, sem o nome por baixo (o nome fica no title/alt e na janela "Personalizar início") */
#moduleHome .watch-label { display: none; }
#moduleHome .watch-item { gap: 0; }

/* ==========================================================================
   Tutorial Chanter — componentes do passo a passo (2026-10-05)
   ========================================================================== */
.cht-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; margin-top: 16px; }
.cht-tile { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.cht-tile-k { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.cht-tile b { font-family: var(--font-display); font-size: 16px; line-height: 1.25; color: var(--text); }
.cht-tile small { font-size: 12px; color: var(--text-dim); }

.cht-skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 14px; }
.guide-section h2 + .cht-skills { margin-top: 0; }
.cht-skill { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.cht-skill:hover { border-color: rgba(204, 46, 254, 0.55); transform: translateY(-2px); box-shadow: 0 10px 28px -16px rgba(204, 46, 254, 0.6); }
.cht-skill header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cht-skill header b { font-family: var(--font-display); font-size: 18px; letter-spacing: .3px; }
.cht-skill .cht-role { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-dim); }
.cht-skill.cht-prio { border-color: rgba(204, 46, 254, 0.45); background: linear-gradient(160deg, rgba(204, 46, 254, 0.12), var(--bg-card) 60%); }
.cht-skill.cht-prio::before { content: "PRIORIDADE"; position: absolute; top: -9px; left: 14px; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; padding: 2px 8px; border-radius: 999px; color: #fff; background: linear-gradient(90deg, #cc2efe, #5401d7); box-shadow: 0 0 12px rgba(204, 46, 254, 0.5); }
.cht-skill.cht-dim { opacity: .62; }
.cht-lvl { flex: none; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; color: var(--gold); border: 1px solid rgba(232, 182, 74, 0.45); background: rgba(232, 182, 74, 0.08); white-space: nowrap; }

.cht-specs { display: flex; gap: 6px; }
.cht-spec { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 13px; font-weight: 700; color: #5d576c; background: #0d0b12; border: 1px solid var(--border); }
.cht-spec.on { color: #fff; border-color: #d135fe; background: radial-gradient(circle at 35% 30%, #cc2efe, #5401d7); box-shadow: 0 0 10px rgba(204, 46, 254, 0.55); }
p .cht-spec { width: 22px; height: 22px; font-size: 11px; vertical-align: middle; }

.cht-path { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cht-path li { font-size: 12px; padding: 3px 9px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); color: var(--text); }
.cht-path li i { font-style: normal; color: var(--text-dim); margin-right: 4px; }
.cht-path li:last-child { border-color: rgba(204, 46, 254, 0.45); }

.cht-rank { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: chtrank; }
.cht-rank li { counter-increment: chtrank; display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--border); }
.cht-rank li::before { content: counter(chtrank); flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-family: var(--font-display); font-size: 18px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #cc2efe, #5401d7); box-shadow: 0 0 12px rgba(204, 46, 254, 0.45); }
.cht-rank li:first-child { border-color: rgba(232, 182, 74, 0.5); }
.cht-rank li:first-child::before { background: linear-gradient(135deg, #f3cf72, #b07d1c); box-shadow: 0 0 12px rgba(232, 182, 74, 0.45); color: #1a1206; }
.cht-rank b { font-family: var(--font-display); font-size: 17px; min-width: 170px; }
.cht-rank span { font-size: 13px; color: var(--text-dim); }

.cht-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cht-chip { font-family: var(--font-display); font-weight: 700; font-size: 15px; padding: 6px 14px; border-radius: 999px; color: #fff; border: 1px solid #d135fe; background: linear-gradient(135deg, rgba(204, 46, 254, 0.28), rgba(84, 1, 215, 0.28)); box-shadow: 0 0 12px -2px rgba(204, 46, 254, 0.45); }

.cht-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 4px; counter-reset: chtflow; }
.cht-flow span { counter-increment: chtflow; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 15px; padding: 8px 14px; border-radius: 12px; background: var(--bg-card); border: 1px solid rgba(204, 46, 254, 0.45); }
.cht-flow span::before { content: counter(chtflow); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; color: #fff; background: linear-gradient(135deg, #cc2efe, #5401d7); }
.cht-flow span:not(:last-child)::after { content: "›"; margin-left: 6px; margin-right: -2px; color: #cc2efe; font-size: 18px; }

.cht-timeline { list-style: none; margin: 0; padding: 0 0 0 6px; counter-reset: chtstep; }
.cht-timeline li { counter-increment: chtstep; position: relative; padding: 0 0 18px 48px; display: flex; flex-direction: column; gap: 4px; }
.cht-timeline li::before { content: counter(chtstep); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: #fff; background: radial-gradient(circle at 35% 30%, #cc2efe, #5401d7); box-shadow: 0 0 14px rgba(204, 46, 254, 0.55); }
.cht-timeline li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: linear-gradient(#cc2efe, rgba(84, 1, 215, 0.15)); }
.cht-timeline li:first-child::before { background: radial-gradient(circle at 35% 30%, #f3cf72, #b07d1c); color: #1a1206; box-shadow: 0 0 14px rgba(232, 182, 74, 0.55); }
.cht-timeline b { font-family: var(--font-display); font-size: 17px; }
.cht-timeline span { font-size: 13.5px; line-height: 1.5; color: var(--text-dim); }

.cht-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; }
.cht-checks li { position: relative; padding: 10px 12px 10px 40px; border-radius: 10px; background: var(--bg-card); border: 1px solid var(--border); font-size: 13.5px; line-height: 1.4; }
.cht-checks li::before { content: "✓"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #cc2efe, #5401d7); }

@media (max-width: 560px) {
  .cht-rank li { flex-wrap: wrap; gap: 6px 12px; }
  .cht-rank b { min-width: 0; }
  .cht-timeline li { padding-left: 44px; }
}

/* Tutorial Chanter — complementos (2026-10-06) */
.cht-notes { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px dashed var(--border); display: flex; flex-direction: column; gap: 5px; }
.cht-notes li { position: relative; padding-left: 14px; font-size: 12.5px; line-height: 1.45; color: var(--text-dim); }
.cht-notes li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: #cc2efe; box-shadow: 0 0 6px rgba(204, 46, 254, 0.8); }
.cht-notes b { color: var(--text); font-weight: 600; }
.cht-chip.cht-chip-soft { font-family: inherit; font-weight: 600; font-size: 13px; background: var(--bg-card); border-color: rgba(204, 46, 254, 0.45); box-shadow: none; }
.cht-flow.cht-flow-alt { margin-top: 0; }
.cht-flow.cht-flow-alt span { border-style: dashed; }
.cht-flow.cht-flow-alt span::before { content: "2"; }
.guide-sub + .cht-timeline, .guide-sub + .cht-flow { margin-top: 0; }
#tutChanter .guide-section > * + .guide-sub { margin-top: 20px; }

/* Tutorial Chanter — ícones oficiais das skills (2026-10-06) */
.cht-ico { width: 26px; height: 26px; flex: none; border-radius: 7px; object-fit: cover; vertical-align: middle; border: 1px solid rgba(204, 46, 254, 0.45); box-shadow: 0 0 8px -2px rgba(204, 46, 254, 0.6); background: #0d0b12; }
.cht-name { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.cht-skill header .cht-ico { width: 44px; height: 44px; border-radius: 10px; }
.cht-skill.cht-prio header .cht-ico { border-color: #d135fe; box-shadow: 0 0 12px rgba(204, 46, 254, 0.7); }
.cht-skill.cht-dim .cht-ico { filter: grayscale(.6); }
.cht-rank li { gap: 12px; }
.cht-rank .cht-ico { width: 38px; height: 38px; border-radius: 9px; }
.cht-chip .cht-ico, .cht-flow .cht-ico { width: 22px; height: 22px; border-radius: 6px; margin-right: 7px; }
.cht-chip { display: inline-flex; align-items: center; }
.cht-flow span { gap: 0; }
.cht-flow span::before { margin-right: 8px; }
.guide-table .cht-ico { width: 30px; height: 30px; }
.cht-timeline b .cht-ico { width: 24px; height: 24px; margin-right: 8px; margin-top: -3px; }
.guide-list li > .cht-ico { width: 22px; height: 22px; margin-right: 6px; }

/* ==========================================================================
   Notícias AION 2 (2026-10-08)
   ========================================================================== */
#bubbleNews { position: relative; overflow: visible; }
#bubbleNews.has-news::after {
  content: attr(data-count);
  position: absolute; top: 6%; right: 6%;
  min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box;
  border-radius: 999px; background: #e0405e; color: #fff;
  font: 700 12px/22px var(--font-display); text-align: center;
  box-shadow: 0 0 0 3px #0b0710, 0 0 14px rgba(224, 64, 94, 0.8);
  animation: newsPulse 2s ease-in-out infinite;
}
@keyframes newsPulse { 50% { box-shadow: 0 0 0 3px #0b0710, 0 0 22px rgba(224, 64, 94, 1); } }

.news-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; min-height: 34px; }
.news-updated { color: var(--text-dim); font-size: 13px; }
.news-refresh {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--bg-card); color: var(--text-dim); cursor: pointer;
  transition: color .2s, border-color .2s, box-shadow .2s;
}
.news-refresh:hover { color: #fff; border-color: #cc2efe; box-shadow: 0 0 14px rgba(204, 46, 254, 0.45); }
.news-refresh svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.news-refresh.spinning svg { animation: newsSpin .9s linear infinite; }
@keyframes newsSpin { to { transform: rotate(360deg); } }

.news-list { display: grid; gap: 14px; }
.news-state { color: var(--text-dim); text-align: center; padding: 40px 12px; border: 1px dashed var(--border-strong); border-radius: var(--radius); }

.news-card {
  --tone: #8b3fd4;
  display: block; position: relative; padding: 16px 18px 14px 22px;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow-card);
  color: var(--text); text-decoration: none; overflow: hidden;
  transition: transform .15s, border-color .2s, box-shadow .2s;
}
.news-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tone); box-shadow: 0 0 12px var(--tone); }
.news-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--tone) 60%, var(--border)); box-shadow: var(--shadow-card), 0 0 24px -8px var(--tone); }
.news-card.top { border-color: color-mix(in srgb, var(--tone) 45%, var(--border)); }
.news-card.top .news-title { font-size: 22px; }

.news-card.type-incident { --tone: #e0405e; }
.news-card.type-maintenance { --tone: #e8b64a; }
.news-card.type-update { --tone: #cc2efe; }
.news-card.type-server { --tone: #4a9bf2; }
.news-card.type-reward { --tone: #57c98a; }
.news-card.type-event { --tone: #e0708a; }
.news-card.type-notice { --tone: #9d98ad; }

.news-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.news-tag {
  padding: 2px 10px; border-radius: 999px; font: 700 12px/18px var(--font-display); letter-spacing: .6px; text-transform: uppercase;
  color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tone) 40%, transparent);
}
.news-new {
  padding: 2px 8px; border-radius: 999px; font: 700 11px/18px var(--font-display); letter-spacing: .6px; text-transform: uppercase;
  color: #fff; background: linear-gradient(135deg, #d135fe, #5401d7); box-shadow: 0 0 10px rgba(204, 46, 254, 0.6);
}
.news-date { margin-left: auto; color: var(--text-dim); font-size: 12.5px; }
.news-title { margin: 0 0 6px; font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.25; }
.news-summary { margin: 0 0 10px; color: var(--text-dim); font-size: 14px; line-height: 1.5; }
.news-foot { display: flex; justify-content: space-between; color: var(--text-dim); font-size: 12.5px; }
.news-open { color: var(--tone); font-weight: 600; }

@media (max-width: 600px) {
  .news-card { padding: 14px 14px 12px 18px; }
  .news-card.top .news-title { font-size: 19px; }
  .news-date { margin-left: 0; width: 100%; }
}
.news-card.type-issues { --tone: #f08a4b; }

/* Notícias AION 2 — leitura dentro do hub (popup) */
.news-card { cursor: pointer; }
.news-card:focus-visible { outline: 2px solid #cc2efe; outline-offset: 2px; }
body.news-reading { overflow: hidden; }

.news-article {
  --tone: #8b3fd4;
  max-width: 760px; padding: 0; display: flex; flex-direction: column;
  border-color: color-mix(in srgb, var(--tone) 45%, var(--border));
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 40px -18px var(--tone);
}
.news-article.type-incident { --tone: #e0405e; }
.news-article.type-maintenance { --tone: #e8b64a; }
.news-article.type-update { --tone: #cc2efe; }
.news-article.type-server { --tone: #4a9bf2; }
.news-article.type-reward { --tone: #57c98a; }
.news-article.type-event { --tone: #e0708a; }
.news-article.type-issues { --tone: #f08a4b; }
.news-article.type-notice { --tone: #9d98ad; }

.news-article-head {
  position: sticky; top: 0; z-index: 1; padding: 22px 56px 16px 26px;
  background: linear-gradient(180deg, var(--bg-elevated) 82%, rgba(20, 18, 27, 0.92));
  border-bottom: 1px solid var(--border);
}
.news-article-head::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--tone); box-shadow: 0 0 14px var(--tone); }
.news-article-head .news-date { margin-left: 0; }
.news-article-head h2 { margin: 6px 0 0; font-family: var(--font-display); font-size: 24px; line-height: 1.2; }
.news-article .modal-close { z-index: 2; top: 18px; }

.news-article-body { padding: 20px 26px 8px; color: #d9d6e3; font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.news-article-body > :first-child { margin-top: 0; }
.news-article-body p { margin: 0 0 12px; }
.news-article-body h1, .news-article-body h2, .news-article-body h3, .news-article-body h4 { font-family: var(--font-display); color: var(--text); margin: 20px 0 8px; line-height: 1.25; }
.news-article-body h1, .news-article-body h2 { font-size: 21px; }
.news-article-body h3, .news-article-body h4 { font-size: 18px; }
.news-article-body strong, .news-article-body b { color: var(--text); }
.news-article-body a { color: #d68bff; text-decoration: underline; text-underline-offset: 2px; }
.news-article-body ul, .news-article-body ol { margin: 0 0 12px; padding-left: 22px; }
.news-article-body li { margin: 3px 0; }
.news-article-body li::marker { color: var(--tone); }
.news-article-body img { display: block; max-width: 100%; height: auto; margin: 4px auto 14px; border-radius: 10px; }
.news-article-body hr { border: 0; border-top: 1px solid var(--border-strong); margin: 18px 0; }
.news-article-body blockquote { margin: 0 0 12px; padding: 8px 14px; border-left: 3px solid var(--tone); background: var(--bg-card); border-radius: 0 8px 8px 0; }
.news-article-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 6px 0 16px; font-size: 14px; }
.news-article-body th, .news-article-body td { border: 1px solid var(--border-strong); padding: 7px 10px; text-align: left; vertical-align: top; }
.news-article-body th { background: color-mix(in srgb, var(--tone) 14%, var(--bg-card)); color: var(--text); }
.news-article-body tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }
.news-article-state { color: var(--text-dim); text-align: center; padding: 30px 0; }

.news-article-foot { padding: 12px 26px 20px; border-top: 1px solid var(--border); text-align: right; font-size: 13px; }
.news-article-foot a { color: var(--text-dim); text-decoration: none; }
.news-article-foot a:hover { color: var(--tone); }

@media (max-width: 600px) {
  .news-article-head { padding: 18px 48px 14px 18px; }
  .news-article-head h2 { font-size: 20px; }
  .news-article-body { padding: 16px 18px 6px; font-size: 14.5px; }
  .news-article-foot { padding: 10px 18px 16px; }
}

/* =========================================================
   Idioma PT / EN (i18n.js)
   ========================================================= */
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(204, 46, 254, 0.35);
  background: rgba(20, 10, 34, 0.7);
  gap: 2px;
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font: 700 12px/1 'Rajdhani', 'Inter', sans-serif;
  letter-spacing: 1px;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .15s, background .15s, box-shadow .15s;
}
.lang-switch button:hover { color: #fff; }
.lang-switch button.active {
  color: #fff;
  background: linear-gradient(135deg, #cc2efe, #5401d7);
  box-shadow: 0 0 10px rgba(204, 46, 254, 0.45);
  cursor: default;
}
.lang-switch:focus-within { outline: none; box-shadow: 0 0 0 2px rgba(204, 46, 254, 0.35); }
.lang-switch-float { position: fixed; top: 16px; right: 16px; z-index: 50; }

/* textos de CSS em inglês */
html[lang="en"] .cht-skill.cht-prio::before { content: "PRIORITY"; }

/* ===== Catálogo do mundo (só admin; world.js) ===== */
.wd-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.wd-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.wd-tab {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--bg-card); color: var(--text-dim); font: 600 14px var(--font-display); letter-spacing: .5px; cursor: pointer;
}
.wd-tab.active { color: #fff; border-color: #cc2efe; background: linear-gradient(135deg, rgba(204, 46, 254, .28), rgba(84, 1, 215, .28)); box-shadow: 0 0 14px rgba(204, 46, 254, .3); }
.wd-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
.wd-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.wd-tile b { display: block; font: 700 24px var(--font-display); color: #fff; }
.wd-tile span { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
.wd-filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.wd-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.wd-search, .wd-select, .wd-name, .wd-label, .wd-label-new {
  background: var(--bg-card); border: 1px solid var(--border-strong); color: var(--text); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 14px;
}
.wd-search { width: 100%; }
.wd-search:focus, .wd-name:focus, .wd-label-new:focus { outline: none; border-color: #cc2efe; box-shadow: 0 0 0 3px rgba(204, 46, 254, .18); }
.wd-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.wd-pill {
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent;
  color: var(--text-dim); font-size: 13px; cursor: pointer;
}
.wd-pill i { font-style: normal; opacity: .7; margin-left: 4px; }
.wd-pill.on { color: #fff; border-color: #cc2efe; background: rgba(204, 46, 254, .18); }
.wd-count { margin-left: auto; color: var(--text-dim); font-size: 13px; }
.wd-list { display: grid; gap: 10px; }
.wd-card {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--border-strong);
  border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-card);
}
.wd-card.cat-boss { border-left-color: #e2463c; }
.wd-card.cat-cubo { border-left-color: var(--gold); }
.wd-card.cat-recolha { border-left-color: #3ccf7a; }
.wd-card.cat-monstro { border-left-color: #8b3fd4; }
.wd-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.wd-head h3 { margin: 0; font: 700 17px var(--font-display); color: #fff; }
.wd-head code { color: var(--text-dim); font-size: 12px; }
.wd-head .wd-label { margin-left: auto; padding: 5px 10px; font-size: 13px; max-width: 220px; }
.wd-badge { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .06); color: var(--text-dim); }
.cat-boss .wd-badge { color: #ff8a80; background: rgba(226, 70, 60, .15); }
.cat-cubo .wd-badge { color: var(--gold); background: rgba(232, 182, 74, .14); }
.cat-recolha .wd-badge { color: #6fe3a1; background: rgba(60, 207, 122, .14); }
.wd-stats { margin-top: 6px; font-size: 13px; color: var(--text); }
.wd-hi { color: #e9b8ff; font-weight: 600; }
.wd-detail { margin-top: 3px; font-size: 12px; color: var(--text-dim); }
.wd-loot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wd-chip { font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(232, 182, 74, .4); background: rgba(232, 182, 74, .08); color: var(--text); cursor: pointer; }
.wd-chip i { font-style: normal; color: var(--gold); margin-left: 2px; }
.wd-chip.unnamed { border-style: dashed; color: var(--text-dim); font-family: ui-monospace, Consolas, monospace; }
.wd-more { display: block; margin: 14px auto 0; }
.wd-empty { padding: 20px; text-align: center; color: var(--text-dim); background: var(--bg-card); border: 1px dashed var(--border-strong); border-radius: 14px; margin-bottom: 12px; }
.wd-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wd-table th { text-align: left; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); padding: 8px 10px; border-bottom: 1px solid var(--border-strong); }
.wd-table td { padding: 7px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.wd-table tr:hover td { background: rgba(255, 255, 255, .02); }
.wd-name { width: 100%; min-width: 180px; padding: 6px 10px; }
.wd-name.saved { border-color: #3ccf7a; }
.wd-name.error { border-color: #e2463c; }
.wd-from { color: var(--text-dim); font-size: 12px; }
.wd-hint { color: var(--text-dim); font-size: 13px; margin: 0 0 10px; }
#wdActions { margin-bottom: 8px; }
#wdPacketsInfo { margin-bottom: 10px; }
.wd-lift { display: inline-block; min-width: 64px; padding: 2px 6px; border-radius: 6px; font-weight: 600;
  background: linear-gradient(90deg, rgba(204, 46, 254, .45) var(--w), rgba(255, 255, 255, .05) var(--w)); }
.wd-hex code { display: block; font-size: 11px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px; }
@media (max-width: 700px) {
  .wd-head .wd-label { margin-left: 0; max-width: none; width: 100%; }
  .wd-count { margin-left: 0; }
  .wd-hex code { max-width: 160px; }
  .wd-table { display: block; overflow-x: auto; }
}

/* ===== Bolha Shadow Meter: download (meter-dl.js) ===== */
.meterdl-view .hero-with-icon { display: flex; align-items: center; gap: 18px; }
.md-card { max-width: 760px; background: var(--surface); border: 1px solid rgba(204, 46, 254, .35); border-radius: 18px; padding: 22px 24px; box-shadow: 0 0 30px -12px rgba(204, 46, 254, .45), var(--shadow-card); }
.md-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.md-label { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.md-version { font: 700 40px/1 var(--font-display); color: #fff; text-shadow: 0 0 18px rgba(204, 46, 254, .55); }
.md-meta { margin-top: 6px; font-size: 13px; color: var(--text-dim); }
.md-download {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; text-decoration: none;
  font: 700 17px var(--font-display); letter-spacing: .6px; color: #fff;
  background: linear-gradient(135deg, #cc2efe, #5401d7); box-shadow: 0 0 22px rgba(204, 46, 254, .5);
  transition: transform .15s, box-shadow .2s;
}
.md-download:hover { transform: translateY(-1px); box-shadow: 0 0 30px rgba(204, 46, 254, .75); }
.md-download svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.md-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.md-notes, .md-steps ol { margin: 0; padding-left: 20px; color: var(--text); line-height: 1.6; font-size: 14px; }
.md-steps ol { color: var(--text-dim); }
.md-sha { margin-top: 18px; font-size: 11px; color: var(--text-dim); word-break: break-all; }
.md-sha code { color: var(--text-dim); }
@media (max-width: 600px) { .md-download { width: 100%; justify-content: center; } .md-version { font-size: 32px; } }
.md-privacy { margin: 12px 0 0; font-size: 12px; color: var(--text-dim); }
