/* Profil-Hub: Vikings-Avatar-Positionierung + Hub-Widgets (ohne styles.min.css) */

.profile-nav .user-avatar {
  position: relative;
  display: block;
}

.profile-nav .user-avatar .user-avatar-border,
.profile-nav .user-avatar .user-avatar-content,
.profile-nav .user-avatar .user-avatar-progress,
.profile-nav .user-avatar .user-avatar-progress-border,
.profile-nav .user-avatar .user-avatar-badge {
  position: absolute;
}

.profile-nav .user-avatar .user-avatar-content {
  z-index: 3;
}

.profile-nav .user-avatar .user-avatar-progress {
  z-index: 2;
}

.profile-nav .user-avatar .user-avatar-progress-border {
  z-index: 1;
}

.profile-nav .user-avatar .user-avatar-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 4;
}

.profile-nav .user-avatar .user-avatar-badge-text {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0;
  position: relative;
  z-index: 6;
  pointer-events: none;
}

.profile-nav .user-avatar.medium {
  width: 120px;
  height: 132px;
}

.profile-nav .user-avatar.medium .user-avatar-content {
  top: 21px;
  left: 19px;
}

.profile-nav .user-avatar.medium .user-avatar-progress,
.profile-nav .user-avatar.medium .user-avatar-progress-border {
  top: 11px;
  left: 10px;
}

.profile-nav .user-avatar.medium .user-avatar-badge {
  width: 32px;
  height: 36px;
  top: 82px;
  right: 7px;
}

.profile-nav .user-avatar.big {
  width: 148px;
  height: 164px;
}

.profile-nav .user-avatar.big .user-avatar-content {
  top: 27px;
  left: 24px;
}

.profile-nav .user-avatar.big .user-avatar-progress,
.profile-nav .user-avatar.big .user-avatar-progress-border {
  top: 14px;
  left: 12px;
}

.profile-nav .user-avatar.big .user-avatar-badge {
  width: 40px;
  height: 44px;
  top: 102px;
  right: 8px;
}

/* Sidebar-Profilkarte: Banner + Avatar mit XP-Ring, Meta rechts daneben */
.profile-sidebar-mini-header {
  position: relative;
  background: var(--ng-surface-2, #2f3540);
  border-radius: var(--ng-radius, 12px) var(--ng-radius, 12px) 0 0;
  overflow: hidden;
}

.profile-sidebar-cover {
  position: relative;
  height: 52px;
  overflow: hidden;
  margin: 0;
}

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

.profile-sidebar-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(15, 18, 22, 0.72) 100%
  );
  pointer-events: none;
}

.profile-sidebar-identity {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-top: -22px;
  padding: 0 12px 12px;
  position: relative;
  z-index: 2;
}

.profile-sidebar-xp-ring {
  --xp-pct: 0;
  position: relative;
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: conic-gradient(
    #d4af37 0 calc(var(--xp-pct) * 1%),
    rgba(255, 255, 255, 0.1) calc(var(--xp-pct) * 1%) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.profile-sidebar-xp-ring::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--ng-surface-2, #2f3540);
}

.profile-sidebar-xp-ring .profile-sidebar-avatar-img {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--avatar-bg, var(--ng-surface-elevated, #3a4150));
}

.profile-sidebar-xp-ring .profile-sidebar-avatar-img .nash-avatar-img,
.profile-sidebar-xp-ring .profile-sidebar-avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.profile-sidebar-vikings-avatar .user-avatar-border,
.profile-sidebar-vikings-avatar .user-avatar-progress,
.profile-sidebar-vikings-avatar .user-avatar-progress-border,
.profile-sidebar-vikings-avatar .user-avatar-badge {
  display: none !important;
}

.profile-sidebar-level-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(145deg, #f0d060 0%, #b8920f 100%);
  border: 2px solid var(--ng-surface-elevated, #3a4150);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  color: #1a1408;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.profile-sidebar-meta {
  flex: 1;
  min-width: 0;
  padding-top: 20px;
}

.profile-sidebar-gamertag {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ng-sky-bright, #e8eaed);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-sidebar-level-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.profile-sidebar-level-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d4af37;
}

.profile-sidebar-xp-text {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ng-text-muted, #9aa4bf);
  white-space: nowrap;
}

.profile-sidebar-xp-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.profile-sidebar-xp-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a8840f 0%, #f0d060 100%);
  transition: width 0.35s ease;
}

.profile-nav-row {
  align-items: flex-start;
}

.profile-sidebar-col,
.profile-content-col {
  min-width: 0;
}

.profile-sidebar-card {
  overflow: visible;
  height: 100%;
  border-radius: var(--ng-radius, 12px);
}

.profile-sidebar-nav {
  border-radius: 0;
}

.profile-sidebar-footer {
  border-top: 1px solid var(--ng-border);
  padding: 10px 12px 12px;
}

.profile-sidebar-admin-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ng-sky-bright);
  text-decoration: none;
  border: 1px solid rgba(201, 162, 39, 0.28);
  background: rgba(201, 162, 39, 0.08);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.profile-sidebar-admin-link:hover {
  background: rgba(201, 162, 39, 0.16);
  border-color: rgba(201, 162, 39, 0.45);
  color: var(--ng-sky-bright);
}

.profile-sidebar-admin-link > .bi-shield-lock {
  color: var(--ng-accent-gold, #c9a227);
}

.profile-sidebar-admin-link__ext {
  margin-left: auto;
  font-size: 0.75rem;
  opacity: 0.65;
}

.profile-content-col > .card.tab-content {
  background: var(--ng-surface, #242830) !important;
  border: 1px solid var(--ng-border) !important;
  border-radius: var(--ng-radius, 16px) !important;
  box-shadow: var(--ng-shadow);
  padding: 18px !important;
  overflow: hidden;
}

/* Tab-Kopf: Kicker + Titel (gestapelt, ohne globales Uppercase) */
.ng-profile-tab-header {
  margin-bottom: 0px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ng-border);
}

.ng-profile-tab-header__kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ng-text-muted);
}

