/**
 * Lukol WebApp - Referral Tab Styles
 * Profile page with referral program
 */

/* ===== REFERRAL TAB CONTAINER ===== */
/* NOTE: Do NOT set display here - it's controlled by .tab-content.active in layout.css */
#tab-profile.active {
  padding: 0 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== HERO SECTION ===== */
.referral-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(138, 43, 226, 0.15));
  border-radius: 16px;
  padding: 24px 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.referral-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(255, 215, 0, 0.1) 0%,
    transparent 50%
  );
  animation: referralPulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes referralPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.referral-hero-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.referral-hero-title .icon {
  font-size: 24px;
}

.referral-hero-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ===== REFERRAL LINK INPUT ===== */
.referral-link-container {
  position: relative;
  margin-bottom: 16px;
}

.referral-link-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  color: var(--accent-gold);
  font-size: 13px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  text-overflow: ellipsis;
  cursor: text;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.referral-link-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

/* Shimmer effect on link */
.referral-link-input.shimmer {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(255, 215, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  background-size: 200% 100%;
  animation: linkShimmer 2s ease-in-out;
}

@keyframes linkShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== REFERRAL ACTION BUTTONS ===== */
.referral-actions {
  display: flex;
  justify-content: center;
}

.referral-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s var(--ease-spring);
}

.referral-btn .btn-icon {
  font-size: 18px;
  transition: transform 0.3s var(--ease-spring);
}

.referral-btn:active {
  transform: scale(0.95);
}

/* Copy button - Silver shimmer effect */
.referral-btn-copy {
  position: relative;
  min-width: 200px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #b8b8b8, #e8e8e8, #c0c0c0);
  color: #1a1a2e;
  font-weight: 700;
  font-size: 15px;
  box-shadow:
    0 4px 15px rgba(192, 192, 192, 0.4),
    0 0 20px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

/* Silver shimmer animation overlay */
.referral-btn-copy::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 25%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0.4) 75%,
    transparent 100%
  );
  animation: silverShimmer 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes silverShimmer {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 100%;
  }
}

/* Subtle glow animation */
.referral-btn-copy::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    90deg,
    #c0c0c0,
    #ffffff,
    #c0c0c0,
    #e8e8e8,
    #c0c0c0
  );
  background-size: 400% 100%;
  border-radius: 14px;
  z-index: -1;
  animation: silverGlow 3s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes silverGlow {
  0%, 100% {
    background-position: 0% 50%;
    opacity: 0.4;
  }
  50% {
    background-position: 100% 50%;
    opacity: 0.8;
  }
}

.referral-btn-copy:hover {
  box-shadow:
    0 6px 25px rgba(192, 192, 192, 0.5),
    0 0 30px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-2px) scale(1.02);
}

.referral-btn-copy:active {
  transform: translateY(0) scale(0.98);
}

/* Copied state - Green shimmer */
.referral-btn-copy.copied {
  background: linear-gradient(135deg, #4caf50, #66bb6a, #4caf50);
  color: white;
  box-shadow:
    0 4px 15px rgba(76, 175, 80, 0.4),
    0 0 20px rgba(76, 175, 80, 0.2);
  border-color: rgba(76, 175, 80, 0.5);
}

.referral-btn-copy.copied::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  animation: none;
}

.referral-btn-copy.copied::after {
  background: linear-gradient(135deg, #4caf50, #81c784, #4caf50);
  animation: none;
}

.referral-btn-copy.copied .btn-icon {
  animation: checkBounce 0.5s var(--ease-spring);
}

@keyframes checkBounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Ripple effect */
.referral-btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ===== STATS GRID (4 cards: 2x2) ===== */
.referral-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.referral-stat-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.referral-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.referral-stat-icon {
  font-size: 24px;
  margin-bottom: 8px;
  display: block;
}

.referral-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.referral-stat-value.gold {
  color: var(--accent-gold);
}

.referral-stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== CONDITIONS BLOCK ===== */
.referral-conditions {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.referral-conditions-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.referral-conditions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.referral-condition-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.referral-condition-item .icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.referral-condition-item strong {
  color: var(--accent-gold);
  font-weight: 600;
}

/* ===== EARNINGS HISTORY ===== */
.referral-history {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.referral-history-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.referral-history-empty {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-muted);
  font-size: 14px;
}

.referral-history-empty .icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
  opacity: 0.5;
}

/* Timeline styles */
.referral-timeline {
  position: relative;
  padding-left: 24px;
}

.referral-timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-gold), rgba(255, 215, 0, 0.2));
  border-radius: 1px;
}

