/*
Theme Name: CuckSpot
Theme URI: https://example.com/cuckspot
Author: Cline
Author URI: https://docs.cline.bot
Description: Custom text-based adult theme with stories, confessions, chat, and directory. Supports ES/EN with Stripe-like design.
Version: 1.0.0
Text Domain: cuckspot
*/

/* Custom font stack similar to Stripe */
:root {
  --primary-color: #e63946;
  --text-color: #1d3557;
  --bg-color: #f1faee;
  --secondary-bg: #ffffff;
  --accent-color: #457b9d;
  --border-color: #ddd;
  --muted-text: #666;
  --sidebar-width: 300px;
  --container-width: 1200px;
  --border-radius: 8px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --avatar-border-width: 4px;

  /* Merged Stripe variables - modern, clean design */
  --stripe-font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  --stripe-base-size: 16px;
  --stripe-line-height: 1.5;
  --stripe-bg-primary: #f8f9fa;
  --stripe-bg-secondary: #f0f2f5;
  --stripe-bg-tertiary: #e9ecef;
  --stripe-text-primary: #0f1419;
  --stripe-text-secondary: #596364;
  --stripe-text-muted: #88969b;
  --stripe-accent-primary: #b22222;
  --stripe-accent-secondary: #8b0000;

  --stripe-bg-primary: #f8f9fa;
  --stripe-bg-secondary: #f0f2f5;
  --stripe-bg-tertiary: #e9ecef;
  --stripe-text-primary: #0f1419;
  --stripe-text-secondary: #596364;
  --stripe-text-muted: #88969b;
  --stripe-border-primary: #e3e8ee;
  --stripe-border-secondary: #d1dbe1;
  --stripe-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --stripe-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --stripe-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --stripe-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --stripe-radius-sm: 6px;
  --stripe-radius-md: 8px;
  --stripe-radius-lg: 12px;
  --stripe-focus-ring: 0 0 0 2px rgba(178, 34, 34, 0.2);
  --stripe-transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --stripe-space-xs: 4px;
  --stripe-space-sm: 8px;
  --stripe-space-md: 16px;
  --stripe-space-lg: 24px;
  --stripe-space-xl: 32px;
  --stripe-space-xxl: 64px;
  --stripe-text-xs: 12px;
  --stripe-text-sm: 14px;
  --stripe-text-base: 16px;
  --stripe-text-lg: 18px;
  --stripe-text-xl: 20px;
  --stripe-text-2xl: 24px;
  --stripe-text-3xl: 30px;
  --stripe-text-4xl: 36px;
  --stripe-text-5xl: 48px;
  --stripe-border-primary: #e3e8ee;
  --stripe-border-secondary: #d1dbe1;
  --stripe-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --stripe-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --stripe-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --stripe-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --stripe-radius-sm: 6px;
  --stripe-radius-md: 8px;
  --stripe-radius-lg: 12px;
  --stripe-focus-ring: 0 0 0 2px rgba(99, 91, 255, 0.2);
  --stripe-transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --stripe-space-xs: 4px;
  --stripe-space-sm: 8px;
  --stripe-space-md: 16px;
  --stripe-space-lg: 24px;
  --stripe-space-xl: 32px;
  --stripe-space-xxl: 64px;
  --stripe-text-xs: 12px;
  --stripe-text-sm: 14px;
  --stripe-text-base: 16px;
  --stripe-text-lg: 18px;
  --stripe-text-xl: 20px;
  --stripe-text-2xl: 24px;
  --stripe-text-3xl: 30px;
  --stripe-text-4xl: 36px;
  --stripe-text-5xl: 48px;
}

/* Dark theme for blood red design */
html[data-theme="dark"] {
  --stripe-bg-primary: #2a2a2a;
  --stripe-bg-secondary: #3a3a3a;
  --stripe-bg-tertiary: #4a4a4a;
  --stripe-text-primary: #ffffff;
  --stripe-text-secondary: #cccccc;
  --stripe-text-muted: #999999;
  --stripe-accent-primary: #b22222;
  --stripe-accent-secondary: #8b0000;
  --stripe-border-primary: #555555;
  --stripe-border-secondary: #666666;
  --stripe-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --stripe-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --stripe-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --stripe-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

/* Dark theme backgrounds */
html[data-theme="dark"] {
  --stripe-bg-primary: #3a3a3a;
  /* Lighter gray for main content */
  --stripe-bg-secondary: #2a2a2a;
  /* Keep secondary as darker for some elements */
}

/* Dark theme header and footer background - keep darker */
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-footer {
  background: #2a2a2a;
}

html {
  scroll-behavior: smooth;
}

/* Body styles - updated typography */
body {
  font-family: var(--stripe-font-family);
  font-size: var(--stripe-base-size);
  line-height: var(--stripe-line-height);
  color: var(--stripe-text-primary);
  background-color: var(--stripe-bg-primary);
  margin: 0;
  padding: 0;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0.85;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Headings redesigned */
.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  border: var(--avatar-border-width) solid #d4af37;
  overflow: visible;
  position: relative;
  background: #000;
}

h1 {
  font-size: var(--stripe-text-5xl);
  font-weight: 600;
  line-height: 1.25;
}

h2 {
  font-size: var(--stripe-text-4xl);
  font-weight: 600;
  line-height: 1.25;
}

h3 {
  font-size: var(--stripe-text-2xl);
  font-weight: 600;
  line-height: 1.33;
}

h4 {
  font-size: var(--stripe-text-xl);
  font-weight: 600;
  line-height: 1.4;
}

h5 {
  font-size: var(--stripe-text-lg);
  font-weight: 600;
  line-height: 1.5;
}

h6 {
  font-size: var(--stripe-text-base);
  font-weight: 600;
  line-height: 1.5;
}

/* Container with modern spacing */
.container,
.site-content-wrapper {
  max-width: 1500px;
  margin: 0 auto;
  padding: var(--stripe-space-md);
}

/* Header redesigned - modern, clean */
.site-header {
  background: var(--stripe-bg-secondary);
  border-bottom: 1px solid var(--stripe-border-primary);
  padding: var(--stripe-space-lg) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--stripe-shadow-xs);
  position: relative;
}

.mobile-menu-toggle {
  display: none;
}

@media (max-width: 1200px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--stripe-space-lg);
}

.header-left {
  flex: 0;
  display: flex;
  align-items: center;
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-right {
  flex: 0;
  display: flex;
  align-items: center;
  gap: var(--stripe-space-md);
  justify-content: flex-end;
}

.header-center {
  flex: 2;
  justify-content: center;
}

.site-logo img {
  height: 60px;
  width: auto;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--stripe-space-xxl);
  text-transform: capitalize;
}



.main-navigation a {
  font-size: var(--stripe-text-base);
  font-weight: 500;
  color: var(--stripe-text-secondary);
  text-decoration: none;
  transition: var(--stripe-transition);
}

.main-navigation a:hover,
.main-navigation a.active {
  color: var(--stripe-accent-primary);
}

/* Modern button system */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 var(--stripe-space-lg);
  font-family: var(--stripe-font-family);
  font-size: var(--stripe-text-base);
  font-weight: 500;
  line-height: 20px;
  border-radius: var(--stripe-radius-md);
  border: 1px solid transparent;
  background-color: transparent;
  color: var(--stripe-text-primary);
  cursor: pointer;
  transition: var(--stripe-transition);
  text-decoration: none;
}

.btn:focus {
  outline: none;
  box-shadow: var(--stripe-focus-ring);
}

.btn-primary {
  background-color: var(--stripe-accent-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #ff0000;
  box-shadow: var(--stripe-shadow-sm);
}

.btn-secondary {
  background-color: var(--stripe-accent-secondary);
  color: #ffffff;
}

.btn-outline {
  border-color: var(--stripe-border-primary);
  background-color: var(--stripe-bg-primary);
  color: var(--stripe-text-primary);
}

.btn-outline:hover {
  border-color: var(--stripe-border-secondary);
  background-color: var(--stripe-bg-secondary);
}

.btn-ghost {
  color: var(--stripe-accent-primary);
}

.btn-ghost:hover {
  background-color: rgba(99, 91, 255, 0.1);
}

.btn-sm {
  height: 36px;
  padding: 0 var(--stripe-space-md);
  font-size: var(--stripe-text-sm);
}

.btn-long {
  min-width: 160px;
  white-space: nowrap;
  text-align: center;
}

select {
  height: 50px;
  line-height: 50px;
  padding-left: var(--stripe-space-sm);
  font-size: 16px;
}

/* Search form updated */
.search-form {
  display: flex;
  gap: 0;
}

select {
  height: 50px;
  line-height: 50px;
  padding-left: var(--stripe-space-sm);
  font-size: 16px;
  border-radius: var(--stripe-radius-sm) 0 0 var(--stripe-radius-sm);
  background: var(--stripe-bg-primary);
  color: var(--stripe-text-primary);
  font-family: var(--stripe-font-family);
  font-size: var(--stripe-text-base);
  outline: none;
  transition: var(--stripe-transition);
}

.search-field:focus {
  border-color: var(--stripe-accent-primary);
  box-shadow: var(--stripe-focus-ring);
}

.search-submit {
  height: 44px;
  padding: 0 var(--stripe-space-md);
  border: 1px solid var(--stripe-border-primary);
  border-left: none;
  border-radius: 0 var(--stripe-radius-sm) var(--stripe-radius-sm) 0;
  background: var(--stripe-bg-primary);
  color: var(--stripe-text-secondary);
  font-family: var(--stripe-font-family);
  font-weight: 500;
  cursor: pointer;
  transition: var(--stripe-transition);
}

.search-submit:hover {
  background: var(--stripe-accent-primary);
  color: #ffffff;
}

/* Forms modernized */
input,
select,
textarea {
  width: 100%;
  padding: var(--stripe-space-md);
  border: 1px solid var(--stripe-border-primary);
  border-radius: var(--stripe-radius-sm);
  background: var(--stripe-bg-primary);
  color: var(--stripe-text-primary);
  font-family: var(--stripe-font-family);
  font-size: var(--stripe-text-base);
  line-height: var(--stripe-line-height);
  outline: none;
  transition: var(--stripe-transition);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--stripe-accent-primary);
  box-shadow: var(--stripe-focus-ring);
}

input::placeholder,
textarea::placeholder {
  color: var(--stripe-text-muted);
}

/* Modern cards with shadow */
.card {
  background: var(--stripe-bg-primary);
  border: 1px solid var(--stripe-border-primary);
  border-radius: var(--stripe-radius-md);
  padding: var(--stripe-space-xl);
  box-shadow: var(--stripe-shadow-sm);
  transition: var(--stripe-transition);
}

.card:hover {
  box-shadow: var(--stripe-shadow-md);
}

/* Hero/CTA section */
.page-header {
  text-align: center;
  padding: var(--stripe-space-xxl) 0;
}

.page-header h1 {
  margin-bottom: var(--stripe-space-md);
}

.page-header p {
  font-size: var(--stripe-text-xl);
  color: var(--stripe-text-secondary);
  max-width: 768px;
  margin: 0 auto;
}

/* Hero headers with maroon background */
.home-hero,
.relatos-hero,
.confesiones-hero,
.comunidad-hero,
.diccionario-hero,
.blog-hero {
  background: #8e1b1b !important;
}

/* Comments/forum threads */
.comments-area .comment-list .comment {
  margin-bottom: var(--stripe-space-lg);
  padding: var(--stripe-space-md);
  background: var(--stripe-bg-primary);
  border-radius: var(--stripe-radius-md);
  border: 1px solid var(--stripe-border-primary);
}

.comments-area .comment-author {
  font-weight: 600;
  color: var(--stripe-text-primary);
}

