/* =============================================================
   VEIL — Profile Card (Cover-forward Artist Card)
   Full cover photo, avatar in corner, "more" expandable section
   XP / streak / multiplier in monochrome white/black theme
   ============================================================= */

/* ── MODAL OVERLAY ──────────────────────────────────────────── */
.veil-profile-modal {
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px !important;
}

/* ── CARD ───────────────────────────────────────────────────── */
.veil-profile-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: 94vh;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
  animation: veilProfileCardIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes veilProfileCardIn {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Desktop: wider card */
@media (min-width: 1024px) {
  .veil-profile-modal {
    padding: 24px;
  }
  .veil-profile-card {
    max-width: 420px;
    max-height: 90vh;
  }
}

/* ── CLOSE BUTTON ───────────────────────────────────────────── */
.veil-profile-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 30;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.veil-profile-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.08);
}

/* ── SETTINGS BUTTON (left side on cover) ────────────────────── */
.veil-profile-settings-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 30;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.veil-profile-settings-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.08) rotate(45deg);
}

/* ── "MORE" BUTTON (top-right area below close, on cover) ───── */
.veil-profile-more-btn {
  position: absolute;
  top: 14px;
  right: 52px;
  z-index: 30;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.veil-profile-more-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.08);
}

.veil-profile-more-btn.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ── COVER IMAGE ────────────────────────────────────────────── */
.veil-profile-cover {
  position: relative;
  width: 100%;
  height: 260px;
  background: linear-gradient(145deg, #111 0%, #0a0a0a 40%, #1a1a1a 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Full cover overlay — subtle at top, dark at bottom for text readability */
.veil-profile-cover-fade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.2) 30%,
    rgba(0,0,0,0.5) 55%,
    rgba(0,0,0,0.8) 75%,
    rgba(0,0,0,0.92) 100%
  );
  z-index: 1;
}

/* Cover edit camera button (own profile only) */
.veil-cover-edit-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  opacity: 0;
}

.veil-profile-cover:hover .veil-cover-edit-btn {
  opacity: 1;
}

.veil-cover-edit-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

@media (min-width: 1024px) {
  .veil-profile-cover { height: 280px; }
}

/* ── AVATAR (on top of name, left-aligned) ─────────────────── */
.veil-profile-avatar-top-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 20px;
  margin-top: -30px;  /* overlap cover bottom edge */
  margin-bottom: 8px;
  z-index: 10;
  position: relative;
}

/* Tight anchor around avatar + badge so badge positions relative to avatar */
.veil-profile-avatar-anchor {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.veil-profile-avatar-inline {
  width: 68px;
  height: 68px;
  border-radius: 9999px;
  border: 3px solid #000000;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.veil-profile-avatar-inline:hover {
  box-shadow: 0 2px 16px rgba(255, 255, 255, 0.08);
}

@media (min-width: 1024px) {
  .veil-profile-avatar-inline {
    width: 72px;
    height: 72px;
  }
  .veil-profile-avatar-top-wrap {
    margin-top: -34px;
  }
}

/* Level badge — top-right of avatar (combined, WHITE/BLACK theme) */
.veil-profile-level-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 3px;
  border-radius: 9999px;
  background: #ffffff;
  color: #000000;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #000000;
  box-shadow: 0 1px 6px rgba(255, 255, 255, 0.12);
  z-index: 12;
}

@media (min-width: 1024px) {
  .veil-profile-level-badge {
    min-width: 20px;
    height: 20px;
    font-size: 9px;
  }
}

/* ── IDENTITY ───────────────────────────────────────────────── */
.veil-profile-identity {
  padding: 0 20px 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Name column — left-aligned below avatar */
.veil-profile-name-col {
  width: 100%;
  min-width: 0;
  text-align: left;
}

.veil-profile-name {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  justify-content: flex-start;
}

.veil-profile-name .verified-badge {
  font-size: 14px;
}

.veil-profile-handle {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 1px;
  text-align: left;
}

/* Sub-meta: website + location + joined below handle, small, left-aligned */
.veil-profile-sub-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.veil-profile-sub-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: rgba(255, 255, 255, 0.3);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 500;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.veil-profile-sub-meta-item i {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.veil-profile-sub-meta-item a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.veil-profile-sub-meta-item a:hover {
  color: #fff;
}

.veil-profile-sub-meta-dot {
  color: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  line-height: 1;
}

/* Follow row — inline followers/following */
.veil-profile-follow-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  justify-content: flex-start;
}

.veil-profile-follow-count {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: color 0.2s;
}

.veil-profile-follow-count:hover {
  color: rgba(255, 255, 255, 0.75);
}

.veil-profile-follow-count strong {
  color: #ffffff;
  font-weight: 700;
}

.veil-profile-follow-dot {
  color: rgba(255, 255, 255, 0.15);
  font-size: 14px;
  line-height: 1;
}

/* ── XP BAR (White/Black Monochrome) ─────────────────────────── */
.veil-profile-xp-section {
  padding: 12px 20px 0;
  margin-top: 10px;
}

.veil-profile-xp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.veil-profile-xp-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.veil-profile-xp-value {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
}

.veil-profile-xp-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  overflow: hidden;
}

