/* 
  WinIt Code Web Dashboard Styles
  Modern Glassmorphism Theme (Light & Dark)
*/

/* High-Performance 120 FPS Kinetic Scroll Engine */
html {
  scroll-behavior: auto !important; /* Prevents artificial interpolation lag on mouse/touch scrolls */
  -webkit-overflow-scrolling: touch; /* Momentum hardware accelerated scrolling on iOS / WebKit */
  overscroll-behavior-y: none; /* Prevents slow rubber-band lag and pull-to-refresh conflicts */
  touch-action: pan-y;
}

:root {
  -webkit-text-size-adjust: 100%;
}

/* Reducción de escala de texto para Safari en iOS / iPhone / Mac */
@supports (-webkit-touch-callout: none) {
  html {
    font-size: 87.5%;
    -webkit-text-size-adjust: 100%;
    -webkit-overflow-scrolling: touch;
  }
}

:root {
  /* DARK THEME (Default) */
  --bg-color: #1E1E1E;
  --panel-bg: #252526;
  --text-main: #E5E5E5;
  --text-muted: #A0A0A0;
  --accent-green: #10D34E;
  --border-light: rgba(255, 255, 255, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --glass-bg: rgba(37, 37, 38, 0.95);
  --avatar-border: rgba(255, 255, 255, 0.15);
  --avatar-bg: rgba(16, 211, 78, 0.2);
  --badge-text-color: #000000;
  --badge-border-color: #ffffff;
  --badge-text-shadow: none;

  /* Legends Podium default (dark) theme variables */
  --podium-stats-bg: rgba(255, 255, 255, 0.1);
  --podium-stats-text: #ffffff;
  --podium-stats-border: rgba(255, 255, 255, 0.18);
  --podium-stats-divider: rgba(255, 255, 255, 0.15);
  --podium-block-bg: linear-gradient(175deg, #35363d 0%, #2b2c31 100%);
  --podium-block-top-bg: linear-gradient(135deg, #484951 0%, #3c3d44 100%);
  --podium-block-side-bg: linear-gradient(180deg, #1e1f23 0%, #16171a 100%);
  --podium-number-color: rgba(255, 255, 255, 0.13);
  --podium-avatar-shadow: rgba(0, 0, 0, 0.55);
  --podium-streak-color: #ff9800;
  --podium-xp-color: #10D34E;
  --rank-pill-bg: rgba(255, 255, 255, 0.05);
  --rank-pill-border: rgba(255, 255, 255, 0.1);
}

/* LIGHT THEME */
@media (prefers-color-scheme: light) {
  :root {
    --bg-color: #F8FAFC;
    --panel-bg: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --accent-green: #10D34E;
    --border-light: rgba(0, 0, 0, 0.08);
    --shadow-color: rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --avatar-border: rgba(0, 0, 0, 0.15);
    --avatar-bg: transparent;
    --badge-text-color: #000000;
    --badge-border-color: #000000;
    --badge-text-shadow: none;

    /* Legends Podium light theme variables */
    --podium-stats-bg: rgba(0, 0, 0, 0.08);
    --podium-stats-text: #0F172A;
    --podium-stats-border: rgba(0, 0, 0, 0.15);
    --podium-stats-divider: rgba(0, 0, 0, 0.12);
    --podium-block-bg: linear-gradient(175deg, #c8cfd8 0%, #b8c0ca 100%);
    --podium-block-top-bg: linear-gradient(135deg, #e4eaf0 0%, #d4dce6 100%);
    --podium-block-side-bg: linear-gradient(180deg, #96a2ae 0%, #7a8896 100%);
    --podium-number-color: rgba(0, 0, 0, 0.18);
    --podium-avatar-shadow: rgba(0, 0, 0, 0.18);
    --podium-streak-color: #e65100;
    --podium-xp-color: #0d8a32;
    --rank-pill-bg: rgba(0, 0, 0, 0.04);
    --rank-pill-border: rgba(0, 0, 0, 0.08);
  }
}

/* Force light or dark mode via class */
body.light-mode {
  --bg-color: #F8FAFC;
  --panel-bg: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --accent-green: #10D34E;
  --border-light: rgba(0, 0, 0, 0.08);
  --shadow-color: rgba(0, 0, 0, 0.05);
  --glass-bg: rgba(255, 255, 255, 0.95);
  --avatar-border: rgba(0, 0, 0, 0.15);
  --avatar-bg: transparent;
  --badge-text-color: #000000;
  --badge-border-color: #000000;
  --badge-text-shadow: none;

  /* Legends Podium light theme variables */
  --podium-stats-bg: rgba(0, 0, 0, 0.08);
  --podium-stats-text: #0F172A;
  --podium-stats-border: rgba(0, 0, 0, 0.15);
  --podium-stats-divider: rgba(0, 0, 0, 0.12);
  --podium-block-bg: linear-gradient(175deg, #c8cfd8 0%, #b8c0ca 100%);
  --podium-block-top-bg: linear-gradient(135deg, #e4eaf0 0%, #d4dce6 100%);
  --podium-block-side-bg: linear-gradient(180deg, #96a2ae 0%, #7a8896 100%);
  --podium-number-color: rgba(0, 0, 0, 0.18);
  --podium-avatar-shadow: rgba(0, 0, 0, 0.18);
  --podium-streak-color: #e65100;
  --podium-xp-color: #0d8a32;
  --rank-pill-bg: rgba(0, 0, 0, 0.04);
  --rank-pill-border: rgba(0, 0, 0, 0.08);
}

body.dark-mode {
  --bg-color: #1E1E1E;
  --panel-bg: #252526;
  --text-main: #E5E5E5;
  --text-muted: #A0A0A0;
  --accent-green: #10D34E;
  --border-light: rgba(255, 255, 255, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --glass-bg: rgba(37, 37, 38, 0.95);
  --avatar-border: rgba(255, 255, 255, 0.15);
  --avatar-bg: rgba(16, 211, 78, 0.2);
  --badge-text-color: #000000;
  --badge-border-color: #ffffff;
  --badge-text-shadow: none;

  /* Legends Podium dark theme variables */
  --podium-stats-bg: rgba(255, 255, 255, 0.1);
  --podium-stats-text: #ffffff;
  --podium-stats-border: rgba(255, 255, 255, 0.18);
  --podium-stats-divider: rgba(255, 255, 255, 0.15);
  --podium-block-bg: linear-gradient(175deg, #35363d 0%, #2b2c31 100%);
  --podium-block-top-bg: linear-gradient(135deg, #484951 0%, #3c3d44 100%);
  --podium-block-side-bg: linear-gradient(180deg, #1e1f23 0%, #16171a 100%);
  --podium-number-color: rgba(255, 255, 255, 0.13);
  --podium-avatar-shadow: rgba(0, 0, 0, 0.55);
  --podium-streak-color: #ff9800;
  --podium-xp-color: #10D34E;
  --rank-pill-bg: rgba(255, 255, 255, 0.05);
  --rank-pill-border: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Outfit', 'Inter', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
}

/* =========================================================
   HARDWARE-ACCELERATED 120 FPS AGILE SCROLL SYSTEM
   ========================================================= */
/* Hardware Accelerated Composite Layers */
.dashboard-container {
  contain: layout style;
}
.rpg-wrapper,
.dashboard-container,
.rpg-dashboard-grid {
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Isolate offscreen components from triggering parent document reflows */
.rpg-card,
.big-card,
.home-offerwall-top-card,
.area-home-live-codes,
.home-batch-card,
.stat-item,
.transaction-item,
.referral-item,
.store-card,
.code-card,
.profile-modal-content {
  contain: layout style;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

/* Fixed/Sticky Headers & Floating elements: isolate layers so scrolling body does not repaint headers */
.rpg-topbar,
.navbar,
.modal-overlay,
#cpx-floating-notification,
.offerwall-slim-bar {
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

/* Canvas isolation (Charts): Prevents Canvas 2D paint storms on scroll */
.chart-container,
.chart-container canvas {
  transform: translateZ(0);
  contain: strict;
}

/* Fast Kinetic Momentum Scrolling on Inner Lists */
.transaction-list,
.referral-list,
.pub-profile-activities-list,
.pub-profile-level-milestones-list,
.pub-profile-streak-milestones-list {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scroll-behavior: auto;
  contain: paint layout;
}

.codes-grid,
.store-grid {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto;
  overflow: visible !important;
}

.card {
  background: var(--glass-bg);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 8px 32px var(--shadow-color);
  transition: all 0.3s ease;
}

/* --- SPLASH SCREEN (LOGIN) --- */
.splash-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  position: relative;
  overflow: hidden;
  margin-top: -32px; /* Offset the main padding to be truly full screen */
}

/* --- SPLASH SCREEN (LOGIN) --- */
.splash-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 16px;
  position: relative;
  background: radial-gradient(circle at center, #26292e 0%, #17181c 100%);
  box-sizing: border-box;
}
.splash-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('https://www.transparenttextures.com/patterns/cubes.png');
  opacity: 0.12;
  pointer-events: none;
}

/* Ensure the login screen and the bottom footer share the exact same background without any color difference */
body:has(#login-section:not(.hidden)) {
  background: radial-gradient(circle at center, #26292e 0%, #17181c 100%) !important;
  color: var(--text-main) !important;
  position: relative;
}
body:has(#login-section:not(.hidden))::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('https://www.transparenttextures.com/patterns/cubes.png');
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
body:has(#login-section:not(.hidden)) .splash-container {
  background: transparent !important;
  min-height: calc(100vh - 90px);
}
body:has(#login-section:not(.hidden)) .splash-container::before {
  display: none !important;
}
body:has(#login-section:not(.hidden)) .dashboard-footer-v2 {
  background: transparent !important;
  border-top: none !important;
  margin-top: 0 !important;
  position: relative;
  z-index: 1;
}

/* --- LIGHT MODE LOGIN & FOOTER ADAPTATION --- */
body.light-mode:has(#login-section:not(.hidden)) {
  background: radial-gradient(circle at center, #FFFFFF 0%, #F1F5F9 100%) !important;
  color: #0F172A !important;
}
body.light-mode:has(#login-section:not(.hidden))::before {
  opacity: 0.06;
}
body.light-mode .splash-card {
  background: #FFFFFF !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
}
body.light-mode .login-left-panel {
  background: linear-gradient(135deg, rgba(16, 211, 78, 0.14) 0%, rgba(241, 245, 249, 0.95) 100%) !important;
  border-right: 1px solid rgba(15, 23, 42, 0.08) !important;
}
body.light-mode .login-right-panel {
  background: #FFFFFF !important;
}

@media (prefers-color-scheme: light) {
  body:not(.dark-mode):has(#login-section:not(.hidden)) {
    background: radial-gradient(circle at center, #FFFFFF 0%, #F1F5F9 100%) !important;
    color: #0F172A !important;
  }
  body:not(.dark-mode):has(#login-section:not(.hidden))::before {
    opacity: 0.06;
  }
  body:not(.dark-mode) .splash-card {
    background: #FFFFFF !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
  }
  body:not(.dark-mode) .login-left-panel {
    background: linear-gradient(135deg, rgba(16, 211, 78, 0.14) 0%, rgba(241, 245, 249, 0.95) 100%) !important;
    border-right: 1px solid rgba(15, 23, 42, 0.08) !important;
  }
  body:not(.dark-mode) .login-right-panel {
    background: #FFFFFF !important;
  }
}

.splash-card {
  position: relative;
  z-index: 1;
  background: var(--panel-bg);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  max-width: 820px;
  width: 100%;
  max-height: calc(100vh - 32px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  box-sizing: border-box;
}

.split-layout {
  display: flex;
  flex-direction: row;
}

.login-left-panel {
  flex: 1;
  background: linear-gradient(135deg, rgba(16, 211, 78, 0.12) 0%, rgba(37, 37, 38, 0.5) 100%);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 28px;
  text-align: center;
}

.left-panel-text {
  margin-top: 16px;
}
.left-panel-text h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 6px 0;
}
.left-panel-text p {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}

.login-right-panel {
  flex: 1.2;
  padding: 28px 36px;
  background: var(--panel-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

/* Mobile Responsiveness for Split Layout & Mobile Login */
@media (max-width: 768px) {
  .splash-container {
    padding: 14px 12px;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
  }
  .splash-card {
    max-width: 390px;
    width: 100%;
    margin: 0 auto;
    border-radius: 26px;
    border: 1px solid rgba(16, 211, 78, 0.25);
    background: #141a15;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(16, 211, 78, 0.15);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
  }
  .split-layout {
    flex-direction: column;
  }
  .login-left-panel {
    background: transparent;
    border-right: none;
    border-bottom: none;
    padding: 24px 18px 4px 18px;
  }
  .left-panel-text {
    display: none;
  }
  .app-logo-circle {
    width: 84px;
    height: 84px;
    margin: 0 auto;
  }
  #splash-app-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: none;
    box-shadow: none;
    filter: drop-shadow(0 8px 22px rgba(16, 211, 78, 0.5));
  }
  .login-right-panel {
    padding: 8px 20px 24px 20px;
    text-align: center;
  }
  .welcome-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 3px;
    color: #FFFFFF;
  }
  .splash-subtitle {
    font-size: 13px;
    color: #94A3B8;
    margin-bottom: 18px;
  }
  .splash-close-btn {
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #94A3B8;
    transition: all 0.2s ease;
  }
  .splash-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
  }
  .login-form {
    gap: 12px;
    margin-bottom: 14px;
  }
  .input-group input {
    height: 48px;
    border-radius: 12px;
    font-size: 14px;
    padding: 12px 14px 12px 42px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    box-sizing: border-box;
  }
  .input-group input:focus {
    border-color: #10D34E;
    box-shadow: 0 0 0 3px rgba(16, 211, 78, 0.15);
  }
  .splash-login-btn {
    height: 48px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    font-family: 'Outfit', sans-serif !important;
    background: linear-gradient(135deg, #10D34E 0%, #0db843 100%) !important;
    color: #031307 !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 6px 20px rgba(16, 211, 78, 0.35) !important;
    border: 1px solid #3bf979 !important;
    margin-top: 4px;
  }
  .google-signin-btn,
  .facebook-signin-btn {
    height: 46px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #F1F5F9;
    margin-bottom: 10px;
  }
  .google-signin-btn:hover,
  .facebook-signin-btn:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  .guest-link {
    font-size: 13.5px;
    font-weight: 600;
    color: #10D34E;
    text-decoration: none;
    margin-bottom: 12px;
  }
}

.logo-wrapper {
  display: flex;
  justify-content: center;
}

.app-logo-circle {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  padding: 0;
}

#splash-app-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 6px 20px rgba(16, 211, 78, 0.45));
}

.welcome-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 4px 0;
  color: var(--text-main);
}

.splash-subtitle {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 16px;
}

/* Close Btn */
.splash-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  left: auto;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
}
.splash-close-btn:hover { color: var(--text-main); }

/* Login Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--accent-green);
}

.input-group input {
  width: 100%;
  background: var(--bg-color);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 11px 12px 11px 40px;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s;
}
.input-group input:focus {
  border-color: var(--accent-green);
}

.forgot-password {
  text-align: right;
  margin-bottom: 2px;
}
.forgot-password a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12.5px;
}
.forgot-password a:hover { color: var(--text-main); }

.splash-login-btn {
  background: var(--accent-green) !important;
  color: #000 !important;
  font-size: 14.5px !important;
  padding: 12px !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(16, 211, 78, 0.3) !important;
  margin-top: 4px;
}

.splash-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  margin-bottom: 14px;
}
.splash-divider::before, .splash-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-light);
}
.splash-divider span {
  padding: 0 10px;
}

.google-signin-btn,
.facebook-signin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  background: var(--border-light);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 12px;
}

.google-signin-btn:hover,
.facebook-signin-btn:hover {
  background: #3d3d3d;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--shadow-color);
}

.guest-link {
  display: block;
  color: var(--accent-green);
  text-decoration: underline;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 14px;
}

.signup-prompt {
  font-size: 13px;
  color: var(--text-muted);
}
.signup-prompt a {
  color: var(--accent-green);
  font-weight: 700;
  text-decoration: none;
}

.google-icon,
.facebook-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* --- Loading Overlay --- */
.spinner-container {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-light);
  border-top-color: var(--accent-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner-container p {
  margin-top: 20px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Transitions */
.fade-transition {
  opacity: 1;
  transition: opacity 0.5s ease;
}
.fade-transition.hidden-fade {
  opacity: 0;
  pointer-events: none;
}

.hidden {
  display: none !important;
}

/* --- NAVBAR --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--glass-bg);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-actions {
  display: flex;
  align-items: center;
}

.theme-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
}

.theme-btn:hover {
  background: rgba(128, 128, 128, 0.2);
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.logo span {
  color: var(--accent-green);
}

.logo-img {
  height: 32px;
  max-height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}

.balance-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 211, 78, 0.1);
  border: 1px solid var(--accent-green);
  padding: 8px 16px;
  border-radius: 24px;
  font-weight: 700;
}

.coin-icon {
  color: #FFD700;
}

/* --- BUTTONS --- */
.primary-btn, .action-btn {
  background: var(--text-main);
  color: var(--bg-color);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.primary-btn:hover, .action-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* --- RPG DASHBOARD LAYOUT --- */
.rpg-wrapper {
  background: var(--bg-color);
  min-height: 100vh;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  padding: 0 24px 24px 24px;
}

/* TOPBAR */
.rpg-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 30px;
  position: relative;
  z-index: 1000;
}

.rpg-brand,
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(16, 211, 78, 0.45));
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.rpg-brand:hover .brand-logo-img,
.navbar-brand:hover .brand-logo-img {
  transform: scale(1.08);
}

.brand-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--text-main);
  display: flex;
  align-items: baseline;
  gap: 5px;
  text-transform: uppercase;
}

.brand-version {
  font-size: 11px;
  opacity: 0.9;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: #94A3B8;
  display: inline-block;
  margin-left: 4px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.brand-live-pulse {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 1px;
  font-family: 'Outfit', sans-serif;
  margin-top: 2px;
  white-space: nowrap;
}

.brand-live-pulse .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: livePulse 1.5s infinite;
  display: inline-block;
}

.rpg-nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  user-select: none;
  -webkit-user-select: none;
}

.rpg-nav-links,
.rpg-nav-links a,
.rpg-nav-links a * {
  caret-color: transparent !important;
}

.rpg-nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
  outline: none !important;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.rpg-nav-links a:focus,
.rpg-nav-links a:focus-visible,
.rpg-nav-links a:active {
  outline: none !important;
  caret-color: transparent !important;
}

.rpg-nav-links a i {
  font-size: 13.5px;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.rpg-nav-links a span {
  pointer-events: none;
}

.rpg-nav-links a:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.rpg-nav-links a:hover i {
  transform: translateY(-1px) scale(1.12);
}

/* Active State: Clean Highlight (No glow animations) */
.rpg-nav-links a.active {
  color: #10D34E !important;
  background: rgba(16, 211, 78, 0.08);
  border-color: rgba(16, 211, 78, 0.35);
  outline: none !important;
  caret-color: transparent !important;
}

.rpg-nav-links a.active i {
  color: #10D34E !important;
}

/* Light Mode active highlight */
body.light-mode .rpg-nav-links a.active {
  background: rgba(16, 211, 78, 0.12);
  border-color: rgba(16, 211, 78, 0.4);
  color: #0d8a32 !important;
}

/* Offerwall Nav Item: Clean text, and refined iridescent golden-yellow to emerald green money bag */
.rpg-nav-links a.nav-item-offerwall i,
.rpg-nav-links a#nav-offerwall i {
  background: linear-gradient(135deg, #FFE259 0%, #FFD700 35%, #22C55E 70%, #10D34E 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  display: inline-block;
  font-size: 14px;
  filter: drop-shadow(0 1px 2px rgba(255, 215, 0, 0.35)) drop-shadow(0 0 3px rgba(16, 211, 78, 0.25));
  animation: none !important;
  transition: all 0.22s ease;
}

.rpg-nav-links a.nav-item-offerwall:hover i,
.rpg-nav-links a#nav-offerwall:hover i {
  filter: drop-shadow(0 1px 3px rgba(255, 215, 0, 0.5)) drop-shadow(0 0 6px rgba(16, 211, 78, 0.4));
  transform: translateY(-1px) scale(1.1);
}

.rpg-nav-links a.nav-item-offerwall span {
  color: var(--text-muted);
  transition: color 0.2s ease;
  animation: none !important;
  text-shadow: none !important;
  filter: none !important;
}

.rpg-nav-links a.nav-item-offerwall:hover span {
  color: var(--text-main);
  animation: none !important;
  text-shadow: none !important;
  filter: none !important;
}

.rpg-nav-links a.nav-item-offerwall.active span {
  color: #10D34E !important;
  animation: none !important;
  text-shadow: none !important;
  filter: none !important;
}

body.light-mode .rpg-nav-links a.nav-item-offerwall.active span {
  color: #0d8a32 !important;
}

body.light-mode .rpg-nav-links a.nav-item-offerwall.active i,
body.light-mode .rpg-nav-links a.nav-item-offerwall.active span {
  color: #0d8a32 !important;
}

.nav-pulse-dot {
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background: #000000;
  animation: pulseLiveDot 1.4s infinite ease-in-out;
}

@keyframes pulseLiveDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.5;
  }
}

.rpg-top-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.rpg-league-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 20px;
  border-right: 1px solid var(--border-light);
}

.league-icon {
  color: #CD7F32; /* Bronze color */
  font-size: 28px;
}

.league-text {
  display: flex;
  flex-direction: column;
}

.league-label {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.2;
}

.league-value {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.rpg-user-profile-container {
  position: relative;
  z-index: 1001;
}

.rpg-user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 5px;
  border-radius: 20px;
  transition: background 0.2s;
}

.rpg-user-profile:hover {
  background: var(--border-light);
}

.avatar-container {
  position: relative;
  width: 52px;
  height: 52px;
}

.rpg-user-profile img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--accent-green, #10D34E);
  background: rgba(16, 211, 78, 0.18);
  box-shadow: 0 0 14px rgba(16, 211, 78, 0.35);
  object-fit: cover;
}

.level-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  color: #000000;
  font-size: 12px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.4px;
  width: 28px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  text-shadow: 0 0 3.5px rgba(255, 255, 255, 0.9), 0 0 7px rgba(255, 255, 255, 0.45);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
}

.level-badge::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #E68A36 0%, #CD7F32 50%, #9C5216 100%);
  clip-path: polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%);
  z-index: -1;
  transition: background 0.3s ease;
}

/* Tier-specific colors for the hexagonal badge (No outer aura/glow) */
.level-badge.tier-bronze::before {
  background: linear-gradient(135deg, #E68A36 0%, #CD7F32 50%, #9C5216 100%);
}

.level-badge.tier-silver::before {
  background: linear-gradient(135deg, #F0F0F0 0%, #BDBDBD 50%, #757575 100%);
}

.level-badge.tier-gold::before {
  background: linear-gradient(135deg, #FFE066 0%, #FFD700 50%, #D49B00 100%);
}

.level-badge.tier-platinum::before {
  background: linear-gradient(135deg, #D8B4FE 0%, #A855F7 50%, #7E22CE 100%);
}

.level-badge.tier-diamond::before {
  background: linear-gradient(135deg, #67E8F9 0%, #00E5FF 50%, #0284C7 100%);
}

.profile-arrow {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.3s;
}

.rpg-user-profile.active .profile-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.profile-dropdown-menu {
  position: absolute;
  top: 110%;
  right: 0;
  background: var(--panel-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  width: 200px;
  padding: 8px 0;
  box-shadow: 0 10px 30px var(--shadow-color);
  z-index: 9999;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.2s, transform 0.2s;
}

.profile-dropdown-menu.hidden {
  display: block !important;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

.dropdown-item:hover {
  background: var(--border-light);
}

.dropdown-item i {
  color: var(--text-muted);
  width: 16px;
  text-align: center;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: 8px 0;
}

.logout-item:hover {
  background: rgba(255, 59, 48, 0.1);
}

/* GRID LAYOUT */
.rpg-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto auto;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.rpg-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px var(--shadow-color);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.card-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.legend-dots {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 10px; height: 10px; border-radius: 2px;
}
.dot.purple { background: var(--accent-green); }

/* AREA 1: Grow Data */
.area-grow-data {
  grid-column: 1 / 8;
  grid-row: 2;
}
.chart-container {
  position: relative;
  height: 250px;
  width: 100%;
}

/* AREA 2: Overall Stats */
.area-overall-stats {
  grid-column: 8 / 13;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
}
.stats-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 8px;
  border-radius: 10px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.stat-item:hover {
  background: var(--hover-bg);
}

.stat-hover-icon {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-item:hover .stat-hover-icon.tilt-right {
  transform: rotate(18deg);
}

.stat-item:hover .stat-hover-icon.tilt-left {
  transform: rotate(-18deg);
}

/* Clean Rank Shield and Icons: tilt on hover without scaling */
#rpg-rank-icon,
.profile-rank-dot,
#league-banner-icon,
#profile-big-rank-icon {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#rpg-rank-icon:hover,
#profile-big-rank-icon:hover,
#league-banner-icon:hover {
  transform: rotate(15deg);
}

/* Universal Effects Kill-Switch Override */
body.effects-disabled .stat-hover-icon,
body.effects-disabled #rpg-rank-icon,
body.effects-disabled #profile-big-rank-icon,
body.effects-disabled #league-banner-icon,
body.effects-disabled * {
  animation: none !important;
  transition: none !important;
}
body.effects-disabled .stat-item:hover .stat-hover-icon,
body.effects-disabled #rpg-rank-icon:hover,
body.effects-disabled #profile-big-rank-icon:hover {
  transform: none !important;
}

.stat-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-main);
  font-weight: 600;
}
.progress-bar {
  background: var(--border-light);
  height: 6px;
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}
.fill-purple { background: linear-gradient(90deg, #10D34E, #82f2a1); }
.fill-cyan { background: linear-gradient(90deg, #00d2ff, #3a7bd5); }
.fill-green { background: linear-gradient(90deg, #10D34E, #1de9b6); }

/* Distinct Gradients for Overall Progress Bars */
.fill-streak { background: linear-gradient(90deg, #ff3b30, #ff9500, #ffcc00) !important; }
.fill-level { background: linear-gradient(90deg, #10D34E, #00ff87) !important; }
.fill-referrals { background: linear-gradient(90deg, #8E2DE2, #F000FF) !important; }
.fill-vip { background: linear-gradient(90deg, #F2C94C, #F2994A) !important; }

.stats-footer {
  margin-top: auto;
  padding-top: 24px;
  text-align: center;
}
.stats-footer p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.footer-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.rpg-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--border-light); color: var(--text-main); }
.btn-secondary { background: transparent; border: 1px solid var(--border-light); color: var(--text-main); }

/* AREA 3: Big Cards */
.area-big-cards {
  grid-column: 1 / 8;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.big-card {
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.card-green-dark {
  background: var(--panel-bg);
  border: 1px solid var(--border-light);
  border-left: 4px solid #10D34E;
  box-shadow: 0 4px 16px var(--shadow-color);
}
.card-green-light {
  background: var(--panel-bg);
  border: 1px solid var(--border-light);
  border-left: 4px solid #FFD700;
  box-shadow: 0 4px 16px var(--shadow-color);
}
.bg-letter {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -20px;
  font-size: 130px;
  font-weight: 900;
  color: var(--text-main);
  opacity: 0.08;
  line-height: 1;
}
.card-content {
  position: relative;
  z-index: 1;
  text-align: right;
  width: 100%;
}
.card-content p {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}
.card-content h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
}

.redeem-gift-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  background: rgba(16, 211, 78, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(16, 211, 78, 0.3);
  color: #10D34E !important;
  border-radius: 20px;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(16, 211, 78, 0.1);
}

.redeem-gift-btn:hover {
  transform: translateY(-2px);
  background: rgba(16, 211, 78, 0.25);
  border-color: rgba(16, 211, 78, 0.5);
  box-shadow: 0 4px 10px rgba(16, 211, 78, 0.2);
}

.redeem-gift-btn i {
  margin-right: 6px;
}

/* AREA 4: Quest Summaries */
.area-quest-summaries {
  grid-column: 1 / 5;
  grid-row: 4;
  display: flex;
  flex-direction: column;
  padding-bottom: 16px !important;
}
.transaction-list, .referral-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 353px;
  flex: 1;
  overflow-y: auto;
  padding: 4px 12px 4px 4px; /* Unified padding for smooth alignment */
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
}
.load-more-tx-btn {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--panel-bg);
  color: var(--text-main);
  font-weight: 800;
  font-size: 11.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.load-more-tx-btn:hover {
  background: var(--card-bg-hover);
  border-color: var(--primary-color);
  transform: translateY(-1px);
}
.transaction-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 61px;
  flex-shrink: 0;
  padding: 8px 12px;
  background: var(--card-bg-hover);
  border: 1.2px solid var(--border-light);
  border-radius: 12px;
  margin-bottom: 0;
  transition: height 0.3s ease, background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}
.transaction-item.expanded {
  height: auto;
  justify-content: flex-start;
  padding-top: 12px;
  padding-bottom: 12px;
}
.transaction-item .tx-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.transaction-item .tx-details {
  display: none;
  width: 100%;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px dashed var(--border-light);
  font-size: 11px;
  color: var(--text-muted);
  text-align: left;
}
.transaction-item.expanded .tx-details {
  display: block;
}
.transaction-item.expanded .fa-chevron-down {
  transform: rotate(180deg);
}
.tx-details div { margin-bottom: 4px; }
.tx-details strong { color: var(--text-main); }
.transaction-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-color);
  background: rgba(255, 255, 255, 0.05);
}
.tx-info h4 { margin: 0 0 2px 0; font-size: 12px; color: var(--text-main); font-weight: 700; }
.tx-info p { margin: 0; font-size: 10px; color: var(--text-muted); }
.tx-amount { font-weight: 900; color: #10D34E; font-size: 12px; background: rgba(16, 211, 78, 0.1); padding: 2px 6px; border-radius: 6px;}
.tx-amount.negative { color: #ff5252; background: rgba(255, 82, 82, 0.1); }

/* AREA 5: Job Skills */
.area-job-skills {
  grid-column: 5 / 9;
  grid-row: 4;
  display: flex;
  flex-direction: column;
  padding-bottom: 16px !important;
}
.radar-container {
  height: 340px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}

/* AREA 6: Party Members */
.area-party-members {
  grid-column: 9 / 13;
  grid-row: 4;
  display: flex;
  flex-direction: column;
  padding-bottom: 16px !important;
}
.referral-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--card-bg-hover);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  transition: all 0.3s ease;
}
.referral-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-color);
  background: rgba(255, 255, 255, 0.05);
}
.referral-item img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-purple);
}
.ref-info { flex: 1; }
.ref-info h4 { margin: 0 0 6px 0; font-size: 15px; color: var(--text-main); font-weight: 700; }
.ref-info p { margin: 0; font-size: 12px; color: var(--text-muted); }
.ref-level {
  font-size: 12px; font-weight: 700; color: var(--accent-green);
}

/* AREA 7: Home Latest Active Promo Codes Strip (Row 3 above bottom cards) */
.area-home-live-codes {
  grid-column: 1 / 13;
  grid-row: 3;
}

.home-codes-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 215, 0, 0.15);
  color: #FFD700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.view-all-codes-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.1), 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.15s ease;
  user-select: none;
}

body.light-mode .view-all-codes-btn {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.12);
  color: #0F172A;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 8px rgba(0, 0, 0, 0.04);
}

.view-all-codes-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #10D34E;
  border-color: rgba(16, 211, 78, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 3px 0 rgba(16, 211, 78, 0.4), 0 4px 12px rgba(16, 211, 78, 0.15);
}

body.light-mode .view-all-codes-btn:hover {
  background: #F8FAFC;
  color: #059669;
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 3px 0 rgba(16, 185, 129, 0.3), 0 4px 12px rgba(16, 185, 129, 0.1);
}

.view-all-codes-btn:active {
  transform: translateY(2px) !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.35) !important;
}

.home-codes-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.home-mini-code-card {
  background: var(--card-bg-hover);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.25s ease;
}

.home-mini-code-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 215, 0, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Scrollbar styling for lists */
.transaction-list::-webkit-scrollbar, .referral-list::-webkit-scrollbar {
  width: 4px;
}
.transaction-list::-webkit-scrollbar-thumb, .referral-list::-webkit-scrollbar-thumb {
  background: var(--hover-bg);
  border-radius: 4px;
}

/* Legends Tab */
.legends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.legend-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.2s, background 0.2s;
}

.legend-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
}

.legend-icon-container {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legend-icon-bg {
  font-size: 55px;
  position: absolute;
}

.legend-icon-text {
  position: relative;
  font-weight: 900;
  font-size: 20px;
  z-index: 2;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.legend-content {
  flex: 1;
}

.legend-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text-main);
}

.legend-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.3;
}

.legend-progress-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legend-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--hover-bg);
  border-radius: 3px;
  border-radius: 3px;
  overflow: hidden;
}

.legend-progress-fill {
  height: 100%;
  border-radius: 3px;
  box-shadow: 0 0 10px currentColor;
}

.legend-progress-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
}

/* =========================================
   ACHIEVEMENTS / CATEGORIES (Archive)
   ========================================= */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.achievement-card {
  background: #1c1e28;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.achievement-card:hover {
  transform: translateY(-2px);
}

.achievement-icon-wrapper {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.achievement-icon-bg {
  font-size: 50px;
  position: absolute;
  color: #333;
}
.achievement-icon-text {
  position: relative;
  z-index: 2;
  font-weight: 900;
  font-size: 16px;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.achievement-info {
  flex: 1;
}
.achievement-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}
.achievement-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.achievement-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.achievement-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--hover-bg);
  border-radius: 3px;
  overflow: hidden;
}
.achievement-progress-fill {
  height: 100%;
  border-radius: 3px;
  box-shadow: 0 0 10px currentColor;
}
.achievement-progress-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

/* =========================================
   LEGENDS PODIUM
   ========================================= */
.legends-container {
  padding: 20px;
}

.legends-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 12px;
}
.legends-filters {
  display: flex;
  gap: 16px;
}
.filter-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.2s;
}
.filter-btn:hover {
  color: var(--text-main);
  background: var(--hover-bg);
}
.filter-btn.active {
  color: var(--text-main);
  background: var(--border-light);
}

/* Ranking Info Button — Modern Glassmorphic Badge Style */
#ranking-info-btn {
  background: var(--panel-bg);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 30px;
  padding: 4px 14px 4px 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#ranking-info-btn .rank-btn-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFDE4D 0%, #FFB800 50%, #FF8F00 100%);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(255, 152, 0, 0.35);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#ranking-info-btn:hover {
  transform: translateY(-2px);
  border-color: #F59E0B;
  background: rgba(245, 158, 11, 0.08);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.22);
  color: var(--text-main);
}

#ranking-info-btn:hover .rank-btn-icon {
  transform: rotate(15deg) scale(1.1);
  box-shadow: 0 4px 10px rgba(255, 152, 0, 0.5);
}

