/* ==========================================
   OTAKU TV - AUTH & PROFILE STYLES
   ========================================== */

/* ============ Login Button in Navbar ============ */
.auth-btn-container {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--gradient-main);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.6);
}

.auth-btn.login-btn i {
  font-size: 14px;
}

.auth-btn.user-btn {
  padding: 5px 14px 5px 5px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--text-primary);
  box-shadow: none;
}

.auth-btn.user-btn:hover {
  background: rgba(139, 92, 246, 0.22);
  border-color: rgba(139, 92, 246, 0.5);
}

.auth-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--purple-light);
  flex-shrink: 0;
}

.auth-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
}

.auth-sub-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 8px;
}

.auth-sub-badge.sub-bronze { background: linear-gradient(135deg, #b45309, #92400e); color: #fff; }
.auth-sub-badge.sub-silver { background: linear-gradient(135deg, #94a3b8, #64748b); color: #fff; }
.auth-sub-badge.sub-gold { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; }
.auth-sub-badge.sub-platinum { background: linear-gradient(135deg, #c084fc, #d946ef); color: #fff; }

/* ============ Login Modal ============ */
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.login-modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.login-content {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(165deg, #14102b, #08060f);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 22px;
  padding: 36px 32px 30px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 80px rgba(124, 58, 237, 0.2);
  animation: slideUpScale 0.4s var(--transition-bounce);
  position: relative;
}

.login-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all var(--transition-base);
}

.login-close:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: rotate(90deg);
}

.login-step {
  display: none;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.login-step.active {
  display: block;
}

.login-step-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 30px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.5);
  animation: pulseScale 2s ease-in-out infinite;
}

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

.login-step h2 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff, #d8b4fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-step .desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

.login-step .desc strong {
  color: var(--purple-light);
  letter-spacing: 0.5px;
  direction: ltr;
  display: inline-block;
}

.login-input-group {
  margin-bottom: 14px;
  text-align: right;
}

.login-input-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.login-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 14px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  transition: all var(--transition-base);
  text-align: center;
  direction: ltr;
}

.login-input:focus {
  border-color: var(--purple-700);
  background: rgba(139, 92, 246, 0.08);
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.2);
}

.login-input.code-input {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 12px;
  padding: 18px;
}

.login-btn-main {
  width: 100%;
  padding: 14px 20px;
  background: var(--gradient-main);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.login-btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(124, 58, 237, 0.6);
}

.login-back-btn {
  width: 100%;
  padding: 11px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: color var(--transition-base);
}

.login-back-btn:hover {
  color: var(--text-primary);
}

.auth-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--red-danger);
  margin-bottom: 12px;
  display: none;
  text-align: center;
  font-weight: 600;
}

.auth-error.show {
  display: block;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* Test Mode Code Display */
.test-code-box {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(124, 58, 237, 0.05));
  border: 1px dashed rgba(34, 211, 238, 0.4);
  border-radius: 14px;
  padding: 14px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: right;
}

.test-code-box i {
  color: var(--cyan-accent);
  font-size: 22px;
  flex-shrink: 0;
}

.test-code-box .test-info {
  flex: 1;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.test-code-box .test-info strong {
  color: var(--cyan-accent);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 4px;
  font-family: monospace;
  display: block;
  margin-top: 4px;
}

/* Profile setup avatar uploader */
.avatar-uploader {
  margin: 10px auto 20px;
  width: 110px;
  height: 110px;
  position: relative;
  cursor: pointer;
}

.avatar-uploader img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--purple-700);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
  transition: all var(--transition-base);
}

.avatar-uploader:hover img {
  transform: scale(1.05);
  border-color: var(--pink-accent);
}

.avatar-upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.avatar-uploader:hover .avatar-upload-overlay {
  opacity: 1;
}

/* ============ Profile Page ============ */
.profile-page {
  min-height: 100vh;
  padding-top: 76px;
}

/* Banner */
.profile-banner {
  position: relative;
  width: 100%;
  height: 260px;
  background:
    linear-gradient(135deg, rgba(76, 29, 149, 0.55), rgba(124, 58, 237, 0.45), rgba(217, 70, 239, 0.5));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Stronger dark overlay at bottom for text readability */
.profile-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(8, 6, 15, 0.25) 0%,
      rgba(8, 6, 15, 0.55) 65%,
      rgba(8, 6, 15, 0.95) 100%
    );
  z-index: 1;
  pointer-events: none;
}