.ng-profile-tab-header__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--ng-font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ng-sky-bright);
}

.ng-profile-tab-header__title::before {
  content: "";
  flex-shrink: 0;
  width: 4px;
  height: 0.95em;
  border-radius: 2px;
  background: var(--ng-accent-gold, #e2d307);
}

/* Legacy-Alias */
.ng-profile-tab-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ng-font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ng-sky-bright);
}

.ng-profile-tab-title::before {
  content: "";
  flex-shrink: 0;
  width: 3px;
  height: 1.05em;
  border-radius: 2px;
  background: var(--ng-accent-gold, #e2d307);
}

/* Profil-Karten: klar abgerundet, leicht vom Panel abgesetzt */
.profile-nav .card.ng-card {
  border-radius: var(--ng-radius-sm, 12px) !important;
  overflow: hidden;
  border: 1px solid var(--ng-border) !important;
  background: var(--ng-surface-elevated, #3a4150) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.profile-nav .card.ng-card:hover {
  border-color: rgba(184, 192, 200, 0.28) !important;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
}

.profile-nav .card.ng-card > .card-header:first-child {
  border-top-left-radius: var(--ng-radius-sm, 12px) !important;
  border-top-right-radius: var(--ng-radius-sm, 12px) !important;
  padding: 11px 16px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile-nav .card.ng-card > .card-body:last-child,
.profile-nav .card.ng-card > .card-footer:last-child {
  border-bottom-left-radius: var(--ng-radius-sm, 12px) !important;
  border-bottom-right-radius: var(--ng-radius-sm, 12px) !important;
}

/* Dashboard: einheitliche, kompakte Abstände zwischen allen Reihen */
.ng-dashboard {
  display: flex;
  flex-direction: column;
  gap: 0rem;
}

.ng-dashboard > .row {
  margin: 0;
}

.ng-dashboard > .row.g-3 {
  --bs-gutter-x: 0.75rem;
  --bs-gutter-y: 0.75rem;
}

.profile-nav .ng-dashboard .card.h-100 {
  display: flex;
  flex-direction: column;
}

.profile-nav .ng-dashboard .ng-dashboard-tile-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1rem;
}

.profile-nav .ng-dashboard .ng-dashboard-tile-body--center {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.profile-nav .ng-dashboard .ng-dashboard-tile-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.profile-nav .ng-dashboard .ng-dashboard-tile-form .btn {
  margin-top: auto;
}

.profile-sidebar-gamertag {
  font-size: 0.95rem;
  line-height: 1.3;
}

/* Profil-Hub: Buttons & Grid (Legacy-Klassen) */
.profile-nav .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border: none;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.profile-nav .button.primary {
  background: linear-gradient(135deg, #586570 0%, #45515f 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.profile-nav .button.primary:hover {
  filter: brightness(1.08);
}

.profile-nav .button.secondary {
  background: rgba(88, 101, 112, 0.55);
  color: var(--ng-sky-bright, #e8eaed);
  border: 1px solid var(--ng-border, rgba(184, 192, 200, 0.22));
}

.profile-nav .button.secondary:hover {
  background: rgba(88, 101, 112, 0.75);
}

.profile-nav .grid-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-nav .grid {
  display: grid;
  gap: 16px;
}

.profile-nav .grid-4-4.centered {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
}

.profile-nav .upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--ng-radius, 12px);
  border: 1px dashed var(--ng-border, rgba(184, 192, 200, 0.28));
  background: var(--ng-surface-2, rgba(47, 53, 64, 0.6));
  min-height: 180px;
}

.profile-nav .upload-box-title {
  margin: 12px 0 4px;
  font-weight: 700;
  color: var(--ng-sky-bright);
}

.profile-nav .upload-box-text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ng-text-muted);
}

.profile-nav .user-preview {
  position: relative;
  border-radius: var(--ng-radius, 12px);
  overflow: hidden;
  background: var(--ng-surface-2);
  border: 1px solid var(--ng-border);
}

.profile-nav .user-preview.fixed-height {
  min-height: 180px;
}

.profile-nav .user-preview-cover {
  margin: 0;
  height: 80px;
  overflow: hidden;
}

.profile-nav .user-preview-info {
  position: relative;
  padding-bottom: 16px;
}

.profile-nav .user-short-description-avatar {
  display: flex;
  justify-content: center;
}

/* Avatar-Reiter: Vorschau links, Generator rechts */
.profile-avatar-hub {
  padding: 0;
}

.profile-avatar-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.profile-avatar-preview-card {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 12px;
  min-height: 0;
  background: var(--ng-surface-elevated);
  border: 1px solid var(--ng-border);
  border-radius: var(--ng-radius-sm, 12px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.profile-avatar-preview-label {
  margin: 0;
  padding: 12px 16px 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ng-text-muted);
}

.profile-avatar-preview-card .user-preview-cover,
.profile-avatar-preview-card .profile-avatar-preview-cover {
  margin: 0;
  height: 96px;
}

.profile-avatar-preview-card .user-preview-info {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -52px;
  padding: 0 16px 18px;
  overflow: visible;
}

.profile-avatar-preview-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 148px;
  padding: 52px 16px 16px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 36%, rgba(88, 101, 112, 0.32) 0%, transparent 62%),
    rgba(88, 101, 112, 0.08);
  border: 1px solid rgba(184, 192, 200, 0.08);
}

