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

.cn-global-header {
  position: sticky;
  top: 0;
  z-index: 9999999;

  width: 100%;

  padding-top: max(8px, env(safe-area-inset-top, 0px));

  background: rgba(2, 6, 23, 0.86);

  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.26);

  backdrop-filter:
    blur(22px)
    saturate(125%);

  -webkit-backdrop-filter:
    blur(22px)
    saturate(125%);
}


.cn-global-header::after {
  content: "";

  position: absolute;

  right: 14%;
  bottom: 0;
  left: 14%;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(42, 0, 255, 0.66),
      rgba(150, 96, 255, 0.3),
      transparent
    );

  pointer-events: none;
}



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

.cn-global-header-inner {
  width: min(1320px, calc(100% - 40px));

  min-height: var(--cashly-header-height);

  display: grid;

  grid-template-columns:
    1fr
    auto
    1fr;

  align-items: center;

  gap: 24px;

  margin: 0 auto;
}



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

.cn-global-logo {
  width: 74px !important;
  min-width: 74px !important;
  max-width: 74px !important;

  height: 74px !important;
  min-height: 74px !important;
  max-height: 74px !important;

  justify-self: start;

  display: inline-flex !important;

  align-items: center;
  justify-content: center;

  padding: 0 !important;

  border: 0 !important;
  border-radius: 0 !important;

  outline: 0;

  background: transparent !important;

  box-shadow: none !important;

  text-decoration: none !important;

  overflow: hidden;
}


.cn-global-logo img {
  width: 74px !important;
  min-width: 74px !important;
  max-width: 74px !important;

  height: 74px !important;
  min-height: 74px !important;
  max-height: 74px !important;

  display: block !important;

  object-fit: contain !important;

  filter:
    drop-shadow(
      0 0 16px rgba(42, 0, 255, 0.2)
    );

  transition:
    opacity 180ms ease,
    transform 180ms ease;
}


.cn-global-logo:hover,
.cn-global-logo:focus,
.cn-global-logo:active,
.cn-global-logo:visited {

  border: 0 !important;

  background: transparent !important;

  box-shadow: none !important;
}


.cn-global-logo:hover img,
.cn-global-logo:focus-visible img {
  opacity: 0.92;
}


.cn-global-logo:focus-visible {
  outline: 2px solid #8e83ff;
  outline-offset: 3px;
}


.cn-global-logo:active img {
  transform: scale(0.97);
}



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

.cn-global-nav {
  justify-self: center;

  display: flex;

  align-items: center;

  gap: 34px;
}


.cn-global-nav-link,
.cn-global-nav-link:visited {

  position: relative;

  padding: 9px 0 !important;

  border: 0 !important;

  outline: 0;

  background: transparent !important;

  color: #8f98ac !important;

  box-shadow: none !important;

  text-decoration: none !important;

  font-family:
    "Outfit",
    Arial,
    sans-serif;

  font-size: 15px;

  font-weight: 550;

  line-height: 1.2;

  white-space: nowrap;

  transition:
    color 180ms ease;
}


.cn-global-nav-link:hover,
.cn-global-nav-link:focus,
.cn-global-nav-link:focus-visible,
.cn-global-nav-link.is-active {

  border: 0 !important;

  background: transparent !important;

  color: #ffffff !important;

  box-shadow: none !important;
}


.cn-global-nav-link:focus-visible {
  outline: 2px solid #8e83ff;
  outline-offset: 5px;
}


.cn-global-nav-link.is-active::after {

  content: "";

  position: absolute;

  right: 0;

  bottom: -6px;

  left: 0;

  height: 2px;

  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      #2a00ff,
      #9560ff
    );

  box-shadow:
    0 0 12px rgba(42, 0, 255, 0.68),
    0 0 20px rgba(150, 96, 255, 0.22);
}



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

.cn-global-header-actions {

  justify-self: end;

  display: flex;

  align-items: center;

  gap: 11px;
}