/* ══════════════════════════════════════════════
   PODIUM — 3D CUBE SIMULATION WITH 2D CLIP-PATH
   Element order: stats → avatar → username → block
   View: from upper-left (sees top + right faces)
   Dimensions: W=115px, Sx=14px, Ty=12px
   ══════════════════════════════════════════════ */
.podium-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  height: auto;
  min-height: auto;
  margin-bottom: 8px;
  padding-bottom: 0px;
  padding-top: 16px;
  overflow: visible;
  position: relative;
}

/* Ground shadow — removed per user request */
.podium-container::after {
  display: none;
}

/* ── Podium Slot ────────────────────────────────────────────── */
.podium-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 130px;
  position: relative;
  overflow: visible;
}

/* ── Avatar wrapper: contains image + glow ring ────────────── */
.podium-avatar-wrap {
  position: relative;
  z-index: 5;
  margin-bottom: 0;
}

/* Avatar */
.podium-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid #666;
  object-fit: cover;
  display: block;
  background-color: #1e2030;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  position: relative;
  z-index: 2;
}
.podium-slot.rank-1 .podium-avatar {
  width: 104px;
  height: 104px;
  border: 3px solid #f5c518;
  box-shadow: 0 0 0 4px rgba(245,197,24,0.25), 0 8px 28px rgba(245,197,24,0.35);
}
.podium-slot.rank-2 .podium-avatar { border-color: #9ba8b5; }
.podium-slot.rank-3 .podium-avatar { border-color: #b87333; }

/* ── Stats pill — uses theme variables to adapt dark/light ─── */
.podium-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--podium-stats-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--podium-stats-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 14px rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 6;
  margin-top: -14px;  /* overlaps bottom of avatar */
  white-space: nowrap;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Streak stat (fire icon + number) */
.podium-stat.streak {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--podium-stats-text);
}
.podium-stat.streak i {
  font-size: 13px;
  color: var(--podium-streak-color);
}

/* Divider between streak and XP */
.podium-stat-divider {
  width: 1px;
  height: 14px;
  background: var(--podium-stats-divider);
}

/* XP stat */
.podium-stat.xp {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--podium-stats-text);
}
/* Hexagon crystal XP badge */
.podium-xp-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 18px;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
  margin: 0 4px;
  z-index: 1;
  background: transparent;
  padding: 0;
  border-radius: 0;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(16, 211, 78, 0.45));
}