.comments-area .comment-date {
  font-size: var(--stripe-text-sm);
  color: var(--stripe-text-muted);
}

.comments-area .comment-content {
  color: var(--stripe-text-secondary);
  margin-top: var(--stripe-space-sm);
}

/* Relatos/posts styling */
.relato-item .entry-header {
  margin-bottom: var(--stripe-space-lg);
}

.relato-item .entry-title {
  margin-bottom: var(--stripe-space-sm);
}

.relato-item .entry-summary {
  font-size: var(--stripe-text-base);
  line-height: var(--stripe-line-height);
  color: var(--stripe-text-secondary);
}

/* Stats */
.stats {
  font-size: var(--stripe-text-sm);
  color: var(--stripe-text-muted);
}

.stats span {
  display: inline-block;
  margin-right: var(--stripe-space-md);
}

/* Ad spots modern */
.ad-spot {
  background: var(--stripe-bg-primary);
  border: 1px solid var(--stripe-border-primary);
  border-radius: var(--stripe-radius-md);
  padding: var(--stripe-space-xl);
  text-align: center;
  color: var(--stripe-text-muted);
  box-shadow: var(--stripe-shadow-xs);
}

/* Tabs */
.tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--stripe-border-primary);
  margin-bottom: var(--stripe-space-xl);
}

.tab-link {
  flex: 1;
  padding: var(--stripe-space-md) var(--stripe-space-lg);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  color: var(--stripe-text-secondary);
  font-weight: 500;
  font-size: var(--stripe-text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--stripe-transition);
}

.tab-link:hover {
  color: var(--stripe-accent-primary);
}

.tab-link.active {
  color: var(--stripe-text-primary);
  border-bottom-color: var(--stripe-accent-primary);
}

.tab-content {
  padding: var(--stripe-space-xl) 0;
}

.tab-pane {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.tab-pane.active {
  display: block;
  opacity: 1;
}

.fade-out {
  opacity: 0;
}

.fade-in {
  opacity: 1;
}

.buttons-row {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

.spin-anim {
  animation: spin 1s ease-in-out;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Footer */
.site-footer {
  background: var(--stripe-bg-secondary);
  border-top: 1px solid var(--stripe-border-primary);
  padding: var(--stripe-space-xxl) var(--stripe-space-lg);
  text-align: center;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}



.site-footer p,
.site-footer a {
  color: var(--stripe-text-secondary);
}

/* Mobile responsive with proper breakpoints */
@media (max-width: 1200px) {

  .container,
  .site-content-wrapper {
    padding: var(--stripe-space-sm);
  }

  h1 {
    font-size: var(--stripe-text-3xl);
  }

  h2 {
    font-size: var(--stripe-text-2xl);
  }

  h3 {
    font-size: var(--stripe-text-xl);
  }

  .site-header {
    padding: var(--stripe-space-md) 0;
  }

  /* COMMON MOBILE/TABLET STYLES (< 1200px) */
  .header-inner {
    padding: 0 var(--stripe-space-md);
  }

  /* Hide Desktop Nav but keep Toggle visible */
  .main-navigation {
    display: none;
    /* Toggled active class handles visibility */
  }

  /* MOBILE & TABLET LAYOUT (< 1200px) - Safer Flexbox Layout */
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    position: relative;
    /* Ensure header stacking context for badge */
    z-index: 1000;
  }

  /* Order: [Menu] [Logo] [Right] */
  .header-menu {
    order: 1;
    flex: 0 0 auto !important;
    /* Prevent growing */
    width: auto !important;
    justify-content: flex-start !important;
    /* Force left align */
    position: static;
    transform: none;
    z-index: 20;
    /* Ensure menu is above logo */
  }

  .header-logo {
    order: 2;
    flex: 1;
    display: flex;
    justify-content: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 40%;
    /* Prevent logo from reaching the menu buttons */
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through the container areas */
  }

  .header-logo a {
    pointer-events: auto;
    /* Re-enable clicks on the actual logo link */
  }

  .site-logo img {
    height: 35px;
    width: auto;
  }

  .header-right {
    order: 3;
    flex: 0 0 auto;
    position: static;
    transform: none;
    margin-left: auto;
    z-index: 20;
    /* Ensure profile/buttons are clickable */
  }

  /* Fix for Profile Badge Positioning */
  .header-right .user-avatar {
    position: relative !important;
    overflow: visible !important;
  }

  /* Ensure global badge has z-index and correct positioning context */
  #global-unread-badge {
    position: absolute !important;
    z-index: 100 !important;
    /* Override potential global misalignments */
    top: -2px !important;
    right: -2px !important;
    left: auto !important;
    transform: none !important;
  }

  /* Mobile navigation toggle */
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--stripe-space-sm);
  }

  .mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--stripe-text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 1px;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--stripe-bg-primary);
    border-top: 1px solid var(--stripe-border-primary);
    padding: var(--stripe-space-md);
    box-shadow: var(--stripe-shadow-md);
    display: none;
  }

  .main-navigation.active {
    display: block !important;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: var(--stripe-space-sm);
  }

  .main-navigation a {
    display: block;
    padding: var(--stripe-space-sm) 0;
  }

  .search-field {
    width: 100%;
  }

  .card {
    padding: var(--stripe-space-lg);
  }

  .page-header {
    padding: var(--stripe-space-lg) 0;
  }

  .page-header p {
    font-size: var(--stripe-text-lg);
  }

  .tabs-nav {
    flex-direction: column;
  }

  .tab-link {
    text-align: center;
    padding: var(--stripe-space-sm) var(--stripe-space-md);
  }

  .btn {
    width: 100%;
    margin-bottom: var(--stripe-space-sm);
  }

  .buttons-row {
    flex-direction: column;
  }
}

@media (max-width: 480px) {

  .container,
  .site-content-wrapper {
    padding: var(--stripe-space-xs);
  }

  .btn {
    font-size: var(--stripe-text-sm);
    height: 40px;
  }

  .search-field,
  .search-submit {
    height: 40px;
  }

  .card {
    padding: var(--stripe-space-md);
  }

  .ad-spot {
    padding: var(--stripe-space-lg);
  }

  .site-header {
    padding: var(--stripe-space-sm) 0;
  }

  .page-header {
    padding: var(--stripe-space-lg) 0;
  }
}

/* Language selector with flags */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: var(--stripe-space-sm);
  color: var(--stripe-text-secondary);
  cursor: pointer;
  font-size: var(--stripe-text-base);
  font-weight: 500;
  transition: var(--stripe-transition);
  justify-content: center;
  padding: var(--stripe-space-sm);
}

.lang-current:hover {
  color: var(--stripe-accent-primary);
}

.lang-current img {
  width: 20px;
  height: 15px;
  object-fit: cover;
}

.lang-options {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--stripe-bg-primary);
  border: 1px solid var(--stripe-border-primary);
  border-radius: var(--stripe-radius-sm);
  box-shadow: var(--stripe-shadow-sm);
  z-index: 1001;
  display: none;
  min-width: 100px;
  width: auto;
}

.lang-options div {
  display: flex;
  align-items: center;
  gap: var(--stripe-space-sm);
  padding: var(--stripe-space-sm) var(--stripe-space-md);
  cursor: pointer;
  transition: var(--stripe-transition);
  font-size: var(--stripe-text-base);
  font-weight: 500;
}

.lang-options div:hover {
  background: var(--stripe-bg-secondary);
}

.lang-options div img {
  width: 20px;
  height: 15px;
  object-fit: cover;
}

/* Language and Theme Selector Styles for Header */
.lang-option.active {
  opacity: 1 !important;
}

.lang-option.active img {
  filter: none !important;
}

.lang-option.inactive {
  opacity: 0.3;
}

.lang-option.inactive img {
  filter: grayscale(100%) !important;
}

.theme-option.active {
  opacity: 1 !important;
}

.theme-option.active i {
  filter: none !important;
}

.theme-option.inactive {
  opacity: 0.3;
}

.theme-option.inactive i {
  filter: grayscale(100%) !important;
}

/* Theme toggle switch */
.theme-toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 28px;
  background: var(--stripe-border-primary);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.theme-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--stripe-border-primary);
  border-radius: 14px;
  transition: 0.3s;
}

.slider:before {
  position: absolute;
  content: "☀️";
  color: var(--stripe-text-primary);
  font-size: 16px;
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  transition: 0.3s;
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-switch input:checked+.slider:before {
  content: "🌙";
  transform: translateX(28px);
}

/* User avatar menu */
.user-avatar-menu {
  position: relative;
  display: inline-block;
}

.user-avatar {
  display: flex;
  align-items: center;
  gap: var(--stripe-space-sm);
  cursor: pointer;
  padding: var(--stripe-space-sm);
  border-radius: var(--stripe-radius-sm);
  transition: var(--stripe-transition);
}

.user-avatar:hover {
  background: var(--stripe-bg-secondary);
}

.avatar-circle {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: var(--stripe-accent-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--stripe-text-sm);
  text-transform: uppercase;
}

.user-name {
  font-size: var(--stripe-text-sm);
  font-weight: 500;
  color: var(--stripe-text-secondary);
  white-space: nowrap;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--stripe-bg-primary);
  border: 1px solid var(--stripe-border-primary);
  border-radius: var(--stripe-radius-sm);
  box-shadow: var(--stripe-shadow-md);
  min-width: 160px;
  z-index: 1001;
  display: none;
}

.user-dropdown a {
  display: block;
  padding: var(--stripe-space-sm) var(--stripe-space-md);
  color: var(--stripe-text-secondary);
  text-decoration: none;
  transition: var(--stripe-transition);
  border-bottom: 1px solid var(--stripe-border-secondary);
}

.user-dropdown a:last-child {
  border-bottom: none;
}

.user-dropdown a:hover {
  background: var(--stripe-bg-secondary);
  color: var(--stripe-accent-primary);
}

/* Login emoji styling */
.login-emoji {
  font-size: 24px;
  color: var(--stripe-accent-primary);
  text-decoration: none;
  transition: var(--stripe-transition);
  display: inline-block;
  line-height: 1;
}

.login-emoji:hover {
  color: #ff0000;
  transform: scale(1.1);
}

a {
  color: var(--stripe-accent-primary);
}

a:hover {
  color: var(--stripe-accent-secondary);
}

/* Optimized: Combined dark modes into html[data-theme="dark"] */

/* User Role Display in Header */
.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.user-role {
  font-size: 12px;
  color: #cc0000;
  margin-top: 2px;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.user-role:hover {
  opacity: 0.7;
}

/* Role Selection Modal - Exact Match to Page Design */
.role-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 20px;
}

.role-modal-content {
  width: 100%;
  max-width: 1100px;
  background: #0b0b0b;
  border-radius: 14px;
  padding: 60px 40px;
  color: #fff;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  animation: fadeInScale .35s ease;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.role-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
  opacity: 0.7;
}

.role-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

.experience-grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.experience-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 1201px) {
  .experience-column {
    width: 180px;
    margin-top: 22px;
  }
}

@media (max-width: 1200px) {
  .experience-column {
    width: 45%;
    margin-bottom: 40px;
  }

  .experience-item {
    width: 130px !important;
    height: 130px !important;
  }

  .experience-label {
    font-size: 15px;
  }
}

.experience-item {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid transparent;
  cursor: pointer;
  transition: .28s;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  margin-bottom: 22px;
}

.experience-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(.95);
  transition: .28s;
}

.experience-item:hover {
  transform: scale(1.07);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.15);
}

.experience-item:hover img {
  filter: grayscale(20%) brightness(1.1);
}

.experience-item.selected {
  transform: translateY(-4px) scale(1.1);
  border-color: #d4af37;
  box-shadow: 0 10px 35px rgba(212, 175, 55, 0.9);
}

