:root {
  color-scheme: dark;
  --bg: #09090d;
  --bg-elevated: #101016;
  --bg-soft: #14141c;
  --panel: rgba(21, 21, 29, .72);
  --panel-solid: #15151d;
  --text: #f5f4fa;
  --text-soft: #aaa7b5;
  --text-faint: #74717f;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.15);
  --accent: #8b5cf6;
  --accent-strong: #7c3aed;
  --accent-soft: rgba(139,92,246,.13);
  --green: #29e67d;
  --shadow: 0 24px 80px rgba(0,0,0,.34);
  --header-h: 78px;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --content: 1240px;
  --ease: cubic-bezier(.22,.8,.28,1);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f7fa;
  --bg-elevated: #ffffff;
  --bg-soft: #f0eff5;
  --panel: rgba(255,255,255,.78);
  --panel-solid: #ffffff;
  --text: #17151d;
  --text-soft: #66616f;
  --text-faint: #8c8794;
  --line: rgba(20,16,28,.09);
  --line-strong: rgba(20,16,28,.15);
  --accent-soft: rgba(124,58,237,.09);
  --shadow: 0 24px 80px rgba(34,26,48,.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: radial-gradient(
    circle at 15% 10%,
    rgba(124,58,237,.08),
    transparent 30rem
  ), var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.app-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.content-shell,
.header-shell,
.footer-shell {
  width: min(calc(100% - 48px), var(--content));
  margin-inline: auto;
}

/* =====================================================
   HEADER
===================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
}

.header-shell {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 38px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--line));
  border-radius: 11px;
  background:
    linear-gradient(145deg, rgba(139,92,246,.18), transparent),
    var(--bg-elevated);
  color: var(--text);
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: -.04em;
  box-shadow: inset 0 0 22px rgba(124,58,237,.06);
}

/* =====================================================
   HEADER BRAND LOGO
===================================================== */

.brand-mark-logo {
  overflow: hidden;
  padding: 3px;
}

.brand-mark-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: .92rem;
  letter-spacing: .12em;
  font-weight: 720;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--text-faint);
  font-size: .63rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  white-space: nowrap;
}

.desktop-nav > a {
  position: relative;
  padding: 9px 11px;
  color: var(--text-soft);
  font-size: .84rem;
  border-radius: 10px;
  transition: background .2s ease, color .2s ease;
}

.desktop-nav > a:hover,
.desktop-nav > a.is-active {
  color: var(--text);
  background: var(--accent-soft);
}

.desktop-nav > a.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1px;
  background: var(--accent);
}

/* =====================================================
   SERVICE DROPDOWN - DESKTOP
===================================================== */

.nav-dropdown {
  position: relative;
  flex: 0 0 auto;
}

.nav-dropdown > summary {
  list-style: none;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown-trigger {
  position: relative;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-soft);
  font-size: .84rem;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: background .2s ease, color .2s ease;
}

.nav-dropdown-trigger:hover,
.nav-dropdown[open] > .nav-dropdown-trigger,
.nav-dropdown.is-active > .nav-dropdown-trigger {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-dropdown.is-active > .nav-dropdown-trigger::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1px;
  background: var(--accent);
}

.nav-dropdown-trigger > i {
  color: var(--text-faint);
  font-size: .62rem;
  transition: transform .2s var(--ease), color .2s ease;
}

.nav-dropdown[open] > .nav-dropdown-trigger > i {
  color: var(--accent);
  transform: rotate(180deg);
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 90;
  width: 330px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel-solid) 97%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 24px 68px rgba(0,0,0,.38);
  transform-origin: top right;
  animation: service-dropdown-in .18s var(--ease);
}

.nav-dropdown-panel::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 24px;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  background: var(--panel-solid);
  transform: rotate(45deg);
}

@keyframes service-dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.service-dropdown-panel {
  display: grid;
  gap: 3px;
}

.service-dropdown-link {
  position: relative;
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 11px;
  color: var(--text-soft);
  transition: background .18s ease, color .18s ease;
}

.service-dropdown-link:hover,
.service-dropdown-link.is-active {
  background: var(--accent-soft);
  color: var(--text);
}

.service-dropdown-link.is-active {
  box-shadow: inset 2px 0 var(--accent);
}

.service-dropdown-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--accent);
  font-size: .82rem;
}

