/**
 * Firetalk Room Profile (DisplayGroupDetails.wmt) Stylesheet
 * Faithfully matches Paltalk Room Profile design:
 * - Cover banner with tier pill badge
 * - Tier-colored avatar border and room title accents
 * - Action buttons: Enter Room, Report, Share
 * - 4 Key Stats: Gifts Sent, Gifts Received, Profile Views, Level progress capsule
 * - Top Gifters tabs & podium with Show More toggle
 * - Recent Reviews with reviewer badges and comments
 * - Gifts Received horizontal carousel
 * - 4-Column Followers directory
 */

:root {
  --tier-basic: #64748b;
  --tier-deluxe: #0284c7;
  --tier-extreme: #16a34a;
  --tier-golden: #f59e0b;
  --tier-elite: #8b5cf6;
  --tier-ultimate: #84cc16;
  
  --tier-active-color: #16a34a;
  --tier-active-bg: #f0fdf4;
}

/* Tier Variants */
.tier-basic {
  --tier-active-color: #64748b;
  --tier-active-bg: #f8fafc;
}
.tier-deluxe {
  --tier-active-color: #0284c7;
  --tier-active-bg: #f0f9ff;
}
.tier-extreme {
  --tier-active-color: #16a34a;
  --tier-active-bg: #f0fdf4;
}
.tier-golden {
  --tier-active-color: #d97706;
  --tier-active-bg: #fffbeb;
}
.tier-elite {
  --tier-active-color: #7c3aed;
  --tier-active-bg: #faf5ff;
}
.tier-ultimate {
  --tier-active-color: #65a30d;
  --tier-active-bg: #f7fee7;
}
.tier-help {
  --tier-active-color: #C0392B;
  --tier-active-bg: #fef2f2;
}

.room-details-container {
  max-width: 1060px;
  margin: 28px auto 60px;
  padding: 0 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
}

/* 1. Header Banner & Actions */
.room-banner-card {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  margin-bottom: 24px;
}

.room-cover-banner {
  height: 200px;
  width: 100%;
  position: relative;
  background: #1e293b;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: background-image 0.2s ease, height 0.2s ease;
}

