.site-header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:70;
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:12px clamp(18px,4vw,72px);
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:inherit;
  text-decoration:none;
}
.brand-icon{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
}
.brand-icon svg{width:46px;height:46px;display:block}
.brand strong{display:block;font-size:22px;line-height:1.1}
.brand small{display:block;font-size:12px;margin-top:3px}
.site-nav,.footer-links{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}
.site-nav a,.footer-links a{
  color:inherit;
  text-decoration:none;
  font-weight:800;
}
.header-actions{display:flex;align-items:center;gap:10px}
.mobile-menu-toggle{
  display:none;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid rgba(148,163,184,.24);
  border-radius:14px;
  background:rgba(255,255,255,.92);
  color:#0f172a;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  box-shadow:0 10px 24px rgba(15,23,42,.08);
}
.mobile-menu-toggle span{
  display:block;
  width:19px;
  height:2px;
  border-radius:999px;
  background:currentColor;
  transition:.2s ease;
}
.is-menu-open .mobile-menu-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.is-menu-open .mobile-menu-toggle span:nth-child(2){opacity:0}
.is-menu-open .mobile-menu-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 16px;
  border-radius:10px;
  text-decoration:none;
  font-weight:900;
}
.btn-primary{background:linear-gradient(135deg,#10b981,#2563eb);color:#fff}
.btn-ghost{background:#fff;color:#0f172a;border:1px solid #e2e8f0}
.site-footer{
  display:block;
  padding:0;
  background:
    radial-gradient(circle at 88% 20%,rgba(37,99,235,.18),transparent 28%),
    linear-gradient(135deg,#061225 0%,#071425 58%,#06111f 100%);
  border-top:1px solid rgba(148,163,184,.18);
  color:#cbd5e1;
  overflow:hidden;
}
.footer-grid{
  width:min(1180px,calc(100% - 32px));
  margin:auto;
  padding:24px 0 14px;
  display:grid;
  grid-template-columns:minmax(260px,1.15fr) minmax(220px,.95fr) minmax(220px,.9fr);
  gap:20px;
  align-items:start;
}
.footer-col{display:grid;gap:8px;align-content:start}
.site-footer strong{color:#fff;font-size:20px;line-height:1.2}
.site-footer p{margin:0;color:#9fb0c8;line-height:1.6;font-size:13px}
.footer-col h3{margin:0;color:#fff;font-size:14px;font-weight:900}
.site-footer a{font-weight:800;color:#dbeafe;text-decoration:none;font-size:13px}
.site-footer .footer-links{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.site-footer .social-links{gap:8px}
.site-footer .social-links a{
  width:36px;
  height:36px;
  border-radius:10px;
  color:#fff;
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.16);
}
.site-footer .social-links a:hover,
.site-footer a:hover{color:#fff}
.copyright-row{
  border-top:1px solid rgba(255,255,255,.1);
  padding:8px clamp(18px,4vw,72px);
  color:#8ea0b8;
  text-align:center;
  font-size:12px;
}
.support-float{
  position:fixed;
  left:20px;
  bottom:88px;
  z-index:80;
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:48px;
  padding:12px 16px;
  border-radius:999px;
  background:linear-gradient(135deg,#10b981,#2563eb);
  color:#fff;
  font-weight:800;
  text-decoration:none;
  box-shadow:0 18px 44px rgba(37,99,235,.28);
}
.support-float:hover{transform:translateY(-1px)}
.support-float span{font-size:18px}
.social-links{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.social-links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  padding:0;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.08);
  color:#fff;
  font-weight:800;
}
.social-links a:hover{background:linear-gradient(135deg,#10b981,#2563eb);transform:translateY(-1px)}
.social-links svg{width:20px;height:20px;display:block;fill:currentColor}
.legal-layout{
  padding-top:96px;
}
.legal-header{
  color:#0f172a;
  background:rgba(255,255,255,.92);
  box-shadow:0 12px 34px rgba(15,23,42,.08);
}
.legal-header .brand strong{color:#0f172a}
.legal-header .brand small{color:#64748b}
.legal-header .site-nav{color:#334155}
.legal-header .btn-ghost{border-color:#e2e8f0}
@media(max-width:760px){
  .site-header,.auth-header{
    position:relative;
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }
  .site-header .brand,.auth-header .auth-brand,.auth-header .auth-site-brand{order:1}
  .mobile-menu-toggle{order:2}
  .mobile-menu-toggle{display:flex}
  .site-header .site-nav,
  .auth-header .auth-nav{
    order:3;
    display:none!important;
    width:100%;
    padding:10px;
    border:1px solid rgba(148,163,184,.18);
    border-radius:16px;
    background:rgba(255,255,255,.92);
    color:#0f172a;
    box-shadow:0 14px 32px rgba(15,23,42,.08);
  }
  .site-header.is-menu-open .site-nav,
  .auth-header.is-menu-open .auth-nav{
    display:grid!important;
    grid-template-columns:1fr;
    gap:4px;
  }
  .site-header .site-nav a,
  .auth-header .auth-nav a{
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:40px;
    padding:8px 10px;
    border-radius:10px;
    color:#0f172a;
  }
  .site-header .site-nav a:hover,
  .auth-header .auth-nav a:hover{background:#f1f5f9}
  .site-header .header-actions,
  .auth-header .header-actions{
    order:4;
    display:none;
    width:100%;
    padding:10px;
    margin-top:-8px;
    border:1px solid rgba(148,163,184,.18);
    border-top:0;
    border-radius:0 0 16px 16px;
    background:rgba(255,255,255,.92);
    box-shadow:0 14px 32px rgba(15,23,42,.08);
    justify-content:stretch;
  }
  .site-header.is-menu-open .header-actions,
  .auth-header.is-menu-open .header-actions{display:flex}
  .site-header.is-menu-open .site-nav,
  .auth-header.is-menu-open .auth-nav{
    border-radius:16px 16px 0 0;
  }
  .site-header .header-actions .btn,
  .auth-header .header-actions .btn{flex:1}
  .legal-layout{padding-top:0}
  .footer-grid{grid-template-columns:1fr;text-align:center;padding:20px 0 10px;gap:14px}
  .site-footer p{max-width:38ch;margin:auto}
  .site-footer .footer-links,.site-footer .social-links{justify-content:center}
  .site-footer .footer-links{gap:8px}
  .site-footer .footer-links a{
    padding:6px 9px;
    border-radius:999px;
    background:rgba(255,255,255,.06);
  }
  .copyright-row{padding:8px 16px;font-size:11px}
  .support-float{left:12px;bottom:78px;padding:10px 12px;font-size:12px}
  .support-float strong{display:none}
}
