.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(10,10,12,.72);
  backdrop-filter: blur(10px);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
}

.topbar * { box-sizing: border-box; margin: 0; }
.topbar a { color: inherit; text-decoration: none; }
.topbar-container { width: min(92%, 1180px); margin: 0 auto; }
.topbar-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 46px; height: 46px; flex-shrink: 0; object-fit: contain; border-radius: 50%; background: rgba(255,255,255,.03); box-shadow: 0 0 14px rgba(242,183,5,.35); }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-title { color: #f5f1eb; font-size: 1.3rem; font-weight: 800; line-height: 1.5; letter-spacing: .18em; }
.brand-subtitle { color: #c7c2bb; font-size: .78rem; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav > a, .nav-dropdown-toggle { color: var(--muted); font-size: .95rem; transition: color .2s ease; }
.nav > a:hover, .nav > a:focus-visible, .nav-dropdown-toggle:hover, .nav-dropdown-toggle:focus-visible, .nav-dropdown.is-open .nav-dropdown-toggle { color: white; }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: flex; align-items: center; gap: 7px; padding: 10px 0; border: 0; background: transparent; font-family: inherit; cursor: pointer; }
.nav-dropdown-arrow { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.nav-dropdown.is-open .nav-dropdown-arrow { transform: translateY(2px) rotate(225deg); }
.nav-dropdown-menu { position: absolute; top: calc(100% + 8px); left: 50%; width: 290px; padding: 8px; border: 1px solid var(--border); border-radius: 16px; background: rgba(18,18,22,.98); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown.is-open .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-dropdown-menu a { display: block; padding: 11px 12px; border-radius: 10px; color: var(--muted); line-height: 1.3; }
.nav-dropdown-menu a:hover, .nav-dropdown-menu a:focus-visible { color: white; background: rgba(255,255,255,.08); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-button, .menu-toggle { min-height: 44px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: white; background: rgba(255,255,255,.08); font-family: inherit; font-size: .9rem; font-weight: 800; }
.topbar-button { display: inline-flex; padding: 14px 22px; font-size: .98rem; font-weight: 700; transition: transform .2s ease; }
.topbar-button:hover, .topbar-button:focus-visible { transform: translateY(-2px); }
.menu-toggle { display: none; gap: 8px; padding: 10px 14px; cursor: pointer; }
.menu-toggle-icon { position: relative; width: 17px; height: 12px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.menu-toggle-icon::after { content: ""; position: absolute; top: 4px; left: 0; width: 100%; border-top: 2px solid currentColor; }
.mobile-nav { display: none; }

@media (max-width: 720px) {
  .nav, .topbar-button { display: none; }
  .menu-toggle { display: inline-flex; }
  .topbar .topbar-inner {
    flex-wrap: nowrap !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .topbar .brand { min-width: 0; }
  .topbar .brand-title { font-weight: 900 !important; }
  .topbar .topbar-actions {
    width: auto !important;
    margin-left: auto;
    padding-bottom: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
    flex: 0 0 auto;
  }
  .mobile-nav.is-open { width: min(92%, 1180px); margin: 0 auto; padding: 8px 0 16px; display: grid; border-top: 1px solid rgba(255,255,255,.08); }
  .mobile-nav a { min-height: 46px; display: flex; align-items: center; padding: 8px 4px; border-bottom: 1px solid rgba(255,255,255,.08); color: var(--muted); font-size: 18px; font-weight: 700; }
  .mobile-nav a:last-child { border-bottom: 0; }
  .mobile-nav a:hover, .mobile-nav a:focus-visible { color: white; }
  .mobile-nav-group { padding: 12px 0 6px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .mobile-nav-group > span { display: block; padding: 2px 4px 7px; color: white; font-size: 18px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .mobile-nav-group a { min-height: 42px; padding-left: 18px; border-bottom: 0; font-weight: 600; }
}

@media (max-width: 390px) {
  .topbar-inner { gap: 10px; }
  .brand { min-width: 0; gap: 8px; }
  .brand-logo { width: 40px; height: 40px; }
  .brand-title { font-size: 1.05rem; }
  .brand-subtitle { display: none; }
  .menu-toggle { padding: 9px 12px; }
}
