.app-shell {
  min-height: 100vh;
  background: transparent;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(31, 182, 217, 0.12), transparent 18rem),
    var(--cm-sidebar);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 10px 0 40px rgba(15, 23, 42, 0.12);
}

.brand {
  gap: 14px;
  margin-bottom: 26px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cm-primary), var(--cm-accent) 55%, #F97316);
  box-shadow: 0 14px 28px rgba(31, 182, 217, 0.24);
  color: #fff;
  font-weight: 800;
}

.brand strong {
  color: #fff;
  font-size: 16px;
}

.brand span {
  color: rgba(226, 232, 240, 0.78);
  font-size: 13px;
}

.nav {
  gap: 8px;
}

.nav-group-label {
  margin: 18px 12px 8px;
  color: rgba(226, 232, 240, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-item {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: rgba(248, 250, 252, 0.9);
  font-weight: 700;
  padding: 0 14px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(2px);
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(15, 126, 168, 0.98), rgba(31, 182, 217, 0.72));
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 34px rgba(31, 182, 217, 0.22);
}

.main {
  background: transparent;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 88px;
  padding: 18px 28px;
  border: 1px solid rgba(229, 231, 235, 0.78);
  border-top: 0;
  border-radius: 0 0 24px 24px;
  background: rgba(246, 248, 251, 0.86);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
}

.topbar h1,
#view-title {
  margin: 4px 0 0;
  color: var(--cm-text);
  font-size: clamp(28px, 3.2vw, 52px);
  font-weight: 800;
  line-height: 1.1;
}

.eyebrow {
  color: var(--cm-primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.top-actions {
  gap: 10px;
  align-items: center;
}

.language-switcher,
.auth-panel {
  min-height: 46px;
  border: 1px solid var(--cm-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--cm-shadow-sm);
}

.language-switcher button {
  min-height: 38px;
  border-radius: 11px;
  font-weight: 800;
}

.language-switcher button.active,
.language-switcher button:hover {
  color: var(--cm-primary-dark);
  background: var(--cm-accent-soft);
}

.content,
.view,
.page-content,
.main > section {
  animation: cm-fade-slide 0.28s ease both;
}

.hero,
.landing-hero {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: var(--cm-radius-lg);
  background:
    radial-gradient(circle at right top, rgba(31, 182, 217, 0.16), transparent 23rem),
    var(--cm-card);
  box-shadow: var(--cm-shadow);
}

.hero h2,
.landing-hero h2,
.hero-title,
.landing-title {
  max-width: 780px;
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
}

.hero p,
.landing-hero p {
  max-width: 840px;
  color: var(--cm-soft-text);
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.75;
}

.hero-actions {
  gap: 12px;
}

@keyframes cm-fade-slide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .topbar {
    align-items: flex-start;
    gap: 18px;
  }

  .top-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
    width: 100%;
    min-height: auto;
    padding: 14px;
    border-radius: 0 0 24px 24px;
  }

  .brand {
    margin-bottom: 12px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 12px;
  }

  .nav {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }

  .sidebar:has(.mobile-menu-toggle[aria-expanded="true"]) .nav,
  .sidebar.menu-open .nav {
    display: grid;
  }

  .nav-group-label {
    grid-column: 1 / -1;
    margin: 10px 4px 4px;
  }

  .nav-item {
    min-height: 48px;
    justify-content: center;
    text-align: center;
  }

  .main {
    padding: 14px;
  }

  .topbar {
    position: sticky;
    min-height: auto;
    padding: 18px;
    border-radius: 20px;
  }

  .top-actions,
  .language-switcher,
  .auth-panel {
    width: 100%;
  }

  .language-switcher,
  .auth-panel {
    justify-content: space-between;
  }
}
