/* ============================================
   ELITE+ HOME PAGE V2 - PREMIUM REVAMP
   ============================================ */

/* === IMMERSIVE BACKGROUND === */
.home-v2 {
  position: relative;
  min-height: 100vh;
  padding: 1.5rem;
  padding-bottom: 3rem; /* Extra space for hover effects */
  overflow-x: hidden; /* Prevent horizontal scroll only */
  overflow-y: visible; /* Allow card hover effects to show */
}

.home-v2-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.bg-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(139, 92, 246, 0.1), transparent),
    radial-gradient(ellipse 50% 30% at 10% 70%, rgba(79, 70, 229, 0.08), transparent),
    linear-gradient(180deg, #0a0a0b 0%, #111114 50%, #0a0a0b 100%);
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: floatGlow 20s ease-in-out infinite;
}

.bg-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  top: -200px;
  left: -100px;
  animation-delay: 0s;
}

.bg-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  bottom: -100px;
  right: -100px;
  animation-delay: -7s;
}

.bg-glow-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  animation-delay: -14s;
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translate(30px, -20px) scale(1.05);
    opacity: 0.8;
  }
  50% {
    transform: translate(-20px, 30px) scale(0.95);
    opacity: 0.5;
  }
  75% {
    transform: translate(20px, 20px) scale(1.02);
    opacity: 0.7;
  }
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at center, black, transparent);
}

/* === HERO SECTION - SPLIT LAYOUT === */
.home-v2-hero {
  position: relative;
  padding: 2.5rem;
  padding-top: 3.5rem; /* Extra space for What's New button */
  margin-bottom: 2rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(17, 17, 20, 0.95) 0%, rgba(10, 10, 12, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: visible; /* Allow hover effects to extend beyond */
  z-index: 1;
}

/* Hero Background Elements */
.hero-bg-elements {
  position: absolute;
  inset: 0;
  overflow: hidden; /* Keep overflow hidden for background orbs only */
  pointer-events: none;
  border-radius: 24px; /* Match parent border-radius to clip orbs properly */
}

.hero-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
}

.hero-gradient-orb.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 70%);
  top: -250px;
  right: -100px;
  animation: orbMove1 20s ease-in-out infinite;
}

.hero-gradient-orb.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
  bottom: -200px;
  left: 20%;
  animation: orbMove2 25s ease-in-out infinite;
}

.hero-gradient-orb.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  top: 50%;
  left: -100px;
  animation: orbMove3 18s ease-in-out infinite;
}

@keyframes orbMove1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-30px, 30px) scale(1.1);
  }
}

@keyframes orbMove2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(40px, -20px) scale(0.9);
  }
}

@keyframes orbMove3 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, 40px) scale(1.05);
  }
}

.hero-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      transparent 49%,
      rgba(255, 255, 255, 0.02) 50%,
      transparent 51%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      transparent 0%,
      transparent 49%,
      rgba(255, 255, 255, 0.02) 50%,
      transparent 51%,
      transparent 100%
    );
  background-size: 80px 80px;
}

