/* ==========================================================================
   DISCORD FRUTIGER AERO HYBRID PROFILE STYLESHEET
   ========================================================================== */

:root {
  --discord-bg: #090d16;
  --discord-card-bg: rgba(15, 23, 42, 0.78);
  --discord-card-border: rgba(125, 211, 252, 0.25);
  --discord-accent: #38bdf8;
  --discord-purple: #818cf8;
  --discord-pink: #f43f5e;
  --discord-green: #22c55e;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
}

body.discord-aero-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 10%, #1e1b4b 0%, #0f172a 45%, #030712 100%);
  color: var(--text-main);
  font-family: var(--font-main);
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Orbs */
.aero-bg-lights {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aero-light-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: aeroOrbFloat 14s infinite alternate ease-in-out;
}

.aero-light-orb.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #38bdf8 0%, rgba(56, 189, 248, 0) 70%);
  top: -100px;
  left: 20%;
}

.aero-light-orb.orb-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #818cf8 0%, rgba(129, 140, 248, 0) 70%);
  bottom: 10%;
  right: 15%;
  animation-duration: 18s;
  animation-delay: -5s;
}

.aero-light-orb.orb-3 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #ec4899 0%, rgba(236, 72, 153, 0) 70%);
  top: 40%;
  left: 5%;
  animation-duration: 22s;
  animation-delay: -8s;
}

@keyframes aeroOrbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.15); }
  100% { transform: translate(-30px, 40px) scale(0.9); }
}

/* Profile Main Container */
.discord-profile-container {
  position: relative;
  z-index: 10;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 60px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Top Navigation */
.discord-profile-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 12px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-back-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  transform: translateX(-2px);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.nav-branding {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.nav-branding b {
  color: #38bdf8;
}

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

.nav-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-action-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.nav-action-btn.discord-btn {
  background: #5865f2;
  border-color: #7983f5;
}

.nav-action-btn.discord-btn:hover {
  background: #4752c4;
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.6);
}

/* Main Window Card */
.discord-passport-window {
  width: 100% !important;
  background: var(--discord-card-bg) !important;
  backdrop-filter: blur(20px);
  border: 1px solid var(--discord-card-border) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.15) !important;
  border-radius: 10px;
  overflow: hidden;
}

.profile-state-box {
  padding: 60px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(56, 189, 248, 0.2);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Banner Section */
.discord-banner-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.discord-banner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.banner-aero-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 45%, rgba(15,23,42,0.9) 100%);
  pointer-events: none;
}

