/* ========================================================
   EVE Tracker — VIP Discord Profile & Customization Styles
   Matches authentic Discord profile cards, avatar frames,
   status bubbles, and badges.
   ======================================================== */

/* --- Main Editor Layout --- */
.vip-editor-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1.15fr) minmax(540px, 620px);
  gap: 28px;
  align-items: stretch;
  margin-top: 16px;
}

@media (max-width: 1100px) {
  .vip-editor-layout {
    grid-template-columns: 1fr;
  }
}

.vip-editor-panel {
  background: #121620;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.vip-preview-sticky-panel {
  position: sticky !important;
  top: 195px !important;
  align-self: start !important;
  max-height: calc(100vh - 210px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.vip-editor-section-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #38bdf8;
  margin-bottom: 14px;
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vip-form-group {
  margin-bottom: 18px;
}

.vip-form-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #a4b0be;
  margin-bottom: 6px;
}

.vip-input-text,
.vip-textarea,
.vip-select {
  width: 100%;
  background: #090c12;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 10px 14px;
  color: #f1f2f6;
  font-size: 13.5px;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.vip-input-text:focus,
.vip-textarea:focus,
.vip-select:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
  background: #0d1117;
}

.vip-textarea {
  min-height: 85px;
  resize: vertical;
  line-height: 1.45;
}

/* Avatar Frame Selector Grid */
.vip-frames-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.vip-frame-card {
  background: #090c12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vip-frame-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.vip-frame-card.active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.vip-frame-card-preview {
  width: 48px;
  height: 48px;
  margin: 0 auto 8px auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vip-frame-card-title {
  font-size: 11px;
  font-weight: 700;
  color: #dfe4ea;
  line-height: 1.3;
  margin-top: 6px;
}

/* Banner Preset Pills */
.vip-banner-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.vip-preset-pill {
  background: #181d28;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ced6e0;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.vip-preset-pill:hover,
.vip-preset-pill.active {
  border-color: #38bdf8;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
}

/* Bottom Background (Card Theme) Preset Pills */
.vip-body-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.vip-body-preset-pill {
  background: #181d28;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ced6e0;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.vip-body-preset-pill:hover,
.vip-body-preset-pill.active {
  border-color: #00e676;
  color: #00e676;
  background: rgba(0, 230, 118, 0.1);
}

/* Badges Selection Pills */
.vip-badges-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  align-items: center;
}

.vip-badge-toggle {
  background: #090c12;
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  font-size: 11.5px;
  font-weight: 700;
  color: #747d8c;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  user-select: none;
  box-sizing: border-box;
  line-height: 1;
  white-space: nowrap;
}

.vip-badge-toggle:hover:not(.locked) {
  border-color: rgba(56, 189, 248, 0.5);
  color: #c9d1d9;
  background: rgba(255, 255, 255, 0.03);
}

.vip-badge-toggle.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #f1f2f6;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.vip-badge-toggle.locked {
  opacity: 0.38;
  cursor: not-allowed;
  background: rgba(10, 14, 20, 0.4);
  border-color: rgba(255, 255, 255, 0.05);
  color: #4a5568;
}

.vip-badge-toggle.locked:hover {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.04);
}

.vip-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  line-height: 1;
}

.vip-badge-icon svg {
  display: block;
}

.vip-badge-label {
  display: inline-block;
  line-height: 1;
}

.vip-badge-lock {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  margin-left: 2px;
  opacity: 0.7;
}

/* Theme Color Picker Row */
.vip-colors-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.vip-color-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.vip-color-circle:hover,
.vip-color-circle.active {
  border-color: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 0 8px currentColor;
}

/* --- Authentic Discord Profile Card --- */
.discord-card-container {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  background: #111214;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #dbdee1;
  position: relative;
}

/* Banner — Taller authentic Discord profile banner */
.discord-banner {
  height: 260px;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  transition: background 0.3s ease;
  background-color: #1e1f22;
  box-shadow: inset 0 -20px 28px -6px rgba(0, 0, 0, 0.85);
}

.discord-banner-actions {
  position: absolute;
  top: 12px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 6;
}

.discord-action-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f2f3f5;
  cursor: pointer;
  border: none;
  font-size: 14px;
  transition: background 0.15s, transform 0.15s;
}

.discord-action-circle:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.05);
}

/* Avatar Row — Positioned at the top of the body, overlapping the banner seam */
.discord-avatar-row {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 14px;
  padding: 0;
  margin-top: -50px;
  margin-bottom: 14px;
  position: relative;
  z-index: 5;
}

.discord-card-container .discord-avatar-wrapper {
  position: relative;
  width: 92px;
  height: 92px;
  flex-shrink: 0;
}

.discord-card-container .discord-avatar-img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: #111214;
  display: block;
  border: 5px solid #111214;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.75);
}

.discord-card-container .discord-status-dot {
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #23a55a;
  border: 4px solid #111214;
  box-sizing: border-box;
}

