:root {
  --blue: #168dde;
  --blue-dark: #0f79c1;
  --blue-soft: #58b7d8;
  --bg: #efefef;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --text-dark: #1f3b4d;
  --text-soft: #607483;
  --shadow: 0 18px 45px rgba(35, 88, 140, 0.18);
  --radius-lg: 28px;
  --radius-md: 18px;
  --header-h: 76px;
  --footer-h: 84px;
}

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

html,
body {
  height: 100%;
  overflow: hidden;
  font-family: Arial, sans-serif;
  background: var(--bg);
}

body {
  color: var(--text-dark);
}

.app {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: var(--header-h) 1fr var(--footer-h);
  overflow: hidden;
}

.topbar {
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
}

.menu-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #2f9ceb, #167ed0);
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.8rem);
  font-weight: 700;
}

.content {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  overflow: hidden;
}

.center-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel {
  width: min(92vw, 700px);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}

.heading {
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 3rem);
  font-weight: 700;
  color: var(--text-dark);
}

.subtext {
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem);
  color: var(--text-soft);
}

.hero-box {
  width: clamp(180px, 26vw, 300px);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: var(--blue-soft);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  padding: 24px;
  flex-shrink: 0;
}

.hero-inner {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: clamp(1.3rem, 1rem + 1vw, 2rem);
  font-weight: 700;
  letter-spacing: 1px;
}

.card-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  min-height: 72px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  display: grid;
  place-items: center;
  padding: 16px;
  font-weight: 600;
  color: #24506d;
}

.bottombar {
  background: var(--blue);
  color: var(--muted);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

.nav-item {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: clamp(0.9rem, 0.82rem + 0.25vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  user-select: none;
}

.nav-item.active {
  color: var(--white);
}

.nav-item.active::after {
  content: "";
  position: absolute;
  bottom: 16px;
  width: 54px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

@media (max-width: 768px) {
  :root {
    --header-h: 72px;
    --footer-h: 76px;
  }

  .topbar {
    padding: 0 14px;
    gap: 12px;
  }

  .menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .panel {
    width: min(94vw, 520px);
    gap: 14px;
  }

  .hero-box {
    width: clamp(150px, 42vw, 220px);
    padding: 18px;
  }

  .card-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .card {
    min-height: 58px;
    padding: 12px;
  }
}

.bottombar a,
.bottombar a:link,
.bottombar a:visited,
.bottombar a:hover,
.bottombar a:active,
.bottombar a:focus {
  color: rgba(255, 255, 255, 0.78) !important;
  text-decoration: none;
}

.bottombar a.active,
.bottombar a.active:link,
.bottombar a.active:visited,
.bottombar a.active:hover,
.bottombar a.active:active,
.bottombar a.active:focus {
  color: #ffffff !important;
}