﻿@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@100..900&display=swap&subset=cyrillic");

:root {
  --gray: #404040;
  --bar-bg: rgba(10, 10, 10, 0.62);
  --bar-border: rgba(255, 255, 255, 0.12);
  --bar-text: #f1f1f1;
  --bar-muted: #bbbbbb;
  --bar-active: rgba(255, 255, 255, 0.1);
  --bar-solid: #f3f3f3;
  --bar-solid-text: #111111;
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 500 !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #343434;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--bar-text);
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.topbar-wrap {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 0 18px;
}

.topbar {
  width: min(1480px, 100%);
  margin: 0 auto;
  min-height: 60px;
  padding: 8px 10px 8px 18px;
  border-radius: 30px;
  border: 1px solid var(--bar-border);
  background: var(--bar-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: bar-drop 0.55s ease-out both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 558;
  letter-spacing: 0.1px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  animation: item-rise 0.5s ease-out 0.2s forwards;
}

.brand-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.brand-icon img,
.brand-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand-name {
  font-size: 15px;
  line-height: 1.05;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 10px;
  min-width: 0;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--bar-muted);
  font-size: 14px;
  font-weight: 558;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
  opacity: 0;
  transform: translateY(12px);
  animation: item-rise 0.5s ease-out forwards;
}

.menu-btn[hidden] {
  display: none !important;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  color: currentColor;
}

.nav-icon svg,
.home-icon,
.login-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.menu-btn:nth-child(1) {
  animation-delay: 0.26s;
}

.menu-btn:nth-child(2) {
  animation-delay: 0.32s;
}

.menu-btn:nth-child(3) {
  animation-delay: 0.38s;
}

.menu-btn.active {
  background: var(--bar-active);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateY(-1px);
}

.login-btn {
  flex: 0 0 auto;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #d9d9d9 100%);
  color: var(--bar-solid-text);
  font-size: 14px;
  font-weight: 651;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
  transform: translateY(10px);
  animation: item-rise 0.5s ease-out 0.45s forwards;
}

.login-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.login-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.page {
  min-height: 100dvh;
}

.photo-zone {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100dvh;
  padding: 140px 24px 112px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% -8%, rgba(255, 255, 255, 0.18) 0%, transparent 34%),
    radial-gradient(ellipse at 18% 28%, rgba(255, 255, 255, 0.08) 0%, transparent 28%),
    radial-gradient(ellipse at 84% 68%, rgba(255, 255, 255, 0.055) 0%, transparent 30%),
    linear-gradient(135deg, #515151 0%, #3e3e3e 42%, #303030 100%);
}

.photo-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 46% 46%, rgba(255, 255, 255, 0.06) 0%, transparent 36%),
    radial-gradient(ellipse at 58% 74%, rgba(0, 0, 0, 0.18) 0%, transparent 38%);
  opacity: 0.9;
  pointer-events: none;
}

.essence {
  position: absolute;
  z-index: 1;
  display: block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

.essence-one {
  top: 10%;
  right: 3%;
  width: min(48vw, 600px);
  aspect-ratio: 560 / 360;
  background-image: url("./assets/essence-blob-1.svg");
  opacity: 0.78;
  filter: blur(0.15px) drop-shadow(0 24px 42px rgba(0, 0, 0, 0.24));
}

.essence-two {
  left: -8%;
  bottom: 4%;
  width: min(50vw, 680px);
  aspect-ratio: 620 / 390;
  background-image: url("./assets/essence-blob-2.svg");
  opacity: 0.72;
  filter: blur(0.2px) drop-shadow(0 22px 38px rgba(0, 0, 0, 0.22));
}

.photo-zone::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 68%, rgba(255, 255, 255, 0.12) 0 2%, transparent 8%),
    radial-gradient(circle at 34% 74%, rgba(255, 255, 255, 0.08) 0 3%, transparent 10%),
    radial-gradient(circle at 77% 24%, rgba(255, 255, 255, 0.1) 0 2%, transparent 8%),
    radial-gradient(circle at 72% 33%, rgba(0, 0, 0, 0.16) 0 4%, transparent 13%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.2) 100%);
  mix-blend-mode: soft-light;
  opacity: 0.72;
}

.hero {
  position: relative;
  z-index: 10;
  width: min(1080px, 100%);
  margin-top: 56px;
  text-align: center;
  color: #f5f5f5;
  animation: item-rise 0.75s ease-out 0.25s both;
}