.experience-item.selected img {
  filter: none;
  transform: scale(1.07);
}

.experience-item.selected::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.55);
}

.experience-label {
  margin-top: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 19px;
  text-align: center;
}

.role-save-button {
  margin-top: 20px;
  width: 100%;
  max-width: 420px;
  padding: 17px;
  background: #cc0000;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.role-save-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(204, 0, 0, 0.3);
}

.role-save-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Avatar Image Styles */
.avatar-circle {
  overflow: hidden;
  /* Ensure image stays within circle */
}

.avatar-circle img.avatar-image,
.avatar-circle img,
.story-header .avatar-circle img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50%;
  display: block;
}

/* =====================================================
   GAME STYLES - El Guion de la Reina
   ===================================================== */

/* Game Header */
.game-header {
  background: linear-gradient(135deg, var(--stripe-accent-primary) 0%, var(--stripe-accent-secondary) 100%);
  color: white;
  padding: var(--stripe-space-xxl) var(--stripe-space-lg);
  margin-bottom: var(--stripe-space-xl);
}

.game-header h1 {
  color: white;
  margin-bottom: var(--stripe-space-sm);
}

.game-tagline {
  font-size: var(--stripe-text-lg);
  opacity: 0.9;
}

/* User Stats Bar */
.user-stats-bar {
  display: flex;
  gap: var(--stripe-space-xl);
  justify-content: center;
  margin-top: var(--stripe-space-lg);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--stripe-space-xs);
  padding: var(--stripe-space-md);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--stripe-radius-md);
  min-width: 100px;
}

.stat-item i {
  font-size: var(--stripe-text-2xl);
}

.stat-label {
  font-size: var(--stripe-text-sm);
  opacity: 0.8;
}

.stat-value {
  font-size: var(--stripe-text-xl);
  font-weight: 600;
}

/* Game Container */
.game-container {
  min-height: 400px;
  margin-bottom: var(--stripe-space-xl);
}

.loading-spinner {
  text-align: center;
  padding: var(--stripe-space-xxl);
}

.loading-spinner i {
  font-size: var(--stripe-text-5xl);
  color: var(--stripe-accent-primary);
  margin-bottom: var(--stripe-space-md);
}

/* Game Lobby */
.game-lobby {
  max-width: 800px;
  margin: 0 auto;
}

.lobby-actions {
  display: flex;
  flex-direction: column;
  gap: var(--stripe-space-lg);
  margin: var(--stripe-space-xl) 0;
}

.join-room-form {
  display: flex;
  gap: var(--stripe-space-md);
}

.join-room-form input {
  flex: 1;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 2px;
}

/* Role Cards */
.role-explanations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--stripe-space-lg);
  margin-top: var(--stripe-space-lg);
}

.role-card {
  padding: var(--stripe-space-lg);
  border-radius: var(--stripe-radius-md);
  border: 2px solid transparent;
  transition: var(--stripe-transition);
}

.role-card h4 {
  margin-bottom: var(--stripe-space-sm);
  display: flex;
  align-items: center;
  gap: var(--stripe-space-sm);
}

.hotwife-role {
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.1) 0%, rgba(255, 105, 180, 0.1) 100%);
  border-color: #ff1493;
}

.hotwife-role h4 {
  color: #ff1493;
}

.toro-role {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 140, 0, 0.1) 100%);
  border-color: #ffd700;
}

.toro-role h4 {
  color: #ff8c00;
}

.cornudo-role {
  background: linear-gradient(135deg, rgba(100, 149, 237, 0.1) 0%, rgba(70, 130, 180, 0.1) 100%);
  border-color: #6495ed;
}

.cornudo-role h4 {
  color: #4682b4;
}

/* Waiting Room */
.room-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--stripe-space-lg);
}

.room-code {
  font-family: 'Courier New', monospace;
  font-size: var(--stripe-text-3xl);
  font-weight: 700;
  color: var(--stripe-accent-primary);
  letter-spacing: 4px;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--stripe-space-md);
  margin-top: var(--stripe-space-md);
}

.player-item {
  padding: var(--stripe-space-md);
  border-radius: var(--stripe-radius-sm);
  border-left: 4px solid;
  display: flex;
  flex-direction: column;
  gap: var(--stripe-space-xs);
}

.player-item.hotwife-role {
  border-color: #ff1493;
  background: rgba(255, 20, 147, 0.05);
}

.player-item.toro-role {
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.05);
}

.player-item.cornudo-role {
  border-color: #6495ed;
  background: rgba(100, 149, 237, 0.05);
}

.player-name {
  font-weight: 600;
}

.player-role {
  font-size: var(--stripe-text-sm);
  opacity: 0.7;
}

.room-status {
  margin: var(--stripe-space-lg) 0;
}

.status-ready {
  color: #22c55e;
}

.status-waiting {
  color: #f59e0b;
}

/* Game Phase */
.game-phase {
  max-width: 900px;
  margin: 0 auto;
}

.phase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--stripe-space-xl);
  padding: var(--stripe-space-lg);
  background: var(--stripe-bg-primary);
  border-radius: var(--stripe-radius-md);
}

.timer {
  font-size: var(--stripe-text-2xl);
  font-weight: 700;
  color: var(--stripe-accent-primary);
  display: flex;
  align-items: center;
  gap: var(--stripe-space-sm);
}

.timer-warning {
  color: #ef4444;
  animation: pulse 1s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Prompt Display */
.prompt-display {
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.1) 0%, rgba(255, 105, 180, 0.1) 100%);
  border-left: 4px solid #ff1493;
  margin-bottom: var(--stripe-space-xl);
}

.prompt-text {
  font-size: var(--stripe-text-xl);
  font-style: italic;
  color: var(--stripe-text-primary);
}

/* Toro Writing Area */
.toro-writing-area textarea {
  min-height: 150px;
  font-size: var(--stripe-text-lg);
  resize: vertical;
}

.char-count {
  text-align: right;
  font-size: var(--stripe-text-sm);
  color: var(--stripe-text-muted);
  margin-top: var(--stripe-space-xs);
}

/* Inspiration Chips */
.inspiration-chips {
  margin-bottom: var(--stripe-space-lg);
}

.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--stripe-space-sm);
  margin-top: var(--stripe-space-sm);
}

.chip {
  padding: var(--stripe-space-sm) var(--stripe-space-md);
  background: var(--stripe-bg-secondary);
  border: 1px solid var(--stripe-border-primary);
  border-radius: 20px;
  font-size: var(--stripe-text-sm);
  cursor: pointer;
  transition: var(--stripe-transition);
}

.chip:hover {
  background: var(--stripe-accent-primary);
  color: white;
  border-color: var(--stripe-accent-primary);
}

/* Submission Counter */
.submission-counter {
  text-align: center;
  padding: var(--stripe-space-xl);
}

.submission-counter i {
  font-size: var(--stripe-text-5xl);
  color: var(--stripe-accent-primary);
  margin-bottom: var(--stripe-space-md);
}

/* Voting */
.submissions-list {
  display: flex;
  flex-direction: column;
  gap: var(--stripe-space-lg);
}

.submission-item {
  padding: var(--stripe-space-lg);
  background: var(--stripe-bg-secondary);
  border-radius: var(--stripe-radius-md);
  border: 2px solid transparent;
  transition: var(--stripe-transition);
}

.submission-item.voted-approve {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.submission-item.voted-reject {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  opacity: 0.5;
}

.submission-text {
  font-size: var(--stripe-text-lg);
  margin-bottom: var(--stripe-space-md);
  font-style: italic;
}

.vote-buttons {
  display: flex;
  gap: var(--stripe-space-md);
}

.vote-approve {
  flex: 1;
  background: #22c55e;
  color: white;
  border-color: #22c55e;
}

.vote-approve:hover {
  background: #16a34a;
}

.vote-reject {
  flex: 1;
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

.vote-reject:hover {
  background: #dc2626;
}

/* Finalists */
.finalists-list {
  display: flex;
  flex-direction: column;
  gap: var(--stripe-space-lg);
}

.finalist-item {
  padding: var(--stripe-space-xl);
  background: var(--stripe-bg-secondary);
  border-radius: var(--stripe-radius-md);
  border: 2px solid transparent;
  transition: var(--stripe-transition);
}

.finalist-item.selected-winner {
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.1);
}

.finalist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--stripe-space-md);
}

.vote-count {
  font-size: var(--stripe-text-sm);
  color: var(--stripe-text-muted);
}

.finalist-text {
  font-size: var(--stripe-text-xl);
  font-style: italic;
  margin-bottom: var(--stripe-space-lg);
}

/* Results */
.winner-announcement {
  text-align: center;
  padding: var(--stripe-space-xxl);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 140, 0, 0.2) 100%);
  border: 2px solid #ffd700;
}

.winner-announcement i {
  font-size: var(--stripe-text-5xl);
  color: #ffd700;
}

.winner-info h4 {
  font-size: var(--stripe-text-3xl);
  color: var(--stripe-accent-primary);
  margin: var(--stripe-space-md) 0;
}

.winner-text {
  font-size: var(--stripe-text-xl);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
}

.xp-awards {
  margin-top: var(--stripe-space-xl);
}

.xp-list {
  display: flex;
  flex-direction: column;
  gap: var(--stripe-space-md);
}

.xp-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--stripe-space-md);
  background: var(--stripe-bg-secondary);
  border-radius: var(--stripe-radius-sm);
}

.xp-item span {
  font-weight: 700;
  color: var(--stripe-accent-primary);
}

/* El Termómetro */
.termometro {
  margin-top: var(--stripe-space-xl);
  padding: var(--stripe-space-lg);
  background: var(--stripe-bg-secondary);
  border-radius: var(--stripe-radius-md);
}

.termometro-label {
  text-align: center;
  font-weight: 600;
  margin-bottom: var(--stripe-space-sm);
}

.termometro-bar {
  height: 30px;
  background: var(--stripe-bg-tertiary);
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.termometro-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff1493 0%, #ff6b6b 50%, #ff0000 100%);
  transition: width 0.5s ease;
  border-radius: 15px;
}

/* El Rincón (Cornudo Chat) */
.el-rincon {
  margin-top: var(--stripe-space-xl);
  padding: var(--stripe-space-lg);
  background: rgba(100, 149, 237, 0.1);
  border: 2px solid #6495ed;
  border-radius: var(--stripe-radius-md);
}

.el-rincon h4 {
  color: #4682b4;
  margin-bottom: var(--stripe-space-md);
}

.chat-messages {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: var(--stripe-space-md);
  padding: var(--stripe-space-md);
  background: var(--stripe-bg-primary);
  border-radius: var(--stripe-radius-sm);
}

.chat-message {
  margin-bottom: var(--stripe-space-sm);
  padding: var(--stripe-space-sm);
  border-radius: var(--stripe-radius-sm);
}

.chat-message.hotwife-message {
  background: rgba(255, 20, 147, 0.1);
}

.chat-message.toro-message {
  background: rgba(255, 215, 0, 0.1);
}

.chat-message.cornudo-message {
  background: rgba(100, 149, 237, 0.1);
}

.chat-input {
  display: flex;
  gap: var(--stripe-space-sm);
}

.chat-input input {
  flex: 1;
}

/* Leaderboards */
.leaderboard-list {
  min-height: 300px;
}

.leaderboard-items {
  display: flex;
  flex-direction: column;
  gap: var(--stripe-space-sm);
}

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: var(--stripe-space-md);
  padding: var(--stripe-space-md);
  background: var(--stripe-bg-secondary);
  border-radius: var(--stripe-radius-sm);
  transition: var(--stripe-transition);
}

.leaderboard-item:hover {
  background: var(--stripe-bg-tertiary);
}