.podium-xp-badge::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #2ED865 0%, #10D34E 50%, #0AA139 100%);
  clip-path: polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%);
  z-index: -1;
}

/* ── Username ──────────────────────────────────────────────── */
.podium-username {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  margin-top: 8px;
  margin-bottom: 24px;
  text-align: center;
  width: 100%;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  z-index: 4;
}

/* ─── 3D wrapper: sets the front face footprint ─── */
.podium-3d {
  position: relative;
  width: 115px;
  overflow: visible;
  opacity: 0.92;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.podium-slot:hover .podium-3d {
  opacity: 1;
  transform: translateY(-4px);
}
.podium-slot.rank-1 .podium-3d { height: 165px; animation: podiumEmerge 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
.podium-slot.rank-2 .podium-3d { height: 128px; animation: podiumEmerge 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both; }
.podium-slot.rank-3 .podium-3d { height: 100px; animation: podiumEmerge 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both; }

@keyframes podiumEmerge {
  0% {
    opacity: 0;
    transform: translateY(35px);
  }
  100% {
    opacity: 0.92;
    transform: translateY(0);
  }
}

/* FRONT FACE */
.p3d-front {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--podium-block-bg);
  border-radius: 6px 0 6px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0.03) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0.03) 100%);
  transition: -webkit-mask-image 0.3s ease, mask-image 0.3s ease;
}
.podium-slot:hover .p3d-front {
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0.2) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0.2) 100%);
}

/* TOP FACE */
.p3d-top {
  position: absolute;
  top: -12px;
  left: 0;
  width: calc(100% + 14px);
  height: 12px;
  background: var(--podium-block-top-bg);
  clip-path: polygon(0% 100%, 89.1% 100%, 100% 0%, 10.9% 0%);
  z-index: 3;
}

/* RIGHT SIDE FACE */
.p3d-side {
  position: absolute;
  top: -12px;
  left: 100%;
  width: 14px;
  height: calc(100% + 12px);
  background: var(--podium-block-side-bg);
  clip-path: polygon(0% 12px, 0% 100%, 100% calc(100% - 12px), 100% 0%);
  z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0.03) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0.03) 100%);
  transition: -webkit-mask-image 0.3s ease, mask-image 0.3s ease;
}
.podium-slot:hover .p3d-side {
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0.2) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0.2) 100%);
}

