/* Shared Top Navigation, Golden Privacy Shield, Mobile Drawer & Privacy Modal */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem clamp(1.2rem, 4vw, 2.5rem);
  gap: 1rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
:root[data-theme="dark"] .top-nav {
  background: #0d0f24;
  border-bottom: 1px solid #2a2d52;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}
.brand-link:hover {
  color: #ffffff;
}
.brand-logo-img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: block;
}
.brand-beta-sup {
  font-size: 0.55em;
  font-weight: 700;
  vertical-align: super;
  line-height: 0;
  margin-left: 0.2rem;
  letter-spacing: 0.05em;
  color: var(--sun, #c15c2d);
  text-transform: uppercase;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.nav-links a {
  color: var(--mute);
  text-decoration: none !important;
  font-weight: 500;
  font-size: 0.88rem;
  transition: color 0.15s ease;
}
.nav-links a:hover {
  color: var(--ink);
}
.top-nav a,
.top-nav a:hover,
.top-nav a:focus,
.top-nav a.active,
.brand-link,
.brand-link:hover,
.brand-link:focus,
.nav-links a,
.nav-links a:hover,
.nav-links a.active,
.nav-links a:focus {
  text-decoration: none !important;
}
.nav-links a.active {
  color: #ffffff;
  font-weight: 700;
}
.nav-links a.nav-highlight {
  color: var(--action);
  font-weight: 700;
}

/* Coffee & Day Mode - Dark Roast Espresso Menu Bar & Gold Typography */
:root[data-theme="light"] .top-nav,
:root[data-theme="day"] .top-nav {
  background: #1E130B !important;
  border-bottom: 1px solid rgba(235, 184, 78, 0.25) !important;
}
:root[data-theme="light"] .brand-link,
:root[data-theme="day"] .brand-link {
  color: #FBF6EC !important;
}
:root[data-theme="light"] .brand-link:hover,
:root[data-theme="day"] .brand-link:hover {
  color: #F3C86A !important;
}
:root[data-theme="light"] .top-nav .brand-link sup,
:root[data-theme="day"] .top-nav .brand-link sup {
  color: #EBB84E !important;
}
:root[data-theme="light"] .nav-links a,
:root[data-theme="day"] .nav-links a {
  color: #E4D2B0 !important;
}
:root[data-theme="light"] .nav-links a:hover,
:root[data-theme="day"] .nav-links a:hover {
  color: #FBF6EC !important;
}
:root[data-theme="light"] .nav-links a.active,
:root[data-theme="day"] .nav-links a.active,
:root[data-theme="light"] .nav-links a.nav-highlight,
:root[data-theme="day"] .nav-links a.nav-highlight {
  color: #EBB84E !important;
}
:root[data-theme="light"] .nav-links a.active:hover,
:root[data-theme="day"] .nav-links a.active:hover,
:root[data-theme="light"] .nav-links a.nav-highlight:hover,
:root[data-theme="day"] .nav-links a.nav-highlight:hover {
  color: #F3C86A !important;
}

/* Navbar Icon Buttons */
.btn-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  flex-shrink: 0;
}
.btn-icon:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
}
:root[data-theme="light"] .btn-icon,
:root[data-theme="day"] .btn-icon {
  background: rgba(235, 184, 78, 0.10) !important;
  border: 1px solid rgba(235, 184, 78, 0.30) !important;
  color: #FBF6EC !important;
}
:root[data-theme="light"] .btn-icon:hover,
:root[data-theme="day"] .btn-icon:hover {
  background: rgba(235, 184, 78, 0.22) !important;
  border-color: #EBB84E !important;
  color: #EBB84E !important;
}

/* Navbar Golden Privacy Shield Circle Button */
.nav-privacy-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  background: linear-gradient(135deg, #F5D06F 0%, #E6AA36 100%);
  color: #753208;
  border: 1px solid #C88C1E;
  box-shadow: 0 2px 10px rgba(235, 184, 78, 0.28), inset 0 1px 0 rgba(255, 250, 230, 0.65);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.nav-privacy-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 14px rgba(235, 184, 78, 0.48), inset 0 1px 0 rgba(255, 250, 230, 0.75);
}
.nav-privacy-btn:focus-visible {
  outline: 2px solid #F3C86A;
  outline-offset: 2px;
}

/* Mobile Navigation & Drawer Base */
.mobile-menu-btn { display: none; }
.mobile-drawer { display: none; }