.cn-global-notification-slot {

  display: flex;

  align-items: center;

  justify-content: center;
}



/* =====================================================
   USER WRAPPER
===================================================== */

.cn-global-user {

  position: relative;

  z-index: 10;
}



/* =====================================================
   USER BUTTON
===================================================== */

.cn-global-user-trigger {

  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;

  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;

  display: grid !important;

  place-items: center;

  margin: 0 !important;

  padding: 0 !important;

  border: 0 !important;

  border-radius: 14px !important;

  outline: 0;

  background-color: #2a00ff !important;

  background-image:
    linear-gradient(
      135deg,
      #2a00ff,
      #7449ff
    ) !important;

  color: #ffffff !important;

  box-shadow:
    0 11px 28px rgba(42, 0, 255, 0.32) !important;

  text-shadow: none !important;

  font-family:
    "Outfit",
    Arial,
    sans-serif;

  cursor: pointer;

  -webkit-tap-highlight-color: transparent;

  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}


.cn-global-user-trigger:hover,
.cn-global-user-trigger:focus,
.cn-global-user-trigger:focus-visible,
.cn-global-user-trigger:active,
.cn-global-user-trigger[aria-expanded="true"] {

  border: 0 !important;

  color: #ffffff !important;
}


.cn-global-user-trigger:hover,
.cn-global-user-trigger:focus,
.cn-global-user-trigger[aria-expanded="true"] {

  background-color: #3510ff !important;

  background-image:
    linear-gradient(
      135deg,
      #3510ff,
      #8657ff
    ) !important;

  box-shadow:
    0 16px 36px rgba(42, 0, 255, 0.42) !important;

  transform:
    translateY(-2px);
}


.cn-global-user-trigger:focus-visible {

  outline:
    2px solid #a198ff;

  outline-offset: 3px;
}


.cn-global-user-trigger:active {

  background-color:
    #2100d8 !important;

  background-image:
    none !important;

  box-shadow:
    0 7px 18px rgba(42, 0, 255, 0.28) !important;

  transform:
    scale(0.97);
}



/* =====================================================
   USER INITIAL
===================================================== */

.cn-global-avatar-letter {

  display: block;

  color: inherit;

  font-size: 14px;

  font-weight: 700;

  line-height: 1;

  text-transform: uppercase;

  pointer-events: none;
}



/* =====================================================
   USER DROPDOWN
===================================================== */

.cn-global-user-dropdown {

  position: absolute;

  top:
    calc(100% + 13px);

  right: 0;

  width: 286px;

  max-width:
    calc(100vw - 24px);

  padding: 12px;

  border:
    1px solid rgba(255, 255, 255, 0.075);

  border-radius: 18px;

  background:

    radial-gradient(
      circle at top right,
      rgba(42, 0, 255, 0.15),
      transparent 42%
    ),

    linear-gradient(
      135deg,
      #020617,
      #020c1f
    );

  box-shadow:
    0 30px 76px rgba(0, 0, 0, 0.62);

  font-family:
    "Outfit",
    Arial,
    sans-serif;
}


.cn-global-user-dropdown[hidden] {
  display: none !important;
}



/* =====================================================
   PROFILE
===================================================== */

.cn-global-user-profile,
.cn-global-user-profile:visited {

  min-width: 0;

  display: grid !important;

  grid-template-columns:
    36px
    minmax(0, 1fr)
    12px;

  align-items: center;

  gap: 11px;

  padding: 12px !important;

  border: 0 !important;

  border-radius: 14px !important;

  outline: 0;

  background:
    rgba(255, 255, 255, 0.035) !important;

  color: #ffffff !important;

  box-shadow: none !important;

  text-decoration: none !important;
}


.cn-global-user-profile:hover,
.cn-global-user-profile:focus,
.cn-global-user-profile:focus-visible,
.cn-global-user-profile:active {

  border: 0 !important;

  background:
    linear-gradient(
      90deg,
      rgba(42, 0, 255, 0.13),
      rgba(150, 96, 255, 0.055)
    ) !important;

  color: #ffffff !important;

  box-shadow: none !important;
}


