/* Profile Page Styles v2 */
#profile-section {
  display: block; /* Changed from flex to simplify flow */
  margin-left: var(--sidebar-width) !important;
  width: auto !important;
  background-color: var(--bg-paper);
  overflow: visible; /* Ensure content doesn't clip */
  height: auto;
  min-height: 0;
  z-index: 10; /* Lowered z-index */
}

#profile-section .scrollable-content {
  padding-bottom: 160px; /* Specific padding for profile footer separation */
}

/* Titles */
.section-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 24px 0 12px;
}

/* 1. Identity Card */
.identity-card {
  display: flex;
  flex-direction: column; /* Stack vertically for focus */
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  gap: 16px;
  border: 1px solid var(--glass-border);
  background: white; /* Clean paper look */

  /* Override glass-panel defaults */
  opacity: 1 !important;
  transform: none !important;
  min-height: auto !important;
  position: relative !important;
  pointer-events: auto !important;
}

.verification-banner {
  margin-top: 8px;
  width: 100%;
  animation: fadeIn 0.5s ease-out;
}

.verification-content {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 10px 15px;
  border-radius: 12px;
}

.verification-text {
  font-size: 0.9rem;
  color: #b45309;
  flex: 1;
  text-align: left;
}

.btn-verify {
  background: #f59e0b;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-verify:hover {
  background: #d97706;
  transform: translateY(-1px);
}

body.dark-mode .verification-content {
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

body.dark-mode .verification-text {
  color: #fbbf24;
}

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

.profile-avatar-large {
  width: 80px;
  height: 80px;
  /* Light Mode: Use a lighter gray/blue (inverted from original dark slate) */
  background-color: #e2e8f0;
  color: var(--text-main); /* Dark text */
  font-family: var(--font-paper);
  font-size: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.profile-identity h2 {
  font-size: 1.8rem;
  color: var(--text-main);
  margin: 0;
  line-height: 1.2;
}

/* Rank Display Styles */
.rank-display {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px; /* Constrain width */
  margin-top: 8px;
}

.rank-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.rank-icon {
  font-size: 1.8rem;
}

.rank-title {
  font-family: var(--font-header); /* Outfit */
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rank-progress-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.rank-progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(0, 0, 0, 0.1); /* Track */
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

/* Dark mode track */
[data-theme="dark"] .rank-progress-bar {
  background: rgba(255, 255, 255, 0.1);
}

.rank-progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-main),
    var(--secondary-main)
  );
  border-radius: 10px;
  transition: width 0.5s ease-out;
}

.rank-details-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.rank-level {
  font-weight: 700;
  color: var(--primary-main);
}

/* 2. Stats Grid */
/* 2. Stats Grid */
.stats-grid {
  display: grid;
  gap: 12px;
  width: 100%;
}

.stats-grid.overview {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 24px;
}

.stats-grid.details {
  grid-template-columns: repeat(2, 1fr);
}

/* Bug Report Button */
.btn-profile-action {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  padding: 10px 20px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-profile-action:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(243, 120, 37, 0.2);
}

.btn-profile-action:active {
  transform: translateY(0);
}