.service-dropdown-icon.is-clinic {
  border-color: rgba(41,230,125,.17);
  background: rgba(41,230,125,.07);
  color: var(--green);
}

.service-dropdown-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.service-dropdown-copy strong {
  overflow: hidden;
  color: inherit;
  font-size: .76rem;
  font-weight: 710;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-dropdown-copy small {
  overflow: hidden;
  color: var(--text-faint);
  font-size: .61rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-dropdown-arrow {
  justify-self: end;
  color: var(--text-faint);
  font-size: .62rem;
  transition: color .18s ease, transform .18s ease;
}

.service-dropdown-link:hover .service-dropdown-arrow,
.service-dropdown-link.is-active .service-dropdown-arrow {
  color: var(--accent);
  transform: translateX(2px);
}

.service-dropdown-separator {
  height: 1px;
  margin: 5px;
  background: var(--line);
}

@media (max-width: 1180px) and (min-width: 981px) {
  .header-shell {
    gap: 18px;
  }

  .brand-copy small {
    display: none;
  }

  .desktop-nav {
    gap: 1px;
  }

  .desktop-nav > a,
  .nav-dropdown-trigger {
    padding-inline: 8px;
    font-size: .78rem;
  }
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =====================================================
   BUTTONS
===================================================== */

.button,
.icon-button,
.menu-button,
.user-chip,
.oauth-button {
  border: 0;
  cursor: pointer;
  transition:
    transform .2s var(--ease),
    border-color .2s ease,
    background .2s ease,
    color .2s ease;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border-radius: 11px;
  font-size: .86rem;
  font-weight: 680;
  letter-spacing: .01em;
}

.button:hover,
.oauth-button:hover,
.icon-button:hover,
.user-chip:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 10px 28px rgba(124,58,237,.20);
}

.button-ghost,
.button-secondary {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
}

.button-full {
  width: 100%;
}

.button:disabled {
  opacity: .58;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.icon-button,
.menu-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg-elevated);
}

.theme-icon {
  font-size: 1rem;
}

html[data-theme="dark"] .theme-icon-light {
  display: none;
}

html[data-theme="light"] .theme-icon-dark {
  display: none;
}

.menu-button {
  display: none;
  padding: 11px;
  gap: 4px;
}

.menu-button span:not(.sr-only) {
  width: 100%;
  height: 1px;
  background: var(--text);
}

/* =====================================================
   MOBILE MENU
===================================================== */

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
}

.mobile-menu nav {
  display: grid;
  gap: 4px;
  padding: 16px 24px 8px;
}

.mobile-menu nav > a {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: .78rem;
  transition: background .18s ease, color .18s ease;
}

.mobile-menu nav > a > i {
  width: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: .76rem;
}

.mobile-menu nav > a:hover,
.mobile-menu nav > a.is-active {
  background: var(--accent-soft);
  color: var(--text);
}

.mobile-menu nav > a.is-active > i {
  color: var(--accent);
}

/* =====================================================
   SERVICE DROPDOWN - MOBILE
===================================================== */

.mobile-service-dropdown {
  margin-top: 2px;
  border: 1px solid transparent;
  border-radius: 11px;
}

.mobile-service-dropdown[open],
.mobile-service-dropdown.is-active {
  border-color: var(--line);
  background: color-mix(in srgb, var(--bg-soft) 72%, transparent);
}

.mobile-service-trigger {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  list-style: none;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: .78rem;
  cursor: pointer;
  user-select: none;
}

.mobile-service-trigger::-webkit-details-marker {
  display: none;
}

.mobile-service-trigger > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mobile-service-trigger > span > i {
  width: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: .76rem;
}

.mobile-service-trigger > i {
  color: var(--text-faint);
  font-size: .62rem;
  transition: transform .2s var(--ease), color .2s ease;
}

.mobile-service-dropdown[open] > .mobile-service-trigger,
.mobile-service-dropdown.is-active > .mobile-service-trigger {
  color: var(--text);
}

.mobile-service-dropdown[open] > .mobile-service-trigger > i {
  color: var(--accent);
  transform: rotate(180deg);
}

.mobile-service-dropdown.is-active > .mobile-service-trigger > span > i {
  color: var(--accent);
}

.mobile-service-links {
  display: grid;
  gap: 3px;
  padding: 2px 7px 8px 35px;
}