/* RANK NUMBER */
.podium-number {
  font-size: 68px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

/* Top users list header */
.top-users-list-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.top-users-list-header::before {
  display: none;
}
.top-users-list-header h3 {
  font-size: 18px;
  color: var(--text-main);
  margin: 0;
  padding: 0;
}

.top-users-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.top-user-item {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  background: var(--hover-bg);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  gap: 16px;
}
.top-user-item:hover {
  background: var(--hover-bg);
}

/* Circular rank badges for lists — perfect match to screenshot */
.tu-rank {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  background: var(--border-light, rgba(255, 255, 255, 0.1));
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  line-height: 1;
}

.top-user-item.rank-1 .tu-rank {
  background: linear-gradient(135deg, #FFD000 0%, #F59E0B 100%);
  border: 1.5px solid #FFE566;
  color: #FFFFFF;
  font-size: 12px;
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.6);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.top-user-item.rank-2 .tu-rank {
  background: linear-gradient(135deg, #94A3B8 0%, #64748B 100%);
  border: 1.5px solid #CBD5E1;
  color: #FFFFFF;
  font-size: 12px;
  box-shadow: 0 3px 8px rgba(100, 116, 139, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.top-user-item.rank-3 .tu-rank {
  background: linear-gradient(135deg, #E07A5F 0%, #B45309 100%);
  border: 1.5px solid #FDBA74;
  color: #FFFFFF;
  font-size: 12px;
  box-shadow: 0 3px 8px rgba(180, 83, 9, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.tu-avatar {
  position: relative;
}
.tu-avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.tu-level-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  color: #000000;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: -0.3px;
  width: 24px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  text-shadow: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

.tu-level-badge::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #2ED865 0%, #10D34E 50%, #0AA139 100%);
  clip-path: polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%);
  z-index: -1;
}

/* Hexagonal Level Badge for Activity Feed Avatars (36px) - Proportional so it does not overshadow */
.activity-level-badge {
  position: absolute;
  bottom: -2px;
  right: -3px;
  color: #000000;
  font-size: 8px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.3px;
  width: 17px;
  height: 14.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  text-shadow: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.activity-level-badge::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #E68A36 0%, #CD7F32 50%, #9C5216 100%);
  clip-path: polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%);
  z-index: -1;
}

.activity-level-badge.tier-bronze::before {
  background: linear-gradient(135deg, #E68A36 0%, #CD7F32 50%, #9C5216 100%);
}
.activity-level-badge.tier-silver::before {
  background: linear-gradient(135deg, #F0F0F0 0%, #BDBDBD 50%, #757575 100%);
}
.activity-level-badge.tier-gold::before {
  background: linear-gradient(135deg, #FFE066 0%, #FFD700 50%, #D49B00 100%);
}
.activity-level-badge.tier-platinum::before {
  background: linear-gradient(135deg, #D8B4FE 0%, #A855F7 50%, #7E22CE 100%);
}
.activity-level-badge.tier-diamond::before {
  background: linear-gradient(135deg, #67E8F9 0%, #00E5FF 50%, #0284C7 100%);
}

.tu-name {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.tu-stats {
  display: flex;
  gap: 20px;
  align-items: center;
}
.tu-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
}
.tu-stat.streak { color: var(--text-main); }
.tu-stat.streak i { color: #ff9800; font-size: 16px; }
.tu-stat.xp {
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}
.tu-stat.xp .podium-xp-badge {
  width: 23px;
  height: 21px;
  font-size: 9px;
}

/* Responsive Grid */
@media (max-width: 1024px) {
  .rpg-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .area-grow-data, .area-overall-stats, .area-big-cards, .area-quest-summaries, .area-job-skills, .area-party-members, .area-home-live-codes {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }
  .area-overall-stats { grid-row: auto; }
}

/* =========================================
   FOOTER
   ========================================= */
.dashboard-footer {
  margin-top: 40px;
  padding: 30px 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  font-family: 'Inter', sans-serif;
  color: var(--text-muted);
  font-size: 12px;
}

.footer-copyright, .footer-contact, .footer-links, .footer-theme {
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-green {
  color: var(--accent-green);
  font-weight: 600;
  text-decoration: none;
}
.text-green:hover {
  opacity: 0.8;
}

.text-blue {
  color: #3b82f6;
  text-decoration: none;
}
.text-blue:hover {
  text-decoration: underline;
}

.footer-links {
  gap: 12px;
}

.footer-theme {
  gap: 12px;
}

/* Theme Switch Toggle */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
  display: flex;
  align-items: center;
  padding: 2px;
}

/* Dark mode specific track color */
body:not(.light-mode) .theme-slider {
  background-color: rgba(255, 255, 255, 0.2);
}

.theme-slider-thumb {
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

.theme-slider-thumb i {
  font-size: 11px;
  line-height: 1;
  display: block;
}

input:checked + .theme-slider .theme-slider-thumb {
  transform: translateX(20px);
}

/* =========================================
   PROFILE TAB
   ========================================= */
#tab-profile {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.profile-header-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 16px var(--shadow-color);
}

.profile-avatar-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 16px;
}

#profile-big-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--accent-green);
  object-fit: cover;
  background: transparent !important;
}

.edit-avatar-btn {
  position: absolute;
  bottom: 0;
  right: -5px;
  background: var(--accent-green);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: transform 0.2s;
}

.edit-avatar-btn:hover {
  transform: scale(1.1);
}

#profile-big-username {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  color: var(--text-main);
  margin: 0 0 4px 0;
}

#profile-big-email {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 24px 0;
}

.profile-actions {
  display: flex;
  gap: 12px;
}

.profile-ranks-card {
  padding: 24px;
}

.ranks-subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.ranks-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-rank-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: transparent;
  position: relative;
  overflow: hidden;
}

.profile-rank-item.active {
  background: rgba(255, 255, 255, 0.03);
}

.profile-rank-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 16px;
  box-shadow: 0 0 8px currentColor;
}

.profile-rank-info {
  flex: 1;
}

.profile-rank-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: var(--text-main);
  margin-bottom: 2px;
}

.profile-rank-range {
  font-size: 12px;
  color: var(--text-muted);
}

.profile-rank-boost {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.profile-rank-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px 12px;
  border-radius: 0 0 0 12px;
  font-size: 10px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.quest-title {
  font-weight: 700;
  color: var(--text-main);
}

.ranks-note {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 12px;
  align-items: flex-start;
}
.ranks-note i {
  margin-top: 2px;
}

/* =========================================
   FOOTER V2
   ========================================= */
.dashboard-footer-v2 {
  border-top: 1px solid var(--border-light);
  padding: 30px 40px;
  margin-top: 40px;
  font-family: 'Inter', sans-serif;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-v2-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-v2-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-v2-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-v2-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-v2-links a:hover {
  color: var(--text-main);
}

.footer-v2-dot {
  color: var(--text-muted);
  opacity: 0.6;
}

.footer-v2-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.8;
}

.footer-v2-disclaimer a {
  color: var(--text-muted);
  text-decoration: underline;
}

.footer-v2-disclaimer a:hover {
  color: var(--text-main);
}

.footer-v2-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.footer-v2-theme {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-selector-pill {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  padding: 6px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.2s;
  user-select: none;
}

.theme-selector-pill:hover {
  border-color: var(--text-muted);
}

.theme-dropdown-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  min-width: 120px;
  background: var(--panel-bg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 100;
  box-shadow: 0 8px 16px var(--shadow-color);
}

.theme-dropdown-menu.hidden {
  display: none;
}

.theme-option {
  padding: 10px 16px;
  cursor: pointer;
  color: var(--text-main);
  font-size: 13px;
  transition: background 0.2s;
}

.theme-option:hover {
  background: var(--hover-bg);
}

.theme-option.active {
  background: rgba(16, 211, 78, 0.15);
  color: var(--accent-green);
  font-weight: 600;
}

.footer-v2-socials {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 18px;
}

.footer-v2-socials a {
  color: var(--text-muted);
  transition: color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

.footer-v2-socials a:hover {
  color: var(--text-main);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .footer-v2-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-v2-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* AREA STORE */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding-top: 10px !important;
  margin-top: -10px;
  overflow: visible !important;
}

.store-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.store-card:hover {
  z-index: 10;
  transform: translateY(-5px);
  box-shadow: 0 8px 24px var(--shadow-color);
  border-color: var(--accent-green);
}
.store-card img {
  max-width: 100%;
  height: 80px;
  object-fit: contain;
  margin-bottom: 12px;
}
.store-card h4 {
  color: var(--text-main);
  margin-bottom: 4px;
  font-size: 16px;
}
.store-card p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 12px;
}
.store-cost {
  background: rgba(16, 211, 78, 0.1);
  color: var(--accent-green);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.hidden {
  display: none !important;
}

/* --- Leagues Modal Styles --- */
.league-modal-content {
  max-width: 850px;
  width: 95%;
  background: var(--panel-bg);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  max-height: 85vh;
  overflow-y: auto;
}

.league-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.league-tabs::-webkit-scrollbar {
  height: 4px;
}
.league-tabs::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
}

.league-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--hover-bg);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.league-tab-btn img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
}

.league-tab-btn:hover {
  background: rgba(255,255,255,0.08);
}
body.light-mode .league-tab-btn:hover {
  background: rgba(0,0,0,0.08);
}

.league-tab-btn.active {
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.league-tab-btn.active img {
  filter: none;
  opacity: 1;
}

.league-banner {
  background: linear-gradient(90deg, rgba(205,127,50,0.2) 0%, rgba(0,0,0,0) 100%); /* Color updated via JS */
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
}

#league-banner-icon {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(255,255,255,0.2));
}

.position-container {
  background: var(--hover-bg);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border-light);
}

#league-leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* REFERRALS REDESIGN */
.ref-top-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  position: relative;
}
.ref-promo-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  flex: 1;
  max-width: 250px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.ref-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(16, 211, 78, 0.1);
  color: #10D34E;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 16px auto;
}
.ref-promo-title {
  color: var(--text-main);
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 8px;
}
.ref-promo-sub {
  color: var(--text-muted);
  font-size: 14px;
}
.ref-plus-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--hover-bg);
  color: var(--accent-green);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  z-index: 2;
}

.ref-ways-section {
  margin-bottom: 40px;
}
.ref-way-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.ref-way-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #10D34E;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.ref-way-content {
  flex: 1;
}
.ref-way-content h4 {
  margin: 0 0 12px 0;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 700;
}
.ref-link-box {
  display: flex;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px 12px;
  align-items: center;
}
.ref-copy-btn {
  background: rgba(16, 211, 78, 0.1);
  color: #10D34E;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.ref-copy-btn:hover { background: rgba(16, 211, 78, 0.2); }

.ref-social-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.ref-social-btn {
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  color: white;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.ref-social-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}
.ref-social-btn.whatsapp { background: #25D366; }
.ref-social-btn.facebook { background: #1877F2; }
.ref-social-btn.twitter { background: #0F1419; }
.ref-social-btn.telegram { background: #0088CC; }
.ref-social-btn.reddit { background: #FF4500; }
.ref-social-btn.email { background: #6B7280; }

.ref-invite-inputs {
  display: flex;
  gap: 12px;
}
.ref-invite-inputs input {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px;
  color: var(--text-main);
  outline: none;
}

.ref-activity-section {
  background: transparent;
}
.ref-total-badge {
  background: var(--hover-bg);
  color: var(--text-main);
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
}
.ref-table-header {
  display: flex;
  padding: 12px 20px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}
.ref-table-row {
  display: flex;
  align-items: center;
  background: var(--panel-bg);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  padding: 16px 20px;
  margin-bottom: 12px;
  color: var(--text-main);
  box-shadow: 0 2px 8px var(--shadow-color);
}
.ref-table-row .account { flex: 2; font-weight: 700; font-size: 15px; }
.ref-table-row .status { flex: 1; text-align: center; font-weight: 700; font-size: 14px; }
.ref-table-row .status.pending { color: #FFA000; }
.ref-table-row .status.earned { color: #10D34E; }
.ref-table-row .date { flex: 1; text-align: center; color: #666; font-size: 14px; }
.ref-table-row .earned { flex: 1; text-align: right; font-weight: 800; font-size: 15px; }

/* Dark mode overrides for referrals removed as they now use variables */

/* =========================================
   MOBILE RESPONSIVENESS (< 768px)
   ========================================= */
@media (max-width: 768px) {
  /* General Layout */
  .rpg-wrapper {
    padding: 10px 8px !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  .rpg-card {
    padding: 16px 14px !important;
    box-sizing: border-box !important;
  }
  
  /* Topbar & Nav Links */
  .rpg-topbar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px 0 !important;
    padding: 10px 0 !important;
    margin-bottom: 16px !important;
    width: 100% !important;
  }
  .rpg-brand {
    order: 1 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 58% !important;
    gap: 8px !important;
  }
  .brand-logo-img {
    width: 32px !important;
    height: 32px !important;
  }
  .brand-title {
    font-size: 15px !important;
  }
  .brand-live-pulse {
    font-size: 9px !important;
  }
  .rpg-top-right {
    order: 2 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    padding: 0 !important;
  }
  .rpg-league-badge {
    padding-right: 8px !important;
    gap: 5px !important;
    border-right: 1px solid var(--border-light) !important;
  }
  .league-icon {
    font-size: 18px !important;
  }
  .league-label {
    font-size: 8px !important;
  }
  .league-value {
    font-size: 11.5px !important;
  }
  #rpg-rank-boost {
    font-size: 9px !important;
  }
  .avatar-container {
    width: 36px !important;
    height: 36px !important;
  }
  .rpg-user-profile img {
    width: 36px !important;
    height: 36px !important;
    border-width: 1.5px !important;
  }
  .level-badge {
    font-size: 9px !important;
    padding: 1px 4px !important;
    bottom: -2px !important;
    right: -2px !important;
  }
  .profile-arrow {
    display: none !important;
  }
  .rpg-nav-links {
    order: 3 !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    margin-top: 6px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding: 4px 2px 8px 2px !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .rpg-nav-links::-webkit-scrollbar {
    display: none;
  }
  .rpg-nav-links a {
    flex-shrink: 0 !important;
    padding: 6px 12px !important;
    font-size: 11.5px !important;
    border-radius: 9px !important;
  }

  /* Main Dashboard Grid */
  .rpg-dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Top Featured Offerwall Carousel Card */
  .home-offerwall-top-card {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 16px 14px !important;
    gap: 14px !important;
    margin-bottom: 16px !important;
  }
  .home-offerwall-left {
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 12px !important;
  }
  .home-offerwall-icon {
    width: 42px !important;
    height: 42px !important;
    font-size: 18px !important;
    border-radius: 12px !important;
  }
  .home-offerwall-title {
    font-size: 15.5px !important;
  }
  .home-offerwall-subtitle {
    font-size: 12px !important;
  }
  .home-offerwall-carousel-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .home-batch-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding-top: 4px !important;
    margin-top: 0 !important;
  }
  .home-batch-card {
    min-height: 64px !important;
    padding: 10px 12px !important;
  }
  .home-offerwall-action {
    width: 100% !important;
    margin-top: 2px !important;
  }
  .home-offerwall-all-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
  }

  /* Big Cards: Cash Balance & Streak */
  .area-big-cards {
    grid-column: 1 / -1 !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .big-card {
    padding: 18px 16px !important;
  }
  .big-card .card-content {
    width: 100% !important;
  }
  #rpg-streak-footer-text {
    white-space: normal !important;
    text-align: center !important;
  }

  /* Rewards History Chart */
  .area-grow-data {
    grid-column: 1 / -1 !important;
  }
  .chart-container {
    height: 220px !important;
    position: relative;
    width: 100% !important;
  }

  /* Overall Progress */
  .area-overall-stats {
    grid-column: 1 / -1 !important;
    padding: 18px 16px !important;
  }

  /* Latest Active Promo Codes Card on Home */
  .area-home-live-codes {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    padding: 18px 16px !important;
  }
  .area-home-live-codes .card-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
  }
  .view-all-codes-btn {
    align-self: stretch !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 8px 16px !important;
  }
  .home-codes-strip {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .home-mini-code-card {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* My Transactions & Activity Distribution & Latest Activity */
  .area-quest-summaries,
  .area-job-skills,
  .area-party-members {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }
  .activity-card-row {
    padding: 8px 10px !important;
  }

  /* Referrals Top Section */
  .ref-top-section {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .ref-promo-card {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Referrals 3 Ways Section */
  .ref-way-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  .ref-social-buttons {
    flex-direction: column !important;
    width: 100% !important;
  }
  .ref-social-btn {
    width: 100% !important;
    justify-content: center !important;
  }
  .ref-invite-inputs {
    flex-direction: column !important;
  }

  /* Referrals Activity Table */
  .ref-table-header {
    display: none !important;
  }
  .ref-table-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 14px !important;
    gap: 8px !important;
    border-radius: 12px !important;
  }
  .ref-table-row > div {
    text-align: left !important;
    width: 100% !important;
  }
  .ref-table-row .account {
    font-size: 15px !important;
  }
  .ref-table-row .date {
    font-size: 12px !important;
    margin-bottom: 2px !important;
  }
  .ref-table-row .status {
    display: inline-block !important;
    width: auto !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    background: rgba(0,0,0,0.05);
  }
  .dark-mode .ref-table-row .status {
    background: rgba(255,255,255,0.1);
  }
  .ref-table-row .earned {
    font-size: 17px !important;
    margin-top: 6px !important;
  }

  /* Offerwall Tab */
  #tab-offerwall {
    padding: 10px 0 !important;
  }
  .offerwall-hero-banner {
    padding: 18px 14px !important;
    border-radius: 16px !important;
  }
  .offerwall-hero-banner > div {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
  }
  .offerwall-hero-banner h2 {
    font-size: 20px !important;
  }
  .offerwall-hero-banner p {
    font-size: 13px !important;
  }
  .offerwall-filter-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px !important;
    gap: 8px !important;
  }
  .offerwall-filter-bar::-webkit-scrollbar {
    display: none;
  }
  .offer-filter-btn {
    flex-shrink: 0 !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
  }
  #offerwall-catalog-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Codes Hub Tab */
  #tab-codes {
    padding: 10px 0 !important;
  }
  .codes-hub-container {
    padding: 12px 0 !important;
  }
  .codes-hub-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .codes-hub-title {
    font-size: 20px !important;
  }
  .codes-hub-subtitle {
    font-size: 12.5px !important;
  }
  .codes-filter-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px !important;
    gap: 8px !important;
    margin-bottom: 18px !important;
  }
  .codes-filter-bar::-webkit-scrollbar {
    display: none;
  }
  .code-filter-btn {
    flex-shrink: 0 !important;
    padding: 7px 12px !important;
    font-size: 12px !important;
  }
  .live-codes-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Store Tab */
  #tab-store {
    padding: 10px 0 !important;
  }
  .store-filter-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px !important;
    gap: 8px !important;
  }
  .store-filter-bar::-webkit-scrollbar {
    display: none;
  }
  .store-filter-btn {
    flex-shrink: 0 !important;
  }
  #store-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* All Modals Mobile Adaptation */
  .modal-overlay {
    padding: 12px !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .modal-content,
  .profile-modal-content,
  .league-modal-content {
    width: 95% !important;
    max-width: 95% !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    padding: 20px 16px !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
  }
}

/* Redesigned Profile Modal */
.profile-modal-content {
  max-width: 800px !important;
  width: 95%;
  background: var(--panel-bg) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 20px !important;
  padding: 32px !important;
  box-shadow: 0 20px 60px var(--shadow-color) !important;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.profile-modal-content::-webkit-scrollbar {
  width: 6px;
}

.profile-modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.profile-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  background: linear-gradient(145deg, var(--panel-bg) 0%, rgba(var(--rank-glow-rgb, 120, 80, 220), 0.06)) !important;
  border-color: rgba(var(--rank-glow-rgb, 120, 80, 220), 0.14) !important;
}
body.light-mode .profile-modal-header {
  background: linear-gradient(145deg, #ffffff 0%, rgba(var(--rank-glow-rgb, 120, 80, 220), 0.04)) !important;
  border-color: rgba(var(--rank-glow-rgb, 120, 80, 220), 0.18) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06) !important;
}

.profile-glow-effect {
  background: rgba(var(--rank-glow-rgb, 120, 80, 220), 0.08) !important;
}
body.light-mode .profile-glow-effect {
  background: rgba(var(--rank-glow-rgb, 120, 80, 220), 0.05) !important;
}

.profile-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-avatar-container {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}

.profile-avatar-container img,
.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(16, 211, 78, 0.4);
  box-shadow: 0 4px 15px rgba(16, 211, 78, 0.15);
  background: transparent !important;
}

.profile-level-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 30px;
  height: 26px;
  color: #000000 !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 900 !important;
  font-size: 11.5px !important;
  letter-spacing: 0px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  z-index: 5;
  text-shadow: none !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.profile-level-badge::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #E68A36 0%, #CD7F32 50%, #9C5216 100%);
  clip-path: polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%);
  z-index: -1;
}

.profile-level-badge.tier-bronze::before {
  background: linear-gradient(135deg, #E68A36 0%, #CD7F32 50%, #9C5216 100%);
}
.profile-level-badge.tier-silver::before {
  background: linear-gradient(135deg, #F0F0F0 0%, #BDBDBD 50%, #757575 100%);
}
.profile-level-badge.tier-gold::before {
  background: linear-gradient(135deg, #FFE066 0%, #FFD700 50%, #D49B00 100%);
}
.profile-level-badge.tier-platinum::before {
  background: linear-gradient(135deg, #D8B4FE 0%, #A855F7 50%, #7E22CE 100%);
}
.profile-level-badge.tier-diamond::before {
  background: linear-gradient(135deg, #67E8F9 0%, #00E5FF 50%, #0284C7 100%);
}

.vip-upgrade-badge {
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
}
.vip-upgrade-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
  filter: brightness(1.1);
}

.profile-user-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-display-username {
  font-size: 24px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  margin: 0;
  letter-spacing: -0.5px;
}

.profile-rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rank-pill-bg);
  border: 1px solid var(--rank-pill-border);
  padding: 6px 16px;
  border-radius: 20px;
  width: fit-content;
  font-size: 14px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: #fff;
}

.profile-rank-pill img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.profile-rank-pill span {
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.profile-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.profile-badge-pill {
  font-size: 13px;
  background: var(--hover-bg);
  border: 1px solid var(--border-light);
  padding: 10px 16px;
  border-radius: 12px;
  color: var(--text-main);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-family: 'Outfit', sans-serif;
}

.profile-badge-pill:hover {
  border-color: var(--accent-green);
  background: rgba(16, 211, 78, 0.05);
  transform: translateY(-1px);
}

.profile-badge-pill i {
  font-size: 14px;
  color: var(--accent-green);
}

.profile-xp-progress-section {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 24px;
}

.profile-xp-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.profile-xp-bar-outer {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
  width: 100%;
}

.profile-xp-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, #10D34E, #00E5FF);
  border-radius: 6px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(16, 211, 78, 0.3);
}

.profile-stats-grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.profile-metric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.25s ease;
  min-height: 120px;
}

.profile-metric-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(16, 211, 78, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.profile-metric-card .icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 16px;
}

.profile-metric-card.m-credits .icon-circle {
  background: rgba(255, 215, 0, 0.1);
  color: #FFD700;
  border: 1px solid rgba(255, 215, 0, 0.15);
}

.profile-metric-card.m-rewards .icon-circle {
  background: rgba(168, 85, 247, 0.1);
  color: #A855F7;
  border: 1px solid rgba(168, 85, 247, 0.15);
}

.profile-metric-card.m-streak .icon-circle {
  background: rgba(255, 82, 82, 0.1);
  color: #FF5252;
  border: 1px solid rgba(255, 82, 82, 0.15);
}

.profile-metric-card.m-referrals .icon-circle {
  background: rgba(0, 229, 255, 0.1);
  color: #00E5FF;
  border: 1px solid rgba(0, 229, 255, 0.15);
}

.profile-metric-card .label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.profile-metric-card .val {
  font-size: 22px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  margin: 0;
}

@media (max-width: 768px) {
  .profile-stats-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .profile-modal-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .profile-header-right {
    align-items: flex-start;
    width: 100%;
  }
  .profile-badge-pill {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Fondito verde y glow para el botón Redeem */
.redeem-gift-btn {
  background: rgba(16, 211, 78, 0.1) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 211, 78, 0.3) !important;
  color: #10D34E !important;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(16, 211, 78, 0.2) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.redeem-gift-btn:hover {
  background: rgba(16, 211, 78, 0.2) !important;
  border-color: rgba(16, 211, 78, 0.5) !important;
  transform: translateY(-1px);
  box-shadow: 0 0 15px rgba(16, 211, 78, 0.4) !important;
  color: #10D34E !important;
}

/* Responsive layout for profile card */
@media (max-width: 768px) {
  .profile-card-divider {
    display: none !important;
  }
  .profile-modal-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 24px !important;
  }
  .profile-col-identity {
    width: 100% !important;
  }
  .profile-col-progress-card {
    width: 100% !important;
  }
}

/* --- APP DOWNLOAD BUTTONS (OFFICIAL STORE BADGE AESTHETIC) --- */
.download-app-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: auto;
  flex: 1;
  max-width: 210px;
  min-width: 170px;
  padding: 8px 16px;
  border-radius: 9px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.download-app-btn .btn-icon {
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  text-align: center;
}

.download-app-btn .btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.1;
}

.download-app-btn .btn-subtitle {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 2px;
  opacity: 0.85;
}

.download-app-btn .btn-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* --- DARK MODE BADGE (Translucent, Style-matching dark gray) --- */
:root .download-app-btn,
body.dark-mode .download-app-btn,
body.dark-mode .btn-android,
body.dark-mode .btn-ios,
.btn-android,
.btn-ios {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 15px var(--shadow-color);
}

:root .download-app-btn .btn-icon,
body.dark-mode .download-app-btn .btn-icon {
  color: var(--text-main) !important;
}

:root .download-app-btn .btn-subtitle,
body.dark-mode .download-app-btn .btn-subtitle {
  color: var(--text-muted) !important;
}

:root .download-app-btn .btn-title,
body.dark-mode .download-app-btn .btn-title {
  color: var(--text-main) !important;
}

:root .download-app-btn:hover,
body.dark-mode .download-app-btn:hover,
body.dark-mode .btn-android:hover,
body.dark-mode .btn-ios:hover,
.btn-android:hover,
.btn-ios:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px var(--shadow-color);
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-main) !important;
}

