/* Member profile — game_tgn_0008 neon retro */

.g08-profile-page {
  flex: 1;
  padding: calc(var(--nav-height) + 48px) 16px 48px;
  min-height: 60vh;
}

.g08-profile-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  max-width: var(--container-width);
  margin: 0 auto;
}

.g08-profile-sidebar {
  flex: 0 0 280px;
  background: rgba(20, 20, 30, 0.85);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.08);
}

.g08-profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 12px;
  border: 2px solid rgba(0, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

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

.g08-profile-name {
  margin: 0 0 4px;
  font-family: var(--font-pixel, monospace);
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.g08-profile-email {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  word-break: break-all;
}

.g08-profile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.g08-profile-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  border-left: 3px solid transparent;
  background: transparent;
  border-top: none;
  border-right: none;
  border-bottom: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: inherit;
  text-transform: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.g08-profile-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.g08-profile-nav-item.active {
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  background: rgba(255, 0, 255, 0.08);
}

.g08-profile-main {
  flex: 1;
  min-width: 0;
}

.g08-profile-panel { display: none; }
.g08-profile-panel.active { display: block; width: 100%; }

.g08-profile-card {
  background: rgba(20, 20, 30, 0.85);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.g08-profile-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1rem;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.g08-profile-card-title {
  margin: 0;
  font-family: var(--font-pixel, monospace);
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.g08-stat-badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
  background: rgba(0, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 255, 0.25);
  border-radius: 999px;
  color: var(--secondary-color);
}

.g08-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.g08-game-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 255, 255, 0.15);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.g08-game-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 0, 255, 0.35);
}

.g08-game-card-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}

.g08-game-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g08-game-card-body {
  padding: 10px 12px 12px;
}

.g08-game-card .game-title {
  margin: 0 0 6px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
  min-width: 0;
}

.g08-game-card .game-title a {
  display: block;
  max-width: 100%;
  color: var(--text-main);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.g08-game-card .game-title a:hover {
  color: var(--secondary-color);
}

.g08-game-card .game-star { margin-bottom: 8px; }

.g08-btn-remove,
.g08-btn-clear,
.g08-btn-load-more,
.g08-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.g08-btn-remove {
  width: 100%;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.g08-btn-remove:hover {
  color: #fff;
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.45);
}

.g08-btn-clear {
  color: #fca5a5;
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.g08-btn-clear:hover {
  color: #fff;
  background: rgba(239, 68, 68, 0.25);
}

.g08-btn-load-more {
  width: 100%;
  margin-top: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color), #cc00cc);
  border: 1px solid rgba(255, 0, 255, 0.35);
}

.g08-btn-load-more:hover {
  box-shadow: 0 0 14px rgba(255, 0, 255, 0.3);
}

.g08-loading[hidden],
.g08-empty-state[hidden],
.g08-btn-load-more[hidden] {
  display: none !important;
}

.g08-btn-secondary {
  color: var(--text-main);
  background: rgba(0, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 255, 0.25);
  cursor: pointer;
}

.g08-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.g08-empty-state i {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
  opacity: 0.5;
  color: var(--primary-color);
}

.g08-loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

.g08-loading-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: g08-profile-spin 0.7s linear infinite;
  margin-bottom: 10px;
}

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

.g08-avatar-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.g08-avatar-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(0, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

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

.g08-avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.g08-avatar-hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.g08-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  z-index: 40000;
  max-width: min(420px, 90vw);
  padding: 12px 20px;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  border-radius: 10px;
  border: 1px solid transparent;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.28s ease;
  pointer-events: none;
}

.g08-toast.show {
  transform: translateX(-50%) translateY(0);
}

.g08-toast.success {
  color: #86efac;
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.35);
}

.g08-toast.error {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
}

.g08-toast.warning {
  color: #fde047;
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.35);
}

.g08-profile-form {
  width: 100%;
  max-width: 100%;
}

.g08-profile-form .g08-form-group { margin-bottom: 1rem; }

.g08-profile-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: none;
  color: var(--text-muted);
}

.g08-profile-form .g08-form-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 255, 255, 0.25);
  border-radius: 8px;
  outline: none;
}

.g08-profile-form .g08-form-input:focus {
  border-color: var(--secondary-color);
}

.g08-profile-form .g08-form-input[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.g08-confirm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 30000;
  background: rgba(10, 10, 18, 0.75);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.g08-confirm-overlay.show { display: flex; }

.g08-confirm-modal {
  width: 100%;
  max-width: 380px;
  padding: 1.75rem;
  background: rgba(20, 20, 30, 0.98);
  border: 1px solid rgba(0, 255, 255, 0.25);
  border-radius: 14px;
  text-align: center;
}

.g08-confirm-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  font-size: 1.25rem;
}

.g08-confirm-title {
  margin: 0 0 8px;
  font-family: var(--font-pixel, monospace);
  font-size: 1rem;
  color: var(--text-main);
}

.g08-confirm-desc {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.g08-confirm-actions {
  display: flex;
  gap: 10px;
}

.g08-confirm-cancel,
.g08-confirm-ok {
  flex: 1;
  min-height: 44px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: none;
  cursor: pointer;
  border-radius: 8px;
}

.g08-confirm-cancel {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.g08-confirm-ok {
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
  border: 1px solid rgba(239, 68, 68, 0.45);
}

@media (max-width: 900px) {
  .g08-profile-layout {
    flex-direction: column;
    gap: 16px;
  }

  .g08-profile-sidebar {
    width: 100%;
    flex: none;
    display: grid;
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    padding: 14px 14px 0;
  }

  .g08-profile-avatar {
    grid-row: 1 / 3;
    align-self: center;
    width: 52px;
    height: 52px;
    margin-bottom: 0;
    font-size: 1.25rem;
  }

  .g08-profile-name {
    align-self: end;
    margin: 0;
    font-size: 0.9375rem;
  }

  .g08-profile-email {
    align-self: start;
    margin: 2px 0 0;
    font-size: 0.75rem;
  }

  .g08-profile-nav {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .g08-profile-nav-item {
    flex: 1;
    min-width: 0;
    padding: 8px 4px;
    border-left: none;
    border-bottom: 3px solid transparent;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    font-size: 0.625rem;
  }

  .g08-profile-nav-item.active {
    border-left: none;
    border-bottom-color: var(--primary-color);
  }
}

@media (max-width: 768px) {
  .g08-profile-page {
    padding-top: calc(var(--nav-height) + 3rem + 12px);
    padding-bottom: calc(24px + var(--g08-mob-h));
  }

  .g08-profile-card {
    padding: 1rem;
  }

  .g08-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .g08-game-card .game-title {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .g08-profile-page {
    padding: calc(var(--nav-height) + 2.75rem + 12px) 0.75rem calc(16px + var(--g08-mob-h));
  }
}