/* Detail Box (Mini Card) */
.stat-detail-box {
  background: var(--bg-paper);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.detail-label {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.8rem;
}

.detail-value {
  color: var(--text-main);
  font-weight: 700;
}

.detail-multi {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.detail-sub {
  font-size: 0.7rem;
  color: var(--error);
}

.stat-box {
  background: var(--bg-paper);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

/* 3. Heatmap */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 12px;
}

.calendar-header .section-title {
  margin: 0; /* Override default margin */
}

/* Base button is already define, add small var if needed... using icon-btn style from header */
.icon-btn-small {
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
}

/* Calendar Heatmap Container */
.calendar-heatmap {
  --cell-size: 36px;
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  padding: 0 16px 16px 16px !important;
  border-radius: 16px;
  background-color: var(--bg-card) !important;
  border: 1px solid var(--glass-border);
  box-shadow: var(--paper-shadow); /* Add shadow */

  /* Force Visibility */
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
  visibility: visible !important;
  position: relative !important; /* Prevent absolute overlap */

  width: 100%;
  margin: 0 !important;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, var(--cell-size)); /* Fixed Emoji Size */
  justify-content: center;
  gap: 3px; /* Tightest gap */
  width: 100%;
  margin: 10px 0;
  /* Fixed Height for 6 weeks (7 rows * var(--cell-size) + 6 gaps * 3px) */
  min-height: calc(7 * var(--cell-size) + 18px);
  align-content: start; /* Pack rows at top, don't spread */
}

.calendar-day {
  aspect-ratio: 1;
  width: var(--cell-size);
  min-height: var(--cell-size);
  border-radius: 3px; /* Sharp "Pixel" corners */
  background: #cbd5e1; /* Solid Opaque Gray (Slate 300) */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.75rem;
  color: #64748b; /* Muted Text */
  font-weight: 700;
  border: none;
  position: relative;
}

.calendar-day.empty {
  background: transparent; /* Filler for start of month */
}

/* Header Day Style */
.calendar-day.header-day {
  background: transparent !important;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 0;
  cursor: default;
}

/* Status Colors - Solid Blocks with superimposed text */
.calendar-day.win {
  background: #4ade80; /* Green */
  color: #064e3b; /* Dark Green Text */
}

.calendar-day.loss {
  background: #facc15; /* Yellow */
  color: #713f12; /* Dark Brown Text */
}

/* Completed Crown Marker */
.completed-dot {
  position: absolute;
  bottom: calc(var(--cell-size) * 0.05);
  right: calc(var(--cell-size) * 0.03);
  font-size: calc(var(--cell-size) * 0.35); /* Slightly larger for micro-grid */
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

body.dark-mode .completed-dot {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* 4. Footer Info */
.profile-footer-info {
  margin-top: 32px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* Dark Mode Overrides */
body.dark-mode .identity-card,
body.dark-mode .calendar-heatmap {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .stat-box {
  background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .calendar-day {
  background: #334155; /* Solid Opaque Dark Gray (Slate 700) */
  color: #94a3b8;
  border: none;
}

body.dark-mode .calendar-day.win {
  background: #22c55e;
  color: white; /* White text on Green */
}

body.dark-mode .calendar-day.loss {
  background: #ca8a04; /* Dark Gold */
  color: white; /* White text on Gold */
}

#profile-section.hidden {
  display: none;
}

/* Inverted Avatar for Dark Mode */
body.dark-mode .profile-avatar-large {
  background-color: rgba(0, 0, 0, 0.25) !important;
  color: #e2e8f0;
}

/* Update Calendar Header for Vertical Layout */
/* Update Calendar Header for Integrated Layout */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 2px; /* Reduced from 8px */
  margin-bottom: 0px; /* Reduced from 4px */
}

/* Update Calendar Grid spacing */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 36px);
  justify-content: center;
  gap: 3px;
  width: 100%;
  margin: 10px 0 10px 0;
}

/* Ensure Profile Scrolls */

/* History Grid (Calendar + Weekday Stats) */
.history-grid {
  display: flex !important;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 600px; /* Match other containers */
  margin: 0 auto;
}

/* Weekday Stats Container */
.daily-time-report {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background-color: var(--bg-card);
  width: 100%;
}

/* New Daily Stats Grid */
.daily-time-chart {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
}

.daily-stat-card {
  background: var(--bg-paper);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

/* Center the last item (Saturday) */
.daily-stat-card:last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: 50%; /* Or auto/100% depending on preference */
}

.daily-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* 3-Column Metrics Row */
.daily-metrics-grid {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  gap: 2px;
}

.metric-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.metric-icon {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 2px;
}

.metric-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-color);
  white-space: nowrap;
}

/* Desktop Layout */
@media (min-width: 768px) {
  .history-grid {
    flex-direction: row;
    align-items: flex-start;
    max-width: 100%; /* Use available space */
  }

  .calendar-heatmap,
  .weekday-stats {
    flex: 1;
    max-width: none; /* Reset individual max-widths */
    /* height: 100%; Removed to prevent stretching */
  }

  /* Reset calendar top margin logic if it conflicts */
  .calendar-heatmap {
    margin: 0 !important;
  }
}

/* History Row Grid */
.stats-grid.history-grid-row {
  grid-template-columns: 1fr; /* Mobile: Stacked */
}

