/**
 * Firetalk Member Profile Stylesheet
 * Faithfully reproducing the panoramic subscription banner, level progression,
 * photos gallery, gifts received, and top gifters widgets.
 */

.profile-page-wrapper {
  background-color: #f8fafc;
  min-height: 100vh;
  padding-bottom: 80px;
}

/* ==========================================================================
   PROFILE HEADER & PANORAMIC SUBSCRIPTION BANNER
   ========================================================================== */
.profile-header-card {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.profile-panoramic-banner {
  height: 340px;
  width: 100%;
  position: relative;
  background-color: #1e293b;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-panoramic-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transition: opacity 0.25s ease-in-out;
}

.profile-panoramic-banner img:not([src]),
.profile-panoramic-banner img[src=""] {
  opacity: 0 !important;
}

/* Fallback / Tier Background Themes matching banner edges */
.profile-panoramic-banner[data-tier="prime"] {
  background: #ecd4a4;
}
.profile-panoramic-banner[data-tier="vip"] {
  background: #c5b6e2;
}
.profile-panoramic-banner[data-tier="extreme"] {
  background: #a9cfb0;
}
.profile-panoramic-banner[data-tier="admin"] {
  background: #3b1216;
}

/* Subscription Badge (Top-Right on Banner) */
.banner-sub-pill {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 5;
}

.pill-extreme {
  background: #059669;
  color: #ffffff;
}
.pill-vip {
  background: #9333ea;
  color: #ffffff;
}
.pill-prime {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.45);
}
.pill-basic {
  background: #64748b;
  color: #ffffff;
}
.pill-admin {
  background: #C0392B;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(192, 57, 43, 0.45);
}

.banner-flag-icon {
  position: absolute;
  bottom: 14px;
  right: 20px;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  z-index: 5;
  transition: background 0.2s ease, transform 0.2s ease;
}
.banner-flag-icon:hover {
  background: rgba(0, 0, 0, 0.65);
  transform: scale(1.05);
}

/* User Identity Bar (Below Banner) */
.profile-identity-bar {
  padding: 0 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

.profile-identity-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: -75px;
  z-index: 10;
}

.profile-avatar-stage {
  position: relative;
  display: inline-block;
}

/* Circular Avatar with Glowing Ring */
.profile-avatar-wrapper {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  position: relative;
  border: 4px solid #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  background: #ffffff;
  flex-shrink: 0;
}

.profile-avatar-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-bottom-crown {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border: 2px solid #facc15;
}

/* Avatar Ring Colors by Subscription */
.ring-extreme {
  box-shadow: 0 0 0 4px #059669, 0 8px 24px rgba(5, 150, 105, 0.4);
}
.ring-vip {
  box-shadow: 0 0 0 4px #9333ea, 0 8px 24px rgba(147, 51, 234, 0.4);
}
.ring-prime {
  box-shadow: 0 0 0 4px #f59e0b, 0 8px 24px rgba(245, 158, 11, 0.45);
}
.ring-basic {
  box-shadow: 0 0 0 4px #64748b, 0 8px 24px rgba(100, 116, 139, 0.3);
}
.ring-admin {
  box-shadow: 0 0 0 4px #C0392B, 0 8px 24px rgba(192, 57, 43, 0.45);
}

.profile-online-badge {
  position: absolute;
  bottom: 8px;
  right: -20px;
  background: #ffffff;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
  border: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: var(--shadow-sm);
}

.badge-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}

/* User Text Block (Directly below avatar with vertical accent bar) */
.profile-user-block {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 2px;
}

.profile-accent-line {
  width: 5px;
  border-radius: 4px;
  background-color: var(--nick-accent-color, #16a34a);
  flex-shrink: 0;
}

.profile-user-info-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profile-nickname-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--nick-accent-color, #16a34a);
  margin: 0;
  line-height: 1.25;
  display: block;
}

.profile-demographics-line {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-top: 1px;
}

.profile-meta-line {
  font-size: 12px;
  color: #64748b;
}

.profile-bio-text {
  font-size: 13px;
  color: #475569;
  margin-top: 3px;
  font-style: normal;
}

.profile-interests-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.profile-interest-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 500;
  color: #334155;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.15s ease-in-out;
}

.profile-interest-chip:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
}

