@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --primary: #0F1C2E;
  --primary-light: #1A2B45;
  --accent: #C9A227;
  --accent-hover: #b08d22;
  --text-main: #FFFFFF;
  --text-muted: #A0AABF;
  --bg-main: #0F1C2E;
  --bg-card: rgba(26, 43, 69, 0.4);
  --bg-card-hover: rgba(26, 43, 69, 0.7);
  --border: rgba(255, 255, 255, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.2);
  --glass-border: rgba(255,255,255,0.05);

  /* Typography */
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.light-mode {
  --primary: #FFFFFF;
  --primary-light: #F4F6F8;
  --accent: #C9A227;
  --accent-hover: #1A2B45;
  --text-main: #0F1C2E;
  --text-muted: #4A5568;
  --bg-main: #F4F6F8;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --border: rgba(15, 28, 46, 0.1);
  --shadow-color: rgba(15, 28, 46, 0.05);
  --glass-border: rgba(15,28,46,0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  font-family: var(--font-main);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--accent);
  color: #0F1C2E;
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
  animation: extremePulse 2s infinite alternate;
}

@keyframes extremePulse {
  0% { transform: scale(1); box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3); }
  100% { transform: scale(1.05); box-shadow: 0 10px 40px rgba(201, 162, 39, 0.8); }
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.6), transparent);
  transform: rotate(45deg);
  animation: swipeLight 2s infinite linear;
  z-index: -1;
}

@keyframes swipeLight {
  0% { left: -100%; }
  100% { left: 100%; }
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-5px) scale(1.1) !important;
  box-shadow: 0 15px 40px rgba(201, 162, 39, 0.9);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
  animation: floatBtn 3s infinite ease-in-out;
}

@keyframes floatBtn {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  border-color: var(--accent);
  transform: scale(1.1) rotate(-2deg) !important;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  background: rgba(15, 28, 46, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.light-mode .navbar {
  background: rgba(244, 246, 248, 0.9);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}

#canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -2;
  opacity: 0.6;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

/* Hero Glowing Orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -3;
  animation: orbFloat 15s infinite alternate ease-in-out;
  opacity: 0.6;
  pointer-events: none;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: #3b82f6;
  bottom: -20%;
  right: -10%;
  animation-delay: -5s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: var(--primary-light);
  top: 40%;
  left: 40%;
  animation-delay: -10s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.4; }
  33% { transform: translate(100px, 150px) scale(1.2) rotate(45deg); opacity: 0.8; }
  66% { transform: translate(-100px, 50px) scale(0.8) rotate(90deg); opacity: 0.5; }
  100% { transform: translate(50px, -100px) scale(1.5) rotate(180deg); opacity: 0.7; }
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #FFFFFF 20%, var(--accent) 50%, #FFFFFF 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeUp 1s ease forwards, crazyGradient 3s linear infinite;
}

@keyframes crazyGradient {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.light-mode .hero h1 {
  background: linear-gradient(135deg, #0F1C2E 20%, var(--accent) 50%, #0F1C2E 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  animation: fadeUp 1s ease forwards 0.2s;
  opacity: 0;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  animation: fadeUp 1s ease forwards 0.4s;
  opacity: 0;
}

/* Glass Cards (OVER THE TOP) */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), box-shadow 0.6s ease;
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.4) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
  pointer-events: none;
}

.glass-panel > * {
  position: relative;
  z-index: 2;
}

.glass-panel:hover::before {
  opacity: 1;
  animation: spinGlow 4s linear infinite;
}

@keyframes spinGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.glass-panel:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-15px) scale(1.08) rotateX(5deg) rotateY(5deg);
  box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 30px rgba(201, 162, 39, 0.3);
}

/* Sections */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.service-card:hover .service-icon {
  transform: scale(1.5) rotate(360deg);
  text-shadow: 0 0 20px var(--accent);
}

.service-card:hover h3 {
  color: var(--accent);
  transform: scale(1.05);
  transition: all 0.3s;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Stats Section */
.stats-section {
  background: transparent;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

/* Auth Forms (Login / Register) */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: transparent;
}

.auth-form {
  max-width: 450px;
  width: 100%;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--primary);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-main);
  font-family: var(--font-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.2);
}

