/**
 * CoinRush User Profile & Settings - Complete CSS
 * Premium styling with floating orbs and modern UI
 */

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #060a0f 0%, #0f1419 50%, #060a0f 100%);
  color: #e2e8f0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================
   FLOATING ORBS & PARTICLES
   ============================================ */
.floating-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  z-index: 0;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(91, 255, 178, 0.15) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(61, 214, 138, 0.12) 0%, transparent 70%);
  top: 40%;
  right: -150px;
  animation-delay: -5s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(91, 255, 178, 0.1) 0%, transparent 70%);
  bottom: 10%;
  left: 20%;
  animation-delay: -10s;
}

.orb-4 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.12) 0%, transparent 70%);
  top: 60%;
  left: -80px;
  animation-delay: -15s;
}

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

.floating-particle {
  position: fixed;
  width: 4px;
  height: 4px;
  background: #5bffb2;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  animation: particleFloat 15s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
  25% { transform: translateY(-50px) translateX(30px); opacity: 0.6; }
  50% { transform: translateY(-20px) translateX(-20px); opacity: 0.4; }
  75% { transform: translateY(-80px) translateX(40px); opacity: 0.5; }
}

/* ============================================
   PAGE LAYOUT
   ============================================ */
.profile-page {
  min-height: 100vh;
  position: relative;
  z-index: 1;
  padding-top: 100px;
  padding-bottom: 60px;
}

.profile-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ============================================
   LOADING STATE
   ============================================ */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 20px;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(91, 255, 178, 0.2);
  border-top-color: #5bffb2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  color: rgba(148, 163, 184, 0.8);
  font-size: 15px;
}

/* ============================================
   PROFILE HERO SECTION
   ============================================ */
.profile-hero {
  display: grid;
  grid-template-columns: 200px 1fr 240px;
  gap: 32px;
  align-items: center;
  background: linear-gradient(180deg, rgba(15, 20, 25, 0.95) 0%, rgba(10, 15, 20, 0.98) 100%);
  border: 1px solid rgba(91, 255, 178, 0.15);
  border-radius: 24px;
  padding: 32px 40px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.profile-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91, 255, 178, 0.4), transparent);
}

/* Avatar Section */
.hero-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar-wrapper {
  position: relative;
  margin-bottom: 16px;
}

.avatar-wrapper.large {
  width: 100px;
  height: 100px;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: #0a0f14;
  position: relative;
  z-index: 2;
}

.avatar-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  border-radius: 24px;
  filter: blur(20px);
  opacity: 0.4;
  z-index: 1;
}

.avatar-tier-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 24px;
  border: 3px solid;
  z-index: 3;
  pointer-events: none;
}

/* Avatar Border Image (PNG overlay) */
.avatar-border-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180%;
  height: 180%;
  object-fit: contain;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(91, 255, 178, 0.3));
}

.hero-username {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.hero-email {
  font-size: 13px;
  color: rgba(148, 163, 184, 0.7);
  margin-bottom: 12px;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid;
  font-size: 12px;
  font-weight: 700;
}

/* Level Progress */
.hero-level-section {
  flex: 1;
}

.level-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.level-label {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.level-xp {
  font-size: 13px;
  color: rgba(148, 163, 184, 0.8);
  font-weight: 600;
}

.level-progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.level-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #5bffb2, #3dd68a);
  border-radius: 6px;
  position: relative;
  transition: width 0.5s ease;
  min-width: 2%;
}

.level-progress-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
  animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.level-next {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.6);
  margin-top: 8px;
}

.xp-boost-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 14px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
}

.xp-boost-badge svg {
  stroke: #fbbf24;
}

/* Balance Card */
.hero-balance {
  display: flex;
  justify-content: flex-end;
}

.balance-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(91, 255, 178, 0.08);
  border: 1px solid rgba(91, 255, 178, 0.2);
  border-radius: 16px;
}

.balance-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 255, 178, 0.15);
  border-radius: 12px;
}

.balance-icon svg {
  stroke: #5bffb2;
}