/* --- LIGHT MODE BADGE (Translucent, Style-matching light gray) --- */
@media (prefers-color-scheme: light) {
  :root:not(.dark-mode) .download-app-btn,
  body.light-mode .download-app-btn,
  body.light-mode .btn-android,
  body.light-mode .btn-ios {
    background: rgba(0, 0, 0, 0.04) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 15px var(--shadow-color);
  }

  :root:not(.dark-mode) .download-app-btn .btn-icon,
  body.light-mode .download-app-btn .btn-icon {
    color: var(--text-main) !important;
  }

  :root:not(.dark-mode) .download-app-btn .btn-subtitle,
  body.light-mode .download-app-btn .btn-subtitle {
    color: var(--text-muted) !important;
  }

  :root:not(.dark-mode) .download-app-btn .btn-title,
  body.light-mode .download-app-btn .btn-title {
    color: var(--text-main) !important;
  }

  :root:not(.dark-mode) .download-app-btn:hover,
  body.light-mode .download-app-btn:hover,
  body.light-mode .btn-android:hover,
  body.light-mode .btn-ios:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px var(--shadow-color);
    background: rgba(0, 0, 0, 0.08) !important;
    color: var(--text-main) !important;
  }
}

body.light-mode .download-app-btn,
body.light-mode .btn-android,
body.light-mode .btn-ios {
  background: rgba(0, 0, 0, 0.04) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 15px var(--shadow-color);
}
body.light-mode .download-app-btn .btn-icon { color: var(--text-main) !important; }
body.light-mode .download-app-btn .btn-subtitle { color: var(--text-muted) !important; }
body.light-mode .download-app-btn .btn-title { color: var(--text-main) !important; }
body.light-mode .download-app-btn:hover,
body.light-mode .btn-android:hover,
body.light-mode .btn-ios:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px var(--shadow-color);
  background: rgba(0, 0, 0, 0.08) !important;
  color: var(--text-main) !important;
}

.download-app-btn:active {
  transform: translateY(1px) scale(0.98);
}

/* Custom Heading Fonts matching the logo */
h1, h2, h3, h4, h5, h6, .welcome-title, .rpg-brand h1, .logo, .section-title, .title {
  font-family: 'Outfit', -apple-system, sans-serif !important;
}

/* --- PODIUM & AVATARS CUSTOM DESIGN --- */

/* Hover scale effect for podium slots */
.podium-slot {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.podium-slot:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Base style and background color for podium avatars to contrast white hair */
.podium-avatar {
  background: rgba(255, 255, 255, 0.08) !important; /* Contrasts with white hair */
  border-radius: 50% !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
  border: 3px solid transparent !important;
  transition: all 0.3s ease;
}

body.light-mode .podium-avatar {
  background: rgba(0, 0, 0, 0.05) !important;
}

/* Borders and shadows based on Rank */
.podium-slot.rank-1 .podium-avatar {
  border-color: #FFD700 !important;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4) !important;
  background: rgba(255, 215, 0, 0.1) !important;
}
.podium-slot.rank-2 .podium-avatar {
  border-color: #C0C0C0 !important;
  box-shadow: 0 0 15px rgba(192, 192, 192, 0.3) !important;
  background: rgba(192, 192, 192, 0.1) !important;
}
.podium-slot.rank-3 .podium-avatar {
  border-color: #CD7F32 !important;
  box-shadow: 0 0 15px rgba(205, 127, 50, 0.3) !important;
  background: rgba(205, 127, 50, 0.1) !important;
}

/* Beautiful custom gradients and shadows for the podium blocks */
.podium-slot .podium-block {
  border-radius: 12px 12px 0 0 !important;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.podium-slot .podium-block::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.podium-slot.rank-1 .podium-block {
  background: linear-gradient(135deg, #FFE082 0%, #FFB300 50%, #FF8F00 100%) !important;
  border: 1px solid rgba(255, 215, 0, 0.5) !important;
  box-shadow: 0 10px 25px rgba(255, 143, 0, 0.25), inset 0 2px 4px rgba(255,255,255,0.4) !important;
}
.podium-slot.rank-2 .podium-block {
  background: linear-gradient(135deg, #F5F5F5 0%, #BDBDBD 50%, #9E9E9E 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 10px 20px rgba(158, 158, 158, 0.2), inset 0 2px 4px rgba(255,255,255,0.4) !important;
}
.podium-slot.rank-3 .podium-block {
  background: linear-gradient(135deg, #FFE0B2 0%, #CD7F32 50%, #8D6E63 100%) !important;
  border: 1px solid rgba(205, 127, 50, 0.4) !important;
  box-shadow: 0 10px 20px rgba(205, 127, 50, 0.2), inset 0 2px 4px rgba(255,255,255,0.4) !important;
}

/* Glow and typography for podium numbers — 3D extruded Duolingo/game style */
.podium-slot .podium-number {
  font-family: 'Outfit', sans-serif !important;
  font-size: 58px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  text-shadow: 0 4px 0 #7b8694, 0 8px 16px rgba(0, 0, 0, 0.35) !important;
  line-height: 1 !important;
}

.podium-slot.rank-1 .podium-number {
  font-size: 68px !important;
  color: #ffffff !important;
  text-shadow: 0 4px 0 #c2a649, 0 8px 16px rgba(0, 0, 0, 0.4) !important;
}

.podium-slot.rank-3 .podium-number {
  text-shadow: 0 4px 0 #8c5830, 0 8px 16px rgba(0, 0, 0, 0.35) !important;
}

/* Avatar backgrounds in global lists to contrast white hair */
.tu-avatar img {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 2px solid var(--border-light, rgba(255, 255, 255, 0.1)) !important;
  border-radius: 50% !important;
  transition: all 0.2s ease;
}

body.light-mode .tu-avatar img {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.05) !important;
}

/* ========================================================
   LIVE REWARD CODES HUB STYLES
   ======================================================== */
.codes-hub-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 0 40px 0;
}

.codes-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(0, 242, 254, 0.05) 100%);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 20px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.codes-hub-title-box {
  display: flex;
  align-items: center;
  gap: 18px;
}

.codes-hub-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #FF6B00 0%, #FFD700 48%, #10D34E 100%);
  color: #000000;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.25), 0 2px 8px rgba(16, 211, 78, 0.2);
}

.codes-hub-title {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--text-main);
  margin: 0 0 4px 0;
  letter-spacing: 0.5px;
}

.codes-hub-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

.codes-network-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.35);
  border-radius: 99px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 12px;
  color: #00E676;
  letter-spacing: 0.8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00E676;
  box-shadow: 0 0 10px #00E676;
  animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

/* Filter Bar */
.codes-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.code-filter-btn {
  background: var(--panel-bg);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  white-space: nowrap;
  flex-shrink: 0;
  overflow: hidden;
}

.code-filter-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  transition: filter 0.3s ease, transform 0.3s ease;
}

/* In Light Mode: force all images to be pure black for maximum contrast on pure white buttons */
@media (prefers-color-scheme: light) {
  body:not(.dark-mode) .code-filter-btn:not(.active) {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.12);
    color: #1E293B;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }
  body:not(.dark-mode) .code-filter-btn img {
    filter: brightness(0) !important;
  }
  body:not(.dark-mode) .code-filter-btn i {
    color: #1E293B;
  }
}

body.light-mode .code-filter-btn:not(.active) {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.12);
  color: #1E293B;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
body.light-mode .code-filter-btn img {
  filter: brightness(0) !important;
}
body.light-mode .code-filter-btn i {
  color: #1E293B;
}

/* Active buttons with dark backgrounds in light mode */
body.light-mode .code-filter-btn.active[data-flavor="mypoints"] img,
body.light-mode .code-filter-btn.active[data-flavor="freeward"] img,
body.light-mode .code-filter-btn.active[data-flavor="lootup"] img,
body.light-mode .code-filter-btn.active[data-flavor="prizerebel"] img {
  filter: brightness(0) invert(1) !important;
}

.code-filter-btn .filter-btn-text {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin 0.35s ease;
  margin-left: 0;
  letter-spacing: 0.5px;
}

.code-filter-btn:hover {
  background: var(--hover-bg);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  gap: 8px;
  padding: 8px 16px;
}

.code-filter-btn:active {
  transform: translateY(2px) scale(0.97) !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.35) !important;
}

