/* ═════════════════════════════════════════════════════════════
   MAIN MENU, BENTO DASHBOARD & HUB STYLES
   ═════════════════════════════════════════════════════════════ */

/* Global Hub Layout Defaults (Centering & Structure) */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.main-heading {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text2, #9b94b0);
  margin-bottom: 10px;
  text-align: center;
}

.main-title {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.15;
  color: var(--text, #ece8f5);
}

#page-main {
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, #1a152d 0%, #0d0b16 55%, #08070d 100%);
  min-height: 100vh;
  overflow-y: auto;
}

/* ── Modern Topbar Navigation ── */
.bento-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  background: rgba(18, 15, 30, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 16px;
}

.topbar-brand-section {
  display: flex;
  align-items: center;
  gap: 22px;
}

.bento-topbar .topbar-logo {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.bento-topbar .topbar-logo:hover {
  opacity: 0.9;
}

.topbar-logo-icon {
  font-size: 23px;
  color: var(--accent, #ad62ff);
  text-shadow: 0 0 12px rgba(173, 98, 255, 0.6);
}

/* ── Center Nav Links ── */
.bento-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bento-nav-item {
  background: transparent;
  border: 1px solid transparent;
  color: #a39eb8;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.bento-nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.bento-nav-item.active {
  color: #fff;
  background: rgba(173, 98, 255, 0.16);
  border-color: rgba(173, 98, 255, 0.35);
  box-shadow: 0 0 10px rgba(173, 98, 255, 0.2);
}

/* ── TV Navbar Live Indicator Badge ── */
.tv-nav-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.55);
  color: #fca5a5;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 1px 6px;
  border-radius: 9px;
  line-height: 1.3;
  vertical-align: middle;
  transition: all 0.2s ease;
}

.tv-nav-live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
  animation: tvDotPulse 1.4s infinite;
}

@keyframes tvDotPulse {
  0% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ── Dropdown: Learn ▾ ── */
.bento-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.dropdown-caret {
  font-size: 10px;
  transition: transform 0.2s;
  opacity: 0.7;
}

.bento-dropdown-wrapper.open .dropdown-caret {
  transform: rotate(180deg);
}

.bento-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  background: #181427;
  border: 1px solid rgba(173, 98, 255, 0.25);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(173, 98, 255, 0.15);
  border-radius: 8px;
  padding: 8px;
  z-index: 200;
  animation: bentoFadeIn 0.15s ease-out;
}

.bento-dropdown-wrapper.open .bento-dropdown-menu {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  color: #d1cde0;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}

.dropdown-item:hover {
  background: rgba(173, 98, 255, 0.15);
  color: #fff;
  transform: translateX(3px);
}

.dropdown-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.dropdown-text {
  display: flex;
  flex-direction: column;
}

.dropdown-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
}

.dropdown-desc {
  font-size: 11px;
  color: #8e87a5;
  margin-top: 1px;
}

/* ── Right Actions ── */
.topbar-actions-section {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.bento-action-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d1cde0;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.bento-action-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ── Base Card (Generous Presence) ── */
.bento-card {
  background: rgba(23, 19, 36, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.2s;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.38);
  min-height: 280px;
}

.bento-card:hover {
  transform: translateY(-2px);
  border-color: rgba(173, 98, 255, 0.34);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.52), 0 0 24px rgba(173, 98, 255, 0.15);
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent, #ad62ff), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.bento-card:hover::before {
  opacity: 1;
}

/* Card Header */
.bento-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.bento-card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bento-card-icon {
  font-size: 24px;
  line-height: 1;
}

.bento-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.bento-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #a39eb8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bento-badge.live {
  background: rgba(173, 98, 255, 0.15);
  color: #c996ff;
  border-color: rgba(173, 98, 255, 0.35);
}

.bento-badge.blue {
  background: rgba(14, 165, 233, 0.14);
  color: #38bdf8;
  border-color: rgba(14, 165, 233, 0.3);
}