.profile-avatar-preview-canvas {
  position: relative;
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--avatar-bg, var(--ng-surface-elevated, #3a4150));
  border: 3px solid rgba(184, 192, 200, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.profile-avatar-preview-canvas canvas.profile-avatar-crop-canvas {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
}

.profile-avatar-preview-canvas canvas.profile-avatar-crop-canvas:active {
  cursor: grabbing;
}

.profile-avatar-upload-editor .form-text {
  margin-top: 0.35rem;
}

.profile-avatar-preview-canvas canvas,
.profile-avatar-preview-canvas .nash-hex-live-img,
.profile-avatar-preview-canvas img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.profile-avatar-preview-canvas--cropping img {
  display: none !important;
}

.profile-avatar-preview-canvas .nash-hex-live-img {
  clip-path: none;
  border-radius: 50%;
}

.profile-avatar-generator {
  display: flex;
  flex-direction: column;
  background: var(--ng-surface-elevated);
  border: 1px solid var(--ng-border);
  border-radius: var(--ng-radius-sm, 12px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.profile-avatar-generator__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--ng-border);
  background: var(--ng-surface-2);
}

.profile-avatar-generator__title {
  margin: 0 0 4px;
  font-family: var(--ng-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ng-sky-bright);
}

.profile-avatar-generator__sub {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ng-text-muted);
  max-width: 46ch;
}

.profile-avatar-random-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.profile-avatar-editor-scroll {
  flex: 1 1 auto;
  overflow: visible;
  padding: 14px 18px 18px;
}

.profile-avatar-generator .profile-avatar-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  align-items: start;
}

.profile-avatar-editor-section {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding-top: 8px;
}

.profile-avatar-editor-section:first-child {
  margin-top: 0;
  padding-top: 0;
}

.profile-avatar-editor-section__title {
  margin: 0 0 2px;
  padding-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ng-sky-bright);
  border-bottom: 1px solid rgba(184, 192, 200, 0.12);
}

.profile-avatar-generator .profile-avatar-field {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(88, 101, 112, 0.12);
  border: 1px solid rgba(184, 192, 200, 0.1);
}

