/**
 * GuideUniverse - Admin Studio & Secret Panel Styles
 * Clean, Modern, Editorial & Uniform Aesthetic
 */

/* ==========================================================================
   Admin Floating Toolbar (Only visible when logged in)
   ========================================================================== */
.admin-status-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  display: none;
  align-items: center;
  gap: 12px;
  background: rgba(4, 4, 6, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 59, 92, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 59, 92, 0.15);
  border-radius: 9999px;
  padding: 8px 18px;
  font-family: 'Plus Jakarta Sans', var(--font-sans), -apple-system, sans-serif;
  animation: adminPulse 3s infinite alternate;
}

.admin-status-dock.active {
  display: flex;
}

@keyframes adminPulse {
  0% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 59, 92, 0.15); }
  100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 59, 92, 0.35); }
}

.admin-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ff3b5c;
  text-transform: uppercase;
}

.admin-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ff3b5c;
  box-shadow: 0 0 8px #ff3b5c;
  animation: blinkDot 1.5s infinite;
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.admin-dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.78rem;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-dock-btn:hover {
  background: #ff3b5c;
  color: #fff;
  border-color: #ff3b5c;
  transform: translateY(-1px);
}

.admin-dock-btn.btn-lock {
  background: rgba(255, 59, 92, 0.15);
  border-color: rgba(255, 59, 92, 0.3);
  color: #ff8597;
}

.admin-dock-btn.btn-lock:hover {
  background: #ff3b5c;
  color: #fff;
}

/* ==========================================================================
   Admin Auth Modal (Secret Access PIN/Password)
   ========================================================================== */
.admin-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(2, 2, 4, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
}

.admin-auth-overlay.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.admin-auth-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
  padding: 36px 32px;
  color: #0f172a;
  text-align: center;
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.admin-auth-header {
  margin-bottom: 24px;
}

.admin-auth-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  display: inline-block;
}

.admin-auth-title {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: #0f172a;
}

.admin-auth-subtitle {
  font-size: 0.86rem;
  color: #64748b;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  line-height: 1.4;
}

.admin-auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.admin-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-input-group label {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
}

.admin-input {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  color: #0f172a;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.admin-input:focus {
  border-color: #ff3b5c;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 59, 92, 0.15);
}

.admin-auth-btn {
  width: 100%;
  background: linear-gradient(135deg, #ff3b5c 0%, #d90429 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 59, 92, 0.3);
  transition: all 0.2s ease;
  margin-top: 8px;
}

.admin-auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 59, 92, 0.45);
}

.admin-auth-msg {
  font-size: 0.82rem;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  margin-top: 10px;
  min-height: 20px;
}

.admin-auth-msg.error {
  color: #ef4444;
}

.admin-auth-msg.success {
  color: #10b981;
}

.admin-auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.admin-auth-close:hover {
  color: #0f172a;
}

/* ==========================================================================
   Admin Studio Main Modal (Fullscreen / Drawer Experience)
   ========================================================================== */
.admin-studio-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #050507;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #f8fafc !important;
  font-family: 'Plus Jakarta Sans', var(--font-sans), -apple-system, BlinkMacSystemFont, sans-serif !important;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.admin-studio-modal,
.admin-studio-modal * {
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', var(--font-sans), -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.admin-studio-modal.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* Header */
.admin-studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #08080a;
}

.admin-studio-branding {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-studio-tag {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif !important;
  font-size: 0.72rem !important;
  background: rgba(255, 59, 92, 0.15);
  border: 1px solid rgba(255, 59, 92, 0.35);
  color: #ff6b84;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
}

.admin-studio-title {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  color: #ffffff !important;
  margin: 0;
  text-transform: none !important;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-admin-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.btn-admin-save {
  background: linear-gradient(135deg, #ff3b5c 0%, #d90429 100%) !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(255, 59, 92, 0.3);
}

.btn-admin-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 59, 92, 0.5);
}

.btn-admin-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1 !important;
}

.btn-admin-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
}

.btn-admin-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171 !important;
}

.btn-admin-danger:hover {
  background: #ef4444;
  color: #fff !important;
}

/* Studio Layout (Sidebar Character Selector + Main Workspace) */
.admin-studio-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar Characters List */
.admin-studio-sidebar {
  width: 280px;
  background: #08080a;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
}

