:root {
  --header-height: 162px;
  --oninee-accent: #0cadad;
  --oninee-button-padding: 7px 15px;
}

/* The header remains stationary while the drawer moves underneath it. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 110;
  background: rgba(12, 14, 18, .85);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(24px);
}
.header-inner { width: 100%; padding: 4px 28px; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-left { display: flex; align-items: center; gap: 24px; min-width: 0; }
.header-logo { display: flex; align-items: center; flex-shrink: 0; }
.header-logo img { height: 128px; width: auto; }
.header-nav { display: flex; align-items: center; gap: clamp(18px, 1.6vw, 28px); }
.header-nav-link { color: rgba(255,255,255,.9); font-size: 16px; font-weight: 500; white-space: nowrap; transition: color .2s; }
.header-nav-link:hover { color: var(--oninee-accent); }
.header-nav-link--cards { display: inline-flex; align-items: center; justify-content: center; flex-direction: row; gap: 0; padding: 5px 10px; border: 1px solid var(--oninee-accent); border-radius: 999px; background: #0cadad1f; color: var(--oninee-accent); font-weight: 500; transition: color .3s, background-color .3s; }
.header-nav-link--cards > span { margin-left: -4px; padding-top: 1px; padding-left: 0; }
.header-nav-link--cards:hover { background: var(--oninee-accent); color: #000; }
.crypto-icon { display: block; width: 20px; height: 20px; flex-shrink: 0; fill: currentColor; }
.header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; flex-shrink: 0; }
.header-signin { color: rgba(255, 255, 255, .9); font-size: 16px; font-weight: 500; padding: 5px 4px; white-space: nowrap; }
.header-signin:hover { color: var(--oninee-accent); }
.header-card { display: inline-flex; align-items: center; justify-content: center; padding: var(--oninee-button-padding); border-radius: 999px; background: var(--oninee-accent); color: #000; font-size: 16px; font-weight: 500; white-space: nowrap; box-shadow: 0 4px 20px -4px #0cadad73; transition: background .3s, box-shadow .3s; }
.header-card:hover { background: #fff; box-shadow: 0 8px 28px -4px #0cadad8c; }

/* Shared action-button spacing, including responsive utility-based buttons. */
[data-slot="button"], .site-button { padding: var(--oninee-button-padding); height: auto; }
.sidebar-toggle { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; color: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.14); border-radius: 50%; background: transparent; cursor: pointer; transition: color .2s; }
.sidebar-toggle:hover { background: transparent; color: var(--oninee-accent); }
.sidebar-toggle .menu-bar { transition: transform .32s cubic-bezier(.22,1,.36,1), opacity .2s; }
.sidebar-toggle .menu-bar-top { transform-origin: 12px 6px; }
.sidebar-toggle .menu-bar-middle { transform-origin: 12px 12px; }
.sidebar-toggle .menu-bar-bottom { transform-origin: 12px 18px; }
.sidebar-toggle[aria-expanded="true"] .menu-bar-top { transform: translateY(6px) rotate(45deg); }
.sidebar-toggle[aria-expanded="true"] .menu-bar-middle { opacity: 0; transform: scaleX(0); }
.sidebar-toggle[aria-expanded="true"] .menu-bar-bottom { transform: translateY(-6px) rotate(-45deg); }
.sidebar-toggle:focus-visible, .header-nav a:focus-visible, .header-actions a:focus-visible, #backend-sidebar a:focus-visible, #backend-sidebar button:focus-visible { outline: 2px solid var(--oninee-accent); outline-offset: 4px; }