.referral-timeline-item {
  position: relative;
  padding: 12px 0;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInTimeline 0.4s var(--ease-spring) forwards;
}

.referral-timeline-item::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 18px;
  width: 10px;
  height: 10px;
  background: var(--accent-gold);
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

@keyframes slideInTimeline {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Staggered animation delays */
.referral-timeline-item:nth-child(1) { animation-delay: 0.1s; }
.referral-timeline-item:nth-child(2) { animation-delay: 0.2s; }
.referral-timeline-item:nth-child(3) { animation-delay: 0.3s; }
.referral-timeline-item:nth-child(4) { animation-delay: 0.4s; }
.referral-timeline-item:nth-child(5) { animation-delay: 0.5s; }
.referral-timeline-item:nth-child(6) { animation-delay: 0.6s; }
.referral-timeline-item:nth-child(7) { animation-delay: 0.7s; }
.referral-timeline-item:nth-child(8) { animation-delay: 0.8s; }
.referral-timeline-item:nth-child(9) { animation-delay: 0.9s; }
.referral-timeline-item:nth-child(10) { animation-delay: 1.0s; }

.referral-timeline-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.referral-timeline-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.referral-timeline-user {
  font-size: 13px;
  color: var(--text-secondary);
}

.referral-timeline-amount {
  font-size: 14px;
  font-weight: 600;
  color: var(--success);
}

.referral-timeline-amount::before {
  content: '+';
}

/* ===== LOADING STATE ===== */
.referral-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  gap: 16px;
}

.referral-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 215, 0, 0.2);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.referral-loading-text {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ===== ERROR STATE ===== */
.referral-error {
  text-align: center;
  padding: 32px 16px;
  color: var(--error);
}

.referral-error .icon {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
}

.referral-error-text {
  font-size: 14px;
  margin-bottom: 16px;
}

.referral-error-retry {
  background: var(--bg-card);
  border: 1px solid var(--error);
  color: var(--error);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.referral-error-retry:hover {
  background: var(--error);
  color: white;
}

/* ===== NEON GLOW ANIMATION ===== */
.referral-hero.neon-glow {
  animation: neonGlow 2s ease-in-out infinite alternate;
}

@keyframes neonGlow {
  from {
    box-shadow:
      0 0 10px rgba(255, 215, 0, 0.2),
      0 0 20px rgba(255, 215, 0, 0.1),
      0 0 30px rgba(138, 43, 226, 0.1);
  }
  to {
    box-shadow:
      0 0 15px rgba(255, 215, 0, 0.3),
      0 0 30px rgba(255, 215, 0, 0.2),
      0 0 45px rgba(138, 43, 226, 0.15);
  }
}

/* ===== COLLAPSIBLE SECTIONS ===== */
.referral-collapsible {
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: background 0.3s ease;
}

.referral-collapsible:hover {
  background: rgba(255, 255, 255, 0.03);
}

.referral-collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}

.referral-collapsible-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.referral-collapsible-header:active {
  background: rgba(255, 255, 255, 0.05);
}

.referral-collapsible-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.referral-collapsible-title .icon {
  font-size: 16px;
}

.referral-collapsible-arrow {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease-spring);
}

.referral-collapsible.open .referral-collapsible-arrow {
  transform: rotate(180deg);
}

.referral-collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: rgba(0, 0, 0, 0.15);
}

.referral-collapsible.open .referral-collapsible-content {
  max-height: 300px;
  padding: 0 16px 16px;
}

/* Steps list (How it works) */
.referral-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.referral-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.referral-step-item .step-number {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-gold), #f5c542);
  color: #1a1a2e;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
}

.referral-step-item strong {
  color: var(--accent-gold);
  font-weight: 600;
}

/* Withdrawal list */
.referral-withdrawal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.referral-withdrawal-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.referral-withdrawal-item .icon {
  font-size: 16px;
  flex-shrink: 0;
}