.balance-label {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.balance-amount {
  font-size: 26px;
  font-weight: 800;
  color: #5bffb2;
  text-shadow: 0 0 20px rgba(91, 255, 178, 0.3);
}

/* ============================================
   TAB NAVIGATION
   ============================================ */
.tab-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(91, 255, 178, 0.1);
  border-radius: 16px;
  overflow-x: auto;
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: rgba(148, 163, 184, 0.8);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.tab-btn:hover {
  background: rgba(91, 255, 178, 0.08);
  color: #e2e8f0;
}

.tab-btn.active {
  background: rgba(91, 255, 178, 0.15);
  color: #5bffb2;
  box-shadow: 0 0 20px rgba(91, 255, 178, 0.1);
}

.tab-btn.active svg {
  stroke: #5bffb2;
}

/* Referral Tab - Special Glowing Effect */
.tab-btn.referral-glow-tab {
  position: relative;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fbbf24;
  animation: referralTabGlow 2s ease-in-out infinite;
}

.tab-btn.referral-glow-tab svg {
  stroke: #fbbf24;
}

.tab-btn.referral-glow-tab:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.25) 0%, rgba(245, 158, 11, 0.15) 100%);
  border-color: rgba(251, 191, 36, 0.5);
  transform: scale(1.02);
}

.tab-btn.referral-glow-tab.active {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.3) 0%, rgba(245, 158, 11, 0.2) 100%);
  border-color: rgba(251, 191, 36, 0.6);
  color: #fbbf24;
}

.tab-btn.referral-glow-tab.active svg {
  stroke: #fbbf24;
}

/* Tab Badge */
.tab-badge {
  padding: 2px 8px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  color: #0a0f14;
  margin-left: 4px;
  animation: badgePop 2s ease-in-out infinite;
}

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

/* ============================================
   SECTION CARDS
   ============================================ */
.section-card {
  background: linear-gradient(180deg, rgba(15, 20, 25, 0.95) 0%, rgba(10, 15, 20, 0.98) 100%);
  border: 1px solid rgba(91, 255, 178, 0.12);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91, 255, 178, 0.2), transparent);
}

.section-title {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  width: 36px;
  height: 36px;
  background: rgba(91, 255, 178, 0.1);
  border: 1px solid rgba(91, 255, 178, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-icon svg {
  width: 18px;
  height: 18px;
  stroke: #5bffb2;
}

.section-icon.danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
}

.section-icon.danger svg {
  stroke: #ff6b6b;
}

/* ============================================
   QUICK STATS GRID
   ============================================ */
.quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.quick-stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(91, 255, 178, 0.1);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.quick-stat-card:hover {
  border-color: rgba(91, 255, 178, 0.25);
  transform: translateY(-2px);
}

.quick-stat-card.positive .quick-stat-value {
  color: #5bffb2;
}

.quick-stat-card.negative .quick-stat-value {
  color: #ff6b6b;
}

.quick-stat-card.highlight {
  background: rgba(91, 255, 178, 0.06);
  border-color: rgba(91, 255, 178, 0.2);
}

.quick-stat-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 255, 178, 0.1);
  border-radius: 10px;
}

.quick-stat-icon svg {
  width: 20px;
  height: 20px;
  stroke: #5bffb2;
}

.quick-stat-value {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.quick-stat-label {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   ACTIVITY LIST
   ============================================ */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  transition: background 0.2s ease;
}

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

.activity-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}

.activity-icon.win {
  background: rgba(91, 255, 178, 0.15);
}

.activity-icon.win svg {
  stroke: #5bffb2;
  width: 18px;
  height: 18px;
}

.activity-icon.loss {
  background: rgba(239, 68, 68, 0.15);
}

.activity-icon.loss svg {
  stroke: #ff6b6b;
  width: 18px;
  height: 18px;
}

.activity-details {
  flex: 1;
}

.activity-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.activity-time {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.6);
}

.activity-amount {
  font-size: 15px;
  font-weight: 700;
}

.activity-amount.win {
  color: #5bffb2;
}