@media (min-width: 768px) {
  .stats-grid.history-grid-row {
    grid-template-columns: repeat(
      2,
      1fr
    ); /* Desktop: 50% Cal / 50% Stats (Equal Split) */
  }
}

/* FIX: Centered Settings Title */
#profile-section .section-title[data-i18n="settings_title"] {
  text-align: center;
  margin-top: 32px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  padding: 8px 0;
  border-radius: 8px;
}

/* FIX: Centered & Narrow Account Buttons */
.profile-actions {
  display: flex !important;
  flex-direction: column;
  align-items: center; /* Center children horizontally */
  gap: 8px; /* Consistent spacing */
}

/* Base Button Style for Profile */
.profile-actions button {
  width: 90% !important;
  max-width: 280px !important;
  margin-left: auto !important;
  margin-right: auto !important;

  /* Aesthetics */
  padding: 12px 20px;
  border-radius: 12px;
  font-family: var(--font-header);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.profile-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.profile-actions button:active {
  transform: translateY(0);
}

/* Specific Styles */

/* Change Password & Username - "Ghost" / Secondary Primary */
#btn-profile-change-pw,
#btn-profile-change-name {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
}
#btn-profile-change-pw:hover,
#btn-profile-change-name:hover {
  border-color: var(--primary-main);
  color: var(--primary-main);
  background: rgba(var(--primary-rgb), 0.05);
}

/* Logout - Soft Danger/Warning */
#btn-profile-logout {
  background: #dc2626; /* Red 600 - Better contrast for white text */
  border: none;
  color: white;
  margin-top: 0 !important; /* Extra spacing */
}
#btn-profile-logout:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Delete - Minimalist Danger */
#btn-profile-delete {
  margin-top: 24px !important; /* Push to bottom */
  background: transparent !important;
  border: 1px dashed #dc2626 !important; /* Matched Red 600 */
  color: #dc2626 !important; /* Matched Red 600 */
  opacity: 0.8;
  font-size: 0.8rem !important;
  padding: 10px !important;
  box-shadow: none !important;
}
#btn-profile-delete:hover {
  opacity: 1;
  background: rgba(220, 38, 38, 0.05) !important;
}

/* Dark Mode Adjustments */
body.dark-mode #btn-profile-change-pw {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode #btn-profile-change-pw:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
}

/* Logout Button Text Color Override (User Request) */
body.dark-mode #btn-profile-logout {
  background: #7f1d1d; /* Deep Red (Red 900) */
  color: #e2e8f0; /* Off-white text */
  border: 1px solid #b91c1c; /* Slightly lighter border */
}

body.dark-mode #btn-profile-logout:hover {
  background: #991b1b;
  border-color: #ef4444;
}

/* Share Styling */
.profile-share-actions {
  display: flex !important;
  justify-content: center;
  margin: 30px 0;
  width: 100%;
}

.share-btn {
  background: var(--accent-color) !important;
  color: #1e293b !important; /* Dark text on orange */
  max-width: 320px !important;
  width: 90% !important;
  font-size: 1.1rem !important;
  padding: 15px !important;
  box-shadow: 0 4px 0 #c2410c !important;
}

.share-btn:hover {
  background: #ff9800 !important;
  transform: translateY(-2px);
}

.share-btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 #c2410c !important;
}

/* Branding Header for Capture */
.share-branding {
  background: var(--bg-paper);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--accent-color);
  width: 100%;
}

.share-logo-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.share-logo {
  height: 48px;
  width: auto;
}

.share-text-group {
  display: flex;
  flex-direction: column;
}

.share-app-title {
  font-family: var(--font-header);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-main);
  margin: 0;
}

.share-app-url {
  font-size: 0.9rem;
  color: var(--accent-color);
  font-weight: 600;
  margin: 0;
}

.share-user-info {
  text-align: right;
}