.profile-interest-chip .chip-icon {
  font-size: 13px;
  line-height: 1;
}

.empty-state-box {
  padding: 36px 20px;
  text-align: center;
  color: #64748b;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
}

.empty-state-box .empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.empty-state-box .empty-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.empty-state-box .empty-desc {
  font-size: 13px;
  color: #64748b;
}


/* Right Stats & XP Progression Card */
.profile-stats-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
  min-width: 320px;
}

.xp-progress-bar-card {
  background: #fdf5ea;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.xp-progress-bar-card .level-crown-badge {
  height: 22px;
  width: auto;
  max-width: none !important;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.12));
}

.xp-level-badge {
  background: #ea580c;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.xp-remaining-text {
  font-size: 12px;
  font-weight: 600;
  color: #9a3412;
}

/* 3 Counters Row */
.profile-counters-row {
  display: flex;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.profile-counter-col {
  flex: 1;
  padding: 10px 14px;
  text-align: center;
  border-right: 1px solid #e2e8f0;
}
.profile-counter-col:last-child {
  border-right: none;
}

.counter-number {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.counter-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

/* ==========================================================================
   2-COLUMN PROFILE CONTENT
   ========================================================================= */
.profile-grid-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
}

.widget-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.widget-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.widget-view-all {
  font-size: 12px;
  font-weight: 700;
  color: var(--firetalk-primary);
  text-transform: uppercase;
}
.widget-view-all:hover {
  text-decoration: underline;
}

/* Photos Gallery Grid */
.photos-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.photo-gallery-item {
  width: 100%;
  height: 110px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: pointer;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.photo-gallery-item:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
}

/* My Room Widget */
.my-room-placeholder {
  color: #64748b;
  font-size: 14px;
  padding: 8px 0;
}

/* Gifts Received Grid */
.gifts-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gift-entry-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  user-select: none;
}
.gift-entry-card:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

.gift-thumbnail-box {
  width: 50px;
  height: 50px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.gift-thumbnail-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gift-name-label {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}

.gift-cost-pill {
  font-size: 11px;
  font-weight: 700;
  color: #d97706;
  margin-bottom: 8px;
}

.gift-from-line {
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.gift-sender-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
  font-size: 12px;
  font-weight: 700;
}

.gift-sender-nick {
  font-weight: 800;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gift-sender-row .level-crown-badge {
  height: 15px;
  width: auto;
  max-width: none !important;
  flex-shrink: 0;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.gifter-rank-card .level-crown-badge {
  height: 16px;
  width: auto;
  max-width: none !important;
  flex-shrink: 0;
  object-fit: contain;
  margin: 0 auto 6px;
  display: block;
}

/* Top Gifters Widget */
.top-gifters-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1.5px solid #f1f5f9;
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.top-gifters-tab {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 5px 12px;
  border-radius: 20px;
  transition: all 0.2s ease;
  font-family: inherit;
}
.top-gifters-tab:hover {
  color: #0f172a;
  background: #f1f5f9;
}
.top-gifters-tab.active {
  color: #ffffff;
  background: #0f172a;
}

/* 3 Podium Rank Cards in Profile */
.top-gifters-rank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.gifter-rank-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px 8px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.gifter-rank-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

.rank-badge-corner {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #f59e0b;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: var(--radius-xs);
}

.gifter-avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin: 6px auto 8px;
  border: 2px solid #e2e8f0;
  object-fit: cover;
}

.gifter-name-label {
  font-size: 12px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gifter-xp-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.top-gifters-more-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.gifter-more-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.gifter-more-row:hover {
  background: #f1f5f9;
  transform: translateX(3px);
  border-color: #cbd5e1;
}

.gifter-more-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gifter-more-rank {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  width: 24px;
}

.gifter-more-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.gifter-more-name {
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gifter-more-xp {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.show-more-link {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--firetalk-primary);
  text-transform: uppercase;
  margin-top: 14px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
}
.show-more-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   PHOTO LIGHTBOX MODAL
   ========================================================================== */
.photo-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightboxFadeIn 0.2s ease-out;
}

@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 30, 0.90);
  backdrop-filter: blur(8px);
}

.lightbox-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 40px 20px;
}

.lightbox-stage {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-main-img {
  max-width: 86vw;
  max-height: 76vh;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12);
  object-fit: contain;
  user-select: none;
  transition: opacity 0.15s ease;
}