.admin-sidebar-top {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-sidebar-heading {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: #94a3b8 !important;
  letter-spacing: 0.05em !important;
}

.admin-char-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-char-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.admin-char-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

.admin-char-item.active {
  background: rgba(255, 59, 92, 0.14) !important;
  border-color: rgba(255, 59, 92, 0.45) !important;
  box-shadow: 0 4px 16px rgba(255, 59, 92, 0.15) !important;
}

.admin-char-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #050507;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-char-details {
  flex: 1;
  min-width: 0;
}

.admin-char-name {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.admin-char-meta {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif !important;
  font-size: 0.74rem !important;
  color: #94a3b8 !important;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500 !important;
  margin-top: 2px;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.admin-char-meta span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.admin-char-meta .icon-image-tag,
.admin-char-item .icon-image-tag {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  object-fit: contain !important;
  border-radius: 2px !important;
}

.admin-char-meta .icon-text-tag,
.admin-char-item .icon-text-tag {
  font-size: 0.82rem !important;
  line-height: 1 !important;
  display: inline-block !important;
}

#adminElementIconPreview {
  display: inline-flex !important;
  align-items: center !important;
  vertical-align: middle !important;
}

#adminElementIconPreview .icon-image-tag {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  object-fit: contain !important;
  border-radius: 3px !important;
}

#adminElementIconPreview .icon-text-tag {
  font-size: 1.1rem !important;
}

/* Main Form Area */
.admin-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #030305;
}

/* Tabs Bar */
.admin-tabs-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: #08080a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  row-gap: 8px;
}

.admin-tab-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-tab-group-label {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #64748b;
  padding-right: 4px;
}

.admin-tab-group-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 4px;
}

.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1 !important;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.admin-tab-btn:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.admin-tab-btn.active {
  background: #ff3b5c !important;
  border-color: #ff3b5c !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 12px rgba(255, 59, 92, 0.4) !important;
}

.admin-tab-btn.btn-tab-highlight {
  border-color: rgba(255, 59, 92, 0.35);
  background: rgba(255, 59, 92, 0.08);
  color: #ff8597 !important;
}

.admin-tab-btn.btn-tab-highlight:hover {
  background: rgba(255, 59, 92, 0.2);
  color: #fff !important;
}

/* Sub-tabs inside Panes (e.g. Achievements vs Badges) */
.admin-subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1 !important;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.admin-subtab-btn:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.admin-subtab-btn.active {
  background: #ff3b5c !important;
  border-color: #ff3b5c !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 12px rgba(255, 59, 92, 0.4) !important;
}

/* Tab Panels Content Scroll Area */
.admin-form-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px 60px 32px;
}

.admin-tab-pane {
  display: none;
  animation: fadeIn 0.2s ease-out;
}

.admin-tab-pane.active {
  display: block;
}

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

/* Form Grid & Inputs */
.admin-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.admin-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.admin-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

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

.admin-field label {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  color: #cbd5e1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-field .field-hint {
  font-size: 0.72rem !important;
  color: #64748b !important;
  text-transform: none !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

.admin-form-input,
.admin-form-select,
.admin-form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 14px;
  color: #ffffff !important;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  outline: none;
  transition: all 0.2s ease;
}

.admin-form-textarea {
  resize: vertical;
  min-height: 85px;
  line-height: 1.5;
}

.admin-form-select {
  cursor: pointer;
}

.admin-form-select option {
  background: #050507;
  color: #fff;
}

.admin-form-input:focus,
.admin-form-select:focus,
.admin-form-textarea:focus {
  border-color: rgba(255, 59, 92, 0.7);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(255, 59, 92, 0.2);
}

/* Subitem Lists (Skills, Weapons, Echoes, Teams) */
.admin-subitem-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
  position: relative;
  transition: border-color 0.2s ease;
}

.admin-subitem-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.admin-subitem-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-subitem-title {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.admin-subitem-remove {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-subitem-remove:hover {
  background: #ef4444;
  color: #fff;
}

.admin-btn-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #cbd5e1;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
}

.admin-btn-add:hover {
  background: rgba(255, 59, 92, 0.12);
  border-color: #ff3b5c;
  color: #ff8597;
}

/* Visual Image Preview */
.admin-img-preview-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-img-preview-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: #050507;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-admin-file-upload {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-admin-file-upload:hover {
  background: rgba(255, 59, 92, 0.2);
  border-color: #ff3b5c;
  transform: translateY(-1px);
}