@media (max-width: 820px) {
  .top-nav {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.45rem clamp(1rem, 4vw, 1.5rem) !important;
  }
  .nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.55rem !important;
  }
  .nav-links {
    display: none !important;
  }
  .mobile-menu-btn {
    display: inline-flex !important;
  }

  .mobile-drawer {
    display: block !important;
    position: fixed !important;
    top: 56px !important;
    left: 0 !important;
    right: 0 !important;
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 16px 36px rgba(44, 24, 16, 0.14);
    z-index: 9999 !important;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, transform 0.25s ease;
  }
  .mobile-drawer.is-open {
    max-height: 480px !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  .drawer-inner {
    padding: 1.15rem 1.5rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }
  .drawer-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0.6rem;
    color: var(--ink);
    text-decoration: none !important;
    font-size: 1.05rem;
    font-weight: 600;
    border-bottom: 1px solid var(--rule);
    transition: color 0.15s ease, background 0.15s ease;
    border-radius: 6px;
  }
  .drawer-link:hover, .drawer-link:active {
    color: var(--ink);
    background: rgba(44, 24, 16, 0.04);
  }
  :root[data-theme="dark"] .drawer-link:hover,
  :root[data-theme="dark"] .drawer-link:active {
    background: rgba(236, 237, 250, 0.06);
  }
  .drawer-link.drawer-highlight {
    color: var(--action, #ff5e00);
    font-weight: 700;
  }
  .drawer-arrow {
    font-size: 1.15rem;
    color: var(--mute);
  }
  .drawer-cta-wrap {
    margin-top: 0.85rem;
    padding-top: 0.25rem;
  }
  .drawer-btn {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1.25rem;
    font-family: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: #c15c2d;
    border: 1px solid #c15c2d;
    color: #ffffff;
    box-sizing: border-box;
  }
  .drawer-btn:hover {
    background: #d26b3c;
    border-color: #d26b3c;
    color: #ffffff;
  }

  :root[data-theme="light"] .mobile-drawer,
  :root[data-theme="day"] .mobile-drawer {
    background: #1E130B;
    border-bottom: 1px solid rgba(235, 184, 78, 0.25);
    box-shadow: 0 16px 36px rgba(30, 19, 11, 0.35);
  }
  :root[data-theme="light"] .drawer-link,
  :root[data-theme="day"] .drawer-link {
    color: #FBF6EC;
    border-bottom: 1px solid rgba(235, 184, 78, 0.14);
  }
  :root[data-theme="light"] .drawer-link:hover,
  :root[data-theme="light"] .drawer-link:active,
  :root[data-theme="day"] .drawer-link:hover,
  :root[data-theme="day"] .drawer-link:active {
    background: rgba(235, 184, 78, 0.12);
    color: #EBB84E;
  }
  :root[data-theme="light"] .drawer-link.drawer-highlight,
  :root[data-theme="day"] .drawer-link.drawer-highlight {
    color: #EBB84E !important;
    font-weight: 700;
  }
  :root[data-theme="light"] .drawer-arrow,
  :root[data-theme="day"] .drawer-arrow {
    color: #E4D2B0;
  }
  :root[data-theme="light"] .drawer-btn,
  :root[data-theme="day"] .drawer-btn {
    background: #EBB84E;
    color: #1E130B;
    border-color: #C8942E;
  }
  :root[data-theme="light"] .drawer-btn:hover,
  :root[data-theme="day"] .drawer-btn:hover {
    background: #F3C86A;
    border-color: #B88322;
    color: #1E130B;
  }
}