.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-options a {
  color: var(--accent);
}

.auth-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.auth-footer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--accent);
  font-weight: 500;
}

/* Dashboard Layout */
.dashboard-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 280px;
  background: var(--primary-light);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.sidebar-header {
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-menu {
  flex: 1;
  padding: 2rem 0;
  overflow-y: auto;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  color: var(--text-muted);
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.menu-item:hover, .menu-item.active {
  color: var(--accent);
  background: rgba(201, 162, 39, 0.05);
  border-left-color: var(--accent);
}

.menu-item i {
  font-size: 1.2rem;
}

.sidebar-footer {
  padding: 2rem;
  border-top: 1px solid var(--border);
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  height: 80px;
  background: transparent;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.dashboard-content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  background: transparent;
}

.dashboard-header {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Dashboard Stats Cards */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dash-stat-card {
  padding: 1.5rem;
  border-radius: 8px;
  background: var(--primary-light);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.stat-title {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
}

.stat-trend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.trend-up { color: #22c55e; }
.trend-down { color: #ef4444; }

.dash-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--text-muted);
  opacity: 0.5;
  font-size: 1.5rem;
}

/* Charts Section */
.charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.chart-card {
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.canvas-container {
  height: 300px;
  width: 100%;
}

/* AI Advisor Grid */
.ai-advisor-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;
  height: calc(100vh - 220px);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
.footer {
  background: rgba(15, 28, 46, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.light-mode .footer {
  background: rgba(244, 246, 248, 0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.footer-col p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent);
  color: #0F1C2E;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* AI Chatbot */
.ai-chatbot {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.chatbot-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: #0F1C2E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.4);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.chatbot-btn:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 8px 30px rgba(201, 162, 39, 0.6);
}

.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: calc(100vw - 4rem);
  max-width: 350px;
  max-height: calc(100vh - 200px);
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
}

.chatbot-window.active {
  display: flex;
  animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.chatbot-header {
  background: var(--primary);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.chatbot-header h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.close-chat {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.close-chat:hover {
  transform: rotate(90deg);
  color: var(--text-main);
}

.chatbot-messages {
  height: 300px;
  flex: 1 1 auto;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: smooth;
}

.msg {
  max-width: 80%;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  animation: msgPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  opacity: 0;
}

@keyframes msgPop {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.msg-ai {
  background: var(--bg-card);
  align-self: flex-start;
  border-bottom-left-radius: 0;
}

.msg-user {
  background: var(--accent);
  color: #0F1C2E;
  align-self: flex-end;
  border-bottom-right-radius: 0;
}

.chatbot-input {
  display: flex;
  padding: 1rem;
  border-top: 1px solid var(--border);
  background: var(--primary);
}

.chatbot-input input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  outline: none;
}

.chatbot-input button {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 1.2rem;
  transition: transform 0.2s;
}

.chatbot-input button:hover {
  transform: scale(1.2) translateX(3px);
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-zoom {
  opacity: 0;
  transform: scale(0.5) rotate(-15deg);
  transition: all 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.reveal-zoom.active {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Bounce Reveal */
.reveal-bounce {
  opacity: 0;
  transform: translateY(100px);
  transition: all 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.reveal-bounce.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Effects */
.d-1 { transition-delay: 100ms; }
.d-2 { transition-delay: 200ms; }
.d-3 { transition-delay: 300ms; }
.d-4 { transition-delay: 400ms; }
.d-5 { transition-delay: 500ms; }
.d-6 { transition-delay: 600ms; }

/* Responsive */
@media (max-width: 992px) {
  .hero h1 { font-size: 3.5rem; }
  .charts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns .btn { width: 100%; text-align: center; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .dashboard-layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .sidebar-header { display: none; }
  .sidebar-menu { display: flex; flex-direction: row; overflow-x: auto; padding: 1rem; }
  .menu-item { padding: 0.5rem 1rem; white-space: nowrap; }
  .ai-advisor-grid { grid-template-columns: 1fr; height: auto; }
  .ai-advisor-grid > .glass-panel { max-height: 400px; }
  .dashboard-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .topbar { height: auto; padding: 1rem; flex-wrap: wrap; gap: 1rem; }
}
