/**
 * GuideUniverse - Wuwa Builder & Showcase Stylesheet
 * Faithful reproduction of WuwaFlex Builder & Showcase aesthetics (Senior UX/UI)
 */

/* ==========================================================================
   1. MAIN CONTAINER & STAGE ANIMATIONS
   ========================================================================== */
.alcateia-builder-view {
  min-height: calc(100vh - 80px);
  padding: 90px 24px 150px;
  max-width: 1440px;
  margin: 0 auto;
  color: #f1f5f9;
  font-family: 'Plus Jakarta Sans', sans-serif;
  position: relative;
}

.builder-stage-container {
  animation: fadeInStage 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInStage {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   2. STAGE 1: WUWABOT IMPORTER HUB & DROPZONE
   ========================================================================== */
.wuwa-importer-hero-card {
  background: radial-gradient(circle at 50% 0%, rgba(255, 209, 102, 0.05) 0%, rgba(13, 16, 25, 0.75) 75%),
              linear-gradient(180deg, rgba(20, 25, 38, 0.65) 0%, rgba(10, 13, 20, 0.95) 100%);
  border: 1px solid rgba(255, 209, 102, 0.15);
  border-radius: 20px;
  padding: 36px 32px 28px;
  margin-bottom: 34px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.wuwa-importer-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffd166, #f59e0b, transparent);
  opacity: 0.8;
}

.wuwa-importer-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.wuwa-golden-line {
  flex: 1;
  max-width: 220px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 209, 102, 0.4), transparent);
}

.wuwa-importer-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
  margin: 0;
}

.wuwa-importer-top-actions {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 16px;
}

.btn-wuwa-tutorial,
.btn-wuwa-tutorial-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(241, 245, 249, 0.7);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-wuwa-tutorial:hover,
.btn-wuwa-tutorial-inline:hover {
  background: rgba(255, 209, 102, 0.12);
  border-color: rgba(255, 209, 102, 0.4);
  color: #ffd166;
  transform: translateY(-1px);
}

/* Notice Banner for Discord /language */
.wuwa-scanner-notice-banner {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.05) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 820px;
  margin: 0 auto 28px;
  color: #fef08a;
  font-size: 0.88rem;
  line-height: 1.5;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.1);
}

.notice-icon-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.discord-cmd-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 2px 8px;
  border-radius: 6px;
  color: #ffd166;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.discord-cmd-badge:hover {
  background: #f59e0b;
  color: #0b0d14;
  transform: scale(1.05);
}

/* Dropzone Grid with Chibi Mascots */
.wuwa-dropzone-outer-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto 20px;
}

.wuwa-mascot-chibi {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: floatMascot 4s ease-in-out infinite alternate;
}

.wuwa-mascot-chibi.mascot-right {
  animation-delay: 2s;
}

@keyframes floatMascot {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(2deg); }
}

.mascot-img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 12px rgba(255, 209, 102, 0.2));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wuwa-mascot-chibi:hover .mascot-img {
  transform: scale(1.12);
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 18px rgba(255, 209, 102, 0.45));
}

.mascot-bubble-sparkle {
  position: absolute;
  top: -4px;
  right: -2px;
  color: #ffd166;
  font-size: 1.1rem;
  text-shadow: 0 0 10px #ffd166;
  animation: pulseSparkle 2s infinite ease-in-out;
}

@keyframes pulseSparkle {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* Central Dropzone Box */
.wuwa-dropzone-box {
  flex: 1;
  max-width: 580px;
  border: 2px dashed rgba(255, 209, 102, 0.35);
  border-radius: 16px;
  background: rgba(11, 14, 23, 0.65);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
}

.wuwa-dropzone-box:hover,
.wuwa-dropzone-box.drag-over {
  border-color: #ffd166;
  background: rgba(255, 209, 102, 0.06);
  box-shadow: 0 0 30px rgba(255, 209, 102, 0.25), inset 0 0 20px rgba(255, 209, 102, 0.1);
  transform: translateY(-2px);
}

.dropzone-upload-icon {
  color: #ffd166;
  margin-bottom: 12px;
  opacity: 0.85;
  transition: transform 0.2s ease;
}

.wuwa-dropzone-box:hover .dropzone-upload-icon {
  transform: translateY(-3px) scale(1.1);
  opacity: 1;
}

.dropzone-primary-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 18px;
}

