:root {
  --radius: 18px;
  /* --card-border: rgba(255,255,255,0.14); */
  --card-border: rgba(255, 255, 255, 0.14);
  --card-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  --card-shadow-hover: 0 16px 48px rgba(0, 0, 0, .30);
  --twitch-color: #9146FF;
  --discord-color: #5865F2;
  --youtube-color: #FF0000;
  --steam-color: #0B141A;
}

/* Identity */
.avatar-xl {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .25);
}

.avatar-stack {
  position: relative;
}

.pulse-dot {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, .4);
}

/* ONLINE - green glow */
.pulse-dot.online {
  background: #2bd67b;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(43, 214, 123, .55);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(43, 214, 123, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(43, 214, 123, 0);
  }
}

/* OFFLINE - red glow */
.pulse-dot.offline {
  background: #ff3b3b;
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 59, 59, .55);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(255, 59, 59, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 59, 59, 0);
  }
}

/* AWAY - amber glow */
.pulse-dot.away {
  background: #ffae42;
  animation: pulse-amber 2s infinite;
}

@keyframes pulse-amber {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 174, 66, .55);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(255, 174, 66, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 174, 66, 0);
  }
}

.twitch-icon {
  color: var(--twitch-color);
}

.youtube-icon {
  color: var(--youtube-color);
}

.btn-outline-secondary.twitch {
  color: var(--twitch-color);
  border-color: var(--twitch-color);
}

.btn-outline-secondary.twitch:hover {
  background-color: var(--twitch-color);
  color: #fff;
}

.btn-outline-secondary.discord {
  color: var(--discord-color);
  border-color: var(--discord-color);
}

.btn-outline-secondary.discord:hover {
  background-color: var(--discord-color);
  color: #fff;
}

.btn-outline-secondary.youtube {
  color: var(--youtube-color);
  border-color: var(--youtube-color);
}

.btn-outline-secondary.youtube:hover {
  background-color: var(--youtube-color);
  color: #fff;
}

.meta {
  opacity: .75;
  font-size: .925rem;
}

.quick-chips .chip {
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: .3rem .6rem;
  font-size: .85rem;
  backdrop-filter: saturate(120%) blur(2px);
}

/* Floating nav keeps the underline slim */
/* .floating-nav .nav-link{ padding:.4rem .75rem; opacity:.8; }
.floating-nav .nav-link.active{ opacity:1; } */

/* NEW PROFILE NAV */
/* Profile tab buttons */
.profile-event-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.profile-edit-tab-link {
  display: none !important;
}

.profile-event-tabs .nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.78) !important;
  text-decoration: none !important;
  font-weight: 900;
  white-space: nowrap;
  appearance: none;
  width: 100%;
}

.profile-event-tabs .nav-link:hover,
.profile-event-tabs .nav-link.active {
  border-color: rgba(255, 213, 0, 0.38);
  background: rgba(184, 156, 1, 0.06);
  color: #FFDF00 !important;
}

@media (max-width: 768px) {
  .profile-event-tabs {
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 4px 8px;
    margin: 12px 0 16px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .profile-event-tabs .nav-link {
    /* flex: 0 0 auto; */
    min-width: 96px;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.82rem;
    scroll-snap-align: start;
  }

  .profile-event-tabs .nav-link i {
    font-size: 0.85rem;
    margin-right: 4px !important;
  }

  .profile-event-tabs::-webkit-scrollbar {
    display: none;
  }

  .profile-event-tabs {
    scrollbar-width: none;
  }

  .profile-edit-tab-link {
    display: flex !important;
  }

}





/* Core floating card */
.float-card {
  display: block;
  width: 100%;
  float: none;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  background-color: #111216;
}

.float-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: #FFDF00;
}

/* Media header with subtle rounded corners */
.media-top {
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  overflow: hidden;
  display: block;
}

.object-fit-cover {
  object-fit: cover;
}