.profile-avatar-generator .profile-avatar-field .form-label {
  margin-bottom: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.profile-avatar-generator__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 14px 18px;
  border-top: 1px solid var(--ng-border);
  background: var(--ng-surface-2);
}

.profile-avatar-save-btn {
  min-width: 180px;
  padding: 0.55rem 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #2d7a4a 0%, #198754 100%);
  border: 1px solid #198754;
  box-shadow: 0 4px 14px rgba(25, 135, 84, 0.28);
}

.profile-avatar-save-btn:hover:not(:disabled),
.profile-avatar-save-btn:focus-visible {
  background: linear-gradient(135deg, #35945a 0%, #20a064 100%);
  border-color: #20a064;
  box-shadow: 0 6px 18px rgba(25, 135, 84, 0.35);
}

.profile-avatar-save-btn:disabled {
  opacity: 0.65;
}

.profile-avatar-generator__foot #profile-avatar-status {
  flex: 1 1 auto;
  text-align: right;
}

@media (max-width: 991.98px) {
  .profile-avatar-preview-card {
    position: static;
  }
}

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

  .profile-avatar-preview-card {
    min-height: 0;
  }

  .profile-avatar-preview-stage {
    min-height: 132px;
    padding-top: 44px;
  }

  .profile-avatar-preview-canvas {
    width: 104px;
    height: 104px;
  }

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

  .profile-avatar-generator__head {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-avatar-random-btn {
    align-self: flex-start;
  }

  .profile-avatar-generator__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-avatar-save-btn {
    width: 100%;
  }

  .profile-avatar-generator__foot #profile-avatar-status {
    text-align: left;
  }
}

/* Leere Tab-Zustände */
.ng-profile-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  border-radius: var(--ng-radius, 12px);
  border: 1px dashed var(--ng-border);
  background: rgba(88, 101, 112, 0.12);
}

.ng-profile-empty--compact,
.ng-dashboard .ng-profile-empty {
  padding: 28px 20px;
}

.ng-profile-empty__icon {
  font-size: 2.2rem;
  color: var(--ng-text-muted);
  margin-bottom: 12px;
  opacity: 0.85;
}

.ng-profile-empty__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ng-sky-bright);
}

.ng-profile-empty__text {
  margin: 0 0 16px;
  max-width: 420px;
  font-size: 0.9rem;
  color: var(--ng-text-muted);
  line-height: 1.5;
}

/* Profil-Details: Formular-Layout (ohne Vikings-CSS) */
.profile-nav .form-row.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.profile-nav .form-row.split .form-item {
  min-width: 0;
}

.profile-nav .profile-field-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.profile-nav .profile-field-row .form-input,
.profile-nav .profile-field-row .profile-details-select {
  flex: 1;
  min-width: 0;
}

/* Mobile: horizontale Tab-Leiste */
@media (max-width: 767.98px) {
  .profile-nav {
    padding: 8px 10px 24px !important;
  }

  .profile-nav .profile-sidebar-card {
    margin-bottom: 0;
  }

  .profile-sidebar-cover {
    height: 48px;
  }

  .profile-sidebar-identity {
    margin-top: -18px;
    gap: 10px;
    padding: 0 10px 10px;
  }

  .profile-sidebar-xp-ring {
    width: 54px;
    height: 54px;
  }

  .profile-sidebar-xp-ring .profile-sidebar-avatar-img {
    width: 46px;
    height: 46px;
  }

  .profile-sidebar-meta {
    padding-top: 16px;
  }

  .profile-sidebar-gamertag {
    font-size: 0.9rem;
  }

  .profile-sidebar-gamertag {
    font-size: 0.88rem;
  }

  .profile-nav .profile-sidebar-nav {
    flex-direction: row !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    border-top: 1px solid var(--ng-border);
    padding: 8px 6px 10px;
    gap: 4px;
  }

  .profile-nav .profile-sidebar-nav .nav-item {
    flex: 0 0 auto;
  }

  .profile-nav .profile-sidebar-nav .nav-link {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 0.82rem;
    border-radius: 999px;
    border: 1px solid transparent;
  }

  .profile-nav .profile-sidebar-nav .nav-link i {
    margin-right: 4px;
    font-size: 0.95rem;
  }

  .profile-nav .profile-sidebar-nav .nav-link.active {
    border-color: var(--ng-border);
    background: rgba(56, 93, 110, 0.35);
  }

  .profile-mobile-tabbar {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
    padding: 0 4px;
  }

  .profile-mobile-tabbar__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ng-text-muted);
  }

  .profile-mobile-tabbar__current {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ng-sky-bright);
  }

  .profile-content-col .tab-content {
    padding: 12px !important;
  }

  .profile-nav .profile-field-row {
    flex-wrap: wrap;
  }

  .profile-nav .profile-privacy-toggles {
    width: 100%;
    justify-content: flex-end;
  }

  .profile-nav .ng-profile-tab-header__title,
  .profile-nav .ng-profile-tab-title {
    font-size: 1.25rem;
  }
}