.hero-kicker {
  margin: 0 0 18px;
  font-size: 15px;
  font-style: italic;
  font-weight: 651;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.7);
}

.hero-title {
  margin: 0;
  font-size: clamp(44px, 5.4vw, 70px);
  line-height: 0.96;
  font-weight: 651;
  letter-spacing: -0.04em;
  text-wrap: balance;
  text-shadow:
    0 8px 30px rgba(0, 0, 0, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-accent {
  color: #ffffff;
}

.hero-subtitle {
  width: min(700px, 100%);
  margin: 20px auto 0;
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 465;
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.28);
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-btn {
  min-width: 162px;
  padding: 13px 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 651;
  line-height: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.hero-btn-primary {
  background: linear-gradient(180deg, #ffffff 0%, #d9d9d9 100%);
  color: #111111;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.hero-btn-primary:hover {
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hero-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.hero-btn-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.site-footer {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 10;
  width: min(680px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 465;
}

.site-footer p {
  margin: 0;
}

@keyframes bar-drop {
  from {
    opacity: 0;
    transform: translateY(-18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes item-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

@media (max-width: 980px) {
  .topbar-wrap {
    top: 12px;
    padding: 0 10px;
  }

  .topbar {
    border-radius: 22px;
    min-height: 54px;
    padding: 8px 10px;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand-name {
    font-size: 13px;
  }

  .menu {
    gap: 6px;
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .menu-btn {
    padding: 8px 10px;
    font-size: 12px;
  }

  .nav-icon {
    width: 14px;
    height: 14px;
  }

  .login-btn {
    font-size: 12px;
    padding: 10px 14px;
  }

  .photo-zone {
    min-height: 100dvh;
    padding: 128px 18px 88px;
  }

  .essence-one {
    top: 16%;
    right: -22%;
    width: 78vw;
  }

  .essence-two {
    left: -36%;
    bottom: 7%;
    width: 86vw;
  }

  .hero {
    margin-top: 28px;
  }

  .hero-kicker {
    margin-bottom: 14px;
    font-size: 13px;
  }

  .hero-title {
    font-size: clamp(30px, 8vw, 48px);
    line-height: 1;
  }

  .hero-subtitle {
    margin-top: 14px;
    font-size: 14px;
  }

  .hero-actions {
    margin-top: 22px;
    gap: 10px;
  }

  .hero-btn {
    min-width: 144px;
    padding: 12px 16px;
    font-size: 14px;
  }

  .site-footer {
    width: calc(100% - 28px);
    bottom: 18px;
    font-size: 11px;
  }
}


body.modal-open > *:not(.modal-overlay) {
  filter: blur(7px);
  transition: filter 0.35s ease;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: min(420px, 92vw);
  padding: 28px 30px 24px;
  border-radius: 30px;
  border: 1px solid var(--bar-border);
  background: var(--bar-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-card-wide {
  width: min(520px, 92vw);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 651;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--bar-muted);
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-label {
  font-size: 13px;
  font-weight: 558;
  color: var(--bar-muted);
  letter-spacing: 0.02em;
}

.modal-input {
  width: 100%;
  padding: 11px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 14px;
  font-weight: 465;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.modal-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.modal-input:focus {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
}

.modal-error {
  font-size: 13px;
  font-weight: 465;
  color: #f87171;
  min-height: 0;
}

.modal-submit {
  width: 100%;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(180deg, #ffffff 0%, #d9d9d9 100%);
  color: var(--bar-solid-text);
  font-size: 14px;
  font-weight: 651;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}

.modal-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.modal-submit-danger {
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.modal-submit-danger:hover {
  filter: brightness(1.1);
}

.modal-footer {
  text-align: center;
  font-size: 13px;
  font-weight: 465;
  color: var(--bar-muted);
}

.modal-link {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 558;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.modal-link:hover {
  color: #e0e0e0;
}

.profile-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-panel {
  position: relative;
}

.profile-freeze-mask {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.profile-freeze-mask[hidden] {
  display: none !important;
}

.profile-panel.frozen-view .profile-freeze-mask {
  display: flex;
}

.profile-panel.frozen-view .profile-stack > .dashboard-card {
  filter: blur(7px);
  opacity: 0.38;
  pointer-events: none;
  user-select: none;
}

.freeze-lock-icon {
  width: 68px;
  height: 68px;
  color: #ef4444;
}

.freeze-lock-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.freeze-title {
  margin: 0;
  color: #ffffff;
  font-size: 30px;
  font-weight: 760;
  line-height: 1.1;
}

.freeze-comment {
  margin: 0;
  max-width: 580px;
  color: rgba(255, 184, 184, 0.92);
  font-size: 13px;
  font-weight: 558;
  line-height: 1.5;
}

.profile-hero-card,
.profile-info-card,
.profile-password-card {
  padding-top: 24px;
  padding-bottom: 24px;
}

.profile-hero-card {
  padding: 14px 18px;
  border-radius: 22px;
}

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

.profile-hero-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  background: rgba(17, 17, 17, 0.82);
}

.profile-hero-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-hero-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.profile-hero-kicker {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 558;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-hero-name {
  margin: 0;
  max-width: 100%;
  font-size: 21px;
  font-weight: 651;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profile-hero-meta {
  margin: 5px 0 0;
  max-width: 100%;
  font-size: 12px;
  font-weight: 558;
  color: rgba(255, 255, 255, 0.74);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profile-section-head {
  margin: 24px 0 18px;
}

.dashboard-card-subtitle {
  margin: 0;
  font-size: 17px;
  font-weight: 651;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-row:last-child {
  border-bottom: none;
}

.profile-label {
  font-size: 14px;
  font-weight: 558;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.01em;
}

.profile-value {
  font-size: 13px;
  font-weight: 465;
  color: var(--bar-muted);
  text-align: right;
}

.profile-password-card {
  margin-top: 0;
}

.profile-password-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-password-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-password-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 465;
  cursor: pointer;
  user-select: none;
}

.profile-password-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #ffffff;
}

.profile-password-error {
  min-height: 18px;
}

.profile-password-actions {
  margin-top: 4px;
}

.dashboard-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% -8%, rgba(255, 255, 255, 0.18) 0%, transparent 34%),
    radial-gradient(ellipse at 18% 28%, rgba(255, 255, 255, 0.08) 0%, transparent 28%),
    radial-gradient(ellipse at 84% 68%, rgba(255, 255, 255, 0.055) 0%, transparent 30%),
    linear-gradient(135deg, #515151 0%, #3e3e3e 42%, #303030 100%);
  background-attachment: fixed;
}

.dashboard-main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 100px 24px 40px;
}

.dashboard-main::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 46% 46%, rgba(255, 255, 255, 0.06) 0%, transparent 36%),
    radial-gradient(ellipse at 58% 74%, rgba(0, 0, 0, 0.18) 0%, transparent 38%),
    url("./assets/essence-blob-1.svg") right 4% top 12% / min(42vw, 560px) auto no-repeat,
    url("./assets/essence-blob-2.svg") left -8% bottom 4% / min(42vw, 560px) auto no-repeat;
  opacity: 0.68;
  pointer-events: none;
}

.dashboard-main::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 24% 68%, rgba(255, 255, 255, 0.12) 0 2%, transparent 8%),
    radial-gradient(circle at 34% 74%, rgba(255, 255, 255, 0.08) 0 3%, transparent 10%),
    radial-gradient(circle at 77% 24%, rgba(255, 255, 255, 0.1) 0 2%, transparent 8%),
    radial-gradient(circle at 72% 33%, rgba(0, 0, 0, 0.16) 0 4%, transparent 13%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.22) 100%);
  mix-blend-mode: soft-light;
  opacity: 0.62;
  pointer-events: none;
}

.dashboard-layout {
  position: relative;
  z-index: 1;
  width: min(1088px, 100%);
  display: flex;
  gap: 18px;
  animation: item-rise 0.5s ease-out both;
}

.dash-sidebar {
  flex: 0 0 212px;
  position: sticky;
  top: 100px;
}

.dash-sidebar-inner {
  padding: 18px 14px;
  border-radius: 30px;
  border: 1px solid var(--bar-border);
  background: var(--bar-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 340px;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-nav-item,
.dash-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--bar-muted);
  font-size: 14px;
  font-weight: 558;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
  text-align: left;
}

.dash-nav-item:hover,
.dash-logout:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.dash-nav-item.active {
  background: var(--bar-active);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dash-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: currentColor;
  flex-shrink: 0;
}

.dash-nav-icon img,
.dash-nav-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.dash-sidebar-spacer {
  flex: 1;
}

.dash-logout {
  color: #f87171;
  margin-top: 8px;
}

.dash-logout:hover {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
}

.dash-content {
  flex: 1;
  min-width: 0;
}

.dash-panel {
  display: none;
}

.dash-panel.active {
  display: block;
  animation: item-rise 0.35s ease-out both;
}

.dashboard-card {
  width: 100%;
  padding: 32px 36px 28px;
  border-radius: 30px;
  border: 1px solid var(--bar-border);
  background: var(--bar-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dashboard-card-header {
  margin-bottom: 24px;
}

.dashboard-card-title {
  margin: 0;
  font-size: 22px;
  font-weight: 651;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.dashboard-card-note {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 465;
}

.dashboard-actions {
  margin-top: 24px;
}

.dash-nav-item[hidden] {
  display: none;
}

.loader-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.loader-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.loader-row:last-child {
  border-bottom: none;
}

.loader-label {
  font-size: 14px;
  font-weight: 558;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.01em;
}

.loader-value {
  font-size: 13px;
  font-weight: 465;
  color: var(--bar-muted);
}

.loader-servers {
  display: flex;
  gap: 6px;
}

.server-btn {
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--bar-muted);
  font-size: 12px;
  font-weight: 558;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.server-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.server-btn.active {
  background: var(--bar-active);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.buy-card-shell {
  position: relative;
  overflow: hidden;
}

.buy-card-header {
  margin-bottom: 18px;
}

.buy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.buy-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 180px;
  padding: 12px 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.11) 0%, transparent 36%),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 34px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition:
    border-color 0.22s ease,
    background-color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
  text-align: left;
}

.buy-plan-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.18) 0%, transparent 40%),
    rgba(255, 255, 255, 0.06);
}

.buy-plan-card.active {
  border-color: rgba(255, 255, 255, 0.28);
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.2) 0%, transparent 40%),
    rgba(255, 255, 255, 0.085);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 38px rgba(0, 0, 0, 0.28);
}

.buy-plan-glyph {
  display: block;
  width: 100%;
  height: 82px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 8, 10, 0.35);
  overflow: hidden;
}

.buy-plan-glyph img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.buy-plan-term {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.25;
}

.buy-plan-price {
  color: #ffffff;
  font-size: 29px;
  font-weight: 760 !important;
  letter-spacing: -0.02em;
  line-height: 1;
}

.buy-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.buy-submit-btn {
  min-width: 230px;
}

.buy-submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.key-card,
.admin-create-card,
.admin-keys-card,
.admin-users-card {
  position: relative;
  overflow: hidden;
}

.key-card::before,
.admin-create-card::before {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(42px);
  pointer-events: none;
}

.admin-create-card {
  display: block;
}

.admin-create-card .dashboard-card-header {
  margin-bottom: 20px;
}

.admin-create-card .dashboard-card-title {
  font-size: 22px;
  white-space: normal;
}

.admin-create-card .dashboard-card-note {
  display: block;
}

.key-activate-box,
.admin-create-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.key-submit,
.admin-create-btn {
  min-width: 170px;
  margin: 0;
}

.key-message {
  position: relative;
  z-index: 1;
  min-height: 20px;
  margin-top: 12px;
}

.admin-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.duration-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.generated-key {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 651;
  letter-spacing: 0.015em;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.admin-keys-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) rgba(255, 255, 255, 0.04);
}

.admin-key-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 110px 110px;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.admin-key-code {
  color: #ffffff;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.035em;
  word-break: break-all;
}

.admin-key-duration,
.admin-key-date,
.admin-empty {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 620;
}

.admin-empty {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
}

.admin-users-card {
  overflow: hidden;
}

.admin-users-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) rgba(255, 255, 255, 0.04);
}

.admin-user-card {
  display: grid;
  grid-template-columns: 170px 300px 150px 150px 140px;
  align-items: center;
  gap: 12px;
  min-width: 1010px;
  min-height: 58px;
  padding: 11px 13px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.038);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-user-card.frozen {
  border-color: rgba(248, 113, 113, 0.22);
  background: rgba(248, 113, 113, 0.055);
}

.admin-user-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
}

.admin-user-name {
  overflow: hidden;
  color: #ffffff;
  font-size: 13px;
  font-weight: 730;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-id,
.admin-user-email,
.admin-user-role,
.admin-user-sub {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-id {
  margin-top: 2px;
}

.admin-user-email,
.admin-user-role,
.admin-user-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  text-align: center;
}

.admin-user-role {
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.admin-user-email {
  justify-content: flex-start;
}

.admin-user-role:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.admin-user-role:disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

.admin-user-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 40px;
}

.danger-action {
  min-width: 110px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  font-size: 11px;
  font-weight: 650;
}

.danger-action {
  color: #fca5a5;
}

.danger-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-keys-list::-webkit-scrollbar,
.admin-users-list::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.admin-keys-list::-webkit-scrollbar-track,
.admin-users-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-keys-list::-webkit-scrollbar-thumb,
.admin-users-list::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.14) 100%);
  background-clip: padding-box;
}

.admin-keys-list::-webkit-scrollbar-thumb:hover,
.admin-users-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.2) 100%);
  background-clip: padding-box;
}