/* Status Speech Bubble — Sits beside the avatar directly on top of the lower body */
.discord-status-bubble {
  background: rgba(18, 20, 28, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #f2f3f5;
  max-width: 280px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  position: relative;
  word-break: break-word;
  display: inline-flex;
  align-items: center;
  margin-bottom: 6px;
  margin-left: 2px;
}

.discord-status-bubble::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: rgba(18, 20, 28, 0.85);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Leaderboard Avatar Frame Scoping — Keep Leaderboard rows at exact 38px level */
.lb-avatar-frame {
  width: 38px !important;
  height: 38px !important;
  flex-shrink: 0 !important;
}

.lb-avatar-frame .discord-avatar-img {
  width: 34px !important;
  height: 34px !important;
  border-width: 2px !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.lb-avatar-frame .discord-status-dot {
  width: 10px !important;
  height: 10px !important;
  border-width: 2px !important;
  bottom: 0 !important;
  right: 0 !important;
}

.lb-avatar-frame .frame-angry_anime-decor {
  width: 15px !important;
  height: 15px !important;
  top: -4px !important;
  right: -3px !important;
}

.lb-avatar-frame .frame-angry_anime-bubble {
  width: 12px !important;
  height: 12px !important;
  font-size: 8px !important;
  left: -3px !important;
  bottom: -1px !important;
}

/* Seamless Discord Body (Edge-to-edge lower card half) */
.discord-body {
  position: relative;
  background: #111214;
  margin: 0;
  border-radius: 0 0 16px 16px;
  padding: 0 24px 32px 24px;
  min-height: 580px;
  box-sizing: border-box;
  transition: background 0.3s ease;
}

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

.discord-display-name {
  font-size: 20px;
  font-weight: 900;
  color: #f2f3f5;
  letter-spacing: -0.3px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85);
}

.discord-custom-title {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.discord-username-sub {
  font-size: 12px;
  color: #b5bac1;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Badges Container */
.discord-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.discord-badge-pill {
  background: rgba(26, 28, 36, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  height: 24px;
  box-sizing: border-box;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  color: #f2f3f5;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
  white-space: nowrap;
}

.discord-badge-pill.badge-eve {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.45);
  color: #38bdf8;
}

.discord-badge-pill.badge-vip {
  background: rgba(241, 196, 15, 0.18);
  border-color: rgba(241, 196, 15, 0.5);
  color: #f1c40f;
}

.discord-badge-pill.badge-fc {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.55);
  color: #ef4444;
}

/* Divider & Server line */
.discord-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 12px 0;
}

.discord-mutual-server {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #b5bac1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.discord-mutual-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* About Me Box — Frosted Glass Inset */
.discord-about-section {
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
}

.discord-about-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #949ba4;
  margin-bottom: 4px;
}

.discord-bio-text {
  font-size: 12px;
  line-height: 1.45;
  color: #dbdee1;
  white-space: pre-wrap;
  word-break: break-word;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* EVE Live Stats Grid inside Discord card — Frosted Glass Inset */
.discord-eve-stats {
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
}

.discord-stats-header {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #38bdf8;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.discord-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.discord-stat-box {
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 6px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.discord-stat-label {
  font-size: 9.5px;
  color: #747d8c;
  text-transform: uppercase;
  font-weight: 700;
}

.discord-stat-val {
  font-size: 12.5px;
  font-weight: 900;
  font-family: var(--font-mono, monospace);
  margin-top: 2px;
}

/* --- Avatar Frames & Decorations --- */

.discord-avatar-wrapper {
  position: relative !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 1. Angry Anime (Vein Pulse & Red Neon Halo) */
.frame-angry_anime {
  border: 2px solid #ef4444 !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.75), inset 0 0 8px rgba(239, 68, 68, 0.4);
  animation: discord-anger-border-pulse 1.6s ease-in-out infinite alternate;
}

@keyframes discord-anger-border-pulse {
  0% { box-shadow: 0 0 6px rgba(239, 68, 68, 0.45); }
  100% { box-shadow: 0 0 18px rgba(239, 68, 68, 0.95); }
}

.frame-angry_anime-decor {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 22px;
  height: 22px;
  z-index: 5;
  pointer-events: none;
  animation: discord-anger-pulse 1.2s ease-in-out infinite;
}

.vip-frame-card-preview .frame-angry_anime-decor {
  width: 14px !important;
  height: 14px !important;
  top: -2px !important;
  right: -2px !important;
}

@keyframes discord-anger-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.18) rotate(6deg); }
  100% { transform: scale(1); }
}

/* 2. Gold Wreath (Founder VIP & FC) */
.frame-gold_wreath {
  border: 2px solid #ffd32a !important;
  animation: discord-gold-pulse 2s ease-in-out infinite alternate;
}

@keyframes discord-gold-pulse {
  0% { box-shadow: 0 0 6px rgba(255, 211, 42, 0.45); }
  100% { box-shadow: 0 0 18px rgba(255, 211, 42, 0.95); }
}

.frame-gold_wreath-decor {
  position: absolute;
  inset: -4px;
  pointer-events: none;
  border: 1.5px solid rgba(255, 211, 42, 0.5);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 211, 42, 0.4);
  animation: discord-gold-pulse 2s ease-in-out infinite alternate;
}

/* 3. Cyber Neon */
.frame-cyber_neon {
  border: 2px solid #38bdf8 !important;
  animation: discord-cyber-pulse 1.8s ease-in-out infinite alternate;
}

@keyframes discord-cyber-pulse {
  0% { box-shadow: 0 0 6px rgba(56, 189, 248, 0.45); }
  100% { box-shadow: 0 0 16px rgba(56, 189, 248, 0.95); }
}

