
:root {
  --pf-red: #ff1717;
  --pf-red-dark: #b90000;
  --pf-bg: #060606;
  --pf-panel: #111111;
  --pf-panel-2: #171717;
  --pf-line: rgba(255,255,255,.09);
  --pf-muted: #929292;
  --pf-success: #38d678;
}

.profile-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 92% 0%, rgba(255,23,23,.11), transparent 32rem),
    var(--pf-bg);
  color: #f6f6f6;
}

.profile-shell { padding: 2rem 0 7rem; }

.profile-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.profile-heading h1 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: .95;
  text-transform: uppercase;
}

.profile-heading p {
  max-width: 760px;
  margin: .6rem 0 0;
  color: var(--pf-muted);
}

.profile-panel {
  height: 100%;
  padding: 1.35rem;
  border: 1px solid var(--pf-line);
  border-radius: .9rem;
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
}

.profile-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.profile-topline h2,
.profile-topline h3 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-topline h2 { font-size: 1.55rem; }

.pf-kicker {
  color: var(--pf-red);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.profile-hero {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 1.5rem;
  border: 1px solid rgba(255,23,23,.22);
  border-radius: 1rem;
  background:
    linear-gradient(125deg, rgba(255,23,23,.18), rgba(255,255,255,.02)),
    #111;
}

.profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(125deg, transparent 0 70px, rgba(255,255,255,.025) 72px 74px);
}

.profile-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 210px;
}

.profile-avatar-large {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 150px;
  width: 150px;
  height: 150px;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,.12);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--pf-red), var(--pf-red-dark));
  font-family: "Barlow Condensed", sans-serif;
  font-size: 3.6rem;
  font-weight: 900;
  box-shadow: 0 20px 45px rgba(0,0,0,.35);
}

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

.profile-avatar-edit {
  position: absolute;
  right: .3rem;
  bottom: .3rem;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid #111;
  border-radius: 50%;
  background: var(--pf-red);
  color: white;
}

.profile-identity h2 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: .95;
  text-transform: uppercase;
}

.profile-identity p {
  margin: .35rem 0 .8rem;
  color: var(--pf-muted);
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.profile-badges span {
  padding: .35rem .6rem;
  border: 1px solid var(--pf-line);
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  color: #c7c7c7;
  font-size: .72rem;
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: .8rem;
}

.profile-stat {
  padding: 1rem;
  border-radius: .7rem;
  background: rgba(255,255,255,.03);
}

.profile-stat strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.8rem;
  line-height: 1;
}

.profile-stat span {
  color: var(--pf-muted);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.profile-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 1rem;
}

.profile-nav button {
  padding: .55rem .85rem;
  border: 1px solid var(--pf-line);
  border-radius: 999px;
  background: #0f0f0f;
  color: #aaa;
  font-size: .78rem;
  font-weight: 700;
}

.profile-nav button.active,
.profile-nav button:hover {
  color: white;
  border-color: var(--pf-red);
  background: rgba(255,23,23,.1);
}

.profile-tab-panel { display: none; }
.profile-tab-panel.active { display: block; }

.form-label {
  color: #d5d5d5;
  font-size: .8rem;
  font-weight: 700;
}

.form-control,
.form-select {
  min-height: 46px;
  color: white;
  background: #0c0c0c;
  border-color: var(--pf-line);
  border-radius: .55rem;
}

textarea.form-control { min-height: 110px; }

.form-control:focus,
.form-select:focus {
  color: white;
  background: #0c0c0c;
  border-color: var(--pf-red);
  box-shadow: 0 0 0 .2rem rgba(255,23,23,.12);
}

.form-control::placeholder { color: #666; }

.form-select {
  --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.summary-list {
  display: grid;
  gap: .7rem;
}

.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid rgba(255,255,255,.055);
}

.summary-list div:last-child { border-bottom: 0; }
.summary-list span { color: var(--pf-muted); }

.membership-card {
  padding: 1.2rem;
  border: 1px solid rgba(255,23,23,.25);
  border-radius: .85rem;
  background:
    linear-gradient(125deg, rgba(255,23,23,.12), rgba(255,255,255,.02)),
    #111;
}

.membership-card h3 {
  margin: .3rem 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
}

.membership-feature-list {
  display: grid;
  gap: .65rem;
  margin: 1rem 0;
}

.membership-feature-list div {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: #ccc;
  font-size: .82rem;
}

.membership-feature-list i { color: var(--pf-red); }

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid rgba(255,255,255,.055);
}

.setting-row:last-child { border-bottom: 0; }
.setting-row strong { display: block; }
.setting-row small { color: var(--pf-muted); }

.form-switch .form-check-input {
  width: 2.8rem;
  height: 1.45rem;
  background-color: #292929;
  border-color: #444;
}

.form-switch .form-check-input:checked {
  background-color: var(--pf-red);
  border-color: var(--pf-red);
}

.danger-zone {
  border-color: rgba(255,23,23,.24);
}

.avatar-upload-preview {
  display: grid;
  place-items: center;
  width: 130px;
  height: 130px;
  margin: 0 auto 1rem;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--pf-red), var(--pf-red-dark));
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
}

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

@media (max-width: 991.98px) {
  .profile-stat-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 767.98px) {
  .profile-shell { padding-top: 1.25rem; }
  .profile-heading { align-items: flex-start; flex-direction: column; }
  .profile-hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .profile-badges { justify-content: center; }
}

@media (max-width: 575.98px) {
  .profile-stat-grid { grid-template-columns: 1fr 1fr; }
}


.profile-cover {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 1rem;
  background:
    linear-gradient(125deg, rgba(255,23,23,.22), rgba(0,0,0,.75)),
    #151515;
}

.profile-cover.has-image {
  background-size: cover;
  background-position: center;
}

.profile-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.78));
}

.profile-cover .profile-hero-content {
  position: relative;
  z-index: 2;
  min-height: 260px;
  align-items: flex-end;
}

.cover-photo-button {
  position: absolute;
  z-index: 3;
  top: 1rem;
  right: 1rem;
}

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

.photo-input-card {
  padding: 1rem;
  border: 1px solid var(--pf-line);
  border-radius: .75rem;
  background: rgba(255,255,255,.025);
}

.photo-input-card strong {
  display: block;
  margin-bottom: .25rem;
}

.photo-input-card p {
  color: var(--pf-muted);
  font-size: .76rem;
}

@media (max-width: 767.98px) {
  .profile-photo-input-grid { grid-template-columns: 1fr; }
}