.role-modal-card {
  max-width: 430px;
}

.role-target {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 13px;
  font-weight: 760;
}

.role-hint {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  line-height: 1.45;
}

.admin-shell {
  padding: 14px;
  border-radius: 28px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.admin-tab-btn,
.admin-page-btn,
.admin-secondary-btn,
.admin-mini-btn {
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.admin-tab-btn {
  min-width: 92px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 700;
}

.admin-tab-btn.active,
.admin-page-btn-primary,
.admin-mini-btn:hover {
  background: linear-gradient(180deg, #f4f4f6 0%, #d7dae4 100%);
  border-color: rgba(255, 255, 255, 0.25);
  color: #16171c;
}

.admin-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.admin-danger-btn {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.17);
}

.admin-danger-btn:hover {
  background: rgba(153, 27, 27, 0.42);
  border-color: rgba(248, 113, 113, 0.56);
  color: #ffe4e4;
}

.admin-key-revoke-btn {
  min-height: 30px;
  min-width: 92px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.16);
  color: #fecaca;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.admin-key-revoke-btn:hover {
  background: rgba(153, 27, 27, 0.4);
  border-color: rgba(248, 113, 113, 0.56);
  color: #fff1f2;
}

.admin-tab-view {
  display: none;
}

.admin-tab-view.active {
  display: block;
}

.admin-panel-card {
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.055) 0%, transparent 22%),
    rgba(14, 14, 18, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-panel-card + .admin-panel-card {
  margin-top: 10px;
}

.admin-memory-head {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-memory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.admin-memory-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 160px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 255, 255, 0.08) 0%, transparent 22%),
    rgba(255, 255, 255, 0.035);
}