.activity-amount.loss {
  color: #ff6b6b;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: rgba(148, 163, 184, 0.6);
}

.empty-state svg {
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 15px;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.8);
  margin-bottom: 4px;
}

.empty-state span {
  font-size: 13px;
}

/* ============================================
   GAME STATISTICS
   ============================================ */
.game-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .game-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .game-stats-grid {
    grid-template-columns: 1fr;
  }
}

.game-stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(91, 255, 178, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.game-stat-card:hover {
  border-color: var(--game-color, rgba(91, 255, 178, 0.3));
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.game-stat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.game-stat-icon-wrapper {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid;
  flex-shrink: 0;
}

.game-stat-icon-wrapper svg {
  width: 18px;
  height: 18px;
}

.game-stat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.game-stat-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.game-stat-body {
  padding: 16px 20px;
}

.game-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.game-stat-row:last-child {
  border-bottom: none;
}

.game-stat-row.highlight {
  background: rgba(91, 255, 178, 0.05);
  margin: 0 -20px;
  padding: 12px 20px;
  border-radius: 8px;
  border-bottom: none;
  margin-top: 8px;
}

.game-stat-row span {
  font-size: 13px;
  color: rgba(148, 163, 184, 0.8);
}

.game-stat-row strong {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.game-stat-row strong.positive {
  color: #5bffb2;
}

.game-stat-row strong.negative {
  color: #ff6b6b;
}

/* Stats Overview Grid */
.stats-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.overview-stat {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
}

.overview-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.overview-stat-value.positive {
  color: #5bffb2;
}

.overview-stat-value.negative {
  color: #ff6b6b;
}

.overview-stat-label {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   REFERRALS TAB - PREMIUM GLOWING DESIGN
   ============================================ */
.referrals-tab {
  position: relative;
}

/* Floating Particles */
.referral-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.referral-particle {
  position: absolute;
  font-size: 20px;
  animation: floatUp 6s ease-in-out infinite;
  opacity: 0.6;
}

.referral-particle-svg {
  position: absolute;
  width: 24px;
  height: 24px;
  animation: floatUp 6s ease-in-out infinite;
  opacity: 0.5;
}

.referral-particle-svg svg {
  width: 100%;
  height: 100%;
}

@keyframes floatUp {
  0% { transform: translateY(100px) scale(0.5); opacity: 0; }
  20% { opacity: 0.6; }
  80% { opacity: 0.4; }
  100% { transform: translateY(-300px) scale(1); opacity: 0; }
}

/* Referral Hero Banner */
.referral-hero-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
  border: 2px solid rgba(251, 191, 36, 0.3);
  border-radius: 24px;
  padding: 32px 40px;
  margin-bottom: 24px;
  overflow: hidden;
  z-index: 1;
}

.banner-glow-bg {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(251, 191, 36, 0.1) 0%, transparent 50%);
  animation: bannerPulse 4s ease-in-out infinite;
  z-index: 0;
}

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

.banner-content {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.banner-icon-wrapper {
  position: relative;
  flex-shrink: 0;
}

.banner-icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.4) 0%, transparent 70%);
  filter: blur(20px);
  animation: iconGlow 2s ease-in-out infinite;
}

@keyframes iconGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.banner-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 191, 36, 0.2);
  border: 2px solid rgba(251, 191, 36, 0.4);
  border-radius: 16px;
  position: relative;
  z-index: 1;
}

.banner-icon svg {
  width: 32px;
  height: 32px;
  stroke: #fbbf24;
}

