:root {
  --bg: #05070d;
  --panel: rgba(20, 25, 35, 0.92);
  --panel-strong: rgba(28, 34, 48, 0.96);
  --stroke: rgba(255, 255, 255, 0.08);
  --text: #fbf8f2;
  --muted: #8f98ab;
  --muted-strong: #b8c0d0;
  --accent: #ff4b6a;
  --gold: #ffb64b;
  --green: #20d087;
  --blue: #90a7ff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 84, 110, 0.18), transparent 22%),
    radial-gradient(circle at 92% 4%, rgba(255, 182, 75, 0.12), transparent 18%),
    linear-gradient(180deg, #06080f 0%, #090d15 36%, #05070d 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.ambient {
  position: fixed;
  width: 28rem;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.22;
  pointer-events: none;
}

.ambient--primary {
  top: 8rem;
  left: -10rem;
  background: radial-gradient(circle, rgba(255, 74, 104, 0.8) 0%, transparent 70%);
}

.ambient--secondary {
  top: 18rem;
  right: -10rem;
  background: radial-gradient(circle, rgba(144, 167, 255, 0.75) 0%, transparent 70%);
}

.ambient--tertiary {
  bottom: 4rem;
  left: 25%;
  background: radial-gradient(circle, rgba(255, 182, 75, 0.55) 0%, transparent 70%);
}

.container {
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: rgba(7, 10, 16, 0.86);
  border-bottom: 1px solid var(--stroke);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 84, 110, 0.25), rgba(255, 84, 110, 0.02));
  border: 1px solid rgba(255, 84, 110, 0.18);
  box-shadow: 0 16px 34px rgba(255, 84, 110, 0.18);
}

.brand__mark svg {
  width: 2rem;
  height: 2rem;
  fill: #ff4b6a;
}

.brand__text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  min-width: 0;
}

.main-nav a {
  color: var(--muted-strong);
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color 160ms ease, transform 160ms ease;
}

.main-nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.toolbar__locale {
  border: none;
  background: transparent;
  color: var(--text);
  font-weight: 800;
}

.button,
.icon-button,
.action-tile,
.status-pill,
.meta-pill,
.floating-tools__button,
.privacy-pill {
  border: 1px solid var(--stroke);
}

.button {
  padding: 0.95rem 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover,
.icon-button:hover,
.action-tile:hover,
.floating-tools__button:hover {
  transform: translateY(-2px);
}

.button--muted {
  background: rgba(140, 149, 171, 0.2);
}

.button--primary {
  background: linear-gradient(135deg, #ff5574 0%, #ff3658 100%);
  border-color: rgba(255, 95, 122, 0.45);
  box-shadow: 0 18px 34px rgba(255, 75, 106, 0.25);
}

.toolbar__profile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.toolbar__avatar {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 25%, rgba(255, 255, 255, 0.85) 0 8%, transparent 9%),
    linear-gradient(145deg, #ffe28a 0%, #ff9978 45%, #6d7cff 100%);
  color: #0b0810;
  font-weight: 900;
}

.toolbar__identity {
  font-weight: 700;
  white-space: nowrap;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.icon-button svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: #ff5b78;
}

.dashboard {
  position: relative;
  padding: 2.6rem 0 5rem;
}

.profile-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 0.2rem 0 2rem;
}

.profile-card__identity h1 {
  margin: 0.2rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  line-height: 0.94;
}

.eyebrow {
  margin: 0;
  color: #f6c1b7;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.handle {
  margin: 0.5rem 0 0;
  color: #ff5574;
  font-size: clamp(1.3rem, 2.4vw, 2.05rem);
  font-weight: 800;
}

.hero-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(7.5rem, 13vw, 10rem);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 8px solid rgba(116, 136, 205, 0.5);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.8) 0 8%, transparent 8.5%),
    radial-gradient(circle at 52% 40%, rgba(255, 255, 255, 0.16) 0 28%, transparent 29%),
    linear-gradient(140deg, #f0d48a 0%, #ff9e83 38%, #6379ff 100%);
  box-shadow:
    inset 0 0 0 12px rgba(255, 255, 255, 0.05),
    0 25px 55px rgba(0, 0, 0, 0.45);
}

.hero-avatar::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 38%, rgba(255, 255, 255, 0.9) 0 9%, transparent 10%),
    radial-gradient(circle at 60% 62%, rgba(11, 12, 19, 0.35), transparent 36%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.04));
}

.hero-avatar span {
  position: relative;
  z-index: 1;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #171018;
}

.profile-card__meta {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.meta-pill {
  padding: 1rem 1.2rem;
  min-width: 11.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.meta-pill strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
}

.meta-pill span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.action-ribbon {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.action-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 4.25rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(40, 47, 64, 0.96), rgba(30, 36, 50, 0.96));
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--muted-strong);
  box-shadow: var(--shadow);
  transition: transform 200ms ease, color 200ms ease, border-color 200ms ease;
}

.action-tile__icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.action-tile.is-active {
  color: var(--accent, var(--blue));
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 20px 34px rgba(0, 0, 0, 0.38);
}

.panel {
  padding: 2rem;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(23, 28, 39, 0.96), rgba(18, 22, 31, 0.94));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.panel__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.8rem;
}

.panel__header h2 {
  margin: 0.35rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.panel__subtitle {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 700;
}

.panel__status {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
  font-weight: 800;
}

.status-pill__dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(32, 208, 135, 0.6);
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.35rem;
}

.entry-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(33, 39, 54, 0.94), rgba(17, 21, 29, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 22px 34px rgba(0, 0, 0, 0.3);
  transform: translateY(16px);
  opacity: 0;
  animation: rise 560ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(var(--index, 0) * 55ms);
}

.entry-card__media {
  aspect-ratio: 1 / 1;
  background: var(--card-art);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1rem;
}

.entry-card__badge,
.entry-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(7, 10, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  font-weight: 800;
}

.entry-card__tag {
  color: #ffd89b;
}

.entry-card__avatar {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.entry-card__body {
  padding: 1rem 1rem 1.15rem;
}

.entry-card__title {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.25;
}

.entry-card__description {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.entry-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 1rem;
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 800;
}

.privacy-pill {
  position: fixed;
  left: 0;
  bottom: 1.25rem;
  z-index: 5;
  padding: 0.85rem 1.15rem;
  border-left: none;
  border-radius: 0 14px 14px 0;
  background: linear-gradient(135deg, #3d7de0, #4ca5ff);
  color: white;
  font-weight: 800;
  box-shadow: 0 16px 28px rgba(33, 83, 168, 0.35);
}

.floating-tools {
  position: fixed;
  right: 1.1rem;
  bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.floating-tools__button {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(25, 30, 42, 0.88);
  color: #ff7f98;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.3);
}

.floating-tools__button svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.floating-tools__button--accent {
  background: linear-gradient(135deg, #d34d6a, #9d5578);
  color: #fff1f6;
  font-weight: 900;
}

@keyframes rise {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 1180px) {
  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.35rem;
  }

  .toolbar,
  .profile-card__meta {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .profile-card {
    grid-template-columns: auto 1fr;
  }

  .profile-card__meta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .panel__header {
    flex-direction: column;
  }

  .panel__status {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 100%);
  }

  .action-ribbon,
  .server-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .panel {
    padding: 1.35rem;
  }

  .privacy-pill,
  .floating-tools {
    display: none;
  }
}