.keyboard-kbd {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.78rem;
  font-family: inherit;
  color: #ffd166;
  margin-left: 4px;
}

.btn-wuwa-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #ffd166 0%, #f59e0b 100%);
  color: #0c0f17;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 11px 28px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  transition: all 0.2s ease;
}

.btn-wuwa-upload:hover {
  box-shadow: 0 8px 26px rgba(245, 158, 11, 0.6);
  transform: translateY(-2px) scale(1.02);
}

/* Global Rankings Checkbox */
.wuwa-ranking-checkbox-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 14px;
}

.wuwa-custom-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 0.88rem;
  color: rgba(241, 245, 249, 0.8);
}

.wuwa-custom-checkbox-label input[type="checkbox"] {
  display: none;
}

.custom-chk-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid #ffd166;
  background: rgba(18, 22, 33, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s ease;
}

.wuwa-custom-checkbox-label input[type="checkbox"]:checked + .custom-chk-box {
  background: #f59e0b;
  border-color: #ffd166;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.wuwa-custom-checkbox-label input[type="checkbox"]:checked + .custom-chk-box::after {
  content: '✓';
  color: #0c0f17;
  font-size: 13px;
  font-weight: 900;
}

.chk-link-highlight {
  color: #ffd166;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.chk-link-highlight:hover {
  color: #f59e0b;
}

/* ==========================================================================
   3. MANUAL BUILD SECTION DIVIDER & FILTERS
   ========================================================================== */
.wuwa-manual-divider-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 40px 0 28px;
  position: relative;
}

.wuwa-manual-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-align: center;
}

.builder-filters-toolbar-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(13, 16, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 18px 24px;
  margin-bottom: 34px;
  backdrop-filter: blur(12px);
}

.builder-dual-filters-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.filter-pill-cluster {
  display: inline-flex;
  align-items: center;
  background: rgba(7, 9, 16, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px;
  border-radius: 30px;
  gap: 4px;
}

.filter-pill-btn {
  background: transparent;
  border: none;
  color: rgba(241, 245, 249, 0.6);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-pill-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: grayscale(40%) opacity(0.7);
  transition: all 0.2s ease;
}

.filter-pill-btn img.weapon-filter-ico {
  width: 20px;
  height: 20px;
  filter: brightness(0.8) opacity(0.85);
}

.filter-pill-btn svg {
  color: rgba(241, 245, 249, 0.6);
  transition: all 0.2s ease;
}

.filter-pill-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.filter-pill-btn:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.15);
}

.filter-pill-btn:hover img.weapon-filter-ico {
  filter: brightness(1) opacity(1) drop-shadow(0 0 6px rgba(255, 209, 102, 0.6));
  transform: scale(1.15);
}

.filter-pill-btn:hover svg {
  color: #ffd166;
  transform: scale(1.15);
}

.filter-pill-btn.active {
  background: #f59e0b;
  color: #0c0f17;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.5);
}

.filter-pill-btn.active img {
  filter: grayscale(0%) opacity(1) drop-shadow(0 0 4px rgba(0,0,0,0.5));
}