/* Privacy Details Modal */
.privacy-modal-overlay[hidden] {
  display: none !important;
}
.privacy-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(7, 9, 24, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.privacy-modal-overlay.is-open {
  opacity: 1;
}
.privacy-modal-card {
  width: 100%;
  max-width: 440px;
  max-height: calc(100dvh - 2.5rem);
  overflow-y: auto;
  border-radius: 18px;
  padding: 1.5rem 1.5rem 1.35rem;
  background: #131636;
  color: #ecedfa;
  border: 1px solid rgba(235, 184, 78, 0.34);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 28px rgba(235, 184, 78, 0.10);
  transform: translateY(8px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}
.privacy-modal-overlay.is-open .privacy-modal-card {
  transform: translateY(0) scale(1);
}
.privacy-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}
.privacy-modal-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.privacy-modal-badge {
  width: 36px;
  height: 36px;
  margin-top: -0.12rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #F5D06F 0%, #E6AA36 100%);
  color: #753208;
  border: 1px solid #C88C1E;
  box-shadow: 0 3px 12px rgba(235, 184, 78, 0.26);
}
.privacy-modal-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  color: #ffffff;
}
.privacy-modal-sub {
  font-size: 0.85rem;
  color: #a1a4c4;
  margin: 0.2rem 0 0;
}
.privacy-modal-close {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(236, 237, 250, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #a1a4c4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.privacy-modal-close:hover {
  color: #ffffff;
  border-color: rgba(235, 184, 78, 0.55);
  background: rgba(235, 184, 78, 0.14);
}
.privacy-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(236, 237, 250, 0.10);
}
.privacy-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.72rem;
  padding: 0.78rem 0;
  border-bottom: 1px solid rgba(236, 237, 250, 0.10);
}
.privacy-feature-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
  background: rgba(235, 184, 78, 0.14);
  border: 1px solid rgba(235, 184, 78, 0.36);
  color: #F5D06F;
}
.privacy-feature-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: #ecedfa;
  line-height: 1.3;
}
.privacy-feature-desc {
  font-size: 0.84rem;
  color: #a1a4c4;
  line-height: 1.45;
  margin-top: 0.15rem;
}
.privacy-modal-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.05rem;
}
.privacy-modal-done {
  font: 700 0.88rem "Hanken Grotesk", sans-serif;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(135deg, #F5D06F 0%, #E6AA36 100%);
  color: #0d0f24;
  border: 1px solid #C88C1E;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.privacy-modal-done:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(235, 184, 78, 0.30);
}

/* Coffee & Day Mode Modal Theme */
:root[data-theme="light"] .privacy-modal-overlay,
:root[data-theme="day"] .privacy-modal-overlay {
  background: rgba(30, 19, 11, 0.56);
}
:root[data-theme="light"] .privacy-modal-card,
:root[data-theme="day"] .privacy-modal-card {
  background: #FAF0D8;
  color: #362315;
  border: 1px solid rgba(156, 102, 17, 0.42);
  box-shadow: 0 24px 60px rgba(30, 19, 11, 0.28), 0 0 0 1px rgba(255, 250, 232, 0.5) inset;
}
:root[data-theme="light"] .privacy-modal-title,
:root[data-theme="day"] .privacy-modal-title {
  color: #1E130B;
}
:root[data-theme="light"] .privacy-modal-sub,
:root[data-theme="day"] .privacy-modal-sub {
  color: #5D412C;
}
:root[data-theme="light"] .privacy-modal-close,
:root[data-theme="day"] .privacy-modal-close {
  background: rgba(140, 92, 28, 0.08);
  border-color: rgba(140, 92, 28, 0.26);
  color: #5D412C;
}
:root[data-theme="light"] .privacy-modal-close:hover,
:root[data-theme="day"] .privacy-modal-close:hover {
  background: rgba(140, 92, 28, 0.16);
  border-color: #9C6611;
  color: #1E130B;
}
:root[data-theme="light"] .privacy-feature-list,
:root[data-theme="day"] .privacy-feature-list,
:root[data-theme="light"] .privacy-feature-item,
:root[data-theme="day"] .privacy-feature-item {
  border-color: rgba(140, 92, 28, 0.18);
}
:root[data-theme="light"] .privacy-feature-dot,
:root[data-theme="day"] .privacy-feature-dot {
  background: rgba(235, 184, 78, 0.26);
  border-color: rgba(156, 102, 17, 0.42);
  color: #8F3F0C;
}
:root[data-theme="light"] .privacy-feature-title,
:root[data-theme="day"] .privacy-feature-title {
  color: #1E130B;
}
:root[data-theme="light"] .privacy-feature-desc,
:root[data-theme="day"] .privacy-feature-desc {
  color: #5D412C;
}
:root[data-theme="light"] .privacy-modal-done,
:root[data-theme="day"] .privacy-modal-done {
  background: #8F3F0C;
  border-color: #753208;
  color: #FAF0D8;
}
:root[data-theme="light"] .privacy-modal-done:hover,
:root[data-theme="day"] .privacy-modal-done:hover {
  background: #A64B12;
  box-shadow: 0 4px 14px rgba(117, 50, 8, 0.25);
}
