/* Shared navbar — all external pages (except dashboard) */
:root { --accent: #3ecf8e; }
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 0 24px; height: 56px;
  background: rgba(26,26,26,.85); backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 0.5px solid rgba(255,255,255,.08);
  display: flex; align-items: center;
}
.navbar .inner {
  display: flex; align-items: center; gap: 20px;
  max-width: 100%; margin: 0 auto; width: 100%;
}
.navbar .logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700;
  text-decoration: none; color: #f4f4f4; white-space: nowrap;
}
.navbar .logo svg { flex-shrink: 0; }
.navbar .logo .badge {
  font-size: 10px; color: #3ecf8e;
  background: rgba(62,207,142,.12);
  padding: 1px 7px; border-radius: 99px; font-weight: 600;
}
.navbar .nav-links {
  display: flex; align-items: center; gap: 2px;
  flex-shrink: 0;
}
.navbar .nav-links a {
  font-size: 13px; color: #999;
  text-decoration: none; padding: 4px 10px;
  border-radius: 8px; transition: color .2s, background .2s;
  white-space: nowrap;
}
.navbar .nav-links a:hover { color: #f4f4f4; background: rgba(255,255,255,.04); }
.navbar .nav-right {
  display: flex; align-items: center; gap: 12px;
  margin-left: auto; flex-shrink: 0;
}
.navbar .nav-search { position: relative; }
.navbar .nav-search input {
  width: 200px; height: 32px; padding: 0 12px 0 32px;
  border-radius: 8px; border: 0.5px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06);
  color: #f4f4f4; font-size: 12px; font-family: inherit;
  outline: none; transition: border-color .2s, width .2s;
}
.navbar .nav-search input::placeholder { color: #666; }
.navbar .nav-search input:focus {
  border-color: #3ecf8e; width: 260px;
  background: rgba(255,255,255,.08);
}
.navbar .nav-search::before {
  content: ''; position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") center/contain no-repeat;
}
.search-results {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #212121; border: 0.5px solid rgba(255,255,255,.1);
  border-radius: 10px; overflow: hidden; display: none;
  z-index: 100; box-shadow: 0 8px 32px rgba(0,0,0,.4);
  max-height: 360px; overflow-y: auto;
}
.search-results::-webkit-scrollbar { width: 4px; }
.search-results::-webkit-scrollbar-track { background: transparent; }
.search-results::-webkit-scrollbar-thumb { background: #444; border-radius: 2px; }
.search-results::-webkit-scrollbar-thumb:hover { background: #666; }
.search-results { scrollbar-width: thin; scrollbar-color: #444 transparent; }
.search-results.active { display: block; }
.search-results a {
  display: block; padding: 8px 12px;
  font-size: 12px; color: #ccc; text-decoration: none;
  border-bottom: 0.5px solid rgba(255,255,255,.04);
  transition: background .15s;
}
.search-results a:last-child { border-bottom: none; }
.search-results a:hover { background: rgba(62,207,142,.08); color: #fff; }
.search-results a small { display: block; font-size: 10px; color: #666; margin-top: 1px; }
.search-results .search-empty {
  padding: 16px; text-align: center; font-size: 11px; color: #666;
}
.search-results .search-section {
  padding: 6px 12px 2px; font-size: 10px; font-weight: 700;
  color: #3ecf8e; text-transform: uppercase; letter-spacing: .04em;
}
.search-results .search-all {
  display: block; padding: 8px 12px; font-size: 11px; color: #3ecf8e;
  text-decoration: none; text-align: center; border-top: 0.5px solid rgba(255,255,255,.06);
  transition: background .15s;
}
.search-results .search-all:hover { background: rgba(62,207,142,.08); }
.navbar .nav-cta {
  background: #3ecf8e; color: #fff;
  padding: 6px 18px; border-radius: 99px;
  font-weight: 600; font-size: 12px;
  border: none; cursor: pointer; transition: opacity .2s;
  white-space: nowrap; text-decoration: none; display: inline-block;
}
.navbar .nav-cta:hover { opacity: .85; }
.nav-burger {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block; width: 18px; height: 1.5px;
  background: #999; border-radius: 1px;
  transition: transform .2s, opacity .2s;
}
.nav-mobile {
  display: none; position: fixed; top: 56px; left: 0; right: 0;
  background: rgba(26,26,26,.97); backdrop-filter: blur(20px);
  border-bottom: 0.5px solid rgba(255,255,255,.08);
  padding: 8px; z-index: 49;
}
.nav-mobile.active { display: flex; flex-direction: column; gap: 2px; }
.nav-mobile a {
  display: block; padding: 10px 16px; font-size: 14px; color: #ccc;
  text-decoration: none; border-radius: 8px;
}
.nav-mobile a:hover { background: rgba(255,255,255,.04); color: #fff; }

@media (max-width: 900px) {
  .navbar .nav-links { display: none; }
  .navbar .nav-search input { width: 160px; }
  .navbar .nav-search input:focus { width: 200px; }
  .nav-burger { display: flex; }
}
@media (max-width: 640px) {
  .navbar { padding: 0 16px; }
  .navbar .nav-links { display: none; }
  .navbar .nav-search { display: none; }
  .navbar .nav-search.visible-mobile { display: block; }
  .navbar .nav-search input { width: 160px; }
  .navbar .nav-search input:focus { width: 100%; }
  .nav-burger { display: flex; }
}

@media (prefers-color-scheme: light) {
  .navbar { background: rgba(255,255,255,.85); border-bottom-color: rgba(0,0,0,.06); }
  .navbar .logo { color: #1a1a26; }
  .navbar .logo .badge { color: #059669; background: rgba(5,150,105,.1); }
  .navbar .nav-links a { color: #666; }
  .navbar .nav-links a:hover { color: #1a1a26; background: rgba(0,0,0,.04); }
  .navbar .nav-search input { background: rgba(0,0,0,.04); color: #1a1a26; border-color: rgba(0,0,0,.1); }
  .navbar .nav-search input::placeholder { color: #999; }
  .navbar .nav-search input:focus { border-color: #059669; background: rgba(0,0,0,.06); }
  .search-results { background: #fff; border-color: rgba(0,0,0,.1); }
  .search-results a { color: #555; border-bottom-color: rgba(0,0,0,.04); }
  .search-results a:hover { background: rgba(5,150,105,.06); color: #1a1a26; }
  .search-results a small { color: #999; }
  .search-results .search-empty { color: #999; }
  .search-results .search-section { color: #059669; }
  .search-results .search-all { color: #059669; border-top-color: rgba(0,0,0,.06); }
  .search-results .search-all:hover { background: rgba(5,150,105,.06); }
  .search-results::-webkit-scrollbar-thumb { background: #ccc; }
  .search-results::-webkit-scrollbar-thumb:hover { background: #aaa; }
  .navbar .nav-cta { background: #059669; }
  .nav-mobile { background: rgba(255,255,255,.97); border-bottom-color: rgba(0,0,0,.08); }
  .nav-mobile a { color: #555; }
  .nav-mobile a:hover { background: rgba(0,0,0,.04); color: #1a1a26; }
  .nav-burger span { background: #666; }
}

/* Unified site footer (injected by nav.js on all external pages) */
.site-footer { background: #0f0f0f; border-top: 0.5px solid rgba(255,255,255,.08); color: #888; font-size: 13px; text-align: left; }
.site-footer .sf-inner { max-width: 1120px; margin: 0 auto; padding: 48px 24px 24px; display: grid; grid-template-columns: 1.4fr 2.6fr; gap: 40px; }
.site-footer .sf-brand .sf-logo { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: #f4f4f4; text-decoration: none; }
.site-footer .sf-brand .sf-logo .badge { font-size: 10px; color: #3ecf8e; background: rgba(62,207,142,.12); padding: 1px 7px; border-radius: 99px; font-weight: 600; }
.site-footer .sf-tag { margin-top: 12px; color: #888; font-size: 13px; line-height: 1.6; max-width: 320px; text-align: left; }
.site-footer .sf-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.site-footer .sf-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #bbb; margin-bottom: 12px; font-weight: 700; }
.site-footer .sf-col a { display: block; color: #888; text-decoration: none; margin-bottom: 8px; font-size: 13px; transition: color .15s; }
.site-footer .sf-col a:hover { color: #3ecf8e; }
.site-footer .sf-bottom { max-width: 1120px; margin: 0 auto; padding: 16px 24px 28px; border-top: 0.5px solid rgba(255,255,255,.06); display: flex; justify-content: space-between; align-items: center; color: #666; font-size: 12px; }
.site-footer .sf-bottom a { color: #888; text-decoration: none; }
.site-footer .sf-bottom a:hover { color: #3ecf8e; }
.site-footer .sf-social { display: flex; gap: 10px; margin-top: 14px; }
.site-footer .sf-social a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; color: #888; background: rgba(255,255,255,.04); border: 0.5px solid rgba(255,255,255,.08); transition: color .15s, background .15s, transform .15s; }
.site-footer .sf-social a:hover { color: #3ecf8e; background: rgba(62,207,142,.1); transform: translateY(-1px); }
@media (max-width: 820px) {
  .site-footer .sf-inner { grid-template-columns: 1fr; gap: 28px; }
  .site-footer .sf-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .site-footer .sf-cols { grid-template-columns: 1fr; }
  .site-footer .sf-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (prefers-color-scheme: light) {
  .site-footer { background: #f7f7f9; border-top-color: rgba(0,0,0,.07); }
  .site-footer .sf-brand .sf-logo { color: #1a1a26; }
  .site-footer .sf-col h4 { color: #555; }
  .site-footer .sf-col a { color: #666; }
  .site-footer .sf-col a:hover { color: #059669; }
  .site-footer .sf-bottom { border-top-color: rgba(0,0,0,.07); color: #999; }
  .site-footer .sf-bottom a { color: #999; }
  .site-footer .sf-bottom a:hover { color: #059669; }
  .site-footer .sf-social a { color: #666; background: rgba(0,0,0,.03); border-color: rgba(0,0,0,.08); }
  .site-footer .sf-social a:hover { color: #059669; background: rgba(5,150,105,.08); }
}

/* Shared auth modal — used by all external pages (nav.js opens #authModal) */
.auth-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:100;align-items:center;justify-content:center;padding:20px}
.auth-modal{background:#171717;border-radius:16px;max-width:400px;width:100%;padding:24px;position:relative;border:0.5px solid rgba(255,255,255,.08)}
.auth-close{position:absolute;top:12px;right:12px;background:none;border:none;color:#a3a3a3;font-size:18px;cursor:pointer;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:6px}
.auth-close:hover{color:#f4f4f4;background:rgba(255,255,255,.08)}
.auth-title{margin:0 0 16px;font-size:18px;font-weight:700;color:#f4f4f4}
.auth-tabs{display:flex;gap:0;margin-bottom:16px;border-bottom:0.5px solid rgba(255,255,255,.08)}
.auth-tab{flex:1;padding:8px;background:none;border:none;color:#a3a3a3;font-size:14px;cursor:pointer;border-bottom:2px solid transparent}
.auth-tab.active{color:#f4f4f4;border-bottom-color:#3ecf8e}
.auth-input{width:100%;padding:10px 12px;border-radius:8px;border:0.5px solid rgba(255,255,255,.1);background:rgba(255,255,255,.04);color:#f4f4f4;font-size:14px;outline:none;box-sizing:border-box;margin-bottom:12px}
.auth-input:last-of-type{margin-bottom:16px}
.auth-submit{width:100%;padding:10px;background:#3ecf8e;border:none;border-radius:8px;color:#08130d;font-weight:600;font-size:14px;cursor:pointer}
.auth-submit:hover{opacity:.92}
.auth-error{color:#f87171;font-size:12px;display:block;margin-top:8px}