.filter-pill-btn.active img.weapon-filter-ico {
  filter: brightness(0) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.filter-pill-btn.active svg {
  color: #0c0f17;
}

/* Secondary Filter Row: Search & Rarity */
.builder-search-rarity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.builder-search-box {
  position: relative;
  flex: 1;
  max-width: 380px;
  display: flex;
  align-items: center;
}

.builder-search-box svg {
  position: absolute;
  left: 14px;
  color: rgba(241, 245, 249, 0.4);
  pointer-events: none;
}

.builder-search-box input {
  width: 100%;
  background: rgba(7, 9, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 9px 36px 9px 38px;
  color: #ffffff;
  font-size: 0.86rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.builder-search-box input:focus {
  border-color: #ffd166;
  box-shadow: 0 0 16px rgba(255, 209, 102, 0.25);
}

.btn-clear-search {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: rgba(241, 245, 249, 0.5);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 2px;
}

.btn-clear-search:hover {
  color: #ffffff;
}

.filter-rarity-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(7, 9, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 6px;
  border-radius: 20px;
}

.rarity-pill-btn {
  background: transparent;
  border: none;
  color: rgba(241, 245, 249, 0.6);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rarity-pill-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.rarity-pill-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.rarity-pill-btn.rarity-5-star.active {
  background: rgba(255, 209, 102, 0.2);
  color: #ffd166;
  border: 1px solid rgba(255, 209, 102, 0.4);
}

.rarity-pill-btn.rarity-4-star.active {
  background: rgba(181, 23, 158, 0.25);
  color: #e0aaff;
  border: 1px solid rgba(181, 23, 158, 0.4);
}

.builder-counter-badge {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(241, 245, 249, 0.55);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   4. CIRCULAR RESONATORS GRID (SCREENSHOTS 2 & 3)
   ========================================================================== */
.builder-resonators-circular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 28px 18px;
  justify-items: center;
  padding: 10px 0 40px;
}

.wuwa-resonator-circle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  width: 100%;
  max-width: 115px;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wuwa-resonator-circle-card:hover {
  transform: translateY(-6px) scale(1.04);
}

.char-avatar-ring {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d101a;
  overflow: visible;
  transition: all 0.25s ease;
}

.char-avatar-ring .avatar-inner-mask {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle, rgba(30, 36, 56, 0.8) 0%, rgba(10, 13, 20, 1) 100%);
}

.char-avatar-ring img.char-face-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.wuwa-resonator-circle-card:hover img.char-face-img {
  transform: scale(1.18);
}

/* 5-Star Golden Cyber Ring */
.char-avatar-ring.rarity-5 {
  border: 3px solid #ffd166;
  box-shadow: 0 0 14px rgba(255, 209, 102, 0.4), inset 0 0 10px rgba(255, 209, 102, 0.2);
}

.wuwa-resonator-circle-card:hover .char-avatar-ring.rarity-5 {
  border-color: #ffe699;
  box-shadow: 0 0 28px rgba(255, 209, 102, 0.75), inset 0 0 14px rgba(255, 209, 102, 0.4);
}

/* 4-Star Purple Cyber Ring */
.char-avatar-ring.rarity-4 {
  border: 3px solid #b5179e;
  box-shadow: 0 0 14px rgba(181, 23, 158, 0.45), inset 0 0 10px rgba(181, 23, 158, 0.2);
}

.wuwa-resonator-circle-card:hover .char-avatar-ring.rarity-4 {
  border-color: #d946ef;
  box-shadow: 0 0 28px rgba(181, 23, 158, 0.8), inset 0 0 14px rgba(181, 23, 158, 0.4);
}

/* Floating Status Badges (NEW / UP) */
.badge-status {
  position: absolute;
  top: -4px;
  left: -4px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 10px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  text-transform: uppercase;
}

.badge-status.badge-new {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.badge-status.badge-up {
  background: linear-gradient(135deg, #ffd166 0%, #f59e0b 100%);
  color: #0c0f17;
  border: 1px solid #ffffff;
}

/* Floating Element Mini Badge */
.elem-floating-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0d101a;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s ease;
}

.elem-floating-badge img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.wuwa-resonator-circle-card:hover .elem-floating-badge {
  transform: scale(1.2);
  border-color: #ffd166;
}

/* Resonator Card Name */
.char-card-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: #e2e8f0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: color 0.2s ease;
}

.wuwa-resonator-circle-card:hover .char-card-name {
  color: #ffd166;
  text-shadow: 0 0 10px rgba(255, 209, 102, 0.4);
}

/* No Results State */
.builder-no-results-state {
  text-align: center;
  padding: 60px 20px;
  background: rgba(13, 16, 26, 0.5);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  max-width: 500px;
  margin: 30px auto;
}

.no-results-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.builder-no-results-state h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.builder-no-results-state p {
  color: rgba(241, 245, 249, 0.6);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

/* ==========================================================================
   5. STAGE 2: DETAILED EDITOR TOP BAR & BREADCRUMBS
   ========================================================================== */
.builder-stage-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-stage-back-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-stage-back-nav:hover {
  background: rgba(255, 209, 102, 0.15);
  border-color: #ffd166;
  color: #ffd166;
  transform: translateX(-3px);
}

.builder-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.crumb-step {
  color: rgba(241, 245, 249, 0.5);
}

.crumb-step.active {
  color: #ffd166;
  font-weight: 700;
}

.crumb-divider {
  color: rgba(255, 255, 255, 0.2);
}

.builder-stage-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   2. TOP SECTION: RESONATOR & WEAPON PANELS
   ========================================================================== */
.builder-hero-weapon-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.builder-panel-card {
  background: rgba(18, 21, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 22px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.builder-panel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 209, 102, 0.3), transparent);
}

.builder-char-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.builder-char-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.builder-elem-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.builder-elem-badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.builder-char-name-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
  padding: 0;
}

.builder-char-name-btn:hover {
  color: #ffd166;
}

.builder-char-name-btn svg {
  opacity: 0.6;
  transition: transform 0.2s;
}

.builder-char-name-btn:hover svg {
  opacity: 1;
  transform: translateX(2px);
}

/* Slider Controls */
.builder-slider-group {
  margin-bottom: 18px;
}

.builder-slider-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: rgba(241, 245, 249, 0.8);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.builder-slider-label-row span.val-highlight {
  color: #ffd166;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
}

.builder-range-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  cursor: pointer;
}

.builder-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: #ffd166;
  box-shadow: 0 0 8px rgba(255, 209, 102, 0.8);
  cursor: pointer;
  border: 1.5px solid #fff;
}

