/* Shared ALDOM brand shell: one global family header, optional product bar. */
:root {
  --aldom-global-height: 60px;
  --aldom-product-height: 72px;
  --aldom-shell-bg: rgba(7, 12, 19, .84);
  --aldom-shell-border: rgba(255, 255, 255, .09);
  --aldom-shell-text: #f7fbff;
  --aldom-shell-sub: #a9b7c8;
}

.aldom-global-shell {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1200;
  min-width: 320px;
  height: calc(var(--aldom-global-height) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  color: var(--aldom-shell-text);
  background: var(--aldom-shell-bg);
  border-bottom: 1px solid var(--aldom-shell-border);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
}

.aldom-global-nav {
  width: min(1180px, calc(100% - 56px));
  height: var(--aldom-global-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.aldom-global-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  color: var(--aldom-shell-text);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.025em;
}

.aldom-global-brand img {
  width: 27px;
  height: 27px;
  border-radius: 7px;
}

.aldom-global-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.aldom-global-link,
.aldom-products summary {
  color: var(--aldom-shell-sub);
  font: 500 13px/1 var(--font-sans, Inter, sans-serif);
  transition: color .18s, background .18s;
}

.aldom-global-link:hover,
.aldom-global-link:focus-visible,
.aldom-products summary:hover,
.aldom-products summary:focus-visible { color: var(--aldom-shell-text); }

.aldom-products { position: relative; }
.aldom-products summary {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
}
.aldom-products summary::-webkit-details-marker { display: none; }
.aldom-products summary::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s;
}
.aldom-products[open] summary {
  color: var(--aldom-shell-text);
  background: rgba(255, 255, 255, .06);
  border-color: var(--aldom-shell-border);
}
.aldom-products[open] summary::after { transform: translateY(2px) rotate(225deg); }

.aldom-products-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(390px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 20px;
  background: rgba(10, 17, 27, .97);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
  backdrop-filter: blur(24px) saturate(155%);
}

.aldom-product-option {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border-radius: 14px;
  color: var(--aldom-shell-text);
  transition: background .18s, transform .18s;
}
.aldom-product-option:hover,
.aldom-product-option:focus-visible { background: rgba(255, 255, 255, .065); }
.aldom-product-option:active { transform: scale(.99); }
.aldom-product-option img,
.aldom-option-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.aldom-option-mark {
  display: grid;
  place-items: center;
  color: #08151c;
  background: linear-gradient(140deg, #4ade80, #60a5fa);
  font: 800 12px/1 var(--font-sans, Inter, sans-serif);
  box-shadow: 0 8px 24px rgba(74, 222, 128, .17);
}
.aldom-product-option span { min-width: 0; }
.aldom-product-option strong,
.aldom-product-option small { display: block; }
.aldom-product-option strong { font-size: 14px; font-weight: 600; }
.aldom-product-option small {
  margin-top: 2px;
  overflow: hidden;
  color: #8293a7;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aldom-option-arrow { color: #6f8299; font-size: 18px; }
.aldom-products-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--aldom-shell-border);
}
.aldom-products-footer a {
  padding: 9px 10px;
  color: var(--aldom-shell-sub);
  font-size: 12px;
  text-align: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, .04);
}
.aldom-products-footer a:hover,
.aldom-products-footer a:focus-visible { color: var(--aldom-shell-text); background: rgba(255, 255, 255, .075); }
.aldom-products-footer .aldom-owner-link { color: #a8eee5; }
.aldom-products-footer .aldom-owner-link-wide { grid-column: 1 / -1; }

/* One product-aware header: ALDOM / Product + local navigation. */
.single-product-nav {
  top: 0;
  z-index: 1200;
  padding-top: env(safe-area-inset-top);
}
.single-product-nav .nav-inner,
.network-page .single-product-nav .nav-inner,
.messenger-page .single-product-nav .nav-inner { max-width: 1320px; min-height: 72px; }
.network-page .single-product-nav .nav-links,
.messenger-page .single-product-nav .nav-links { gap: 18px; }
.family-product-lockup {
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: 10px;
}
.family-product-lockup .brand { font-size: 15px; }
.family-product-lockup .brand-mark,
.family-product-lockup .brand-mark-image { width: 29px; height: 29px; }
.family-product-separator { color: rgba(151, 170, 192, .38); font-size: 19px; font-weight: 300; }
.product-context {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -.02em;
}
.product-context:hover { color: var(--text); }
.product-context img { width: 30px; height: 30px; border-radius: 9px; }
.product-switcher summary { padding-inline: 9px; }
.single-product-nav .aldom-products-panel { right: 0; }
.mobile-menu-label {
  padding: 12px 6px 5px;
  color: var(--text-dim);
  font: 600 10px/1 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.mobile-menu .mobile-product-link {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
}
.mobile-product-link img { width: 30px; height: 30px; border-radius: 9px; }
.mobile-owner-link::before {
  content: '';
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid rgba(75, 221, 197, .3);
  border-radius: 9px;
  background: radial-gradient(circle, #54dac4 0 3px, rgba(84, 218, 196, .08) 4px 100%);
  box-shadow: inset 0 0 16px rgba(61, 214, 196, .08);
}

/* Hidden owner entrance: press and hold the ALDOM mark. */
.owner-easter-target { position: relative; -webkit-touch-callout: none; }
.owner-easter-target::after {
  content: '';
  position: absolute;
  inset: -6px;
  pointer-events: none;
  opacity: 0;
  border: 1px solid rgba(77, 224, 199, .18);
  border-radius: 13px;
  box-shadow: 0 0 0 0 rgba(77, 224, 199, .28), 0 0 24px rgba(77, 224, 199, 0);
}
.owner-easter-target.owner-pressing::after {
  animation: owner-unlock 1.35s linear forwards;
}
@keyframes owner-unlock {
  0% { opacity: .18; box-shadow: 0 0 0 0 rgba(77, 224, 199, .28), 0 0 24px rgba(77, 224, 199, 0); }
  75% { opacity: .8; box-shadow: 0 0 0 4px rgba(77, 224, 199, .14), 0 0 24px rgba(77, 224, 199, .12); }
  100% { opacity: 1; border-color: rgba(92, 242, 215, .72); box-shadow: 0 0 0 6px rgba(77, 224, 199, 0), 0 0 34px rgba(77, 224, 199, .28); }
}
.network-page section[id],
.network-page #aldom-vpn,
.network-page #aldom-noc,
.messenger-page .messenger-section { scroll-margin-top: 92px; }

.aldom-global-link:focus-visible,
.aldom-global-brand:focus-visible,
.aldom-products summary:focus-visible,
.aldom-product-option:focus-visible,
.product-context:focus-visible,
.family-product-lockup .brand:focus-visible {
  outline: 2px solid #67e8f0;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  :root { --aldom-global-height: 56px; --aldom-product-height: 66px; }
  .aldom-global-nav { width: calc(100% - 34px); gap: 12px; }
  .aldom-global-links { gap: 8px; }
  .aldom-global-link { display: none; }
  .aldom-products summary { min-height: 38px; padding-inline: 10px; }
  .aldom-products-panel { position: fixed; top: calc(56px + env(safe-area-inset-top) + 8px); right: 17px; }
  .family-product-lockup { gap: 7px; }
  .family-product-lockup .brand span:last-child { display: none; }
  .product-context { font-size: 13px; }
}

@media (max-width: 420px) {
  .aldom-product-option { grid-template-columns: 38px minmax(0, 1fr) auto; padding: 9px; }
  .aldom-product-option img,
  .aldom-option-mark { width: 38px; height: 38px; border-radius: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .aldom-products summary::after,
  .aldom-product-option { transition: none; }
  .owner-easter-target.owner-pressing::after { animation: none; opacity: .8; }
}