.banner-text h2 {
  font-family: 'Sora', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.banner-text h2 .highlight-amount {
  color: #fbbf24;
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

.banner-text p {
  font-size: 15px;
  color: rgba(226, 232, 240, 0.8);
}

.banner-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  animation: badgePulse 2s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 6px;
}

.banner-badge svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Referral Steps Card */
.referral-steps-card {
  position: relative;
  z-index: 1;
}

.glow-title {
  color: #fbbf24;
}

.glow-icon {
  background: rgba(251, 191, 36, 0.15) !important;
  border-color: rgba(251, 191, 36, 0.3) !important;
}

.glow-icon svg {
  stroke: #fbbf24 !important;
}

.referral-how-it-works.premium {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 24px;
}

.referral-how-it-works .step.glow-step {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(91, 255, 178, 0.1);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.referral-how-it-works .step.glow-step:hover {
  border-color: rgba(91, 255, 178, 0.25);
  transform: translateY(-4px);
}

.referral-how-it-works .step.glow-step.highlight {
  background: rgba(91, 255, 178, 0.08);
  border-color: rgba(91, 255, 178, 0.3);
  box-shadow: 0 0 30px rgba(91, 255, 178, 0.15);
}

.referral-how-it-works .step-number {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #5bffb2, #3dd68a);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  color: #0a0f14;
  display: flex;
  align-items: center;
  justify-content: center;
}

.referral-how-it-works .step-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.referral-how-it-works .step-content strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.referral-how-it-works .step-content p {
  font-size: 13px;
  color: rgba(148, 163, 184, 0.8);
  line-height: 1.5;
}

.step-connector {
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.connector-line {
  width: 20px;
  height: 2px;
  background: rgba(91, 255, 178, 0.3);
}

.connector-arrow {
  font-size: 18px;
  color: #5bffb2;
  margin-left: 4px;
}

/* Referral Code Card */
.referral-code-card {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.referral-code-card.glow-card {
  border-color: rgba(91, 255, 178, 0.25);
}

.card-glow-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(91, 255, 178, 0.1), transparent);
  animation: cardShimmer 4s ease-in-out infinite;
}

@keyframes cardShimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

.copy-hint {
  margin-left: auto;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.6);
  font-weight: 500;
}

.referral-code-box.premium {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.referral-code-input.glow-input {
  flex: 1;
  padding: 18px 24px;
  background: rgba(91, 255, 178, 0.08);
  border: 2px solid rgba(91, 255, 178, 0.3);
  border-radius: 14px;
  color: #5bffb2;
  font-size: 22px;
  font-family: 'Sora', monospace;
  text-align: center;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 0 10px rgba(91, 255, 178, 0.3);
}

.referral-code-input.glow-input:hover {
  border-color: rgba(91, 255, 178, 0.5);
  background: rgba(91, 255, 178, 0.12);
  box-shadow: 0 0 20px rgba(91, 255, 178, 0.2);
}

.referral-code-input.glow-input:focus {
  outline: none;
  border-color: rgba(91, 255, 178, 0.6);
}

/* Referral Stats Row Premium */
.referral-stats-row.premium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.referral-stat.glow-stat {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(91, 255, 178, 0.15);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  overflow: hidden;
  transition: all 0.3s ease;
}

.referral-stat.glow-stat:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 255, 178, 0.3);
}

.referral-stat.glow-stat .stat-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(91, 255, 178, 0.15) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 0;
}

.referral-stat.glow-stat.success .stat-glow {
  background: radial-gradient(circle, rgba(34, 197, 94, 0.2) 0%, transparent 70%);
}

.referral-stat.glow-stat.pending .stat-glow {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, transparent 70%);
}