.room-tier-badge {
  position: absolute;
  top: 14px;
  right: 18px;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #ffffff;
  text-transform: uppercase;
  background: var(--tier-active-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.room-banner-actions {
  position: absolute;
  bottom: 14px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 50 !important;
  pointer-events: auto !important;
}

.btn-enter-room {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #0f172a;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 51;
}

.btn-enter-room:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.btn-follow-room {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #e11d48;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid #e11d48;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.12);
  transition: all 0.2s ease;
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 51;
  user-select: none;
}

.btn-follow-room:hover {
  background: #fff1f2;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.25);
}

.btn-follow-room.following {
  background: #e11d48 !important;
  color: #ffffff !important;
  border-color: #e11d48 !important;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.3);
}

.btn-follow-room.following:hover {
  background: #be123c !important;
  border-color: #be123c !important;
  box-shadow: 0 4px 12px rgba(190, 18, 60, 0.4);
}

.btn-icon-action {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #475569;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-icon-action:hover {
  color: #0f172a;
  background: #f8fafc;
  transform: translateY(-1px);
}

.room-header-content {
  position: relative;
  padding: 20px 24px 24px;
}

.room-avatar-overlap {
  position: absolute;
  top: -60px;
  left: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
}

.room-avatar-img {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  object-fit: cover;
  background: #ffffff;
  border: 4px solid var(--tier-active-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.room-online-pill {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #16a34a;
  background: #ffffff;
  padding: 2px 10px;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid #e2e8f0;
}

.dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* 2. Room Info Row & Owner Card */
.room-meta-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-left: 128px;
}

.room-primary-info {
  flex: 1;
}

.room-breadcrumbs {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.room-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.room-color-accent-bar {
  width: 5px;
  height: 28px;
  border-radius: 4px;
  background-color: var(--tier-active-color);
}

.room-title-heading {
  font-size: 26px;
  font-weight: 800;
  color: var(--tier-active-color);
  margin: 0;
  line-height: 1.2;
}

.room-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #475569;
  margin-bottom: 12px;
}

.stars-score {
  color: #f59e0b;
  font-size: 15px;
  letter-spacing: 1px;
}

.rating-score-num {
  font-weight: 700;
  color: #1e293b;
  margin-left: 2px;
}

.rating-sep {
  color: #cbd5e1;
}

.room-desc-text {
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
  margin: 0;
  max-width: 600px;
}

/* Owner Card */
.room-owner-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  min-width: 210px;
}

.owner-card-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.owner-card-body {
  display: flex;
  align-items: center;
  gap: 10px;
}

.owner-avatar-wrap {
  position: relative;
  width: 38px;
  height: 38px;
}

.owner-avatar-link {
  display: block;
  text-decoration: none;
}

.owner-avatar-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  transition: opacity 0.15s ease;
}

.owner-avatar-link:hover .owner-avatar-img {
  opacity: 0.85;
}

.owner-flag-badge {
  display: none !important;
}

.owner-info-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.owner-crown-img {
  height: 20px;
  width: auto;
  vertical-align: middle;
}

.owner-nickname-link {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-nickname-link:hover {
  text-decoration: underline;
}

/* 3. 4 Stats Boxes */
.room-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 2fr;
  gap: 16px;
  margin-top: 24px;
}

.stat-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-box-num {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-box-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.stat-box-level {
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 14px 18px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.level-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.level-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e11d48;
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 800;
}

.level-xp-needed {
  font-size: 13px;
  font-weight: 600;
  color: #9f1239;
}

.level-progress-track {
  margin-top: 8px;
  width: 100%;
  height: 6px;
  background: rgba(225, 29, 72, 0.15);
  border-radius: 9999px;
  overflow: hidden;
}

.level-progress-bar {
  height: 100%;
  background: #e11d48;
  border-radius: 9999px;
  transition: width 0.5s ease;
}

/* 4. Top Gifters & Advertisement Section */
.top-gifters-ad-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.card-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.card-header-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.filter-tab-buttons {
  display: flex;
  gap: 16px;
}

.tab-btn {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  padding: 4px 0;
  position: relative;
}

.tab-btn.active {
  color: #0f172a;
  font-weight: 700;
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -13px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #0f172a;
}

/* Top Gifters Podium Cards */
.top-gifters-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.gifter-card {
  display: block;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 10px 12px;
  text-align: center;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gifter-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.09);
  border-color: #cbd5e1;
}

.gifter-card:hover .gifter-name {
  color: #0284c7 !important;
  text-decoration: underline;
}

.gifter-card:hover .gifter-avatar {
  transform: scale(1.05);
  border-color: #0284c7;
}

.gifter-rank-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.rank-1st { background: #fef08a; color: #854d0e; }
.rank-2nd { background: #e2e8f0; color: #475569; }
.rank-3rd { background: #fed7aa; color: #9a3412; }

.gifter-avatar-link {
  display: block;
  width: 58px;
  height: 58px;
  margin: 0 auto 8px;
  text-decoration: none;
  cursor: pointer;
}

.gifter-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  display: block;
  border: 2px solid #e2e8f0;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.gifter-avatar-link:hover .gifter-avatar {
  transform: scale(1.05);
  border-color: #0284c7;
}

.gifter-name {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.gifter-name:hover {
  color: #0284c7 !important;
  text-decoration: underline;
}

.gifter-xp-pill {
  display: inline-block;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}

.btn-show-more-gifters {
  display: block;
  width: 100%;
  text-align: center;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 700;
  color: #0284c7;
  cursor: pointer;
  border: none;
  background: none;
  letter-spacing: 0.5px;
}

.btn-show-more-gifters:hover {
  text-decoration: underline;
}

/* Advertisement Card */
.ad-box-card {
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background: #fafafa;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 16px;
}

.ad-notice-text {
  font-size: 10px;
  letter-spacing: 0.8px;
  color: #94a3b8;
  text-transform: uppercase;
}

/* 5. Recent Reviews Section */
.reviews-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

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

.view-all-link {
  font-size: 12px;
  font-weight: 700;
  color: #0284c7;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.view-all-link:hover {
  text-decoration: underline;
}

.review-item {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 18px;
  margin-bottom: 18px;
}

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

.review-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.reviewer-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviewer-avatar-link {
  display: block;
  text-decoration: none;
}

.reviewer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  transition: opacity 0.15s ease;
}

.reviewer-avatar-link:hover .reviewer-avatar {
  opacity: 0.85;
}

.reviewer-details {
  display: flex;
  flex-direction: column;
}

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

.reviewer-flag {
  display: none !important;
}

.reviewer-crown {
  height: 18px;
  width: auto;
}

.reviewer-nickname {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.reviewer-nickname:hover {
  color: #0284c7 !important;
  text-decoration: underline;
}

.reviewer-demographic {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.reviewer-rating-date {
  text-align: right;
}

.tag-newbie {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #64748b;
  margin-right: 12px;
}

.review-stars {
  color: #f59e0b;
  font-size: 13px;
  letter-spacing: 1px;
}

.review-date {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.review-feedback-box {
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
}

.feedback-good, .feedback-bad {
  margin-bottom: 4px;
}

.feedback-good:last-child, .feedback-bad:last-child {
  margin-bottom: 0;
}

.feedback-label {
  font-weight: 700;
  color: #0f172a;
}

.reviews-faq-note {
  margin-top: 20px;
  padding: 12px 16px;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 12px;
  color: #475569;
}

.reviews-faq-note a {
  color: #0284c7;
  font-weight: 600;
  text-decoration: none;
}

.reviews-faq-note a:hover {
  text-decoration: underline;
}

/* 6. Gifts Received Carousel */
.gifts-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 16px;
}

.carousel-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  z-index: 3;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: #f8fafc;
  color: #0f172a;
}

.gifts-scroll-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px 12px;
  flex: 1;
  scrollbar-width: none;
}

.gifts-scroll-track::-webkit-scrollbar {
  display: none;
}

.gift-carousel-tile {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 12px 10px;
  min-width: 105px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  flex-shrink: 0;
}

.gift-tile-icon {
  font-size: 32px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.gift-tile-name {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
}

.gift-tile-price {
  font-size: 11px;
  font-weight: 700;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 6px;
}

.gift-tile-from {
  font-size: 9px;
  color: #94a3b8;
  text-transform: uppercase;
}

.gift-tile-sender {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #0284c7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.gift-tile-sender:hover {
  text-decoration: underline;
}

/* 7. Followers Directory Section */
.followers-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
}

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

.follower-card {
  display: block;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  cursor: pointer;
}

.follower-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.09);
  border-color: #cbd5e1;
}

.follower-card:hover .follower-nickname {
  text-decoration: underline;
  color: #0284c7 !important;
}

.follower-card:hover .follower-avatar {
  transform: scale(1.05);
}

.follower-card-cover {
  height: 64px;
  background: #e2e8f0;
  background-size: cover;
  background-position: center;
}

.follower-avatar-wrap {
  margin-top: -30px;
  position: relative;
  display: inline-block;
}

.follower-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  object-fit: cover;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.15s ease;
}

