body {
  background-image:
    radial-gradient(circle at top, rgba(34, 211, 238, 0.08), transparent 28%),
    linear-gradient(180deg, #080603 0%, #14110d 52%, #090705 100%);
}

.glass {
  background: rgba(24, 18, 13, 0.82);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.auth-panel {
  width: min(1100px, 100%);
  border-radius: 2rem;
  padding: 1.5rem;
  display: grid;
  gap: 1.5rem;
}

.auth-copy {
  padding: 1rem;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  gap: 1.25rem;
  padding: 1.25rem;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.65);
  z-index: 20;
}

.drawer {
  position: fixed;
  left: 1rem;
  top: 1rem;
  bottom: 1rem;
  width: min(20rem, calc(100vw - 2rem));
  transform: translateX(-120%);
  transition: transform 220ms ease;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  border-radius: 2rem;
  padding: 1.5rem;
}

.drawer-open {
  transform: translateX(0);
}

.drawer-nav,
.topbar-actions,
.auth-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.content-area {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.topbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: 2rem;
  padding: 1rem;
}

.brand-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: #67e8f9;
}

.input {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.8);
  padding: 0.85rem 1rem;
  color: #e2e8f0;
}

.input::placeholder {
  color: #64748b;
}

.primary-btn,
.secondary-btn,
.drawer-btn,
.topbar-btn,
.model-card-btn {
  border-radius: 999px;
  padding: 0.75rem 1rem;
  transition: all 180ms ease;
}

.primary-btn,
.topbar-btn.active,
.drawer-btn.active,
.model-card-btn {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
}

.secondary-btn,
.topbar-btn,
.drawer-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.primary-btn:disabled,
.secondary-btn:disabled,
.drawer-btn:disabled,
.topbar-btn:disabled,
.model-card-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.model-card-grid {
  display: grid;
  gap: 1rem;
}

.model-card {
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(19, 14, 10, 0.92);
}

.model-card-hero {
  height: 11rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background-size: cover;
  background-position: center;
}

.model-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.2rem;
}

.model-card-badge,
.selected-model-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.5rem 0.9rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #cbd5e1;
}

.preview-card {
  min-height: 18rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.5rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(2, 6, 23, 0.5);
  padding: 1rem;
}

.skeleton {
  width: 100%;
  height: 16rem;
  border-radius: 1.25rem;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.6), rgba(100, 116, 139, 0.25), rgba(30, 41, 59, 0.6));
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
}

.metric-list,
.activity-list {
  display: grid;
  gap: 0.75rem;
}

.activity-card {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.45);
  padding: 1rem;
}

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

@media (min-width: 768px) {
  .auth-panel {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .app-shell {
    grid-template-columns: 19rem minmax(0, 1fr);
    padding: 1.5rem;
  }

  .drawer {
    position: sticky;
    transform: translateX(0);
    left: auto;
    top: 1.5rem;
    bottom: auto;
    width: auto;
    max-height: calc(100vh - 3rem);
  }

  .topbar {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .model-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