/* Progress - slim, elegant */
.progress.slim {
  height: 8px;
  background: rgba(255, 255, 255, .12);
  border-radius: 999px;
  overflow: hidden;
}

.progress.slim .progress-bar {
  background: currentColor;
  color: #FFDF00;
}

/* Stats rows */
.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .4rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .12);
}

.stat-row:last-child {
  border-bottom: none;
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  padding: .25rem .6rem;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  text-decoration: none;
  opacity: .9;
  color: #4e4611;
}

.tag:hover {
  opacity: 1;
  color: #FFDF00;
}

/* Timeline dots (minimal) */
.timeline {
  list-style: none;
  padding-left: 0;
  position: relative;
}

.timeline li {
  padding-left: 1rem;
  margin: .4rem 0;
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  color: #7c5100;
  box-shadow: 0 0 10px rgba(255, 243, 69, 0.7);
}

/* Fine-tuned shadows on small avatars */
.shadow-sm {
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25) !important;
}

/* Spacing tweaks for compact elegance */
section.float-card+section.float-card {
  margin-top: 1.25rem;
}

/* Pinned badge inline with title */
.pinned-badge {
  background: #ffdf00;
  color: #000;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pinned-badge i {
  font-size: 0.9rem;
}

.post-card .post-meta-row {
  margin-top: 2%;
  padding-top: 2%;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.post-card h5.post-title {
  margin-top: 0;
  margin-bottom: 0;
}

/* ===== Profile Header ===== */
.profile-banner {
  position: relative;
  width: min(100%, 1290px);
  aspect-ratio: 1290 / 255;
  /* fixed target ratio */
  overflow: hidden;
  border-bottom: 1px solid var(--card-border);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  margin: 0 auto;
}

.profile-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-scrim {
  position: absolute;
  inset: 0;
}

.profile-hero .float-card {
  position: relative;
  width: auto;
  margin: 0 auto;
  padding-top: 2.5rem;
}

.profile-hero .float-card,
.profile-hero .float-card:hover {
  transform: none !important;
}

.profile-avatar-wrapper {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
}

.avatar-xxl {
  width: clamp(6.5rem, 14vw, 10rem);
  height: clamp(6.5rem, 14vw, 10rem);
  object-fit: cover;
  border: 0.25rem solid rgba(255, 255, 255, .18);
  outline: 0.125rem solid rgba(0, 0, 0, .45);
}

.float-card.profile-header-card {
  padding: clamp(1rem, 2vw, 2rem) clamp(1rem, 2vw, 2rem) 0;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-color: var(--card-border) !important;
  transition: none !important;
}

.float-card.profile-header-card:hover {
  transform: none !important;
  box-shadow: var(--card-shadow) !important;
  border-color: var(--card-border) !important;
  cursor: default !important;
}

.float-card.profile-header-card::before,
.float-card.profile-header-card::after,
.float-card.profile-header-card:hover::before,
.float-card.profile-header-card:hover::after {
  content: none !important;
}

/* buttons on right of avatar */
.hero-actions--right {
  display: flex;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 0.5rem;
}

.hero-actions--right>* {
  flex: 0 0 auto !important;
}

.hero-actions--right form {
  display: inline-flex;
  margin: 0;
}

.hero-actions--right .btn {
  white-space: nowrap;
}

.hero-actions--right [id^="follow-btn-"] {
  display: inline-flex;
}

.profile-header-col-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
}

.streak-badge {
  display: inline-block;
  padding: .35rem .6rem;
  border: 1px solid var(--bs-warning);
  color: var(--bs-warning);
  background: transparent;
  border-radius: .4rem;
  font-weight: 600;
  font-size: .8rem;
  line-height: 1;
}

.streak-badge.tier-3 {
  box-shadow: 0 0 6px rgba(247, 201, 72, .25);
}

.streak-badge.tier-7 {
  box-shadow: 0 0 8px rgba(247, 201, 72, .35);
}

