/* Panel — Profile page layout */

.profile-page {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 1200px;
}

.profile-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem 1.5rem;
  align-items: center;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background:
    radial-gradient(480px 140px at 0% 0%, rgba(255, 92, 26, 0.12), transparent 65%),
    #0d0d0d;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #0a0a0a;
  background: #ff5c1a;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  flex-shrink: 0;
}

.profile-hero-main h2 {
  margin: 0 0 0.25rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}

.profile-hero-email {
  color: #9a9a9a;
  font-size: 1rem;
  margin-bottom: 0.65rem;
  word-break: break-all;
}

.profile-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.profile-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
  min-width: 140px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-stat {
  padding: 1rem 1.1rem;
  background: #0d0d0d;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 5.5rem;
  justify-content: center;
}

.profile-stat-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: #ff5c1a;
}

.profile-stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.profile-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.profile-field.full {
  grid-column: 1 / -1;
}

.profile-field-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666;
}

.profile-field-value {
  font-size: 1rem;
  font-weight: 600;
  color: #f2f2f2;
  word-break: break-word;
}

.profile-field-value.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  font-weight: 500;
}

.profile-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.profile-feature-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
  border: 1px solid rgba(255, 92, 26, 0.35);
  background: rgba(255, 92, 26, 0.1);
  color: #ff8c42;
}

.profile-feature-pill.off {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  color: #555;
}

.profile-integration {
  border-left: 3px solid rgba(255, 255, 255, 0.12);
}

.profile-integration.discord {
  border-left-color: #5865f2;
}

.profile-integration.steam {
  border-left-color: #66c0f4;
}

.profile-integration-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.profile-integration-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-integration-linked {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.profile-integration-id {
  flex: 1;
  min-width: 180px;
}

.profile-connect-box {
  text-align: center;
  padding: 1.25rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
}

.profile-connect-box p {
  margin: 0 0 1rem;
  color: #9a9a9a;
  font-size: 0.95rem;
  line-height: 1.5;
}

.profile-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.profile-password-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.profile-password-grid .form-group.full {
  grid-column: 1 / -1;
}

.profile-password-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.25rem;
}

@media (max-width: 960px) {
  .profile-hero {
    grid-template-columns: auto 1fr;
  }

  .profile-hero-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }

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

  .profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .profile-fields,
  .profile-password-grid,
  .profile-quick-actions {
    grid-template-columns: 1fr;
  }

  .profile-stats {
    grid-template-columns: 1fr;
  }
}

/* Profile: content-sized stacks (override dashboard grid-2 card stretch) */
.profile-page .profile-grid {
  align-items: start;
  gap: 1rem;
}

.profile-page .profile-grid > .profile-stack {
  height: auto !important;
  min-height: 0 !important;
  align-self: start !important;
  gap: 0.75rem !important;
}

.profile-page .profile-stack > .card {
  display: block !important;
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
}

.profile-page .profile-stack > .card > .card-header {
  flex-shrink: 0;
}

.profile-page .profile-stack > .card > .card-body {
  flex: none !important;
  display: block !important;
  min-height: 0 !important;
}

.profile-page .profile-plan-block {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

.profile-page .profile-plan-block-title {
  margin-bottom: 0.5rem;
}

.profile-page .profile-plan-block p {
  margin: 0;
}

.profile-page .profile-integration-body {
  gap: 0.65rem;
}

.profile-page .profile-connect-box {
  padding: 1rem;
}