/* Hero Layout */
.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Left Side */
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-greeting {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.greeting-time {
  font-size: 0.875rem;
  font-weight: 500;
  color: #818cf8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.greeting-name {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  font-weight: 400;
}

/* CTA Buttons */
.hero-cta-row {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-cta-main {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border: none;
  border-radius: 14px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow:
    0 4px 20px rgba(99, 102, 241, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-cta-main:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 30px rgba(99, 102, 241, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-cta-main .cta-icon {
  font-size: 1.125rem;
}

.hero-cta-main .cta-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.hero-cta-main:hover .cta-arrow {
  transform: translateX(4px);
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Quick Links */
.hero-quick-links {
  display: none;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.quick-link:hover {
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.3);
}

.quick-link .ql-icon {
  font-size: 0.875rem;
}

/* Right Side - Stats Panel */
.hero-right {
  display: flex;
  justify-content: flex-end;
}

.hero-stats-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.5rem;
  width: 100%;
  max-width: 400px;
  backdrop-filter: blur(10px);
}

.stats-panel-header {
  margin-bottom: 1.25rem;
}

.panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #818cf8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #6366f1;
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* Main Stats Row */
.stats-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

.stat-big-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.stat-big-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
}

/* Secondary Stats Row */
.stats-secondary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding-top: 1.25rem;
}

.stat-small {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  transition: all 0.2s;
}

.stat-small:hover {
  background: rgba(99, 102, 241, 0.08);
}

.stat-small-icon {
  font-size: 1rem;
}

.stat-small-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stat-small-value {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.stat-small-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-right {
    justify-content: center;
  }

  .hero-stats-panel {
    max-width: 100%;
  }

  .greeting-name {
    font-size: 2.5rem;
  }
}

@media (max-width: 640px) {
  .home-v2-hero {
    padding: 1.5rem;
  }

  .greeting-name {
    font-size: 2rem;
  }

  .hero-cta-row {
    flex-direction: column;
  }

  .hero-cta-main,
  .hero-cta-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-quick-links {
    flex-wrap: wrap;
  }

  .stats-main-row {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-divider {
    width: 60%;
    height: 1px;
  }

  .stats-secondary-row {
    grid-template-columns: 1fr;
  }
}

/* === BENTO GRID LAYOUT === */
.home-v2-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
  padding: 4px; /* Accommodate hover shadows */
}

/* Bento Card Base */
.bento-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 1.25rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.bento-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.bento-header .header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.bento-icon {
  font-size: 1.125rem;
}

.bento-header h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.header-action {
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.header-action:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  color: #818cf8;
}

/* Quick Actions Card */
.bento-actions {
  grid-column: span 1;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.625rem;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 0.875rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.action-icon {
  font-size: 1.25rem;
}

.action-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

/* Weekly Chart Card */
.bento-chart {
  grid-column: span 2;
}

.chart-legend {
  display: flex;
  gap: 1rem;
  margin-left: auto;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.goals {
  background: #6366f1;
}

.legend-dot.assists {
  background: #8b5cf6;
}

.chart-visual {
  margin-bottom: 1rem;
}

.chart-bars {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 100px;
  padding: 0 0.5rem;
}

.chart-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.day-bars {
  display: flex;
  gap: 4px;
  height: 80px;
  align-items: flex-end;
}

.bar {
  width: 12px;
  border-radius: 4px;
  transition: height 0.5s ease;
  min-height: 4px;
}

.bar-goals {
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
}

.bar-assists {
  background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%);
}

.day-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.chart-summary {
  display: flex;
  justify-content: space-around;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.summary-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
}

.summary-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.summary-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

/* Activity Card */
.bento-activity {
  grid-column: span 1;
}

.activity-list {
  max-height: 200px;
  overflow-y: auto;
}

.activity-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.empty-visual {
  position: relative;
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.empty-ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-radius: 50%;
  animation: ringPulse 2s ease-in-out infinite;
}

@keyframes ringPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.empty-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
}

.activity-empty-state h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.25rem;
}

.activity-empty-state p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 1rem;
}

.empty-cta {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.empty-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Activity Items */
.activity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  margin-bottom: 0.5rem;
  transition: all 0.2s;
}

.activity-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.activity-item:last-child {
  margin-bottom: 0;
}

.activity-icon-wrap {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 10px;
  font-size: 1rem;
}

.activity-icon-wrap.training {
  background: rgba(59, 130, 246, 0.1);
}

.activity-icon-wrap.journal {
  background: rgba(139, 92, 246, 0.1);
}

.activity-details {
  flex: 1;
  min-width: 0;
}

.activity-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-meta {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}

.activity-score {
  font-size: 0.85rem;
  font-weight: 700;
  color: #6366f1;
}

.activity-score.loss {
  color: #ef4444;
}

.activity-score.draw {
  color: #f59e0b;
}

/* Season Progress Card */
.bento-season {
  grid-column: span 1;
}

.season-stats {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.season-stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.375rem;
}

.season-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.season-stat-value {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

.season-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.season-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.season-progress-fill.goals {
  background: linear-gradient(90deg, #6366f1 0%, #818cf8 100%);
}

.season-progress-fill.assists {
  background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 100%);
}

.season-progress-fill.matches {
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
}

/* AI Insights Card */
.bento-ai {
  grid-column: span 1;
  position: relative;
}

.ai-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.ai-content {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}

.ai-message {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin: 0 0 0.75rem;
}

.ai-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.ai-tag {
  padding: 0.25rem 0.625rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 50px;
  font-size: 0.7rem;
  color: #a78bfa;
}

.ai-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  color: #a78bfa;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.ai-cta:hover {
  background: rgba(139, 92, 246, 0.25);
  transform: translateY(-2px);
}

/* Rating Trend Graph Card */
.bento-rating-graph {
  grid-column: span 1;
}

.bento-rating-graph .bento-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.rating-avg-badge {
  margin-left: auto;
  padding: 0.25rem 0.625rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #818cf8;
}

.rating-graph-container {
  position: relative;
  height: 120px;
  margin-bottom: 0.75rem;
}

.rating-graph-container canvas {
  width: 100% !important;
  height: 100% !important;
}

.rating-graph-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

.rating-graph-empty .empty-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.6;
}