.admin-memory-label {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-memory-value {
  color: #ffffff;
  font-size: clamp(24px, 2.1vw, 32px);
  font-weight: 800;
  line-height: 1.1;
}

.admin-memory-meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.5;
}

.admin-memory-meter {
  width: 100%;
  height: 12px;
  margin-top: auto;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.admin-memory-meter-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7dd3fc 0%, #d8b4fe 48%, #fda4af 100%);
  transition: width 0.25s ease;
}

.admin-memory-inline-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}

.admin-memory-inline-stats div {
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
}

.admin-memory-inline-stats span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-memory-inline-stats strong {
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
}

.admin-totp-qr {
  width: min(100%, 184px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(9, 11, 15, 0.92);
}

.admin-traffic-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 250px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.015) 100%);
}

.admin-traffic-bar-item {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: 8px;
  min-height: 200px;
}

.admin-traffic-bar {
  width: 100%;
  min-height: 6px;
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, #f0abfc 0%, #7dd3fc 100%);
  box-shadow: 0 8px 20px rgba(125, 211, 252, 0.15);
}

.admin-traffic-time {
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  font-weight: 700;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.04em;
}

.admin-traffic-empty {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  align-self: center;
}

.totp-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.totp-status-copy {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

.totp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.totp-slot-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.totp-slot-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.totp-slot-qr {
  width: 220px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 18px;
  background: #ffffff;
}

.admin-update-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 10px;
}