.cn-global-user-profile:focus-visible {

  outline:
    2px solid #8e83ff;

  outline-offset: 2px;
}



/* =====================================================
   PROFILE AVATAR
===================================================== */

.cn-global-profile-avatar {

  width: 36px;

  height: 36px;

  display: grid;

  place-items: center;

  border: 0;

  border-radius: 12px;

  background:
    rgba(42, 0, 255, 0.2);

  color: #ffffff;

  font-size: 13px;

  font-weight: 700;

  text-transform: uppercase;
}



/* =====================================================
   PROFILE TEXT
===================================================== */

.cn-global-profile-copy {
  min-width: 0;
}


.cn-global-profile-copy strong,
.cn-global-profile-copy small {

  display: block;

  overflow: hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


.cn-global-profile-copy strong {

  color: #ffffff;

  font-size: 14px;

  font-weight: 700;
}


.cn-global-profile-copy small {

  margin-top: 3px;

  color: #8f98ac;

  font-size: 12px;
}


.cn-global-profile-arrow {

  justify-self: end;

  color:
    #8276ff !important;

  font-size: 10px;
}



/* =====================================================
   USER LINKS
===================================================== */

.cn-global-user-links {

  display: grid;

  gap: 2px;

  margin-top: 8px;
}


.cn-global-user-links a,
.cn-global-user-links a:visited {

  min-height: 42px;

  display: flex !important;

  align-items: center;

  gap: 10px;

  padding:
    0 11px !important;

  border: 0 !important;

  border-radius:
    11px !important;

  outline: 0;

  background:
    transparent !important;

  color:
    #c3cad7 !important;

  box-shadow:
    none !important;

  text-decoration:
    none !important;

  text-shadow:
    none !important;

  font-size: 13px;

  font-weight: 600;
}


.cn-global-user-links a i {

  width: 16px;

  color:
    #887cff !important;

  font-size: 13px;

  text-align: center;
}


.cn-global-user-links a:hover,
.cn-global-user-links a:focus,
.cn-global-user-links a:focus-visible,
.cn-global-user-links a:active {

  border: 0 !important;

  color:
    #ffffff !important;

  box-shadow:
    none !important;
}


.cn-global-user-links a:hover,
.cn-global-user-links a:focus,
.cn-global-user-links a:focus-visible {

  background:
    linear-gradient(
      90deg,
      rgba(42, 0, 255, 0.13),
      rgba(150, 96, 255, 0.055)
    ) !important;
}


.cn-global-user-links a:active {

  background:
    rgba(42, 0, 255, 0.18) !important;
}


.cn-global-user-links a:focus-visible {

  outline:
    2px solid #8e83ff;

  outline-offset: 1px;
}



/* =====================================================
   DIVIDERS
===================================================== */

.cn-global-user-divider {

  height: 1px;

  margin: 6px 4px;

  background:
    rgba(255, 255, 255, 0.075);
}



/* =====================================================
   LOGOUT
===================================================== */

.cn-global-user-links a.cn-global-user-logout,
.cn-global-user-links a.cn-global-user-logout:visited,
.cn-global-user-links a.cn-global-user-logout i {

  border: 0 !important;

  color:
    #ff7777 !important;
}


.cn-global-user-links a.cn-global-user-logout:hover,
.cn-global-user-links a.cn-global-user-logout:focus,
.cn-global-user-links a.cn-global-user-logout:focus-visible,
.cn-global-user-links a.cn-global-user-logout:active {

  border: 0 !important;

  background:
    rgba(255, 82, 82, 0.11) !important;

  color:
    #ff9696 !important;

  box-shadow:
    none !important;
}



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

@media (max-width: 768px) {

  .cn-global-header {
    padding-top:
      env(safe-area-inset-top, 0px);
  }


  .cn-global-header-inner {

    width:
      calc(100% - 24px);

    min-height: var(--cashly-header-height);

    grid-template-columns:
      auto
      minmax(0, 1fr)
      auto;

    gap: 12px;
  }


  .cn-global-logo,
  .cn-global-logo img {

    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;

    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
  }


  .cn-global-nav {

    min-width: 0;

    gap: 18px;
  }


  .cn-global-nav-link,
  .cn-global-nav-link:visited {

    padding:
      7px 0 !important;

    font-size: 13px;
  }


  .cn-global-nav-link.is-active::after {

    bottom: -3px;

    height: 1px;
  }


  .cn-global-header-actions {
    gap: 8px;
  }


  .cn-global-user-trigger {

    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;

    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;

    border-radius:
      12px !important;
  }


  .cn-global-user-dropdown {

    top:
      calc(100% + 10px);

    width:
      min(
        270px,
        calc(100vw - 24px)
      );
  }

}



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

@media (max-width: 420px) {

  .cn-global-header-inner {
    gap: 9px;
  }


  .cn-global-nav {
    gap: 13px;
  }


  .cn-global-nav-link,
  .cn-global-nav-link:visited {
    font-size: 12px;
  }


  .cn-global-header-actions {
    gap: 5px;
  }

}



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

@media (prefers-reduced-motion: reduce) {

  .cn-global-logo img,
  .cn-global-nav-link,
  .cn-global-user-trigger {

    transition-duration:
      0.01ms !important;
  }

}




.cn-global-footer-wrapper {
  position: relative;
  width: 100%;
  padding: 46px 20px max(54px, env(safe-area-inset-bottom, 0px));
  font-family: "Outfit", Arial, sans-serif;
}

.cn-global-footer-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1200px, calc(100% - 40px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(42, 0, 255, 0.42), rgba(150, 96, 255, 0.18), rgba(255, 255, 255, 0.07), transparent);
  pointer-events: none;
}