/* Header & Avatar Info */
.discord-header-info {
  position: relative;
  padding: 0 24px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.avatar-holder {
  position: relative;
  margin-top: -65px;
}

.avatar-frame {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #ec4899 100%);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(56, 189, 248, 0.4);
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #0f172a;
  display: block;
}

.avatar-decoration-overlay {
  position: absolute;
  top: -12%;
  left: -12%;
  width: 124%;
  height: 124%;
  pointer-events: none;
  z-index: 2;
}

.status-indicator-dot {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid #0f172a;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  z-index: 3;
}

.save-status-dot.saving {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

/* Steam Dynamic Gamer Card */
.steam-dynamic-card {
  background: rgba(23, 26, 33, 0.85);
  border: 1px solid rgba(102, 192, 244, 0.3);
  border-radius: 8px;
  padding: 12px 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.steam-dynamic-card:hover {
  border-color: rgba(102, 192, 244, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 192, 244, 0.25);
}
.steam-card-body {
  display: flex;
  align-items: center;
  gap: 12px;
}
.steam-avatar-wrapper {
  position: relative;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}
.steam-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  border: 2px solid #57cbde;
  object-fit: cover;
}
.steam-card-body.steam-ingame .steam-avatar-img {
  border-color: #a1cd34;
}
.steam-card-body.steam-offline .steam-avatar-img {
  border-color: #6b7280;
}
.steam-status-indicator {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #171a21;
  background: #57cbde;
}
.steam-card-body.steam-ingame .steam-status-indicator {
  background: #a1cd34;
}
.steam-card-body.steam-offline .steam-status-indicator {
  background: #6b7280;
}
.steam-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.steam-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.steam-persona-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.steam-level-badge {
  background: linear-gradient(135deg, #1e3a8a, #0284c7);
  border: 1px solid #38bdf8;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
}
.steam-status-msg {
  font-size: 0.76rem;
  color: #66c0f4;
}
.steam-card-body.steam-ingame .steam-status-msg {
  color: #a1cd34;
  font-weight: 600;
}
.steam-card-body.steam-offline .steam-status-msg {
  color: #94a3b8;
}
.steam-recent-game {
  font-size: 0.74rem;
  color: #cbd5e1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.steam-view-btn {
  background: linear-gradient(135deg, #171a21, #2a475e);
  color: #66c0f4;
  border: 1px solid rgba(102, 192, 244, 0.4);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.steam-view-btn:hover {
  background: #66c0f4;
  color: #171a21;
}

.status-indicator-dot.idle { background: #eab308; box-shadow: 0 0 8px #eab308; }
.status-indicator-dot.dnd { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.status-indicator-dot.offline { background: #64748b; box-shadow: none; }

.user-main-meta {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.name-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.user-display-name {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.reaction-status-pill {
  font-size: 1.1rem;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(6px);
}

.user-sub-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.95rem;
}

.username-tag {
  color: #94a3b8;
  font-family: var(--font-mono);
  font-weight: 600;
}

.nickname-badge, .pronoun-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
  font-weight: bold;
}

.server-dates-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.date-chip {
  font-size: 0.78rem;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Owner Magic Controls Button */
.owner-controls-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.owner-magic-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid #38bdf8;
  border-radius: 6px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.2s ease;
}

.owner-magic-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  filter: brightness(1.15);
}

.owner-magic-btn.color-btn {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  border-color: #a78bfa;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.owner-magic-btn.color-btn:hover {
  box-shadow: 0 6px 20px rgba(167, 139, 250, 0.6);
}

/* Custom Role Showcase Banner */
.custom-role-showcase {
  margin: 16px 24px 0;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(244, 63, 94, 0.4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.15), inset 0 0 12px rgba(244, 63, 94, 0.08);
}

.cr-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cr-icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cr-label {
  font-size: 0.68rem;
  letter-spacing: 1px;
  font-weight: 800;
  color: #f43f5e;
}

.cr-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f43f5e;
}

.cr-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cr-streak-pill, .cr-partner-pill {
  font-size: 0.8rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* 4-Grid Passport Layout */
.passport-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 20px 24px;
}

@media (max-width: 768px) {
  .passport-grid {
    grid-template-columns: 1fr;
  }
}

.passport-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.card-header {
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
  font-size: 0.88rem;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prop-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.prop-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.prop-label {
  color: #94a3b8;
  font-weight: 600;
}

.prop-val {
  color: #f1f5f9;
  font-weight: 600;
  text-align: right;
}

.prop-val-badge {
  font-size: 0.78rem;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.prop-val-badge.lvl-badge {
  background: rgba(234, 179, 8, 0.15);
  border-color: rgba(234, 179, 8, 0.4);
  color: #fde047;
}

.prop-val-badge.score-badge {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.prop-val-badge.clean-badge {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.prop-val-highlight {
  font-family: var(--font-mono);
  font-weight: bold;
  color: #f8fafc;
  font-size: 0.95rem;
}

/* Music Mini Card */
.prop-item.music-item {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.prop-music-box {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.music-link-btn {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.music-link-btn:hover {
  text-decoration: underline;
}

/* Duels Winrate Bar */
.duels-stat-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.winrate-bar-bg {
  width: 100px;
  height: 6px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 3px;
  overflow: hidden;
}

.winrate-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #38bdf8);
  transition: width 0.3s ease;
}

/* Friends & Clubs Chips */
.friends-chips-container, .clubs-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.friend-chip, .club-chip {
  font-size: 0.75rem;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: #f1f5f9;
  font-weight: 600;
}

/* Roles Shelf Block */
.profile-section-block {
  padding: 0 24px 20px;
}

.section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.roles-chips-shelf {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--role-border, rgba(255,255,255,0.15));
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--role-color, #f1f5f9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.role-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--role-color, #f1f5f9);
}

/* Badges Grid */
.badges-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.badge-card {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.badge-card.equipped {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

.badge-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.badge-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: #f8fafc;
}

.badge-desc {
  font-size: 0.72rem;
  color: #94a3b8;
}

.badge-status-tag {
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.badge-status-tag.unlocked {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.badge-status-tag.locked {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

/* Modals */
.aero-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.aero-modal-window {
  width: 540px;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #1e293b !important;
  border: 1px solid #38bdf8 !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 25px rgba(56, 189, 248, 0.3) !important;
  border-radius: 8px;
  overflow: hidden;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-form-group {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #cbd5e1;
}

.aero-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #475569;
  border-radius: 6px;
  color: #f8fafc;
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.aero-input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.aero-color-picker {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  cursor: pointer;
  background: none;
}

.cr-preview-chip {
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.95rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.xp-dialog-footer {
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-feedback-msg {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 10px;
}

/* Colors Accordion List */
.colors-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.color-category-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px;
}

.color-category-box.locked {
  opacity: 0.6;
}

.cat-header {
  font-size: 0.85rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.colors-swatches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

.color-swatch-card {
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.color-swatch-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #38bdf8;
  transform: translateY(-2px);
}

.color-swatch-card.equipped {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
  flex-shrink: 0;
}

.swatch-name {
  font-size: 0.78rem;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card Edit Mini Button */
.card-edit-mini-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #38bdf8;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.card-edit-mini-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #fff;
  transform: translateY(-1px);
}

.owner-magic-btn.badges-btn {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2) 0%, rgba(202, 138, 4, 0.35) 100%);
  border-color: rgba(234, 179, 8, 0.45);
  color: #fef08a;
}

.owner-magic-btn.badges-btn:hover {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.35) 0%, rgba(202, 138, 4, 0.5) 100%);
  box-shadow: 0 0 16px rgba(234, 179, 8, 0.4);
}

/* Spotify Track Preview Card */
.spotify-track-preview-box {
  background: rgba(24, 24, 27, 0.85);
  border: 1px solid rgba(29, 185, 84, 0.3);
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Badges Manager */
.badges-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
}

.badges-stats-summary {
  font-size: 0.82rem;
  color: #cbd5e1;
}

.badges-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.badge-tab-btn {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.badge-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #38bdf8;
}

.badge-tab-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3) 0%, rgba(37, 99, 235, 0.3) 100%);
  border-color: #38bdf8;
  color: #7dd3fc;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.badges-manager-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 4px;
}

.badge-mgr-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.badge-mgr-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  background: rgba(15, 23, 42, 0.85);
}

.badge-mgr-card.equipped {
  border-color: #22c55e;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}

.badge-mgr-card.unlocked:not(.equipped) {
  border-color: rgba(234, 179, 8, 0.3);
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.05) 0%, rgba(15, 23, 42, 0.7) 100%);
}

.badge-mgr-card.locked {
  opacity: 0.55;
  filter: grayscale(0.5);
}

.badge-mgr-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-mgr-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.badge-mgr-title-box {
  min-width: 0;
  flex: 1;
}

.badge-mgr-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-mgr-cat {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.badge-mgr-desc {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.3;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badge-mgr-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.badge-mgr-status-tag {
  font-size: 0.72rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-mgr-status-tag.equipped {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.15);
}

.badge-mgr-status-tag.hidden {
  color: #facc15;
  background: rgba(234, 179, 8, 0.15);
}

.badge-mgr-status-tag.locked {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.1);
}

.badge-mgr-action-btn {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.badge-mgr-action-btn.equip-btn {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  color: #4ade80;
}

.badge-mgr-action-btn.equip-btn:hover {
  background: #22c55e;
  color: #000;
}

.badge-mgr-action-btn.hide-btn {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.badge-mgr-action-btn.hide-btn:hover {
  background: #ef4444;
  color: #fff;
}

/* ==========================================================================
   DYNAMIC NICHE WIDGETS: ROBLOX & BRAWL STARS
   ========================================================================== */
.roblox-dynamic-card,
.brawl-dynamic-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 12px 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.roblox-dynamic-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
}

.brawl-dynamic-card:hover {
  border-color: rgba(250, 204, 21, 0.5);
  transform: translateY(-2px);
}

.roblox-widget-body,
.brawl-widget-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.roblox-avatar-wrap {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.roblox-avatar-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.roblox-info,
.brawl-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.roblox-name-row,
.brawl-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.roblox-display-name,
.brawl-player-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
}

.roblox-verified-badge {
  background: #0284c7;
  color: #fff;
  font-size: 0.65rem;
  font-weight: bold;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.roblox-username {
  font-size: 0.78rem;
  color: #94a3b8;
  font-family: var(--font-mono, monospace);
}

.roblox-profile-btn,
.brawl-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
  transition: all 0.15s ease;
}

.roblox-profile-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #fff;
}

.brawl-icon-img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  border: 2px solid #facc15;
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
  object-fit: cover;
  flex-shrink: 0;
}

.brawl-tag-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #facc15;
  padding: 1px 5px;
  border-radius: 3px;
}

.brawl-stats-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 2px 0;
}

.brawl-stat-pill {
  font-size: 0.76rem;
  color: #fef08a;
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
}

.brawl-club-pill {
  font-size: 0.72rem;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.brawl-profile-btn {
  color: #facc15;
}

.brawl-profile-btn:hover {
  background: rgba(250, 204, 21, 0.2);
  border-color: #facc15;
  color: #fff;
}

/* ==========================================================================
   DASHBOARD MASTER SAVE BAR
   ========================================================================== */
.dashboard-master-save-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  border-top: 2px solid #0055ea;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  border-radius: 0 0 6px 6px;
  margin-top: 20px;
}

.master-save-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.master-save-dot {
  font-size: 0.8rem;
  animation: pulse-dot 2s infinite;
}

.master-save-btn {
  background: linear-gradient(180deg, #0055ea 0%, #003c90 100%);
  color: #ffffff;
  border: 1px solid #38bdf8;
  padding: 9px 24px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 85, 234, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.15s ease;
}

.master-save-btn:hover {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

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