.mobile-service-links > a {
  min-height: 48px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 9px;
  color: var(--text-soft);
  transition: background .18s ease, color .18s ease;
}

.mobile-service-links > a:hover,
.mobile-service-links > a.is-active {
  background: var(--accent-soft);
  color: var(--text);
}

.mobile-service-links > a > i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--accent);
  font-size: .68rem;
}

.mobile-service-links > a:first-child > i {
  background: rgba(41,230,125,.08);
  color: var(--green);
}

.mobile-service-links > a > span {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.mobile-service-links strong {
  overflow: hidden;
  color: inherit;
  font-size: .72rem;
  font-weight: 690;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-service-links small {
  overflow: hidden;
  color: var(--text-faint);
  font-size: .58rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 8px 24px 20px;
}

/* =====================================================
   FOOTER
===================================================== */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg-elevated) 96%, var(--accent) 4%),
    var(--bg-elevated)
  );
}

.footer-shell {
  min-height: 156px;
  display: grid;
  grid-template-areas: "brand nav socials";
  grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 40px;
  padding-block: 30px;
}

.footer-brand {
  grid-area: brand;
  min-width: 0;
  justify-self: start;
}

.footer-brand strong {
  display: block;
  color: var(--text);
  font-size: .86rem;
  font-weight: 760;
  letter-spacing: .15em;
}

.footer-brand p,
.footer-brand-tagline {
  margin: 5px 0 0;
  color: var(--text-faint);
  font-size: .76rem;
}

.copyright {
  margin: 8px 0 0;
  color: var(--text-faint);
  font-size: .64rem;
  line-height: 1.45;
  white-space: normal;
}

/* =====================================================
   FOOTER NAVIGATION
===================================================== */

.footer-nav {
  grid-area: nav;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--text-soft);
  font-size: .78rem;
}

.footer-nav a,
.footer-link-button {
  position: relative;
  border: 0;
  padding: 4px 0;
  background: none;
  color: var(--text-soft);
  font: inherit;
  cursor: pointer;
  transition: color .2s ease;
}

.footer-nav a:hover,
.footer-link-button:hover {
  color: var(--text);
}

.footer-nav a::after,
.footer-link-button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s var(--ease);
}

.footer-nav a:hover::after,
.footer-link-button:hover::after {
  transform: scaleX(1);
}

/* =====================================================
   FOOTER SOCIALS
===================================================== */

.footer-socials {
  grid-area: socials;
  justify-self: end;
  display: grid;
  justify-items: end;
  gap: 9px;
}

.footer-socials-title {
  color: var(--text-faint);
  font-size: .59rem;
  font-weight: 760;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.footer-social-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg-soft);
  color: var(--text-soft);
  font-size: 1rem;
  transition:
    transform .2s var(--ease),
    border-color .2s ease,
    background .2s ease,
    color .2s ease,
    box-shadow .2s ease;
}

.footer-social-link:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--accent-soft);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.footer-social-link[title="Twitch"]:hover {
  color: #a970ff;
}

.footer-social-link[title="Instagram"]:hover {
  color: #e1306c;
}

.footer-social-link[title="Snapchat"]:hover {
  color: #ffd600;
}

.footer-social-link[title="YouTube"]:hover {
  color: #ff3b30;
}

/* =====================================================
   GENERIC PAGE ELEMENTS
===================================================== */