/* Backend sidebar styling retained, using the existing header logo and X. */
.sidebar-overlay { position: fixed; inset: var(--header-height) 0 0; z-index: 100; background: rgba(0,0,0,.6); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .32s ease, visibility 0s linear .32s; }
#backend-sidebar { position: fixed; inset: var(--header-height) auto 0 0; z-index: 101; display: flex; flex-direction: column; gap: 8px; width: 256px; max-width: calc(100vw - 32px); height: calc(100dvh - var(--header-height)); padding: 24px; background: #131313; color: #e5e2e1; box-shadow: 0 25px 50px -12px rgba(0,0,0,.5); font-family: Inter, sans-serif; overflow: hidden; transform: translateX(-100%); visibility: hidden; pointer-events: none; transition: transform .32s cubic-bezier(.22,1,.36,1), visibility 0s linear .32s; }
body.sidebar-open #backend-sidebar { transform: translateX(0); visibility: visible; pointer-events: auto; transition-delay: 0s; }
body.sidebar-open .sidebar-overlay { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.scroll-top[hidden] { display: none; }
#backend-sidebar nav { display: flex; flex: 1; min-height: 0; flex-direction: column; gap: 4px; overflow-y: auto; padding-bottom: 16px; scrollbar-width: thin; scrollbar-color: #333 transparent; }
#backend-sidebar .sidebar-link, #backend-sidebar .sidebar-group-button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 12px 16px; color: #737373; border-radius: 8px; text-align: left; cursor: pointer; transition: color .2s, background .2s; flex-shrink: 0; }
#backend-sidebar .sidebar-link:hover, #backend-sidebar .sidebar-group-button:hover { color: #fff; background: rgba(38,38,38,.5); }
#backend-sidebar .sidebar-link > div, #backend-sidebar .sidebar-group-button > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
#backend-sidebar .font-label { font: 600 11px/1.5 Inter, sans-serif; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
#backend-sidebar nav > div:not([data-menu-group]) { margin-top: 24px; margin-bottom: 8px; padding: 0 16px; color: #525252; font: 700 10px/1.5 Inter, sans-serif; text-transform: uppercase; letter-spacing: .1em; }
#backend-sidebar nav > .sidebar-section:first-child { margin-top: 0; }
#backend-sidebar [data-menu-group] { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
#backend-sidebar .material-symbols-outlined { display: inline-block; flex-shrink: 0; font-family: 'Material Symbols Outlined'; font-weight: 400; font-style: normal; font-size: 20px; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr; font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; }
#backend-sidebar [data-chevron] { font-size: 14px; transition: transform .2s; }
#backend-sidebar [data-menu-group].is-open [data-chevron] { transform: rotate(180deg); }
#backend-sidebar .nav-submenu { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 8px 42px; padding-left: 12px; border-left: 1px solid #0cadad29; }
#backend-sidebar .nav-submenu.hidden { display: none; }
#backend-sidebar .nav-submenu a { padding: 8px 10px; color: #737373; border-radius: 8px; font: 650 10px/1.5 Inter, sans-serif; text-transform: uppercase; letter-spacing: .06em; transition: color .2s, background .2s; }
#backend-sidebar .nav-submenu a:hover { color: #fff; background: rgba(38,38,38,.5); }
body.sidebar-open { overflow: hidden; }

.scroll-top { position: fixed; bottom: 24px; right: 24px; z-index: 55; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--oninee-accent); color: #000; cursor: pointer; }
.scroll-top:hover { background: #fff; }

@media (max-width: 1199px) {
  :root { --header-height: 134px; }
  .header-logo img { height: 100px; }
  .header-left { gap: 18px; }
  .header-nav { gap: 18px; }
  .header-actions { gap: 12px; }
  .header-nav-link, .header-signin, .header-card { font-size: 14px; }
}
@media (max-width: 1099px) {
  :root { --header-height: 122px; }
  .header-nav { display: none; }
  .header-logo img { height: 88px; }
}
@media (max-width: 639px) {
  :root { --header-height: 98px; }
  .header-inner { padding: 4px 12px; }
  .header-row { gap: 8px; }
  .header-left { gap: 10px; }
  .header-logo img { height: 64px; }
  .sidebar-toggle { width: 36px; height: 36px; }
  .header-actions { gap: 8px; }
  .header-signin { font-size: 12px; padding: 4px 1px; }
  .header-card { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