.bento-card-desc {
  font-size: 13.5px;
  color: #9b94b0;
  line-height: 1.5;
  margin-bottom: 16px;
}

.bento-board-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.turn-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  padding: 3.5px 12px;
  border-radius: 12px;
  background: #252038;
  color: #ded9f0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.turn-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  display: inline-block;
  box-shadow: 0 0 6px #34d399;
}

.bento-board-container {
  width: 235px;
  height: 235px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #2b2540;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 2px;
}

.hero-stat-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: #c996ff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bento-elo-banner {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.bento-elo-val {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.elo-unit {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--accent, #ad62ff);
  font-weight: 500;
}

.sparkline-wrapper {
  width: 100%;
  height: 105px;
  position: relative;
  margin: 6px 0 14px;
}

#bento-sparkline-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.progress-pills-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: auto;
}

.progress-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 9px 6px;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: #d1cde0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.progress-pill .pill-val {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.progress-pill.streak-pill .pill-val {
  color: #f59e0b;
}

.progress-pill.win-pill .pill-val {
  color: #34d399;
}

/* ── Standard Button Tokens ── */
.bento-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 8px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  border: 1px solid transparent;
}

.bento-btn-primary {
  background: linear-gradient(135deg, #ad62ff 0%, #8238d6 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(173, 98, 255, 0.35);
}

.bento-btn-primary:hover {
  background: linear-gradient(135deg, #b976ff 0%, #9047e6 100%);
  box-shadow: 0 6px 22px rgba(173, 98, 255, 0.5);
  transform: translateY(-1px);
}

.bento-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ded9f0;
}

.bento-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.bento-pill-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  color: #ded9f0;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
  margin-bottom: 8px;
}

.bento-pill-btn:hover {
  background: rgba(173, 98, 255, 0.14);
  border-color: rgba(173, 98, 255, 0.35);
  color: #fff;
  transform: translateX(2px);
}

/* ── Animations ── */
@keyframes bentoFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═════════════════════════════════════════════════════════════
   MOBILE & RESPONSIVE RULES (Full Touch & Small Screen Support)
   ═════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .bento-topbar {
    padding: 10px 16px;
    justify-content: space-between;
  }
  .topbar-brand-section {
    gap: 10px;
  }
  /* Hide desktop nav links row on mobile */
  .bento-nav-links {
    display: none !important;
  }
  /* Vanish upper ELO, points, username badges and action buttons on mobile as requested */
  .topbar-user-info,
  #main-user-info,
  .topbar-actions-section {
    display: none !important;
  }
  /* Show hamburger button prominently in the top bar */
  .topbar-hamburger {
    display: flex !important;
  }
  .bento-board-container {
    width: 220px;
    height: 220px;
  }
  .hero-quick-shortcuts {
    justify-content: center;
  }
  .hero-stats-row {
    justify-content: center;
  }
  /* Mobile touch minimum target size */
  .bento-btn {
    min-height: 44px;
  }
}