.builder-range-input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: #ffd166;
  box-shadow: 0 0 8px rgba(255, 209, 102, 0.8);
  cursor: pointer;
  border: 1.5px solid #fff;
}

/* Base Stats row */
.builder-base-stats-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.base-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
}

.base-stat-pill span.stat-name {
  color: rgba(241, 245, 249, 0.6);
  font-weight: 700;
}

.base-stat-pill span.stat-val {
  color: #fff;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
}

/* Wavebands (Resonance Chains S1..S6) */
.builder-wavebands-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.waveband-avatar-mini {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #ffd166;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(255, 209, 102, 0.35);
}

.waveband-nodes-list {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.waveband-nodes-list::before {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
}

.waveband-node-btn {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #151824;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.waveband-node-btn:hover {
  border-color: #ffd166;
  color: #ffd166;
}

.waveband-node-btn.active {
  background: #ffd166;
  border-color: #ffd166;
  color: #0d0f14;
  box-shadow: 0 0 10px rgba(255, 209, 102, 0.6);
}

/* Weapon Panel Right */
.builder-weapon-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.weapon-thumb-and-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.builder-weapon-thumb {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px;
  object-fit: contain;
}

.weapon-meta-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.weapon-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #ffd166;
  font-size: 0.85rem;
}

.btn-change-weapon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-change-weapon:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffd166;
  color: #ffd166;
}

.weapon-rank-and-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.weapon-rank-adjuster {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.counter-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.counter-btn:hover {
  background: rgba(255, 209, 102, 0.2);
  border-color: #ffd166;
  color: #ffd166;
}

.counter-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffd166;
  font-family: 'JetBrains Mono', monospace;
  min-width: 18px;
  text-align: center;
}

.weapon-passive-desc {
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(241, 245, 249, 0.72);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 10px 14px;
  border-left: 2px solid #ffd166;
}

.weapon-passive-desc strong {
  color: #ffd166;
}

/* ==========================================================================
   3. UNIFIED WUWAFLEX SHOWCASE CARD & 5-STEM SKILL TREE PANEL
   ========================================================================== */
.wuwa-showcase-master-card {
  background: radial-gradient(circle at 50% 0%, rgba(255, 209, 102, 0.04) 0%, rgba(13, 16, 25, 0.88) 80%),
              linear-gradient(180deg, rgba(18, 22, 34, 0.8) 0%, rgba(10, 13, 20, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.wuwa-showcase-top-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.wuwa-showcase-bottom-row {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  align-items: stretch;
  min-height: 480px;
}

/* Standee Container (Left side of tree - Seamless WuWaFlex Style) */
.wuwa-standee-container {
  position: relative;
  border-radius: 16px;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  min-height: 480px;
  height: 100%;
}

.standee-element-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 45% 45%, var(--char-elem-glow, rgba(46, 196, 182, 0.14)) 0%, transparent 70%);
  pointer-events: none;
  transition: all 0.4s ease;
}

.standee-img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.standee-art-img {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  transform: scale(1.15) translateY(1%);
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.85));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
  z-index: 1;
}

.wuwa-standee-container:hover .standee-art-img {
  transform: scale(1.18) translateY(1%);
}