.section-kicker {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 760;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.page-main {
  padding: 80px 0;
}

.page-title {
  margin: 10px 0 12px;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: .96;
  letter-spacing: -.06em;
  font-weight: 650;
}

.page-intro {
  max-width: 650px;
  color: var(--text-soft);
}

.empty-panel {
  margin-top: 34px;
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
}

.empty-panel strong {
  font-size: 1.1rem;
}

.empty-panel span {
  display: block;
  color: var(--text-faint);
}

/* =====================================================
   MODAL
===================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5,5,9,.68);
  backdrop-filter: blur(9px);
  opacity: 0;
  transition: opacity .2s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 100;
  width: min(92vw, 560px);
  max-height: calc(100svh - 36px);
  overflow: auto;
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: color-mix(in srgb, var(--panel-solid) 94%, transparent);
  box-shadow: var(--shadow);
  transform: translate(-50%, calc(-50% + 12px)) scale(.985);
  opacity: 0;
  transition: transform .25s var(--ease), opacity .2s ease;
}

.modal.is-open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text-soft);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.modal-kicker {
  color: var(--accent);
  font-size: .69rem;
  font-weight: 780;
  letter-spacing: .16em;
}

.modal h2 {
  margin: 7px 0 5px;
  font-size: 2rem;
  letter-spacing: -.045em;
  font-weight: 670;
}

.modal-intro {
  margin: 0 0 24px;
  color: var(--text-soft);
  font-size: .92rem;
}

.modal-small {
  width: min(92vw, 470px);
}

/* =====================================================
   AUTH FORMS
===================================================== */

.auth-form {
  display: grid;
  gap: 15px;
}

.auth-form label:not(.check) {
  display: grid;
  gap: 7px;
}

.auth-form label > span {
  color: var(--text-soft);
  font-size: .77rem;
  font-weight: 650;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  outline: none;
  border-radius: 11px;
  background: var(--bg);
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-form input:focus {
  border-color: color-mix(in srgb, var(--accent) 65%, var(--line));
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  font-size: .78rem;
}

.auth-row a {
  color: var(--accent);
}

.check {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text-soft);
  font-size: .78rem;
  cursor: pointer;
}

.check input {
  margin-top: 3px;
  accent-color: var(--accent);
}

.text-button {
  border: 0;
  padding: 0;
  background: none;
  color: var(--accent);
  cursor: pointer;
  font-size: .78rem;
}

.captcha-note {
  color: var(--text-faint);
  font-size: .67rem;
  line-height: 1.5;
}

/* =====================================================
   AUTH DIVIDER
===================================================== */

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--text-faint);
  font-size: .72rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* =====================================================
   SOCIAL OAUTH
===================================================== */

.oauth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.oauth-button {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: .84rem;
  font-weight: 700;
  text-align: center;
}

button.oauth-button {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
}

.oauth-button.twitch {
  background: rgba(145,70,255,.11);
  color: #b998ff;
  border-color: rgba(145,70,255,.16);
}

.oauth-button.twitch:hover {
  background: rgba(145,70,255,.17);
  border-color: rgba(145,70,255,.30);
  color: #cbb6ff;
}

.oauth-button.discord {
  background: rgba(88,101,242,.11);
  color: #aab2ff;
  border-color: rgba(88,101,242,.16);
}

.oauth-button.discord:hover {
  background: rgba(88,101,242,.17);
  border-color: rgba(88,101,242,.30);
  color: #c1c6ff;
}

.oauth-button:disabled {
  opacity: .55;
  cursor: wait;
  transform: none;
}

.social-register-note {
  max-width: 440px;
  margin: 12px auto 0;
  color: var(--text-faint);
  font-size: .68rem;
  line-height: 1.55;
  text-align: center;
}

/* =====================================================
   MODAL SWITCH
===================================================== */

.modal-switch {
  margin: 20px 0 0;
  color: var(--text-soft);
  text-align: center;
  font-size: .8rem;
}

.modal-switch button {
  border: 0;
  padding: 0;
  background: none;
  color: var(--accent);
  cursor: pointer;
}

/* =====================================================
   CAPTCHA PLACEHOLDER
===================================================== */

.captcha-placeholder {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  background: var(--bg-soft);
}

.captcha-placeholder span {
  font-size: .82rem;
  font-weight: 700;
}

.captcha-placeholder small {
  max-width: 230px;
  color: var(--text-faint);
  font-size: .68rem;
  text-align: right;
}

/* =====================================================
   FORM MESSAGES
===================================================== */

.form-message {
  overflow-wrap: anywhere;
  padding: 10px 12px;
  border: 1px solid rgba(255,90,90,.22);
  border-radius: 10px;
  background: rgba(255,90,90,.07);
  color: #ff9e9e;
  font-size: .76rem;
}

.form-message[data-type="success"] {
  border-color: rgba(41,230,125,.22);
  background: rgba(41,230,125,.07);
  color: #68efa0;
}

.form-message:not([hidden]) {
  animation: auth-message-in .18s ease-out;
}

@keyframes auth-message-in {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================
   AUTH MESSAGE PAGE
===================================================== */

.auth-message-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-message-card {
  width: min(100%, 560px);
  padding: clamp(28px, 6vw, 46px);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(139,92,246,.06), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
}

.auth-message-card h1 {
  margin: 9px 0 13px;
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 620;
}

.auth-message-card > p {
  margin: 0 0 25px;
  color: var(--text-soft);
}

.auth-message-card .auth-form {
  margin-top: 24px;
}

/* =====================================================
   ACCOUNT HEADER
===================================================== */

.account-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-chip {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 11px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg-elevated);
}

