/**
 * Duskara Admin — Fase 2 AAA (talent tree, battle pass, exploration, profile)
 */

/* —— Talent tree canvas —— */
.adf-tt-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0.65rem;
  min-height: 520px;
  height: calc(100vh - 160px);
  max-height: 720px;
}

/* —— Balance Center (Fase R) —— */
.bal-root { padding: 0.5rem 0; }
.bal-header { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.bal-title { margin: 0 0 0.25rem; font-size: 1.35rem; }
.bal-sub { margin: 0; opacity: 0.75; font-size: 0.9rem; }
.bal-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem; }
.bal-tab { padding: 0.4rem 0.75rem; border-radius: 6px; border: 1px solid var(--adf-border, #333); background: transparent; cursor: pointer; }
.bal-tab--active { background: rgba(5, 150, 105, 0.25); border-color: #059669; }
.bal-panel.hidden { display: none; }
.bal-card { background: rgba(0,0,0,0.15); border: 1px solid var(--adf-border, #333); border-radius: 8px; padding: 1rem; margin-bottom: 1rem; }
.bal-card h3 { margin-top: 0; font-size: 1.05rem; }
.bal-grid { display: grid; gap: 0.75rem; }
.bal-grid--3 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.bal-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.bal-table th, .bal-table td { border-bottom: 1px solid var(--adf-border, #333); padding: 0.4rem 0.5rem; text-align: left; }
.bal-verdict { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.8rem; font-weight: 600; }
.bal-verdict--green { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.bal-verdict--yellow { background: rgba(234, 179, 8, 0.2); color: #facc15; }
.bal-verdict--red { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.bal-verdict--purple { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.bal-alerts { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.bal-alert--extreme { color: #c084fc; }
.bal-alert--dangerous { color: #f87171; }
.bal-alert--attention { color: #facc15; }
.bal-diff-table code { font-size: 0.8rem; }
.bal-diff-wrap h6 { margin: 0.25rem 0 0.5rem; }
.bal-diff--ok { color: #4ade80; }
.bal-diff--warn { color: #facc15; }
.bal-diff--danger { color: #f87171; }
.bal-diff--extreme { color: #c084fc; }
.bal-snapshot-note { margin: 0.25rem 0 0.75rem; }
.bal-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; margin-bottom: 0.75rem; }
.bal-form-grid label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; }
.bal-out { margin-top: 1rem; }
.bal-muted { opacity: 0.65; }
.bal-error { color: #f87171; }
.bal-editor-panel { margin: 0.75rem 0; padding: 0.75rem 1rem; border: 1px solid var(--adf-border, #333); border-radius: 8px; background: rgba(0,0,0,0.12); }
.bal-editor-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.65rem; }
.bal-editor-head h5, .bal-editor-head h6 { margin: 0; font-size: 0.95rem; }
.bal-editor-metrics .bal-metric span { display: block; font-size: 0.75rem; opacity: 0.7; }
.bal-editor-metrics .bal-metric strong { font-size: 0.95rem; }
.bal-editor-compare { margin-top: 0.75rem; }
.bal-editor-pools { margin-top: 0.5rem; }
.bal-table--compact { font-size: 0.8rem; }
.bal-formula-wrap { margin: 0.5rem 0 0; }
.bal-formula-link { background: none; border: none; padding: 0; color: #34d399; cursor: pointer; font-size: 0.82rem; text-decoration: underline; }
.bal-formula-detail { margin-top: 0.35rem; }
.bal-formula-detail.hidden { display: none; }
.bal-formula-block { margin-bottom: 0.5rem; }
.bal-formula-block code { display: block; font-size: 0.78rem; margin: 0.25rem 0; opacity: 0.9; }
.bal-actions-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.5rem 0; }

.adf-tt-layout--grid {
  min-height: 360px;
  height: auto;
  max-height: none;
}

.adf-tt-grid-wrap {
  padding: 0.55rem 0.65rem;
  min-height: 300px;
  overflow: auto;
  border: 1px solid var(--adf-border);
  border-radius: var(--adf-radius);
  background: rgba(0, 0, 0, 0.2);
}

.tt-grid--admin .tt-node {
  min-width: 92px;
}

.adf-tt-canvas-wrap {
  position: relative;
  border: 1px solid var(--adf-border);
  border-radius: var(--adf-radius);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.12), transparent 55%),
    linear-gradient(180deg, #0a0a10 0%, #12121c 100%);
  box-shadow: inset 0 0 60px rgba(75, 42, 103, 0.25);
}

.adf-tt-canvas-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.adf-tt-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
}

.adf-tt-viewport.is-panning {
  cursor: grabbing;
}

.adf-tt-world {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  width: 2000px;
  height: 1400px;
}

.adf-tt-svg-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.adf-tt-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.55;
  transition: stroke 0.2s, opacity 0.2s;
}

.adf-tt-line--inactive {
  stroke: rgba(139, 92, 246, 0.35);
}

.adf-tt-line--active {
  stroke: var(--adf-gold);
  opacity: 0.9;
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.6));
  animation: adf-line-pulse 2.5s ease-in-out infinite;
}

@keyframes adf-line-pulse {
  0%, 100% { stroke-opacity: 0.7; }
  50% { stroke-opacity: 1; }
}

.adf-tt-node {
  position: absolute;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  border: 2px solid rgba(139, 92, 246, 0.5);
  background: radial-gradient(circle at 35% 30%, #2a2040, #151520);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  z-index: 2;
}

.adf-tt-node:hover {
  transform: scale(1.12);
  z-index: 5;
}

.adf-tt-node--selected {
  border-color: var(--adf-gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
  transform: scale(1.08);
}

.adf-tt-node--locked {
  opacity: 0.45;
  filter: grayscale(0.6);
}

.adf-tt-node--available {
  border-color: var(--adf-neon);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.45);
  animation: adf-node-glow 2s ease-in-out infinite;
}

.adf-tt-node--learned {
  border-color: var(--adf-success);
  box-shadow: 0 0 10px rgba(0, 217, 139, 0.35);
}

@keyframes adf-node-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(139, 92, 246, 0.3); }
  50% { box-shadow: 0 0 18px rgba(139, 92, 246, 0.55); }
}

.adf-tt-node-thumb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.adf-tt-minimap {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 120px;
  height: 84px;
  border: 1px solid var(--adf-border);
  border-radius: 6px;
  background: rgba(13, 13, 18, 0.85);
  overflow: hidden;
  z-index: 10;
}

.adf-tt-minimap-viewport {
  position: absolute;
  border: 1px solid var(--adf-gold);
  background: rgba(212, 175, 55, 0.12);
  pointer-events: none;
}

.adf-tt-zoom-bar {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: flex;
  gap: 0.25rem;
  z-index: 10;
}

.adf-tt-tooltip {
  position: fixed;
  z-index: 9999;
  padding: 0.45rem 0.6rem;
  background: rgba(21, 21, 32, 0.95);
  border: 1px solid var(--adf-neon);
  border-radius: 6px;
  font-size: 0.75rem;
  pointer-events: none;
  box-shadow: var(--adf-glow);
  max-width: 220px;
}

.adf-tt-side {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  max-height: 100%;
}

.adf-tt-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto;
  border: 2px solid var(--adf-gold);
  background: #1b1b28;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* —— Battle pass trail —— */
.adf-bp-hero {
  padding: 0.75rem 1rem;
  margin-bottom: 0.65rem;
  border-radius: var(--adf-radius);
  background: linear-gradient(135deg, rgba(75, 42, 103, 0.5), rgba(13, 13, 18, 0.9));
  border: 1px solid var(--adf-border);
  position: relative;
  overflow: hidden;
}

.adf-bp-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.08), transparent);
  animation: adf-bp-shine 4s linear infinite;
}

@keyframes adf-bp-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.adf-bp-hero h4 {
  margin: 0 0 0.25rem;
  font-family: var(--adf-font-title);
  color: var(--adf-gold);
}

.adf-bp-progress-wrap {
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.adf-bp-progress-fill {
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, var(--adf-purple), var(--adf-neon), var(--adf-gold));
  border-radius: 4px;
  animation: adf-bp-xp 3s ease-in-out infinite alternate;
}

@keyframes adf-bp-xp {
  from { width: 30%; opacity: 0.85; }
  to { width: 42%; opacity: 1; }
}

.adf-bp-trail-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1.5rem 0.5rem 1rem;
  margin: 0.5rem 0;
  border: 1px solid var(--adf-border);
  border-radius: var(--adf-radius);
  background: rgba(13, 13, 18, 0.6);
  scrollbar-width: thin;
}

.adf-bp-trail {
  display: flex;
  align-items: flex-end;
  gap: 0;
  min-width: min-content;
  position: relative;
  padding: 0 1rem;
}

.adf-bp-trail-rail {
  position: absolute;
  left: 2rem;
  right: 2rem;
  top: 50%;
  height: 3px;
  background: linear-gradient(90deg, var(--adf-purple), var(--adf-neon));
  transform: translateY(-50%);
  z-index: 0;
  border-radius: 2px;
}

.adf-bp-tier {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  padding: 0 0.35rem;
}

.adf-bp-tier-num {
  font-size: 0.7rem;
  color: var(--adf-muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.adf-bp-reward-card {
  width: 88px;
  padding: 0.4rem;
  border-radius: 8px;
  border: 1px solid var(--adf-border);
  text-align: center;
  font-size: 0.68rem;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  margin: 0.2rem 0;
}

.adf-bp-reward-card:hover {
  transform: translateY(-3px);
}

.adf-bp-reward-card--free {
  background: linear-gradient(180deg, rgba(180, 180, 200, 0.12), rgba(27, 27, 40, 0.9));
  border-color: rgba(200, 200, 220, 0.25);
}

.adf-bp-reward-card--prem {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.18), rgba(75, 42, 103, 0.5));
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.15);
}

.adf-bp-reward-card--prem:hover {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
}

.adf-bp-reward-icon {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 0.2rem;
}

.adf-bp-reward-card input {
  width: 100%;
  font-size: 0.65rem;
  margin-top: 0.2rem;
  min-height: 24px !important;
  padding: 0.15rem !important;
}

.adf-bp-settings-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

/* —— Exploration AAA —— */
.adf-exp-layout-v2 {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0.65rem;
  min-height: 480px;
}

.adf-exp-region-banner {
  height: 100px;
  border-radius: var(--adf-radius);
  margin-bottom: 0.65rem;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--adf-border);
  position: relative;
  overflow: hidden;
}

.adf-exp-region-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 13, 18, 0.85), transparent 60%);
}

.adf-exp-region-banner h4 {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0.75rem 1rem;
  font-family: var(--adf-font-title);
  color: var(--adf-gold);
}

.adf-exp-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.adf-exp-tab {
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  border: 1px solid var(--adf-border);
  border-radius: 6px;
  background: var(--adf-card);
  color: var(--adf-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.adf-exp-tab--on {
  color: var(--adf-text);
  border-color: var(--adf-neon);
  box-shadow: var(--adf-glow);
  background: rgba(139, 92, 246, 0.15);
}

.adf-exp-event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.45rem;
}

.adf-exp-event-card {
  padding: 0.5rem;
  border: 1px solid var(--adf-border);
  border-radius: var(--adf-radius-sm);
  background: var(--adf-card);
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.adf-exp-event-card:hover {
  border-color: var(--adf-neon);
  box-shadow: var(--adf-glow);
}

.adf-exp-event-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.25rem;
}

.adf-exp-event-card input {
  width: 100%;
  max-width: 4rem;
  margin: 0.25rem auto 0;
}

.adf-exp-drop-acc {
  border: 1px solid var(--adf-border);
  border-radius: var(--adf-radius-sm);
  margin-bottom: 0.35rem;
  overflow: hidden;
}

.adf-exp-drop-acc summary {
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  background: rgba(75, 42, 103, 0.2);
  font-size: 0.78rem;
  font-weight: 600;
}

.adf-exp-drop-acc[open] summary {
  border-bottom: 1px solid var(--adf-border);
}

.adf-exp-drop-acc .admin-table {
  margin: 0;
  font-size: 0.72rem;
}

/* —— Player profile (game + admin preview) —— */
.profile-modal {
  z-index: 250;
}

.profile-modal-sheet {
  max-width: 760px;
  width: 95vw;
}

.social-profile-card--aaa {
  border: 1px solid var(--adf-border);
  border-radius: var(--adf-radius);
  overflow: hidden;
  background: var(--adf-card);
}

.profile-banner {
  width: 100%;
  aspect-ratio: 2.35 / 1;
  height: auto;
  min-height: 0;
  background: linear-gradient(135deg, var(--adf-purple), #0d0d12);
  background-size: cover;
  background-position: center;
  position: relative;
}

.profile-banner-frame {
  position: absolute;
  inset: 0;
  border-bottom: 2px solid var(--adf-gold);
  box-shadow: inset 0 0 30px rgba(139, 92, 246, 0.2);
}

.profile-avatar-wrap {
  position: relative;
  margin-top: -36px;
  margin-left: 1rem;
  width: 72px;
  height: 72px;
}

.profile-avatar-wrap--plain {
  margin-top: -36px;
  margin-left: 1rem;
  margin-bottom: 0.25rem;
}

.profile-avatar-wrap img,
.profile-avatar-wrap .profile-avatar-fallback {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--adf-gold);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.4);
  background: #1b1b28;
  object-fit: cover;
}

.profile-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.profile-status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #1b1b28;
  background: var(--adf-success);
}

.profile-status-dot--off {
  background: var(--adf-muted);
}

.profile-body-aaa {
  padding: 0.5rem 1rem 1rem;
}

.profile-title-tag {
  display: inline-block;
  font-size: 0.68rem;
  color: var(--adf-gold);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-bottom: 0.25rem;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem;
  margin: 0.65rem 0;
}

.profile-stat-cell {
  padding: 0.35rem 0.45rem;
  background: rgba(13, 13, 18, 0.6);
  border: 1px solid var(--adf-border);
  border-radius: 6px;
  font-size: 0.75rem;
}

.profile-stat-cell strong {
  display: block;
  color: var(--adf-gold);
  font-size: 0.9rem;
}

.profile-trophy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.5rem 0;
}

.profile-trophy {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--adf-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  text-align: center;
  background: rgba(139, 92, 246, 0.1);
}

.profile-trophy--epic { border-color: #c084fc; box-shadow: 0 0 8px rgba(192, 132, 252, 0.3); }
.profile-trophy--legendary { border-color: var(--adf-gold); box-shadow: 0 0 8px rgba(212, 175, 55, 0.35); }

.profile-edit-section {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--adf-border);
}

.clickable-player {
  cursor: pointer;
  color: var(--adf-neon);
  text-decoration: none;
  transition: color 0.15s, text-shadow 0.15s;
}

.clickable-player:hover {
  color: var(--adf-gold);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* Global rarity borders in admin */
.adf-rarity-glow--common { box-shadow: 0 0 6px rgba(180, 180, 200, 0.2); }
.adf-rarity-glow--uncommon { box-shadow: 0 0 8px rgba(0, 217, 139, 0.25); }
.adf-rarity-glow--rare { box-shadow: 0 0 10px rgba(96, 165, 250, 0.3); }
.adf-rarity-glow--epic { box-shadow: 0 0 12px rgba(192, 132, 252, 0.35); }
.adf-rarity-glow--legendary { box-shadow: 0 0 14px rgba(212, 175, 55, 0.4); }
.adf-rarity-glow--mythical { box-shadow: 0 0 16px rgba(255, 77, 94, 0.35); }

/* Ambient admin workspace */
.admin-workspace-body.adf-root::before {
  content: '';
  position: fixed;
  inset: 48px 0 0 0;
  pointer-events: none;
  background: radial-gradient(ellipse 40% 30% at 80% 20%, rgba(139, 92, 246, 0.06), transparent);
  z-index: 0;
}

.admin-workspace-body.adf-root > * {
  position: relative;
  z-index: 1;
}

/* Micro-animações globais admin */
.adf-card,
.adf-exp-tab,
.adf-bp-reward-card,
.admin-exp-region-btn {
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s, background 0.2s;
}

.adf-card:hover {
  border-color: rgba(139, 92, 246, 0.35);
}

.adf-exp-tab-panel {
  animation: adf-fade-in 0.25s ease;
}

/* Editor de cavernas — layout compacto */
.adf-exp-editor-v2 {
  font-size: 0.82rem;
}

.adf-exp-editor-v2 .adf-section {
  margin-bottom: 0.5rem;
}

.adf-exp-editor-v2 .adf-section-body {
  padding: 0.45rem 0.55rem;
}

.adf-exp-editor-v2 .adf-grid {
  gap: 0.35rem 0.5rem;
}

.adf-exp-row-compact .adf-field {
  max-width: 9.5rem;
}

.adf-exp-editor-v2 .adf-field--wide {
  grid-column: span 1;
}

.adf-exp-editor-v2 .adf-field--wide .adf-input--lg {
  max-width: 100%;
}

.adf-exp-editor-v2 .adf-input--desc {
  min-height: 52px;
  max-width: 100%;
  resize: vertical;
}

.adf-exp-editor-v2 .adf-input--num {
  width: 4.25rem;
  max-width: 4.25rem;
}

.adf-exp-editor-v2 .adf-input--sm {
  max-width: 5.5rem;
}

.adf-exp-editor-v2 .adf-input--md {
  max-width: 9rem;
}

.adf-exp-editor-v2 .adf-input--lg {
  max-width: 14rem;
}

.adf-exp-hint {
  margin: 0.2rem 0 0.45rem !important;
  font-size: 0.72rem !important;
}

.adf-exp-toggle-cell {
  display: flex;
  align-items: flex-end;
  min-height: 32px;
  max-width: none !important;
}

.adf-exp-toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0.25rem 0 0.5rem;
}

.adf-exp-editor-v2 .adf-toggle-row {
  font-size: 0.76rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: var(--adf-text);
}

.adf-exp-check-block {
  margin-bottom: 0.45rem;
}

.adf-exp-check-block > .adf-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--adf-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.adf-exp-editor-v2 .admin-check-group {
  gap: 0.25rem;
  margin: 0.15rem 0 0.35rem;
}

.adf-exp-editor-v2 .admin-check-chip {
  padding: 0.12rem 0.4rem;
  font-size: 0.68rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  flex-direction: row;
  margin: 0;
}

.adf-exp-editor-v2 .admin-check-chip input[type='checkbox'] {
  width: 14px !important;
  height: 14px !important;
  min-height: 14px !important;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--adf-neon);
}

.adf-exp-editor-v2 .admin-image-upload-row {
  padding: 0.4rem 0.5rem !important;
  margin-bottom: 0.4rem !important;
  max-width: 28rem;
}

.adf-exp-editor-v2 .admin-image-preview-inline {
  min-height: auto;
}

.adf-exp-editor-v2 .admin-img-thumb {
  max-height: 40px;
  max-width: 72px;
  object-fit: contain;
}

.adf-exp-region-banner {
  height: 72px;
  margin-bottom: 0.45rem;
}

.adf-exp-layout-v2 {
  min-height: 360px;
}

.admin-exp-main.adf-card {
  padding: 0.55rem 0.65rem;
}

.admin-exp-list.adf-card {
  padding: 0.45rem;
}

.adf-exp-icons-collapse {
  margin-bottom: 0.5rem;
  border: 1px solid var(--adf-border);
  border-radius: var(--adf-radius-sm);
  background: rgba(0, 0, 0, 0.15);
}

.adf-exp-icons-collapse summary {
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--adf-gold);
  user-select: none;
}