.admin-update-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 460px;
  overflow: auto;
  padding-right: 4px;
}

.admin-update-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #f3f4f6;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-update-item span,
.admin-update-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-update-item span {
  min-width: 0;
  flex: 1 1 auto;
}

.admin-update-item small {
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  font-weight: 700;
  flex: 0 0 auto;
}

.admin-update-item.active small {
  color: rgba(22, 23, 28, 0.7);
}

.admin-update-item.active {
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, #f4f4f6 0%, #d7dae4 100%);
  color: #16171c;
}

.admin-update-details {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.admin-update-empty {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 600;
}

.admin-update-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.admin-update-detail-grid .full {
  grid-column: 1 / -1;
}

.admin-update-detail-label {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 700;
}

.admin-update-detail-grid strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.admin-update-link {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  word-break: break-all;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.admin-update-textarea {
  min-height: 170px;
  resize: vertical;
}

.admin-update-text-block {
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.6;
  white-space: normal;
  word-break: break-word;
}

.admin-lock-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.admin-lock-icon {
  width: 28px;
  height: 28px;
  color: #ef4444;
  flex: 0 0 auto;
}

.admin-lock-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.admin-lock-copy .admin-section-title {
  margin: 0 0 6px;
}

.admin-lock-copy .dashboard-card-note {
  margin: 0;
}

.admin-lock-actions {
  margin-top: 14px;
}

.admin-lock-btn {
  min-width: 160px;
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.34);
  background: rgba(127, 29, 29, 0.16);
}

.admin-lock-btn:hover {
  background: rgba(153, 27, 27, 0.42);
  color: #fff1f2;
}

.admin-lock-btn.is-enable {
  color: #dcfce7;
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(20, 83, 45, 0.26);
}

.admin-lock-btn.is-enable:hover {
  background: rgba(22, 101, 52, 0.45);
  color: #f0fdf4;
}

.admin-section-head {
  margin-bottom: 10px;
}

.admin-section-title {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 760;
}

.admin-section-note {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  line-height: 1.35;
}

.admin-table-wrap {
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) rgba(255, 255, 255, 0.04);
}