.referral-stat-icon {
  font-size: 28px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.referral-stat-icon-svg {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  color: #a78bfa;
}

.referral-stat-icon-svg svg {
  width: 100%;
  height: 100%;
}

.referral-stat.glow-stat.success .referral-stat-icon-svg {
  color: #5bffb2;
}

.referral-stat.glow-stat.pending .referral-stat-icon-svg {
  color: #fbbf24;
}

.referral-stat-value {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.referral-stat.glow-stat.success .referral-stat-value {
  color: #5bffb2;
}

.referral-stat.glow-stat.pending .referral-stat-value {
  color: #fbbf24;
}

.referral-stat-label {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

/* NEW Vault Card - Clean Design */
.vault-card-new {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
  background: linear-gradient(135deg, rgba(91, 255, 178, 0.08) 0%, rgba(34, 197, 94, 0.04) 100%);
  border: 1px solid rgba(91, 255, 178, 0.25);
  border-radius: 16px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.vault-glow-effect {
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 150px;
  background: radial-gradient(ellipse, rgba(91, 255, 178, 0.15) 0%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.vault-left {
  flex-shrink: 0;
}

.vault-icon-box {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 255, 178, 0.15);
  border: 1px solid rgba(91, 255, 178, 0.3);
  border-radius: 12px;
}

.vault-icon-box svg {
  width: 28px;
  height: 28px;
  stroke: #5bffb2;
}

.vault-center {
  flex: 1;
  min-width: 0;
}

.vault-label-text {
  font-size: 11px;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.vault-amount-value {
  font-size: 36px;
  font-weight: 800;
  color: #5bffb2;
  line-height: 1.1;
  text-shadow: 0 0 20px rgba(91, 255, 178, 0.4);
}

.vault-ready-text {
  font-size: 12px;
  color: rgba(91, 255, 178, 0.7);
  margin-top: 2px;
}

.vault-right {
  flex-shrink: 0;
}

.vault-claim-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #5bffb2 0%, #3dd68a 100%);
  border: none;
  border-radius: 10px;
  color: #0a0f0d;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(91, 255, 178, 0.3);
}

.vault-claim-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 255, 178, 0.4);
}

.vault-claim-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.vault-claim-btn svg {
  width: 18px;
  height: 18px;
  stroke: #0a0f0d;
}

.vault-claim-btn span {
  white-space: nowrap;
}

/* OLD Vault Card Premium - keeping for reference */
.vault-card.glow-intense {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 40px;
  background: linear-gradient(135deg, rgba(91, 255, 178, 0.12) 0%, rgba(34, 197, 94, 0.08) 100%);
  border: 2px solid rgba(91, 255, 178, 0.35);
  border-radius: 24px;
  margin-bottom: 24px;
  overflow: hidden;
  z-index: 1;
}

.vault-glow-orb {
  position: absolute;
  top: 50%;
  left: 20%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(91, 255, 178, 0.25) 0%, transparent 70%);
  filter: blur(40px);
  animation: vaultOrbPulse 3s ease-in-out infinite;
  z-index: 0;
}

@keyframes vaultOrbPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.vault-glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border: 2px solid rgba(91, 255, 178, 0.1);
  border-radius: 50%;
  animation: ringExpand 4s ease-out infinite;
  z-index: 0;
}

@keyframes ringExpand {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.vault-sparkles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.vault-sparkles .sparkle {
  position: absolute;
  top: 30%;
  width: 6px;
  height: 6px;
  background: #5bffb2;
  border-radius: 50%;
  animation: sparkle 2s ease-in-out infinite;
}

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

.vault-icon.pulse {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 255, 178, 0.2);
  border: 2px solid rgba(91, 255, 178, 0.4);
  border-radius: 20px;
  position: relative;
  z-index: 2;
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(91, 255, 178, 0.4); }
  50% { box-shadow: 0 0 0 15px rgba(91, 255, 178, 0); }
}

.vault-icon.pulse svg {
  width: 40px;
  height: 40px;
  stroke: #5bffb2;
}

.vault-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.vault-label {
  font-size: 14px;
  color: rgba(148, 163, 184, 0.9);
  margin-bottom: 4px;
}

.vault-amount.glow-text {
  font-size: 48px;
  font-weight: 800;
  color: #5bffb2;
  text-shadow: 0 0 30px rgba(91, 255, 178, 0.5);
  animation: amountGlow 2s ease-in-out infinite;
}

@keyframes amountGlow {
  0%, 100% { text-shadow: 0 0 30px rgba(91, 255, 178, 0.5); }
  50% { text-shadow: 0 0 50px rgba(91, 255, 178, 0.8), 0 0 80px rgba(91, 255, 178, 0.4); }
}

.vault-subtitle {
  font-size: 13px;
  color: rgba(91, 255, 178, 0.8);
  margin-top: 4px;
}

.btn-glow {
  box-shadow: 0 0 20px rgba(91, 255, 178, 0.3);
}