.follower-flag {
  display: none !important;
}

.follower-card-body {
  padding: 8px 10px 14px;
}

.follower-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 4px;
}

.follower-crown {
  height: 16px;
  width: auto;
  flex-shrink: 0;
}

.follower-nickname {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 130px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color 0.15s ease;
}

.follower-nickname:hover {
  text-decoration: underline;
  color: #0284c7 !important;
}

.follower-demographic {
  font-size: 11px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 900px) {
  .room-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .top-gifters-ad-grid {
    grid-template-columns: 1fr;
  }
  .followers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .room-meta-layout {
    flex-direction: column;
    padding-left: 0;
    margin-top: 50px;
  }
  .room-avatar-overlap {
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
  }
  .room-stats-grid {
    grid-template-columns: 1fr;
  }
  .followers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .room-banner-actions {
    position: static;
    margin-top: 14px;
    justify-content: center;
  }
}

/* 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);
}

/* Enhanced Top Gifters Styling */
.gifter-name-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
  width: 100%;
}

.gifter-name-wrap .gifter-name {
  margin-bottom: 0;
  max-width: 80px;
}

.gifter-crown-badge {
  height: 16px;
  width: auto;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Reviews Header and Actions */
.reviews-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviews-count-badge {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
}

.reviews-action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-write-review {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-write-review:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.btn-clear-reviews {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-clear-reviews:hover {
  background: #fef2f2;
  border-color: #f87171;
  color: #b91c1c;
}

/* Reviews Item Enhancements */
.reviewer-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.reviewer-crown {
  height: 18px;
  width: auto;
  vertical-align: middle;
  flex-shrink: 0;
}

.reviewer-nickname {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s;
}

.reviewer-nickname:hover {
  opacity: 0.85;
  text-decoration: underline;
}

/* Review Modal & Confirmation Modal */
.review-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.review-modal-content {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-modal-confirm {
  max-width: 420px;
}

@keyframes modalPopIn {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.review-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #f1f5f9;
}

.review-modal-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fef3c7;
  color: #d97706;
  font-size: 16px;
}

.review-modal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}

.review-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s;
}

.review-modal-close:hover {
  color: #0f172a;
}

.review-modal-body {
  padding: 20px 22px;
}

.review-modal-sub {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 16px;
  line-height: 1.5;
}

.review-form-group {
  margin-bottom: 16px;
}

.review-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.required-asterisk {
  color: #ef4444;
}

.star-rating-picker {
  display: flex;
  align-items: center;
  gap: 4px;
}

.star-picker-btn {
  background: none;
  border: none;
  font-size: 26px;
  color: #cbd5e1;
  cursor: pointer;
  padding: 2px 3px;
  transition: transform 0.1s ease, color 0.15s ease;
  line-height: 1;
}

.star-picker-btn.active {
  color: #f59e0b;
}

.star-picker-btn:hover {
  transform: scale(1.2);
}

.star-rating-label {
  margin-left: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #b45309;
}

.review-form-textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.review-form-textarea:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.review-modal-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 12px;
}