.admin-table-wrap.compact {
  border-top: none;
}

.admin-table {
  min-width: 0;
  width: 100%;
}

.admin-keys-table {
  min-width: 0;
}

.admin-table-head,
.admin-table-row {
  display: grid;
  align-items: center;
  gap: 10px;
}

.admin-users-table .admin-table-head,
.admin-users-table .admin-table-row {
  grid-template-columns: 0.5fr 1.1fr 2.6fr 1.2fr 1.48fr 1.18fr;
}

.admin-keys-table .admin-table-head,
.admin-keys-table .admin-table-row {
  grid-template-columns: 1.5fr 0.65fr 0.72fr 0.92fr 0.55fr 0.56fr;
}

.admin-update-table .admin-table-head,
.admin-update-table .admin-table-row {
  grid-template-columns: 1.25fr 0.8fr 0.8fr 1.1fr 1fr;
}

.admin-table-head {
  min-height: 40px;
  padding: 0 6px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
}

.admin-table-body {
  display: flex;
  flex-direction: column;
}

.admin-table-row {
  min-height: 50px;
  padding: 10px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

.admin-user-row {
  width: 100%;
  border-left: none;
  border-right: none;
  border-bottom: none;
  background: transparent;
  text-align: left;
}

.admin-user-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.admin-user-row.frozen {
  background: rgba(248, 113, 113, 0.045);
}

.admin-cell {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-keys-table .admin-table-row {
  align-items: start;
}

.admin-keys-table .admin-cell {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.admin-users-table .admin-cell:nth-child(3),
.admin-users-table .admin-cell:nth-child(4),
.admin-users-table .admin-cell:nth-child(5),
.admin-users-table .admin-cell:nth-child(6) {
  text-align: center;
  justify-self: stretch;
}

.admin-user-login {
  color: #ffffff;
  font-weight: 700;
}

.admin-license-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
}

.admin-license-badge.active {
  border-color: rgba(74, 222, 128, 0.28);
  background: rgba(34, 197, 94, 0.16);
  color: #8ef0a7;
}

.admin-license-badge.inactive {
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(239, 68, 68, 0.11);
  color: #ffb0b0;
}

.admin-empty-row {
  padding: 18px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 600;
}

.admin-code-cell {
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.01em;
  font-family: "JetBrains Mono", "Consolas", "Courier New", monospace;
}

.admin-keys-table .admin-cell {
  font-size: 13px;
}

.admin-inline-btn {
  min-height: 34px;
  min-width: 104px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.admin-inline-btn:hover {
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.admin-inline-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.admin-inline-btn.admin-inline-danger {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.34);
  background: rgba(127, 29, 29, 0.16);
}

.admin-inline-btn.admin-inline-danger:hover {
  background: rgba(153, 27, 27, 0.42);
  border-color: rgba(248, 113, 113, 0.56);
  color: #fff1f2;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 10px;
}

.admin-page-btn,
.admin-secondary-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 700;
}

.admin-page-btn:disabled,
.admin-secondary-btn:disabled,
.admin-mini-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.admin-page-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  font-weight: 700;
}

.admin-page-input {
  width: 58px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 16px;
  font-weight: 760;
  text-align: center;
}

.admin-split {
  display: grid;
  gap: 10px;
}

.admin-form-grid {
  display: grid;
  gap: 10px;
}

.admin-form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-form-field.grow {
  flex: 1 1 auto;
}

.admin-form-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.admin-form-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.045);
  color: #ffffff;
  font-size: 14px;
  font-weight: 650;
  outline: none;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.admin-form-input:focus {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
}