.rating-graph-empty p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.rating-graph-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trend-indicator {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.trend-indicator .trend-arrow {
  font-size: 1rem;
}

.trend-indicator.up .trend-arrow {
  color: #22c55e;
}

.trend-indicator.down .trend-arrow {
  color: #ef4444;
}

.trend-indicator.stable .trend-arrow {
  color: #f59e0b;
}

.rating-cta {
  padding: 0.375rem 0.75rem;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 6px;
  color: #818cf8;
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.rating-cta:hover {
  background: rgba(99, 102, 241, 0.25);
}

/* Achievement Card */
.bento-achievement {
  grid-column: span 1;
}

.achievement-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.achievement-icon-wrap {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.achievement-icon {
  font-size: 1.5rem;
  position: relative;
  z-index: 1;
}

.achievement-ring {
  position: absolute;
  inset: 0;
}

.achievement-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.achievement-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.achievement-progress {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.achievement-cta {
  width: 100%;
  padding: 0.5rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 8px;
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.achievement-cta:hover {
  background: rgba(251, 191, 36, 0.2);
}

/* Focus Card */
.bento-focus {
  grid-column: span 1;
  position: relative;
}

.focus-glow {
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.focus-refresh {
  margin-left: auto;
  padding: 0.375rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s;
}

.focus-refresh:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  color: #818cf8;
}

.focus-content {
  position: relative;
  z-index: 1;
}

.focus-message {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin: 0 0 0.75rem;
}

.focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.focus-tag {
  padding: 0.25rem 0.625rem;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 50px;
  font-size: 0.7rem;
  color: #818cf8;
}

/* Pro Upgrade Card */
.bento-pro {
  grid-column: span 1;
  position: relative;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
  border-color: rgba(251, 191, 36, 0.2);
}

.pro-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.pro-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pro-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.pro-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fbbf24;
  margin: 0 0 0.375rem;
}

.pro-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 1rem;
}

.pro-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 10px;
  color: #000;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.pro-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

/* === FEATURE CARDS ROW === */
.home-v2-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
  z-index: 1;
  padding: 4px; /* Accommodate hover shadows */
  margin-bottom: 2rem;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 12px;
}

.feature-icon {
  font-size: 1.25rem;
}

.feature-info {
  flex: 1;
}

.feature-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.125rem;
}

.feature-info p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.feature-arrow {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.2s;
}

.feature-card:hover .feature-arrow {
  color: #818cf8;
  transform: translateX(4px);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1200px) {
  .home-v2-bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-chart {
    grid-column: span 2;
  }

  .bento-actions,
  .bento-activity,
  .bento-season,
  .bento-ai,
  .bento-achievement,
  .bento-focus,
  .bento-pro {
    grid-column: span 1;
  }

  .home-v2-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .home-v2 {
    padding: 1rem;
  }

  .home-v2-hero {
    padding: 2rem 1.5rem;
  }

  .title-name {
    font-size: 2rem;
  }

  .hero-stats-grid {
    gap: 0.75rem;
  }

  .hero-stat-card {
    padding: 0.75rem 1rem;
    min-width: 80px;
  }

  .hero-stat-card .stat-value {
    font-size: 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .hero-btn {
    width: 100%;
    justify-content: center;
  }

  .home-v2-bento {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bento-chart,
  .bento-actions,
  .bento-activity,
  .bento-season,
  .bento-ai,
  .bento-achievement,
  .bento-focus,
  .bento-pro {
    grid-column: span 1;
  }

  .home-v2-features {
    grid-template-columns: 1fr;
  }

  .actions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-stats-grid {
    gap: 0.5rem;
  }

  .hero-stat-card {
    padding: 0.625rem 0.75rem;
    min-width: 60px;
  }

  .hero-stat-card .stat-icon {
    font-size: 1rem;
  }

  .hero-stat-card .stat-value {
    font-size: 1rem;
  }

  .hero-stat-card .stat-label {
    font-size: 0.6rem;
  }

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

/* ============================================
   WHAT'S NEW BUTTON & MODAL - v5.0 BETA
   ============================================ */

/* What's New Button - Top Right of Hero */
.whats-new-btn-home {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 50px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}

.whats-new-btn-home:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.25) 100%);
  border-color: rgba(99, 102, 241, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35);
}

.whats-new-pulse {
  position: absolute;
  inset: -2px;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(139, 92, 246, 0.5));
  animation: whatsNewPulse 2s ease-in-out infinite;
  z-index: -1;
}

