@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --panel: #12151d;
  --card: #191e29;
  --text: #f4f5f7;
  --muted: #969ead;
  --line: #ffffff14;
  --accent: #7289da;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px 'DM Sans', sans-serif;
  min-height: 100vh;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(#ffffff05 1px, transparent 1px),
    linear-gradient(90deg, #ffffff05 1px, transparent 1px),
    radial-gradient(circle at 55% 0, #667eea22, transparent 38%);
  background-size: 42px 42px, 42px 42px, auto;
  mask-image: linear-gradient(#000, transparent 80%);
}

.shell {
  position: relative;
  max-width: 1380px;
  margin: auto;
  padding: 28px;
}

.login {
  max-width: 460px;
  margin: 12vh auto;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #12151ddd;
  box-shadow: 0 24px 80px #0006;
}

.eyebrow {
  letter-spacing: 0.15em;
  color: #aab6ff;
  font-size: 11px;
  font-weight: bold;
}

h1,
h2,
h3 {
  font-family: 'Space Grotesk', sans-serif;
  margin: 0.3em 0;
}

h1 {
  font-size: 42px;
}

p {
  color: var(--muted);
  line-height: 1.5;
}

input,
button,
select {
  font: inherit;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 12px;
  background: #0c0f15;
  color: var(--text);
}

input,
select {
  width: 100%;
}

form {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

button {
  background: linear-gradient(135deg, #7289da, #8f73da);
  border: 0;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
}

button:hover {
  transform: translateY(-1px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 26px;
}

.brand {
  font-family: 'Space Grotesk';
  font-weight: 700;
}

.tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.tabs button {
  background: #ffffff08;
}

.tabs button.active {
  background: var(--accent);
}

.bento,
.feed {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.metric,
.card,
.notification {
  border: 1px solid var(--line);
  background: #12151de8;
  border-radius: 16px;
  padding: 18px;
}

.metric {
  grid-column: span 3;
}

.metric b {
  display: block;
  font-size: 28px;
  margin-top: 6px;
}

.feed {
  display: block;
}

.notification {
  margin-bottom: 14px;
  border-left: 3px solid var(--embed, #7289da);
}

.notification.unread {
  box-shadow: 0 0 0 1px #7289da55;
}

.meta {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.embed {
  margin-top: 12px;
  padding: 14px;
  border-radius: 8px;
  background: #0b0d12;
  border-left: 4px solid var(--embed, #5865f2);
}

.embed h3 {
  font-size: 16px;
}

.embed-field {
  margin-top: 10px;
}

.embed-field b {
  display: block;
  font-size: 12px;
}

.embed img.large {
  max-width: 100%;
  max-height: 360px;
  margin-top: 12px;
  border-radius: 7px;
}

.thumb {
  float: right;
  width: 104px;
  max-height: 104px;
  object-fit: contain;
  margin: 0 0 8px 12px;
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.muted {
  color: var(--muted);
}

a {
  color: #aab6ff;
}

@media (max-width: 700px) {
  .shell {
    padding: 16px;
  }

  h1 {
    font-size: 34px;
  }

  .metric {
    grid-column: span 12px;
  }

  .bento {
    display: block;
  }

  .metric,
  .card {
    margin-bottom: 12px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