/* Subtle vignette */
.profile-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(8,6,15,0.5) 100%);
  z-index: 1;
  pointer-events: none;
}

.banner-edit-btn {
  position: absolute;
  top: 90px;
  left: 24px;
  z-index: 5;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition-base);
}

.banner-edit-btn:hover {
  background: var(--gradient-main);
  border-color: transparent;
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
}

.profile-header {
  max-width: 1200px;
  margin: -85px auto 0;
  padding: 0 30px;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: end;
}

.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #08060f;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(124, 58, 237, 0.35),
    inset 0 0 0 2px rgba(255, 255, 255, 0.05);
  background: #08060f;
}

.profile-avatar-edit {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  background: var(--gradient-main);
  border: 3px solid #08060f;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.5);
  transition: transform var(--transition-base);
}

.profile-avatar-edit:hover { transform: scale(1.1); }

.profile-name-block {
  padding-bottom: 18px;
  min-width: 0;
}

.profile-name {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  letter-spacing: -0.5px;
}

.subscription-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.sub-platinum { background: linear-gradient(135deg, #c084fc, #d946ef); color: #fff; box-shadow: 0 4px 15px rgba(217, 70, 239, 0.4); }
.sub-gold { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4); }
.sub-silver { background: linear-gradient(135deg, #94a3b8, #64748b); color: #fff; }
.sub-bronze { background: linear-gradient(135deg, #b45309, #92400e); color: #fff; }
.sub-none { background: rgba(100, 116, 139, 0.15); color: var(--text-muted); border: 1px solid rgba(100, 116, 139, 0.25); }

.profile-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.profile-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-meta i {
  color: var(--purple-light);
  font-size: 11px;
}

.profile-actions-top {
  display: flex;
  gap: 8px;
  padding-bottom: 14px;
}

.profile-action-btn {
  padding: 9px 16px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-md);
  color: var(--purple-light);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.profile-action-btn:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--purple-700);
}

.profile-action-btn.danger {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: var(--red-danger);
}

.profile-action-btn.danger:hover { background: rgba(239, 68, 68, 0.18); }

/* Bio */
.profile-bio {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 0 30px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Stats Grid */
.profile-stats {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.stat-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(28, 20, 53, 0.4));
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 18px;
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 15px 40px rgba(124, 58, 237, 0.2);
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-main);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}

.stat-card-icon.gold { background: linear-gradient(135deg, #fbbf24, #f59e0b); box-shadow: 0 8px 20px rgba(251, 191, 36, 0.35); }
.stat-card-icon.green { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35); }
.stat-card-icon.cyan { background: linear-gradient(135deg, #22d3ee, #06b6d4); box-shadow: 0 8px 20px rgba(34, 211, 238, 0.35); }
.stat-card-icon.red { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35); }

.stat-card-value {
  font-size: 30px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card-label {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Level Progress */
.level-progress-section {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0 30px;
}

.level-progress-card {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(217, 70, 239, 0.05));
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 18px;
  padding: 24px 28px;
}

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

.level-current {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.level-current i {
  color: var(--gold-accent);
  filter: drop-shadow(0 0 8px var(--gold-accent));
}

.level-progress-text {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 700;
}

.level-progress-bar {
  width: 100%;
  height: 14px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.level-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple-700), var(--pink-accent), var(--gold-accent));
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
  border-radius: var(--radius-full);
  box-shadow: 0 0 15px rgba(217, 70, 239, 0.5);
  transition: width 1s ease;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Daily Quest */
.quest-section {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0 30px;
}

.quest-card {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 18px;
  padding: 24px 28px;
  display: flex;
  gap: 18px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.quest-card.completed {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(217, 70, 239, 0.08));
  border-color: rgba(217, 70, 239, 0.4);
}

.quest-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

.quest-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.4);
}

.quest-card.completed .quest-icon {
  background: var(--gradient-main);
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.5);
}

.quest-content { flex: 1; min-width: 0; }

.quest-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quest-title-tag {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green-success);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
}

.quest-card.completed .quest-title-tag {
  background: var(--gradient-main);
  color: #fff;
}

.quest-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.quest-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quest-progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.quest-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.quest-card.completed .quest-progress-fill {
  background: linear-gradient(90deg, #c084fc, #d946ef);
}

.quest-progress-text {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 700;
  white-space: nowrap;
}

.quest-reward-tag {
  background: rgba(251, 191, 36, 0.15);
  color: var(--gold-accent);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

/* Combo Badge */
.combo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(251, 113, 133, 0.08));
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-full);
  color: var(--red-danger);
  font-size: 12.5px;
  font-weight: 800;
  margin-left: 8px;
}