/* ═════════════════════════════════════════════════════════════
   LEGACY TOOL-GRID & HUB SCREEN STYLES (Puzzle Hub & Admin Hub)
   ═════════════════════════════════════════════════════════════ */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.tool-card {
  background: var(--bg2, #14121d);
  border: 1px solid var(--border, #2c273d);
  border-radius: 4px;
  padding: 30px 24px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent, #ad62ff);
  transform: scaleX(0);
  transition: transform 0.2s;
  transform-origin: left;
}

.tool-card:hover {
  border-color: #4a3e66;
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(173, 98, 255, 0.12);
}

.tool-card:hover::before {
  transform: scaleX(1);
}

.tool-card.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tool-card.disabled:hover {
  border-color: var(--border, #2c273d);
  box-shadow: none;
}

.tool-card.disabled:hover::before {
  transform: scaleX(0);
}

.tool-card.guest-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.tool-icon {
  font-size: 34px;
  margin-bottom: 14px;
}

.tool-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text, #ece8f5);
}

.tool-desc {
  font-size: 13px;
  color: var(--text2, #9b94b0);
  line-height: 1.55;
}

.tool-badge {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  margin-top: 12px;
  background: #262136;
  color: var(--text3, #56506d);
}

.tool-badge.live {
  background: rgba(173, 98, 255, 0.16);
  color: var(--accent, #ad62ff);
}

.tool-badge.locked-badge {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
}

.requires-auth-badge {
  font-size: 11px;
  margin-left: 4px;
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.5));
}

/* ── Screen 2: Puzzle Hub & Study Room Hub (Balanced 5 Columns in 1 Row) ── */
#page-puzzle-hub .main-content,
#page-opening-hub .main-content {
  padding: 32px 24px 24px;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

#page-puzzle-hub .main-heading,
#page-opening-hub .main-heading {
  margin-bottom: 6px;
  text-align: center;
}

#page-puzzle-hub .main-title,
#page-opening-hub .main-title {
  font-size: 38px;
  margin-bottom: 18px;
  line-height: 1.15;
  text-align: center;
}

#page-puzzle-hub .tool-grid,
#page-opening-hub .tool-grid {
  grid-template-columns: repeat(5, 1fr);
  max-width: 1400px;
  gap: 16px;
  width: 100%;
  margin: 0 auto;
}

#page-puzzle-hub .tool-card,
#page-opening-hub .tool-card {
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

#page-puzzle-hub .tool-icon,
#page-opening-hub .tool-icon {
  font-size: 30px;
  margin-bottom: 12px;
}

#page-puzzle-hub .tool-name,
#page-opening-hub .tool-name {
  font-size: 18px;
  margin-bottom: 6px;
}

#page-puzzle-hub .tool-desc,
#page-opening-hub .tool-desc {
  font-size: 12px;
  line-height: 1.5;
  flex-grow: 1;
}

#page-puzzle-hub .tool-badge,
#page-opening-hub .tool-badge {
  align-self: flex-start;
  margin-top: 12px;
}

@media (max-width: 1200px) {
  #page-puzzle-hub .tool-grid,
  #page-opening-hub .tool-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 880px;
  }
}

@media (max-width: 768px) {
  #page-puzzle-hub .tool-grid,
  #page-opening-hub .tool-grid {
    grid-template-columns: 1fr !important;
    max-width: 520px;
    gap: 14px;
    width: 100%;
    padding: 0 10px;
  }
  #page-puzzle-hub .tool-card,
  #page-opening-hub .tool-card {
    width: 100%;
  }
  #page-puzzle-hub .main-content,
  #page-opening-hub .main-content {
    padding: 20px 14px;
  }
}

/* ═════════════════════════════════════════════════════════════
   DUAL-NAVIGATION DASHBOARD (LEFT RAIL + FOCUSED CENTER)
   ═════════════════════════════════════════════════════════════ */

.main-shell-wrapper {
  display: flex;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  gap: 20px;
  padding: 18px 24px 36px;
  min-height: calc(100vh - 65px);
  box-sizing: border-box;
}

/* ── Modern Left Navigation Sidebar Rail ── */
.main-sidebar-rail {
  width: 240px;
  flex-shrink: 0;
  background: rgba(18, 14, 28, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 76px;
  height: fit-content;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-group-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7b7396;
  padding: 4px 10px;
  margin-bottom: 2px;
}

.sidebar-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #a39eb8;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.18s ease;
  font-family: inherit;
}

.sidebar-nav-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  transform: translateX(2px);
  border-color: rgba(255, 255, 255, 0.08);
}

.sidebar-nav-btn.active {
  background: rgba(173, 98, 255, 0.15);
  border-color: rgba(173, 98, 255, 0.3);
  color: #ffffff;
  font-weight: 600;
}