.leaderboard-item.top-three {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, var(--stripe-bg-secondary) 100%);
  border-left: 4px solid #ffd700;
}

.leaderboard-item .rank {
  font-size: var(--stripe-text-2xl);
  font-weight: 700;
  min-width: 50px;
  text-align: center;
}

.leaderboard-item .player-name {
  flex: 1;
  font-weight: 600;
}

.leaderboard-item .player-level {
  font-size: var(--stripe-text-sm);
  color: var(--stripe-text-muted);
}

.leaderboard-item .player-points {
  font-weight: 700;
  color: var(--stripe-accent-primary);
}

/* Game Info */
.game-phases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--stripe-space-lg);
  margin-top: var(--stripe-space-lg);
}

.phase-card {
  text-align: center;
  padding: var(--stripe-space-lg);
  background: var(--stripe-bg-secondary);
  border-radius: var(--stripe-radius-md);
  transition: var(--stripe-transition);
}

.phase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--stripe-shadow-md);
}

.phase-number {
  width: 50px;
  height: 50px;
  margin: 0 auto var(--stripe-space-md);
  background: var(--stripe-accent-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--stripe-text-2xl);
  font-weight: 700;
}

.xp-rewards {
  margin-top: var(--stripe-space-xl);
  padding: var(--stripe-space-lg);
  background: var(--stripe-bg-primary);
  border-radius: var(--stripe-radius-md);
}

.xp-rewards ul {
  list-style: none;
  padding: 0;
  margin-top: var(--stripe-space-md);
}

.xp-rewards li {
  padding: var(--stripe-space-sm) 0;
  display: flex;
  align-items: center;
  gap: var(--stripe-space-sm);
}

.xp-rewards li i {
  color: var(--stripe-accent-primary);
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: var(--stripe-space-lg);
  background: var(--stripe-bg-primary);
  border: 1px solid var(--stripe-border-primary);
  border-radius: var(--stripe-radius-md);
  box-shadow: var(--stripe-shadow-lg);
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* Alert Styles */
.alert {
  padding: var(--stripe-space-md);
  border-radius: var(--stripe-radius-sm);
  margin-top: var(--stripe-space-md);
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid #22c55e;
  color: #16a34a;
}

/* Responsive Game Styles */
@media (max-width: 1200px) {
  .user-stats-bar {
    gap: var(--stripe-space-md);
  }

  .stat-item {
    min-width: 80px;
    padding: var(--stripe-space-sm);
  }

  .room-code {
    font-size: var(--stripe-text-xl);
    letter-spacing: 2px;
  }

  .players-grid {
    grid-template-columns: 1fr;
  }

  .phase-header {
    flex-direction: column;
    gap: var(--stripe-space-md);
  }

  .game-phases {
    grid-template-columns: 1fr;
  }

  .vote-buttons {
    flex-direction: column;
  }

  .join-room-form {
    flex-direction: column;
  }
}

/* ========================================
   XP PROGRESS BAR STYLES
   Add this to style.css at the end
   ======================================== */

/* XP Progress Bar in Header */
.xp-progress-bar {
  width: 100%;
  transition: all 0.3s ease;
}

.xp-progress-bar:hover .xp-bar-fill {
  box-shadow: 0 0 10px var(--stripe-accent-primary);
}

.xp-bar-container {
  width: 100%;
}

.xp-bar-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 11px;
  color: var(--stripe-text-muted);
}

.xp-level {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--stripe-accent-primary);
}

.xp-level i {
  font-size: 10px;
}

.xp-amount {
  font-weight: 500;
}

.xp-bar-track {
  width: 100%;
  height: 6px;
  background: var(--stripe-bg-tertiary);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--stripe-accent-primary) 0%, var(--stripe-accent-secondary) 100%);
  border-radius: 10px;
  transition: width 1s ease-out, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.xp-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .xp-bar-info {
    font-size: 10px;
  }

  .xp-bar-track {
    height: 5px;
  }
}

/* User dropdown - add XP info */
.user-dropdown {
  min-width: 200px;
}

.user-dropdown a.view-progression {
  background: linear-gradient(135deg, var(--stripe-accent-primary) 0%, var(--stripe-accent-secondary) 100%);
  color: white !important;
  font-weight: 600;
  text-align: center;
}

.user-dropdown a.view-progression:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ========================================
   UNREAD MESSAGES BADGE POSITIONING
   ======================================== */

/* Medium screens (tablets) - move slightly up and left */
@media (min-width: 768px) and (max-width: 1200px) {
  #global-unread-badge {
    top: 5px !important;
    left: 55px !important;
    right: unset !important;
    transform: translateX(-50%) !important;
  }
}

/* Desktop positioning */
@media (min-width: 1201px) {
  .user-avatar {
    position: relative !important;
    gap: 20px !important;
  }

  #global-unread-badge {
    top: 10px !important;
    left: 60px !important;
    right: unset !important;
    transform: translateX(-50%) !important;
  }
}

/* Larger Avatar */
.avatar-circle {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #d4af37;
}

.user-avatar-menu {
  gap: 12px;
}

/* Single Line XP Bar */
.xp-bar-container {
  display: flex;
  align-items: center;
  gap: 10px;
  /* Increased gap */
  width: 100%;
}

.xp-level {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--stripe-accent-primary);
  font-size: 13px;
  /* Larger font */
  white-space: nowrap;
}

.xp-bar-track {
  flex-grow: 1;
  height: 8px;
  /* Slightly thicker */
  background: var(--stripe-bg-tertiary);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin: 0;
  max-width: 60px !important;
  /* Shorter bar */
}