.combo-badge i {
  filter: drop-shadow(0 0 6px var(--red-danger));
}

/* ============ Leaderboard ============ */
.leaderboard-section {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 30px;
}

/* LIVE badge for leaderboard */
.section-header-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 900;
  color: #ef4444;
  letter-spacing: 1.5px;
  margin-right: auto;
  font-family: 'Audiowide', sans-serif;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: livePulse 1.2s ease-in-out infinite;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    opacity: 1;
  }
  70% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    opacity: 0.7;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    opacity: 1;
  }
}

/* Glow on stat update */
.stat-card-value {
  transition: color 0.3s ease, transform 0.3s ease;
}

.section-header-profile h2 {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
}

.section-header-profile-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-main);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #fff;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.4);
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lb-row {
  display: grid;
  grid-template-columns: 60px 50px 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  transition: all var(--transition-base);
}

.lb-row:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateX(-3px);
}

.lb-row.is-me {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(217, 70, 239, 0.08));
  border-color: var(--purple-700);
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.25);
}

.lb-row.top-3 { background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(255, 255, 255, 0.02)); }

.lb-rank {
  font-size: 22px;
  font-weight: 900;
  text-align: center;
  color: var(--text-muted);
}

.lb-row.top-3:nth-child(1) .lb-rank { color: #fbbf24; filter: drop-shadow(0 0 8px #fbbf24); }
.lb-row.top-3:nth-child(2) .lb-rank { color: #94a3b8; }
.lb-row.top-3:nth-child(3) .lb-rank { color: #b45309; }

.lb-rank::before { content: '#'; opacity: 0.5; font-size: 16px; }

.lb-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.lb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lb-info {
  min-width: 0;
}

.lb-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.lb-level {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.lb-points {
  font-size: 16px;
  font-weight: 900;
  color: var(--gold-accent);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.lb-points i {
  filter: drop-shadow(0 0 6px var(--gold-accent));
}

.lb-sub-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.me-tag {
  background: var(--gradient-main);
  color: #fff;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* ============ Subscription Plans Mini ============ */
.subs-mini-section {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0 30px;
}

.subs-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.sub-mini-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  position: relative;
  transition: all var(--transition-base);
  cursor: pointer;
}

.sub-mini-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.4);
}

.sub-mini-card.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(217, 70, 239, 0.05));
  border-color: var(--purple-700);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.25);
}

.sub-mini-active-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-main);
  color: #fff;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
}

.sub-mini-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
}