.cn-global-footer {
  width: min(1200px, 100%);
  margin: 0 auto;
  color: #8f98ac;
}

.cn-global-footer-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 18px;
  background: radial-gradient(circle at top right, rgba(42, 0, 255, 0.11), transparent 44%), linear-gradient(135deg, rgba(2, 6, 23, 0.94), rgba(2, 12, 31, 0.86));
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.42);
}

.cn-global-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.cn-global-footer-brand img {
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  display: block !important;
  object-fit: contain !important;
  filter: drop-shadow(0 0 13px rgba(42, 0, 255, 0.2));
}

.cn-global-footer-brand span,
.cn-global-footer-brand strong,
.cn-global-footer-brand small {
  display: block;
}

.cn-global-footer-brand strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.cn-global-footer-brand small {
  margin-top: 3px;
  color: #8f98ac;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.cn-global-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.cn-global-footer-links a,
.cn-global-footer-links a:visited {
  min-height: 34px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 7px 11px !important;
  border: 0 !important;
  border-radius: 10px !important;
  outline: 0;
  background: transparent !important;
  color: #8f98ac !important;
  box-shadow: none !important;
  text-decoration: none !important;
  text-shadow: none !important;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.cn-global-footer-links a:hover,
.cn-global-footer-links a:focus,
.cn-global-footer-links a:focus-visible,
.cn-global-footer-links a:active {
  border: 0 !important;
  box-shadow: none !important;
}

.cn-global-footer-links a:hover,
.cn-global-footer-links a:focus,
.cn-global-footer-links a:focus-visible {
  background: linear-gradient(90deg, rgba(42, 0, 255, 0.12), rgba(150, 96, 255, 0.05)) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.cn-global-footer-links a:active {
  background: rgba(42, 0, 255, 0.16) !important;
  color: #ffffff !important;
  transform: translateY(0);
}

.cn-global-footer-links a:focus-visible,
.cn-global-footer-note:focus-visible {
  outline: 2px solid #8e83ff;
  outline-offset: 2px;
}

.cn-global-footer-links a.cn-global-footer-auth,
.cn-global-footer-links a.cn-global-footer-auth:visited {
  border: 0 !important;
  background: rgba(42, 0, 255, 0.14) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.cn-global-footer-links a.cn-global-footer-auth:hover,
.cn-global-footer-links a.cn-global-footer-auth:focus,
.cn-global-footer-links a.cn-global-footer-auth:focus-visible {
  border: 0 !important;
  background: linear-gradient(135deg, #2a00ff, #7449ff) !important;
  color: #ffffff !important;
  box-shadow: 0 11px 26px rgba(42, 0, 255, 0.28) !important;
}

.cn-global-footer-links a.cn-global-footer-auth:active {
  border: 0 !important;
  background: #2100d8 !important;
  color: #ffffff !important;
  box-shadow: 0 7px 18px rgba(42, 0, 255, 0.24) !important;
}

.cn-global-footer-logout {
  display: none !important;
}

body.logged-in .cn-global-footer-login,
body.cn-user-logged-in .cn-global-footer-login {
  display: none !important;
}

body.logged-in .cn-global-footer-logout,
body.cn-user-logged-in .cn-global-footer-logout {
  display: inline-flex !important;
}

.cn-global-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 4px 0;
}

.cn-global-footer-bottom p,
.cn-global-footer-note,
.cn-global-footer-note:visited {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  color: #818b9f !important;
  box-shadow: none !important;
  text-decoration: none !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}

.cn-global-footer-note:hover,
.cn-global-footer-note:focus,
.cn-global-footer-note:focus-visible,
.cn-global-footer-note:active {
  border: 0 !important;
  background: transparent !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  .cn-global-footer-wrapper {
    padding: 34px 16px max(42px, env(safe-area-inset-bottom, 0px));
  }

  .cn-global-footer-wrapper::before {
    width: calc(100% - 32px);
  }

  .cn-global-footer-panel {
    align-items: center;
    flex-direction: column;
    gap: 18px;
    padding: 22px 18px;
    text-align: center;
  }

  .cn-global-footer-brand {
    flex-direction: column;
    gap: 8px;
  }

  .cn-global-footer-links {
    justify-content: center;
  }

  .cn-global-footer-bottom {
    align-items: center;
    flex-direction: column;
    gap: 8px;
    padding-top: 14px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cn-global-footer-links a {
    transition-duration: 0.01ms !important;
  }
}



/* Gemeinsame Ergänzungen für den eigenständigen WordPress-Rahmen. */
.cn-global-header { top: 0; z-index: 1000; }
body.admin-bar .cn-global-header { top: 32px; }
.cn-global-nav-list { display:flex; align-items:center; gap:34px; list-style:none; margin:0; padding:0; }
.cn-global-nav-list li { margin:0; padding:0; }
.cn-global-logo, .cn-global-logo img {
  width:var(--cashly-logo-header) !important; min-width:var(--cashly-logo-header) !important; max-width:var(--cashly-logo-header) !important;
  height:var(--cashly-logo-header) !important; min-height:var(--cashly-logo-header) !important; max-height:var(--cashly-logo-header) !important;
}
.cn-global-footer-brand img {
  width:var(--cashly-logo-footer) !important; min-width:var(--cashly-logo-footer) !important; max-width:var(--cashly-logo-footer) !important;
  height:var(--cashly-logo-footer) !important; min-height:var(--cashly-logo-footer) !important; max-height:var(--cashly-logo-footer) !important;
}
.cashly-logo-fallback { font-size:20px; font-weight:750; color:#fff; }
@media(max-width:782px) { body.admin-bar .cn-global-header { top:46px; } }
@media(max-width:768px) { .cn-global-nav-list { gap:18px; } }
@media(max-width:600px) { body.admin-bar .cn-global-header { top:0; } }
@media(max-width:420px) { .cn-global-nav-list { gap:13px; } }