.admin-form-input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.role-select {
  position: relative;
}

.role-select-trigger {
  width: 100%;
  min-height: 58px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.045);
  color: #ffffff;
  font-size: 14px;
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.role-select-trigger-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: 2px;
}

.role-select-trigger-label {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.role-select-trigger-value {
  color: #ffffff;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.15;
}

.role-select-trigger:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

.role-select-trigger svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.role-select.open .role-select-trigger svg {
  transform: rotate(180deg);
}

.role-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 8;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: rgba(10, 10, 12, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.role-select.open .role-select-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.role-select-option {
  width: 100%;
  min-height: 54px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 620;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.role-select-option-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.role-select-option-note {
  color: rgba(255, 255, 255, 0.46);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

.role-select-option + .role-select-option {
  margin-top: 2px;
}

.role-select-option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.role-select-option:hover .role-select-option-note {
  color: rgba(255, 255, 255, 0.72);
}

.role-select-option.active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.role-select-option.active .role-select-option-note {
  color: rgba(255, 255, 255, 0.78);
}

.admin-form-actions {
  margin-top: 10px;
}

.admin-update-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}

.admin-update-actions .modal-error {
  grid-column: 1 / -1;
}

.admin-upload-box {
  margin-bottom: 10px;
}

.admin-file-drop {
  display: flex;
  align-items: center;
  min-height: 74px;
  padding: 0 14px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.admin-mini-btn {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 700;
}

.admin-user-modal-card {
  width: min(560px, calc(100vw - 22px));
  max-width: 560px;
  max-height: calc(100vh - 20px);
  display: flex;
  flex-direction: column;
}

.admin-user-modal-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.admin-user-modal-subtitle {
  margin: 0;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-user-modal-card .modal-header {
  flex: 0 0 auto;
  align-items: flex-start;
  gap: 12px;
}

.admin-user-modal-card .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.04);
}

.admin-modal-section {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background:
    radial-gradient(circle at 70% 32%, rgba(255, 255, 255, 0.035) 0%, transparent 20%),
    rgba(255, 255, 255, 0.02);
}

.admin-modal-section + .admin-modal-section {
  margin-top: 10px;
}

.admin-modal-section-title {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 760;
}

.admin-setting-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.admin-setting-chips.is-disabled {
  opacity: 0.55;
}

.admin-setting-chip {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.admin-setting-chip:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.admin-setting-chip:disabled {
  cursor: not-allowed;
}

.admin-setting-chip-danger {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(127, 29, 29, 0.14);
}

.admin-setting-chip-danger:hover:not(:disabled) {
  background: rgba(153, 27, 27, 0.38);
  border-color: rgba(248, 113, 113, 0.56);
  color: #fff1f2;
}

.admin-security-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.admin-secondary-btn {
  white-space: nowrap;
}

.admin-status-row {
  margin-top: 12px;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 700;
}

.admin-status-row strong {
  color: #ffffff;
}

.admin-modal-actions,
.admin-confirm-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-modal-actions .admin-secondary-btn,
.admin-confirm-actions .admin-secondary-btn {
  width: 100%;
}

.admin-save-btn {
  width: 100%;
  margin-top: 10px;
}

.admin-confirm-card {
  width: min(430px, calc(100vw - 24px));
  max-width: 430px;
}

.admin-confirm-text {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  font-weight: 650;
}

.admin-confirm-reason {
  margin: 0 0 12px;
}

.admin-confirm-textarea {
  min-height: 88px;
  resize: vertical;
}

.admin-confirm-help {
  margin: 8px 2px 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 558;
  line-height: 1.4;
}

.admin-table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.admin-table-wrap::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.14) 100%);
  background-clip: padding-box;
}

.admin-table-wrap::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.2) 100%);
  background-clip: padding-box;
}