.sub-mini-icon.bronze { background: linear-gradient(135deg, #b45309, #92400e); }
.sub-mini-icon.silver { background: linear-gradient(135deg, #94a3b8, #64748b); }
.sub-mini-icon.gold { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.sub-mini-icon.platinum { background: linear-gradient(135deg, #c084fc, #d946ef); }

.sub-mini-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.sub-mini-price {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.sub-mini-price .price-gold {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(245,158,11,0.08));
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(251,191,36,0.25);
  color: #fbbf24;
  font-weight: 800;
  font-size: 13px;
}

/* ============ Edit Profile Modal ============ */
.profile-edit-modal { z-index: 9997; }
.profile-edit-content {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(165deg, #14102b, #08060f);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 22px;
  padding: 30px;
  position: relative;
  animation: slideUpScale 0.4s var(--transition-bounce);
}

/* ============ Mobile Responsive ============ */
@media (max-width: 768px) {
  .profile-banner { height: 200px; }
  .banner-edit-btn { top: 70px; left: 16px; width: 38px; height: 38px; font-size: 12px; }

  .profile-header {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: -70px;
    padding: 0 16px;
    text-align: center;
  }

  .profile-avatar-wrap { margin: 0 auto; }
  .profile-avatar { width: 110px; height: 110px; border-width: 4px; }
  .profile-avatar-edit { width: 32px; height: 32px; font-size: 11px; }

  .profile-name-block { padding-bottom: 0; }
  .profile-name {
    font-size: 22px;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
  }

  .subscription-badge { padding: 4px 12px; font-size: 11px; }
  .profile-meta { justify-content: center; gap: 10px; font-size: 11.5px; }

  .profile-actions-top {
    justify-content: center;
    padding-bottom: 0;
    flex-wrap: wrap;
  }
  .profile-action-btn { padding: 8px 14px; font-size: 11.5px; }

  .profile-bio { padding: 0 16px; font-size: 13px; text-align: center; }

  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
    margin: 24px auto;
  }
  .stat-card { padding: 16px 14px; }
  .stat-card-icon { width: 40px; height: 40px; font-size: 17px; margin-bottom: 10px; }
  .stat-card-value { font-size: 22px; }
  .stat-card-label { font-size: 11.5px; }

  .level-progress-section, .quest-section, .leaderboard-section, .subs-mini-section { padding: 0 16px; }
  .level-progress-card { padding: 18px 20px; }
  .level-current { font-size: 15px; }
  .level-progress-text { font-size: 11.5px; }

  .quest-card { padding: 16px 18px; gap: 14px; flex-direction: column; align-items: stretch; }
  .quest-icon { width: 48px; height: 48px; font-size: 20px; }
  .quest-title { font-size: 14.5px; flex-wrap: wrap; }
  .quest-desc { font-size: 12px; }
  .quest-progress-row { flex-wrap: wrap; gap: 8px; }
  .quest-reward-tag { font-size: 11px; padding: 4px 10px; }

  .lb-row {
    grid-template-columns: 40px 38px 1fr auto;
    gap: 10px;
    padding: 12px 14px;
  }
  .lb-rank { font-size: 16px; }
  .lb-rank::before { font-size: 13px; }
  .lb-avatar { width: 36px; height: 36px; font-size: 18px; }
  .lb-name { font-size: 13px; gap: 6px; }
  .lb-level { font-size: 10.5px; }
  .lb-points { font-size: 13.5px; }
  .lb-sub-badge { display: none; }

  /* Auth button mobile */
  .auth-name { display: none; }
  .auth-btn { padding: 7px 12px; font-size: 12px; }
  .auth-btn.user-btn { padding: 4px; }
  .auth-btn.login-btn span { display: none; }
  .auth-btn.login-btn i { font-size: 18px; }

  /* Login modal mobile */
  .login-content { padding: 28px 20px 22px; }
  .login-step h2 { font-size: 19px; }
  .login-step .desc { font-size: 12px; margin-bottom: 16px; }
  .login-step-icon { width: 60px; height: 60px; font-size: 26px; }
  .login-input { padding: 12px 14px; font-size: 14px; }
  .login-input.code-input { font-size: 24px; letter-spacing: 8px; }
  .login-btn-main { font-size: 13px; padding: 13px 18px; }

  .test-code-box { padding: 12px; gap: 10px; }
  .test-code-box i { font-size: 18px; }
  .test-code-box .test-info { font-size: 11px; }
  .test-code-box .test-info strong { font-size: 16px; letter-spacing: 3px; }
}

@media (max-width: 380px) {
  .profile-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-card-value { font-size: 22px !important; }
  .lb-points { font-size: 12.5px; }
}

/* User-only floating dropdown for menu */
.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: rgba(8, 6, 15, 0.96);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 8px;
  min-width: 180px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  display: none;
  z-index: 200;
}

.user-menu-dropdown.show { display: block; animation: slideUpScale 0.2s ease; }

.user-menu-dropdown a, .user-menu-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
  transition: all var(--transition-base);
  text-decoration: none;
}

.user-menu-dropdown a:hover, .user-menu-dropdown button:hover {
  background: rgba(139, 92, 246, 0.12);
  color: var(--purple-light);
}

.user-menu-dropdown button.danger {
  color: var(--red-danger);
}

.user-menu-dropdown button.danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

.user-menu-dropdown i {
  width: 16px;
  text-align: center;
  font-size: 13px;
}

/* کارت طلا — کنار بقیه آمار، با درخشش */
.stat-card-gold {
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(245, 158, 11, 0.05)) !important;
  border-color: rgba(251, 191, 36, 0.3) !important;
  position: relative;
  overflow: hidden;
}

.stat-card-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.15), transparent);
  animation: goldShine 3s ease-in-out infinite;
}

@keyframes goldShine {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

.stat-card-gold:hover {
  border-color: rgba(251, 191, 36, 0.6) !important;
  box-shadow: 0 12px 30px rgba(251, 191, 36, 0.25) !important;
}

/* 🎬 آخرین انیمه - پروفایل خود */
.last-watched-section {
  max-width: 1100px;
  margin: 0 auto 30px;
  padding: 0 24px;
  animation: lwFadeIn 0.5s ease-out;
}

@keyframes lwFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.last-watched-card-me {
  background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(139,92,246,0.04));
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 18px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.lw-remove-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 5;
  flex-shrink: 0;
}

.lw-remove-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
  transform: scale(1.1);
}