.veil-profile-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), #ffffff);
  border-radius: 9999px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

/* ── BADGES (Streak + Multiplier — Dark Monochrome) ──────────── */
.veil-profile-badges {
  display: flex;
  gap: 6px;
  justify-content: flex-start;
  padding: 10px 20px 0;
  flex-wrap: wrap;
}

.veil-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid;
}

.veil-badge-streak {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
}

.veil-badge-streak i {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}

.veil-badge-streak.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  animation: veilStreakPulse 2.5s infinite;
}

.veil-badge-streak.active i {
  color: #ffffff;
}

@keyframes veilStreakPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
  50% { box-shadow: 0 0 10px 1px rgba(255, 255, 255, 0.08); }
}

.veil-badge-multiplier {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
}

.veil-badge-multiplier i {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
}

.veil-badge-multiplier.boosted {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.veil-badge-multiplier.boosted i {
  color: #ffffff;
}

/* ── "MORE" EXPANDABLE SECTION (bio only) ───────────────────── */
.veil-profile-more-section {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.3s ease;
  opacity: 0;
  padding: 0 20px;
}

.veil-profile-more-section.open {
  max-height: 200px;
  opacity: 1;
  padding: 8px 20px 0;
}

.veil-profile-bio {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  text-align: left;
}

/* ── ACTION BUTTONS ─────────────────────────────────────────── */
.veil-profile-actions {
  display: flex;
  gap: 8px;
  padding: 12px 20px 0;
}

.veil-profile-follow-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
}

.veil-profile-follow-btn.follow {
  background: #ffffff;
  color: #000000;
}

.veil-profile-follow-btn.follow:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.12);
}

.veil-profile-follow-btn.following {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.veil-profile-follow-btn.following:hover {
  background: rgba(255, 255, 255, 0.04);
}

.veil-profile-edit-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.veil-profile-edit-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* ── TABS ───────────────────────────────────────────────────── */
.veil-profile-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 12px;
}

.veil-profile-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.veil-profile-tab:hover {
  color: rgba(255, 255, 255, 0.55);
}

.veil-profile-tab.active {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* ── CONTENT GRID ───────────────────────────────────────────── */
.veil-profile-content {
  padding: 12px 16px 16px;
  overflow-y: auto;
  flex: 1;
}

.veil-profile-art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.veil-profile-art-grid .profile-art-item {
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.veil-profile-art-grid .profile-art-item:hover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.veil-profile-art-grid .profile-art-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 5px;
  opacity: 0;
  transition: opacity 0.15s;
  font-size: 9px;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}

.veil-profile-art-grid .profile-art-item:hover .profile-art-overlay {
  opacity: 1;
}

/* ── EMPTY STATE ────────────────────────────────────────────── */
.veil-profile-content .empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 16px;
  color: rgba(255, 255, 255, 0.25);
}

.veil-profile-content .empty-state i {
  font-size: 26px;
  margin-bottom: 8px;
  display: block;
}

.veil-profile-content .empty-state p {
  font-size: 12px;
  margin: 0;
}