@media (prefers-color-scheme: light) {
  .code-filter-btn:not(.active):hover {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.28);
    color: #0F172A;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  }
}

body.light-mode .code-filter-btn:not(.active):hover {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.28);
  color: #0F172A;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.code-filter-btn:hover .filter-btn-text,
.code-filter-btn.active .filter-btn-text {
  max-width: 140px;
  opacity: 1;
  margin-left: 4px;
}

.code-filter-btn.active {
  gap: 8px;
  padding: 8px 16px;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.35), 0 4px 14px rgba(0, 0, 0, 0.25);
}

.code-filter-btn.active img {
  filter: none;
}

.code-box-row:active {
  transform: scale(0.985) !important;
}

.code-filter-btn.active,
.code-filter-btn.active[data-flavor="all"] {
  background: linear-gradient(135deg, #FF6B00 0%, #FFD700 48%, #10D34E 100%) !important;
  color: #000000 !important;
  border-color: #FFD700 !important;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.25), 0 2px 8px rgba(16, 211, 78, 0.2) !important;
}

.code-filter-btn.active[data-flavor="all"] i,
.code-filter-btn.active[data-flavor="all"] .filter-btn-text {
  color: #000000 !important;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.code-filter-btn.active[data-flavor="inboxdollars"] {
  background: #10D34E;
  color: #000000;
  border-color: #10D34E;
  box-shadow: 0 4px 12px rgba(16, 211, 78, 0.25), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.code-filter-btn.active[data-flavor="swagbucks"] {
  background: #76FF03;
  color: #000000;
  border-color: #76FF03;
  box-shadow: 0 4px 12px rgba(118, 255, 3, 0.25), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.code-filter-btn.active[data-flavor="mypoints"] {
  background: #FF1744;
  color: #FFFFFF;
  border-color: #FF1744;
  box-shadow: 0 4px 12px rgba(255, 23, 68, 0.25), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.code-filter-btn.active[data-flavor="freecash"] {
  background: #00E676;
  color: #000000;
  border-color: #00E676;
  box-shadow: 0 4px 12px rgba(0, 230, 118, 0.25), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.code-filter-btn.active[data-flavor="freeward"] {
  background: #9B59B6;
  color: #FFFFFF;
  border-color: #9B59B6;
  box-shadow: 0 4px 12px rgba(155, 89, 182, 0.25), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.code-filter-btn.active[data-flavor="gain"] {
  background: #BB86FC;
  color: #000000;
  border-color: #BB86FC;
  box-shadow: 0 4px 12px rgba(187, 134, 252, 0.25), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.code-filter-btn.active[data-flavor="heycash"] {
  background: #A3E635;
  color: #000000;
  border-color: #A3E635;
  box-shadow: 0 4px 12px rgba(163, 230, 53, 0.25), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.code-filter-btn.active[data-flavor="lootup"] {
  background: #10B981;
  color: #FFFFFF;
  border-color: #10B981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.code-filter-btn.active[data-flavor="prizerebel"] {
  background: #FF5722;
  color: #FFFFFF;
  border-color: #FF5722;
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.25), 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Grid layout */
.live-codes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
}

.codes-loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
}

.codes-loading-state i {
  font-size: 32px;
  color: #FFD700;
  margin-bottom: 14px;
}

/* Individual Live Code Card */
.live-code-card {
  background: rgba(26, 31, 44, 0.42);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

body.light-mode .live-code-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.home-mini-code-card {
  background: rgba(26, 31, 44, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

body.light-mode .home-mini-code-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   EXPIRED CODE CARDS (Harmonious & Clean in both Dark & Light Themes)
   ========================================================================== */

/* Dark Mode Expired Card */
.live-code-card.expired,
.home-mini-code-card.expired {
  opacity: 0.5;
  background: rgba(20, 24, 34, 0.38) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  filter: grayscale(35%) !important;
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

.live-code-card.expired:hover,
.home-mini-code-card.expired:hover {
  transform: translateY(-2px);
  opacity: 0.75 !important;
  filter: grayscale(15%) !important;
}

/* Light Mode Expired Card - Soft White-Smoke / Pearl with Clean Contrast & Subtle Opacity */
body.light-mode .live-code-card.expired,
body.light-mode .home-mini-code-card.expired {
  background: rgba(241, 245, 249, 0.75) !important;
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.02) !important;
  opacity: 0.52 !important;
  filter: grayscale(45%) !important;
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

body.light-mode .live-code-card.expired:hover,
body.light-mode .home-mini-code-card.expired:hover {
  transform: translateY(-2px);
  opacity: 0.78 !important;
  filter: grayscale(20%) !important;
}

body.light-mode .live-code-card.expired .code-desc-text,
body.light-mode .home-mini-code-card.expired .code-desc-text {
  color: #64748B !important;
}

body.light-mode .live-code-card.expired .code-box-row,
body.light-mode .home-mini-code-card.expired .code-box-row {
  background: #EDF2F7 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: none !important;
}

body.light-mode .live-code-card.expired .promo-box-reveal-area span,
body.light-mode .home-mini-code-card.expired .promo-box-reveal-area span {
  color: #475569 !important;
}

body.light-mode .live-code-card.expired button,
body.light-mode .home-mini-code-card.expired button {
  background: #E2E8F0 !important;
  color: #334155 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .live-code-card.expired .code-platform-badge,
body.light-mode .home-mini-code-card.expired .code-platform-badge {
  background: #EDF2F7 !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .live-code-card.expired .code-status-expired,
body.light-mode .home-mini-code-card.expired .code-status-expired {
  background: rgba(239, 68, 68, 0.08) !important;
  color: #EF4444 !important;
  border-color: rgba(239, 68, 68, 0.2) !important;
}

.code-str-value.blurred {
  filter: blur(5px);
  user-select: none;
  opacity: 0.65;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.code-reveal-btn {
  background: #00C853;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.code-reveal-btn:hover {
  filter: brightness(1.15);
  transform: scale(1.03);
}

.code-countdown-timer {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ecosystem-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 4px 0;
}

.ecosystem-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border-light);
  opacity: 0.6;
}

.ecosystem-divider-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--card-bg-hover);
  border: 1px solid var(--border-light);
}

.live-code-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.code-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ==========================================================================
   ACTIVITY DETAIL / OFFER POPUP MODAL
   ========================================================================== */
.activity-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  animation: fadeIn 0.2s ease-out;
}

.activity-modal-card {
  background: #1B1E28 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 22px;
  width: 100%;
  max-width: 420px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  position: relative;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: #FFFFFF;
}

.activity-modal-card .activity-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(16, 211, 78, 0.15);
  color: #10D34E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px auto;
  border: 1px solid rgba(16, 211, 78, 0.35);
  box-shadow: 0 0 20px rgba(16, 211, 78, 0.2);
}

.activity-modal-card h3 {
  color: #FFFFFF !important;
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 10px 0;
  line-height: 1.3;
  font-family: 'Outfit', sans-serif;
}

.activity-modal-card .activity-modal-badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(16, 211, 78, 0.15);
  border: 1px solid rgba(16, 211, 78, 0.4);
  color: #10D34E;
  font-weight: 900;
  font-family: 'Space Mono', monospace;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
}

.activity-modal-card p {
  color: #94A3B8 !important;
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 0 24px 0;
}

.activity-modal-card .modal-close-x {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94A3B8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.activity-modal-card .modal-close-x:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

/* Light Mode Activity Modal */
body.light-mode .activity-modal-backdrop {
  background: rgba(15, 23, 42, 0.45);
}

body.light-mode .activity-modal-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.09) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
  color: #0F172A;
}

body.light-mode .activity-modal-card h3 {
  color: #0F172A !important;
}

body.light-mode .activity-modal-card p {
  color: #475569 !important;
}

body.light-mode .activity-modal-card .modal-close-x {
  background: #F1F5F9;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #64748B;
}

body.light-mode .activity-modal-card .modal-close-x:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.code-flavor-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Flavor specific colors */
.flavor-winit {
  background: rgba(16, 211, 78, 0.15);
  color: #10D34E;
  border: 1px solid rgba(16, 211, 78, 0.4);
}

.flavor-perks {
  background: rgba(255, 23, 68, 0.15);
  color: #FF1744;
  border: 1px solid rgba(255, 23, 68, 0.4);
}

.flavor-swag {
  background: rgba(118, 255, 3, 0.15);
  color: #76FF03;
  border: 1px solid rgba(118, 255, 3, 0.4);
}

.flavor-codblox {
  background: rgba(157, 80, 187, 0.18);
  color: #D47AE8;
  border: 1px solid rgba(157, 80, 187, 0.4);
}

.code-reward-pill {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  color: #FFD700;
  background: rgba(255, 215, 0, 0.12);
  padding: 4px 10px;
  border-radius: 8px;
}

.code-card-body {
  margin: 4px 0;
}

.code-desc-text {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 14px 0;
  line-height: 1.4;
}

.code-box-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
}

body.light-mode .code-box-row {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.15);
}

.code-str-value {
  font-family: monospace;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 1px;
}

.code-copy-btn {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #111;
  cursor: pointer;
  transition: all 0.2s ease;
}

.code-copy-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.35);
}

.code-copy-btn.copied {
  background: #00E676;
  color: #000;
}

.code-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

.code-status-active {
  color: #00E676;
  font-weight: 700;
}

.code-status-expired {
  color: #FF5252;
  font-weight: 700;
}

/* Toast */
.code-copy-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--panel-bg);
  border: 1px solid #00E676;
  border-radius: 14px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 99999;
  color: #00E676;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 14px;
  animation: slideInToast 0.3s ease;
}

.code-copy-toast.hidden {
  display: none !important;
}