.last-watched-card-me::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(139,92,246,0.18), transparent 70%);
  pointer-events: none;
}

.lw-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #a78bfa;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.lw-header i {
  font-size: 14px;
}

.lw-time {
  margin-right: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(0,0,0,0.3);
  padding: 4px 10px;
  border-radius: 999px;
}

.lw-body {
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  transition: transform 0.2s;
  position: relative;
  z-index: 1;
}

.lw-body:hover {
  transform: translateY(-2px);
}

.lw-poster {
  width: 90px;
  height: 130px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(0,0,0,0.4);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  border: 2px solid rgba(255,255,255,0.08);
  transition: transform 0.25s, border-color 0.25s;
}

.lw-body:hover .lw-poster {
  transform: scale(1.04);
  border-color: rgba(139,92,246,0.5);
}

.lw-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.lw-title {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: -0.3px;
}

.lw-ep-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  width: fit-content;
  box-shadow: 0 4px 14px rgba(139,92,246,0.45);
}

/* 🎯 دکمه گرد ادامه تماشا - سمت چپ */
.lw-action {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  transition: transform 0.25s;
}

.lw-body:hover .lw-action {
  transform: scale(1.06);
}

.lw-play-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(109,40,217,0.15));
  border: 2px solid rgba(139,92,246,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #a78bfa;
  box-shadow: 0 8px 22px rgba(139,92,246,0.3);
  transition: all 0.25s;
  padding-left: 4px;
}

.lw-body:hover .lw-play-circle {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(139,92,246,0.6);
}

.lw-action-text {
  font-size: 11.5px;
  font-weight: 800;
  color: #a78bfa;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

@media (max-width: 768px) {
  .last-watched-section { padding: 0 16px; }
  .last-watched-card-me { padding: 16px; }
  .lw-poster { width: 70px; height: 100px; }
  .lw-title { font-size: 16px; }
  .lw-body { gap: 12px; }
  .lw-action { padding: 0 6px; }
  .lw-play-circle { width: 52px; height: 52px; font-size: 18px; }
  .lw-action-text { font-size: 10px; }
  .lw-ep-badge { font-size: 11px; padding: 5px 12px; }
}

/* ═══════════════════════════════════════════ */
/* 🎨 Theme Settings */
/* ═══════════════════════════════════════════ */
.theme-settings {
  margin-top: 24px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(139,92,246,0.05), rgba(139,92,246,0.01));
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: 16px;
}

.theme-settings-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.theme-settings-title i {
  color: var(--theme-primary, #a78bfa);
  font-size: 16px;
}

.theme-settings-hint {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: auto;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.theme-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  overflow: hidden;
}

.theme-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--card-grad);
  opacity: 0;
  transition: opacity 0.3s;
}

.theme-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px var(--card-glow);
}

.theme-card:hover::before {
  opacity: 0.08;
}

