/* Premium Room (Upgrade Room) Styles */

.upgrade-room-body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #ffffff;
  color: #334155;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.room-header {
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  padding: 14px 28px;
}

/* Sky Blue Hero Section */
.room-hero {
  background-color: #4fa8e0;
  background: linear-gradient(180deg, #43a3e6 0%, #4facf1 100%);
  color: #ffffff;
  text-align: center;
  padding: 40px 20px 48px;
}

.room-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.room-hero-title {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin: 0 0 10px 0;
  color: #ffffff;
}

.room-hero-subtitle {
  font-size: 13.5px;
  font-weight: 500;
  margin: 0;
  color: #f0f9ff;
  line-height: 1.5;
}

/* Pricing Table Container */
.room-main {
  flex: 1;
  max-width: 1080px;
  width: 100%;
  margin: -10px auto 60px;
  padding: 0 20px;
}

.room-table-container {
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: visible;
  position: relative;
}

.room-comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

/* Column Widths */
.room-comparison-table th.feature-col-header,
.room-comparison-table td.feature-label {
  width: 28%;
  text-align: left;
  padding: 16px 24px;
  font-size: 13.5px;
  color: #475569;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.room-comparison-table td.feature-label {
  background: #ffffff;
}

.feature-sublabel {
  font-size: 11px;
  color: #94a3b8;
}

.tier-col-header {
  width: 24%;
  vertical-align: bottom;
  position: relative;
  padding: 0;
  border-right: 1px solid #e2e8f0;
}

.tier-col-header:last-child {
  border-right: none;
}

/* Pill Badges */
.tier-pill-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.yellow-badge {
  background: #facc15;
  color: #854d0e;
}

.purple-badge {
  background: #c084fc;
  color: #581c87;
}

.green-badge {
  background: #a3e635;
  color: #365314;
}

/* Red Circle Badges */
.tier-circle-badge {
  position: absolute;
  top: 15px;
  right: -16px;
  width: 48px;
  height: 48px;
  background: #ef4444;
  color: #ffffff;
  border-radius: 50%;
  font-size: 9px;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

.tier-circle-badge strong {
  font-size: 10px;
}

/* Header Banners */
.tier-banner {
  padding: 14px 10px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.tier-banner-deluxe {
  background: #1e99e4;
  border-top-left-radius: 6px;
}

.tier-banner-ultimate {
  background: #7cb318;
}

.tier-banner-elite {
  background: #8e44ad;
  border-top-right-radius: 6px;
}

/* Pricing Boxes */
.tier-pricing-box {
  padding: 24px 16px 20px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.deluxe-col .tier-pricing-box {
  background: #f0f9ff;
}

.ultimate-col .tier-pricing-box {
  background: #f7fee7;
}

.elite-col .tier-pricing-box {
  background: #faf5ff;
}

.tier-monthly-price {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
}

.price-period {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.tier-yearly-price {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  margin: 4px 0 16px;
}

.btn-tier-upgrade {
  padding: 8px 28px;
  border-radius: 20px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-tier-upgrade:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.btn-upgrade-deluxe {
  background: #1e99e4;
}

.btn-upgrade-ultimate {
  background: #7cb318;
}

.btn-upgrade-elite {
  background: #8e44ad;
}

/* Table Cells */
.feature-val {
  padding: 14px 16px;
  font-size: 13px;
  color: #334155;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.feature-val:last-child {
  border-right: none;
}

.deluxe-val {
  background: #f8fbfe;
}

.ultimate-val {
  background: #fcfef8;
}

.elite-val {
  background: #fdfaff;
}

.icon-check {
  color: #16a34a;
  font-size: 16px;
  font-weight: 800;
}

.icon-cross {
  color: #dc2626;
  font-size: 15px;
  font-weight: 800;
}

.sub-credit-note {
  font-size: 10px;
  color: #94a3b8;
}

/* Bottom Ticker Bar */
.room-bottom-ticker {
  background-color: #d8b4fe;
  padding: 12px 20px;
  text-align: center;
  color: #581c87;
  font-size: 13.5px;
  margin-top: auto;
}

.room-bottom-ticker strong {
  font-weight: 800;
}

/* Floating Chat Bubble */
.floating-chat-bubble {
  position: fixed;
  bottom: 50px;
  right: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0284c7;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
  transition: transform 0.2s ease;
  z-index: 999;
}

.floating-chat-bubble:hover {
  transform: scale(1.08);
}

/* ==========================================================================
   Mobile Responsiveness for Upgrade Room
   ========================================================================== */
@media (max-width: 768px) {
  .room-main {
    padding: 0 12px;
  }

  .room-hero {
    padding: 28px 14px 34px;
  }

  .room-hero-title {
    font-size: 24px;
  }

  .room-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .room-comparison-table {
    min-width: 620px;
  }
}


/* ==========================================================================
   BUTTON CONTRAST ENHANCEMENTS (Both Light & Dark Mode)
   ========================================================================== */
.btn-tier-upgrade {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 20px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff !important;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-tier-upgrade:hover {
  transform: translateY(-2px);
  opacity: 0.95;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.btn-upgrade-deluxe {
  background: #0284c7 !important;
}

.btn-upgrade-ultimate {
  background: #16a34a !important;
}

.btn-upgrade-elite {
  background: #7c3aed !important;
}

/* ==========================================================================
   DARK MODE ADAPTATIONS
   ========================================================================== */
html[data-theme="dark"] .upgrade-room-body,
html.dark .upgrade-room-body {
  background-color: var(--bg-page);
  color: var(--text-primary);
}

html[data-theme="dark"] .room-header,
html.dark .room-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

html[data-theme="dark"] .room-table-container,
html.dark .room-table-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .room-comparison-table th.feature-col-header,
html[data-theme="dark"] .room-comparison-table td.feature-label,
html.dark .room-comparison-table th.feature-col-header,
html.dark .room-comparison-table td.feature-label {
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

html[data-theme="dark"] .feature-sublabel,
html.dark .feature-sublabel {
  color: var(--text-muted);
}

html[data-theme="dark"] .tier-col-header,
html.dark .tier-col-header {
  border-color: var(--border-subtle);
}

html[data-theme="dark"] .tier-pricing-box,
html.dark .tier-pricing-box {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

html[data-theme="dark"] .deluxe-col .tier-pricing-box,
html.dark .deluxe-col .tier-pricing-box {
  background-color: rgba(2, 132, 199, 0.14);
}

html[data-theme="dark"] .ultimate-col .tier-pricing-box,
html.dark .ultimate-col .tier-pricing-box {
  background-color: rgba(22, 163, 74, 0.14);
}

html[data-theme="dark"] .elite-col .tier-pricing-box,
html.dark .elite-col .tier-pricing-box {
  background-color: rgba(124, 58, 237, 0.14);
}

html[data-theme="dark"] .tier-monthly-price,
html.dark .tier-monthly-price {
  color: var(--text-primary);
}

html[data-theme="dark"] .price-period,
html.dark .price-period {
  color: var(--text-muted);
}

html[data-theme="dark"] .tier-yearly-price,
html.dark .tier-yearly-price {
  color: var(--text-secondary);
}

html[data-theme="dark"] .feature-val,
html.dark .feature-val {
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

html[data-theme="dark"] .deluxe-val,
html.dark .deluxe-val {
  background-color: rgba(2, 132, 199, 0.05);
}

html[data-theme="dark"] .ultimate-val,
html.dark .ultimate-val {
  background-color: rgba(22, 163, 74, 0.05);
}

html[data-theme="dark"] .elite-val,
html.dark .elite-val {
  background-color: rgba(124, 58, 237, 0.05);
}

html[data-theme="dark"] .room-hero,
html.dark .room-hero {
  background: linear-gradient(180deg, #1e3a5f 0%, #0f1f38 100%);
}