.streak-badge.tier-14 {
  box-shadow: 0 0 10px rgba(247, 201, 72, .45);
}

.streak-badge.tier-30 {
  box-shadow: 0 0 12px rgba(247, 201, 72, .55), inset 0 0 0 1px rgba(247, 201, 72, .5);
}

/* MOBILE: Edit Profile link inside About card */
.edit-profile-mobile {
  font-size: 0.85rem;
  font-weight: 600;
  color: #FFDF00;
  text-decoration: none;
}

.edit-profile-mobile:hover {
  color: #b89c01;
  text-decoration: underline;
}

/* =========================================================
   Setup & Gear card
   ========================================================= */

.setup-list {
  padding: .25rem 1rem 1rem;
  display: grid;
  gap: .45rem;
}

.setup-section-title {
  font-size: .75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #a4a4a4;
  margin-top: .6rem;
  margin-bottom: .2rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  opacity: .85;
  text-align: center !important;
}

.setup-list>.setup-section-title:first-of-type {
  margin-top: .15rem;
}

.setup-row {
  display: grid;
  grid-template-columns: 22px minmax(70px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: .6rem;
  padding: .38rem .6rem;
  background-color: #16171b;
  border: 1px dashed #2a2b31;
  border-radius: 16px;
  transition: .2s ease;
  font-size: .92rem;
  margin-top: 10px
}

.setup-row:hover {
  border-color: #FFDF00;
  box-shadow: 0 0 8px rgba(255, 223, 0, .35);
  transform: translateY(-1px);
  background: rgba(255, 223, 0, .06);
}

.setup-row>span:nth-last-child(2) {
  color: #aab;
  font-weight: 600;
}

.setup-row>span:last-child {
  color: #aab;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.setup-ico {
  font-size: 1.05rem;
  line-height: 1;
  color: #FFDF00;
  filter: drop-shadow(0 0 4px rgba(255, 223, 0, .65));
}

.setup-svg {
  display: flex;
  align-items: center;
  justify-content: center;
}

.setup-svg svg {
  color: #FFDF00;
  filter: drop-shadow(0 0 4px rgba(255, 223, 0, .6));
  transition: .2s ease;
}

.setup-row:hover .setup-svg svg {
  filter: drop-shadow(0 0 8px rgba(255, 223, 0, .9));
}

.setup-card .p-md-4 {
  padding: .5rem 1rem .25rem 1rem !important;
}

.setup-card .p-md-4 h5 {
  margin: 0;
}

@media (max-width: 768px) {
  .setup-card .p-md-4 {
    padding: .5rem .875rem .25rem .875rem !important;
  }

  .setup-list {
    padding: .2rem .875rem .75rem;
  }

  .setup-row {
    grid-template-columns: 20px minmax(64px, 0.95fr) minmax(0, 1.05fr);
    gap: .5rem;
    font-size: .9rem;
    padding: .35rem .55rem;
  }

  .setup-section-title {
    font-size: .72rem;
  }
}

@media (max-width: 380px) {
  .setup-row {
    grid-template-columns: 18px minmax(58px, 0.95fr) minmax(0, 1.05fr);
    font-size: .88rem;
  }
}

/* Existing mobile header tweaks */
@media (max-width: 768px) {
  .profile-hero .float-card {
    padding-top: clamp(4.5rem, 8vw, 5.5rem);
  }

  .profile-header-col-right {
    align-items: center;
    justify-content: flex-start;
    margin-top: 0.75rem;
  }

  .hero-actions--right {
    justify-content: center;
  }
}

/* =========================================================
   Setup & Gear: 2 columns on desktop, 1 column on mobile
   ========================================================= */
@media (max-width: 768px) {
  .setup-list>.row>.col-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .setup-list>.row>.col-6+.col-6 {
    margin-top: 1rem;
  }

  .setup-section-title {
    margin-top: 1.25rem;
  }
}