.review-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
}

.btn-review-cancel {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-review-cancel:hover {
  background: #f1f5f9;
}

.btn-review-submit {
  background: #0284c7;
  border: none;
  color: #ffffff;
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-review-submit:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

.btn-review-delete {
  background: #dc2626;
  border: none;
  color: #ffffff;
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-review-delete:hover {
  background: #b91c1c;
}

/* ==========================================================================
   Universal Theme Integration for Room Details
   ========================================================================== */
.room-details-container {
  color: var(--text-primary);
}

.room-banner-card,
.room-details-section,
.room-profile-subcard,
.podium-card,
.review-card,
.follower-card,
.stats-capsule-card,
.review-modal-card {
  background: var(--bg-surface) !important;
  border-color: var(--border-subtle) !important;
  color: var(--text-primary) !important;
}

.room-details-section-title,
.section-title,
.room-info-title,
.review-card-author,
.follower-card-name,
.stat-value {
  color: var(--text-primary) !important;
}

.room-info-desc,
.room-meta-item,
.review-card-text,
.stat-label,
.follower-card-meta {
  color: var(--text-secondary) !important;
}

.tabs-nav-btn {
  color: var(--text-secondary) !important;
  border-bottom-color: transparent !important;
}

.tabs-nav-btn:hover {
  color: var(--text-primary) !important;
  background: var(--bg-surface-hover) !important;
}

.tabs-nav-btn.active {
  color: var(--primary-color) !important;
  border-bottom-color: var(--primary-color) !important;
  background: var(--bg-surface) !important;
}

.review-modal-footer {
  background: var(--bg-surface-elevated) !important;
  border-color: var(--border-subtle) !important;
}

.review-form-textarea {
  background: var(--bg-surface-elevated) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-subtle) !important;
}

.btn-review-cancel {
  background: var(--bg-surface-elevated) !important;
  color: var(--text-secondary) !important;
  border-color: var(--border-strong) !important;
}

.btn-review-cancel:hover {
  background: var(--bg-surface-hover) !important;
  color: var(--text-primary) !important;
}