.lightbox-info-bar {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-counter {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.lightbox-btn-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}
.lightbox-btn-close:hover {
  background: rgba(239, 68, 68, 0.85);
  transform: scale(1.08);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}
.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}
.lightbox-btn-prev {
  left: 28px;
}
.lightbox-btn-next {
  right: 28px;
}

/* ==========================================================================
   RESPONSIVENESS
   ========================================================================== */
@media (max-width: 900px) {
  .profile-panoramic-banner {
    height: 260px;
  }
  .profile-identity-bar {
    flex-direction: column;
    gap: 20px;
  }
  .profile-stats-card {
    width: 100%;
    min-width: auto;
  }
  .profile-grid-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .profile-panoramic-banner {
    height: 210px;
  }
}

.btn-report-user-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 5px 12px;
  background: rgba(225, 29, 72, 0.08);
  color: #e11d48;
  border: 1px solid rgba(225, 29, 72, 0.2);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-report-user-action:hover {
  background: #e11d48;
  color: #ffffff;
  border-color: #e11d48;
}

/* Report Modal Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.report-modal-card {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalSlideUp {
  from { transform: translateY(12px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.report-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}
.report-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}
.report-modal-close {
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}
.report-modal-close:hover {
  color: #0f172a;
  background: #e2e8f0;
}
.report-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.report-modal-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}
.report-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.report-form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}
.report-char-count {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
}
.report-char-count.warn {
  color: #e11d48;
}
.report-select,
.report-textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  padding: 10px 12px;
  font-size: 13px;
  color: #0f172a;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}
.report-select:focus,
.report-textarea:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}
.report-textarea {
  resize: vertical;
  min-height: 90px;
}
.report-modal-error {
  font-size: 12px;
  color: #e11d48;
  background: #ffe4e6;
  border: 1px solid #fecdd3;
  padding: 8px 12px;
  border-radius: 6px;
  display: none;
}
.report-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
}
.btn-report-cancel {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-report-cancel:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.btn-report-submit {
  background: #e11d48;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn-report-submit:hover {
  background: #be123c;
}
.btn-report-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Report Success State */
.report-modal-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 24px;
  gap: 14px;
}
.report-success-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.15);
  animation: popSuccess 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popSuccess {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.report-success-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}
.report-success-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
  max-width: 360px;
  margin: 0;
}
.btn-report-done {
  margin-top: 6px;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  min-width: 140px;
}
.btn-report-done:hover {
  background: #0369a1;
  transform: translateY(-1px);
}




/* ==========================================================================
   Universal Avatar Constraint & Alignment Protections
   ========================================================================== */
.profile-avatar-wrapper,
#profile-avatar-wrap {
  width: 140px !important;
  height: 140px !important;
  max-width: 140px !important;
  max-height: 140px !important;
  min-width: 140px !important;
  min-height: 140px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  overflow: visible !important;
}

.profile-avatar-wrapper img,
#profile-avatar-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
}

.level-crown-badge,
#xp-level-badge-img {
  max-width: none !important;
  height: 22px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* ==========================================================================
   Dark Mode Adaptations for Member Profile
   ========================================================================== */
