/* ===== Common Layout Styles for header_new / footer_new ===== */
:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255,255,255,0.95);
  --border: rgba(0,123,255,0.12);
  --border-hover: rgba(0,123,255,0.35);
  --cyan: #007bff;
  --cyan-dim: rgba(0,123,255,0.06);
  --purple: #7c3aed;
  --purple-dim: rgba(124,58,237,0.06);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --success: #10b981;
  --glass: rgba(255,255,255,0.85);
}
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  background: var(--bg-primary); color: var(--text-primary);
  overflow-x:hidden; line-height:1.6;
}
::-webkit-scrollbar { width:6px; }
::-webkit-scrollbar-track { background:#f1f5f9; }
::-webkit-scrollbar-thumb { background:var(--cyan); border-radius:3px; }
a { text-decoration:none; color:inherit; }
button { font-family:inherit; cursor:pointer; border:none; background:none; }

/* ===== Header ===== */
.header {
  position:fixed; top:0; left:0; right:0; z-index:1000;
  background:rgba(248,250,252,0.9); backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border);
}
.header-inner {
  max-width:1400px; margin:0 auto; padding:0 24px;
  height:64px; display:flex; align-items:center; justify-content:space-between;
}
.logo {
  font-size:22px; font-weight:800;
  background:linear-gradient(135deg,var(--cyan),var(--purple));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text; letter-spacing:-0.5px;
  display:flex; align-items:center; gap:8px; text-decoration:none;
}
.logo-icon {
  width:32px; height:32px; border:2px solid var(--cyan); border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:700; -webkit-text-fill-color:var(--cyan);
}
.nav { display:flex; align-items:center; gap:28px; }
.nav a {
  color:var(--text-secondary); text-decoration:none; font-size:13.5px; font-weight:500;
  transition:color 0.2s; position:relative;
}
.nav a:hover, .nav a.active { color:var(--cyan); }
.nav a::after {
  content:''; position:absolute; bottom:-4px; left:0; width:0; height:2px;
  background:var(--cyan); transition:width 0.3s;
}
.nav a:hover::after, .nav a.active::after { width:100%; }
.header-actions { display:flex; align-items:center; gap:16px; }
.lang-switch {
  display:flex; align-items:center; gap:4px;
  background:var(--bg-secondary); border:1px solid var(--border);
  border-radius:20px; padding:4px;
}
.lang-switch button {
  background:none; border:none; color:var(--text-muted);
  font-size:12px; font-weight:600; padding:4px 12px;
  border-radius:16px; cursor:pointer; transition:all 0.2s; font-family:inherit;
}
.lang-switch button.active {
  background:linear-gradient(135deg,var(--cyan),var(--purple)); color:#fff;
}
.btn-primary {
  background:linear-gradient(135deg,var(--cyan),var(--purple));
  color:#fff; border:none; padding:8px 20px;
  border-radius:8px; font-size:13px; font-weight:600;
  cursor:pointer; transition:all 0.2s; font-family:inherit; text-decoration:none; display:inline-flex; align-items:center; justify-content:center;
}
.btn-primary:hover { transform:translateY(-1px); box-shadow:0 8px 24px rgba(0,123,255,0.25); }
.mobile-menu-toggle {
  display:none; flex-direction:column; gap:4px; cursor:pointer; padding:8px; background:none; border:none;
}
.mobile-menu-toggle span {
  display:block; width:22px; height:2px; background:var(--text-primary); border-radius:1px; transition:0.3s;
}
.mobile-nav {
  display:none; position:fixed; top:64px; left:0; right:0; background:rgba(248,250,252,0.98);
  backdrop-filter:blur(20px); border-bottom:1px solid var(--border); padding:16px 24px; z-index:999;
  flex-direction:column; gap:12px;
}
.mobile-nav a {
  color:var(--text-secondary); text-decoration:none; font-size:15px; font-weight:500; padding:8px 0; border-bottom:1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom:none; }
.mobile-nav.active { display:flex; }

/* ===== Footer ===== */
.footer {
  border-top:1px solid var(--border); padding:60px 24px 30px; position:relative; z-index:2;
}
.footer-inner {
  max-width:1400px; margin:0 auto;
  display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:48px;
}
.footer-brand .logo { margin-bottom:16px; display:inline-flex; }
.footer-brand p { font-size:13px; color:var(--text-muted); line-height:1.8; max-width:280px; }
.footer-col h4 { font-size:14px; font-weight:700; margin-bottom:20px; }
.footer-col a { display:block; font-size:13px; color:var(--text-muted); text-decoration:none; margin-bottom:12px; transition:color 0.2s; }
.footer-col a:hover { color:var(--cyan); }
.footer-bottom { max-width:1400px; margin:40px auto 0; padding-top:24px; border-top:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; }
.footer-bottom p { font-size:12px; color:var(--text-muted); }

/* ===== Responsive ===== */
@media (max-width:768px) {
  .nav { display:none; }
  .mobile-menu-toggle { display:flex; }
  .footer-inner { grid-template-columns:1fr; gap:32px; }
  .footer-bottom { flex-direction:column; text-align:center; }
}