@media (min-width: 768px) {
  .profile-mobile-tabbar {
    display: none !important;
  }
}

/* Push-Benachrichtigungen (Profil-Reiter) */
.ng-profile-tab .profile-notifications-hub {
  margin-top: clamp(0.5rem, 1.5vw, 1.25rem);
  padding: 0;
}

.profile-notifications-card-body {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 1.35rem 1.5rem 1.5rem !important;
}

.profile-notifications-lead {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ng-text-muted);
}

.profile-notifications-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}

.profile-notifications-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(184, 192, 200, 0.12);
  background: rgba(0, 0, 0, 0.14);
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--ng-text-muted);
}

.profile-notifications-features li i {
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-size: 1rem;
  color: var(--ng-accent-gold, #e2d307);
  opacity: 0.9;
}

.profile-notifications-ios-hint {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(115, 180, 255, 0.28);
  background: linear-gradient(135deg, rgba(52, 98, 160, 0.22), rgba(36, 40, 48, 0.5));
}

.profile-notifications-ios-hint__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ec5ff;
}

.profile-notifications-ios-hint__steps {
  margin: 0 0 0.75rem;
  padding-left: 1.15rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ng-text-muted);
}

.profile-notifications-ios-hint__note {
  font-size: 0.78rem;
  color: var(--ng-text-muted);
  opacity: 0.85;
}

.profile-notifications-section-title {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ng-text-muted);
}

.profile-notifications-status-wrap,
.profile-notifications-prefs {
  padding-top: 0.25rem;
  border-top: 1px solid rgba(184, 192, 200, 0.12);
}

.profile-notifications-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.profile-notifications-status-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(184, 192, 200, 0.14);
  background: rgba(0, 0, 0, 0.12);
}

.profile-notifications-status-item__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ng-text-muted);
}

.profile-notifications-status-item__value {
  min-height: 1.5rem;
}

.profile-notifications-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  border: 1px solid transparent;
}

.profile-notifications-badge--ok {
  color: #9be7b8;
  background: rgba(46, 125, 82, 0.22);
  border-color: rgba(46, 125, 82, 0.35);
}

.profile-notifications-badge--bad {
  color: #ffb4b4;
  background: rgba(160, 52, 52, 0.22);
  border-color: rgba(160, 52, 52, 0.35);
}

.profile-notifications-badge--neutral {
  color: #c5cde0;
  background: rgba(120, 130, 155, 0.2);
  border-color: rgba(120, 130, 155, 0.32);
}

.profile-notifications-note {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ng-text-muted);
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(184, 192, 200, 0.1);
}

.profile-notifications-note--warn {
  color: #ffd89a;
  background: rgba(180, 130, 40, 0.14);
  border-color: rgba(180, 130, 40, 0.28);
}

.profile-notifications-note--error {
  color: #ffb4b4;
  background: rgba(160, 52, 52, 0.16);
  border-color: rgba(160, 52, 52, 0.3);
}

.profile-notifications-prefs__hint {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.84rem;
  color: var(--ng-text-muted);
}

.profile-notifications-prefs__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.profile-notifications-pref {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(184, 192, 200, 0.12);
  background: rgba(0, 0, 0, 0.1);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.profile-notifications-pref:has(.form-check-input:checked) {
  border-color: rgba(115, 133, 225, 0.35);
  background: rgba(115, 133, 225, 0.08);
}

.profile-notifications-pref .form-check-label {
  font-size: 0.9rem;
  color: var(--ng-sky-bright, #d7ddf2);
}

.profile-notifications-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 0.25rem;
}

.profile-notifications-feedback {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ng-text-muted);
}

.profile-notifications-feedback.text-danger {
  color: #ffb4b4 !important;
}

.profile-notifications-loading {
  font-size: 0.86rem;
  color: var(--ng-text-muted);
}

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

  .profile-notifications-card-body {
    padding: 1.1rem 1rem 1.15rem !important;
    gap: 1.35rem;
  }
}