.standee-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(to top, rgba(10, 13, 20, 0.95) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* Forte Tree Panel (Right side) */
.wuwa-forte-tree-panel {
  background: rgba(14, 18, 27, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  backdrop-filter: blur(12px);
  position: relative;
}

/* Stat Bonus Badges Row (Top of Tree - Left Aligned, Lowered Position) */
.forte-stat-badges-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding-left: 8px;
  margin-top: 0;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.forte-stat-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(22, 27, 38, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.forte-stat-badge-pill .stat-pill-ico,
.forte-stat-badge-pill img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.forte-stat-badge-pill .stat-pill-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.forte-stat-badge-pill .stat-pill-val {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffd166;
  font-family: 'JetBrains Mono', monospace;
}

.forte-stat-badge-pill:hover {
  background: rgba(30, 38, 54, 0.98);
  border-color: rgba(255, 209, 102, 0.4);
  transform: translateY(-2px);
}

.forte-stat-badge-pill.active {
  border-color: rgba(255, 209, 102, 0.35);
  background: rgba(26, 33, 48, 0.95);
  box-shadow: 0 0 14px rgba(255, 209, 102, 0.15);
}

.forte-stat-badge-pill.inactive {
  opacity: 0.45;
  border-color: rgba(255, 255, 255, 0.08);
}

/* 5 Columns Skill Tree Grid (WuWaFlex Parabolic Arc Form) */
.wuwa-skill-tree-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: flex-end;
  justify-items: center;
  position: relative;
  padding-top: 6px;
}

.wuwa-tree-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
}

/* Vertical Stems & Upper Nodes Branch */
.tree-nodes-vertical-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
}

/* Stems Lines */
.tree-stem-line {
  width: 2px;
  background: rgba(255, 209, 102, 0.4);
  transition: all 0.25s ease;
}

.tree-stem-line.active {
  background: #ffd166;
  box-shadow: 0 0 8px rgba(255, 209, 102, 0.6);
}

.tree-stem-line.stem-blue {
  background: rgba(56, 189, 248, 0.4);
}

.tree-stem-line.stem-blue.active {
  background: #7dd3fc;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

/* Stem Heights: Top stem (between Node 2 and Node 1) */
.tree-stem-line.stem-top {
  height: 28px;
}

.col-pos-3 .tree-stem-line.stem-top {
  height: 30px;
}

/* Parabolic Arc shaping via Bottom stem (between Node 1 and Main Skill icon) */
.col-pos-1 .tree-stem-line.stem-bottom,
.col-pos-5 .tree-stem-line.stem-bottom {
  height: 24px;
}

.col-pos-2 .tree-stem-line.stem-bottom,
.col-pos-4 .tree-stem-line.stem-bottom {
  height: 50px;
}

.col-pos-3 .tree-stem-line.stem-bottom {
  height: 76px;
}

/* Circular Stat Node (Gold Ring) */
.tree-node-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0d111b;
  border: 2px solid #ffd166;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffd166;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 10px rgba(255, 209, 102, 0.45);
  position: relative;
  z-index: 2;
}

.tree-node-circle svg,
.tree-node-circle img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
}

.tree-node-circle:hover {
  transform: scale(1.15);
  box-shadow: 0 0 16px rgba(255, 209, 102, 0.7);
}

.tree-node-circle.active {
  border-color: #ffd166;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.22) 0%, #0d111b 100%);
  box-shadow: 0 0 12px rgba(255, 209, 102, 0.55), inset 0 0 6px rgba(255, 209, 102, 0.3);
}

.tree-node-circle.inactive {
  opacity: 0.4;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

/* Rounded Square Inherent Passive Node (Cyan Ring) */
.tree-node-square {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #0d111b;
  border: 2px solid #7dd3fc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e0f2fe;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
  position: relative;
  z-index: 2;
}

.tree-node-square svg,
.tree-node-square img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 3px rgba(125, 211, 252, 0.6));
}

.tree-node-square:hover {
  transform: scale(1.15);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.7);
}

.tree-node-square.active {
  border-color: #7dd3fc;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, #0d111b 100%);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.55), inset 0 0 6px rgba(56, 189, 248, 0.3);
}

.tree-node-square.inactive {
  opacity: 0.4;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

/* Bottom Main Skill Icon Wrap */
.tree-skill-main-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  width: 100%;
}