.referral-withdrawal-item strong {
  color: var(--accent-gold);
  font-weight: 600;
}

.referral-contact-link {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.referral-contact-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ===== EXCHANGE: RUBLES → GENERATIONS ===== */
.referral-exchange {
  background: linear-gradient(135deg, rgba(0, 200, 150, 0.08), rgba(138, 43, 226, 0.1));
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(0, 200, 150, 0.2);
  position: relative;
  overflow: hidden;
}

.referral-exchange::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(0, 200, 150, 0.06) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.referral-exchange-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.referral-exchange-header .icon {
  font-size: 20px;
}

.referral-exchange-rate {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.referral-exchange-form {
  position: relative;
}

.referral-exchange-input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.referral-exchange-input {
  flex: 1;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(0, 200, 150, 0.25);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  -moz-appearance: textfield;
  appearance: textfield;
}

.referral-exchange-input::-webkit-inner-spin-button,
.referral-exchange-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.referral-exchange-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 14px;
}

.referral-exchange-input:focus {
  outline: none;
  border-color: rgba(0, 200, 150, 0.6);
  box-shadow: 0 0 20px rgba(0, 200, 150, 0.15);
}

.referral-btn-exchange {
  min-width: 120px;
  background: linear-gradient(135deg, #00c896, #00a67e);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 200, 150, 0.3);
  position: relative;
  overflow: hidden;
}

.referral-btn-exchange::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  animation: exchangeShimmer 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes exchangeShimmer {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

.referral-btn-exchange:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 200, 150, 0.4);
}

.referral-btn-exchange:active:not(:disabled) {
  transform: translateY(0) scale(0.97);
}

.referral-btn-exchange:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.referral-btn-exchange:disabled::before {
  animation: none;
}

.referral-btn-exchange .btn-icon {
  font-size: 16px;
}

.referral-exchange-preview {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  animation: fadeInPreview 0.2s ease;
}

@keyframes fadeInPreview {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.referral-exchange-preview.success {
  background: rgba(0, 200, 150, 0.1);
  border: 1px solid rgba(0, 200, 150, 0.25);
  color: #00e6a8;
}

.referral-exchange-preview.error {
  background: rgba(255, 82, 82, 0.1);
  border: 1px solid rgba(255, 82, 82, 0.25);
  color: #ff6b6b;
}

/* ===== EXCHANGE SUCCESS ANIMATIONS ===== */

/* Balance card pulse after exchange */
.referral-stat-card.exchange-pulse {
  animation: exchangeCardPulse 1.5s ease;
}

@keyframes exchangeCardPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 200, 150, 0.4); transform: scale(1); }
  20% { box-shadow: 0 0 20px 5px rgba(0, 200, 150, 0.3); transform: scale(1.05); }
  40% { box-shadow: 0 0 10px 2px rgba(0, 200, 150, 0.2); transform: scale(1.02); }
  60% { box-shadow: 0 0 15px 3px rgba(0, 200, 150, 0.15); transform: scale(1.03); }
  100% { box-shadow: none; transform: scale(1); }
}

/* Floating toast notification */
.exchange-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(0, 200, 150, 0.95), rgba(0, 166, 126, 0.95));
  border-radius: 14px;
  box-shadow:
    0 8px 32px rgba(0, 200, 150, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  opacity: 0;
  max-width: 90vw;
}

.exchange-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.exchange-toast.hide {
  transform: translateX(-50%) translateY(-30px);
  opacity: 0;
}

.exchange-toast-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.exchange-toast-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.exchange-toast-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.exchange-toast-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 360px) {
  .referral-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .referral-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 12px 16px;
  }

  .referral-stat-icon {
    margin-bottom: 0;
  }

  .referral-stat-info {
    flex: 1;
  }

  .referral-btn-copy {
    min-width: 160px;
    padding: 14px 24px;
    font-size: 14px;
  }
}

/* ===== PROFILE STATS (user analytics, feature #40) ===== */
.profile-stats-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-stats-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-stats-title .icon {
  font-size: 16px;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.profile-stat-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
}

.profile-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.profile-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.profile-stat-value-small {
  font-size: 15px;
  line-height: 1.2;
}

.profile-stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