.user-chip img {
  width: 31px;
  height: 31px;
  object-fit: cover;
  border-radius: 8px;
}

.user-chip span {
  font-size: .8rem;
  font-weight: 650;
}

/* =====================================================
   ERROR PAGE
===================================================== */

.error-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 30px;
  text-align: center;
}

.error-page h1 {
  margin: 10px 0;
  font-size: clamp(3rem, 10vw, 7rem);
  letter-spacing: -.07em;
}

.error-page p {
  color: var(--text-soft);
  margin-bottom: 24px;
}

/* =====================================================
   ACCESSIBILITY
===================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 980px) {
  :root {
    --header-h: 70px;
  }

  .content-shell,
  .header-shell,
  .footer-shell {
    width: min(calc(100% - 34px), var(--content));
  }

  .header-shell {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .desktop-auth {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .mobile-menu.is-open {
    display: block;
  }

  .footer-shell {
    grid-template-areas:
      "brand socials"
      "nav nav";
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 28px 32px;
    padding-block: 32px;
  }

  .footer-nav {
    justify-self: start;
    justify-content: flex-start;
  }

  .account-inline form {
    display: none;
  }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 640px) {
  .content-shell,
  .header-shell,
  .footer-shell {
    width: min(calc(100% - 28px), var(--content));
  }

  .brand-copy small {
    display: none;
  }

  .brand-mark {
    width: 35px;
  }

  .brand-copy strong {
    font-size: .82rem;
  }

  .icon-button,
  .menu-button {
    width: 39px;
    height: 39px;
  }

  .footer-shell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding-block: 30px;
  }

  .footer-brand,
  .footer-nav,
  .footer-socials {
    width: 100%;
  }

  .footer-nav {
    justify-self: auto;
    justify-content: flex-start;
    gap: 10px 16px;
  }

  .footer-socials {
    justify-self: auto;
    justify-items: start;
  }

  .footer-social-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .copyright {
    white-space: normal;
  }

  .field-grid,
  .oauth-grid {
    grid-template-columns: 1fr;
  }

  .modal {
    width: calc(100vw - 20px);
    padding: 28px 20px 22px;
    border-radius: 20px;
  }

  .auth-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .captcha-placeholder {
    align-items: flex-start;
    flex-direction: column;
  }

  .captcha-placeholder small {
    text-align: left;
    max-width: none;
  }

  .social-register-note {
    margin-top: 10px;
    padding-inline: 4px;
    font-size: .66rem;
  }

  button.oauth-button {
    min-height: 46px;
  }
}

/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
  }

  .form-message:not([hidden]) {
    animation: none;
  }
}

/* =====================================================
   ACCOUNT DROPDOWN
===================================================== */

.account-menu-wrap {
  position: relative;
}

.account-caret {
  margin-left: 2px;
  color: var(--text-faint);
  font-size: .68rem;
  transition: transform .2s ease;
}

.user-chip[aria-expanded="true"] .account-caret {
  transform: rotate(180deg);
}

.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  width: 260px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: color-mix(in srgb, var(--panel-solid) 96%, transparent);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 60px rgba(0,0,0,.35);
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  transform-origin: top right;
  transition: opacity .18s ease, transform .2s var(--ease);
}

.account-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.account-menu-user {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
}

.account-menu-user img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 11px;
}

.account-menu-user strong {
  display: block;
  max-width: 165px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .78rem;
}

.account-menu-user span {
  display: block;
  margin-top: 2px;
  color: var(--text-faint);
  font-size: .62rem;
}

.account-menu-separator {
  height: 1px;
  margin: 6px 4px;
  background: var(--line);
}

.account-menu-link {
  width: 100%;
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--text-soft);
  font-size: .74rem;
  text-align: left;
  cursor: pointer;
}

/* =====================================================
   ACCOUNT MENU ICON ALIGNMENT
   Nachrichten und Meldungen exakt gleich ausrichten
===================================================== */

.account-menu-link > span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.account-menu-link > span > i {
  width: 16px;
  min-width: 16px;
  flex: 0 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  line-height: 1;
  text-align: center;
}