.btn-glow:hover {
  box-shadow: 0 0 30px rgba(91, 255, 178, 0.5);
}

.btn-pulse {
  animation: btnPulse 2s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Claim Code Card */
.claim-code-card {
  position: relative;
  z-index: 1;
}

.vault-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(91, 255, 178, 0.1) 0%, rgba(61, 214, 138, 0.05) 100%);
  border: 2px solid rgba(91, 255, 178, 0.3);
  border-radius: 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.vault-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(91, 255, 178, 0.1) 0%, transparent 50%);
  animation: vaultPulse 4s ease-in-out infinite;
}

@keyframes vaultPulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

.vault-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 255, 178, 0.15);
  border-radius: 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.vault-icon svg {
  width: 36px;
  height: 36px;
  stroke: #5bffb2;
}

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

.vault-label {
  font-size: 13px;
  color: rgba(148, 163, 184, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.vault-amount {
  font-size: 38px;
  font-weight: 800;
  color: #5bffb2;
  line-height: 1;
  margin-bottom: 4px;
  text-shadow: 0 0 30px rgba(91, 255, 178, 0.4);
}

.vault-subtitle {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.6);
}

/* Highlight Card */
.highlight-card {
  border-color: rgba(251, 191, 36, 0.2);
}

.highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 16px;
}

/* Referral How It Works */
.referral-how-it-works {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 180px;
}

.step-number {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 255, 178, 0.15);
  border: 1px solid rgba(91, 255, 178, 0.3);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  color: #5bffb2;
  flex-shrink: 0;
}

.step-content strong {
  display: block;
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 2px;
}

.step-content p {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.7);
  margin: 0;
}

.step-arrow {
  font-size: 20px;
  color: rgba(91, 255, 178, 0.4);
}

/* Referral Code Box */
.referral-code-box,
.claim-code-box {
  display: flex;
  gap: 12px;
}

.referral-code-input {
  flex: 1;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(91, 255, 178, 0.2);
  border-radius: 12px;
  color: #ffffff;
  font-size: 16px;
  font-family: 'Inter', monospace;
  text-align: center;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.referral-code-input:focus {
  outline: none;
  border-color: rgba(91, 255, 178, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.referral-code-input::placeholder {
  color: rgba(148, 163, 184, 0.5);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
}

/* Referral Stats Row */
.referral-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.referral-stat {
  text-align: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
}

.referral-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: #5bffb2;
  margin-bottom: 4px;
}

.referral-stat-label {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   SECURITY TAB
   ============================================ */
.security-status-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.security-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid transparent;
}

.security-item.secure {
  border-color: rgba(91, 255, 178, 0.2);
  background: rgba(91, 255, 178, 0.04);
}

.security-item.warning {
  border-color: rgba(251, 191, 36, 0.2);
  background: rgba(251, 191, 36, 0.04);
}

.security-item.neutral {
  border-color: rgba(148, 163, 184, 0.15);
}

.security-item-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}

.security-item.secure .security-item-icon {
  background: rgba(91, 255, 178, 0.15);
}

.security-item.secure .security-item-icon svg {
  stroke: #5bffb2;
  width: 20px;
  height: 20px;
}

.security-item.warning .security-item-icon {
  background: rgba(251, 191, 36, 0.15);
}

.security-item.warning .security-item-icon svg {
  stroke: #fbbf24;
  width: 20px;
  height: 20px;
}

.security-item.neutral .security-item-icon {
  background: rgba(148, 163, 184, 0.1);
}

.security-item.neutral .security-item-icon svg {
  stroke: rgba(148, 163, 184, 0.8);
  width: 20px;
  height: 20px;
}

.security-item-content {
  flex: 1;
}

.security-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.security-item-status {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.7);
}

/* Security Actions */
.security-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Login History */
.login-history {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

.login-device {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 255, 178, 0.1);
  border-radius: 8px;
}

.login-device svg {
  width: 18px;
  height: 18px;
  stroke: #5bffb2;
}

.login-details {
  flex: 1;
}

.login-location {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.login-time {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.6);
}