.tree-skill-icon-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(18, 22, 33, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.tree-skill-icon-btn img,
.tree-skill-icon-btn svg {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease;
}

.tree-skill-icon-btn:hover {
  transform: scale(1.1);
  border-color: #ffd166;
  box-shadow: 0 0 16px rgba(255, 209, 102, 0.4);
}

.tree-skill-icon-btn.active {
  border-color: rgba(255, 255, 255, 0.22);
}

.tree-skill-title {
  font-size: 0.74rem;
  font-weight: 600;
  color: #94a3b8;
  max-width: 105px;
  line-height: 1.25;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Level Stepper [- 10 +] */
.tree-skill-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(22, 27, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 3px 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.tree-skill-stepper button.counter-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  padding: 0 3px;
  line-height: 1;
  transition: all 0.2s ease;
}

.tree-skill-stepper button.counter-btn:hover {
  color: #ffd166;
  transform: scale(1.2);
}

.tree-skill-stepper span.skill-lvl {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffd166;
  font-family: 'JetBrains Mono', monospace;
  min-width: 18px;
  text-align: center;
}

/* ==========================================================================
   4. 5 ECHOES SLOTS & MANUAL EDITOR (SCREENSHOTS 3 & 4)
   ========================================================================== */
.builder-echoes-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.echo-slots-nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.echo-slot-circle-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(18, 22, 33, 0.85);
  border: 2px dashed rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.echo-slot-circle-btn:hover {
  border-color: rgba(255, 209, 102, 0.6);
  transform: translateY(-3px);
}

.echo-slot-circle-btn.active {
  border: 2px dashed #ffd166;
  box-shadow: 0 0 18px rgba(255, 209, 102, 0.45);
  transform: scale(1.08);
}

.echo-slot-plus-icon {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 300;
  transition: color 0.2s;
}

.echo-slot-circle-btn.active .echo-slot-plus-icon {
  color: #ffd166;
}

.echo-slot-thumb-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.echo-cost-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f43f5e;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #121621;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.echo-sonata-mini-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #161a26;
  border: 1.5px solid #2ec4b6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.echo-sonata-mini-badge img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* Manual Echo Config Card */
.manual-echo-editor-card {
  width: 100%;
  max-width: 680px;
  background: rgba(20, 24, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  backdrop-filter: blur(16px);
}

.echo-editor-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding-right: 24px;
}

.echo-select-circle-trigger {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.echo-select-circle-trigger:hover {
  border-color: #ffd166;
  transform: scale(1.04);
}

.echo-select-circle-trigger img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.echo-selected-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  cursor: pointer;
  transition: color 0.2s;
}

.echo-selected-name:hover {
  color: #ffd166;
}

.echo-select-sonata-dropdown,
.builder-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
  color: #f8fafc;
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: all 0.2s;
}

.echo-select-sonata-dropdown:focus,
.builder-select:focus {
  border-color: #ffd166;
  background: rgba(255, 255, 255, 0.08);
}

.echo-select-sonata-dropdown option,
.builder-select option {
  background: #161a26;
  color: #f8fafc;
}

/* Right Column: Main Stat & 5 Substats */
.echo-editor-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.echo-main-stat-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.echo-stat-label-row {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.main-stat-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.main-stat-val-badge {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffd166;
  font-family: 'JetBrains Mono', monospace;
  min-width: 54px;
  text-align: right;
}

/* Substats rows */
.echo-substats-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.echo-substat-row {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 10px;
  align-items: center;
}

.substat-select-wrap {
  position: relative;
}

.substat-val-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.substat-val-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 10px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  outline: none;
  text-align: right;
  transition: all 0.2s;
}

.substat-val-input:focus {
  border-color: #ffd166;
}

/* Roll Quality Color Classes */
.roll-tier-low {
  border-color: #22c55e !important;
  color: #22c55e !important;
}

.roll-tier-mid-low {
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
}

.roll-tier-mid-high {
  border-color: #a855f7 !important;
  color: #a855f7 !important;
}

.roll-tier-high {
  border-color: #ffd166 !important;
  color: #ffd166 !important;
}

/* ==========================================================================
   5. SHOWCASE CARD (SCREENSHOTS 1 & 5)
   ========================================================================== */
.showcase-card-wrapper {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  background: radial-gradient(circle at 65% 20%, rgba(30, 48, 88, 0.65), rgba(10, 13, 20, 0.98) 75%), #0a0d14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
  color: #f8fafc;
}

.showcase-card-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.08), transparent 70%);
  pointer-events: none;
}

.showcase-top-grid {
  display: grid;
  grid-template-columns: 240px 1fr 220px;
  gap: 24px;
  margin-bottom: 18px;
}

/* Left: Character Portrait & Weapon Box */
.showcase-left-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.showcase-char-portrait-card {
  position: relative;
  width: 100%;
  height: 250px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #121520;
}

