.app {
  display: flex;
  min-height: 100vh;
}


.icon {
  border-radius: 5px;
}

/* ————— Sidebar ————— */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
  border-right: 1px solid var(--border);
}

.sidebar__head {
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--border-faint);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--accent-strong);
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(110, 231, 126, 0.16), transparent 60%),
    linear-gradient(180deg, var(--surface-3), var(--surface));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-1);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand__name {
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand__sub {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.sidebar__nav {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nav-group__label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-4);
  padding: 0 10px;
  margin-bottom: 6px;
  user-select: none;
}

.nav-group__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: var(--radius-s);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-link svg {
  width: 38px;
  height: 38px;
  flex: none;
  opacity: 0.85;
}

.nav-link:hover {
  color: var(--text);
  background: var(--accent-faint);
}

.nav-link[aria-current="page"],
.nav-link.is-active {
  color: var(--mikupink);
  background: var(--accent-dim);
}

.nav-link[aria-current="page"]::before,
.nav-link.is-active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.nav-link.is-active svg {
  color: var(--accent);
  opacity: 1;
}

.sidebar__status {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border-faint);
}

.status-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 2.6s ease-out infinite;
}

.status-dot--green {
  background: var(--accent);
}

.status-item__text p {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

.status-item__text span {
  font-size: 11.5px;
  color: var(--text-3);
}

/* ————— Main column ————— */

.main {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border-faint);
}

.topbar__menu {
  display: none;
}

.topbar__titles {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.topbar__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__crumb {
  font-size: 11.5px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar__clock {
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.content {
  flex: 1;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 34px 28px 48px;
  animation: fadeUp 320ms var(--ease);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 28px 24px;
  border-top: 1px solid var(--border-faint);
  font-size: 12px;
  color: var(--text-4);
}

.footer__info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer__contacts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-s);
  background: var(--surface-2);
  border: 1px solid var(--border-faint);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--dur) var(--ease);
}

.footer__link svg {
  flex-shrink: 0;
  color: var(--text-3);
  transition: color var(--dur) var(--ease);
}

.footer__link:hover {
  background: var(--surface-3);
  border-color: var(--border);
  color: var(--text);
  transform: translateY(-1px);
}

.footer__link--discord:hover svg {
  color: #5865F2;
}

.footer__link--x:hover svg {
  color: #f5f5f5;
}

.footer__link--tiktok:hover svg {
  color: #ff0050;
}

.footer__link--instagram:hover svg {
  color: #E1306C;
}

/* ————— Mobile drawer ————— */

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}

/* ————— Breakpoints ————— */

@media (max-width: 1080px) {
  .sidebar {
    width: 76px;
  }

  .sidebar__head {
    padding: 20px 10px 16px;
  }

  .brand {
    justify-content: center;
  }

  .brand__mark {
    width: 42px;
    height: 42px;
  }

  .brand__text,
  .nav-group__label,
  .status-item__text {
    display: none;
  }

  .sidebar__nav {
    padding: 14px 10px;
  }

  .nav-link {
    justify-content: center;
    padding: 11px;
  }

  .nav-link span {
    display: none;
  }

  .nav-link svg {
    width: 20px;
    height: 20px;
  }

  .nav-link[aria-current="page"]::before,
  .nav-link.is-active::before {
    left: -10px;
  }

  .sidebar__status {
    padding: 12px 10px 14px;
  }

  .status-item {
    justify-content: center;
    padding: 12px;
  }

  .main {
    margin-left: 76px;
  }
}

@media (max-width: 860px) {
  .sidebar {
    width: var(--sidebar-w);
    transform: translateX(-100%);
    transition: transform var(--dur-slow) var(--ease);
    box-shadow: var(--shadow-2);
  }

  .sidebar.sidebar--open {
    transform: none;
  }

  .sidebar-overlay[hidden] {
    display: none;
  }

  .sidebar__head {
    padding: 22px 20px 18px;
  }

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

  .brand__mark {
    width: 38px;
    height: 38px;
  }

  .brand__text,
  .nav-group__label,
  .status-item__text {
    display: initial;
    display: block;
  }

  .sidebar__nav {
    padding: 14px 12px;
  }

  .nav-link {
    justify-content: flex-start;
    padding: 9px 10px;
  }

  .nav-link span {
    display: inline;
  }

  .nav-link svg {
    width: 19px;
    height: 19px;
  }

  .nav-link[aria-current="page"]::before,
  .nav-link.is-active::before {
    left: -12px;
  }

  .sidebar__status {
    padding: 14px 16px 16px;
  }

  .status-item {
    justify-content: flex-start;
    padding: 10px 12px;
  }

  .main {
    margin-left: 0;
  }

  .topbar {
    padding: 0 18px;
  }

  .topbar__menu {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: none;
    color: var(--text-2);
  }

  .topbar__menu:hover {
    color: var(--text);
    background: var(--surface-2);
    border-radius: var(--radius-s);
  }

  .topbar__clock {
    display: none;
  }

  .content {
    padding: 24px 18px 36px;
  }

  .footer {
    padding: 16px 18px 20px;
  }
}

@media (max-width: 520px) {
  .topbar__crumb {
    display: none;
  }

  .status-chip {
    display: none;
  }
}