.frame-cyber_neon-decor {
  position: absolute;
  inset: -4px;
  border: 1.5px solid rgba(56, 189, 248, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
  pointer-events: none;
  animation: discord-cyber-pulse 1.8s ease-in-out infinite alternate;
}

/* 4. Flame */
.frame-flame {
  border: 2px solid #ff4b2b !important;
  animation: discord-flame-pulse 1.8s ease-in-out infinite alternate;
}

@keyframes discord-flame-pulse {
  0% { box-shadow: 0 0 6px rgba(255, 75, 43, 0.5); }
  100% { box-shadow: 0 0 18px rgba(255, 75, 43, 0.95); }
}

/* 5. Void Portal */
.frame-void_portal {
  border: 2px solid #a855f7 !important;
  animation: discord-portal-pulse 2.2s ease-in-out infinite alternate;
}

@keyframes discord-portal-pulse {
  0% { box-shadow: 0 0 6px rgba(168, 85, 247, 0.45); }
  100% { box-shadow: 0 0 18px rgba(168, 85, 247, 0.95); }
}

/* 6. Matrix Glow */
.frame-matrix_glow {
  border: 2px solid #22c55e !important;
  animation: discord-matrix-pulse 1.6s ease-in-out infinite alternate;
}

@keyframes discord-matrix-pulse {
  0% { box-shadow: 0 0 6px rgba(34, 197, 94, 0.45); }
  100% { box-shadow: 0 0 16px rgba(34, 197, 94, 0.95); }
}

/* 7. Tactical Reticle */
.frame-tactical_reticle {
  border: 2px solid #e08114 !important;
  animation: discord-tactical-pulse 2s ease-in-out infinite alternate;
}

@keyframes discord-tactical-pulse {
  0% { box-shadow: 0 0 6px rgba(224, 129, 20, 0.45); }
  100% { box-shadow: 0 0 16px rgba(224, 129, 20, 0.95); }
}

.frame-tactical_reticle-decor {
  position: absolute;
  inset: -4px;
  border: 1.5px solid rgba(224, 129, 20, 0.5);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(224, 129, 20, 0.4);
  pointer-events: none;
  animation: discord-tactical-pulse 2s ease-in-out infinite alternate;
}

/* 8. Lightning Storm */
.frame-lightning_storm {
  border: 2px solid #00d2ff !important;
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.8), inset 0 0 8px rgba(0, 210, 255, 0.4);
  animation: discord-lightning-pulse 1.4s ease-in-out infinite alternate;
}
@keyframes discord-lightning-pulse {
  0% { box-shadow: 0 0 6px rgba(0, 210, 255, 0.4); }
  50% { box-shadow: 0 0 22px rgba(0, 210, 255, 1), 0 0 8px #ffffff; }
  100% { box-shadow: 0 0 10px rgba(0, 210, 255, 0.6); }
}
.frame-lightning_storm-decor {
  position: absolute;
  inset: -8px;
  pointer-events: none;
  z-index: 5;
}

/* 9. Sakura Blossom */
.frame-sakura_blossom {
  border: 2px solid #ff758c !important;
  box-shadow: 0 0 14px rgba(255, 117, 140, 0.75);
  animation: discord-sakura-pulse 2.4s ease-in-out infinite alternate;
}
@keyframes discord-sakura-pulse {
  0% { box-shadow: 0 0 6px rgba(255, 117, 140, 0.4); }
  100% { box-shadow: 0 0 18px rgba(255, 117, 140, 0.95), 0 0 6px #ffccd5; }
}
.frame-sakura_blossom-decor {
  position: absolute;
  inset: -7px;
  pointer-events: none;
  z-index: 5;
}

/* 10. Angel Halo */
.frame-angel_halo {
  border: 2px solid #fff3b0 !important;
  box-shadow: 0 0 16px rgba(255, 243, 176, 0.8);
  animation: discord-angel-pulse 2s ease-in-out infinite alternate;
}
@keyframes discord-angel-pulse {
  0% { box-shadow: 0 0 6px rgba(255, 243, 176, 0.4); }
  100% { box-shadow: 0 0 20px rgba(255, 243, 176, 0.95), 0 0 8px #ffffff; }
}
.frame-angel_halo-decor {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 24px;
  pointer-events: none;
  z-index: 6;
  animation: discord-halo-float 2.4s ease-in-out infinite alternate;
}
@keyframes discord-halo-float {
  0% { transform: translateX(-50%) translateY(0); }
  100% { transform: translateX(-50%) translateY(-4px); }
}

/* 11. Demon Horns */
.frame-demon_horns {
  border: 2px solid #e11d48 !important;
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.8), inset 0 0 8px rgba(0, 0, 0, 0.8);
  animation: discord-demon-pulse 1.8s ease-in-out infinite alternate;
}
@keyframes discord-demon-pulse {
  0% { box-shadow: 0 0 8px rgba(225, 29, 72, 0.5); }
  100% { box-shadow: 0 0 22px rgba(225, 29, 72, 1); }
}
.frame-demon_horns-decor {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 24px;
  pointer-events: none;
  z-index: 6;
}

/* 12. Cat Ears (Neko) */
.frame-cat_ears {
  border: 2px solid #f472b6 !important;
  box-shadow: 0 0 14px rgba(244, 114, 182, 0.75);
  animation: discord-catears-pulse 2s ease-in-out infinite alternate;
}
@keyframes discord-catears-pulse {
  0% { box-shadow: 0 0 6px rgba(244, 114, 182, 0.4); }
  100% { box-shadow: 0 0 18px rgba(244, 114, 182, 0.95); }
}
.frame-cat_ears-decor {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 22px;
  pointer-events: none;
  z-index: 6;
}

/* 13. Ice Crystal */
.frame-ice_crystal {
  border: 2px solid #67e8f9 !important;
  box-shadow: 0 0 16px rgba(103, 232, 249, 0.8), inset 0 0 10px rgba(103, 232, 249, 0.35);
  animation: discord-ice-pulse 2.2s ease-in-out infinite alternate;
}
@keyframes discord-ice-pulse {
  0% { box-shadow: 0 0 6px rgba(103, 232, 249, 0.4); }
  100% { box-shadow: 0 0 20px rgba(103, 232, 249, 1), 0 0 8px #ffffff; }
}
.frame-ice_crystal-decor {
  position: absolute;
  inset: -8px;
  pointer-events: none;
  z-index: 5;
}

/* 14. Cosmic Galaxy */
.frame-cosmic_galaxy {
  border: 2px solid #818cf8 !important;
  box-shadow: 0 0 18px rgba(129, 140, 248, 0.85);
  animation: discord-galaxy-glow 3s ease-in-out infinite alternate;
}
@keyframes discord-galaxy-glow {
  0% { box-shadow: 0 0 8px rgba(129, 140, 248, 0.5), 0 0 16px rgba(236, 72, 153, 0.4); }
  100% { box-shadow: 0 0 22px rgba(129, 140, 248, 1), 0 0 24px rgba(236, 72, 153, 0.7); }
}
.frame-cosmic_galaxy-decor {
  position: absolute;
  inset: -7px;
  pointer-events: none;
  z-index: 5;
  animation: discord-spin 12s linear infinite;
}
@keyframes discord-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 15. Rainbow Chroma */
.frame-rainbow_chroma {
  border: 2px solid transparent !important;
  background: linear-gradient(#121620, #121620) padding-box, linear-gradient(135deg, #ff007f, #7928ca, #00dfd8, #00e676, #ffd32a, #ff007f) border-box !important;
  box-shadow: 0 0 16px rgba(0, 223, 216, 0.6);
  animation: discord-rainbow-glow 3s linear infinite;
}
@keyframes discord-rainbow-glow {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}
.frame-rainbow_chroma-decor {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.5);
  pointer-events: none;
  animation: discord-spin 8s linear infinite;
}

/* 16. Glitch Cyber */
.frame-glitch_cyber {
  border: 2px solid #ec4899 !important;
  box-shadow: -2px 0 10px #00e5ff, 2px 0 10px #ec4899;
  animation: discord-glitch-border 2s steps(2) infinite;
}
@keyframes discord-glitch-border {
  0% { transform: translate(0, 0); box-shadow: -2px 0 10px #00e5ff, 2px 0 10px #ec4899; }
  25% { transform: translate(-1px, 1px); box-shadow: -3px 1px 12px #ec4899, 1px -1px 12px #00e5ff; }
  50% { transform: translate(1px, -1px); box-shadow: 1px -2px 14px #00e5ff, -2px 1px 14px #ec4899; }
  75% { transform: translate(-1px, 0); box-shadow: -2px 0 8px #00e5ff, 2px 0 8px #ec4899; }
  100% { transform: translate(0, 0); box-shadow: -2px 0 10px #00e5ff, 2px 0 10px #ec4899; }
}
.frame-glitch_cyber-decor {
  position: absolute;
  inset: -6px;
  pointer-events: none;
  z-index: 5;
}

/* 17. Toxic Radiation */
.frame-toxic_radiation {
  border: 2px solid #84cc16 !important;
  box-shadow: 0 0 18px rgba(132, 204, 22, 0.85), inset 0 0 8px rgba(132, 204, 22, 0.4);
  animation: discord-toxic-pulse 1.8s ease-in-out infinite alternate;
}
@keyframes discord-toxic-pulse {
  0% { box-shadow: 0 0 8px rgba(132, 204, 22, 0.4); }
  100% { box-shadow: 0 0 22px rgba(132, 204, 22, 1), 0 0 8px #d9f99d; }
}
.frame-toxic_radiation-decor {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  pointer-events: none;
  z-index: 5;
  animation: discord-spin 10s linear infinite;
}

/* 18. Pulse Heart */
.frame-pulse_heart {
  border: 2px solid #f43f5e !important;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.8);
  animation: discord-heart-pulse 1.4s ease-in-out infinite;
}
@keyframes discord-heart-pulse {
  0% { transform: scale(1); box-shadow: 0 0 6px rgba(244, 63, 94, 0.4); }
  50% { transform: scale(1.02); box-shadow: 0 0 20px rgba(244, 63, 94, 0.95); }
  100% { transform: scale(1); box-shadow: 0 0 6px rgba(244, 63, 94, 0.4); }
}
.frame-pulse_heart-decor {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 5;
  animation: discord-heart-beat 1.4s ease-in-out infinite;
}
@keyframes discord-heart-beat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

/* 19. Stealth Hexagon */
.frame-stealth_hex {
  border: 2px solid #0284c7 !important;
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.7);
  animation: discord-hex-pulse 2s ease-in-out infinite alternate;
}
@keyframes discord-hex-pulse {
  0% { box-shadow: 0 0 6px rgba(2, 132, 199, 0.35); }
  100% { box-shadow: 0 0 18px rgba(2, 132, 199, 0.95); }
}
.frame-stealth_hex-decor {
  position: absolute;
  inset: -6px;
  pointer-events: none;
  z-index: 5;
}

/* 20. Pirate Crossbones */
.frame-pirate_crossbones {
  border: 2px solid #dc2626 !important;
  box-shadow: 0 0 14px rgba(220, 38, 38, 0.75);
}
.frame-pirate_crossbones-decor {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  pointer-events: none;
  z-index: 5;
}

/* 21. Blood Moon */
.frame-blood_moon {
  border: 2px solid #b91c1c !important;
  box-shadow: 0 0 18px rgba(185, 28, 28, 0.85);
  animation: discord-bloodmoon-pulse 2.2s ease-in-out infinite alternate;
}
@keyframes discord-bloodmoon-pulse {
  0% { box-shadow: 0 0 6px rgba(185, 28, 28, 0.4); }
  100% { box-shadow: 0 0 22px rgba(185, 28, 28, 1); }
}
.frame-blood_moon-decor {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 32px;
  height: 32px;
  pointer-events: none;
  z-index: 5;
}

/* 22. Diamond Sparkle */
.frame-diamond_sparkle {
  border: 2px solid #e0f2fe !important;
  box-shadow: 0 0 16px rgba(224, 242, 254, 0.8), 0 0 6px #ffffff;
  animation: discord-diamond-pulse 1.8s ease-in-out infinite alternate;
}
@keyframes discord-diamond-pulse {
  0% { box-shadow: 0 0 6px rgba(224, 242, 254, 0.4); }
  100% { box-shadow: 0 0 22px rgba(224, 242, 254, 1), 0 0 10px #ffffff; }
}
.frame-diamond_sparkle-decor {
  position: absolute;
  inset: -8px;
  pointer-events: none;
  z-index: 5;
}

/* 23. Amarr Imperial */
.frame-amarr_imperial {
  border: 2px solid #f59e0b !important;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.85);
  animation: discord-amarr-pulse 2s ease-in-out infinite alternate;
}
@keyframes discord-amarr-pulse {
  0% { box-shadow: 0 0 6px rgba(245, 158, 11, 0.4); }
  100% { box-shadow: 0 0 22px rgba(245, 158, 11, 1), 0 0 8px #fef3c7; }
}
.frame-amarr_imperial-decor {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 20px;
  pointer-events: none;
  z-index: 6;
}

/* 24. Quantum Shield */
.frame-quantum_shield {
  border: 2px solid #6366f1 !important;
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.8);
  animation: discord-shield-pulse 2s ease-in-out infinite alternate;
}
@keyframes discord-shield-pulse {
  0% { box-shadow: 0 0 6px rgba(99, 102, 241, 0.35); }
  100% { box-shadow: 0 0 22px rgba(99, 102, 241, 0.95); }
}
.frame-quantum_shield-decor {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(99, 102, 241, 0.6);
  pointer-events: none;
  animation: discord-spin 15s linear infinite;
}

/* 25. Star Wings */
.frame-star_wings {
  border: 2px solid #38bdf8 !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.8);
}
.frame-star_wings-decor {
  position: absolute;
  inset: -12px -20px;
  pointer-events: none;
  z-index: 4;
}

/* 26. Fire Dragon */
.frame-fire_dragon {
  border: 2px solid #ea580c !important;
  box-shadow: 0 0 16px rgba(234, 88, 12, 0.85);
  animation: discord-dragon-pulse 1.8s ease-in-out infinite alternate;
}
@keyframes discord-dragon-pulse {
  0% { box-shadow: 0 0 6px rgba(234, 88, 12, 0.4); }
  100% { box-shadow: 0 0 22px rgba(234, 88, 12, 1); }
}
.frame-fire_dragon-decor {
  position: absolute;
  inset: -8px;
  pointer-events: none;
  z-index: 5;
}

/* 27. Synthwave Sunset */
.frame-synthwave_sunset {
  border: 2px solid #d946ef !important;
  box-shadow: 0 0 18px rgba(217, 70, 239, 0.85), 0 0 8px rgba(249, 115, 22, 0.6);
}
.frame-synthwave_sunset-decor {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 20px;
  pointer-events: none;
  z-index: 5;
}

/* 28. Bubble Dream */
.frame-bubble_dream {
  border: 2px solid #a5f3fc !important;
  box-shadow: 0 0 14px rgba(165, 243, 252, 0.75);
}
.frame-bubble_dream-decor {
  position: absolute;
  inset: -8px;
  pointer-events: none;
  z-index: 5;
}

/* 29. Double Pulse */
.frame-double_pulse {
  border: 2px solid #22d3ee !important;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
}
.frame-double_pulse-decor {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(34, 211, 238, 0.75);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
  pointer-events: none;
  animation: discord-cyber-pulse 1.8s ease-in-out infinite alternate;
}

/* 30. Dashed Sonar */
.frame-dashed_sonar {
  border: 2px dashed #10b981 !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.7);
  animation: discord-spin 10s linear infinite;
}
.frame-dashed_sonar-decor {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(16, 185, 129, 0.35);
  pointer-events: none;
}

/* 31. Minimal Thin */
.frame-minimal_thin {
  border: 1px solid #94a3b8 !important;
  box-shadow: 0 0 8px rgba(148, 163, 184, 0.35);
}

/* Scale decor in frame selection preview grid */
.vip-frame-card-preview .frame-lightning_storm-decor,
.vip-frame-card-preview .frame-sakura_blossom-decor,
.vip-frame-card-preview .frame-ice_crystal-decor,
.vip-frame-card-preview .frame-cosmic_galaxy-decor,
.vip-frame-card-preview .frame-glitch_cyber-decor,
.vip-frame-card-preview .frame-stealth_hex-decor,
.vip-frame-card-preview .frame-diamond_sparkle-decor,
.vip-frame-card-preview .frame-bubble_dream-decor,
.vip-frame-card-preview .frame-fire_dragon-decor {
  inset: -4px !important;
  transform: scale(0.7);
}

.vip-frame-card-preview .frame-angel_halo-decor {
  top: -10px !important;
  transform: translateX(-50%) scale(0.65) !important;
}

.vip-frame-card-preview .frame-demon_horns-decor,
.vip-frame-card-preview .frame-cat_ears-decor {
  top: -8px !important;
  transform: translateX(-50%) scale(0.65) !important;
}

.vip-frame-card-preview .frame-toxic_radiation-decor,
.vip-frame-card-preview .frame-pulse_heart-decor {
  width: 14px !important;
  height: 14px !important;
  top: -2px !important;
  right: -2px !important;
}

.vip-frame-card-preview .frame-pirate_crossbones-decor {
  width: 15px !important;
  height: 15px !important;
  bottom: -2px !important;
  right: -2px !important;
}

.vip-frame-card-preview .frame-amarr_imperial-decor {
  top: -8px !important;
  transform: translateX(-50%) scale(0.65) !important;
}

.vip-frame-card-preview .frame-synthwave_sunset-decor {
  bottom: -4px !important;
  transform: translateX(-50%) scale(0.65) !important;
}

.vip-frame-card-preview .frame-star_wings-decor {
  inset: -6px -10px !important;
  transform: scale(0.65) !important;
}

/* Scrollable Frames Grid with Custom Scrollbar */
.vip-frames-grid {
  max-height: 380px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: #38bdf8 rgba(255, 255, 255, 0.05);
}

.vip-frames-grid::-webkit-scrollbar {
  width: 6px;
}

.vip-frames-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

.vip-frames-grid::-webkit-scrollbar-thumb {
  background: #38bdf8;
  border-radius: 4px;
}

/* Avatar Hexagon Vector Border */
.avatar-hex-border-svg {
  position: absolute;
  inset: -3px;
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  pointer-events: none;
  z-index: 4;
}

/* Banner Gradients */
.bg-gradient-anime_fire {
  background: linear-gradient(135deg, #ff416c, #ff4b2b, #f39c12);
}

.bg-gradient-deep_space {
  background: linear-gradient(135deg, #0b0e14, #1a2332, #2d3436);
}

.bg-gradient-cyber_neon {
  background: linear-gradient(135deg, #00cec9, #0984e3, #6c5ce7);
}

.bg-gradient-amarr_gold {
  background: linear-gradient(135deg, #f1c40f, #e67e22, #b7791f);
}

.bg-gradient-blood_raider {
  background: linear-gradient(135deg, #8b0000, #c0392b, #2c0b0e);
}

.bg-gradient-caldari_ice {
  background: linear-gradient(135deg, #38bdf8, #1e3a8a, #0f172a);
}

.bg-gradient-matrix_pulse {
  background: linear-gradient(135deg, #052e16, #15803d, #22c55e);
}

.bg-gradient-stealth_gray {
  background: linear-gradient(135deg, #27272a, #3f3f46, #18181b);
}

.bg-gradient-titanium_steel {
  background: linear-gradient(135deg, #334155, #475569, #1e293b);
}

.bg-gradient-monochrome_matte {
  background: linear-gradient(135deg, #1f2937, #374151, #111827);
}

.bg-gradient-carbon_graphite {
  background: linear-gradient(135deg, #18181b, #27272a, #09090b);
}

/* Card Body Background Themes (Bottom Card Half) */
.bg-card-dark_obsidian {
  background: #111214 !important;
}

.bg-card-slate_obsidian {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
}

.bg-card-titanium_matte {
  background: linear-gradient(180deg, #27272a 0%, #18181b 100%) !important;
}

.bg-card-carbon_stealth {
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%) !important;
}

.bg-card-pure_mono {
  background: #18181b !important;
}

.bg-card-abyssal {
  background: linear-gradient(180deg, #1d112b 0%, #0d0614 100%) !important;
}

.bg-card-blood_raider {
  background: linear-gradient(180deg, #2a0e13 0%, #0e0405 100%) !important;
}

.bg-card-cyber_neon {
  background: linear-gradient(180deg, #092026 0%, #030a0d 100%) !important;
}

.bg-card-amarr_gold {
  background: linear-gradient(180deg, #261c0a 0%, #0e0a03 100%) !important;
}

.bg-card-caldari_ice {
  background: linear-gradient(180deg, #0c1a2c 0%, #040912 100%) !important;
}

.bg-card-emerald_matrix {
  background: linear-gradient(180deg, #0a2416 0%, #030d07 100%) !important;
}

.bg-card-pitch_black {
  background: #000000 !important;
}

/* --- Popover Modal for Clicking any Pilot --- */
.discord-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 10005;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.discord-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.discord-modal-content {
  width: 100%;
  max-width: 580px;
  transform: scale(0.92);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.discord-modal-backdrop.active .discord-modal-content {
  transform: scale(1);
}

.discord-modal-close-btn {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  background: #232428;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.discord-modal-close-btn:hover {
  background: #ed4245;
}

/* --- Editor Tabs --- */
.vip-editor-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.vip-editor-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a4b0be;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vip-editor-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.vip-editor-tab-btn.active {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.55);
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.vip-tab-content {
  display: none;
  animation: vipFadeIn 0.2s ease;
}

.vip-tab-content.active {
  display: block;
}

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

/* --- Range Sliders --- */
.vip-slider-group {
  margin-bottom: 18px;
}

.vip-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.vip-slider-val {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

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

.vip-range-slider:hover {
  background: rgba(255, 255, 255, 0.2);
}

.vip-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  cursor: pointer;
  border: 2px solid #fff;
  transition: transform 0.15s;
}

.vip-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* --- Layout Builder (Blocks Reordering & Toggles) --- */
.vip-layout-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.vip-layout-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  transition: all 0.15s ease;
}

.vip-layout-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.vip-layout-item.hidden-section {
  opacity: 0.45;
  background: rgba(0, 0, 0, 0.2);
  border-style: dashed;
}

.vip-layout-item-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: #f2f3f5;
}

.vip-layout-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vip-btn-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #dbdee1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.15s ease;
}

.vip-btn-icon:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #fff;
  transform: translateY(-1px);
}

.vip-btn-icon:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.vip-btn-vis {
  color: #2ecc71;
}

.vip-btn-vis.is-hidden {
  color: #949ba4;
  opacity: 0.6;
}

/* Helper Button Pills Grid */
.vip-pills-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.vip-opt-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #dbdee1;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.vip-opt-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.vip-opt-pill.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

/* Card Visual Helpers */
.avatar-align-center {
  justify-content: center !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.avatar-align-right {
  justify-content: flex-end !important;
  flex-direction: row-reverse !important;
}

.text-center {
  text-align: center !important;
}

.text-right {
  text-align: right !important;
}

.justify-center {
  justify-content: center !important;
}

.justify-end {
  justify-content: flex-end !important;
}

.discord-body-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 6px 0;
  flex-wrap: wrap;
}

.discord-status-neon {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  max-width: 280px;
  word-break: break-word;
  margin-bottom: 6px;
  line-height: 1.35;
}

.discord-status-quote {
  font-style: italic;
  font-size: 12px;
  padding: 4px 10px;
  border-left: 2px solid rgba(255, 255, 255, 0.25);
  max-width: 280px;
  word-break: break-word;
  margin-bottom: 6px;
  line-height: 1.35;
}

/* Avatar Preset Buttons */
.vip-avatar-preset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.vip-avatar-preset-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #fff;
  transform: translateY(-1px);
}

/* Discord Layout Spacer */
.discord-layout-spacer {
  display: block;
  width: 100%;
  pointer-events: none;
}

/* Interactive Direct Manipulation on Live Preview Card */
.vip-direct-edit-hint {
  font-size: 11px;
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.6);
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 6px;
  padding: 6px 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.vip-card-interactive [contenteditable="true"] {
  cursor: text !important;
  transition: outline 0.15s ease, background 0.15s ease;
  outline: 1px dashed transparent;
  border-radius: 4px;
}

.vip-card-interactive [contenteditable="true"]:hover {
  outline: 1px dashed rgba(56, 189, 248, 0.6) !important;
  background: rgba(56, 189, 248, 0.08) !important;
}

.vip-card-interactive [contenteditable="true"]:focus {
  outline: 1.5px solid #38bdf8 !important;
  background: rgba(0, 0, 0, 0.5) !important;
}

.vip-card-interactive .discord-avatar-wrapper {
  cursor: grab !important;
  transition: filter 0.15s ease;
}

.vip-card-interactive .discord-avatar-wrapper:hover {
  filter: brightness(1.15);
  outline: 1.5px dashed rgba(56, 189, 248, 0.7);
  border-radius: 50%;
}

.vip-card-interactive .discord-about-section,
.vip-card-interactive .discord-eve-stats {
  cursor: grab;
  transition: border-color 0.15s ease;
  position: relative !important;
}

.vip-card-interactive .discord-about-section:hover,
.vip-card-interactive .discord-eve-stats:hover {
  border-color: rgba(56, 189, 248, 0.5) !important;
}

.discord-banner-resize-handle {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 12px;
  cursor: ns-resize;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6));
  border-bottom: 2px dashed rgba(255, 255, 255, 0.3);
  transition: all 0.2s;
}

.discord-banner-resize-handle:hover {
  background: rgba(56, 189, 248, 0.35);
  border-bottom-color: #38bdf8;
}

.discord-banner-resize-handle::after {
  content: '⋯';
  font-size: 16px;
  line-height: 8px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 2px;
}

/* Block Horizontal Width Resize Handle */
.discord-block-resize-handle {
  position: absolute;
  top: 0;
  right: -6px;
  bottom: 0;
  width: 16px;
  cursor: ew-resize !important;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.discord-block-resize-handle::after {
  content: '';
  width: 4px;
  height: 38px;
  background: rgba(56, 189, 248, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.3);
  transition: all 0.15s ease;
}

.discord-block-resize-handle:hover::after,
.discord-block-resize-handle.is-resizing::after {
  background: #38bdf8;
  height: 58px;
  box-shadow: 0 0 12px #38bdf8;
}

.vip-no-banner-badge {
  pointer-events: none;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.bg-gradient-none {
  background: transparent !important;
}


/* ── VIP card ambience effects ─────────────────────────────
   Pure-CSS animated overlays for the profile card. No DOM nodes and no JS
   per particle: each effect is a handful of animated background layers, so
   it stays cheap even with several cards on screen. The layer never eats
   clicks (pointer-events:none), so direct-edit handles keep working. */
.vip-card-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  overflow: hidden;
  border-radius: inherit;
}

/* Snow — soft flakes drifting down */
.vip-card-fx.fx-snow::before,
.vip-card-fx.fx-snow::after {
  content: '';
  position: absolute;
  inset: -100% 0 0 0;
  background-image:
    radial-gradient(2px 2px at 12% 18%, rgba(255,255,255,0.9), transparent),
    radial-gradient(2px 2px at 38% 42%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 64% 12%, rgba(255,255,255,0.85), transparent),
    radial-gradient(2px 2px at 82% 58%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 26% 72%, rgba(255,255,255,0.8), transparent);
  background-size: 260px 260px;
  animation: vip-fx-fall 14s linear infinite;
}
.vip-card-fx.fx-snow::after {
  background-size: 180px 180px;
  opacity: 0.55;
  animation-duration: 9s;
  animation-direction: normal;
}

/* Stars — slow twinkle, no movement */
.vip-card-fx.fx-stars::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 15% 25%, #fff, transparent),
    radial-gradient(1px 1px at 42% 62%, #cfe8ff, transparent),
    radial-gradient(1.5px 1.5px at 70% 30%, #fff, transparent),
    radial-gradient(1px 1px at 88% 70%, #ffe9c4, transparent),
    radial-gradient(1px 1px at 30% 85%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 58% 8%, #cfe8ff, transparent);
  background-size: 100% 100%;
  animation: vip-fx-twinkle 3.4s ease-in-out infinite;
}

/* Embers — warm sparks rising */
.vip-card-fx.fx-embers::before,
.vip-card-fx.fx-embers::after {
  content: '';
  position: absolute;
  inset: 0 0 -100% 0;
  background-image:
    radial-gradient(2px 2px at 20% 90%, rgba(255,146,43,0.95), transparent),
    radial-gradient(1.5px 1.5px at 48% 96%, rgba(255,94,20,0.85), transparent),
    radial-gradient(2px 2px at 72% 88%, rgba(255,190,90,0.9), transparent),
    radial-gradient(1.5px 1.5px at 90% 94%, rgba(255,120,30,0.8), transparent);
  background-size: 220px 220px;
  animation: vip-fx-rise 11s linear infinite;
}
.vip-card-fx.fx-embers::after {
  background-size: 150px 150px;
  opacity: 0.6;
  animation-duration: 7s;
}

/* Matrix — falling green code streaks */
.vip-card-fx.fx-matrix::before {
  content: '';
  position: absolute;
  inset: -100% 0 0 0;
  background-image:
    linear-gradient(180deg, transparent 0%, rgba(0,255,136,0.55) 45%, transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(0,255,136,0.35) 55%, transparent 70%),
    linear-gradient(180deg, transparent 0%, rgba(0,255,136,0.45) 35%, transparent 50%);
  background-size: 3px 120px, 2px 90px, 2px 150px;
  background-position: 12% 0, 47% 0, 78% 0;
  background-repeat: repeat-y;
  animation: vip-fx-fall 5.5s linear infinite;
  opacity: 0.75;
}

/* Holo — sweeping rainbow foil, like a holographic trading card */
.vip-card-fx.fx-holo::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255,0,132,0.16) 38%,
    rgba(0,229,255,0.16) 45%,
    rgba(163,255,0,0.16) 52%,
    transparent 60%
  );
  animation: vip-fx-sheen 6s ease-in-out infinite;
  mix-blend-mode: screen;
}

/* Scanlines — CRT monitor feel */
.vip-card-fx.fx-scanlines::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(0,0,0,0.16) 0px,
    rgba(0,0,0,0.16) 1px,
    transparent 1px,
    transparent 3px
  );
}
.vip-card-fx.fx-scanlines::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 22%;
  background: linear-gradient(180deg, transparent, rgba(120,220,255,0.07), transparent);
  animation: vip-fx-crt 7s linear infinite;
}

@keyframes vip-fx-fall {
  from { transform: translateY(0); }
  to   { transform: translateY(50%); }
}
@keyframes vip-fx-rise {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
@keyframes vip-fx-twinkle {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1; }
}
@keyframes vip-fx-sheen {
  0%, 100% { transform: translateX(-35%); }
  50%      { transform: translateX(35%); }
}
@keyframes vip-fx-crt {
  from { top: -25%; }
  to   { top: 105%; }
}

/* 3D tilt — the card leans toward the cursor */
.discord-card-container.vip-tilt-enabled {
  transition: transform 0.18s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Respect users who asked the OS to reduce motion */
@media (prefers-reduced-motion: reduce) {
  .vip-card-fx::before,
  .vip-card-fx::after {
    animation: none !important;
  }
  .discord-card-container.vip-tilt-enabled {
    transform: none !important;
  }
}

/* ── Steam-style side artwork panels ───────────────────────
   The app content column is capped at 1720px and centred; these sit in the
   leftover margin on each side. Below ~1980px viewport there is not enough
   room for them, so they hide rather than squeeze the content. */
.vip-side-art {
  position: fixed;
  top: 96px;
  bottom: 32px;
  width: min(460px, calc((100vw - 1420px) / 2));
  z-index: 1;
  pointer-events: none;
  background-color: rgba(10, 13, 19, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}
.vip-side-art-left  { left: 10px; }
.vip-side-art-right { right: 10px; }

/* Narrow the content column while side art is on, the way Steam does — at a
   full 1720px the leftover margin is a ~130px sliver that art cannot fill. */
body.vip-has-side-art .app-container {
  max-width: 1400px;
}

@media (max-width: 1660px) {
  .vip-side-art { display: none !important; }
  body.vip-has-side-art .app-container { max-width: 1720px; }
}

/* ── Sub-tabs inside the VIP editor tabs ───────────────────
   The Конструктор and Фон tabs grew long enough that controls were getting
   lost; these split each one into a few shorter panes. */
.vip-subtab-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vip-subtab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 6px 13px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.vip-subtab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
}
.vip-subtab-btn.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.5);
  color: var(--blue-accent);
}

.vip-subtab-content { display: none; }
.vip-subtab-content.active { display: block; }