.sidebar-nav-icon {
  font-size: 15px;
  width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.sidebar-nav-text {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-mini-pill {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  line-height: 1;
}

.sidebar-mini-pill.live {
  background: rgba(255, 75, 75, 0.2);
  color: #ff5e5e;
  border: 1px solid rgba(255, 75, 75, 0.4);
}

.sidebar-mini-pill.tv-badge-pill {
  background: rgba(255, 59, 48, 0.2);
  color: #ff5252;
  border: 1px solid rgba(255, 59, 48, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── Main Dashboard Content Area ── */
.main-dashboard-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* Greeting & Telemetry Header */
.dashboard-greeting-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: linear-gradient(135deg, rgba(32, 24, 52, 0.85) 0%, rgba(18, 14, 30, 0.85) 100%);
  border: 1px solid rgba(173, 98, 255, 0.22);
  border-radius: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.greeting-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.greeting-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ad62ff, #6930c3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(173, 98, 255, 0.4);
  flex-shrink: 0;
}

.greeting-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.greeting-subtitle {
  font-size: 12px;
  color: #9b94b0;
  margin-top: 2px;
}

.greeting-stats-pills {
  display: flex;
  align-items: center;
  gap: 10px;
}

.greeting-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  min-width: 76px;
}

.greeting-stat-item .stat-label {
  font-size: 9px;
  font-weight: 700;
  color: #827b9c;
  letter-spacing: 0.06em;
}

.greeting-stat-item .stat-value {
  font-size: 15px;
  font-weight: 800;
  color: #ad62ff;
}

/* ── Focused 2-Column Dashboard Grid ── */
.dashboard-main-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 16px;
  align-items: stretch;
}

/* Daily Puzzle Hero Spotlight */
.bento-hero-clean {
  background: rgba(18, 14, 28, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.38);
}

.bento-hero-clean-body {
  display: flex;
  gap: 20px;
  align-items: center;
  flex: 1;
}

.bento-hero-clean-body .bento-board-panel {
  flex: 0 0 250px;
  width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.bento-hero-clean-body .bento-board-container {
  width: 250px;
  height: 250px;
}

.bento-hero-clean-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.puzzle-spotlight-desc {
  font-size: 13px;
  color: #a9a2c2;
  line-height: 1.5;
}

.puzzle-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

/* Side Stack (Progress + Live TV) */
.dashboard-side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bento-progress-clean,
.bento-tv-clean {
  background: rgba(18, 14, 28, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.38);
}

/* Live TV Clean Card */
.bento-tv-body {
  display: flex;
  gap: 14px;
  align-items: center;
}

.bento-tv-mini-board-wrap {
  width: 130px;
  height: 130px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  background: #262421;
}

.bento-tv-mini-board-wrap #bento-tv-mini-board {
  width: 100%;
  height: 100%;
}

.bento-tv-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.bento-tv-matchup {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bento-tv-move-ticker {
  font-size: 11px;
  color: #9b94b0;
  line-height: 1.4;
  max-height: 42px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive collapse */
@media (max-width: 1080px) {
  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .main-shell-wrapper {
    flex-direction: column;
    padding: 12px 14px;
    gap: 14px;
  }
  .main-sidebar-rail {
    width: 100%;
    position: static;
  }
  .bento-hero-clean-body {
    flex-direction: column;
    align-items: center;
  }
  .bento-hero-clean-body .bento-board-panel {
    width: 100%;
    max-width: 250px;
  }
  .bento-hero-clean-controls {
    width: 100%;
    text-align: center;
  }
  .hero-stats-row {
    justify-content: center;
  }

  /* Hide Live TV everywhere on mobile */
  .bento-card.bento-tv-clean,
  .tv-nav-link,
  a.sidebar-nav-btn[href="/tv"],
  .bento-tv-clean {
    display: none !important;
  }

  /* Hide Welcome Back text in header banner on mobile */
  .dashboard-greeting-banner .greeting-left,
  .dashboard-greeting-banner .greeting-texts,
  #greeting-user-title,
  #greeting-user-sub {
    display: none !important;
  }
  .dashboard-greeting-banner {
    padding: 8px 12px !important;
    justify-content: center !important;
    gap: 8px !important;
  }
}

