/* ============================================================
   RESPONSIVE PROFILE SCREEN
   ============================================================ */
.profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .profile-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }

  .profile-card {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .page-back-bar {
    grid-column: 1 / -1;
  }

  .profile-layout-grid > .btn:last-child {
    grid-column: 1 / -1;
  }
}

.profile-hero-aesthetic {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 85, 0, 0.12) 0%, rgba(15, 23, 42, 0.95) 45%, rgba(10, 15, 26, 0.98) 100%), var(--bg-surface);
  border: 1px solid rgba(255, 85, 0, 0.3);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
}

.app-container #tab-profile .profile-card-back {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.profile-hero-inner { padding-top: 34px; }

.profile-avatar-glow {
  width: 78px;
  height: 78px;
  border: 2.5px solid var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 85, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(15, 21, 35, 0.95) 100%);
  flex-shrink: 0;
}

.profile-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-hero-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-hero-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.profile-hero-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-hero-ign {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin: 0;
}

.profile-level-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  background: rgba(255, 85, 0, 0.15);
  border: 1px solid rgba(255, 85, 0, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.profile-hero-uid-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

@media (max-width: 480px) {
  .profile-hero-aesthetic { padding: 14px 12px; margin-bottom: 10px; }
  .profile-avatar-glow { width: 58px; height: 58px; }
  .profile-hero-inner { gap: 12px; }
  .profile-hero-stats { gap: 6px; }
  .profile-device-card { padding: 12px; margin-bottom: 10px; }
}

.profile-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (min-width: 768px) {
  .profile-hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .profile-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 115px);
    gap: 12px;
  }
}

@media (max-width: 767px) {
  .profile-hero-left {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-hero-identity {
    align-items: center;
    text-align: center;
  }
}

.stat-box-winnings .stat-number {
  color: #ffaa33;
  text-shadow: 0 0 12px rgba(255, 170, 51, 0.35);
}

.profile-avatar {
  width: 72px;
  height: 72px;
  background: var(--bg-elevated);
  border: 2px solid var(--primary);
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  overflow: hidden;
}

.profile-avatar .profile-icon-svg {
  width: 38px;
  height: 38px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.stat-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
}

.stat-number {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.stat-desc {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
}