.account-menu-link:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.account-menu-link small {
  color: var(--text-faint);
  font-size: .56rem;
}

.account-menu-acp {
  color: var(--accent);
}

.account-menu-logout {
  margin: 0;
}

.account-menu-logout-button {
  color: #ff8585;
}

.account-menu-logout-button:hover {
  background: rgba(255,90,90,.08);
  color: #ff9f9f;
}

/* =====================================================
   MOBILE ACCOUNT
===================================================== */

.mobile-account {
  padding: 10px 24px 22px;
  border-top: 1px solid var(--line);
}

.mobile-account-user {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 8px 15px;
}

.mobile-account-user img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 12px;
}

.mobile-account-user strong {
  display: block;
  font-size: .8rem;
}

.mobile-account-user span {
  display: block;
  margin-top: 2px;
  color: var(--text-faint);
  font-size: .63rem;
}

.mobile-account-links {
  display: grid;
  gap: 3px;
}

.mobile-account-links a,
.mobile-account-links button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--text-soft);
  font-size: .76rem;
  text-align: left;
  cursor: pointer;
}

/* =====================================================
   MOBILE ACCOUNT ICON ALIGNMENT
===================================================== */

.mobile-account-links a {
  gap: 9px;
}

.mobile-account-links a > i {
  width: 17px;
  min-width: 17px;
  flex: 0 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  line-height: 1;
  text-align: center;
}

.mobile-account-links a:hover,
.mobile-account-links button:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.mobile-acp-link {
  color: var(--accent) !important;
}

.mobile-account-links form {
  margin: 0;
}

/* =====================================================
   USER CHIP KLEINE VERBESSERUNGEN
===================================================== */

.user-chip-name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip {
  position: relative;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 980px) {
  .account-menu-wrap {
    display: none;
  }
}

@media (max-width: 640px) {
  .mobile-account {
    padding: 10px 14px 18px;
  }

  .mobile-account-user {
    padding-inline: 4px;
  }
}

/* =========================================================
   FOOTER PARTNERS
========================================================= */

.footer-partners {
  position: relative;
  overflow: hidden;
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(
      circle at 20% 0%,
      rgba(139, 92, 246, .055),
      transparent 25rem
    ),
    color-mix(in srgb, var(--bg-elevated) 96%, transparent);
}

/* =========================================================
   PARTNER HEADING
========================================================= */

.footer-partners-heading {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto 24px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.footer-partners-heading > span {
  color: var(--accent);
  font-size: .54rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.footer-partners-heading > strong {
  color: var(--text-soft);
  font-size: .68rem;
  font-weight: 620;
}

/* =========================================================
   PARTNER MARQUEE
========================================================= */

.footer-partners-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 4px 0;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 2.5%,
    #000 97.5%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 2.5%,
    #000 97.5%,
    transparent 100%
  );
}

/* =========================================================
   PARTNER TRACK
========================================================= */

.footer-partners-track {
  position: relative;
  width: 100%;
}

/* =========================================================
   PARTNER GROUP
========================================================= */

.footer-partners-group {
  --partner-min-gap: 40px;
  position: relative;
  width: 100%;
  min-height: 94px;
}

/* =========================================================
   PARTNER CARD
========================================================= */

.footer-partner-card {
  --partner-x: 0px;
  position: absolute;
  top: 0;
  left: 0;
  width: 310px;
  min-height: 92px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  padding: 13px 13px 13px 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, .035), transparent 44%),
    var(--panel);
  color: inherit;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .015);
  transform: translate3d(var(--partner-x), 0, 0);
  will-change: transform;
  transition:
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

/* =========================================================
   PARTNER ACCENT
========================================================= */

.footer-partner-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--accent),
    transparent
  );
  opacity: .42;
}

/* =========================================================
   PARTNER HOVER
========================================================= */

.footer-partner-card:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background:
    linear-gradient(135deg, rgba(139, 92, 246, .075), transparent 48%),
    var(--panel);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .12);
}

/* =========================================================
   PARTNER LOGO
========================================================= */

.footer-partner-logo {
  position: relative;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-soft) 96%, transparent);
  transition:
    background .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.footer-partner-logo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* =========================================================
   PARTNER LOGO - LIGHT MODE

   Transparente Logos bleiben unverändert.
   Die Logo-Fläche wird lediglich dunkel, damit auch
   weiße Logos im hellen Theme sichtbar bleiben.