.theme-card.active {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    0 0 0 2px var(--card-grad-color, #a78bfa),
    0 12px 32px var(--card-glow);
}

.theme-card.active::before {
  opacity: 0.12;
}

.theme-card-preview {
  position: relative;
  width: 100%;
  height: 60px;
  border-radius: 10px;
  background: var(--card-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--card-glow);
}

.theme-card-icon {
  font-size: 28px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.theme-card-circles {
  position: absolute;
  bottom: 6px;
  right: 6px;
  display: flex;
  gap: 3px;
  z-index: 2;
}

.tc-c {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.theme-card-name {
  position: relative;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  z-index: 2;
  text-align: center;
  line-height: 1.4;
}

.theme-card-check {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--card-grad);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 2px 8px var(--card-glow);
  animation: themeCheckPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes themeCheckPop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

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

/* اعمال تم به نقاط مهم پروفایل */
.profile-banner-default,
.profile-avatar-frame {
  background: var(--theme-gradient, linear-gradient(135deg, #8b5cf6, #6d28d9)) !important;
}

.profile-username,
.user-level-badge {
  color: var(--theme-accent, #a78bfa);
}

/* ═══════════════════════════════════════════════════════════ */
/* 🎨 سیستم تم: اعمال در سراسر سایت کاربر */
/* وقتی کاربر تم رو عوض کنه، این عناصر رنگی می‌شن */
/* ═══════════════════════════════════════════════════════════ */

/* پروفایل بنر - gradient تم */
body[data-theme] .profile-banner {
  background: var(--theme-gradient, linear-gradient(135deg, #8b5cf6, #6d28d9)) !important;
}

/* پروفایل آواتار border */
body[data-theme] .profile-avatar-large {
  border-color: var(--theme-primary, #8b5cf6) !important;
  box-shadow: 0 0 0 4px var(--theme-glow, rgba(139,92,246,0.3)),
              0 12px 32px rgba(0,0,0,0.4) !important;
}

/* دکمه‌ی اصلی پروفایل */
body[data-theme] .login-btn-main {
  background: var(--theme-gradient, linear-gradient(135deg, #8b5cf6, #6d28d9)) !important;
  box-shadow: 0 8px 24px var(--theme-glow, rgba(139,92,246,0.4)) !important;
}

/* بَج های آماری */
body[data-theme] .stat-card .stat-value {
  background: var(--theme-gradient, linear-gradient(135deg, #a78bfa, #8b5cf6)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* badges - سطح کاربر */
body[data-theme] .level-badge,
body[data-theme] .user-level-badge {
  background: var(--theme-gradient, linear-gradient(135deg, #8b5cf6, #6d28d9)) !important;
  box-shadow: 0 4px 12px var(--theme-glow, rgba(139,92,246,0.35)) !important;
}

/* progress bar */
body[data-theme] .progress-fill,
body[data-theme] .level-progress-fill {
  background: var(--theme-gradient, linear-gradient(135deg, #8b5cf6, #6d28d9)) !important;
}

/* لینک‌های مهم */
body[data-theme] .lw-play-circle,
body[data-theme] .play-circle-icon {
  background: var(--theme-gradient, linear-gradient(135deg, #8b5cf6, #6d28d9)) !important;
  box-shadow: 0 8px 22px var(--theme-glow, rgba(139,92,246,0.5)) !important;
}

/* اسم کاربر در پروفایل خودش (با gradient تم) */
body[data-theme] .profile-name {
  background: var(--theme-gradient, linear-gradient(135deg, #fff, #cbd5e1)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* انیمیشن نرم تغییر تم */
.profile-banner,
.profile-avatar-large,
.login-btn-main,
.level-badge,
.progress-fill {
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease !important;
}

/* 🎨 Theme Live Preview */
.theme-preview-box {
  margin: 16px 0 20px;
  padding: 20px;
  background: var(--theme-gradient, linear-gradient(135deg, #8b5cf6, #6d28d9));
  border-radius: 16px;
  box-shadow: 0 12px 32px var(--theme-glow, rgba(139,92,246,0.4));
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}
.theme-preview-box::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.theme-preview-header {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.theme-preview-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: 3px solid rgba(255,255,255,0.4);
  flex-shrink: 0;
  position: relative;
}
.theme-preview-avatar::after {
  content: '😎';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.theme-preview-info { flex: 1; min-width: 0; }
.theme-preview-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.theme-preview-stats {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-preview-badge {
  padding: 3px 10px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  color: #fff;
}
.theme-preview-progress {
  flex: 1;
  height: 6px;
  background: rgba(0,0,0,0.25);
  border-radius: 999px;
  overflow: hidden;
}
.theme-preview-progress-fill {
  display: block;
  width: 65%;
  height: 100%;
  background: rgba(255,255,255,0.85);
  border-radius: 999px;
  animation: themePreviewProgress 2.5s ease-in-out infinite alternate;
}
@keyframes themePreviewProgress {
  from { width: 30%; }
  to { width: 80%; }
}
