.appmenu {
  position: relative;
}

.appmenu-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.appmenu-btn:hover {
  transform: translateY(-1px);
  background: #f8fafc;
  border-color: #94a3b8;
}

.appmenu-btn svg {
  width: 20px;
  height: 20px;
}

.appmenu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 360px;
  max-width: calc(100vw - 24px);
  background: #ffffff;
  color: #0f172a;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18), 0 8px 16px rgba(15, 23, 42, 0.12);
  padding: 14px 14px 12px;
  display: none;
  z-index: 220;
}

.appmenu-panel.is-open {
  display: block;
}

.appmenu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 6px 12px;
}

.appmenu-title {
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.02rem;
}

.appmenu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 6px 10px;
}

.appmenu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 14px;
  transition: background 0.15s, transform 0.15s, color 0.15s;
  color: #0f172a;
}

.appmenu-item:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
  color: #0b1d3b;
}

.appmenu-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.14);
}

.appmenu-item span {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  color: inherit;
}

.appmenu-icon svg {
  width: 22px;
  height: 22px;
}

.appmenu-icon--1 {
  background: linear-gradient(135deg, #00a6e0, #5fd3ff);
}

.appmenu-icon--2 {
  background: linear-gradient(135deg, #1e93d1, #0d4aa0);
}

.appmenu-icon--3 {
  background: linear-gradient(135deg, #d53e5e, #991b31);
}

.appmenu-icon--4 {
  background: linear-gradient(135deg, #20bcd4, #0c6f8c);
}

.appmenu-icon--5 {
  background: linear-gradient(135deg, #6b64cf, #2d3a87);
}

.appmenu-icon--6 {
  background: linear-gradient(135deg, #ffda6b, #ff8a3d);
  color: #0b1d3b;
}

.appmenu-footer {
  border-top: 1px solid #e2e8f0;
  padding: 10px 6px 2px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-weight: 700;
  font-size: 0.9rem;
  color: #0b1d3b;
}
.appmenu-footer--center {
  justify-content: center;
}


.appmenu-footer a {
  opacity: 0.95;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0b1d3b;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
}

.appmenu-footer a:hover {
  opacity: 1;
  background: #e2e8f0;
  color: #0b1d3b;
}
.nav-launcher {
  display: flex;
  align-items: center;
}

@media (max-width: 960px) {
  .nav-launcher {
    order: 3;
    margin-left: 8px;
  }
  .menu-toggle {
    order: 2;
    margin-left: auto;
  }
  .header .nav {
    order: 4;
    flex-basis: 100%;
  }
  .header .logo {
    flex: 1 1 auto;
    min-width: 0;
  }
  .header .logo img {
    height: 52px;
    max-width: 100%;
  }
  .appmenu-panel {
    right: 0;
    left: auto;
  }
}