.xp-amount {
  font-size: 12px;
  /* Larger font */
  color: var(--stripe-text-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* Adjust user info spacing */
.user-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 180px;
}

/* ========================================
   HEADER SPACING ADJUSTMENTS
   ======================================== */
.header-logo {
  margin-right: 40px;
}

.header-menu {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  margin-right: 40px;
}

/* ========================================
   CUSTOM SEARCH FORM STYLES
   ======================================== */
.cuckspot-search-form .search-group {
  display: flex;
  align-items: center;
  background: var(--stripe-bg-primary);
  border: 1px solid var(--stripe-border-primary);
  border-radius: var(--stripe-radius-md);
  padding: 4px;
  transition: var(--stripe-transition);
  height: 50px;
  /* Fixed height for consistency */
}

.cuckspot-search-form .search-group:focus-within {
  border-color: var(--stripe-accent-primary);
  box-shadow: var(--stripe-focus-ring);
}

.cuckspot-search-form .search-field {
  flex-grow: 1;
  border: none !important;
  background: transparent !important;
  padding: 0 12px !important;
  height: 100% !important;
  box-shadow: none !important;
  outline: none !important;
  font-size: var(--stripe-text-base);
}

.cuckspot-search-form .search-submit {
  background: transparent;
  border: none;
  color: var(--stripe-accent-primary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--stripe-radius-sm);
  transition: var(--stripe-transition);
  font-size: 18px;
}

.cuckspot-search-form .search-submit:hover {
  background: rgba(178, 34, 34, 0.1);
  /* Light red background on hover */
  transform: scale(1.1);
}

/* ========================================
   PROGRESSION PAGE (BATTLE PASS) STYLES
   ======================================== */

.progression-hero {
  background: linear-gradient(135deg, var(--stripe-accent-primary) 0%, #2c3e50 100%);
  border-radius: var(--stripe-radius-lg);
  padding: var(--stripe-space-lg);
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.progression-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: url('assets/pattern.png');
  /* Optional texture */
  opacity: 0.1;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.level-circle {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  border: 4px solid white;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.level-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.level-number {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
}

.user-details h1 {
  margin: 0;
  font-size: 32px;
  color: white;
}

.rank-badge {
  display: inline-block;
  background: rgba(0, 0, 0, 0.3);
  padding: 5px 15px;
  border-radius: 20px;
  margin-top: 5px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.xp-large-bar {
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  border-radius: 15px;
  position: relative;
  z-index: 1;
}

.xp-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
}

.xp-track {
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #f1c40f, #f39c12);
  border-radius: 10px;
  transition: width 1s ease-out;
  box-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
}

.xp-total {
  text-align: right;
  font-size: 12px;
  opacity: 0.7;
}

/* Battle Pass Timeline */
.battle-pass-section {
  background: var(--stripe-bg-primary);
  border-radius: var(--stripe-radius-lg);
  height: 70px;
  border: 4px solid var(--stripe-border-secondary);
}

.section-title {
  margin-bottom: 30px;
  font-size: 24px;
  color: var(--stripe-text-primary);
}

.timeline-container {
  overflow-x: auto;
  padding-bottom: 40px;
  /* Space for scrollbar and popups */
  scrollbar-width: thin;
  scrollbar-color: var(--stripe-accent-primary) var(--stripe-bg-tertiary);
}

.timeline-track {
  display: flex;
  align-items: center;
  gap: 60px;
  /* Space between nodes */
  padding: 40px 20px;
  min-width: max-content;
  position: relative;
}

/* Connecting Line */
.timeline-track::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  background: var(--stripe-border-secondary);
  z-index: 0;
  transform: translateY(-50%);
}

.level-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.node-circle {
  width: 50px;
  height: 50px;
  background: var(--stripe-bg-primary);
  border: 3px solid var(--stripe-border-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--stripe-text-muted);
  transition: all 0.3s ease;
  position: relative;
}

/* Unlocked State */
.level-node.unlocked .node-circle {
  background: var(--stripe-accent-primary);
  border-color: var(--stripe-accent-primary);
  color: white;
  box-shadow: 0 0 15px rgba(178, 34, 34, 0.4);
}

/* Current State */
.level-node.current .node-circle {
  width: 70px;
  height: 70px;
  background: white;
  border: 4px solid var(--stripe-accent-primary);
  color: var(--stripe-accent-primary);
  font-size: 24px;
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(178, 34, 34, 0.6);
}

.pulse-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid var(--stripe-accent-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.lock-icon {
  font-size: 12px;
  margin-top: 2px;
}

.current-indicator {
  position: absolute;
  top: -40px;
  background: var(--stripe-accent-primary);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.current-indicator i {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--stripe-accent-primary);
}

/* Reward Card */
.reward-card {
  position: absolute;
  top: 60px;
  /* Below the node */
  width: 120px;
  background: var(--stripe-bg-primary);
  border: 1px solid var(--stripe-border-primary);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.level-node.current .reward-card {
  top: 80px;
}

.reward-icon {
  font-size: 24px;
  color: #f1c40f;
  margin-bottom: 5px;
}

.reward-name {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 4px;
  color: var(--stripe-text-primary);
}

.reward-type {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--stripe-text-muted);
  letter-spacing: 0.5px;
}

.level-node.locked .reward-card {
  opacity: 0.6;
  filter: grayscale(100%);
}

.level-node:hover .reward-card {
  transform: translateY(-5px);
  opacity: 1;
  filter: none;
  z-index: 10;
}

/* ========================================
   PROGRESSION PAGE (BATTLE PASS) STYLES - FIXED HEIGHT
   ======================================== */

.timeline-container {
  overflow-x: auto;
  padding: 60px 20px 80px;
  /* Increased padding for more height */
  scrollbar-width: thin;
  scrollbar-color: var(--stripe-accent-primary) var(--stripe-bg-tertiary);
  min-height: 400px;
  /* Minimum height to prevent cutting */
}

.timeline-track {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 60px 20px;
  /* Increased vertical padding */
  min-width: max-content;
  position: relative;
  min-height: 350px;
  /* Ensure enough height for rewards */
}

.reward-card {
  position: absolute;
  top: 100px;
  /* Moved down to be fully visible */
  width: 120px;
  background: var(--stripe-bg-primary);
  border: 1px solid var(--stripe-border-primary);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.level-node.current .reward-card {
  top: 120px;
  /* Extra space for current level */
}

.current-indicator {
  position: absolute;
  top: -50px;
  /* Moved up to avoid overlap */
  background: var(--stripe-accent-primary);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* ========================================
   ENHANCED PROGRESSION PAGE - NO BOX, WITH NAVIGATION
   ======================================== */

/* Timeline Title */
.timeline-title {
  text-align: center;
  font-size: 28px;
  margin: 40px 0 30px;
  color: var(--stripe-text-primary);
}

/* Navigation Arrows */
.timeline-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: var(--stripe-accent-primary);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  font-size: 20px;
}

.timeline-nav:hover {
  background: #a82828;
  transform: translateY(-50%) scale(1.1);
}

.timeline-nav-left {
  left: 20px;
}

.timeline-nav-right {
  right: 20px;
}

/* Timeline Container - No scrollbar */
.timeline-container {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 80px 20px 100px;
  margin: 0 auto;
  max-width: 100%;
  position: relative;
  /* Hide scrollbar */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.timeline-container::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.timeline-track {
  display: flex;
  align-items: center;
  gap: 70px;
  padding: 80px 40px;
  min-width: max-content;
  position: relative;
  min-height: 450px;
}

/* Connecting Line */
.timeline-track::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  background: linear-gradient(90deg,
      var(--stripe-border-secondary) 0%,
      var(--stripe-accent-primary) 50%,
      var(--stripe-border-secondary) 100%);
  z-index: 0;
  transform: translateY(-50%);
}

/* Level Nodes */
.level-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.level-node:hover {
  transform: scale(1.05);
}

.node-circle {
  width: 55px;
  height: 55px;
  background: var(--stripe-bg-primary);
  border: 3px solid var(--stripe-border-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--stripe-text-muted);
  transition: all 0.3s ease;
  position: relative;
}

/* Unlocked State */
.level-node.unlocked .node-circle {
  background: linear-gradient(135deg, var(--stripe-accent-primary), #a82828);
  border-color: var(--stripe-accent-primary);
  color: white;
  box-shadow: 0 0 20px rgba(178, 34, 34, 0.5);
}

/* Current State */
.level-node.current .node-circle {
  width: 75px;
  height: 75px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border: 4px solid var(--stripe-accent-primary);
  color: #000;
  font-size: 26px;
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

.pulse-ring {
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border: 3px solid #FFD700;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 1;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.lock-icon {
  font-size: 14px;
  margin-top: 2px;
}

.current-indicator {
  position: absolute;
  top: -60px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.current-indicator i {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  color: #FFD700;
  font-size: 16px;
}

/* Reward Cards */
.reward-card {
  position: absolute;
  top: 110px;
  width: 140px;
  background: var(--stripe-bg-primary);
  border: 2px solid var(--stripe-border-primary);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.level-node.current .reward-card {
  top: 130px;
}

.reward-icon {
  font-size: 32px;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}

/* Reward Type Colors */
.frame-reward {
  border-color: #FFD700;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
}

.badge-reward {
  border-color: #4169E1;
  background: linear-gradient(135deg, rgba(65, 105, 225, 0.1), rgba(65, 105, 225, 0.05));
}

.feature-reward {
  border-color: #32CD32;
  background: linear-gradient(135deg, rgba(50, 205, 50, 0.1), rgba(50, 205, 50, 0.05));
}

.title-reward {
  border-color: var(--stripe-accent-primary);
  background: linear-gradient(135deg, rgba(178, 34, 34, 0.1), rgba(178, 34, 34, 0.05));
}

.frame-reward .reward-icon {
  color: #FFD700;
}

.badge-reward .reward-icon {
  color: #4169E1;
}

.feature-reward .reward-icon {
  color: #32CD32;
}

.title-reward .reward-icon {
  color: var(--stripe-accent-primary);
}

.reward-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  color: var(--stripe-text-primary);
}

.reward-type {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--stripe-text-muted);
  letter-spacing: 0.8px;
  font-weight: 600;
}

.level-node.locked .reward-card {
  opacity: 0.5;
  filter: grayscale(100%);
}

.level-node:hover .reward-card {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.level-node:hover .reward-icon {
  transform: scale(1.15) rotate(5deg);
}

/* Mobile Responsive */
@media (max-width: 1200px) {
  .timeline-nav {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .timeline-nav-left {
    left: 10px;
  }

  .timeline-nav-right {
    right: 10px;
  }

  .timeline-track {
    gap: 50px;
    padding: 60px 20px;
    min-height: 380px;
  }

  .reward-card {
    width: 120px;
    padding: 10px;
  }

  .reward-icon {
    font-size: 26px;
  }

  .reward-name {
    font-size: 11px;
  }
}

/* Updated Progression Page Styles */

/* Timeline Title - Closer to content */
.timeline-title {
  text-align: center;
  font-size: 28px;
  margin: 30px 0 20px;
  /* Reduced margin */
  color: var(--stripe-text-primary);
}

/* Timeline Container - Closer to title */
.timeline-container {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 40px 20px 100px;
  /* Reduced top padding */
  margin: 0 auto;
  max-width: 100%;
  position: relative;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.timeline-container::-webkit-scrollbar {
  display: none;
}

.timeline-track {
  display: flex;
  align-items: center;
  gap: 70px;
  padding: 60px 40px;
  /* Reduced padding */
  min-width: max-content;
  position: relative;
  min-height: 450px;
}

/* Larger Node Circles */
.node-circle {
  width: 65px;
  /* Increased from 55px */
  height: 65px;
  background: var(--stripe-bg-primary);
  border: 3px solid var(--stripe-border-secondary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  /* Changed to column for lock on top */
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--stripe-text-muted);
  transition: all 0.3s ease;
  position: relative;
}

/* Lock Icon - Positioned on top */
.lock-icon-top {
  font-size: 12px;
  margin-bottom: 2px;
  order: -1;
  /* Ensures it appears before the number */
}

/* Current Level - Larger and golden */
.level-node.current .node-circle {
  width: 80px;
  /* Increased */
  height: 80px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border: 4px solid var(--stripe-accent-primary);
  color: #000;
  font-size: 26px;
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

/* Removed "T�" indicator */
.current-indicator {
  display: none;
  /* Hidden as requested */
}

/* Tier Cards - Rank titles every 10 levels */
.tier-card {
  position: absolute;
  top: 100px;
  width: 160px;
  background: var(--stripe-bg-primary);
  border: 3px solid;
  border-radius: 12px;
  padding: 20px 14px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.tier-name {
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.level-node.current .tier-card {
  top: 120px;
}

.level-node:hover .tier-card {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Reward Cards - No type label */
.reward-card {
  position: absolute;
  top: 110px;
  width: 140px;
  background: var(--stripe-bg-primary);
  border: 2px solid var(--stripe-border-primary);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.level-node.current .reward-card {
  top: 130px;
}

.reward-icon {
  font-size: 36px;
  /* Larger icon */
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}

.reward-name {
  font-size: 13px;
  /* Slightly larger */
  font-weight: 700;
  line-height: 1.3;
  color: var(--stripe-text-primary);
}

/* Removed reward-type label */
.reward-type {
  display: none;
  /* Hidden as requested */
}

/* Mobile Responsive */
@media (max-width: 1200px) {
  .timeline-track {
    gap: 50px;
    padding: 50px 20px;
    min-height: 400px;
  }

  .node-circle {
    width: 60px;
    height: 60px;
  }

  .level-node.current .node-circle {
    width: 75px;
    height: 75px;
  }

  .tier-card {
    width: 140px;
    padding: 16px 12px;
  }

  .tier-name {
    font-size: 18px;
  }

  .reward-card {
    width: 120px;
    padding: 12px;
  }

  .reward-icon {
    font-size: 30px;
  }
}

/* ========================================
   TIER-GROUPED PROGRESSION PAGE STYLES
   ======================================== */

/* Tier Groups */
.tier-group {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-right: 40px;
  position: relative;
}

.tier-header {
  background: var(--stripe-bg-primary);
  border: 3px solid;
  border-radius: 12px;
  padding: 12px 24px;
  margin-bottom: 30px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tier-title {
  display: block;
  font-size: 24px;
  font-weight: 800;
  font-family: 'Montserrat', 'Arial Black', sans-serif;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.tier-range {
  display: block;
  font-size: 13px;
  color: var(--stripe-text-muted);
  font-weight: 600;
}

.tier-levels {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

/* Level Nodes in Tiers */
.level-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.level-node:hover {
  transform: scale(1.08);
}

.node-circle {
  width: 70px;
  height: 70px;
  background: var(--stripe-bg-secondary);
  border: 4px solid var(--stripe-border-secondary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.node-circle .node-number {
  font-size: 20px;
}

/* Unlocked nodes - colored by tier */
.level-node.unlocked .node-circle {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Current level */
.level-node.current .node-circle {
  width: 85px;
  height: 85px;
  transform: scale(1.15);
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.9);
  animation: currentGlow 2s infinite;
}

.level-node.current .node-number {
  font-size: 28px;
}

@keyframes currentGlow {

  0%,
  100% {
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.9);
  }

  50% {
    box-shadow: 0 0 50px rgba(255, 215, 0, 1);
  }
}

.pulse-ring {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 3px solid;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 1;
  }

  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Lock icon on top */
.lock-icon-top {
  font-size: 14px;
  margin-bottom: 3px;
  opacity: 0.7;
}

/* Reward Cards */
.reward-card {
  position: absolute;
  top: 90px;
  width: 145px;
  background: var(--stripe-bg-primary);
  border: 2px solid var(--stripe-border-primary);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 10;
}

.level-node.current .reward-card {
  top: 110px;
}

.reward-icon {
  font-size: 38px;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}

.reward-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--stripe-text-primary);
}

.level-node:hover .reward-card {
  transform: translateY(-10px) scale(1.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.level-node:hover .reward-icon {
  transform: scale(1.2) rotate(8deg);
}

/* Reward type colors */
.frame-reward {
  border-color: #FFD700;
}

.badge-reward {
  border-color: #4169E1;
}

.feature-reward {
  border-color: #32CD32;
}

.frame-reward .reward-icon {
  color: #FFD700;
}

.badge-reward .reward-icon {
  color: #4169E1;
}

.feature-reward .reward-icon {
  color: #32CD32;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
  .tier-header {
    padding: 10px 18px;
  }

  .tier-title {
    font-size: 20px;
  }

  .tier-levels {
    gap: 35px;
  }

  .node-circle {
    width: 60px;
    height: 60px;
  }

  .node-circle .node-number {
    font-size: 18px;
  }

  .level-node.current .node-circle {
    width: 75px;
    height: 75px;
  }

  .level-node.current .node-number {
    font-size: 24px;
  }

  .reward-card {
    width: 125px;
    padding: 12px;
  }

  .reward-icon {
    font-size: 32px;
  }
}

/* ========================================
   TIER-GROUPED PROGRESSION - BOXED STYLE
   ======================================== */

/* Tier Groups - Now with visible box around levels */
.tier-group {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-right: 50px;
  position: relative;
  background: rgba(0, 0, 0, 0.2);
  border: 3px solid;
  border-radius: 16px;
  padding: 20px 30px 40px;
}

.tier-header {
  background: var(--stripe-bg-primary);
  border: 3px solid;
  border-radius: 12px;
  padding: 12px 24px;
  margin-bottom: 30px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tier-title {
  display: block;
  font-size: 24px;
  font-weight: 800;
  font-family: 'Montserrat', 'Arial Black', sans-serif;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.tier-range {
  display: block;
  font-size: 13px;
  color: var(--stripe-text-muted);
  font-weight: 600;
}

.tier-levels {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

/* Level Nodes - Back to original style */
.level-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.level-node:hover {
  transform: scale(1.05);
}

.node-circle {
  width: 65px;
  height: 65px;
  background: var(--stripe-bg-primary);
  border: 3px solid var(--stripe-border-secondary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--stripe-text-muted);
  transition: all 0.3s ease;
  position: relative;
}

.node-circle .node-number {
  font-size: 18px;
}

/* Unlocked State - Original red gradient */
.level-node.unlocked .node-circle {
  background: linear-gradient(135deg, var(--stripe-accent-primary), #a82828);
  border-color: var(--stripe-accent-primary);
  color: white;
  box-shadow: 0 0 20px rgba(178, 34, 34, 0.5);
}

/* Current State - Golden */
.level-node.current .node-circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border: 4px solid var(--stripe-accent-primary);
  color: #000;
  font-size: 26px;
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

.level-node.current .node-number {
  font-size: 24px;
}

.pulse-ring {
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border: 3px solid #FFD700;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 1;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Lock icon on top */
.lock-icon-top {
  font-size: 12px;
  margin-bottom: 2px;
  order: -1;
}

/* Reward Cards */
.reward-card {
  position: absolute;
  top: 100px;
  width: 140px;
  background: var(--stripe-bg-primary);
  border: 2px solid var(--stripe-border-primary);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.level-node.current .reward-card {
  top: 120px;
}

.reward-icon {
  font-size: 36px;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}

.reward-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--stripe-text-primary);
}

.level-node:hover .reward-card {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.level-node:hover .reward-icon {
  transform: scale(1.15) rotate(5deg);
}

/* Reward type colors */
.frame-reward {
  border-color: #FFD700;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
}

.badge-reward {
  border-color: #4169E1;
  background: linear-gradient(135deg, rgba(65, 105, 225, 0.1), rgba(65, 105, 225, 0.05));
}

.feature-reward {
  border-color: #32CD32;
  background: linear-gradient(135deg, rgba(50, 205, 50, 0.1), rgba(50, 205, 50, 0.05));
}

.frame-reward .reward-icon {
  color: #FFD700;
}

.badge-reward .reward-icon {
  color: #4169E1;
}

.feature-reward .reward-icon {
  color: #32CD32;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
  .tier-group {
    padding: 15px 20px 30px;
    margin-right: 30px;
  }

  .tier-header {
    padding: 10px 18px;
  }

  .tier-title {
    font-size: 20px;
  }

  .tier-levels {
    gap: 35px;
  }

  .node-circle {
    width: 60px;
    height: 60px;
  }

  .node-circle .node-number {
    font-size: 16px;
  }

  .level-node.current .node-circle {
    width: 75px;
    height: 75px;
  }

  .level-node.current .node-number {
    font-size: 22px;
  }

  .reward-card {
    width: 120px;
    padding: 12px;
  }

  .reward-icon {
    font-size: 30px;
  }
}

/* ========================================
   BATTLE PASS RANGES STYLES
   ======================================== */

.battle-pass-ranges-container {
  margin-top: 40px;
  background: var(--stripe-bg-primary);
  border-radius: var(--stripe-radius-lg);
  padding: var(--stripe-space-xl);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.battle-pass-header {
  text-align: center;
  margin-bottom: var(--stripe-space-xl);
  padding-bottom: var(--stripe-space-lg);
  border-bottom: 2px solid var(--stripe-border-primary);
}

.battle-pass-header h2 {
  font-size: var(--stripe-text-4xl);
  font-weight: 800;
  color: var(--stripe-text-primary);
  margin-bottom: var(--stripe-space-sm);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.season-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--stripe-space-xl);
  flex-wrap: wrap;
}

.season-name {
  font-size: var(--stripe-text-lg);
  font-weight: 600;
  color: var(--stripe-accent-primary);
  background: rgba(178, 34, 34, 0.1);
  padding: var(--stripe-space-sm) var(--stripe-space-md);
  border-radius: var(--stripe-radius-md);
}

.season-progress {
  font-size: var(--stripe-text-xl);
  font-weight: 700;
  color: var(--stripe-text-primary);
  background: var(--stripe-bg-tertiary);
  padding: var(--stripe-space-sm) var(--stripe-space-md);
  border-radius: var(--stripe-radius-md);
  border: 2px solid var(--stripe-accent-primary);
}

/* Ranges Navigation */
.ranges-navigation {
  margin-bottom: var(--stripe-space-xl);
}

.ranges-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--stripe-space-sm);
  justify-content: center;
}

.range-tab {
  padding: var(--stripe-space-md) var(--stripe-space-lg);
  background: var(--stripe-bg-secondary);
  border: 2px solid var(--stripe-border-primary);
  border-radius: var(--stripe-radius-md);
  color: var(--stripe-text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.range-tab:hover {
  background: var(--stripe-accent-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(178, 34, 34, 0.3);
}

.range-tab.active {
  background: var(--stripe-accent-primary);
  border-color: var(--stripe-accent-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(178, 34, 34, 0.4);
}

/* Ranges Content */
.ranges-content {
  position: relative;
}

.range-section {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.range-section.active {
  display: block;
  opacity: 1;
}

.range-header {
  text-align: center;
  margin-bottom: var(--stripe-space-xl);
  padding-bottom: var(--stripe-space-lg);
  border-bottom: 2px solid var(--stripe-border-primary);
}

.range-header h3 {
  font-size: var(--stripe-text-3xl);
  font-weight: 700;
  color: var(--stripe-text-primary);
  margin: 0;
}

/* Levels Grid - 5 levels top, 5 levels bottom */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: var(--stripe-space-md);
  margin-bottom: var(--stripe-space-xl);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Level Card */
.level-card {
  background: var(--stripe-bg-primary);
  border: 2px solid var(--stripe-border-primary);
  border-radius: var(--stripe-radius-lg);
  padding: var(--stripe-space-lg);
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.level-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.level-card.unlocked {
  border-color: #22c55e;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(34, 197, 94, 0.02));
}

.level-card.current {
  border-color: #FFD700;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(178, 34, 34, 0.05));
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  animation: currentPulse 2s infinite;
}

@keyframes currentPulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  }

  50% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  }
}

.level-card.locked {
  opacity: 0.7;
  filter: grayscale(30%);
}

/* Level Header */
.level-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--stripe-space-md);
}

.level-number {
  font-size: var(--stripe-text-3xl);
  font-weight: 800;
  color: var(--stripe-text-primary);
}

.current-badge {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: var(--stripe-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Level Reward */
.level-reward {
  text-align: center;
  position: relative;
}

.reward-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--stripe-space-md);
  background: linear-gradient(135deg, var(--stripe-accent-primary), #a82828);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--stripe-text-2xl);
  box-shadow: 0 4px 12px rgba(178, 34, 34, 0.3);
  transition: all 0.3s ease;
}

.reward-icon.no-reward {
  background: linear-gradient(135deg, #9CA3AF, #6B7280);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.level-card:hover .reward-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(178, 34, 34, 0.4);
}

.reward-info {
  margin-bottom: var(--stripe-space-md);
}

.reward-name {
  display: block;
  font-size: var(--stripe-text-base);
  font-weight: 700;
  color: var(--stripe-text-primary);
  margin-bottom: var(--stripe-space-xs);
}

/* Claimed Badge */
.claimed-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 5;
}

/* Lock Overlay */
.lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--stripe-radius-lg);
  backdrop-filter: blur(2px);
}

.lock-overlay i {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--stripe-text-4xl);
}

/* Mobile Responsive for Ranges */
@media (max-width: 1200px) {
  .battle-pass-ranges-container {
    padding: var(--stripe-space-lg);
    margin-top: var(--stripe-space-xl);
  }

  .battle-pass-header h2 {
    font-size: var(--stripe-text-2xl);
  }

  .season-info {
    flex-direction: column;
    gap: var(--stripe-space-md);
  }

  .ranges-tabs {
    gap: var(--stripe-space-xs);
  }

  .range-tab {
    padding: var(--stripe-space-sm) var(--stripe-space-md);
    font-size: var(--stripe-text-sm);
  }

  .levels-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--stripe-space-md);
  }

  .level-card {
    padding: var(--stripe-space-md);
  }

  .level-number {
    font-size: var(--stripe-text-2xl);
  }

  .reward-icon {
    width: 50px;
    height: 50px;
    font-size: var(--stripe-text-xl);
  }

  .reward-name {
    font-size: var(--stripe-text-sm);
  }
}

/* ========================================
   WORLD-BASED PROGRESSION SYSTEM
   ======================================== */

/* Compact Hero */
.progression-hero-compact {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  padding: 15px 30px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--stripe-accent-primary);
}

.hero-mini {
  display: flex;
  gap: 20px;
  align-items: center;
}

.level-badge {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 16px;
}

.user-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--stripe-text-primary);
}

.rank-name {
  font-size: 14px;
  color: var(--stripe-accent-primary);
  font-weight: 600;
}

.xp-mini-bar {
  width: 300px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}

.xp-mini-bar .xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--stripe-accent-primary), #FF6B6B);
  transition: width 0.5s ease;
}

.xp-mini-bar .xp-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Worlds Container */
.worlds-container {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  height: 100vh;
  margin-top: 80px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.worlds-container::-webkit-scrollbar {
  display: none;
}

/* Individual World */
.world {
  min-width: 100vw;
  height: calc(100vh - 80px);
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}

/* World Background */
.world-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.world-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-bg {
  width: 100%;
  height: 100%;
}

/* World Title */
.world-title {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 48px;
  font-weight: 900;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 4px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
  z-index: 100;
}

/* World Number */
.world-number {
  position: absolute;
  bottom: 30px;
  right: 30px;
  font-size: 24px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  z-index: 100;
}

/* Level Path */
.level-path {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
}

/* Level Nodes on Path */
.level-node {
  position: absolute;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.level-node:hover {
  transform: translate(-50%, -50%) scale(1.15);
  z-index: 60;
}

.node-circle {
  width: 70px;
  height: 70px;
  background: rgba(0, 0, 0, 0.7);
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.node-number {
  font-size: 20px;
}

/* Unlocked */
.level-node.unlocked .node-circle {
  background: linear-gradient(135deg, var(--stripe-accent-primary), #a82828);
  border-color: var(--stripe-accent-primary);
  color: white;
  box-shadow: 0 0 25px rgba(178, 34, 34, 0.7);
}

/* Current */
.level-node.current .node-circle {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border: 5px solid #FFD700;
  color: #000;
  font-size: 28px;
  box-shadow: 0 0 40px rgba(255, 215, 0, 1);
  animation: currentPulse 2s infinite;
}

@keyframes currentPulse {

  0%,
  100% {
    box-shadow: 0 0 40px rgba(255, 215, 0, 1);
  }

  50% {
    box-shadow: 0 0 60px rgba(255, 215, 0, 1);
  }
}

.pulse-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 4px solid #FFD700;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 1;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.lock-icon-top {
  font-size: 14px;
  margin-bottom: 3px;
}

/* Reward Popup */
.reward-popup {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid var(--stripe-accent-primary);
  border-radius: 8px;
  padding: 10px 15px;
  white-space: nowrap;
  margin-bottom: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.level-node:hover .reward-popup {
  opacity: 1;
}

.reward-popup i {
  margin-right: 8px;
  color: #FFD700;
}

.reward-popup span {
  font-size: 13px;
  font-weight: 700;
  color: white;
}

/* Navigation Arrows */
.world-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(178, 34, 34, 0.9);
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 200;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  font-size: 24px;
}

.world-nav:hover {
  background: var(--stripe-accent-primary);
  transform: translateY(-50%) scale(1.1);
}

.world-nav-left {
  left: 30px;
}

.world-nav-right {
  right: 30px;
}

/* Pagination Dots */
.world-pagination {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 200;
}

.pagination-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.4;
  transition: all 0.3s ease;
  border: 2px solid white;
}

.pagination-dot:hover {
  opacity: 0.7;
  transform: scale(1.2);
}

.pagination-dot.active {
  opacity: 1;
  transform: scale(1.3);
  box-shadow: 0 0 15px currentColor;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
  .progression-hero-compact {
    flex-direction: column;
    gap: 10px;
    padding: 10px 15px;
  }

  .xp-mini-bar {
    width: 100%;
  }

  .world-title {
    font-size: 32px;
    top: 20px;
  }

  .world-nav {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .world-nav-left {
    left: 15px;
  }

  .world-nav-right {
    right: 15px;
  }

  .node-circle {
    width: 60px;
    height: 60px;
  }

  .level-node.current .node-circle {
    width: 75px;
    height: 75px;
  }

  .pagination-dot {
    width: 12px;
    height: 12px;
  }
}

/* ========================================
   WORLD-BASED PROGRESSION - UPDATED
   ======================================== */

/* Original Hero Section Styles */
.progression-hero {
  background: var(--stripe-bg-primary);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 30px;
}

.level-circle {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
}

.level-label {
  font-size: 14px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 5px;
}

.level-number {
  font-size: 56px;
  font-weight: 900;
  color: #000;
}

.user-details h1 {
  font-size: 32px;
  margin: 0 0 10px 0;
  color: var(--stripe-text-primary);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--stripe-accent-primary);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
}

.xp-large-bar {
  background: var(--stripe-bg-tertiary);
  border-radius: 12px;
  padding: 20px;
}

.xp-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--stripe-text-primary);
}

.xp-track {
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 10px;
}

.xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--stripe-accent-primary), #FF6B6B);
  transition: width 0.5s ease;
}

.xp-total {
  text-align: center;
  font-size: 14px;
  color: var(--stripe-text-muted);
}

/* Worlds Wrapper */
.worlds-wrapper {
  position: relative;
  margin-top: 40px;
}

/* Worlds Container */
.worlds-container {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  height: 600px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.worlds-container::-webkit-scrollbar {
  display: none;
}

/* Individual World */
.world {
  min-width: 100%;
  height: 600px;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}

/* World Background */
.world-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.world-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-bg {
  width: 100%;
  height: 100%;
}

/* World Title */
.world-title {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 42px;
  font-weight: 900;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 4px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
  z-index: 100;
}

/* World Number */
.world-number {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  z-index: 100;
}

/* Level Path */
.level-path {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
}

/* Level Nodes - Slalom Pattern */
.level-node {
  position: absolute;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.level-node:hover {
  transform: translate(-50%, -50%) scale(1.15);
  z-index: 60;
}

.node-circle {
  width: 70px;
  height: 70px;
  background: rgba(0, 0, 0, 0.7);
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.node-number {
  font-size: 20px;
}

/* Unlocked */
.level-node.unlocked .node-circle {
  background: linear-gradient(135deg, var(--stripe-accent-primary), #a82828);
  border-color: var(--stripe-accent-primary);
  color: white;
  box-shadow: 0 0 25px rgba(178, 34, 34, 0.7);
}

/* Current */
.level-node.current .node-circle {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border: 5px solid #FFD700;
  color: #000;
  font-size: 28px;
  box-shadow: 0 0 40px rgba(255, 215, 0, 1);
}

.pulse-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 4px solid #FFD700;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 1;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.lock-icon-top {
  font-size: 14px;
  margin-bottom: 3px;
}

/* Reward Popup */
.reward-popup {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid var(--stripe-accent-primary);
  border-radius: 8px;
  padding: 10px 15px;
  white-space: nowrap;
  margin-bottom: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.level-node:hover .reward-popup {
  opacity: 1;
}

.reward-popup i {
  margin-right: 8px;
  color: #FFD700;
}

.reward-popup span {
  font-size: 13px;
  font-weight: 700;
  color: white;
}

/* Navigation Arrows */
.world-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(178, 34, 34, 0.9);
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 200;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  font-size: 24px;
}

.world-nav:hover {
  background: var(--stripe-accent-primary);
  transform: translateY(-50%) scale(1.1);
}

.world-nav-left {
  left: -80px;
}

.world-nav-right {
  right: -80px;
}

/* Pagination Dots */
.world-pagination {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 200;
}

.pagination-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.4;
  transition: all 0.3s ease;
  border: 2px solid white;
}

.pagination-dot:hover {
  opacity: 0.7;
  transform: scale(1.2);
}

.pagination-dot.active {
  opacity: 1;
  transform: scale(1.3);
  box-shadow: 0 0 15px currentColor;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
  .hero-content {
    flex-direction: column;
    gap: 20px;
  }

  .level-circle {
    width: 120px;
    height: 120px;
  }

  .level-number {
    font-size: 48px;
  }

  .user-details h1 {
    font-size: 24px;
    text-align: center;
  }

  .worlds-container {
    height: 500px;
  }

  .world {
    height: 500px;
  }

  .world-title {
    font-size: 28px;
    top: 20px;
  }

  .world-nav {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .world-nav-left {
    left: 10px;
  }

  .world-nav-right {
    right: 10px;
  }

  .node-circle {
    width: 60px;
    height: 60px;
  }

  .level-node.current .node-circle {
    width: 75px;
    height: 75px;
  }
}

/* ========================================
   PLATFORM-STYLE PROGRESSION SYSTEM
   ======================================== */

/* Platform Worlds Wrapper */
.platform-worlds-wrapper {
  position: relative;
  margin-top: 40px;
  padding-bottom: 80px;
}

/* Platform Worlds Container */
.platform-worlds-container {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  height: 550px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  background: #000;
}

.platform-worlds-container::-webkit-scrollbar {
  display: none;
}

/* Individual Platform World */
.platform-world {
  min-width: 100%;
  height: 550px;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}

/* Platform Background */
.platform-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.platform-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-platform-bg {
  width: 100%;
  height: 100%;
}

/* Platform World Title */
.platform-world-title {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 100;
}

.world-name {
  display: block;
  font-size: 40px;
  font-weight: 900;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 3px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9), 0 0 30px currentColor;
}

.world-subtitle {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 5px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* SVG Path Connector */
.path-connector {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

.dotted-path {
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}

/* Platform Path Container */
.platform-path {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
}

/* Platform Level */
.platform-level {
  position: absolute;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.platform-level:hover {
  transform: translate(-50%, -50%) scale(1.1);
  z-index: 60;
}

/* Platform Base (floating island) */
.platform-base {
  width: 90px;
  height: 25px;
  background: linear-gradient(180deg, rgba(50, 50, 50, 0.9), rgba(20, 20, 20, 0.9));
  border-radius: 50%;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.6),
    inset 0 -2px 10px rgba(0, 0, 0, 0.5);
  position: absolute;
  bottom: -15px;
  border: 2px solid rgba(100, 100, 100, 0.5);
}

.platform-level.unlocked .platform-base {
  background: linear-gradient(180deg, rgba(178, 34, 34, 0.4), rgba(100, 20, 20, 0.6));
  border-color: var(--stripe-accent-primary);
  box-shadow:
    0 8px 20px rgba(178, 34, 34, 0.4),
    0 0 20px rgba(178, 34, 34, 0.3);
}

.platform-level.current .platform-base {
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.4), rgba(255, 165, 0, 0.6));
  border-color: #FFD700;
  box-shadow:
    0 8px 20px rgba(255, 215, 0, 0.6),
    0 0 30px rgba(255, 215, 0, 0.5);
  animation: platformGlow 2s infinite;
}

@keyframes platformGlow {

  0%,
  100% {
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.5);
  }

  50% {
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.7);
  }
}

/* Platform Circle */
.platform-circle {
  width: 75px;
  height: 75px;
  background: rgba(30, 30, 30, 0.95);
  border: 4px solid rgba(100, 100, 100, 0.6);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  position: relative;
  box-shadow:
    0 6px 15px rgba(0, 0, 0, 0.6),
    inset 0 2px 5px rgba(255, 255, 255, 0.1);
  z-index: 2;
}

.platform-number {
  font-size: 22px;
}

/* Unlocked Platform */
.platform-level.unlocked .platform-circle {
  background: linear-gradient(135deg, var(--stripe-accent-primary), #a82828);
  border-color: var(--stripe-accent-primary);
  color: white;
  box-shadow:
    0 6px 20px rgba(178, 34, 34, 0.7),
    0 0 25px rgba(178, 34, 34, 0.4),
    inset 0 2px 5px rgba(255, 255, 255, 0.2);
}

/* Current Platform */
.platform-level.current .platform-circle {
  width: 95px;
  height: 95px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border: 5px solid #FFD700;
  color: #000;
  font-size: 30px;
  box-shadow:
    0 8px 30px rgba(255, 215, 0, 1),
    0 0 50px rgba(255, 215, 0, 0.8),
    inset 0 3px 8px rgba(255, 255, 255, 0.3);
}

.pulse-ring {
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border: 4px solid #FFD700;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 1;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.lock-icon-top {
  font-size: 16px;
  margin-bottom: 4px;
}

/* Platform Reward */
.platform-reward {
  position: absolute;
  top: -40px;
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.6);
  animation: rewardFloat 2s infinite;
}

@keyframes rewardFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.reward-tooltip {
  position: absolute;
  top: -70px;
  background: rgba(0, 0, 0, 0.95);
  border: 2px solid var(--stripe-accent-primary);
  border-radius: 8px;
  padding: 8px 12px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  color: white;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.platform-level:hover .reward-tooltip {
  opacity: 1;
}

/* Platform Navigation Arrows */
.platform-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(178, 34, 34, 0.95);
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 200;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  font-size: 24px;
}

.platform-nav:hover {
  background: var(--stripe-accent-primary);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 8px 25px rgba(178, 34, 34, 0.6);
}

.platform-nav-left {
  left: -80px;
}

.platform-nav-right {
  right: -80px;
}

/* Platform Pagination */
.platform-pagination {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 200;
}

.platform-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.4;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.platform-dot:hover {
  opacity: 0.7;
  transform: scale(1.3);
}

.platform-dot.active {
  opacity: 1;
  transform: scale(1.5);
  box-shadow: 0 0 20px currentColor;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
  .platform-worlds-container {
    height: 450px;
  }

  .platform-world {
    height: 450px;
  }

  .world-name {
    font-size: 28px;
  }

  .platform-nav {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .platform-nav-left {
    left: 10px;
  }

  .platform-nav-right {
    right: 10px;
  }

  .platform-circle {
    width: 65px;
    height: 65px;
  }

  .platform-level.current .platform-circle {
    width: 80px;
    height: 80px;
  }

  .platform-base {
    width: 75px;
    height: 20px;
  }
}

/* Platform Worlds Container - Increased height for better spacing */
.platform-worlds-container {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  height: 700px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  background: #000;
}

/* Individual Platform World - Increased height */
.platform-world {
  min-width: 100%;
  height: 700px;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}

/* Mobile Responsive - Adjusted heights */
@media (max-width: 1200px) {
  .platform-worlds-container {
    height: 550px;
  }

  .platform-world {
    height: 550px;
  }

  .world-name {
    font-size: 28px;
  }

  .platform-nav {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .platform-nav-left {
    left: 10px;
  }

  .platform-nav-right {
    right: 10px;
  }

  .platform-circle {
    width: 65px;
    height: 65px;
  }

  .level-node.current .platform-circle {
    width: 80px;
    height: 80px;
  }

  .platform-base {
    width: 75px;
    height: 20px;
  }
}

/* Mobile-specific positioning with JavaScript */
@media (max-width: 1200px) {

  /* JavaScript will reposition elements using data-mobile-x and data-mobile-y */
  .platform-circle {
    width: 55px;
    height: 55px;
  }

  .platform-number {
    font-size: 18px;
  }

  .level-node.current .platform-circle {
    width: 70px;
    height: 70px;
  }

  .level-node.current .platform-number {
    font-size: 24px;
  }

  .platform-base {
    width: 65px;
    height: 18px;
  }

  .reward-tooltip {
    font-size: 11px;
    padding: 6px 10px;
  }

  .platform-reward {
    width: 30px;
    height: 30px;
    font-size: 14px;
    top: -35px;
  }
}

/* ========================================
   PROGRESSION HERO GRID & RANKING
   ======================================== */

.progression-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--stripe-space-xl);
  margin-bottom: var(--stripe-space-xl);
}

.progression-hero,
.ranking-table-section {
  height: 480px !important;
  max-height: 480px !important;
  min-height: 480px !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.ranking-table-section {
  background: var(--stripe-bg-primary);
  border-radius: var(--stripe-radius-lg);
  padding: var(--stripe-space-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.ranking-table-section h3 {
  font-size: var(--stripe-text-xl);
  font-weight: 700;
  color: var(--stripe-text-primary);
  margin-bottom: var(--stripe-space-md);
  text-align: center;
}

.ranking-table-container {
  max-height: 350px;
  overflow-y: auto;
  margin-bottom: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--stripe-accent-primary) var(--stripe-bg-tertiary);
}

.ranking-table-container::-webkit-scrollbar {
  width: 6px;
}

.ranking-table-container::-webkit-scrollbar-track {
  background: var(--stripe-bg-tertiary);
  border-radius: 3px;
}

.ranking-table-container::-webkit-scrollbar-thumb {
  background: var(--stripe-accent-primary);
  border-radius: 3px;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--stripe-bg-primary);
  border-radius: var(--stripe-radius-md);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-size: var(--stripe-text-sm);
}

.ranking-table thead {
  background: linear-gradient(135deg, var(--stripe-accent-primary), #a82828);
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

.ranking-table th {
  padding: var(--stripe-space-sm) var(--stripe-space-xs);
  text-align: left;
  font-weight: 700;
  font-size: var(--stripe-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ranking-table th:nth-child(1),
.ranking-table th:nth-child(3),
.ranking-table th:nth-child(4) {
  text-align: center;
}

.ranking-table td {
  padding: var(--stripe-space-sm) var(--stripe-space-xs);
  border-bottom: 1px solid var(--stripe-border-primary);
  color: var(--stripe-text-primary);
}

.ranking-table tbody tr:nth-child(even) {
  background: var(--stripe-bg-secondary);
}

.ranking-table tbody tr:hover {
  background: rgba(178, 34, 34, 0.05);
  transition: background 0.3s ease;
}

.ranking-table tbody tr.current-user {
  background: linear-gradient(135deg, rgba(178, 34, 34, 0.1), rgba(178, 34, 34, 0.05));
  border-left: 4px solid var(--stripe-accent-primary);
  font-weight: 600;
}

.ranking-table .rank-number {
  font-weight: 700;
  color: var(--stripe-accent-primary);
  text-align: center;
  width: 40px;
}

.ranking-table .user-name {
  font-weight: 500;
  font-size: var(--stripe-text-sm);
}

.ranking-table .user-level {
  text-align: center;
  font-weight: 600;
  color: var(--stripe-text-secondary);
}

.ranking-table .user-xp {
  font-weight: 600;
  color: var(--stripe-accent-primary);
  text-align: center;
}



/* Mobile responsive for ranking */
@media (max-width: 1200px) {
  .progression-hero-grid {
    grid-template-columns: 1fr;
    gap: var(--stripe-space-lg);
  }

  .ranking-table-container {
    max-height: 300px;
  }

  .ranking-table th,
  .ranking-table td {
    padding: var(--stripe-space-xs);
    font-size: var(--stripe-text-xs);
  }

  .ranking-table .user-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ========================================
   XP GUIDE TABLE STYLES
   ======================================== */

.xp-guide-section {
  margin: 40px 0;
  padding: 30px;
  background: var(--stripe-bg-primary);
  border-radius: var(--stripe-radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.xp-guide-section h2 {
  font-size: var(--stripe-text-3xl);
  font-weight: 700;
  color: var(--stripe-text-primary);
  margin-bottom: 20px;
  text-align: center;
}

.xp-guide-table {
  max-width: 800px;
  margin: 0 auto;
}

.xp-guide-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--stripe-bg-primary);
  border-radius: var(--stripe-radius-md);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.xp-guide-table thead {
  background: linear-gradient(135deg, var(--stripe-accent-primary), #a82828);
  color: white;
}

.xp-guide-table th {
  padding: var(--stripe-space-lg) var(--stripe-space-md);
  text-align: left;
  font-weight: 700;
  font-size: var(--stripe-text-base);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.xp-guide-table td {
  padding: var(--stripe-space-lg) var(--stripe-space-md);
  border-bottom: 1px solid var(--stripe-border-primary);
  font-size: var(--stripe-text-base);
  color: var(--stripe-text-primary);
}

.xp-guide-table tbody tr:nth-child(even) {
  background: var(--stripe-bg-secondary);
}

.xp-guide-table tbody tr:hover {
  background: rgba(178, 34, 34, 0.05);
  transition: background 0.3s ease;
}

.xp-guide-table .xp-amount {
  font-weight: 800;
  color: var(--stripe-accent-primary);
  font-size: var(--stripe-text-lg);
}

.xp-guide-table .xp-description {
  color: var(--stripe-text-secondary);
  line-height: 1.5;
}

/* Mobile responsive for XP guide */
@media (max-width: 1200px) {
  .xp-guide-section {
    padding: 20px;
    margin: 30px 0;
  }

  .xp-guide-section h2 {
    font-size: var(--stripe-text-2xl);
  }

  .xp-guide-table th,
  .xp-guide-table td {
    padding: var(--stripe-space-md);
    font-size: var(--stripe-text-sm);
  }

  .xp-guide-table .xp-amount {
    font-size: var(--stripe-text-base);
  }
}

/* Responsive Layout Helpers */

/* Grid Layout (Home, Archives) */
.layout-grid-sidebar {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: var(--stripe-space-xl);
}

@media (max-width: 1200px) {
  .layout-grid-sidebar {
    grid-template-columns: 1fr;
  }
}

/* Flex Layout (Single Posts) */
.layout-flex-sidebar {
  display: flex;
  gap: 40px;
  width: 100%;
}

.layout-flex-sidebar>main {
  flex: 4;
}

.layout-flex-sidebar>aside {
  flex: 2;
}

@media (max-width: 1200px) {
  .layout-flex-sidebar {
    flex-direction: column;
  }

  .layout-flex-sidebar>main,
  .layout-flex-sidebar>aside {
    flex: auto;
    width: 100%;
  }
}

/* ========================================
   MOBILE RESPONSIVE HEADER FIXES
   ======================================== */

/* Relatos, Blog, Diccionario - Filter/Sort Buttons */
@media (max-width: 1200px) {

  /* Reduce button padding and font size on mobile */
  .filters-bar .filter-btn,
  .sorting-buttons .sort-btn {
    padding: 8px 12px !important;
    font-size: 13px !important;
    white-space: nowrap;
    box-sizing: border-box;
  }

  /* Stack buttons vertically with proper spacing */
  .filters-bar,
  .sorting-buttons {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
  }

  /* Make buttons full width on mobile */
  .filters-bar .filter-btn,
  .sorting-buttons .sort-btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  /* Reduce icon margin */
  .filters-bar .filter-btn i,
  .sorting-buttons .sort-btn i {
    margin-right: 6px !important;
  }
}

/* Comunidad Page - Search and Filter Inputs */
@media (max-width: 1200px) {

  /* Stack search input and role selector vertically */
  .community-filters {
    flex-direction: column !important;
    gap: 12px !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* Make inputs full width with proper margins */
  .community-filters input,
  .community-filters select {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
    min-width: 0 !important;
  }

  /* Adjust button width */
  .community-filters button,
  .community-filters .btn {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
  }

  /* Fix the parent filters-bar container for comunidad */
  .comunidad-hero .filters-bar {
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
  }
}

/* Diccionario - Filter Tabs */
@media (max-width: 1200px) {

  /* Make dictionary filter tabs wrap and reduce size */
  .dictionary-tabs,
  .term-filters,
  .diccionario-filters {
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 0 !important;
    justify-content: center !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .dictionary-tabs .tab-btn,
  .term-filters .filter-tab,
  .diccionario-filters .filter-btn {
    padding: 6px 10px !important;
    font-size: 12px !important;
    flex: 0 1 auto !important;
    min-width: auto !important;
    box-sizing: border-box;
  }
}

/* General Header Adjustments for Mobile */
@media (max-width: 1200px) {

  /* Reduce header title size */
  .relatos-hero h1,
  .category-header h1,
  .page-header h1,
  .community-header h1,
  .comunidad-hero h1,
  .blog-hero h1,
  .dictionary-header h1,
  .diccionario-hero h1 {
    font-size: var(--stripe-text-2xl) !important;
    padding: 0 15px;
  }

  /* Reduce description text size */
  .relatos-hero p,
  .category-header p,
  .page-header p,
  .community-header p,
  .comunidad-hero p,
  .blog-hero p,
  .dictionary-header p,
  .diccionario-hero p {
    font-size: var(--stripe-text-sm) !important;
    padding: 0 15px;
  }

  /* Ensure consistent horizontal padding for hero containers */
  .relatos-hero,
  .category-header,
  .page-header,
  .community-header,
  .comunidad-hero,
  .blog-hero,
  .dictionary-header,
  .diccionario-hero {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box;
  }

  /* Fix inner content wrapper */
  .relatos-hero>div,
  .comunidad-hero>div,
  .blog-hero>div,
  .diccionario-hero>div {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  /* Search container in diccionario */
  .diccionario-search-container {
    padding: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: calc(100% - 30px) !important;
    box-sizing: border-box;
  }

  .diccionario-search-container input {
    width: 100% !important;
    box-sizing: border-box;
  }
}

/* Extra small screens (< 480px) */
@media (max-width: 480px) {

  .filters-bar .filter-btn,
  .sorting-buttons .sort-btn {
    padding: 6px 10px !important;
    font-size: 12px !important;
  }

  .dictionary-tabs .tab-btn,
  .term-filters .filter-tab,
  .diccionario-filters .filter-btn {
    padding: 5px 8px !important;
    font-size: 11px !important;
  }
}

/* ========================================
   USER PROFILE MOBILE OPTIMIZATION
   ======================================== */

/* Default hide mobile info */
.mobile-only-info {
  display: none !important;
}

@media (max-width: 1200px) {

  /* Hide desktop info in header */
  .desktop-only-info {
    display: none !important;
  }

  /* Show info inside dropdown */
  .mobile-only-info {
    display: block !important;
  }

  /* Header Right layout fix */
  .header-right {
    gap: var(--stripe-space-sm) !important;
  }

  .header-right .user-avatar {
    padding: 0 !important;
  }
}

@media (max-width: 1200px) {
  .user-dropdown {
    position: fixed !important;
    top: 70px !important;
    right: 15px !important;
    left: 15px !important;
    width: auto !important;
    max-width: none !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
    border-radius: 12px !important;
    z-index: 10001 !important;
  }

  .user-avatar-menu {
    position: static !important;
  }
}

/* Ensure XP bar inside mobile info looks good */
.mobile-only-info .xp-progress-bar {
  margin-top: 5px;
}

.mobile-only-info .xp-bar-track {
  background: var(--stripe-bg-tertiary) !important;
  height: 8px !important;
}

.mobile-only-info .xp-amount {
  color: var(--stripe-text-secondary);
  font-weight: 500;
}