@keyframes whatsNewPulse {
  0%, 100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

.whats-new-icon {
  font-size: 14px;
  animation: sparkleFloat 3s ease-in-out infinite;
}

@keyframes sparkleFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-2px) rotate(10deg); }
}

.whats-new-text {
  background: linear-gradient(135deg, #a5b4fc, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* What's New Modal Backdrop */
.whats-new-backdrop-home {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.whats-new-backdrop-home.show {
  opacity: 1;
  visibility: visible;
}

/* What's New Modal */
.whats-new-modal-home {
  background: linear-gradient(135deg, rgba(17, 17, 20, 0.98) 0%, rgba(10, 10, 12, 0.99) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  width: 100%;
  max-width: 580px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(99, 102, 241, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: modalSlideInHome 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideInHome {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.whats-new-header-home {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
}

.whats-new-header-content-home {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.whats-new-version-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: fit-content;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.whats-new-title-home {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  background: linear-gradient(135deg, #fff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.whats-new-close-home {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.whats-new-close-home:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.whats-new-content-home {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.whats-new-section-home {
  margin-bottom: 24px;
}

.whats-new-section-home:last-child {
  margin-bottom: 0;
}

.whats-new-section-title-home {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
}

.whats-new-section-icon-home {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 10px;
  font-size: 16px;
  color: #a5b4fc;
}

.whats-new-list-home {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.whats-new-list-home li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  transition: all 0.2s;
}

.whats-new-list-home li:hover {
  background: rgba(99, 102, 241, 0.05);
  border-color: rgba(99, 102, 241, 0.15);
}

.whats-new-list-home li::before {
  content: '✓';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.2));
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: #22c55e;
}

.whats-new-highlight-home {
  color: #fff;
  font-weight: 600;
}

.whats-new-footer-home {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
}

.whats-new-footer-text-home {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.whats-new-footer-link-home {
  font-size: 13px;
  color: #818cf8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.whats-new-footer-link-home:hover {
  color: #a5b4fc;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .whats-new-btn-home {
    padding: 6px 12px;
    font-size: 11px;
  }
  
  .whats-new-text {
    display: none;
  }
  
  .whats-new-icon {
    font-size: 16px;
  }
  
  .whats-new-modal-home {
    max-height: 90vh;
    border-radius: 16px;
  }
  
  .whats-new-header-home,
  .whats-new-content-home {
    padding: 18px;
  }
  
  .whats-new-title-home {
    font-size: 18px;
  }
  
  .whats-new-list-home li {
    padding: 10px 12px;
    font-size: 12px;
  }
}
