.profile-tabs {
  --tabs-border: rgba(255, 255, 255, 0.8);
  --tabs-bg: rgba(255, 255, 255, 0.45);
  --tabs-rail-bg: rgba(15, 23, 42, 0.05);
  background: var(--tabs-bg);
  border: 1px solid var(--tabs-border);
  border-radius: 32px;
  padding: 1.75rem 2rem 1.75rem;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  position: relative;
}

.profile-tabs--interactive {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.profile-tabs__nav {
  list-style: none;
  margin: 0;
  padding: 0.45rem;
  display: flex;
  gap: 0.5rem;
  background: var(--tabs-rail-bg);
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.04);
  position: relative;
  z-index: 2;
}
.profile-tabs__nav .nav-item {
  flex: 0 0 auto;
}
.profile-tabs__nav .nav-link {
  border: 0;
  border-radius: 999px;
  color: #475569;
  font-weight: 600;
  padding: 0.55rem 1.35rem;
  background: transparent;
  text-align: left;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.profile-tabs__nav .nav-link:hover {
  color: #0f172a;
  background: rgba(15, 118, 185, 0.08);
}
.profile-tabs__nav .nav-link.active {
  background: #fff;
  color: #161f22;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.12);
  font-weight: 800;
}
.profile-tabs__nav .nav-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.19rem rgba(26, 136, 188, 0.35);
}

.profile-tabs.profile-tabs--touch-mode .profile-tabs__nav .nav-link:hover:not(.active) {
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.profile-tabs__content {
  margin-top: 0.5rem;
  padding-top: 0;
}
.profile-tabs__content .tab-pane {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.profile-tabs__content .tab-pane:not(.active) {
  transform: translateY(8px);
}

.profile-tabs__hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  margin-top: 0.3rem;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.profile-tabs__hint-icon {
  display: inline-flex;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: #fff;
}

.profile-tabs__hint--hidden {
  opacity: 0;
  pointer-events: none;
}

.profile-tabs__hint--dismissed {
  display: none !important;
  opacity: 0;
  margin-top: 0;
  height: 0;
}

.profile-tabs__hint.profile-tabs__hint--dismissed + .profile-tabs__content {
  margin-top: 0;
}

@media (min-width: 992px) {
  .profile-tabs {
    padding: 1.5rem 2rem 1.5rem;
  }
  .profile-tabs__nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .profile-tabs__nav .nav-link {
    border-radius: 999px;
  }
  .profile-tabs__content {
    margin-top: 0.75rem;
    padding-top: 0;
  }
}
@media (max-width: 991.98px) {
  .profile-tabs {
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    background: transparent;
  }
  .profile-tabs--interactive {
    gap: 1rem;
    touch-action: pan-y;
  }
  .profile-tabs__nav {
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + 76px);
    z-index: 25;
    margin: 0.75rem 1rem 1rem;
    width: auto;
    border-radius: 20px;
    padding: 0.45rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(25px) saturate(210%);
    -webkit-backdrop-filter: blur(25px) saturate(210%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    display: flex;
    gap: 0.4rem;
    overflow: hidden;
  }
  .profile-tabs__nav .nav-item {
    flex: 1 1 0;
  }
  .profile-tabs__nav .nav-link {
    border-radius: 14px;
    padding: 0.7rem 0.4rem;
    width: 100%;
    border: none;
    color: #1e293b;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-align: center;
    font-size: 0.92rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .profile-tabs__nav .nav-link.active {
    background: #fff;
    color: var(--accent-color, #1a88bc);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1), 0 2px 4px rgba(0, 0, 0, 0.04);
    font-weight: 700;
  }
  .profile-tabs__nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.65);
  }
  .profile-tabs.profile-tabs--touch-mode .profile-tabs__nav .nav-link:hover:not(.active) {
    background: transparent;
    color: inherit;
  }
  .profile-tabs__hint {
    display: inline-flex;
  }
  .profile-tabs__content {
    margin-top: 0.5rem;
    padding-top: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    overflow: hidden;
  }
  .profile-tabs__content .tab-pane {
    transition: opacity 0.2s ease;
    transform: none;
  }
  .profile-tabs__panel--animating {
    animation-duration: 0.26s;
    animation-timing-function: cubic-bezier(0.33, 0.11, 0.2, 1);
    animation-fill-mode: both;
    pointer-events: none;
  }
  .profile-tabs__panel--slide-in-from-right {
    animation-name: profileTabsSlideInFromRight;
  }
  .profile-tabs__panel--slide-in-from-left {
    animation-name: profileTabsSlideInFromLeft;
  }
  @keyframes profileTabsSlideInFromRight {
    0% {
      opacity: 0;
      transform: translateX(36px);
    }
    100% {
      opacity: 1;
      transform: translateX(0);
    }
  }
  @keyframes profileTabsSlideInFromLeft {
    0% {
      opacity: 0;
      transform: translateX(-36px);
    }
    100% {
      opacity: 1;
      transform: translateX(0);
    }
  }
}
@media (max-width: 575.98px) {
  .profile-tabs__nav .nav-link {
    font-size: 0.95rem;
  }
}
