/* ============================================
   DOOMSDAY — Profile / Personal Cabinet
   ============================================ */

/* ============================================
   WALLET — military/industrial cabinet style
   ============================================ */
.wallet-section {
  margin: var(--space-xl) 0 var(--space-lg);
  padding: 28px 24px;
  background:
    linear-gradient(180deg, rgba(196,30,30,0.04) 0%, transparent 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 4px),
    var(--bg-secondary, #111);
  border: 1px solid var(--surface, #1e1e1e);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.wallet-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: repeating-linear-gradient(-45deg, #FFB800 0 8px, #0a0606 8px 16px);
  opacity: 0.85;
}
.wallet-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blood, #c41e1e), transparent);
  opacity: 0.4;
}
.wallet-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(196,30,30,0.25);
}
.wallet-title {
  font-family: 'Black Ops One', cursive;
  color: var(--blood, #c41e1e);
  font-size: 1.4rem;
  letter-spacing: 3px;
  margin: 0;
  text-shadow: 0 0 14px rgba(196,30,30,0.4);
}
.wallet-title::before { content: '◢ '; color: #FFB800; opacity: 0.8; }
.wallet-subtitle {
  font-family: 'Share Tech Mono', monospace;
  color: #8b7d6b;
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.wallet-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px 18px 16px 22px;
  background: linear-gradient(155deg, #15110d 0%, #0a0807 100%);
  border: 1px solid rgba(255,255,255,0.05);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: transform 0.2s ease, border-color 0.2s ease;
  min-height: 110px;
}
.wallet-card:hover {
  transform: translateY(-2px);
  border-color: rgba(196,30,30,0.35);
}
.wallet-card-stripe {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--blood, #c41e1e);
  box-shadow: 0 0 12px var(--blood, #c41e1e);
}
.wallet-credits .wallet-card-stripe { background: #FFD700; box-shadow: 0 0 14px rgba(255,215,0,0.7); }
.wallet-bonuses .wallet-card-stripe { background: #FF8A2B; box-shadow: 0 0 14px rgba(255,138,43,0.7); }
.wallet-doomcoins .wallet-card-stripe { background: #FFB800; box-shadow: 0 0 14px rgba(255,184,0,0.7); }

.wallet-card-corner {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  border-top: 2px solid rgba(196,30,30,0.6);
  border-right: 2px solid rgba(196,30,30,0.6);
}

.wallet-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border: 1px solid currentColor;
  border-radius: 50%;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 8px currentColor);
  opacity: 0.92;
}
.wallet-credits .wallet-card-icon { color: #FFD700; }
.wallet-bonuses .wallet-card-icon { color: #FF8A2B; }
.wallet-doomcoins .wallet-card-icon { color: #FFB800; }

.wallet-card-body { min-width: 0; }
.wallet-card-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  color: #8b7d6b;
  letter-spacing: 2px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.wallet-card-value {
  font-family: 'Black Ops One', cursive;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-primary, #e8ddc8);
  word-break: break-all;
  text-shadow: 0 0 10px currentColor;
}
.wallet-credits .wallet-card-value { color: #FFD700; }
.wallet-bonuses .wallet-card-value { color: #FF8A2B; }
.wallet-doomcoins .wallet-card-value { color: #FFB800; }
.wallet-card-hint {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  color: #5a4a3a;
  margin-top: 6px;
  letter-spacing: 0.3px;
}
.wallet-card-select {
  background: #0a0606;
  color: var(--blood, #c41e1e);
  border: 1px solid rgba(196,30,30,0.4);
  border-radius: 2px;
  padding: 2px 6px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 1px;
  cursor: pointer;
}
.wallet-card-select:focus {
  outline: none;
  border-color: var(--blood-bright, #ef3a3a);
  box-shadow: 0 0 0 2px rgba(196,30,30,0.2);
}

/* ---- Operations row (promo + quick links) ---- */
.wallet-ops {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  margin-bottom: var(--space-xl);
}
.wallet-ops-card {
  background: linear-gradient(155deg, #15110d 0%, #0a0807 100%);
  border: 1px solid rgba(255,255,255,0.05);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  padding: 18px 20px;
  position: relative;
}
.wallet-ops-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,30,30,0.6), transparent);
}
.wallet-ops-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}
.wallet-ops-icon {
  color: #FFB800;
  font-size: 1.2rem;
  filter: drop-shadow(0 0 6px rgba(255,184,0,0.5));
}
.wallet-ops-title {
  font-family: 'Black Ops One', cursive;
  color: var(--blood, #c41e1e);
  letter-spacing: 2px;
  font-size: 0.88rem;
}

/* Promo input + button */
.promo-row { display: flex; gap: 0; }
.promo-input {
  flex: 1;
  min-width: 0;
  background: #050302;
  border: 1px solid rgba(255,255,255,0.08);
  border-right: none;
  padding: 12px 14px;
  color: var(--text-primary, #e8ddc8);
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.promo-input::placeholder { color: #3a2a1c; letter-spacing: 2px; }
.promo-input:focus {
  outline: none;
  border-color: var(--blood, #c41e1e);
  background: #0a0606;
  box-shadow: inset 0 0 0 1px rgba(196,30,30,0.4);
}
.promo-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(180deg, var(--blood-bright, #ef3a3a), var(--blood, #c41e1e));
  border: 1px solid var(--blood, #c41e1e);
  color: #0a0606;
  font-family: 'Black Ops One', cursive;
  font-size: 0.88rem;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.promo-submit-btn:hover {
  background: linear-gradient(180deg, #ff5252, var(--blood-bright, #ef3a3a));
  box-shadow: 0 0 16px rgba(196,30,30,0.5);
}
.promo-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.promo-msg { font-family: 'Share Tech Mono', monospace; font-size: 0.82rem; margin-top: 10px; min-height: 1.2em; letter-spacing: 0.5px; }
.promo-msg.ok { color: #5fff7a; text-shadow: 0 0 8px rgba(95,255,122,0.4); }
.promo-msg.err { color: #ff6464; text-shadow: 0 0 8px rgba(255,100,100,0.4); }

/* Quick action grid */
.wallet-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.wallet-quick {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  background: #050302;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-primary, #e8ddc8);
  text-decoration: none;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  text-align: center;
  transition: all 0.15s ease;
  min-height: 78px;
}
.wallet-quick:hover {
  border-color: var(--blood, #c41e1e);
  background: #0a0606;
  color: var(--blood-bright, #ef3a3a);
  transform: translateY(-2px);
}
.wallet-quick-ic { font-size: 1.4rem; line-height: 1; }
.wallet-quick-tx { line-height: 1.3; }
.wallet-quick-tx small { display: block; font-size: 0.62rem; color: #FFB800; opacity: 0.85; margin-top: 2px; }
.wallet-quick-vote { border-color: rgba(255,184,0,0.3); }
.wallet-quick-vote:hover { border-color: #FFB800; color: #FFB800; }

@media (max-width: 900px) {
  .wallet-grid { grid-template-columns: 1fr 1fr; }
  .wallet-ops { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wallet-grid { grid-template-columns: 1fr; }
  .wallet-section { padding: 20px 14px; }
  .wallet-card { padding: 14px 14px 12px 18px; min-height: 96px; }
  .wallet-card-icon { width: 48px; height: 48px; }
  .wallet-card-value { font-size: 1.7rem; }
  .wallet-title { font-size: 1.15rem; letter-spacing: 2px; }
  .wallet-quick-grid { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .wallet-quick { padding: 10px 4px; font-size: 0.7rem; min-height: 72px; }
  .promo-row { flex-direction: column; gap: 8px; }
  .promo-input { border-right: 1px solid rgba(255,255,255,0.08); }
  .promo-submit-btn { width: 100%; justify-content: center; }
}

/* ============================================
   DAILY + REFERRAL — reward row
   ============================================ */
.reward-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: var(--space-xl) 0;
}
.reward-card {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background: linear-gradient(155deg, #15110d 0%, #0a0807 100%);
  border: 1px solid rgba(255,255,255,0.05);
  border-left: 4px solid var(--blood, #c41e1e);
  border-radius: 4px;
  overflow: hidden;
}
.reward-card.daily-card { border-left-color: #FFB800; }
.reward-card.referral-card { border-left-color: #5fff7a; }
.reward-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle at 100% 0%, currentColor, transparent 70%);
  opacity: 0.08;
  color: #FFB800;
}
.reward-card.referral-card::before { color: #5fff7a; }
.reward-icon {
  font-size: 2.5rem;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  filter: drop-shadow(0 0 8px currentColor);
  color: #FFB800;
}
.referral-card .reward-icon { color: #5fff7a; }
.reward-body { flex: 1; min-width: 0; }
.reward-title {
  font-family: 'Black Ops One', cursive;
  color: var(--blood, #c41e1e);
  font-size: 0.95rem;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.reward-amount {
  font-family: 'Black Ops One', cursive;
  color: #FFB800;
  font-size: 1.7rem;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(255,184,0,0.4);
  margin-bottom: 4px;
}
.reward-state {
  color: #aaa;
  font-size: 0.82rem;
  margin-bottom: 10px;
  line-height: 1.4;
}
.reward-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(180deg, #FFC920, #FFB800);
  border: 1px solid #FFB800;
  color: #0a0606;
  font-family: 'Black Ops One', cursive;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.reward-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #FFD75A, #FFC920);
  box-shadow: 0 0 16px rgba(255,184,0,0.5);
}
.reward-btn:disabled {
  background: #2a2418;
  border-color: rgba(255,184,0,0.3);
  color: #6a5a3a;
  cursor: not-allowed;
}
.reward-btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #15110d;
  border: 1px solid rgba(95,255,122,0.3);
  color: #5fff7a;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.reward-btn-sm:hover {
  background: #0a0e0a;
  border-color: #5fff7a;
  box-shadow: 0 0 8px rgba(95,255,122,0.3);
}

.referral-code-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.referral-code {
  display: inline-block;
  padding: 6px 12px;
  background: #050302;
  border: 1px solid rgba(95,255,122,0.4);
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: #5fff7a;
  text-shadow: 0 0 8px rgba(95,255,122,0.4);
}

.referral-claim-toggle { margin-top: 10px; }
.referral-claim-toggle summary {
  font-family: 'Share Tech Mono', monospace;
  color: var(--blood, #c41e1e);
  font-size: 0.78rem;
  cursor: pointer;
  letter-spacing: 0.5px;
}
.referral-claim-toggle summary:hover { color: var(--blood-bright, #ef3a3a); }
.referral-form {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.referral-form input {
  flex: 1;
  min-width: 0;
  background: #050302;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 10px;
  color: var(--text-primary, #e8ddc8);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.referral-form input:focus {
  outline: none;
  border-color: var(--blood, #c41e1e);
}
.referral-msg { font-family: 'Share Tech Mono', monospace; font-size: 0.78rem; margin-top: 6px; min-height: 1em; }
.referral-msg.ok { color: #5fff7a; }
.referral-msg.err { color: #ff6464; }

/* ============================================
   ACHIEVEMENTS grid
   ============================================ */
.ach-counter {
  display: inline-block;
  margin-left: 10px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
  color: #FFB800;
  background: rgba(255,184,0,0.1);
  padding: 2px 10px;
  border: 1px solid rgba(255,184,0,0.3);
  border-radius: 2px;
  vertical-align: middle;
}
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: var(--space-xl);
}
.ach-loading { grid-column: 1 / -1; text-align: center; padding: 30px; color: #6a6a6a; font-family: 'Share Tech Mono', monospace; }
.ach-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 10px;
  background: linear-gradient(155deg, #15110d 0%, #0a0807 100%);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 4px;
  min-height: 130px;
  filter: grayscale(80%);
  opacity: 0.55;
  transition: all 0.2s ease;
}
.ach-card:hover { transform: translateY(-2px); }
.ach-card.unlocked {
  filter: none;
  opacity: 1;
  border-color: rgba(255,184,0,0.4);
  box-shadow: inset 0 0 14px rgba(255,184,0,0.08);
}
.ach-card.unlocked::before {
  content: '✓';
  position: absolute;
  top: 4px;
  right: 6px;
  color: #5fff7a;
  font-weight: bold;
  font-size: 0.9rem;
}
.ach-icon { font-size: 2.2rem; line-height: 1; margin-bottom: 8px; }
.ach-card.unlocked .ach-icon { filter: drop-shadow(0 0 6px rgba(255,184,0,0.5)); }
.ach-name {
  font-family: 'Black Ops One', cursive;
  color: var(--text-primary, #e8ddc8);
  font-size: 0.78rem;
  letter-spacing: 1px;
  margin-bottom: 4px;
  line-height: 1.2;
}
.ach-card.unlocked .ach-name { color: #FFB800; }
.ach-desc {
  font-family: 'Share Tech Mono', monospace;
  color: #6a6a6a;
  font-size: 0.7rem;
  line-height: 1.3;
  margin-bottom: 6px;
}
.ach-progress {
  width: 100%;
  height: 4px;
  background: #050302;
  border-radius: 2px;
  overflow: hidden;
}
.ach-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blood, #c41e1e), #FFB800);
  transition: width 0.4s ease;
}
.ach-progress-text { font-family: 'Share Tech Mono', monospace; font-size: 0.65rem; color: #6a6a6a; margin-top: 3px; }
.ach-card.unlocked .ach-progress-bar { background: linear-gradient(90deg, #FFB800, #FFD75A); }

@media (max-width: 768px) {
  .reward-row { grid-template-columns: 1fr; }
  .achievements-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
  .ach-card { padding: 10px 6px; min-height: 110px; }
  .ach-icon { font-size: 1.7rem; }
}

/* ---- Purchase history empty cell ---- */
.history-table-wrap { margin-bottom: var(--space-xl); }
.sessions-table .empty-cell {
  text-align: center;
  padding: 30px;
  color: var(--text-secondary, #8b8b8b);
}

/* ---- Empty-state activity card ---- */
.activity-card.empty-state {
  text-align: center;
  padding: 30px;
  grid-column: 1 / -1;
}
.activity-card.empty-state .empty-ip {
  margin: 14px 0;
  font-size: 0.95rem;
  color: var(--text-primary, #e8ddc8);
}
.activity-card.empty-state .empty-cta {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .wallet-grid { grid-template-columns: 1fr; }
}

/* ---- Login Section ---- */
.login-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-lg);
  margin-top: var(--nav-height);
  background: radial-gradient(ellipse at 50% 30%, rgba(57,255,20,0.06) 0%, transparent 60%),
              var(--bg-primary);
}

.login-card {
  background: var(--bg-secondary);
  border: 1px solid var(--toxic-green-dim);
  clip-path: polygon(0 16px, 16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  padding: var(--space-2xl);
  max-width: 500px;
  width: 100%;
  text-align: center;
  position: relative;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(
    -45deg,
    var(--toxic-green-dim) 0, var(--toxic-green-dim) 5px,
    transparent 5px, transparent 10px
  );
}

.login-icon {
  font-size: 4rem;
  margin-bottom: var(--space-md);
  animation: float 3s ease-in-out infinite;
}

.login-title {
  font-family: var(--font-display);
  color: var(--toxic-green);
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
  text-shadow: 0 0 20px var(--toxic-glow);
}

.login-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

/* Steam Login Button */
.steam-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #171a21, #1b2838);
  color: #c7d5e0;
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 16px 40px;
  border: 2px solid #2a475e;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  clip-path: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.steam-login-btn:hover {
  background: linear-gradient(135deg, #1b2838, #2a475e);
  border-color: #66c0f4;
  color: #66c0f4;
  box-shadow: 0 0 30px rgba(102, 192, 244, 0.3);
  transform: translateY(-2px);
}

.steam-icon {
  width: 24px;
  height: 24px;
}

.login-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--surface);
}

.login-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.login-feature .feature-icon {
  font-size: 1.2rem;
}

/* ---- Profile Header ---- */
.profile-header {
  background: linear-gradient(180deg, rgba(57,255,20,0.08), transparent);
  border-bottom: 1px solid var(--toxic-green-dim);
  padding: var(--space-2xl) 0;
  margin-top: var(--nav-height);
}

.profile-header-content {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

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

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 4px;
  border: 3px solid var(--toxic-green);
  box-shadow: 0 0 30px var(--toxic-glow);
}

.profile-status {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid var(--bg-secondary);
}

.profile-status.online {
  background: var(--toxic-green);
  box-shadow: 0 0 10px var(--toxic-glow);
}

.profile-status.offline {
  background: var(--text-secondary);
}

.profile-header-info {
  flex: 1;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--toxic-green);
  text-shadow: 0 0 15px var(--toxic-glow);
  margin-bottom: var(--space-xs);
}

.profile-steam-id {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.profile-joined {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.profile-joined span {
  color: var(--toxic-green);
}

.profile-header-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* ---- Stats Grid ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--toxic-green-dim);
  clip-path: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-normal);
}

.stat-card:hover {
  border-color: var(--toxic-green);
  box-shadow: 0 0 25px var(--toxic-glow);
  transform: translateY(-4px);
}

.stat-card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.stat-card-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--toxic-green);
  text-shadow: 0 0 10px var(--toxic-glow);
  margin-bottom: var(--space-xs);
}

.stat-card-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

/* ---- Server Activity ---- */
.server-activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.activity-card {
  background: var(--bg-secondary);
  border: 1px solid var(--toxic-green-dim);
  clip-path: polygon(0 10px, 10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  padding: var(--space-lg);
  transition: all var(--transition-normal);
}

.activity-card:hover {
  border-color: var(--toxic-green);
  box-shadow: 0 0 20px var(--toxic-glow);
}

.activity-card.hard { border-left: 4px solid var(--blood-red); }
.activity-card.normal { border-left: 4px solid var(--hazard-orange); }
.activity-card.lite { border-left: 4px solid var(--toxic-green); }

.activity-server-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.activity-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.activity-stat {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.activity-stat-label {
  color: var(--text-secondary);
}

.activity-stat-value {
  color: var(--toxic-green);
  font-family: var(--font-heading);
}

/* ---- Sessions Table ---- */
.sessions-table-wrap {
  background: var(--bg-secondary);
  border: 1px solid var(--toxic-green-dim);
  margin-bottom: var(--space-2xl);
  overflow-x: auto;
}

.sessions-table {
  width: 100%;
  border-collapse: collapse;
}

.sessions-table th {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--toxic-green);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 2px solid var(--toxic-green-dim);
  text-align: left;
}

.sessions-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--surface);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.sessions-table tr:hover td {
  background: rgba(57,255,20,0.03);
}

.sessions-table .server-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 2px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
}

.server-badge.hard { background: rgba(204,0,0,0.2); color: var(--blood-red); }
.server-badge.normal { background: rgba(255,102,0,0.2); color: var(--hazard-orange); }
.server-badge.lite { background: rgba(57,255,20,0.15); color: var(--toxic-green); }

/* ---- Nav Avatar ---- */
.nav-profile-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-avatar-wrap {
  width: 28px;
  height: 28px;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid var(--toxic-green-dim);
}

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

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .server-activity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .profile-header-content {
    flex-direction: column;
    text-align: center;
  }

  .profile-header-actions {
    flex-direction: row;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .server-activity-grid {
    grid-template-columns: 1fr;
  }

  .login-features {
    grid-template-columns: 1fr;
  }
}