/* Toast Notifications */
.admin-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #08080a;
  backdrop-filter: blur(16px);
  border-radius: 10px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.admin-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.admin-toast.success {
  border: 1px solid rgba(16, 185, 129, 0.6);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(16, 185, 129, 0.2);
}

.admin-toast.error {
  border: 1px solid rgba(239, 68, 68, 0.6);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(239, 68, 68, 0.2);
}

/* Code Snippet Box (Backup tab) */
.admin-code-box {
  width: 100%;
  height: 240px;
  background: #030305;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px;
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  color: #cbd5e1;
  overflow: auto;
  white-space: pre;
  resize: vertical;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .admin-studio-body {
    flex-direction: column;
  }
  .admin-studio-sidebar {
    width: 100%;
    height: 180px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .admin-grid-2, .admin-grid-3, .admin-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MUSIC & SOUNDTRACK MANAGER
   ========================================================================== */
.admin-music-card {
  background: #050507;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}

.admin-music-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: #08080a;
}

.admin-music-card.is-default {
  border-color: rgba(255, 59, 92, 0.4);
  background: rgba(255, 59, 92, 0.04);
}

.admin-music-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-music-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-music-num-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.admin-music-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-music-test {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 0.78rem;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-music-test:hover {
  background: rgba(56, 189, 248, 0.25);
}

.btn-music-default {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 0.78rem;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-music-default.active {
  background: rgba(255, 59, 92, 0.2);
  border-color: rgba(255, 59, 92, 0.5);
  color: #ff3b5c;
}

.btn-music-delete {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  font-size: 0.78rem;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-music-delete:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* ==========================================================================
   Global Uniform Typography & Clean Label Overrides for Admin Studio
   ========================================================================== */
.admin-studio-modal,
.admin-studio-modal label,
.admin-tab-pane label,
.admin-field label,
.admin-subitem-card label,
.admin-form-content label {
  font-family: 'Plus Jakarta Sans', var(--font-sans), -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #cbd5e1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.admin-studio-modal h1,
.admin-studio-modal h2,
.admin-studio-modal h3,
.admin-studio-modal h4,
.admin-studio-modal h5,
.admin-studio-modal h6,
.admin-tab-pane h4,
.admin-tab-pane h5 {
  font-family: 'Plus Jakarta Sans', var(--font-sans), -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
}

.admin-tab-btn {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* ==========================================================================
   Email Template Customizer & Audience Manager
   ========================================================================== */
.btn-preview-device {
  transition: all 0.2s ease;
}

.btn-preview-device:hover {
  filter: brightness(1.15);
}

.btn-email-color-preset {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-email-color-preset:hover {
  transform: scale(1.15);
  box-shadow: 0 0 8px currentColor;
}

.subscriber-row-item {
  transition: background 0.15s ease;
}

.subscriber-row-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.btn-delete-subscriber:hover {
  background: rgba(239, 68, 68, 0.3) !important;
  color: #fff !important;
}

/* ==========================================================================
   Admin Studio - Catálogo de Armas, Ecos & Sets (Builder Catalog)
   ========================================================================== */
.admin-catalog-subpane {
  animation: fadeInPane 0.2s ease forwards;
}

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

.admin-subtab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.admin-subtab-btn.active {
  background: rgba(255, 209, 102, 0.15);
  border-color: #ffd166;
  color: #ffd166;
  font-weight: 700;
}

/* Echo Card in Admin Grid */
.admin-catalog-echo-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
  position: relative;
}

.admin-catalog-echo-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(46, 196, 182, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.admin-echo-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-echo-avatar {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-echo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-echo-info {
  flex: 1;
}

.admin-echo-name {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 4px 0;
}

.admin-echo-cost-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-echo-cost-badge.cost-4 {
  background: rgba(255, 209, 102, 0.15);
  color: #ffd166;
  border: 1px solid rgba(255, 209, 102, 0.3);
}

.admin-echo-cost-badge.cost-3 {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.admin-echo-cost-badge.cost-1 {
  background: rgba(46, 196, 182, 0.15);
  color: #2ec4b6;
  border: 1px solid rgba(46, 196, 182, 0.3);
}

.admin-echo-sonatas-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.admin-echo-sonata-pill {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.admin-echo-skill-text {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.45;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 10px;
  border-radius: 6px;
  margin: 0;
  border-left: 2px solid #2ec4b6;
}

.admin-card-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
}

/* Weapon Card in Admin List (Matching Screenshot 4) */
.admin-catalog-weapon-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.2s ease;
}

.admin-catalog-weapon-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 209, 102, 0.4);
}

.admin-weapon-thumb {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-weapon-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-weapon-info {
  flex: 1;
}

.admin-weapon-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.admin-weapon-name {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
}

.admin-weapon-meta-badges {
  display: flex;
  gap: 6px;
  align-items: center;
}

.admin-weapon-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-weight: 600;
}

.admin-weapon-passive-desc {
  font-size: 0.83rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0 0 8px 0;
}

.admin-weapon-passive-desc span.hl,
.admin-weapon-passive-desc strong {
  color: #ffd166;
  font-weight: 700;
}

/* Sonata Card in Admin */
.admin-catalog-sonata-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.admin-catalog-sonata-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(56, 189, 248, 0.4);
}

.admin-sonata-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-sonata-icon-wrap {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.admin-sonata-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Echo Set Card & Slot Row */
.admin-catalog-set-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}

.admin-catalog-set-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 209, 102, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.admin-set-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.admin-set-title {
  color: #ffd166;
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 4px 0;
}

.admin-set-recom {
  color: #94a3b8;
  font-size: 0.78rem;
  margin: 0;
}

.admin-set-echoes-preview {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-set-echo-avatar-slot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-set-echo-avatar-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-set-slot-cost-pill {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 0.6rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.85);
  color: #ffd166;
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid rgba(255, 209, 102, 0.4);
}

/* Set Builder Slot Configuration Row */
.admin-set-builder-slot-row {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-slot-tag {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffd166;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   ECHO CARD EDITOR (MATCHING SCREENSHOT 3 / input_file_2.png)
   ========================================================================== */
.admin-echo-slot-card-preview {
  background: #050507;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.admin-echo-slot-card-preview:hover {
  border-color: rgba(255, 209, 102, 0.35);
  background: #08080a;
}

/* Left Column: Floppy button, Echo Avatar, Name, Level Slider, Sonata Dropdown */
.echo-card-left-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.echo-card-floppy-btn {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.echo-card-floppy-btn:hover {
  background: rgba(255, 209, 102, 0.15);
  border-color: #ffd166;
  color: #ffd166;
}

.echo-card-avatar-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #ffd166;
  padding: 3px;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(255, 209, 102, 0.2);
  margin-top: 4px;
}

.echo-card-avatar-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 22px rgba(255, 209, 102, 0.5);
  border-color: #ffe082;
}

.echo-card-avatar-btn img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.echo-card-name-title {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  margin: 10px 0 12px 0;
  text-align: center;
  line-height: 1.25;
  cursor: pointer;
}

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

/* Level Slider */
.echo-card-level-wrap {
  width: 100%;
  margin-bottom: 12px;
}

.echo-card-level-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.echo-card-level-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #ffd166;
  outline: none;
  cursor: pointer;
}

.echo-card-level-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border: 2px solid #ffd166;
  border-radius: 2px;
  transform: rotate(45deg);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(255, 209, 102, 0.8);
}

/* Sonata Pill Dropdown */
.echo-card-sonata-pill {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.echo-card-sonata-pill:hover {
  border-color: #38bdf8;
  color: #ffffff;
  background: rgba(56, 189, 248, 0.08);
}

.echo-card-sonata-pill img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Right Column: Stat Principal & Substats */
.echo-card-right-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.echo-stat-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.echo-stat-section-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.echo-main-stat-val-highlight {
  font-size: 1rem;
  font-weight: 800;
  color: #ffd166;
}

.echo-card-dropdown {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.echo-card-dropdown:focus,
.echo-card-dropdown.active {
  border-color: #ff3b5c;
  box-shadow: 0 0 10px rgba(255, 59, 92, 0.25);
}

.echo-card-substats-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.echo-card-substat-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.echo-substat-dropdown {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 10px;
  color: #cbd5e1;
  font-size: 0.8rem;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.echo-substat-dropdown:focus {
  border-color: #ff3b5c;
  color: #ffffff;
}

.echo-substat-val-input {
  width: 74px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 8px;
  color: #ffd166;
  font-weight: 700;
  font-size: 0.8rem;
  text-align: right;
  outline: none;
}

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

/* ==========================================================================
   WEAPON PICKER MODAL (SCREENSHOT 1 / input_file_0.png)
   ========================================================================== */
.weapon-picker-custom-modal-content {
  max-width: 760px;
  width: 95%;
  background: #08090c;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(255, 59, 92, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, #090a0d 0%, #050608 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  overflow: hidden;
}

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

.weapon-picker-modal-header h3 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  font-family: 'Space Grotesk', var(--font-display), sans-serif;
}

.weapon-picker-filter-bar {
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(14, 18, 28, 0.7);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.weapon-picker-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.weapon-picker-tab-btn {
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.weapon-picker-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.weapon-picker-tab-btn.active {
  background: rgba(255, 209, 102, 0.15);
  border-color: #ffd166;
  color: #ffd166;
}

.weapon-picker-list-container {
  padding: 16px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.weapon-picker-card-v2 {
  background: #050507;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.weapon-picker-card-v2:hover {
  border-color: rgba(255, 209, 102, 0.45);
  background: #08080a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.weapon-picker-card-thumb-wrap {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid #ffd166;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(255, 209, 102, 0.25);
}

.weapon-picker-card-thumb-wrap.rarity-4 {
  border-color: #c084fc;
  box-shadow: 0 0 14px rgba(192, 132, 252, 0.25);
}

.weapon-picker-card-thumb-wrap.rarity-3 {
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.weapon-picker-card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.weapon-picker-card-body {
  flex: 1;
  min-width: 0;
}

.weapon-picker-card-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 6px 0;
  font-family: 'Space Grotesk', var(--font-display), sans-serif;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.weapon-picker-card-passive {
  color: #cbd5e1;
  font-size: 0.84rem;
  line-height: 1.55;
  margin: 0;
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
}

.weapon-passive-hl {
  color: #ffd166;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(255, 209, 102, 0.25);
}

/* ==========================================================================
   CUSTOM SONATA DROPDOWN & ECHO PICKER (SCREENSHOT 2 / input_file_1.png)
   ========================================================================== */
.custom-sonata-select-trigger {
  background: #050507;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.2s;
  position: relative;
  user-select: none;
  min-width: 220px;
}

.custom-sonata-select-trigger:hover {
  border-color: #38bdf8;
  background: #08080a;
}

.custom-sonata-select-trigger img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: contain;
}

.custom-sonata-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 280px;
  max-height: 320px;
  overflow-y: auto;
  background: #0e121c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  z-index: 10005;
  padding: 6px;
  display: none;
}

.custom-sonata-dropdown-menu.open {
  display: block;
}

.custom-sonata-header-item {
  padding: 10px 14px;
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s;
}

.custom-sonata-header-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.custom-sonata-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 600;
}

.custom-sonata-item:hover {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}

.custom-sonata-item img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: contain;
}

.admin-echo-group-header {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffd166;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 16px 0 10px 0;
  border-bottom: 1px solid rgba(255, 209, 102, 0.2);
  padding-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-echo-pick-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-echo-pick-card:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  transform: translateY(-2px);
}

.admin-echo-pick-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffd166;
  background: rgba(0, 0, 0, 0.5);
}

.admin-echo-pick-avatar.cost-3 {
  border-color: #c084fc;
}

.admin-echo-pick-avatar.cost-1 {
  border-color: #38bdf8;
}

/* ==========================================================================
   Admin Profile Covers Management Styles
   ========================================================================== */
.admin-covers-management-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.admin-cover-mgmt-card {
  background: rgba(13, 17, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-cover-mgmt-card:hover {
  border-color: rgba(255, 59, 92, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 16px rgba(255, 59, 92, 0.12);
}

.admin-cover-mgmt-preview {
  height: 100px;
  background-size: cover;
  background-position: center;
  background-color: #161822;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-cover-type-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

.admin-cover-type-badge.gradient {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.8), rgba(236, 72, 153, 0.8));
  border-color: rgba(236, 72, 153, 0.4);
}

.admin-cover-mgmt-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.admin-cover-mgmt-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-cover-mgmt-src {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 8px;
  border-radius: 6px;
}

.admin-cover-mgmt-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-cover-reorder-group {
  display: flex;
  gap: 4px;
}

.btn-cover-reorder {
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cover-reorder:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-cover-edit-item {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cover-edit-item:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  color: #fff;
}

.btn-cover-delete-item {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cover-delete-item:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #fff;
}