.showcase-char-portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.3s;
}

.showcase-elem-watermark {
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  padding: 4px;
  backdrop-filter: blur(4px);
}

.showcase-elem-watermark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Weapon Mini Box */
.showcase-weapon-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.showcase-weapon-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.showcase-weapon-row img.weapon-ico {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.showcase-weapon-info {
  display: flex;
  flex-direction: column;
}

.showcase-weapon-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.showcase-weapon-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
}

.showcase-weapon-sub span.rank-tag {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  color: #ffd166;
  font-weight: 700;
}

.showcase-weapon-stats-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255, 255, 255, 0.85);
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.showcase-weapon-stats-line .stars-mini {
  color: #ffd166;
  font-size: 0.72rem;
}

/* Center: Character Title, UID & Stats Grid */
.showcase-center-col {
  display: flex;
  flex-direction: column;
}

.showcase-header-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.showcase-title-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.showcase-resonator-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.showcase-level-pill {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}

.showcase-player-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.showcase-player-meta .player-name {
  font-weight: 700;
  color: #fff;
}

.showcase-player-meta .player-uid {
  font-family: 'JetBrains Mono', monospace;
}

/* Stats 2-Columns Grid */
.showcase-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.showcase-stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.showcase-stat-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(241, 245, 249, 0.75);
}

.showcase-stat-label svg {
  opacity: 0.7;
}

.showcase-stat-number {
  font-size: 0.85rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: #fff;
}

.showcase-stats-disclaimer {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  margin-top: 8px;
}

/* Right: Visual Forte Tree */
.showcase-right-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.showcase-forte-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  height: 100%;
  padding-bottom: 10px;
}

.showcase-forte-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.showcase-node-diamond {
  width: 22px;
  height: 22px;
  transform: rotate(45deg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-node-diamond.active {
  background: rgba(255, 209, 102, 0.2);
  border-color: #ffd166;
}

.showcase-node-diamond span {
  transform: rotate(-45deg);
  font-size: 0.6rem;
  color: #ffd166;
}

.showcase-node-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #141724;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-node-circle.active {
  border-color: #ffd166;
}

.showcase-node-circle img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.showcase-node-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  line-height: 1.1;
}

/* Middle Bar: Roll Legend, CV Badge & Sonata Sets */
.showcase-middle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 16px;
}

.showcase-roll-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 800;
}

.showcase-roll-legend span.leg-baixo { color: #22c55e; }
.showcase-roll-legend span.leg-med-baixo { color: #38bdf8; }
.showcase-roll-legend span.leg-med-alto { color: #a855f7; }
.showcase-roll-legend span.leg-alto { color: #ffd166; }

.showcase-cv-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.1);
  border: 1.5px solid #38bdf8;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.8rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: #38bdf8;
}

.showcase-sonatas-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.showcase-sonata-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffd166;
}

.showcase-sonata-tag img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

/* Bottom: 5 Echoes Grid */
.showcase-bottom-echoes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.showcase-echo-card {
  background: rgba(20, 24, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.showcase-echo-title {
  font-size: 0.65rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  margin-bottom: 2px;
}

.showcase-echo-visual-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 62px;
}

.showcase-echo-visual-wrap img.echo-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.showcase-echo-visual-wrap .echo-sonata-icon-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #141724;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2px;
}

.showcase-echo-main-stat-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-echo-main-stat-line span.main-stat-name {
  color: rgba(255, 255, 255, 0.8);
}

.showcase-echo-main-stat-line span.main-stat-val {
  color: #ffd166;
  font-family: 'JetBrains Mono', monospace;
}

.showcase-echo-substats-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
}

.showcase-echo-substat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 700;
}

.showcase-echo-substat-row span.sub-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.7);
}

.showcase-echo-substat-row span.sub-val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
}

/* ==========================================================================
   6. MODALS (CHARACTER, WEAPON, ECHO SELECTOR & SUMMARY)
   ========================================================================== */
.builder-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(5, 7, 12, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.builder-modal-overlay.open {
  display: flex;
}

.builder-modal-dialog {
  background: #111420;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.builder-modal-dialog.modal-showcase-dialog {
  max-width: 1180px;
}

.builder-modal-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.builder-modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.builder-modal-close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.builder-modal-close-btn:hover {
  color: #fff;
}

.builder-modal-search-wrap {
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.builder-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
}

.builder-search-input:focus {
  border-color: #ffd166;
}

.builder-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

/* Items Grid inside Modal */
.builder-items-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}