[data-theme="dark"] .profile-page-wrapper {
  background-color: var(--bg-page, #080b12);
  color: var(--text-secondary, #cbd5e1);
}

[data-theme="dark"] .profile-header-card,
[data-theme="dark"] .widget-card {
  background: var(--bg-surface, #101624);
  border-color: var(--border-subtle, #1c2538);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .widget-header {
  border-color: var(--border-subtle, #1c2538);
}

[data-theme="dark"] .widget-title {
  color: var(--text-primary, #f8fafc);
}

[data-theme="dark"] .profile-avatar-wrapper {
  border-color: var(--bg-surface, #101624);
  background: var(--bg-surface, #101624);
}

[data-theme="dark"] .avatar-bottom-crown {
  background: var(--bg-surface, #101624);
  border-color: #eab308;
}

[data-theme="dark"] .profile-online-badge {
  background: var(--bg-surface, #101624);
  border-color: var(--border-subtle, #1c2538);
  color: #10b981;
}

[data-theme="dark"] .profile-demographics-line {
  color: var(--text-secondary, #cbd5e1);
}

[data-theme="dark"] .profile-meta-line,
[data-theme="dark"] .profile-bio-text {
  color: var(--text-muted, #94a3b8);
}

[data-theme="dark"] .profile-interest-chip {
  background: var(--bg-subtle, #161e31);
  border-color: var(--border-subtle, #1c2538);
  color: var(--text-secondary, #cbd5e1);
}

[data-theme="dark"] .profile-interest-chip:hover {
  background: #1e293b;
  color: #f8fafc;
}

[data-theme="dark"] .xp-progress-bar-card {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}

[data-theme="dark"] .xp-remaining-text {
  color: #fbbf24;
}

[data-theme="dark"] .profile-counters-row {
  background: var(--bg-subtle, #161e31);
  border-color: var(--border-subtle, #1c2538);
}

[data-theme="dark"] .profile-counter-col {
  border-color: var(--border-subtle, #1c2538);
}

[data-theme="dark"] .counter-number {
  color: var(--text-primary, #f8fafc);
}

[data-theme="dark"] .counter-label {
  color: var(--text-muted, #94a3b8);
}

[data-theme="dark"] .empty-state-box,
[data-theme="dark"] .my-room-placeholder {
  background: rgba(255, 255, 255, 0.02);
  border-color: #1c2538;
  color: var(--text-muted, #94a3b8);
}

[data-theme="dark"] .empty-state-box .empty-title {
  color: var(--text-primary, #f8fafc);
}

[data-theme="dark"] .top-gifters-tab {
  color: var(--text-muted, #94a3b8);
  background: transparent;
}

[data-theme="dark"] .top-gifters-tab.active {
  color: var(--firetalk-primary, #38bdf8);
  border-color: var(--firetalk-primary, #38bdf8);
}

[data-theme="dark"] .rank-card {
  background: var(--bg-subtle, #161e31);
  border-color: var(--border-subtle, #1c2538);
}

[data-theme="dark"] .rank-card-name {
  color: var(--text-primary, #f8fafc);
}

[data-theme="dark"] .report-modal-card {
  background: var(--bg-surface, #101624);
  border-color: var(--border-subtle, #1c2538);
}

[data-theme="dark"] .report-modal-header,
[data-theme="dark"] .report-modal-footer {
  background: var(--bg-surface, #101624);
  border-color: var(--border-subtle, #1c2538);
}

[data-theme="dark"] .report-select,
[data-theme="dark"] .report-textarea {
  background: #0b0f19;
  border-color: #1c2538;
  color: var(--text-primary, #f8fafc);
}

/* ==========================================================================
   ROOMS I FOLLOW WIDGET
   ========================================================================== */
.followed-rooms-count {
  font-size: 18px;
  font-weight: 500;
  color: #64748b;
  margin-right: 6px;
}

.followed-rooms-label {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.followed-rooms-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.followed-room-card {
  display: block;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.followed-room-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  border-color: #cbd5e1;
  text-decoration: none;
}

.followed-room-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.followed-room-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e293b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.followed-room-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.followed-room-info {
  flex: 1;
  min-width: 0;
}

.followed-room-category {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.followed-room-name {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.followed-room-lock-icon {
  display: inline-flex;
  align-items: center;
  color: #94a3b8;
  margin-top: 3px;
}

.followed-room-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 10px 0 8px;
}

.followed-room-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  flex-wrap: wrap;
}

.followed-room-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.followed-room-stat svg {
  flex-shrink: 0;
}

.followed-status-tag {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
}

.followed-status-tag.live {
  color: #16a34a;
  background: #dcfce7;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.followed-inactive-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 600;
}

.followed-rooms-footer {
  text-align: center;
  padding-top: 14px;
}

.btn-show-more-followed {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  padding: 8px 16px;
  transition: color 0.15s ease;
}

.btn-show-more-followed:hover {
  color: #0284c7;
  text-decoration: underline;
}

[data-theme="dark"] .followed-room-card {
  background: var(--bg-subtle, #161e31);
  border-color: var(--border-subtle, #1c2538);
}

[data-theme="dark"] .followed-room-name {
  color: var(--text-primary, #f8fafc);
}

[data-theme="dark"] .followed-rooms-label {
  color: var(--text-primary, #f8fafc);
}

[data-theme="dark"] .followed-room-divider {
  background: var(--border-subtle, #1c2538);
}

