.site-header {
  --site-header-primary: #6c5ce7;
  --site-header-ink: var(--text-heading, var(--ink, #1c2433));
  --site-header-muted: var(--text-secondary, var(--muted, #697386));
  --site-header-surface: var(--navbar-bg, var(--surface, rgba(255,255,255,.96)));
  --site-header-border: var(--border-color, var(--border, #e5e8ef));
  position: sticky;
  top: 0;
  z-index: 1200;
  width: 100%;
  min-height: 68px;
  color: var(--site-header-ink);
  background: var(--site-header-surface);
  border-bottom: 1px solid var(--site-header-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-family: "Cairo", sans-serif;
}

[data-theme="dark"] .site-header {
  --site-header-ink: #f1f4f9;
  --site-header-muted: #a1aabc;
  --site-header-surface: rgba(18, 24, 34, .96);
  --site-header-border: #2d3848;
}

.site-header *,
.site-header *::before,
.site-header *::after {
  box-sizing: border-box;
}

.site-header-inner {
  width: min(1180px, calc(100% - 34px));
  min-height: 68px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--site-header-ink);
  text-decoration: none;
  white-space: nowrap;
}

.site-header-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--site-header-primary), #9184ef);
  font-size: 16px;
  font-weight: 800;
}

.site-header-brand strong {
  font-size: 20px;
  font-weight: 800;
}

.site-header-brand strong span {
  color: var(--site-header-primary);
}

.site-header-nav {
  margin-inline-end: auto;
  display: flex;
  align-items: center;
  gap: 23px;
}

.site-header-nav a {
  position: relative;
  padding: 24px 0 22px;
  color: var(--site-header-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: color .2s;
}

.site-header-nav a:hover,
.site-header-nav a.active {
  color: var(--site-header-primary);
}

.site-header-nav a.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--site-header-primary);
}

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

.site-header-theme,
.site-header-mobile,
.site-header-logout {
  border: 0;
  color: var(--site-header-muted);
  background: transparent;
  cursor: pointer;
}

.site-header-theme {
  width: 39px;
  height: 39px;
  border: 1px solid var(--site-header-border);
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--site-header-surface);
  font-size: 17px;
}

.site-header-theme:hover {
  color: var(--site-header-primary);
  border-color: var(--site-header-primary);
}

.site-header-button {
  min-height: 39px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.site-header-button.ghost {
  color: var(--site-header-ink);
  background: var(--site-header-surface);
  border-color: var(--site-header-border);
}

.site-header-button.ghost:hover {
  color: var(--site-header-primary);
  border-color: var(--site-header-primary);
}

.site-header-button.primary {
  color: #fff;
  background: var(--site-header-primary);
  box-shadow: 0 6px 16px rgba(108,92,231,.22);
}

.site-header-account {
  min-height: 39px;
  padding: 3px 10px 3px 5px;
  border: 1px solid var(--site-header-border);
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--site-header-ink);
  background: var(--site-header-surface);
  text-decoration: none;
}

.site-header-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--site-header-primary), #9184ef);
  font-size: 11px;
  font-weight: 800;
}

.site-header-account-copy {
  max-width: 110px;
  display: grid;
  line-height: 1.35;
}

.site-header-account-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
  white-space: nowrap;
}

.site-header-account-copy small {
  color: var(--site-header-muted);
  font-size: 8px;
}

.site-header-logout {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 15px;
}

.site-header-logout:hover {
  color: #e5484d;
  background: rgba(229,72,77,.08);
}

.site-header-mobile {
  display: none;
  width: 40px;
  height: 40px;
  margin-inline-start: auto;
  font-size: 21px;
}

@media (max-width: 960px) {
  .site-header-inner {
    gap: 10px;
  }

  .site-header-nav {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    margin: 0;
    padding: 15px 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--site-header-surface);
    border-bottom: 1px solid var(--site-header-border);
    box-shadow: 0 14px 30px rgba(28,36,51,.12);
  }

  .site-header-nav.open {
    display: flex;
  }

  .site-header-nav a {
    padding: 9px 12px;
    border-radius: 7px;
  }

  .site-header-nav a.active {
    background: rgba(108,92,231,.1);
  }

  .site-header-nav a.active::after {
    display: none;
  }

  .site-header-mobile {
    display: grid;
    place-items: center;
  }

  .site-header-actions {
    margin-inline-start: auto;
  }
}

@media (max-width: 620px) {
  .site-header-inner {
    width: min(100% - 22px, 1180px);
  }

  .site-header-brand strong {
    display: none;
  }

  .site-header-button {
    padding: 0 11px;
  }

  .site-header-account-copy,
  .site-header-button.ghost {
    display: none;
  }
}

.site-simple-page {
  width: min(800px, calc(100% - 34px));
  margin: 48px auto;
  padding: 30px;
  color: var(--text-primary, var(--ink, #2d3436));
  background: var(--card-bg, var(--surface, #fff));
  border: 1px solid var(--border-color, var(--border, #e5e8ef));
  border-radius: 16px;
  box-shadow: 0 10px 30px var(--shadow-color, rgba(0,0,0,.07));
  font-family: "Cairo", sans-serif;
  line-height: 1.9;
}

.site-simple-page a {
  color: #6c5ce7;
}
.site-header-notifications { position: relative; }
.site-header-notifications b { position: absolute; top: -7px; left: -6px; min-width: 18px; padding: 1px 5px; border-radius: 10px; background: #e34c68; color: #fff; font-size: 9px; text-align: center; }

.cookie-consent {
  position: fixed;
  z-index: 2500;
  right: 22px;
  bottom: 22px;
  left: 22px;
  width: min(920px, calc(100% - 44px));
  margin: auto;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  direction: rtl;
  color: var(--text-primary, #242938);
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-color, #e5e8ef);
  border-radius: 16px;
  box-shadow: 0 18px 55px rgba(22, 27, 45, .2);
  font-family: "Cairo", sans-serif;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .18s ease, transform .18s ease;
}

.cookie-consent.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.cookie-consent-copy p {
  margin: 0;
  color: var(--text-secondary, #626b7d);
  font-size: .9rem;
  line-height: 1.8;
}

.cookie-consent-copy a {
  display: inline-block;
  margin-top: 5px;
  color: #6c5ce7;
  font-size: .85rem;
  font-weight: 700;
}

.cookie-consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 9px;
}

.cookie-consent-actions button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #d8dce7;
  border-radius: 9px;
  color: var(--text-primary, #242938);
  background: transparent;
  font: 700 .85rem "Cairo", sans-serif;
  cursor: pointer;
}

.cookie-consent-actions button.primary {
  color: #fff;
  background: #6c5ce7;
  border-color: #6c5ce7;
}

@media (max-width: 700px) {
  .cookie-consent {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: calc(100% - 24px);
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