========================================================= */

html[data-theme="light"] .footer-partner-logo {
  border-color: rgba(17, 19, 27, .16);
  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(139, 92, 246, .14),
      transparent 65%
    ),
    #171922;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 5px 16px rgba(17, 19, 27, .08);
}

/* =========================================================
   PARTNER LOGO - DARK MODE
========================================================= */

html[data-theme="dark"] .footer-partner-logo {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .025), transparent),
    var(--bg-soft);
}

/* =========================================================
   PARTNER LOGO HOVER
========================================================= */

.footer-partner-card:hover .footer-partner-logo {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}

html[data-theme="light"] .footer-partner-card:hover .footer-partner-logo {
  border-color:
    color-mix(in srgb, var(--accent) 40%, rgba(17, 19, 27, .18));
  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(139, 92, 246, .20),
      transparent 68%
    ),
    #171922;
}

/* =========================================================
   PARTNER CONTENT
========================================================= */

.footer-partner-content {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.footer-partner-name {
  overflow: hidden;
  color: var(--text);
  font-size: .7rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-partner-description {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-faint);
  font-size: .57rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* =========================================================
   RABATTCODE
========================================================= */

.footer-partner-discount {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
}

.footer-partner-discount small {
  font-size: .43rem;
  font-weight: 750;
  letter-spacing: .09em;
}

.footer-partner-discount strong {
  overflow: hidden;
  max-width: 115px;
  font-size: .53rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   PARTNER ARROW
========================================================= */

.footer-partner-arrow {
  color: var(--text-faint);
  font-size: .76rem;
  transition: transform .2s ease, color .2s ease;
}

.footer-partner-card:hover .footer-partner-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* =========================================================
   PARTNER RESPONSIVE
========================================================= */

@media (max-width: 640px) {
  .footer-partners {
    padding: 22px 0 24px;
  }

  .footer-partners-heading {
    width: min(calc(100% - 28px), var(--content));
    margin-bottom: 18px;
  }

  .footer-partners-group {
    --partner-min-gap: 18px;
    min-height: 84px;
  }

  .footer-partner-card {
    width: 270px;
    min-height: 82px;
    grid-template-columns: 52px minmax(0, 1fr) 18px;
    gap: 10px;
    padding: 11px;
  }

  .footer-partner-logo {
    width: 52px;
    height: 52px;
    padding: 6px;
  }

  .footer-partner-description {
    font-size: .54rem;
  }
}

/* =========================================================
   PARTNER REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .footer-partner-card,
  .footer-partner-logo,
  .footer-partner-arrow {
    transition: none;
  }
}

/* =========================================================
   MESSAGE NOTIFICATIONS / HEADER BADGES
========================================================= */

/* ---------------------------------------------------------
   DESKTOP MESSAGE BUTTON
--------------------------------------------------------- */

.header-message-button {
  position: relative;
  flex: 0 0 auto;
}

.header-message-button > i {
  position: relative;
  z-index: 1;
  font-size: 17px;
  transition:
    color .18s ease,
    transform .18s ease,
    filter .18s ease;
}

.header-message-button:hover > i {
  transform: translateY(-1px);
}

/* Ungelesene Nachrichten vorhanden */

.header-message-button[data-message-unread-count]:not(
  [data-message-unread-count="0"]
) > i {
  color: #fff;
  filter: drop-shadow(0 0 7px rgba(239, 68, 68, .38));
}

/* ---------------------------------------------------------
   HEADER BADGE
--------------------------------------------------------- */

.header-message-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid var(--bg, #0b0b0f);
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4d5f 0%, #dc2626 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  box-shadow:
    0 4px 12px rgba(220, 38, 38, .4),
    0 0 0 1px rgba(255, 255, 255, .08);
  pointer-events: none;
  user-select: none;
  transform-origin: center;
  animation: messageBadgeIn .22s ease-out;
}

.header-message-badge[hidden] {
  display: none !important;
}

@keyframes messageBadgeIn {
  0% {
    opacity: 0;
    transform: scale(.55);
  }

  70% {
    opacity: 1;
    transform: scale(1.12);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------------------------------------------------------
   SUBTILER HINWEIS AM HEADER BUTTON
--------------------------------------------------------- */

.header-message-button[data-message-unread-count]:not(
  [data-message-unread-count="0"]
)::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: rgba(239, 68, 68, .12);
  box-shadow: 0 0 18px rgba(239, 68, 68, .12);
  pointer-events: none;
}

/* ---------------------------------------------------------
   ACCOUNT DROPDOWN
--------------------------------------------------------- */

.account-menu-link[data-message-menu-link] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-menu-link[data-message-menu-link] > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.account-menu-link[data-message-menu-link] > span > i {
  width: 16px;
  min-width: 16px;
  flex: 0 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.account-menu-link[data-message-menu-link].has-unread {
  background:
    linear-gradient(90deg, rgba(239, 68, 68, .075), transparent 72%);
}

.account-menu-link[data-message-menu-link].has-unread > span {
  color: var(--text, #fff);
}

/* ---------------------------------------------------------
   ACCOUNT MESSAGE COUNT
--------------------------------------------------------- */

.account-message-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4d5f 0%, #dc2626 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(220, 38, 38, .28);
  pointer-events: none;
}

.account-message-count[hidden] {
  display: none !important;
}

/* ---------------------------------------------------------
   MOBILE MESSAGE LINK
--------------------------------------------------------- */

.mobile-message-link {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-message-link > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.mobile-message-link > span > i {
  width: 17px;
  min-width: 17px;
  flex: 0 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mobile-message-link.has-unread {
  background:
    linear-gradient(
      90deg,
      rgba(239, 68, 68, .09),
      rgba(239, 68, 68, .025)
    );
}

/* ---------------------------------------------------------
   MOBILE MESSAGE COUNT
--------------------------------------------------------- */

.mobile-message-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4d5f 0%, #dc2626 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(220, 38, 38, .3);
  pointer-events: none;
}

.mobile-message-count[hidden] {
  display: none !important;
}

/* ---------------------------------------------------------
   AKTIVE NACHRICHTENSEITE
--------------------------------------------------------- */

.header-message-button.is-active {
  background:
    color-mix(in srgb, var(--accent, #7c3aed) 14%, transparent);
  border-color:
    color-mix(in srgb, var(--accent, #7c3aed) 30%, transparent);
}

.header-message-button.is-active > i {
  color: var(--accent, #7c3aed);
}

/* ---------------------------------------------------------
   LIGHT THEME
--------------------------------------------------------- */

html[data-theme="light"] .header-message-badge {
  border-color: #fff;
  box-shadow:
    0 4px 12px rgba(220, 38, 38, .28),
    0 0 0 1px rgba(220, 38, 38, .06);
}

html[data-theme="light"]
.account-menu-link[data-message-menu-link].has-unread {
  background:
    linear-gradient(90deg, rgba(220, 38, 38, .07), transparent 72%);
}

html[data-theme="light"] .mobile-message-link.has-unread {
  background:
    linear-gradient(
      90deg,
      rgba(220, 38, 38, .075),
      rgba(220, 38, 38, .015)
    );
}

/* ---------------------------------------------------------
   KLEINE DISPLAYS
--------------------------------------------------------- */

@media (max-width: 640px) {
  .header-message-badge {
    top: -4px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    font-size: 9px;
  }

  .mobile-message-count {
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
  }
}

/* ---------------------------------------------------------
   REDUCED MOTION
--------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .header-message-badge {
    animation: none;
  }

  .header-message-button > i {
    transition: none;
  }
}

/* =========================================================
   HEADER / SERVICE - FINAL RESPONSIVE DETAILS
========================================================= */

@media (max-width: 640px) {
  .mobile-menu nav {
    padding: 14px 14px 8px;
  }

  .mobile-service-links {
    padding-left: 22px;
  }
}

/* =========================================================
   SERVICE DROPDOWN - LIGHT THEME
========================================================= */

html[data-theme="light"] .nav-dropdown-panel {
  box-shadow: 0 24px 60px rgba(34,26,48,.16);
}

html[data-theme="light"] .nav-dropdown-panel::before {
  background: var(--panel-solid);
}

/* =========================================================
   SERVICE DROPDOWN - REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .nav-dropdown-panel {
    animation: none;
  }

  .nav-dropdown-trigger > i,
  .mobile-service-trigger > i,
  .service-dropdown-arrow {
    transition: none;
  }
}