.share-user-name {
  font-family: var(--font-paper);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.share-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Guest Actions (Visible only when logged out) */
.guest-actions {
  margin-bottom: 40px; /* Separation from the footer */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Visibility Control */
.share-branding.hidden {
  display: none !important;
}

/* Light/Dark Logos */
.dark-only {
  display: none;
}
body.dark-mode .dark-only {
  display: block;
}
body.dark-mode .light-only {
  display: block;
  display: none;
}

/* SOCIAL CARD TEMPLATE (INSTAGRAM STORY FORMAT 9:16) */
.social-card-template {
  display: none !important; /* Prevent from affecting layout/overflow */
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1080px; /* Standard Story Width */
  height: auto; /* Dynamic height to avoid excess space */
  min-height: 1300px; /* Minimum height to look good on Stories */
  background: var(--bg-paper);
  color: var(--text-main);
  padding: 60px 60px 80px 60px; /* Slightly increased bottom padding for balance */
  display: flex;
  flex-direction: column;
  gap: 20px; /* Tighter global gaps */
  font-family: var(--font-paper);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.sc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end; /* Push content to the bottom of the header area */
  padding: 120px 0 25px 0; /* Huge top padding to clear Instagram notch/UI */
  border-bottom: 2px solid var(--accent-color);
  margin-bottom: 20px;
}

.sc-branding {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sc-logo-container {
  height: 80px;
  width: 80px;
  flex-shrink: 0;
}

.sc-logo-container svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sc-app-title {
  font-family: var(--font-main);
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
  color: var(--text-main);
  text-transform: uppercase;
}

.sc-date {
  font-size: 1.4rem;
  color: var(--accent-color);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 5px;
}

.sc-user-box {
  text-align: right;
}

.sc-username {
  font-family: var(--font-main);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-main);
}

.sc-rank-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sc-body {
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex: 1;
}

/* 2x2 Grid Layout for Main Stats */
.sc-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.sc-stat-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 35px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.sc-stat-item.highlight {
  border-color: var(--accent-color);
  background: rgba(252, 116, 44, 0.05);
}

.sc-stat-val {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.sc-stat-lbl {
  font-size: 1.3rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}

/* 2-Column Grid for Statistics Sections */
.sc-grid-layout {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

/* Victory Social Card Specialized Header */
.sc-victory-banner {
  text-align: center;
  margin-top: -10px;
  margin-bottom: 25px;
  padding: 15px;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(252, 116, 44, 0.1),
    transparent
  );
}

.vsc-title {
  color: var(--accent-color);
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 4px;
  margin: 0;
  text-transform: uppercase;
}

.sc-victory-breakdown {
  margin-top: 20px;
}

.sc-victory-breakdown .sc-stage-list {
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.sc-section-title {
  font-size: 1.7rem;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  border-left: 8px solid var(--accent-color);
  padding-left: 20px;
}

.sc-stage-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.sc-weekday-chart {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

/* Card Style for both Levels and Weekdays */
.sc-stage-item,
.sc-weekday-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 18px 10px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  gap: 10px;
  text-align: center;
}

.sc-item-label {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.sc-item-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  width: 100%;
}

.sc-mini-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.sc-mini-icon {
  font-size: 1.3rem;
  opacity: 0.9;
}

.sc-mini-val {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.sc-mini-rp {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent-color);
}

/* Center Saturday (7th element in grid) */
.sc-weekday-item:nth-child(7) {
  grid-column: 1 / span 2;
  width: 50%;
  margin: 0 auto;
}

.sc-weekday-stat {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sc-weekday-icon {
  font-size: 0.9rem;
  opacity: 0.8;
  width: 20px;
  display: inline-block;
  text-align: center;
}

.sc-weekday-rp {
  text-align: right;
  font-weight: 800;
  color: var(--accent-color);
  font-variant-numeric: tabular-nums;
}

/* Inline Logos */
.light-only-inline {
  display: inline-block !important;
}
.dark-only-inline {
  display: none !important;
}
body.dark-mode .light-only-inline {
  display: none !important;
}
body.dark-mode .dark-only-inline {
  display: inline-block !important;
}

.sc-footer {
  margin-top: 5px; /* Tiny gap with content */
  border-top: 2px solid var(--glass-border);
  padding-top: 12px; /* Move text up, closer to the line */
  padding-bottom: 30px; /* Slightly more air for the footer */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sc-invite {
  font-size: 1.4rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}

.sc-tagline {
  font-weight: 800;
  color: var(--accent-color);
  font-size: 1.6rem;
}