.admin-user-modal-card .modal-body::-webkit-scrollbar {
  width: 10px;
}

.admin-user-modal-card .modal-body::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-user-modal-card .modal-body::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.12) 100%);
  background-clip: padding-box;
}

@media (max-width: 980px) {
  .modal-card {
    padding: 22px 20px 20px;
    border-radius: 22px;
  }

  .modal-title {
    font-size: 17px;
  }

  .modal-input {
    padding: 10px 14px;
    font-size: 13px;
  }

  .admin-shell {
    padding: 12px;
    border-radius: 24px;
  }

  .admin-tab-btn {
    min-width: auto;
    flex: 1 1 calc(50% - 8px);
  }

  .totp-grid {
    grid-template-columns: 1fr;
  }

  .admin-memory-grid {
    grid-template-columns: 1fr;
  }

  .admin-traffic-chart {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .admin-form-grid.two,
  .admin-modal-actions,
  .admin-confirm-actions {
    grid-template-columns: 1fr;
  }

  .admin-update-layout {
    grid-template-columns: 1fr;
  }

  .admin-update-list {
    max-height: 200px;
  }

  .admin-update-actions {
    grid-template-columns: 1fr;
  }

  .admin-update-detail-grid {
    grid-template-columns: 1fr;
  }

  .admin-security-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-secondary-btn,
  .admin-page-btn {
    width: 100%;
  }

  .admin-pagination {
    flex-direction: column;
  }

  .admin-user-modal-card,
  .admin-confirm-card {
    max-width: 100%;
  }

  .admin-table {
    min-width: 0;
  }

  .profile-hero {
    gap: 14px;
  }

  .profile-hero-avatar {
    width: 64px;
    height: 64px;
  }

  .profile-hero-name {
    font-size: 22px;
  }

  .profile-hero-meta {
    font-size: 14px;
  }

  .dashboard-card-subtitle {
    font-size: 16px;
  }

  .profile-row {
    flex-direction: column;
    gap: 4px;
  }

  .profile-value {
    text-align: left;
  }

  .profile-password-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .key-activate-box,
  .admin-create-row {
    grid-template-columns: 1fr;
  }

  .buy-grid {
    grid-template-columns: 1fr;
  }

  .buy-submit-btn {
    width: 100%;
    min-width: 0;
  }

  .admin-create-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .key-submit,
  .admin-create-btn {
    width: 100%;
  }

  .admin-users-list {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .admin-user-card {
    min-width: 1010px;
  }

  .admin-user-actions {
    align-items: center;
    flex-direction: row;
  }

  .profile-stack {
    gap: 12px;
  }

  .dashboard-card {
    padding: 24px 22px 22px;
    border-radius: 22px;
  }

  .dashboard-card-title {
    font-size: 18px;
  }

  .dashboard-main {
    padding: 90px 12px 32px;
  }

  .dashboard-main::before {
    background:
      radial-gradient(ellipse at 46% 46%, rgba(255, 255, 255, 0.06) 0%, transparent 36%),
      radial-gradient(ellipse at 58% 74%, rgba(0, 0, 0, 0.18) 0%, transparent 38%),
      url("./assets/essence-blob-1.svg") right -34% top 18% / 82vw auto no-repeat,
      url("./assets/essence-blob-2.svg") left -36% bottom 8% / 86vw auto no-repeat;
  }

  .dashboard-layout {
    flex-direction: column;
    gap: 12px;
  }

  .dash-sidebar {
    flex: 0 0 auto;
    position: static;
  }

  .dash-sidebar-inner {
    flex-direction: row;
    align-items: center;
    min-height: auto;
    padding: 10px 12px;
    border-radius: 22px;
    gap: 4px;
  }

  .dash-nav {
    flex-direction: row;
    gap: 4px;
  }

  .dash-sidebar-spacer {
    display: none;
  }

  .dash-logout {
    margin-top: 0;
    margin-left: auto;
  }

  .loader-row {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .loader-servers {
    flex-wrap: wrap;
  }
}