.adf-exp-icons-collapse[open] summary {
  border-bottom: 1px solid var(--adf-border);
  margin-bottom: 0.35rem;
}

.adf-exp-icons-collapse .admin-exp-icons-panel {
  margin-bottom: 0;
  border: none;
  background: transparent;
  padding: 0 0.55rem 0.45rem;
}

@keyframes adf-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .adf-tt-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .adf-tt-canvas-wrap {
    min-height: 360px;
  }
}

.profile-char-name { margin: 0.15rem 0; font-size: 1.05rem; }
.profile-meta-line, .profile-clan-line, .profile-bio, .profile-last-seen { font-size: 0.78rem; margin: 0.2rem 0; }
.profile-public-id { color: var(--gold-title, #d4af37); }
.profile-section-title { font-size: 0.72rem; margin: 0.6rem 0 0.3rem; color: var(--gold-title, #d4af37); }
.profile-stats-grid--aaa { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 0.35rem; }
.profile-stats-grid--aaa .profile-stat-cell { text-align: center; padding: 0.35rem; border-radius: 6px; background: rgba(139, 92, 246, 0.08); border: 1px solid rgba(139, 92, 246, 0.2); }
.profile-stats-grid--aaa .profile-stat-cell strong { display: block; font-size: 1rem; }
.profile-stats-grid--aaa .profile-stat-cell span { font-size: 0.62rem; color: var(--text-muted); }

.profile-cosmetic-grid, .profile-frame-grid, .profile-trophy-pick-grid {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.35rem;
}
.profile-cosmetic-card, .profile-frame-card, .profile-trophy-card {
  border: 2px solid rgba(139, 92, 246, 0.25); border-radius: 8px; padding: 0.35rem;
  background: rgba(0,0,0,0.25); cursor: pointer; min-width: 64px; text-align: center;
}
.profile-cosmetic-card--on, .profile-frame-card--on, .profile-trophy-card--on {
  border-color: var(--gold-title, #d4af37); box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}
.profile-cosmetic-card-visual img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.profile-frame-card-name, .profile-cosmetic-card-name, .profile-trophy-card-name { font-size: 0.62rem; display: block; margin-top: 0.2rem; }
.profile-trophy-counter { color: var(--gold-title, #d4af37); font-weight: 700; }

.profile-trophy--view { cursor: pointer; border: none; background: rgba(0,0,0,0.3); border-radius: 8px; padding: 0.25rem; min-width: 40px; min-height: 40px; }
.profile-trophy-modal { position: fixed; inset: 0; z-index: 12000; display: flex; align-items: center; justify-content: center; }
.profile-trophy-modal.hidden { display: none; }
.profile-trophy-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.65); }
.profile-trophy-modal-card { position: relative; z-index: 1; max-width: 280px; padding: 1rem; text-align: center; border-radius: 12px; background: #14101c; border: 2px solid rgba(139, 92, 246, 0.5); }
.profile-trophy-modal-art img { width: 96px; height: 96px; object-fit: contain; }

/* —— Perfil Público 2.0 (balanceado) —— */
.social-profile-card--v2 {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.social-profile-card--balanced .profile-banner--balanced {
  aspect-ratio: 2.85 / 1;
  max-height: 140px;
  min-height: 96px;
}

.profile-body-balanced {
  padding: 0.35rem 0.75rem 0.7rem;
}

.profile-shell {
  display: grid;
  grid-template-columns: minmax(158px, 0.82fr) minmax(0, 1.45fr);
  gap: 0.55rem 0.65rem;
  align-items: start;
}

.profile-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.profile-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.15rem;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(139, 92, 246, 0.22);
}

.profile-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: rgba(230, 225, 245, 0.85);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.profile-tab:hover {
  color: var(--adf-gold, #d4af37);
  border-color: rgba(212, 175, 55, 0.25);
}

.profile-tab--active {
  background: linear-gradient(145deg, rgba(75, 42, 103, 0.65), rgba(20, 16, 28, 0.9));
  border-color: rgba(212, 175, 55, 0.45);
  color: var(--adf-gold, #d4af37);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.2);
}

.profile-tab-badge {
  font-size: 0.62rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.2);
  color: var(--adf-gold, #d4af37);
  font-weight: 700;
}

.profile-tab-panel {
  min-height: 0;
}

.profile-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 0.5rem 0.55rem;
  align-items: start;
}

.profile-honors-room {
  padding: 0.45rem 0.5rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(139, 92, 246, 0.28);
  background: linear-gradient(165deg, rgba(28, 20, 42, 0.55), rgba(8, 8, 12, 0.85));
  min-height: 220px;
}

.profile-honors-room-lead {
  margin: 0 0 0.45rem;
  font-size: 0.76rem;
  color: rgba(230, 225, 245, 0.88);
}

.profile-honors-room-future {
  margin: 0.55rem 0 0;
  font-size: 0.68rem;
  color: var(--adf-muted, #8b93a7);
  font-style: italic;
  text-align: center;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(139, 92, 246, 0.22);
}

.profile-col {
  min-width: 0;
}

.profile-col--identity {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.profile-avatar-wrap--balanced {
  margin: -38px 0 0.1rem;
  width: 68px;
  height: 68px;
}

.profile-avatar-wrap--balanced img,
.profile-avatar-wrap--balanced .profile-avatar-fallback {
  width: 68px;
  height: 68px;
  border-width: 3px;
  font-size: 1.55rem;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.4);
}

.profile-avatar-wrap--balanced .profile-status-dot {
  width: 11px;
  height: 11px;
}

.profile-char-name--balanced {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.profile-identity-meta .profile-mail-id-line {
  margin: 0.1rem 0;
}

.profile-identity-meta .profile-level-line {
  margin: 0.15rem 0;
  font-size: 0.8rem;
}

.profile-member-since {
  margin: 0.15rem 0 0;
  font-size: 0.68rem;
  color: var(--adf-muted, #8b93a7);
}

.profile-bio-box--balanced {
  margin: 0.2rem 0 0;
  padding: 0.45rem 0.55rem;
}

.profile-bio-box--balanced::before {
  display: none;
}

.profile-bio-box--balanced .profile-bio-text {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.4;
}

.profile-actions--balanced {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.profile-edit-btn {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.profile-section-title {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
}

.profile-section-title--pet {
  margin-top: 0.4rem;
}

.profile-section-sub {
  font-size: 0.65rem;
  color: var(--adf-muted, #8b93a7);
  margin: 0.35rem 0 0.2rem;
}

.profile-pvp-chip {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(75, 42, 103, 0.4);
  color: var(--adf-gold, #d4af37);
  margin-top: 0.15rem;
}

.profile-equip-primary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
}

.profile-equip-accessories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.28rem;
}

.profile-equip-slot {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.28);
  background: rgba(0, 0, 0, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.profile-equip-slot--filled:hover {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.35);
}

.profile-equip-slot--empty {
  opacity: 0.55;
  border-style: dashed;
}

.profile-equip-slot-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem;
}

.profile-equip-slot-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-equip-empty {
  font-size: 0.65rem;
  color: var(--adf-muted);
  font-weight: 700;
}

.profile-equip-slot-label {
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  font-size: 0.48rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.profile-pet-wrap {
  margin-top: 0.15rem;
}

.profile-pet-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.32);
  background: rgba(0, 0, 0, 0.28);
}

.profile-pet-card--empty {
  justify-content: center;
  min-height: 48px;
  font-size: 0.75rem;
}

.profile-pet-img,
.profile-pet-fallback {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.profile-pet-info strong {
  display: block;
  font-size: 0.82rem;
  color: var(--adf-gold, #d4af37);
}

.profile-pet-meta {
  font-size: 0.68rem;
  color: var(--adf-muted);
}

.profile-pet-bonuses {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.2rem;
}

.profile-pet-bonus {
  font-size: 0.6rem;
  padding: 0.08rem 0.35rem;
  border-radius: 4px;
  background: rgba(0, 217, 139, 0.12);
  border: 1px solid rgba(0, 217, 139, 0.25);
  color: #6ee7b7;
}

.profile-stats-grid--main {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.3rem;
  margin: 0;
}

.profile-stat-cell--main {
  padding: 0.35rem 0.45rem;
  border-radius: 7px;
  background: rgba(13, 13, 18, 0.55);
  border: 1px solid rgba(139, 92, 246, 0.22);
}

.profile-stat-cell--main strong {
  display: block;
  font-size: 0.92rem;
  color: var(--adf-gold, #d4af37);
  line-height: 1.15;
}

.profile-stat-cell--main span {
  display: block;
  font-size: 0.6rem;
  color: var(--adf-muted, #8b93a7);
  margin-top: 0.08rem;
  line-height: 1.2;
}

.profile-record-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.28rem;
  margin-top: 0.4rem;
}

.profile-record-card {
  text-align: center;
  padding: 0.35rem 0.25rem;
  border-radius: 7px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(212, 175, 55, 0.07);
}

.profile-record-card strong {
  display: block;
  font-size: 0.9rem;
  color: var(--adf-gold, #d4af37);
}

.profile-record-card span {
  font-size: 0.58rem;
  color: var(--adf-muted);
}

.profile-section--honors {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.profile-honor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 0.45rem;
}

.profile-honor-grid--room {
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 0.5rem;
}

.profile-honor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.4rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: linear-gradient(160deg, rgba(38, 28, 58, 0.75), rgba(10, 10, 16, 0.9));
  cursor: pointer;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}

.profile-honor-card--room {
  padding: 0.65rem 0.5rem 0.55rem;
  min-height: 132px;
}

.profile-honor-card:hover {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.3);
  transform: translateY(-1px);
}

.profile-honor-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.75rem;
  font-weight: 700;
  overflow: hidden;
}

.profile-honor-card-icon--room {
  width: 56px;
  height: 56px;
  border-radius: 10px;
}

.profile-honor-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-honor-card-name {
  font-size: 0.68rem;
  text-align: center;
  line-height: 1.25;
  color: rgba(230, 225, 245, 0.95);
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.profile-honor-card-desc {
  font-size: 0.6rem;
  text-align: center;
  line-height: 1.3;
  color: var(--adf-muted, #8b93a7);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-honor-empty {
  margin: 0;
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: var(--adf-muted, #8b93a7);
  font-style: italic;
  padding: 1.5rem 0.5rem;
  text-align: center;
}

.profile-clan-role {
  font-size: 0.6rem;
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.2);
  color: var(--adf-gold);
  margin-left: 0.2rem;
}

@media (max-width: 720px) {
  .profile-shell {
    grid-template-columns: 1fr;
  }
  .profile-col--identity {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.4rem 0.6rem;
  }
  .profile-col--identity .profile-identity-meta {
    flex: 1;
    min-width: 160px;
  }
  .profile-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .social-profile-card--balanced .profile-banner--balanced {
    max-height: 120px;
    min-height: 84px;
  }
  .profile-equip-accessories {
    grid-template-columns: repeat(4, 1fr);
  }
  .profile-honor-grid--room {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

.inv-rune-panel { margin-top: 0.75rem; padding-top: 0.5rem; border-top: 1px solid rgba(139, 92, 246, 0.2); }
.inv-rune-title { font-size: 0.78rem; color: var(--gold-title, #d4af37); margin: 0 0 0.35rem; }
.inv-rune-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35rem; }
.inv-cell--rune { border-style: dashed; }

/* Famílias de criaturas — grade Animal / Monstro / Boss */
.cf-admin-layout { display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: 0.75rem; align-items: start; }
.cf-admin-toolbar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.65rem; }
.cf-family-list { display: flex; flex-direction: column; gap: 0.3rem; max-height: 420px; overflow-y: auto; }
.cf-family-pick { text-align: left; justify-content: flex-start; }
.cf-grid-wrap { margin-top: 0.65rem; padding: 0.55rem; border: 1px solid rgba(139, 92, 246, 0.25); border-radius: 8px; background: rgba(0, 0, 0, 0.22); }
.cf-grid-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.4rem; }
.cf-grid-head h5 { margin: 0; font-size: 0.85rem; color: var(--gold-title, #d4af37); }
.cf-stat-grid { width: 100%; font-size: 0.82rem; }
.cf-stat-grid th { text-align: center; color: var(--gold-title, #d4af37); font-size: 0.78rem; }
.cf-stat-grid td { text-align: center; font-variant-numeric: tabular-nums; }
.cf-stat-label { text-align: left !important; color: var(--text-muted, #a8b0b8); font-weight: 600; }
.cf-formula-hint { font-size: 0.72rem; margin: 0.4rem 0 0; opacity: 0.85; }
.cf-formula-panel { margin-bottom: 1rem; padding: 0.65rem 0.75rem; border: 1px solid rgba(212, 175, 55, 0.28); border-radius: 8px; background: rgba(0, 0, 0, 0.28); }
.cf-formula-head h4 { margin: 0 0 0.25rem; font-size: 0.95rem; color: var(--gold-title, #d4af37); }
.cf-formula-head .admin-hint { margin: 0 0 0.55rem; }
.cf-formula-table-wrap { overflow-x: auto; margin-bottom: 0.55rem; }
.cf-formula-table { width: 100%; font-size: 0.8rem; }
.cf-formula-table th { text-align: center; color: var(--gold-title, #d4af37); font-size: 0.74rem; white-space: nowrap; }
.cf-formula-table td { text-align: center; padding: 0.2rem 0.25rem; }
.cf-formula-inp { width: 4.5rem; min-width: 3.5rem; padding: 0.25rem 0.35rem !important; text-align: center; }
.cf-formula-actions { display: flex; gap: 0.45rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.cf-formula-test { padding-top: 0.55rem; border-top: 1px solid rgba(139, 92, 246, 0.2); }
.cf-formula-test h5 { margin: 0 0 0.35rem; font-size: 0.85rem; color: var(--gold-title, #d4af37); }
.cf-test-animal { margin: 0.45rem 0 0.55rem; }
.cf-test-result { margin-top: 0.55rem; padding: 0.45rem; border-radius: 6px; background: rgba(0, 0, 0, 0.2); overflow-x: auto; }
@media (max-width: 720px) {
  .cf-admin-layout { grid-template-columns: 1fr; }
  .cf-family-list { flex-direction: row; flex-wrap: wrap; max-height: none; }
}

/* Painéis admin — glow fantasy (padrão Fazenda) */
#dsk-admin-module-host,
.dsk-admin-workspace-panel {
  border-radius: 12px;
  border: 1px solid rgba(74, 222, 128, 0.12);
  background: linear-gradient(165deg, rgba(12, 18, 10, 0.95), rgba(6, 10, 6, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 28px rgba(0, 0, 0, 0.35);
}

#dsk-admin-module-host .admin-section,
.dsk-admin-workspace-panel .admin-section {
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.55rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(212, 175, 55, 0.1);
}

#dsk-admin-module-host h3,
#dsk-admin-module-host h4,
.dsk-admin-workspace-panel h3 {
  color: #86efac;
  text-shadow: 0 0 14px rgba(74, 222, 128, 0.18);
}