/* ── LIGHT THEME ────────────────────────────────────────────── */
[data-theme="light"] .veil-profile-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .veil-profile-cover {
  background: linear-gradient(145deg, #f0f0f0 0%, #e8e8e8 40%, #d8d8d8 100%);
}

[data-theme="light"] .veil-profile-sub-meta-item {
  color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .veil-profile-sub-meta-item i {
  color: rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .veil-profile-sub-meta-item a {
  color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .veil-profile-sub-meta-item a:hover {
  color: #111;
}

[data-theme="light"] .veil-profile-sub-meta-dot {
  color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .veil-profile-cover-fade {
  background: linear-gradient(to bottom,
    rgba(255,255,255,0.15) 0%,
    rgba(255,255,255,0.2) 30%,
    rgba(255,255,255,0.5) 55%,
    rgba(255,255,255,0.8) 75%,
    rgba(255,255,255,0.92) 100%
  );
}

[data-theme="light"] .veil-profile-avatar-inline {
  border-color: #ffffff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .veil-profile-level-badge {
  background: #000000;
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .veil-profile-name {
  color: #111111;
}

[data-theme="light"] .veil-profile-handle {
  color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .veil-profile-follow-count {
  color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .veil-profile-follow-count strong {
  color: #111111;
}

[data-theme="light"] .veil-profile-follow-dot {
  color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .veil-profile-bio {
  color: rgba(0, 0, 0, 0.55);
}


[data-theme="light"] .veil-profile-xp-label {
  color: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .veil-profile-xp-value {
  color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .veil-profile-xp-bar {
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .veil-profile-xp-fill {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.5), #000000);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .veil-badge-streak {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .veil-badge-streak i {
  color: rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .veil-badge-streak.active {
  background: rgba(0, 0, 0, 0.07);
  border-color: rgba(0, 0, 0, 0.18);
  color: #111;
}

[data-theme="light"] .veil-badge-streak.active i {
  color: #111;
}

[data-theme="light"] .veil-badge-multiplier {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .veil-badge-multiplier i {
  color: rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .veil-badge-multiplier.boosted {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.2);
  color: #111;
}

[data-theme="light"] .veil-badge-multiplier.boosted i {
  color: #111;
}

[data-theme="light"] .veil-profile-follow-btn.follow {
  background: #111111;
  color: #ffffff;
}

[data-theme="light"] .veil-profile-follow-btn.follow:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .veil-profile-follow-btn.following {
  color: rgba(0, 0, 0, 0.55);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .veil-profile-edit-btn {
  background: rgba(0, 0, 0, 0.04);
  color: #111111;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .veil-profile-tab {
  color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .veil-profile-tab:hover {
  color: rgba(0, 0, 0, 0.55);
}

[data-theme="light"] .veil-profile-tab.active {
  color: #111111;
  border-bottom-color: #111111;
}

[data-theme="light"] .veil-profile-close,
[data-theme="light"] .veil-profile-settings-btn,
[data-theme="light"] .veil-profile-more-btn {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.08);
  color: #111;
}

[data-theme="light"] .veil-profile-close:hover,
[data-theme="light"] .veil-profile-settings-btn:hover,
[data-theme="light"] .veil-profile-more-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .veil-profile-more-btn.active {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .veil-cover-edit-btn {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .veil-cover-edit-btn:hover {
  background: rgba(255, 255, 255, 0.85);
  color: #111;
}

/* ── XP TOAST NOTIFICATION (Monochrome theme) ───────────────── */
.veil-xp-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: veilXpToastIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: none;
}

.veil-xp-toast.hiding {
  animation: veilXpToastOut 0.3s ease-in forwards;
}

@keyframes veilXpToastIn {
  from { opacity: 0; transform: translateY(-16px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes veilXpToastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-10px) scale(0.95); }
}

.veil-xp-toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #000000;
  flex-shrink: 0;
}

.veil-xp-toast-text {
  display: flex;
  flex-direction: column;
}

.veil-xp-toast-amount {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.veil-xp-toast-action {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .veil-xp-toast {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  color: #111;
}

[data-theme="light"] .veil-xp-toast-icon {
  background: #000000;
  color: #ffffff;
}

[data-theme="light"] .veil-xp-toast-amount {
  color: #111;
}

[data-theme="light"] .veil-xp-toast-action {
  color: rgba(0, 0, 0, 0.35);
}

/* ── EDIT MODAL: Cover Photo Upload ─────────────────────────── */
.cover-upload-section {
  text-align: center;
  margin-bottom: 16px;
}

.cover-upload-preview {
  width: 100%;
  height: 120px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  overflow: hidden;
}

.cover-upload-preview:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.04);
}

.cover-preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.3);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 500;
}

.cover-preview-placeholder i {
  font-size: 20px;
}

.cover-upload-btn {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cover-upload-btn:hover {
  color: #fff;
}

[data-theme="light"] .cover-upload-preview {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .cover-upload-preview:hover {
  border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .cover-preview-placeholder {
  color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .cover-upload-btn {
  color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .cover-upload-btn:hover {
  color: #111;
}