.builder-picker-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.builder-picker-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ffd166;
  transform: translateY(-2px);
}

.builder-picker-item.selected {
  border-color: #ffd166;
  background: rgba(255, 209, 102, 0.12);
  box-shadow: 0 0 12px rgba(255, 209, 102, 0.25);
}

.builder-picker-item img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: contain;
}

.builder-picker-item span.item-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.builder-picker-item span.item-cost {
  font-size: 0.7rem;
  font-weight: 800;
  color: #ffd166;
  background: rgba(255, 209, 102, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Echo Summary Accordion/Drawer */
.echo-summary-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.echo-sum-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.echo-sum-stat-card span.lbl {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.echo-sum-stat-card span.val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffd166;
  font-family: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   7. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .builder-hero-weapon-grid,
  .wuwa-showcase-top-row {
    grid-template-columns: 1fr;
  }

  .wuwa-showcase-bottom-row {
    grid-template-columns: 320px 1fr;
    gap: 16px;
  }
  
  .showcase-top-grid {
    grid-template-columns: 1fr;
  }
  
  .showcase-bottom-echoes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .wuwa-showcase-bottom-row {
    grid-template-columns: 1fr;
  }

  .wuwa-standee-container {
    min-height: 260px;
    max-height: 320px;
  }

  .wuwa-skill-tree-grid {
    gap: 6px;
  }

  .tree-node-circle,
  .tree-node-square {
    width: 32px;
    height: 32px;
  }

  .tree-node-circle svg,
  .tree-node-square svg {
    width: 15px;
    height: 15px;
  }

  .tree-skill-icon-btn {
    width: 44px;
    height: 44px;
  }

  .tree-skill-icon-btn img {
    width: 26px;
    height: 26px;
  }

  .tree-skill-title {
    font-size: 0.68rem;
    max-width: 70px;
  }

  .alcateia-builder-view {
    padding: 80px 14px 40px;
  }

  .wuwa-importer-hero-card {
    padding: 22px 14px 18px;
    border-radius: 14px;
  }

  .wuwa-importer-title {
    font-size: 1.15rem;
  }

  .wuwa-dropzone-outer-grid {
    gap: 8px;
  }

  .wuwa-mascot-chibi {
    width: 60px;
    height: 60px;
  }

  .mascot-img {
    width: 56px;
    height: 56px;
  }

  .wuwa-dropzone-box {
    padding: 20px 12px;
  }

  .dropzone-primary-text {
    font-size: 0.82rem;
  }

  .btn-wuwa-upload {
    padding: 9px 18px;
    font-size: 0.8rem;
  }

  .builder-filters-toolbar-wrap {
    padding: 14px 12px;
  }

  .builder-dual-filters-row {
    gap: 12px;
  }

  .filter-pill-cluster {
    overflow-x: auto;
    max-width: 100%;
    padding: 3px;
  }

  .filter-pill-btn {
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  .filter-pill-btn img {
    width: 18px;
    height: 18px;
  }

  .builder-search-box {
    max-width: 100%;
  }

  .builder-resonators-circular-grid {
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    gap: 18px 8px;
  }

  .wuwa-resonator-circle-card {
    max-width: 86px;
  }

  .char-avatar-ring {
    width: 68px;
    height: 68px;
  }

  .char-card-name {
    font-size: 0.74rem;
  }

  .badge-status {
    font-size: 0.58rem;
    padding: 1px 5px;
  }

  .elem-floating-badge {
    width: 20px;
    height: 20px;
  }

  .elem-floating-badge img {
    width: 13px;
    height: 13px;
  }
  
  .builder-top-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .manual-echo-editor-card {
    grid-template-columns: 1fr;
  }
  
  .echo-editor-left {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-right: 0;
    padding-bottom: 20px;
  }
  
  .forte-tree-container {
    justify-content: center;
    gap: 16px;
  }
  
  .showcase-bottom-echoes-grid {
    grid-template-columns: 1fr;
  }
  
  .showcase-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Sync with Official Guide Button */
.btn-builder-action.btn-sync-guide {
  background: rgba(14, 165, 233, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  color: #38bdf8 !important;
  transition: all 0.2s ease;
}

.btn-builder-action.btn-sync-guide:hover {
  background: rgba(14, 165, 233, 0.25) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