.login-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.login-badge.current {
  background: rgba(91, 255, 178, 0.15);
  color: #5bffb2;
}

/* ============================================
   SETTINGS TAB
   ============================================ */
.settings-list {
  display: flex;
  flex-direction: column;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.setting-item:last-child {
  border-bottom: none;
}

.setting-info {
  flex: 1;
}

.setting-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.setting-desc {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.6);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  background: rgba(148, 163, 184, 0.3);
  border: none;
  border-radius: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.toggle-switch.active {
  background: rgba(91, 255, 178, 0.5);
}

.toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active .toggle-slider {
  transform: translateX(22px);
  background: #5bffb2;
}

.toggle-switch.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Account Info Display */
.account-info-display {
  display: flex;
  flex-direction: column;
}

.account-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.account-info-row:last-child {
  border-bottom: none;
}

.account-info-label {
  font-size: 14px;
  color: rgba(148, 163, 184, 0.8);
}

.account-info-value {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.account-info-value.code {
  font-family: 'JetBrains Mono', monospace;
  color: rgba(148, 163, 184, 0.7);
}

/* Danger Zone */
.danger-zone {
  border-color: rgba(239, 68, 68, 0.2);
}

.danger-text {
  font-size: 13px;
  color: rgba(148, 163, 184, 0.7);
  margin-bottom: 16px;
}

.danger-actions {
  display: flex;
  gap: 12px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #5bffb2 0%, #3dd68a 100%);
  color: #0a0f14;
  box-shadow: 0 4px 20px rgba(91, 255, 178, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(91, 255, 178, 0.35);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary.btn-glow {
  animation: btnGlow 2s ease-in-out infinite;
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 4px 20px rgba(91, 255, 178, 0.25); }
  50% { box-shadow: 0 4px 30px rgba(91, 255, 178, 0.5); }
}

.btn-secondary {
  background: rgba(91, 255, 178, 0.1);
  border: 1px solid rgba(91, 255, 178, 0.25);
  color: #5bffb2;
}

.btn-secondary:hover {
  background: rgba(91, 255, 178, 0.18);
  border-color: rgba(91, 255, 178, 0.4);
}

.btn-danger-outline {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ff6b6b;
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.5);
}

/* ============================================
   MESSAGES
   ============================================ */
.message {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
}

.message.success {
  background: rgba(91, 255, 178, 0.1);
  border: 1px solid rgba(91, 255, 178, 0.25);
  color: #5bffb2;
}

.message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ff6b6b;
}

/* ============================================
   BACK BUTTON
   ============================================ */
.back-button-container {
  text-align: center;
  margin-top: 40px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(91, 255, 178, 0.1);
  border: 1px solid rgba(91, 255, 178, 0.2);
  border-radius: 12px;
  color: #5bffb2;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: rgba(91, 255, 178, 0.18);
  border-color: rgba(91, 255, 178, 0.35);
  transform: translateX(-4px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .profile-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  
  .hero-level-section {
    text-align: left;
  }
  
  .hero-balance {
    justify-content: center;
  }
  
  .quick-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .game-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-overview-grid {
    grid-template-columns: 1fr;
  }
  
  .referral-stats-row {
    grid-template-columns: 1fr;
  }
  
  .referral-how-it-works {
    flex-direction: column;
  }
  
  .step-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 600px) {
  .profile-page {
    padding-top: 80px;
  }
  
  .profile-container {
    padding: 0 16px;
  }
  
  .profile-hero {
    padding: 24px 20px;
  }
  
  .tab-nav {
    gap: 4px;
    padding: 4px;
  }
  
  .tab-btn {
    padding: 12px 14px;
    font-size: 12px;
  }
  
  .tab-btn span {
    display: none;
  }
  
  .section-card {
    padding: 20px;
  }
  
  .quick-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .vault-card {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
  
  .referral-code-box,
  .claim-code-box {
    flex-direction: column;
  }
  
  .security-actions {
    flex-direction: column;
  }
  
  .security-actions .btn {
    width: 100%;
  }
  
  .floating-orb {
    display: none;
  }
}