@keyframes slideInToast {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Edit Profile Pill Button (Screenshot aesthetic) */
.edit-profile-pill-btn {
  background: var(--card-bg-hover);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 8px 18px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.edit-profile-pill-btn:hover {
  background: #10D34E;
  color: #000000;
  border-color: #10D34E;
  transform: translateY(-1px);
}
body.light-mode .edit-profile-pill-btn {
  background: #FFFFFF;
  color: #111827;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
body.light-mode .edit-profile-pill-btn:hover {
  background: #10D34E;
  color: #000000;
  border-color: #10D34E;
}

.edit-input-field {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.edit-input-field:focus {
  border-color: #00E676;
}

.modal-close-btn {
  background: #18181c !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  opacity: 1 !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: transform 0.2s, border-color 0.2s !important;
}
.modal-close-btn:hover {
  transform: scale(1.08);
  border-color: #ffffff !important;
}

/* Profile Tabs & Milestones Styling */
.profile-tab-btn.active {
  background: rgba(16, 211, 78, 0.15) !important;
  color: #10D34E !important;
  border: 1px solid rgba(16, 211, 78, 0.4) !important;
  box-shadow: 0 2px 10px rgba(16, 211, 78, 0.2) !important;
}

body.light-mode .profile-tab-btn.active {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #059669 !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

.milestone-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  transition: all 0.2s ease;
  gap: 14px;
}

.milestone-item-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

body.light-mode .milestone-item-card {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

body.light-mode .milestone-item-card:hover {
  background: #F8FAFC;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Subtabs Segmented Control (Public Profile Modal) */
.achieve-subtab-container {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

body.light-mode .achieve-subtab-container {
  background: #E2E8F0;
  border-color: #CBD5E1;
}

.achieve-subtab-btn {
  padding: 6px 16px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.achieve-subtab-btn:hover {
  color: var(--text-main);
}

.achieve-subtab-btn.active {
  background: #10D34E !important;
  color: #032b11 !important;
  box-shadow: 0 2px 8px rgba(16, 211, 78, 0.35);
}

body.light-mode .achieve-subtab-btn {
  color: #475569;
}

body.light-mode .achieve-subtab-btn:hover {
  color: #0F172A;
}

body.light-mode .achieve-subtab-btn.active {
  background: #10D34E !important;
  color: #022c10 !important;
  box-shadow: 0 2px 8px rgba(16, 211, 78, 0.25);
}

/* Light mode milestone badges */
body.light-mode .milestone-badge-claimed {
  background: rgba(16, 211, 78, 0.2) !important;
  color: #047857 !important;
  border-color: rgba(16, 211, 78, 0.6) !important;
}

body.light-mode .milestone-status-completed {
  color: #047857 !important;
}

/* User Activity Rows (Compact & Sleek) */
.user-act-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  min-height: 52px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  transition: all 0.2s ease;
  gap: 12px;
  flex-wrap: wrap;
}

.user-act-row:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

body.light-mode .user-act-row {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

body.light-mode .user-act-row:hover {
  background: #F8FAFC;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Activity Filter Bar (Private Profile) */
.activity-filter-bar {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 5px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

body.light-mode .activity-filter-bar {
  background: #E2E8F0;
  border-color: #CBD5E1;
}

.activity-filter-btn {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.activity-filter-btn:hover {
  color: var(--text-main);
}

.activity-filter-btn.active {
  background: #10D34E !important;
  color: #032b11 !important;
  box-shadow: 0 2px 8px rgba(16, 211, 78, 0.3);
}

body.light-mode .activity-filter-btn {
  color: #475569;
}

body.light-mode .activity-filter-btn:hover {
  color: #0F172A;
}

body.light-mode .activity-filter-btn.active {
  background: #10D34E !important;
  color: #022c10 !important;
  box-shadow: 0 2px 8px rgba(16, 211, 78, 0.25);
}

/* Light mode badge color contrast & larger font */
.act-xp-badge, .act-cr-badge {
  font-size: 13px !important;
  font-weight: 800 !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
}

body.light-mode .act-xp-badge {
  color: #7E22CE !important;
  background: rgba(168, 85, 247, 0.16) !important;
  border-color: rgba(168, 85, 247, 0.5) !important;
}

body.light-mode .act-cr-badge {
  color: #047857 !important;
  background: rgba(16, 211, 78, 0.16) !important;
  border-color: rgba(16, 211, 78, 0.5) !important;
}

/* =========================================================
   OFFERWALL TAB & CARDS STYLES (RICH MULTI-COLOR ACCENTS)
   ========================================================= */

/* Hero Banner */
.offerwall-hero-banner {
  transition: all 0.3s ease;
  border-radius: 20px;
}
body:not(.light-mode) .offerwall-hero-banner,
body.dark-mode .offerwall-hero-banner {
  background: radial-gradient(circle at 12% 30%, rgba(16, 211, 78, 0.1) 0%, transparent 45%),
              radial-gradient(circle at 88% 70%, rgba(56, 189, 248, 0.06) 0%, transparent 45%),
              linear-gradient(145deg, #232a26 0%, #1c221e 50%, #161a17 100%) !important;
  border: 1px solid rgba(16, 211, 78, 0.22) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(16, 211, 78, 0.05) !important;
}
body.light-mode .offerwall-hero-banner {
  background: radial-gradient(circle at 10% 40%, rgba(16, 211, 78, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 90% 60%, rgba(56, 189, 248, 0.05) 0%, transparent 50%),
              linear-gradient(145deg, #F8FAF9 0%, #FFFFFF 50%, #F0FDF4 100%) !important;
  border: 1px solid rgba(16, 211, 78, 0.28) !important;
  box-shadow: 0 6px 20px rgba(16, 211, 78, 0.08), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

.offerwall-hero-aura {
  display: none !important;
}

.offerwall-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
body:not(.light-mode) .offerwall-icon-box,
body.dark-mode .offerwall-icon-box {
  background: rgba(16, 211, 78, 0.12);
  border: 1px solid rgba(16, 211, 78, 0.3);
  color: #10D34E;
  box-shadow: 0 4px 16px rgba(16, 211, 78, 0.15);
}
body.light-mode .offerwall-icon-box {
  background: rgba(16, 211, 78, 0.08);
  border: 1px solid rgba(16, 211, 78, 0.2);
  color: #059669;
  box-shadow: none;
}

.offerwall-cash-badge {
  background: rgba(16, 211, 78, 0.1) !important;
  border: 1px solid rgba(16, 211, 78, 0.3) !important;
  color: #10D34E !important;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: none;
}
body.light-mode .offerwall-cash-badge {
  color: #059669 !important;
  background: rgba(16, 211, 78, 0.12) !important;
  border: 1px solid rgba(16, 211, 78, 0.35) !important;
}

.offerwall-streak-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
}
body:not(.light-mode) .offerwall-streak-badge,
body.dark-mode .offerwall-streak-badge {
  background: rgba(255, 255, 255, 0.05);
  color: #fcd34d !important;
  border: 1px solid rgba(255, 255, 255, 0.09);
}
body.light-mode .offerwall-streak-badge {
  background: rgba(245, 158, 11, 0.08);
  color: #b45309 !important;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Action Buttons */
.offerwall-btn-secondary {
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Outfit', sans-serif;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
body:not(.light-mode) .offerwall-btn-secondary,
body.dark-mode .offerwall-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
}
body:not(.light-mode) .offerwall-btn-secondary:hover,
body.dark-mode .offerwall-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  transform: translateY(-1px);
}
body.light-mode .offerwall-btn-secondary {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #1E293B;
}
body.light-mode .offerwall-btn-secondary:hover {
  background: #E2E8F0;
  border-color: #94A3B8;
  color: #0F172A;
  transform: translateY(-1px);
}

.offerwall-btn-primary {
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 9999px;
  cursor: pointer;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #FFFFFF !important;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.offerwall-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

/* Category Filter Pills (Subtle, Muted Modern Styling) */
.offerwall-filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding: 6px 6px 16px 6px;
  scrollbar-width: thin;
}

.offer-filter-btn {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 20px;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

body:not(.light-mode) .offer-filter-btn,
body.dark-mode .offer-filter-btn {
  background: #252526;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

body:not(.light-mode) .offer-filter-btn:hover,
body.dark-mode .offer-filter-btn:hover {
  background: #2a2b2d;
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

/* Specific button active styles (Refined & Soft Accents) */
.offer-filter-btn[data-filter="all"].active {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  color: #34d399 !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

.offer-filter-btn[data-filter="high_payout"].active {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  color: #fbbf24 !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

.offer-filter-btn[data-filter="quick"].active {
  background: rgba(6, 182, 212, 0.12) !important;
  border-color: rgba(6, 182, 212, 0.35) !important;
  color: #38bdf8 !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

.offer-filter-btn[data-filter="top_rated"].active {
  background: rgba(139, 92, 246, 0.12) !important;
  border-color: rgba(139, 92, 246, 0.35) !important;
  color: #c084fc !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

body.light-mode .offer-filter-btn {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #475569;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

/* Ultra-Sleek Custom Floating Survey Toast */
.custom-survey-toast-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  background: linear-gradient(135deg, #0F172A, #1E293B) !important;
  border: 1px solid rgba(16, 211, 78, 0.5) !important;
  border-radius: 16px !important;
  padding: 12px 18px 12px 14px !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 211, 78, 0.2) !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease !important;
  animation: toastSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-width: 440px;
  font-family: 'Outfit', 'Inter', sans-serif !important;
}

.custom-survey-toast-bar:hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(16, 211, 78, 0.35) !important;
}

@keyframes toastSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast-fire-badge {
  font-size: 22px;
  background: rgba(255, 255, 255, 0.08);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-text-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.toast-main-title {
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF !important;
  line-height: 1.2;
  margin-bottom: 2px;
}

.toast-sub-title {
  font-size: 12px;
  font-weight: 600;
  color: #94A3B8 !important;
  white-space: nowrap;
}

.toast-action-btn-pill {
  background: #10D34E;
  color: #000000 !important;
  font-weight: 900;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.toast-close-x {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #1E293B;
  color: #94A3B8 !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.toast-close-x:hover {
  background: #EF4444 !important;
  color: #FFFFFF !important;
  border-color: #EF4444 !important;
}

/* Light Mode Floating Survey Toast */
body.light-mode .custom-survey-toast-bar {
  background: #FFFFFF !important;
  border: 1px solid rgba(16, 211, 78, 0.6) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(16, 211, 78, 0.18) !important;
}

body.light-mode .custom-survey-toast-bar:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18), 0 6px 22px rgba(16, 211, 78, 0.28) !important;
}

body.light-mode .toast-fire-badge {
  background: rgba(16, 211, 78, 0.1) !important;
  border: 1px solid rgba(16, 211, 78, 0.25) !important;
}

body.light-mode .toast-main-title {
  color: #0F172A !important;
}

body.light-mode .toast-sub-title {
  color: #64748B !important;
}

body.light-mode .toast-close-x {
  background: #F1F5F9 !important;
  color: #64748B !important;
  border: 1px solid #CBD5E1 !important;
}

body.light-mode .toast-close-x:hover {
  background: #EF4444 !important;
  color: #FFFFFF !important;
  border-color: #EF4444 !important;
}

/* Offer Cards */
#offerwall-catalog-grid {
  padding-top: 10px !important;
  margin-top: -10px;
  padding-bottom: 12px !important;
  overflow: visible !important;
}

.offer-card-item {
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
  min-height: 175px;
}

/* Dark Mode */
body:not(.light-mode) .offer-card-item,
body.dark-mode .offer-card-item {
  background: linear-gradient(145deg, #202124 0%, #17181a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}
body:not(.light-mode) .offer-card-item:hover,
body.dark-mode .offer-card-item:hover {
  z-index: 10;
  transform: translateY(-4px);
  border-color: rgba(16, 211, 78, 0.32);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), 0 0 16px rgba(16, 211, 78, 0.08);
  background: linear-gradient(145deg, #25262a 0%, #1c1d20 100%);
}

/* Light Mode */
body.light-mode .offer-card-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
body.light-mode .offer-card-item:hover {
  z-index: 10;
  transform: translateY(-4px);
  border-color: rgba(16, 211, 78, 0.35);
  box-shadow: 0 10px 24px rgba(16, 211, 78, 0.1);
}

.offer-card-claim-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--text-main, #F1F5F9) !important;
  padding: 6px 14px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: none !important;
}

.offer-card-claim-btn i {
  font-size: 11px;
  transition: transform 0.2s ease;
}

body:not(.light-mode) .offer-card-item:hover .offer-card-claim-btn,
body.dark-mode .offer-card-item:hover .offer-card-claim-btn,
body:not(.light-mode) .offer-card-claim-btn:hover,
body.dark-mode .offer-card-claim-btn:hover {
  background: #10D34E !important;
  color: #000000 !important;
  border-color: #10D34E !important;
  box-shadow: 0 4px 14px rgba(16, 211, 78, 0.35) !important;
}

body:not(.light-mode) .offer-card-item:hover .offer-card-claim-btn i,
body.dark-mode .offer-card-item:hover .offer-card-claim-btn i,
.offer-card-claim-btn:hover i {
  transform: translateX(2px);
}

body.light-mode .offer-card-claim-btn {
  background: rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.09) !important;
  color: #334155 !important;
}

body.light-mode .offer-card-item:hover .offer-card-claim-btn,
body.light-mode .offer-card-claim-btn:hover,
body.light-mode .offer-card-claim-btn:active,
body.light-mode .offer-card-claim-btn:focus {
  background: #10D34E !important;
  color: #000000 !important;
  border-color: #10D34E !important;
  box-shadow: 0 4px 14px rgba(16, 211, 78, 0.35);
}

.offer-card-payout-val {
  font-size: 22px !important;
  font-weight: 900 !important;
  color: #10D34E !important;
  font-family: 'Outfit', sans-serif !important;
  letter-spacing: -0.3px !important;
  line-height: 1.1 !important;
  text-shadow: 0 0 16px rgba(16, 211, 78, 0.38) !important;
}

.offer-card-currency-tag {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: rgba(16, 211, 78, 0.85) !important;
  letter-spacing: 0.3px !important;
  margin-left: 2px !important;
}

body.light-mode .offer-card-payout-val {
  color: #059669 !important;
  text-shadow: none !important;
}

body.light-mode .offer-card-currency-tag {
  color: #64748B !important;
}

/* =========================================================
   HOME TOP OFFERWALL ROTATING CAROUSEL CARD
   ========================================================= */
.home-offerwall-top-card {
  margin-bottom: 24px;
  padding: 18px 24px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
}

body:not(.light-mode) .home-offerwall-top-card,
body.dark-mode .home-offerwall-top-card {
  background: radial-gradient(circle at 12% 30%, rgba(16, 211, 78, 0.1) 0%, transparent 45%),
              radial-gradient(circle at 88% 70%, rgba(56, 189, 248, 0.06) 0%, transparent 45%),
              linear-gradient(145deg, #232a26 0%, #1c221e 50%, #161a17 100%) !important;
  border: 1px solid rgba(16, 211, 78, 0.22) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(16, 211, 78, 0.05) !important;
}

body.light-mode .home-offerwall-top-card {
  background: radial-gradient(circle at 10% 40%, rgba(16, 211, 78, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 90% 60%, rgba(56, 189, 248, 0.05) 0%, transparent 50%),
              linear-gradient(145deg, #F8FAF9 0%, #FFFFFF 50%, #F0FDF4 100%) !important;
  border: 1px solid rgba(16, 211, 78, 0.28) !important;
  box-shadow: 0 6px 20px rgba(16, 211, 78, 0.08), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

.home-offerwall-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.home-offerwall-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
body:not(.light-mode) .home-offerwall-icon,
body.dark-mode .home-offerwall-icon {
  background: rgba(16, 211, 78, 0.12);
  border: 1px solid rgba(16, 211, 78, 0.3);
  color: #10D34E;
  box-shadow: 0 4px 16px rgba(16, 211, 78, 0.15);
}
body.light-mode .home-offerwall-icon {
  background: rgba(16, 211, 78, 0.08);
  border: 1px solid rgba(16, 211, 78, 0.2);
  color: #059669;
  box-shadow: none;
}

.home-offerwall-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.home-offerwall-live-pill {
  background: rgba(16, 211, 78, 0.1) !important;
  border: 1px solid rgba(16, 211, 78, 0.3) !important;
  color: #10D34E !important;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
body.light-mode .home-offerwall-live-pill {
  color: #059669 !important;
  background: rgba(16, 211, 78, 0.12) !important;
  border: 1px solid rgba(16, 211, 78, 0.35) !important;
}

.home-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10D34E !important;
  animation: pulse-dot 1.5s infinite;
}
body.light-mode .home-live-dot {
  background: #059669 !important;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.home-offerwall-boost-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
}
body:not(.light-mode) .home-offerwall-boost-pill,
body.dark-mode .home-offerwall-boost-pill {
  background: rgba(255, 255, 255, 0.05);
  color: #fcd34d !important;
  border: 1px solid rgba(255, 255, 255, 0.09);
}
body.light-mode .home-offerwall-boost-pill {
  background: rgba(245, 158, 11, 0.08);
  color: #b45309 !important;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.home-offerwall-title {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.3px;
}

.home-offerwall-subtitle {
  margin: 2px 0 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Center Carousel Rotating Item */
.home-offerwall-carousel-wrap {
  flex: 1;
  max-width: 760px;
  min-width: 280px;
  position: relative;
}

.home-offerwall-track {
  position: relative;
  min-height: 84px;
  padding-top: 4px;
  padding-bottom: 6px;
  overflow: visible !important;
}

/* Dots Indicator */
.home-offerwall-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
}

.home-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.35;
  transition: all 0.25s ease;
  cursor: pointer;
}

.home-carousel-dot.active {
  width: 16px;
  border-radius: 4px;
  background: #34d399;
  opacity: 1;
}

.home-offerwall-action {
  flex-shrink: 0;
}

.home-offerwall-all-btn {
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: #FFFFFF !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.home-offerwall-all-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, #34d399, #059669);
}

/* Home Carousel 4-Card Batch Grid */
.home-carousel-slide {
  display: none;
  width: 100%;
  animation: fadeInSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.home-carousel-slide.active {
  display: block;
}

.home-batch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  padding-top: 8px !important;
  margin-top: -8px;
  padding-bottom: 6px;
  overflow: visible !important;
}

.home-batch-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 80px;
  position: relative;
  z-index: 1;
}

body:not(.light-mode) .home-batch-card,
body.dark-mode .home-batch-card {
  background: linear-gradient(145deg, #202124 0%, #17181a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

body:not(.light-mode) .home-batch-card:hover,
body.dark-mode .home-batch-card:hover {
  z-index: 10;
  background: linear-gradient(145deg, #25262a 0%, #1c1d20 100%);
  border-color: rgba(16, 211, 78, 0.28);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
  transform: translateY(-2px);
}

body.light-mode .home-batch-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

body.light-mode .home-batch-card:hover {
  z-index: 10;
  border-color: rgba(16, 211, 78, 0.35);
  box-shadow: 0 6px 16px rgba(16, 211, 78, 0.1);
  transform: translateY(-2px);
}

.home-batch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home-batch-payout {
  font-size: 15.5px;
  font-weight: 900;
  color: #10D34E;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.2px;
  text-shadow: 0 0 10px rgba(16, 211, 78, 0.2);
}
body.light-mode .home-batch-payout {
  color: #059669 !important;
  text-shadow: none !important;
}

.home-batch-time {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}

.home-batch-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-batch-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.home-batch-rating {
  font-size: 10.5px;
  font-weight: 700;
  color: #F59E0B;
  display: flex;
  align-items: center;
  gap: 2px;
}

.home-batch-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.2s ease;
}

body:not(.light-mode) .home-batch-card:hover .home-batch-btn,
body.dark-mode .home-batch-card:hover .home-batch-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
}

body.light-mode .home-batch-btn {
  background: rgba(16, 211, 78, 0.1) !important;
  border: 1px solid rgba(16, 211, 78, 0.28) !important;
  color: #059669 !important;
}

body.light-mode .home-batch-card:hover .home-batch-btn,
body.light-mode .home-batch-btn:hover,
body.light-mode .home-batch-btn:active,
body.light-mode .home-batch-btn:focus {
  background: #10D34E !important;
  color: #000000 !important;
  border-color: #10D34E !important;
  box-shadow: 0 2px 8px rgba(16, 211, 78, 0.3);
}

@media (max-width: 1100px) {
  .home-batch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .home-batch-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   ULTRA-SLIM OFFERWALL TICKER BAR (FOR ALL OTHER PAGES)
   ========================================================= */
.offerwall-slim-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 16px;
  border-radius: 14px;
  margin-bottom: 20px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

body:not(.light-mode) .offerwall-slim-bar,
body.dark-mode .offerwall-slim-bar {
  background: radial-gradient(circle at 12% 50%, rgba(16, 211, 78, 0.09) 0%, transparent 40%),
              radial-gradient(circle at 88% 50%, rgba(56, 189, 248, 0.05) 0%, transparent 40%),
              linear-gradient(145deg, #222824 0%, #1a201c 50%, #161917 100%);
  border: 1px solid rgba(16, 211, 78, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

body:not(.light-mode) .offerwall-slim-bar:hover,
body.dark-mode .offerwall-slim-bar:hover {
  border-color: rgba(16, 211, 78, 0.32);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28), 0 0 14px rgba(16, 211, 78, 0.06);
}

body.light-mode .offerwall-slim-bar {
  background: radial-gradient(circle at 10% 50%, rgba(16, 211, 78, 0.08) 0%, transparent 45%),
              radial-gradient(circle at 90% 50%, rgba(56, 189, 248, 0.05) 0%, transparent 45%),
              linear-gradient(145deg, #F8FAF9 0%, #FFFFFF 50%, #F0FDF4 100%) !important;
  border: 1px solid rgba(16, 211, 78, 0.28) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04), 0 0 12px rgba(16, 211, 78, 0.06) !important;
}

body.light-mode .offerwall-slim-bar:hover {
  border-color: rgba(16, 211, 78, 0.45) !important;
  box-shadow: 0 6px 18px rgba(16, 211, 78, 0.12) !important;
}

.slim-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.slim-bar-badge {
  font-size: 10.5px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: #10D34E !important;
  background: rgba(16, 211, 78, 0.1) !important;
  border: 1px solid rgba(16, 211, 78, 0.3) !important;
  padding: 3px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}
body.light-mode .slim-bar-badge {
  color: #059669 !important;
  background: rgba(16, 211, 78, 0.12) !important;
  border: 1px solid rgba(16, 211, 78, 0.35) !important;
}

.slim-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10D34E !important;
  box-shadow: 0 0 6px rgba(16, 211, 78, 0.6);
  animation: pulseLiveDot 1.8s infinite;
}
body.light-mode .slim-live-dot {
  background: #059669 !important;
  box-shadow: none;
}

.slim-bar-boost {
  font-size: 10.5px;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 3px 7px;
  border-radius: 6px;
}
body.light-mode .slim-bar-boost {
  color: #b45309 !important;
  background: rgba(245, 158, 11, 0.1) !important;
  border: 1px solid rgba(245, 158, 11, 0.25) !important;
}

.slim-bar-center {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slim-offer-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 3px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  max-width: 100%;
}
.slim-offer-ticker:hover {
  background: rgba(255, 255, 255, 0.04);
}
body.light-mode .slim-offer-ticker:hover {
  background: rgba(0, 0, 0, 0.03);
}

.slim-ticker-payout {
  font-size: 14px;
  font-weight: 900;
  color: #10D34E;
  font-family: 'Outfit', sans-serif;
  white-space: nowrap;
  letter-spacing: -0.2px;
  text-shadow: 0 0 10px rgba(16, 211, 78, 0.2);
}
body.light-mode .slim-ticker-payout {
  color: #059669 !important;
  text-shadow: none !important;
}

.slim-ticker-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slim-ticker-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.slim-ticker-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: all 0.2s ease;
}
body:not(.light-mode) .slim-offer-ticker:hover .slim-ticker-btn,
body.dark-mode .slim-offer-ticker:hover .slim-ticker-btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

body.light-mode .slim-ticker-btn {
  background: rgba(16, 211, 78, 0.1) !important;
  border: 1px solid rgba(16, 211, 78, 0.28) !important;
  color: #059669 !important;
}

body.light-mode .slim-offer-ticker:hover .slim-ticker-btn,
body.light-mode .slim-ticker-btn:hover,
body.light-mode .slim-ticker-btn:active,
body.light-mode .slim-ticker-btn:focus {
  background: #10D34E !important;
  color: #000000 !important;
  border-color: #10D34E !important;
  box-shadow: 0 2px 8px rgba(16, 211, 78, 0.3);
}

.slim-bar-right {
  flex-shrink: 0;
}

.slim-open-wall-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.slim-open-wall-btn span {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.slim-open-wall-btn:hover {
  color: var(--text-main);
  transform: translateX(2px);
}
body.light-mode .slim-open-wall-btn:hover {
  color: #059669 !important;
}

@media (max-width: 768px) {
  .offerwall-slim-bar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .slim-bar-center {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
}

.status-info-trigger-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  font-size: 13px;
  border-radius: 50%;
  transition: color 0.15s ease, transform 0.15s ease;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.status-info-trigger-btn:hover {
  color: #10D34E;
  transform: scale(1.15);
}

.status-pill-badge {
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  display: inline-block;
}

/* Payout Pillar Cards Styling */
.payout-pillar-card {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease !important;
}
.payout-pillar-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Payout Pillar Buttons - Refined & Subtle */
.payout-pillar-btn {
  margin-top: 14px;
  width: 100%;
  height: 38px;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.35px !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.payout-pillar-btn i {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.payout-pillar-card:hover .payout-pillar-btn i,
.payout-pillar-btn:hover i {
  transform: translateX(3px);
}

/* PayPal Pillar Button */
.btn-paypal-pillar {
  background: rgba(0, 121, 193, 0.12) !important;
  border: 1px solid rgba(0, 121, 193, 0.35) !important;
  color: #38BDF8 !important;
}

.payout-pillar-card:hover .btn-paypal-pillar,
.btn-paypal-pillar:hover {
  background: #0079C1 !important;
  color: #FFFFFF !important;
  border-color: #0079C1 !important;
  box-shadow: 0 4px 16px rgba(0, 121, 193, 0.38) !important;
}

/* Gift Cards Pillar Button */
.btn-giftcards-pillar {
  background: rgba(16, 211, 78, 0.12) !important;
  border: 1px solid rgba(16, 211, 78, 0.35) !important;
  color: #10D34E !important;
}

.payout-pillar-card:hover .btn-giftcards-pillar,
.btn-giftcards-pillar:hover {
  background: #10D34E !important;
  color: #000000 !important;
  border-color: #10D34E !important;
  box-shadow: 0 4px 16px rgba(16, 211, 78, 0.38) !important;
}

/* Binance Pillar Button */
.btn-binance-pillar {
  background: rgba(240, 185, 11, 0.12) !important;
  border: 1px solid rgba(240, 185, 11, 0.35) !important;
  color: #F0B90B !important;
}

.payout-pillar-card:hover .btn-binance-pillar,
.btn-binance-pillar:hover {
  background: #F0B90B !important;
  color: #000000 !important;
  border-color: #F0B90B !important;
  box-shadow: 0 4px 16px rgba(240, 185, 11, 0.38) !important;
}

/* Light Mode Adaptations */
body.light-mode .btn-paypal-pillar {
  background: rgba(0, 121, 193, 0.08) !important;
  border: 1px solid rgba(0, 121, 193, 0.25) !important;
  color: #0284C7 !important;
}
body.light-mode .btn-giftcards-pillar {
  background: rgba(16, 211, 78, 0.08) !important;
  border: 1px solid rgba(16, 211, 78, 0.25) !important;
  color: #059669 !important;
}
body.light-mode .btn-binance-pillar {
  background: rgba(217, 119, 6, 0.08) !important;
  border: 1px solid rgba(217, 119, 6, 0.25) !important;
  color: #D97706 !important;
}

/* =========================================================
   COMPREHENSIVE MOBILE VIEWPORT MASTER OVERRIDES (< 768px)
   ========================================================= */
@media (max-width: 768px) {
  html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  
  .rpg-wrapper,
  .dashboard-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 8px !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  
  /* Topbar Row Ordering */
  .rpg-topbar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px 0 !important;
    padding: 8px 0 !important;
    margin-bottom: 14px !important;
    width: 100% !important;
  }
  .rpg-brand {
    order: 1 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 58% !important;
  }
  .rpg-top-right {
    order: 2 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    padding: 0 !important;
  }
  .rpg-nav-links {
    order: 3 !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    margin-top: 6px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding: 4px 2px 8px 2px !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  /* Main Dashboard Grid -> Clean 1-Column Flow */
  .rpg-dashboard-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .area-big-cards,
  .area-grow-data,
  .area-overall-stats,
  .area-home-live-codes,
  .area-quest-summaries,
  .area-job-skills,
  .area-party-members {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  
  /* Big Cards: Cash Balance & Streak */
  .area-big-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  .big-card {
    width: 100% !important;
    min-height: auto !important;
    padding: 16px 14px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  /* Top Featured Offerwall Carousel Card */
  .home-offerwall-top-card {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 14px !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .home-offerwall-carousel-wrap {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .home-batch-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .home-batch-card {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Promo Codes Strip & Live Codes Grid */
  .home-codes-strip {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .home-mini-code-card {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Tabs Grids (Legends, Achievements, Store, Live Codes) */
  .legends-grid,
  .achievements-grid,
  .store-grid,
  .live-codes-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
  }
  
  /* Charts and Radars */
  .radar-container {
    height: 280px !important;
    width: 100% !important;
  }
  .chart-container {
    height: 200px !important;
    width: 100% !important;
  }
  
  /* Slim Offerwall Ticker Bar */
  .offerwall-slim-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 12px 14px !important;
  }
  .slim-bar-center {
    width: 100% !important;
    justify-content: flex-start !important;
  }
  .slim-bar-action {
    width: 100% !important;
  }
  .slim-bar-explore-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* =========================================================
   SMART MOBILE APP GATEWAY STYLES
   ========================================================= */
.mobile-gateway-overlay {
  display: none;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483647 !important;
  background: #0d120e !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  box-sizing: border-box !important;
  padding: 24px 16px !important;
}

html.mobile-gateway-active .mobile-gateway-overlay:not(.hidden),
body.mobile-gateway-active .mobile-gateway-overlay:not(.hidden),
.mobile-gateway-overlay.active:not(.hidden) {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.mobile-gateway-overlay.hidden {
  display: none !important;
}

/* Hide all other body elements when mobile gateway is active so no weird rendering occurs */
html.mobile-gateway-active body > *:not(#mobile-app-gateway),
html.mobile-gateway-active .dashboard-container,
html.mobile-gateway-active .navbar,
html.mobile-gateway-active .rpg-wrapper {
  display: none !important;
}

.mobile-gateway-card {
  position: relative !important;
  width: 100% !important;
  max-width: 380px !important;
  margin: auto !important;
  background: radial-gradient(circle at 50% 0%, rgba(16, 211, 78, 0.18) 0%, transparent 75%),
              linear-gradient(160deg, #1d241f 0%, #151916 50%, #0f1210 100%) !important;
  border: 1.5px solid rgba(16, 211, 78, 0.45) !important;
  border-radius: 24px !important;
  padding: 28px 22px 24px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(16, 211, 78, 0.2) !important;
  text-align: center !important;
  box-sizing: border-box !important;
  animation: gatewayPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes gatewayPopIn {
  0% { transform: scale(0.92) translateY(16px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.mobile-gateway-overlay.fade-out .mobile-gateway-card {
  animation: gatewayPopOut 0.2s ease forwards !important;
}

@keyframes gatewayPopOut {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0; }
}

.gateway-badge-top {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  background: rgba(16, 211, 78, 0.12) !important;
  border: 1px solid rgba(16, 211, 78, 0.35) !important;
  color: #10D34E !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.8px !important;
  padding: 5px 12px !important;
  border-radius: 50px !important;
  margin-bottom: 18px !important;
  text-transform: uppercase !important;
}

.gateway-logo-wrap {
  position: relative !important;
  width: 76px !important;
  height: 76px !important;
  margin: 0 auto 16px !important;
}

.gateway-app-icon {
  width: 76px !important;
  height: 76px !important;
  border-radius: 20px !important;
  object-fit: contain !important;
  position: relative !important;
  z-index: 2 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
  border: 2px solid rgba(16, 211, 78, 0.6) !important;
}

.gateway-logo-glow {
  position: absolute !important;
  inset: -8px !important;
  background: radial-gradient(circle, rgba(16, 211, 78, 0.45) 0%, transparent 70%) !important;
  border-radius: 24px !important;
  z-index: 1 !important;
  filter: blur(8px) !important;
}

.gateway-title {
  font-family: 'Outfit', sans-serif !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  color: #FFFFFF !important;
  margin: 0 0 8px !important;
  letter-spacing: 0.3px !important;
  line-height: 1.25 !important;
}

.gateway-subtitle {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  color: #94A3B8 !important;
  line-height: 1.5 !important;
  margin: 0 0 22px !important;
}

.gateway-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.gateway-btn-primary {
  width: 100% !important;
  height: 52px !important;
  background: linear-gradient(135deg, #10D34E 0%, #0db442 100%) !important;
  border: none !important;
  border-radius: 14px !important;
  color: #000000 !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 14.5px !important;
  font-weight: 900 !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  box-shadow: 0 8px 24px rgba(16, 211, 78, 0.35) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.gateway-btn-primary:active {
  transform: scale(0.98) !important;
}

.gateway-btn-primary i {
  font-size: 18px !important;
}

.gateway-btn-secondary {
  background: transparent !important;
  border: none !important;
  color: #94A3B8 !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  padding: 8px 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: color 0.2s ease !important;
}

.gateway-btn-secondary:hover {
  color: #10D34E !important;
}

.gateway-footer-note {
  margin-top: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  color: #64748B !important;
}
.gateway-footer-note i {
  color: #10D34E !important;
  font-size: 11px !important;
}

/* Custom Dark & Light Theme Select Dropdowns */
select,
.rpg-input select,
#support-category {
  background-color: #121624 !important;
  color: #F8FAFC !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 10px !important;
  font-family: 'Outfit', 'Inter', sans-serif !important;
  font-size: 13.5px !important;
  outline: none !important;
  cursor: pointer !important;
}

select option,
#support-category option {
  background-color: #121624 !important;
  color: #F8FAFC !important;
  padding: 10px 12px !important;
}

select option:hover,
select option:focus,
select option:checked,
#support-category option:hover,
#support-category option:focus,
#support-category option:checked {
  background-color: #1E293B !important;
  color: #10D34E !important;
}

body.light-mode select,
body.light-mode #support-category {
  background-color: #FFFFFF !important;
  color: #1E293B !important;
  border-color: #E2E8F0 !important;
}

body.light-mode select option,
body.light-mode #support-category option {
  background-color: #FFFFFF !important;
  color: #1E293B !important;
}


