/* A calmer, more personal Zynex24 layer shared by every page. */
:root {
  --zx-bg: #111815;
  --zx-surface: #19221d;
  --zx-raised: #202c25;
  --zx-line: #35443a;
  --zx-text: #f0f0e8;
  --zx-muted: #b5beb5;
  --zx-soft: #89958b;
  --zx-accent: #c4e28c;
  --zx-accent-ink: #172118;
}

html { background: var(--zx-bg) !important; scroll-padding-top: 96px; }
body { background: var(--zx-bg) !important; color: var(--zx-text) !important; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif !important; line-height: 1.65; }
body::before, body::after { opacity: .08 !important; filter: blur(110px) !important; }
.top, .topbar { background: rgba(17, 24, 21, .97) !important; border-bottom: 1px solid #ffffff14 !important; box-shadow: 0 8px 24px #0002 !important; backdrop-filter: blur(12px) !important; }
.nav { min-height: 72px; gap: clamp(12px, 2vw, 26px); }
.brand { color: var(--zx-text) !important; letter-spacing: .08em !important; font-size: 11px !important; }
.brand span { color: #c7d0c7 !important; }
.brand img { width: 40px !important; height: 40px !important; }
.links, .navlinks { gap: clamp(9px, 1.3vw, 18px) !important; color: var(--zx-muted) !important; font-size: 12px !important; }
.links a, .navlinks a { text-decoration: none !important; }
.links a:hover, .navlinks a:hover, .links a[aria-current="page"], .navlinks a[aria-current="page"] { color: var(--zx-accent) !important; }
.btn, button.btn { min-height: 42px; border: 1px solid #ffffff24 !important; border-radius: 8px !important; background: var(--zx-raised) !important; color: var(--zx-text) !important; box-shadow: none !important; font-weight: 680; }
.btn:hover, button.btn:hover { border-color: #a9c78b !important; background: #2b392f !important; transform: translateY(-1px); }
.btn.primary, .btn.primary:hover, button.btn.primary { border-color: var(--zx-accent) !important; background: var(--zx-accent) !important; color: var(--zx-accent-ink) !important; }
.hero h1, h1.title, .title { max-width: 18ch; color: var(--zx-text) !important; font-family: Inter, ui-sans-serif, system-ui, sans-serif !important; font-weight: 780 !important; letter-spacing: -.045em !important; line-height: 1.04 !important; }
.hero h1 em { color: var(--zx-accent) !important; background: none !important; -webkit-text-fill-color: var(--zx-accent) !important; animation: none !important; }
.hero .lead, .intro, .section-head > p { color: #c2cbc2 !important; line-height: 1.72; }
.eyebrow, .kicker, .label { color: var(--zx-accent) !important; letter-spacing: .09em; }
.card, .wide, .step, .panel-card, .partner-card, .review, .review-card, .server-card, details, .faq, .join-card, .live-status {
  border: 1px solid var(--zx-line) !important;
  border-radius: 10px !important;
  background: var(--zx-surface) !important;
  box-shadow: 0 12px 34px #0002 !important;
}
.card, .wide, .step, .panel-card, .partner-card { padding: clamp(18px, 2vw, 26px); }
.card:hover, .wide:hover, .step:hover, .panel-card:hover, .partner-card:hover { border-color: #657966 !important; box-shadow: 0 15px 38px #0003 !important; }
.specs span, .tag, .chip { border-color: #435349 !important; border-radius: 6px !important; background: #202d25 !important; color: #dbe4d9 !important; }
.live-status-item { border-radius: 8px !important; background: #202c25 !important; }
.join-card { border-left: 3px solid var(--zx-accent) !important; }
input, textarea, select, .field, .auth-form input { border-color: #46544b !important; border-radius: 7px !important; background: #121a16 !important; color: var(--zx-text) !important; }
input:focus, textarea:focus, select:focus, .field:focus { outline: 2px solid var(--zx-accent) !important; }
.foot, .footer { border-top: 1px solid #ffffff14 !important; background: #0d1310 !important; color: var(--zx-muted) !important; }
.footlinks a, .footer-links a { color: #c1cbc1 !important; }
.topnote, .team-note { border-color: #809966 !important; border-radius: 7px !important; background: #c4e28c0b !important; color: #d5dfd4 !important; }
.minecraft-disclaimer.prominent { border-left-color: #bbd38c !important; border-radius: 0 6px 6px 0 !important; background: #c4e28c0a !important; color: #bec8bd !important; }

.zy-account { position: relative; z-index: 30; display: inline-flex; flex: 0 0 auto; }
.zy-account-trigger, .zy-account-menu a, .zy-profile-card, .zy-profile-identity, .zy-preferences-form .btn { transition: border-color .16s ease, background-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.zy-account-trigger:focus-visible, .zy-account-menu a:focus-visible { outline: 2px solid var(--zx-accent); outline-offset: 3px; }
.actions > a[hidden], .nav-actions > a[hidden] { display: none !important; }
.zy-account-trigger { display: inline-flex; min-height: 44px; align-items: center; gap: 9px; padding: 5px 12px 5px 6px; border: 1px solid #ffffff29; border-radius: 9px; background: #202c25; color: var(--zx-text); text-align: left; cursor: pointer; }
.zy-account-trigger:hover, .zy-account-trigger[aria-expanded="true"] { border-color: #b1cd8b; background: #29372d; }
.zy-account-avatar { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 7px; background: var(--zx-accent); color: #182119; font-size: 12px; font-weight: 850; }
.zy-account-copy { display: grid; min-width: 0; line-height: 1.2; }
.zy-account-copy strong { font-size: 12px; }
.zy-account-copy small { max-width: 145px; overflow: hidden; color: var(--zx-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.zy-account-chevron { color: #c4d0c3; font-size: 11px; }
.zy-account-menu { position: absolute; top: calc(100% + 10px); right: 0; width: min(360px, calc(100vw - 28px)); padding: 14px; border: 1px solid #46574a; border-radius: 11px; background: #18211c; box-shadow: 0 20px 55px #0009; }
.zy-account-menu[hidden] { display: none !important; }
.zy-account-menu:not([hidden]) { animation: zy-menu-in .15s ease-out both; transform-origin: top right; }
.zy-account-person { display: flex; align-items: center; gap: 11px; padding: 4px 3px 13px; border-bottom: 1px solid #ffffff16; }
.zy-account-person strong, .zy-account-person small { display: block; }
.zy-account-person small { margin-top: 2px; color: var(--zx-muted); font-size: 11px; }
.zy-account-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 0; }
.zy-account-stat { min-width: 0; padding: 10px; border: 1px solid #35443a; border-radius: 7px; background: #202b24; }
.zy-account-stat span, .zy-account-stat strong { display: block; }
.zy-account-stat span { color: var(--zx-muted); font-size: 10px; }
.zy-account-stat strong { margin-top: 4px; overflow-wrap: anywhere; font-size: 14px; }
.zy-account-stat small { display: block; margin-top: 3px; color: var(--zx-soft); font-size: 10px; }
.zy-account-links { display: grid; gap: 4px; padding-top: 8px; border-top: 1px solid #ffffff16; }
.zy-account-links a { display: flex; min-height: 38px; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 9px; border-radius: 6px; color: #e1e8df; font-size: 12px; }
.zy-account-links a:hover { background: #ffffff0b; color: var(--zx-accent); }
.zy-account-links .zy-account-subtle { color: var(--zx-muted); font-size: 10px; }
.zy-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 28px 0; }
.zy-profile-identity { display: flex; align-items: center; gap: 17px; margin-top: 26px; padding: 19px 22px; border: 1px solid var(--zx-line); border-radius: 10px; background: linear-gradient(115deg, #202c25, #17201b 72%); }
.zy-profile-avatar { display: grid; width: 52px; height: 52px; flex: 0 0 auto; place-items: center; border: 1px solid #d8e7be; border-radius: 50%; background: #c4e28c; color: #172118; font-size: 15px; font-weight: 850; }
.zy-profile-identity h2 { margin: 3px 0; color: var(--zx-text); font-size: 21px; letter-spacing: -.025em; }
.zy-profile-identity p { margin: 0; color: var(--zx-muted); font-size: 12px; }
.zy-profile-identity > a { margin-left: auto; white-space: nowrap; }
.zy-profile-card { min-height: 170px; padding: 22px; border: 1px solid var(--zx-line); border-radius: 10px; background: var(--zx-surface); }
.zy-profile-card { animation: zy-card-in .32s ease-out both; }
.zy-profile-card:nth-child(2) { animation-delay: 35ms; }
.zy-profile-card:nth-child(3) { animation-delay: 70ms; }
.zy-profile-card:nth-child(4) { animation-delay: 105ms; }
.zy-profile-card .zy-profile-label { color: var(--zx-muted); font-size: 12px; }
.zy-profile-card .zy-profile-value { display: block; margin: 10px 0 7px; color: var(--zx-text); font-size: clamp(22px, 3vw, 32px); font-weight: 780; letter-spacing: -.035em; overflow-wrap: anywhere; }
.zy-profile-card p { margin: 0; color: var(--zx-muted); font-size: 13px; }
.zy-profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.zy-profile-status { min-height: 24px; color: var(--zx-muted); font-size: 13px; }
.zy-profile-status.error { color: #ffaca4; }
.zy-profile-card.is-unavailable { border-style: dashed; }
.zy-preferences-form { display: grid; max-width: 520px; gap: 10px; margin-top: 20px; color: var(--zx-muted); font-size: 13px; }
.zy-preferences-form select { width: 100%; min-height: 44px; padding: 8px 11px; }
.zy-preference-check { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; color: var(--zx-text); }
.zy-preference-check input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--zx-accent); }
@keyframes zy-menu-in { from { opacity: 0; transform: translateY(-4px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes zy-card-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
html[data-site-density="compact"] body { line-height: 1.48; }
html[data-site-density="compact"] .card, html[data-site-density="compact"] .wide, html[data-site-density="compact"] .step, html[data-site-density="compact"] .panel-card, html[data-site-density="compact"] .partner-card { padding: 15px !important; }
html[data-site-density="compact"] .zy-profile-grid { gap: 9px; margin: 18px 0; }
html[data-site-density="compact"] .zy-profile-card { min-height: 135px; padding: 16px; }
html[data-site-density="compact"] .zy-profile-identity { margin-top: 18px; padding: 14px 17px; }
html[data-site-motion="reduced"] *, html[data-site-motion="reduced"] *::before, html[data-site-motion="reduced"] *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }

@media (max-width: 1050px) {
  .links, .navlinks { display: none !important; }
  .brand span { display: none; }
  .hamb { display: block !important; }
}
@media (max-width: 850px) {
  .links, .navlinks { display: none !important; }
  .actions, .nav-actions { gap: 7px; }
  .zy-profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .nav { min-height: 64px !important; }
  .actions > a.btn, .nav-actions > a.btn { display: none !important; }
  .zy-account-trigger { min-height: 40px; gap: 7px; padding-right: 8px; }
  .zy-account-avatar { width: 29px; height: 29px; }
  .zy-account-chevron { display: none; }
  .zy-account-menu { right: -3px; }
  .zy-profile-card { min-height: 145px; padding: 18px; }
  .zy-profile-identity { flex-wrap: wrap; gap: 11px; padding: 15px; }
  .zy-profile-identity > div { flex: 1 1 calc(100% - 64px); }
  .zy-profile-identity > a { margin-left: 63px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
