/* 00-tokens.css */
:root {
  --bg: #06070d;
  --bg-2: #090b14;
  --bg-3: #0d1020;
  --text: #f5f7ff;
  --muted: #aab0c5;
  --muted-2: #7d849d;
  --pink: #ff4fd8;
  --purple: #8b5dff;
  --blue: #4da3ff;
  --cyan: #5ce1ff;
  --border: rgba(255, 255, 255, 0.08);
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.10);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.28);
  --glow-pink: 0 0 26px rgba(255, 79, 216, 0.22);
  --glow-purple: 0 0 30px rgba(139, 93, 255, 0.22);
  --glow-blue: 0 0 26px rgba(77, 163, 255, 0.18);
  --maxw: 1200px;
  --header-height: 96px;
}

/* 01-base.css */
/* RESET */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% -5%, rgba(139, 93, 255, 0.22), transparent 24%),
    radial-gradient(circle at 90% 12%, rgba(255, 79, 216, 0.18), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(77, 163, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #05060b 0%, #070914 36%, #05060b 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.28), transparent 72%);
  opacity: 0.24;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(92, 225, 255, 0.05), transparent 18%),
    radial-gradient(circle at 80% 30%, rgba(255, 79, 216, 0.05), transparent 20%),
    radial-gradient(circle at 50% 85%, rgba(139, 93, 255, 0.05), transparent 20%);
  filter: blur(24px);
  opacity: 0.9;
}

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

img {
  max-width: 100%;
  display: block;
}

.visitor-world-map__image {
  pointer-events: none;
  user-select: none;
}

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

button {
  font-family: inherit;
}

/* 02-layout.css */
/* LAYOUT */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.landing-page {
  padding: 36px 0 80px;
}

main.site-main {
  position: relative;
  z-index: 1;
}

.glass {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.03) 30%, transparent 56%);
  opacity: 0.65;
}

.glass > * {
  position: relative;
  z-index: 1;
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 48px;
  display: grid;
  gap: 20px;
}

.page-shell--narrow {
  width: min(900px, calc(100% - 32px));
}

.compact-hero {
  padding: 24px;
}

.stack-list {
  display: grid;
  gap: 16px;
}

.hero-card {
  border-radius: 32px;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

/* 03-header.css */
/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 130;
  background:
    linear-gradient(180deg, rgba(7, 8, 15, 0.92), rgba(7, 8, 15, 0.76));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.24),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 79, 216, 0.35),
    rgba(77, 163, 255, 0.35),
    transparent
  );
  opacity: 0.7;
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--header-height);
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  position: relative;
  z-index: 141;
  flex: 0 0 auto;
}

.brand::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 6px;
  height: 12px;
  background: radial-gradient(circle, rgba(139, 93, 255, 0.28), transparent 72%);
  filter: blur(10px);
  opacity: 0.85;
  pointer-events: none;
}

.brand img {
  display: block;
  height: 72px;
  width: auto;
  max-width: none;
  object-fit: contain;
  flex: 0 0 auto;
  filter:
    drop-shadow(0 0 10px rgba(255, 79, 216, 0.28))
    drop-shadow(0 0 20px rgba(139, 93, 255, 0.22));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand:hover img {
  transform: translateY(-1px) scale(1.02);
  filter:
    drop-shadow(0 0 12px rgba(255, 79, 216, 0.4))
    drop-shadow(0 0 28px rgba(139, 93, 255, 0.34));
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  margin-left: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 42px rgba(0, 0, 0, 0.24);
  position: relative;
  overflow: hidden;
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.03) 24%, transparent 45%);
  opacity: 0.75;
}

.nav a,
.nav .nav-item,
.nav .nav-link-btn,
.nav .nav-logout-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: transparent;
  border: none;
  cursor: pointer;
  transition:
    color 0.22s ease,
    background 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
  overflow: hidden;
  isolation: isolate;
}

.nav a::before,
.nav .nav-item::before,
.nav .nav-link-btn::before,
.nav .nav-logout-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      135deg,
      rgba(255, 79, 216, 0.18),
      rgba(139, 93, 255, 0.16),
      rgba(77, 163, 255, 0.14)
    );
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: -2;
}

.nav a::after,
.nav .nav-item::after,
.nav .nav-link-btn::after,
.nav .nav-logout-btn::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 79, 216, 0.95),
    rgba(77, 163, 255, 0.95),
    transparent
  );
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.nav a:hover,
.nav .nav-item:hover,
.nav .nav-link-btn:hover,
.nav .nav-logout-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.035);
  text-shadow:
    0 0 12px rgba(255, 79, 216, 0.26),
    0 0 12px rgba(77, 163, 255, 0.18);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(0, 0, 0, 0.16);
}

.nav a:hover::before,
.nav .nav-item:hover::before,
.nav .nav-link-btn:hover::before,
.nav .nav-logout-btn:hover::before {
  opacity: 1;
  transform: scale(1);
}

.nav a:hover::after,
.nav .nav-item:hover::after,
.nav .nav-link-btn:hover::after,
.nav .nav-logout-btn:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.nav a:active,
.nav .nav-item:active,
.nav .nav-link-btn:active,
.nav .nav-logout-btn:active {
  transform: translateY(0) scale(0.985);
}

.nav-logout-form {
  margin: 0;
  display: flex;
}

.nav-link-btn,
.nav-logout-btn {
  appearance: none;
  -webkit-appearance: none;
}

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

.lang-switch-form {
  margin: 0;
  display: inline-flex;
}

.lang-switch-form button {
  appearance: none;
  -webkit-appearance: none;
  line-height: 1;
  cursor: pointer;
}

.lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 79, 216, 0.18), rgba(139, 93, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 8px 22px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
  overflow: hidden;
}

.lang::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.08) 28%, transparent 52%);
  opacity: 0.8;
}

.lang:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.28), rgba(139, 93, 255, 0.28));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 16px rgba(139, 93, 255, 0.18),
    0 14px 28px rgba(0, 0, 0, 0.18);
}

.lang-current {
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.36), rgba(139, 93, 255, 0.36));
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 20px rgba(255, 79, 216, 0.14),
    0 0 24px rgba(139, 93, 255, 0.14);
}

.header-fade {
  height: 34px;
  background: linear-gradient(to bottom, rgba(8, 10, 16, 0.94), rgba(8, 10, 16, 0));
  pointer-events: none;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 22px rgba(0, 0, 0, 0.12);
}

.user-chip-label {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logout-form {
  margin: 0;
}

.logout-btn {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, rgba(255, 79, 216, 0.22), rgba(139, 93, 255, 0.22));
  transition: 0.2s ease;
}

.logout-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(90deg, rgba(255, 79, 216, 0.30), rgba(139, 93, 255, 0.30));
  box-shadow: var(--glow-pink);
}

.nav-item-with-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.nav-unread-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 6px 16px rgba(139, 93, 255, 0.35);
}

.nav-unread-badge[hidden] {
  display: none !important;
}

/* ACTIVE UNDERLINE ANIMATION */
.nav a.is-active::after,
.nav .nav-item.is-active::after,
.nav .nav-link-btn.is-active::after {
  opacity: 1;
  transform: translateY(0);
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 79, 216, 1),
    rgba(139, 93, 255, 1),
    rgba(77, 163, 255, 1),
    rgba(255, 79, 216, 1)
  );
  background-size: 200% 100%;
  animation: navActiveGlow 3s linear infinite;
  box-shadow:
    0 0 8px rgba(255, 79, 216, 0.6),
    0 0 14px rgba(77, 163, 255, 0.4);
}

/* ANIMATION */
@keyframes navActiveGlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

/* MOBILE HAMBURGER + OFF-CANVAS */
.menu-toggle {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  color: #fff;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
  z-index: 150;
  touch-action: manipulation;
}

.menu-toggle:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  border-color: rgba(255, 255, 255, 0.16);
}

.menu-toggle:active {
  transform: scale(0.98);
}

.menu-toggle__box {
  width: 22px;
  height: 16px;
  position: relative;
  display: inline-block;
}

.menu-toggle__line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease,
    top 0.25s ease,
    box-shadow 0.25s ease;
  box-shadow:
    0 0 10px rgba(255, 79, 216, 0.22),
    0 0 10px rgba(77, 163, 255, 0.16);
}

.menu-toggle__line:nth-child(1) {
  top: 0;
}

.menu-toggle__line:nth-child(2) {
  top: 7px;
}

.menu-toggle__line:nth-child(3) {
  top: 14px;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
  z-index: 120;
}

/* narrow portrait phones only */
@media (max-width: 820px) and (orientation: portrait) {
  .header-inner {
    align-items: center;
    justify-content: space-between;
    min-height: 84px;
  }

  .brand img {
    height: 60px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    flex: 0 0 auto;
  }

  .nav-wrap {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 380px);
    height: 100vh;
    padding: 88px 18px 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 14px;
    margin-left: 0;
    background:
      radial-gradient(circle at top right, rgba(255, 79, 216, 0.16), transparent 24%),
      radial-gradient(circle at bottom left, rgba(77, 163, 255, 0.14), transparent 26%),
      linear-gradient(180deg, rgba(8, 10, 18, 0.98), rgba(6, 8, 15, 0.98));
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
      -20px 0 48px rgba(0, 0, 0, 0.42),
      inset 1px 0 0 rgba(255, 255, 255, 0.04);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    will-change: transform;
    z-index: 140;
  }

  .nav-wrap::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 79, 216, 0.42),
      rgba(77, 163, 255, 0.42),
      transparent
    );
    opacity: 0.8;
  }

  .nav-wrap .nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
    border-radius: 24px;
    overflow: visible;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  }

  .nav-wrap .nav a,
  .nav-wrap .nav .nav-item,
  .nav-wrap .nav .nav-link-btn,
  .nav-wrap .nav .nav-logout-btn {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    padding: 12px 16px;
    font-size: 15px;
    white-space: normal;
  }

  .nav-wrap .nav a::after,
  .nav-wrap .nav .nav-item::after,
  .nav-wrap .nav .nav-link-btn::after,
  .nav-wrap .nav .nav-logout-btn::after {
    left: 16px;
    right: 16px;
  }

  .nav-wrap .lang-switches {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  .nav-wrap .user-chip {
    width: 100%;
    justify-content: space-between;
    padding: 10px 12px 10px 14px;
    border-radius: 18px;
  }

  .nav-wrap .user-chip-label {
    max-width: 100%;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .menu-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.menu-open .nav-wrap {
    transform: translateX(0);
  }

  body.menu-open .menu-toggle__line:nth-child(1) {
    top: 7px;
    transform: rotate(45deg);
  }

  body.menu-open .menu-toggle__line:nth-child(2) {
    opacity: 0;
  }

  body.menu-open .menu-toggle__line:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg);
  }
}

@media (max-width: 640px) and (orientation: portrait) {
  .brand img {
    height: 52px;
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
  }

  .nav-wrap {
    width: min(92vw, 360px);
    padding: 84px 14px 18px;
  }

  .nav-wrap .nav {
    padding: 8px;
    border-radius: 20px;
  }

  .nav-wrap .nav a,
  .nav-wrap .nav .nav-item,
  .nav-wrap .nav .nav-link-btn,
  .nav-wrap .nav .nav-logout-btn {
    min-height: 46px;
    padding: 11px 14px;
    font-size: 14px;
  }

  .lang {
    min-width: 46px;
    height: 40px;
    padding: 0 12px;
  }
}

/* tablet / fold inner / small laptops: logo row + nav row */
@media (min-width: 821px) and (max-width: 1200px) {
  .header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 12px;
  }

  .brand {
    width: 100%;
  }

  .brand img {
    height: 60px;
  }

  .nav-wrap {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .nav {
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }
}

/* wider desktops */
@media (min-width: 1201px) {
  .menu-toggle {
    display: none !important;
  }

  .menu-overlay {
    display: none !important;
  }
}

/* APPLICATIONS DROPDOWN */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown__toggle {
  gap: 7px;
}

.nav-dropdown__chevron {
  font-size: 16px;
  line-height: 1;
  opacity: 0.8;
  transform: translateY(-1px);
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown__chevron,
.nav-dropdown.is-open .nav-dropdown__chevron {
  transform: translateY(0) rotate(180deg);
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  min-width: 280px;
  padding: 10px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(255, 79, 216, 0.17), transparent 34%),
    radial-gradient(circle at bottom right, rgba(77, 163, 255, 0.14), transparent 36%),
    rgba(9, 12, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 170;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu,
.nav-dropdown.is-open .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.nav-dropdown__link {
  width: 100%;
  justify-content: flex-start !important;
  gap: 12px;
  min-height: 74px !important;
  padding: 13px 14px !important;
  border-radius: 16px !important;
  color: #fff !important;
  text-align: left;
}

.nav-dropdown__link span:last-child {
  display: grid;
  gap: 3px;
}

.nav-dropdown__link strong {
  font-size: 14px;
}

.nav-dropdown__link small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.nav-dropdown__icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.22), rgba(77, 163, 255, 0.20));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

@media (max-width: 820px) and (orientation: portrait) {
  .nav-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-dropdown__toggle {
    justify-content: space-between !important;
  }

  .nav-dropdown__menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    border-radius: 18px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    display: none;
    background: rgba(255, 255, 255, 0.04);
  }

  .nav-dropdown.is-open .nav-dropdown__menu,
  .nav-dropdown:hover .nav-dropdown__menu,
  .nav-dropdown:focus-within .nav-dropdown__menu {
    display: block;
    transform: none;
  }

  .nav-dropdown__link {
    min-height: 68px !important;
  }
}

/* 03a-nav-dropdown.css */
/* STABLE NAV DROPDOWN
   Keep every dropdown rule in one dedicated file so later page/UI changes do not
   accidentally break the Applications menu. This file must be loaded after the
   generic header styles. */
.site-header,
.header-inner,
.nav-wrap,
.nav {
  overflow: visible !important;
}

.site-header {
  z-index: 1000;
}

.header-inner {
  z-index: 1001;
}

.nav-wrap,
.nav {
  position: relative;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: visible !important;
  z-index: 1002;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  top: 100%;
  height: 18px;
  z-index: 1199;
}

.nav-dropdown__toggle {
  gap: 7px;
  user-select: none;
}

.nav-dropdown__chevron {
  font-size: 16px;
  line-height: 1;
  opacity: 0.8;
  transform: translateY(-1px);
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown__chevron,
.nav-dropdown:focus-within .nav-dropdown__chevron,
.nav-dropdown.is-open .nav-dropdown__chevron {
  transform: translateY(0) rotate(180deg);
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 286px;
  padding: 10px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(255, 79, 216, 0.17), transparent 34%),
    radial-gradient(circle at bottom right, rgba(77, 163, 255, 0.14), transparent 36%),
    rgba(9, 12, 22, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px) scale(0.98);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease;
  z-index: 1200;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu,
.nav-dropdown.is-open .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.nav-dropdown__link {
  width: 100%;
  justify-content: flex-start !important;
  gap: 12px;
  min-height: 74px !important;
  padding: 13px 14px !important;
  border-radius: 16px !important;
  color: #fff !important;
  text-align: left;
}

.nav-dropdown__link span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.nav-dropdown__link strong {
  font-size: 14px;
}

.nav-dropdown__link small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.nav-dropdown__icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.22), rgba(77, 163, 255, 0.20));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

@media (max-width: 820px) and (orientation: portrait) {
  .nav-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-dropdown__toggle {
    justify-content: space-between !important;
  }

  .nav-dropdown__menu {
    position: static;
    left: auto;
    top: auto;
    min-width: 0;
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    border-radius: 18px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    display: none;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  }

  .nav-dropdown.is-open .nav-dropdown__menu,
  .nav-dropdown:hover .nav-dropdown__menu,
  .nav-dropdown:focus-within .nav-dropdown__menu {
    display: block;
    transform: none;
  }

  .nav-dropdown__link {
    min-height: 68px !important;
  }
}

/* 04-footer.css */
/* FOOTER */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  padding: 8px 0 28px;
}

.site-footer .container {
  max-width: var(--maxw);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__brand-block {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.site-footer__eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.site-footer__title {
  font-size: 16px;
  font-weight: 700;
  color: #eef3ff;
  line-height: 1.4;
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.site-footer__link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

/* 05-ui.css */
/* FOOTER */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  padding: 8px 0 28px;
}

.site-footer .container {
  max-width: var(--maxw);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__brand-block {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.site-footer__eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.site-footer__title {
  font-size: 16px;
  font-weight: 700;
  color: #eef3ff;
  line-height: 1.4;
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.site-footer__link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

/* 10-home.css */
/* SHARED UI */
.badge,
.section-kicker,
.news-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge,
.section-kicker {
  background: linear-gradient(90deg, rgba(255, 79, 216, 0.16), rgba(92, 225, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.14);
}

.news-tag {
  padding: 7px 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  background: linear-gradient(90deg, rgba(255, 79, 216, 0.18), rgba(77, 163, 255, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.primary-btn,
.secondary-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  border: none;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}

.primary-btn::before,
.secondary-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.14) 34%, transparent 58%);
  transform: translateX(-140%);
  transition: transform 0.6s ease;
  z-index: -1;
}

.primary-btn:hover::before,
.secondary-btn:hover::before {
  transform: translateX(140%);
}

.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow:
    0 14px 32px rgba(139, 93, 255, 0.28),
    0 0 24px rgba(255, 79, 216, 0.16);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px rgba(139, 93, 255, 0.34),
    0 0 28px rgba(255, 79, 216, 0.22);
}

.secondary-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 24px rgba(0, 0, 0, 0.12);
}

.secondary-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}

.full-width {
  width: 100%;
}

.label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.alert {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 600;
}

.alert-success {
  background: rgba(58, 201, 127, 0.12);
  border-color: rgba(58, 201, 127, 0.28);
  color: #d7ffe8;
}

.alert-error {
  background: rgba(255, 79, 79, 0.12);
  border-color: rgba(255, 79, 79, 0.28);
  color: #ffd9d9;
}

.form-error-list {
  margin: 0;
  padding-left: 18px;
}

.form-error-list li + li {
  margin-top: 6px;
}

.empty-state {
  margin-top: 12px;
  padding: 28px 24px;
  border-radius: 24px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.empty-state h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2vw, 28px);
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* 11-auth.css */
/* HOME */
.hero-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 40px;
  background:
    radial-gradient(circle at top left, rgba(139, 93, 255, 0.22), transparent 32%),
    radial-gradient(circle at right, rgba(255, 79, 216, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(16, 18, 28, 0.94), rgba(11, 13, 20, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 225, 255, 0.18), transparent 68%);
  pointer-events: none;
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.03) 40%, transparent 70%);
  opacity: 0.7;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 30px;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.hero-copy h1 {
  margin: 20px 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.hero-copy h1 .accent {
  display: block;
  background: linear-gradient(90deg, #ffffff 0%, #dcb8ff 35%, #74d8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy p {
  max-width: 640px;
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-side {
  min-height: 100%;
}

.hero-stats {
  display: grid;
  gap: 14px;
}

.stat-card {
  position: relative;
  padding: 20px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto auto -20px -20px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 79, 216, 0.09), transparent 66%);
  pointer-events: none;
}

.stat-label {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.stat-value {
  font-size: 26px;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 8px;
}

.stat-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.grid-panels {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
}

.panel {
  border-radius: 26px;
  padding: 28px;
}

.panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.2;
}

.panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
}

.panel-wide {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(77, 163, 255, 0.10), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}

.panel-wide::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 79, 216, 0.12), transparent 68%);
  pointer-events: none;
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(180deg, rgba(139, 93, 255, 0.09), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(180, 120, 255, 0.18);
}

.news-section {
  margin-top: 28px;
  padding: 30px;
  border-radius: 30px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 12px 0 0;
  font-size: 30px;
  line-height: 1.1;
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  text-align: right;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.news-card {
  position: relative;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}

.news-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.04) 26%, transparent 52%);
  opacity: 0.8;
  pointer-events: none;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(180, 120, 255, 0.24);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28), var(--glow-purple);
}

.news-card h3 {
  margin: 18px 0 12px;
  font-size: 21px;
  line-height: 1.2;
}

.news-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.dashboard-hero {
  max-width: 860px;
  margin: 0 auto;
}

.dashboard-hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  margin: 10px 0 6px;
}

.dashboard-subtitle {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.dashboard-card {
  border-radius: 28px;
  padding: 26px;
}

.dashboard-card h3 {
  margin: 18px 0 12px;
  font-size: 24px;
  line-height: 1.2;
}

.dashboard-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.auth-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 28px;
}

.auth-shell--wide {
  max-width: 1000px;
}

.auth-hero {
  text-align: center;
  margin-bottom: 24px;
}

.auth-hero h1 {
  font-size: clamp(34px, 5vw, 48px);
  margin: 10px 0;
}

.auth-hero p {
  color: var(--muted);
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.auth-card {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

.auth-card--full {
  grid-column: span 2;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.field input,
.field select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.4);
  color: #fff;
}

.checkbox {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.auth-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-actions--full {
  grid-column: span 2;
  justify-content: center;
}

.primary-btn {
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff4fd8, #8b5dff);
  color: #fff;
  border: none;
  cursor: pointer;
}

.secondary-btn {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
}

.auth-consent-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.auth-inline-link-btn {
  flex-shrink: 0;
  min-width: 210px;
  text-align: center;
}

.checkbox--stacked {
  flex: 1;
}

@media (max-width: 780px) {
  .auth-consent-row {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-inline-link-btn {
    min-width: 0;
    width: 100%;
  }
}

/* 12-profile.css */
/* PROFILE */
.profile-shell {
  max-width: 1080px;
  margin: 40px auto;
  padding: 32px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.profile-shell--wide {
  max-width: 1320px;
  padding: 34px;
}

.profile-hero {
  margin-bottom: 22px;
}

.profile-hero__content h1 {
  margin: 12px 0 10px;
  font-size: clamp(34px, 4vw, 52px);
}

.profile-hero__content p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.75;
}

.profile-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.profile-summary--hero {
  margin-bottom: 22px;
}

.profile-summary-card {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.profile-summary-label {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.profile-summary-value {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
}

.profile-global-alert {
  margin-bottom: 20px;
}

.profile-panels,
.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 22px;
  align-items: start;
}

.profile-main,
.profile-side {
  display: grid;
  gap: 18px;
}

.profile-panel {
  padding: 24px;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.profile-panel h2 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.2;
}

.profile-panel__head {
  margin-bottom: 16px;
}

.profile-panel__head h2 {
  margin: 0 0 10px;
}

.profile-help {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.profile-panel--highlight {
  background:
    radial-gradient(circle at top right, rgba(139, 93, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
}

.profile-panel--accent {
  background:
    radial-gradient(circle at top right, rgba(77, 163, 255, 0.10), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
}

.profile-panel--security {
  background:
    radial-gradient(circle at top right, rgba(255, 79, 216, 0.10), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
}

.profile-panel-danger {
  border: 1px solid rgba(255, 79, 183, 0.16);
}

.profile-content-grid {
  display: grid;
  gap: 26px;
}

.profile-delete-block {
  max-width: 520px;
  margin: 8px auto 0;
  width: 100%;
}

.profile-panel-danger--standalone {
  border: 1px solid rgba(255, 79, 183, 0.22);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.24),
    0 0 24px rgba(255, 79, 183, 0.08);
}

.profile-panel .contact-form {
  margin-top: 12px;
}

.contact-form .form-field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(7, 10, 20, 0.72);
  color: #ffffff;
  font: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.contact-form .form-field select:focus {
  outline: none;
  border-color: rgba(151, 104, 255, 0.55);
  box-shadow:
    0 0 0 3px rgba(151, 104, 255, 0.14),
    0 0 24px rgba(77, 163, 255, 0.10);
  background: rgba(10, 14, 26, 0.9);
}

@media (max-width: 768px) {

  .profile-shell {
    margin: 20px auto;
    padding: 18px;
  }

  .profile-summary {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .profile-summary-card {
    padding: 14px;
  }

  .profile-summary-value {
    font-size: 16px;
  }

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

  .profile-panel {
    padding: 16px;
  }

  .profile-panel h2 {
    font-size: 18px;
  }
}
/* SOCIAL PROFILE EXTENSIONS */
.profile-hero--with-avatar {
  display: flex;
  gap: 22px;
  align-items: center;
}

.profile-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(139, 93, 255, 0.85), rgba(77, 163, 255, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-soft);
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
}

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

.profile-avatar--hero {
  width: 112px;
  height: 112px;
  font-size: 42px;
}

.profile-avatar--large {
  width: 150px;
  height: 150px;
  font-size: 58px;
}

.profile-public-form textarea,
.profile-search-form input[type="search"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(7, 10, 20, 0.72);
  color: #fff;
  font: inherit;
  resize: vertical;
}

.profile-section-title {
  margin: 18px 0 12px;
  color: var(--text);
  font-size: 16px;
}

.profile-user-list {
  display: grid;
  gap: 10px;
}

.profile-user-list--search {
  margin-top: 18px;
}

.profile-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-user-row a {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.profile-user-row a span {
  color: var(--muted);
  font-weight: 600;
}

.profile-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.profile-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.profile-status-pill--ok {
  color: #9fffd1;
  border-color: rgba(159, 255, 209, 0.22);
  background: rgba(46, 213, 115, 0.08);
}

.profile-empty {
  margin: 0;
  color: var(--muted);
}

.public-profile-shell {
  max-width: 900px;
}

.public-profile-card {
  display: flex;
  gap: 28px;
  align-items: center;
}

.public-profile-card__body h1 {
  margin: 12px 0 6px;
  font-size: clamp(34px, 5vw, 56px);
}

.public-profile-nickname {
  margin: 0 0 18px;
  color: var(--muted-2);
  font-weight: 800;
}

.public-profile-bio {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  white-space: pre-line;
}

.public-profile-bio--muted {
  opacity: 0.75;
}

.public-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

@media (max-width: 768px) {
  .profile-hero--with-avatar,
  .public-profile-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-avatar--hero {
    width: 88px;
    height: 88px;
    font-size: 34px;
  }

  .profile-avatar--large {
    width: 112px;
    height: 112px;
    font-size: 44px;
  }

  .profile-user-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-row-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Styled profile avatar upload */
.profile-file-field {
  gap: 8px;
}

.profile-file-upload {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 6px 14px 6px 6px;
  border-radius: 17px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 79, 216, 0.10), transparent 30%),
    rgba(7, 10, 20, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.profile-file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.profile-file-upload__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 13px;
  cursor: pointer;
  user-select: none;
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: -0.01em;
  background:
    linear-gradient(135deg, rgba(255, 79, 216, 0.24), rgba(139, 93, 255, 0.24)),
    rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(194, 99, 255, 0.48);
  box-shadow:
    0 10px 24px rgba(139, 93, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.profile-file-upload__button:hover,
.profile-file-upload__button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 79, 216, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 79, 216, 0.34), rgba(139, 93, 255, 0.32)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    0 14px 30px rgba(139, 93, 255, 0.24),
    0 0 0 3px rgba(151, 104, 255, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
  outline: none;
}

.profile-file-upload__icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  color: #f5d6ff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 15px;
  line-height: 1;
}

.profile-file-upload__name {
  min-width: 0;
  color: rgba(238, 241, 255, 0.88);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-file-upload__hint {
  margin: 4px 0 0;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 560px) {
  .profile-file-upload {
    align-items: stretch;
    flex-direction: column;
    padding: 8px;
  }

  .profile-file-upload__button {
    width: 100%;
  }

  .profile-file-upload__name {
    padding: 0 8px 4px;
    white-space: normal;
  }
}

/* SETTINGS SIDE NAV */
.settings-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.settings-sidebar {
  position: sticky;
  top: 92px;
  border-radius: 24px;
  padding: 16px;
  background:
    radial-gradient(circle at top left, rgba(255, 79, 216, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow-soft);
}

.settings-sidebar__label {
  padding: 8px 10px 14px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.settings-sidebar__nav {
  display: grid;
  gap: 8px;
}

.settings-sidebar__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 13px;
  border-radius: 16px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.055);
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.settings-sidebar__link:hover,
.settings-sidebar__link.is-active {
  color: #fff;
  transform: translateX(3px);
  border-color: rgba(151, 104, 255, 0.36);
  background:
    linear-gradient(135deg, rgba(255, 79, 216, 0.16), rgba(139, 93, 255, 0.14));
}

.settings-sidebar__link--danger:hover {
  border-color: rgba(255, 79, 183, 0.42);
  background: rgba(255, 79, 183, 0.10);
}

.settings-content {
  min-width: 0;
}

.profile-content-grid.settings-content {
  display: grid;
  gap: 26px;
}

.profile-panel,
.profile-content-main,
.profile-delete-block {
  scroll-margin-top: 100px;
}

@media (max-width: 980px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-sidebar {
    position: relative;
    top: auto;
  }

  .settings-sidebar__nav {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }
}

/* PROFILE SETTINGS PAGE SIDEBAR ALIGNMENT
   The profile settings page uses the same separated left-menu layout as admin pages. */
.profile-settings-layout--page {
  align-items: start;
}

.profile-settings-layout--page .profile-settings-sidebar {
  margin-top: 0;
}

.profile-settings-layout--page .profile-shell {
  width: 100%;
  max-width: none;
  margin: 0;
}

.profile-settings-layout--page .profile-content-grid {
  display: block;
  min-width: 0;
}

.profile-settings-layout--page .profile-shell > .profile-panel,
.profile-settings-layout--page .profile-shell > .profile-content-main,
.profile-settings-layout--page .profile-shell > .profile-delete-block {
  margin-top: 26px;
}

.profile-settings-sidebar .settings-sidebar__link::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 999px;
  background: rgba(151, 104, 255, 0.65);
  box-shadow: 0 0 10px rgba(151, 104, 255, 0.35);
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .profile-settings-layout--page .profile-settings-sidebar {
    margin-bottom: 18px;
  }
}

/* 13-contact.css */
/* CONTACT */
.contact-hero {
  max-width: 720px;
  margin: 0 auto;
}

.contact-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin: 12px 0;
}

.contact-subtitle {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.contact-box {
  margin-top: 26px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.contact-email {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: 0.2s ease;
}

.contact-email:hover {
  filter: brightness(1.2);
  text-shadow: 0 0 12px rgba(255, 79, 183, 0.4);
}

.contact-page {
  padding-bottom: 12px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.25fr);
  gap: 24px;
  margin-top: 28px;
}

.contact-card {
  position: relative;
  padding: 24px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.contact-card__label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-info-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.contact-info-item {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-info-item__name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.contact-info-item a,
.contact-info-item span:last-child {
  color: #eef3ff;
  text-decoration: none;
  word-break: break-word;
}

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.contact-form .form-field {
  display: grid;
  gap: 8px;
}

.contact-form .form-field label {
  font-size: 14px;
  font-weight: 700;
  color: #eef3ff;
}

.contact-form .form-field input,
.contact-form .form-field textarea,
.contact-form .form-field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(7, 10, 20, 0.72);
  color: #ffffff;
  font: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.contact-form .form-field input::placeholder,
.contact-form .form-field textarea::placeholder {
  color: rgba(230, 236, 255, 0.40);
}

.contact-form .form-field input:focus,
.contact-form .form-field textarea:focus,
.contact-form .form-field select:focus {
  outline: none;
  border-color: rgba(151, 104, 255, 0.55);
  box-shadow:
    0 0 0 3px rgba(151, 104, 255, 0.14),
    0 0 24px rgba(77, 163, 255, 0.10);
  background: rgba(10, 14, 26, 0.9);
}

.contact-form .form-field textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-form__actions {
  display: flex;
  width: 100%;
  justify-content: stretch;
  padding-top: 4px;
}

.contact-form__actions .primary-btn,
.contact-form__actions .danger-btn,
.contact-form__actions .full-width {
  width: 100%;
}

/* 14-admin.css */
/* ADMIN */
.admin-page {
  padding-bottom: 12px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.admin-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 22px 22px 20px;
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
  background:
    radial-gradient(circle at top left, rgba(255, 79, 216, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(77, 163, 255, 0.10), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.admin-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.04) 36%, transparent 62%);
  pointer-events: none;
}

.admin-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(139, 93, 255, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.admin-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-card__badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-card__counter {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  background:
    linear-gradient(135deg, #ff4fd8, #8b5dff);
  box-shadow:
    0 0 14px rgba(255, 79, 216, 0.4),
    0 0 20px rgba(139, 93, 255, 0.3);
}

.admin-card h2 {
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
}

.admin-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted-2);
}

.admin-card__meta span {
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 10px;
  border-radius: 10px;
}

.admin-card__action {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #dfe7ff;
}

.admin-page__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.admin-page__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}

.admin-page__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.admin-page__lead {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-top: 8px;
}

.admin-back-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  transition: 0.2s ease;
}

.admin-back-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.admin-users-card {
  border-radius: 28px;
  padding: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.admin-users-card__top {
  margin-bottom: 20px;
}

.admin-users-card__top h2 {
  margin: 0 0 6px;
}

.admin-users-table-wrap {
  overflow-x: auto;
}

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-users-table thead th {
  text-align: left;
  padding: 12px 10px;
  color: var(--muted-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
}

.admin-users-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: 0.2s ease;
}

.admin-users-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.admin-users-table td {
  padding: 14px 10px;
  color: var(--text);
  vertical-align: middle;
}

.status-badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.status-badge--active {
  background: rgba(92, 225, 255, 0.12);
  color: var(--cyan);
}

.status-badge--inactive {
  background: rgba(255, 79, 216, 0.12);
  color: var(--pink);
}

.status-badge--verified {
  background: rgba(77, 163, 255, 0.12);
  color: var(--blue);
}

.status-badge--unverified {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.status-badge--admin {
  background: rgba(139, 93, 255, 0.16);
  color: #c8b5ff;
}

.status-badge--user {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.danger-btn {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 79, 183, 0.3);
  background: rgba(255, 79, 183, 0.12);
  color: #ff9dbf;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.danger-btn:hover {
  background: rgba(255, 79, 183, 0.22);
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 79, 183, 0.3);
}

.admin-empty-state {
  padding: 40px;
  border-radius: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.admin-empty-state h2 {
  margin-bottom: 10px;
}

.admin-empty-state p {
  color: var(--muted);
}

/* admin top toolbar */
.admin-topbar {
  position: relative;
  z-index: 20;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    90deg,
    rgba(255, 79, 216, 0.08),
    rgba(139, 93, 255, 0.12),
    rgba(77, 163, 255, 0.08)
  );
  backdrop-filter: blur(14px);
}

.admin-topbar__inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  padding: 10px 0;
}

.admin-topbar__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-topbar__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.95), rgba(139, 93, 255, 0.95));
  box-shadow: 0 10px 24px rgba(139, 93, 255, 0.28);
}

.admin-topbar__label {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  opacity: 0.92;
}

.admin-topbar__nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-topbar__nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  transition: 0.2s ease;
}

.admin-topbar__nav a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.admin-topbar__nav a.is-active {
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.18), rgba(77, 163, 255, 0.16));
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.admin-topbar__logout {
  margin: 0;
}

.admin-topbar__logout-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.admin-topbar__logout-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.admin-shell {
  padding: 32px 0 56px;
}

.admin-shell__header {
  padding: 28px;
  border-radius: 24px;
  margin-bottom: 22px;
}

.admin-shell__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.admin-shell__header h1 {
  margin: 0 0 10px;
}

.admin-shell__lead {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
  line-height: 1.6;
}

.admin-quicknav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.admin-quicknav__item {
  display: block;
  padding: 20px;
  border-radius: 20px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.admin-quicknav__item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
}

.admin-quicknav__item.is-active {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.12), rgba(77, 163, 255, 0.12));
}

.admin-quicknav__item strong {
  display: block;
  margin: 4px 0 6px;
  font-size: 18px;
}

.admin-quicknav__item small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}

.admin-quicknav__kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

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

.admin-actions .primary-btn,
.admin-actions .secondary-btn {
  min-height: auto;
  padding: 8px 12px;
  font-size: 12px;
}

.admin-actions .primary-btn {
  border: 1px solid rgba(139, 93, 255, 0.35);
  background: rgba(139, 93, 255, 0.16);
  color: #d6c8ff;
  box-shadow: none;
}

.admin-actions .primary-btn:hover {
  background: rgba(139, 93, 255, 0.26);
  color: #fff;
  box-shadow: 0 0 14px rgba(139, 93, 255, 0.28);
}

.admin-actions .secondary-btn {
  border: 1px solid rgba(77, 163, 255, 0.28);
  background: rgba(77, 163, 255, 0.12);
  color: #a9d2ff;
  box-shadow: none;
}

.admin-actions .secondary-btn:hover {
  background: rgba(77, 163, 255, 0.22);
  color: #fff;
  box-shadow: 0 0 14px rgba(77, 163, 255, 0.22);
}

/* admin messages */
.admin-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 28px;
  margin-bottom: 20px;
}

.admin-message-list {
  display: grid;
  gap: 16px;
}

.admin-message-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 20px;
  border-radius: 22px;
  text-decoration: none;
  color: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.admin-message-row:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 24px 52px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(139, 93, 255, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.admin-message-row--unread {
  border-color: rgba(255, 79, 216, 0.26);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.22),
    0 0 24px rgba(255, 79, 216, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-message-row__main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admin-message-row__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-message-row__sender {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.admin-message-row__badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.admin-message-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #dfe7ff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.admin-message-badge--new {
  color: #ffffff;
  background: linear-gradient(135deg, #ff4fd8, #8b5dff);
  border-color: transparent;
  box-shadow:
    0 0 14px rgba(255, 79, 216, 0.35),
    0 0 20px rgba(139, 93, 255, 0.24);
}

.admin-message-row__email {
  font-size: 14px;
  color: #cfd8ff;
  word-break: break-word;
}

.admin-message-row__subject {
  font-size: 15px;
  font-weight: 700;
  color: #f4f7ff;
}

.admin-message-row__snippet {
  color: var(--muted);
  line-height: 1.7;
  word-break: break-word;
}

.admin-message-row__meta {
  display: grid;
  justify-items: end;
  gap: 12px;
  min-width: 120px;
}

.admin-message-row__date {
  font-size: 13px;
  color: var(--muted-2);
  text-align: right;
}

.admin-message-row__action {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #dfe7ff;
}

.message-detail-card {
  display: grid;
  gap: 22px;
  margin-top: 6px;
  padding: 24px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

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

.message-detail-item {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 0;
}

.message-detail-item__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.message-detail-item__value {
  color: #f3f6ff;
  line-height: 1.6;
  word-break: break-word;
}

.message-detail-item__value a {
  color: #dfe7ff;
  text-decoration: none;
}

.message-detail-item__value a:hover {
  text-decoration: underline;
}

.message-detail-body {
  display: grid;
  gap: 12px;
}

.message-detail-body__content {
  padding: 20px;
  border-radius: 20px;
  background: rgba(7, 10, 20, 0.60);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f4f7ff;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-hero-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.admin-logout-form {
  margin: 0;
}

.admin-logout-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 79, 216, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 79, 216, 0.16), rgba(139, 93, 255, 0.16)),
    rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.24),
    0 0 18px rgba(255, 79, 216, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
  overflow: hidden;
}

.admin-logout-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.10) 42%, transparent 68%);
  pointer-events: none;
}

.admin-logout-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 79, 216, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 79, 216, 0.24), rgba(139, 93, 255, 0.24)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    0 22px 42px rgba(0, 0, 0, 0.30),
    0 0 24px rgba(255, 79, 216, 0.20),
    0 0 30px rgba(139, 93, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.admin-logout-btn:active {
  transform: translateY(0);
}

.admin-logout-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255, 79, 216, 0.22),
    0 22px 42px rgba(0, 0, 0, 0.30),
    0 0 24px rgba(255, 79, 216, 0.20);
}

.admin-logout-btn__icon {
  font-size: 15px;
  line-height: 1;
}

.admin-logout-btn__text {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .admin-hero-actions {
    justify-content: stretch;
  }

  .admin-logout-form {
    width: 100%;
  }

  .admin-logout-btn {
    width: 100%;
  }
}
/* admin news */
.admin-page__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-page__actions .primary-btn {
  min-height: 42px;
  padding: 0 16px;
}

.admin-news-list-card {
  display: grid;
  gap: 18px;
}

.admin-news-list {
  display: grid;
  gap: 14px;
}

.admin-news-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.admin-news-row__main {
  min-width: 0;
}

.admin-news-row__topline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.admin-news-row__order {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
}

.admin-news-row__langs {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-news-lang-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-news-lang-dot.is-ready {
  color: var(--cyan);
  background: rgba(92, 225, 255, 0.1);
  border-color: rgba(92, 225, 255, 0.18);
}

.admin-news-row h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.admin-news-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-news-row__actions {
  justify-content: flex-end;
}

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

.admin-news-form__settings {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-news-language-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.admin-news-language-card {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-news-language-card legend {
  padding: 0 8px;
  font-weight: 800;
  color: var(--text);
}

.admin-news-language-card legend span {
  color: var(--muted-2);
  font-size: 12px;
  margin-left: 6px;
}

.admin-news-field {
  display: grid;
  gap: 8px;
}

.admin-news-field--small {
  max-width: 180px;
}

.admin-news-field span,
.admin-news-toggle span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-news-field input,
.admin-news-field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
  transition: 0.2s ease;
}

.admin-news-field textarea {
  resize: vertical;
  min-height: 132px;
  line-height: 1.55;
}

.admin-news-field input:focus,
.admin-news-field textarea:focus {
  border-color: rgba(92, 225, 255, 0.35);
  box-shadow: 0 0 0 4px rgba(92, 225, 255, 0.08);
}

.admin-news-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.admin-news-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #8b5dff;
}

.admin-news-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.admin-news-errors {
  margin-bottom: 18px;
}

.admin-news-errors ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

@media (max-width: 760px) {
  .admin-news-row {
    grid-template-columns: 1fr;
  }

  .admin-news-row__actions,
  .admin-news-form__actions {
    justify-content: stretch;
  }

  .admin-news-row__actions a,
  .admin-news-row__actions form,
  .admin-news-row__actions button,
  .admin-news-form__actions a,
  .admin-news-form__actions button {
    width: 100%;
  }
}

/* admin news markdown editor */
.admin-news-field--image {
  min-width: min(420px, 100%);
  flex: 1;
}

.admin-news-field small {
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.5;
}

.admin-news-markdown-help {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(92, 225, 255, 0.08);
  border: 1px solid rgba(92, 225, 255, 0.14);
  color: var(--muted);
}

.admin-news-markdown-help strong {
  color: var(--cyan);
}

.admin-news-language-stack {
  display: grid;
  gap: 18px;
}

.admin-news-language-card--wide {
  gap: 16px;
}

.admin-news-language-fields {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 14px;
}

.admin-news-markdown-field textarea,
.admin-news-markdown-textarea {
  min-height: 320px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.admin-news-editor-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-news-editor-actions .secondary-btn {
  min-height: 40px;
  padding: 0 16px;
}

@media (max-width: 760px) {
  .admin-news-language-fields {
    grid-template-columns: 1fr;
  }

  .admin-news-editor-actions,
  .admin-news-editor-actions .secondary-btn {
    width: 100%;
  }
}

/* FAQ ADMIN */
.faq-admin-page .container {
  max-width: 1240px;
}

.faq-admin-shell {
  overflow: visible;
}

.faq-admin-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}

.faq-admin-back {
  flex: 0 0 auto;
  margin-top: 30px;
}

.faq-admin-panel {
  position: relative;
  margin-bottom: 24px;
  padding: clamp(20px, 2.4vw, 30px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 79, 216, 0.10), transparent 30%),
    radial-gradient(circle at 92% 18%, rgba(139, 93, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.060), rgba(255, 255, 255, 0.026));
  border: 1px solid rgba(255, 255, 255, 0.105);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.faq-admin-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
}

.faq-admin-panel__header h2 {
  margin: 0;
  color: #f5f7ff;
  font-size: clamp(22px, 2.1vw, 28px);
  letter-spacing: -0.03em;
}

.faq-admin-panel__header p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.faq-admin-form {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.faq-admin-form--stacked {
  grid-template-columns: 1fr;
}

.faq-admin-translation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.faq-admin-translation-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.024));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 12px 28px rgba(0, 0, 0, 0.16);
}

.faq-admin-translation-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-admin-translation-card__title small {
  color: rgba(225, 230, 245, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.faq-admin-lang-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.78), rgba(139, 93, 255, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 22px rgba(139, 93, 255, 0.20);
}

.faq-admin-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.faq-admin-label {
  color: rgba(245, 247, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.faq-admin-control {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  outline: none;
  color: #f7f8ff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.038));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 10px 24px rgba(0, 0, 0, 0.14);
  font: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.faq-admin-control::placeholder {
  color: rgba(225, 230, 245, 0.42);
}

.faq-admin-control:focus {
  border-color: rgba(190, 105, 255, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.052));
  box-shadow:
    0 0 0 4px rgba(139, 93, 255, 0.18),
    0 16px 34px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.075);
}

.faq-admin-textarea {
  min-height: 138px;
  resize: vertical;
  line-height: 1.55;
}

.faq-admin-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.faq-admin-submit {
  min-height: 50px;
  white-space: nowrap;
}

.faq-admin-items {
  display: grid;
  gap: 18px;
}

.faq-admin-item {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    radial-gradient(circle at 4% 0%, rgba(255, 79, 216, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.050), rgba(255, 255, 255, 0.022));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 16px 36px rgba(0, 0, 0, 0.18);
}

.faq-admin-item__header {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.faq-admin-item__header h3 {
  margin: 0;
  color: #f5f7ff;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.faq-admin-item__header p {
  margin: 4px 0 0;
  max-width: 820px;
  color: rgba(225, 230, 245, 0.62);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.faq-admin-item__index {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.45), rgba(139, 93, 255, 0.58));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 22px rgba(139, 93, 255, 0.18);
}

.faq-admin-delete-form {
  display: flex;
  justify-content: flex-end;
  margin: -2px 0 0;
}

.faq-admin-delete-btn {
  min-height: 44px;
  color: #ffd9df;
  border-color: rgba(255, 94, 119, 0.28);
  background: rgba(255, 94, 119, 0.08);
}

.faq-admin-delete-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 94, 119, 0.42);
  background: rgba(255, 94, 119, 0.16);
}

.faq-admin-empty {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 18px;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
}

.faq-admin-empty strong {
  color: #f5f7ff;
}

@media (max-width: 1180px) {
  .faq-admin-translation-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .faq-admin-hero {
    flex-direction: column;
  }

  .faq-admin-back {
    margin-top: 0;
  }

  .faq-admin-actions,
  .faq-admin-delete-form {
    justify-content: stretch;
  }

  .faq-admin-submit,
  .faq-admin-actions .primary-btn,
  .faq-admin-delete-btn,
  .faq-admin-back {
    width: 100%;
  }

  .faq-admin-item__header {
    align-items: flex-start;
  }

  .faq-admin-item__header p {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .faq-admin-panel,
  .faq-admin-item,
  .faq-admin-translation-card {
    padding: 16px;
    border-radius: 20px;
  }
}

/* ADMIN USERS - searchable card list */
.admin-users-page .admin-page__inner {
  max-width: 1180px;
}

.admin-users-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-users-stat {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--panel-border);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

.admin-users-stat span {
  display: block;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.admin-users-stat strong {
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.admin-users-card--list {
  padding: 24px;
}

.admin-users-card--blocked {
  margin-top: 18px;
}

.admin-users-card__top--split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.admin-users-card__top--split p {
  margin: 0;
  color: var(--muted);
}

.admin-users-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) minmax(180px, 0.8fr);
  gap: 12px;
  width: min(100%, 560px);
}

.admin-users-search,
.admin-users-filter {
  display: grid;
  gap: 7px;
}

.admin-users-search span,
.admin-users-filter span {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-users-search input,
.admin-users-filter select,
.admin-block-email-form input {
  width: 100%;
  min-height: 44px;
  color: var(--text);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(5, 8, 18, 0.72);
  padding: 0 14px;
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.admin-users-search input:focus,
.admin-users-filter select:focus,
.admin-block-email-form input:focus {
  border-color: rgba(92, 225, 255, 0.4);
  background: rgba(5, 8, 18, 0.88);
  box-shadow: 0 0 0 4px rgba(92, 225, 255, 0.08);
}

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

.admin-user-row {
  display: grid;
  grid-template-columns: minmax(250px, 1.25fr) minmax(250px, 1.1fr) minmax(240px, 1fr) minmax(128px, auto);
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.016));
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.admin-user-row:hover {
  border-color: rgba(92, 225, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.024));
}

.admin-user-row[hidden] {
  display: none;
}

.admin-user-row__identity {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.admin-user-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(92, 225, 255, 0.2), rgba(255, 79, 216, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-user-row__main,
.admin-user-row__email,
.admin-user-row__meta strong {
  min-width: 0;
}

.admin-user-row__name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.admin-user-row__name strong {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-row__name span,
.admin-user-row__email,
.admin-user-row__meta span {
  color: var(--muted-2);
  font-size: 12px;
}

.admin-user-row__email {
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-row__badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.status-badge--blocked {
  background: rgba(255, 79, 216, 0.14);
  color: #ff9bdc;
}

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

.admin-user-row__meta div {
  min-width: 0;
}

.admin-user-row__meta span,
.admin-user-row__meta strong {
  display: block;
}

.admin-user-row__meta strong {
  margin-top: 4px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-user-row__actions {
  position: relative;
  justify-self: end;
}

.admin-user-row__actions summary {
  cursor: pointer;
  list-style: none;
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text);
  font-weight: 800;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
}

.admin-user-row__actions summary::-webkit-details-marker {
  display: none;
}

.admin-user-row__actions[open] summary {
  border-color: rgba(92, 225, 255, 0.24);
  background: rgba(92, 225, 255, 0.08);
}

.admin-user-actions-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  display: grid;
  gap: 8px;
  width: 230px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(9, 11, 24, 0.98);
  border: 1px solid var(--panel-border);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

.admin-user-actions-panel form,
.admin-user-actions-panel button {
  width: 100%;
}

.secondary-btn--pink {
  color: #ff9bdc;
  border-color: rgba(255, 79, 216, 0.28);
  background: rgba(255, 79, 216, 0.08);
}

.danger-btn--soft {
  background: rgba(255, 79, 216, 0.08);
}

.admin-users-no-results,
.admin-users-muted-box {
  margin-top: 14px;
  padding: 22px;
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.admin-users-no-results h3 {
  margin: 0 0 6px;
  color: var(--text);
}

.admin-users-no-results p {
  margin: 0;
}

.admin-block-email-form {
  display: flex;
  align-items: end;
  gap: 10px;
  width: min(100%, 460px);
}

.admin-blocked-email-list {
  display: grid;
  gap: 10px;
}

.admin-blocked-email-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(255, 255, 255, 0.03);
}

.admin-blocked-email-item strong,
.admin-blocked-email-item span {
  display: block;
}

.admin-blocked-email-item strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

.admin-blocked-email-item span {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 12px;
}

@media (max-width: 1080px) {
  .admin-users-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-users-card__top--split {
    flex-direction: column;
  }

  .admin-users-controls {
    width: 100%;
  }

  .admin-user-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-user-row__actions {
    justify-self: stretch;
  }

  .admin-user-row__actions summary {
    text-align: center;
  }

  .admin-user-actions-panel {
    position: static;
    width: 100%;
    margin-top: 10px;
  }
}

@media (max-width: 680px) {
  .admin-users-toolbar,
  .admin-users-controls,
  .admin-user-row__meta {
    grid-template-columns: 1fr;
  }

  .admin-users-card--list,
  .admin-users-card--blocked {
    padding: 18px;
    border-radius: 24px;
  }

  .admin-block-email-form,
  .admin-blocked-email-item {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ADMIN SETTINGS SIDE NAV */
.admin-settings-layout {
  margin-top: 22px;
}

.admin-settings-content > .admin-hero-actions:first-child {
  margin-top: 0;
}

.admin-settings-sidebar .settings-sidebar__link::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 999px;
  background: rgba(151, 104, 255, 0.65);
  box-shadow: 0 0 10px rgba(151, 104, 255, 0.35);
}

/* Unified admin settings pages */
.settings-page.admin-page {
  padding: clamp(28px, 5vw, 70px) 0;
}

.settings-page__inner {
  width: min(1500px, calc(100vw - 48px));
  margin: 0 auto;
}

.admin-settings-layout {
  margin-top: 0;
}

.admin-settings-content {
  display: grid;
  gap: 24px;
}

.admin-settings-content > .admin-page__header {
  margin: 0;
}

.admin-settings-content .admin-page__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 28px;
  background: radial-gradient(circle at top left, rgba(255,79,216,0.10), transparent 34%), linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.admin-settings-content .admin-page__header h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.admin-settings-content .admin-page__lead {
  max-width: 680px;
  margin-top: 14px;
}

.admin-settings-sidebar .settings-sidebar__link::before {
  content: none;
}

.admin-users-page .admin-page__inner,
.admin-page .admin-page__inner {
  max-width: none;
}

.admin-users-card--blocked,
.admin-users-card--list,
.admin-news-list-card,
.faq-admin-panel,
.message-detail-card,
.admin-message-list,
.empty-state {
  max-width: 100%;
}

@media (max-width: 980px) {
  .settings-page__inner {
    width: min(100% - 24px, 760px);
  }
  .admin-settings-content .admin-page__header {
    flex-direction: column;
  }
}

/* ADMIN FORUM MANAGER */
.admin-forum-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  gap: 22px;
  align-items: start;
}

.admin-forum-panel {
  border-radius: 26px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.admin-forum-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-forum-panel__head h2,
.admin-forum-detail-head h2 {
  margin: 0 0 6px;
}

.admin-forum-panel__head p,
.admin-forum-detail-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-forum-topic-list {
  display: grid;
  gap: 10px;
  max-height: 72vh;
  overflow: auto;
  padding-right: 4px;
}

.admin-forum-topic {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: 0.2s ease;
}

.admin-forum-topic:hover,
.admin-forum-topic.is-active {
  transform: translateY(-1px);
  border-color: rgba(139, 93, 255, 0.35);
  background: linear-gradient(135deg, rgba(139, 93, 255, 0.14), rgba(77, 163, 255, 0.09));
}

.admin-forum-topic__main,
.admin-forum-post__body {
  min-width: 0;
}

.admin-forum-topic__main strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-forum-topic__main span,
.admin-forum-topic__meta small,
.admin-forum-post__meta span {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 12px;
}

.admin-forum-topic__meta {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.status-badge--locked {
  background: rgba(255, 79, 183, 0.14);
  color: #ff9dbf;
}

.status-badge--open {
  background: rgba(92, 225, 255, 0.12);
  color: var(--cyan);
}

.admin-forum-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-forum-kicker {
  margin: 0 0 8px !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan) !important;
}

.admin-forum-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-forum-posts {
  display: grid;
  gap: 12px;
}

.admin-forum-post {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.admin-forum-post.is-deleted {
  opacity: 0.58;
}

.admin-forum-post__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.admin-forum-post__meta span {
  margin-top: 0;
}

.admin-forum-post p {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-empty-state--compact {
  padding: 24px;
}

@media (max-width: 980px) {
  .admin-forum-layout,
  .admin-forum-detail-head,
  .admin-forum-post,
  .admin-forum-topic {
    grid-template-columns: 1fr;
  }

  .admin-forum-actions,
  .admin-forum-topic__meta {
    justify-content: flex-start;
    justify-items: start;
  }

  .admin-forum-topic-list {
    max-height: none;
  }
}

/* 15-community.css */
/* FORUM + MESSAGES */
.forum-layout,
.messages-layout {
  display: grid;
  gap: 20px;
}

.forum-layout {
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
}

.messages-layout {
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  align-items: start;
}

.forum-page-shell {
  width: min(1240px, calc(100% - 32px));
}

.forum-page-shell--topic {
  width: min(1180px, calc(100% - 32px));
}

.forum-strip-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px 24px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(18, 22, 42, 0.92), rgba(8, 10, 24, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.forum-strip-head__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.forum-strip-head__eyebrow a {
  color: inherit;
  text-decoration: none;
}

.forum-strip-head__eyebrow a:hover {
  color: var(--text);
}

.forum-strip-head h1,
.forum-create-panel h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.forum-strip-head p,
.forum-create-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.forum-strip-head__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, auto));
  gap: 14px;
  align-self: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-align: right;
}

.forum-strip-head__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.forum-board,
.forum-create-panel,
.forum-posts,
.thread-card,
.empty-state-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.forum-board::before,
.forum-create-panel::before,
.forum-posts::before,
.thread-card::before,
.empty-state-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.03) 24%, transparent 48%);
  opacity: 0.7;
}

.forum-board > *,
.forum-create-panel > *,
.forum-posts > * {
  position: relative;
  z-index: 1;
}

.forum-board {
  padding: 0;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* EGYSÉGES OSZLOPSZERKEZET */
.forum-board__header,
.forum-board__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 130px 280px;
  gap: 16px;
  align-items: center;
}

.forum-board__header {
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* Fejléc igazítás az adatoszlopokhoz */
.forum-board__header > :nth-child(1) {
  text-align: left;
}

.forum-board__header > :nth-child(2),
.forum-board__header > :nth-child(3) {
  text-align: right;
}

.forum-board__header > :nth-child(4) {
  text-align: left;
}

.forum-board__header--topics,
.forum-board__row--topics {
  grid-template-columns: minmax(0, 1fr) 110px 280px;
}

.forum-board__header--topics > :nth-child(1) {
  text-align: left;
}

.forum-board__header--topics > :nth-child(2) {
  text-align: right;
}

.forum-board__header--topics > :nth-child(3) {
  text-align: left;
}

.forum-board__row {
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  cursor: pointer;
}

.forum-board__row:last-child {
  border-bottom: none;
}

.forum-board__row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.forum-board__row:hover .forum-board__main h2,
.forum-board__row:hover .forum-topic-title-row h2 {
  color: #a983ff;
}

.forum-board__main {
  min-width: 0;
}

.forum-board__main h2 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
  transition: color 0.2s ease;
}

.forum-board__main p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
  opacity: 0.9;
}

.forum-board__number {
  font-size: 15px;
  font-weight: 800;
  color: #eef3ff;
  text-align: right;
  justify-self: end;
  white-space: nowrap;
}

.forum-board__last {
  display: grid;
  gap: 3px;
  justify-items: start;
  min-width: 0;
}

.forum-board__last strong {
  font-size: 13px;
  color: #79b4ff;
  line-height: 1.25;
}

.forum-board__last span {
  font-size: 13px;
  color: var(--text);
  opacity: 0.8;
  line-height: 1.3;
}

.forum-board__last small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

.forum-board__empty {
  padding: 26px 20px;
}

.forum-board__empty h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.forum-board__empty p {
  margin: 0;
  color: var(--muted);
}

.forum-topic-title-row,
.forum-meta-row,
.post-card__meta,
.thread-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.forum-topic-title-row h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  transition: color 0.2s ease;
}

.forum-create-panel {
  padding: 24px;
}

.forum-create-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.stack-form {
  display: grid;
  gap: 14px;
}

.stack-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.stack-form input,
.stack-form textarea,
.stack-form select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 8, 20, 0.88);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.stack-form input:focus,
.stack-form textarea:focus,
.stack-form select:focus {
  border-color: rgba(148, 102, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(148, 102, 255, 0.12), var(--glow-purple);
  background: rgba(10, 10, 24, 0.96);
}

.stack-form textarea {
  resize: vertical;
  min-height: 120px;
}

.forum-create-form__actions {
  display: flex;
  justify-content: flex-end;
}

.form-errors {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 79, 216, 0.1);
  border: 1px solid rgba(255, 79, 216, 0.2);
}

.form-errors p {
  margin: 0;
}

.forum-post-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.forum-post-user {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px 16px;
  background: rgba(255, 255, 255, 0.025);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.forum-post-user strong {
  font-size: 14px;
  line-height: 1.2;
}

.forum-post-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.92), rgba(77, 163, 255, 0.92));
  box-shadow: 0 0 24px rgba(139, 93, 255, 0.18);
}

.forum-post-user__meta {
  font-size: 12px;
  color: var(--muted-2);
}

.forum-post-content {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
}

.forum-post-content__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.forum-post-content__body,
.post-card__body {
  line-height: 1.8;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.post-card--self {
  border-color: rgba(77, 163, 255, 0.24);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(77, 163, 255, 0.08) inset,
    0 0 24px rgba(77, 163, 255, 0.08);
}

.thread-list {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.thread-card {
  display: grid;
  gap: 8px;
  color: inherit;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.thread-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 93, 255, 0.22);
  box-shadow:
    0 22px 42px rgba(0, 0, 0, 0.24),
    0 0 20px rgba(139, 93, 255, 0.08);
}

.thread-card--active {
  border-color: rgba(139, 93, 255, 0.36);
  box-shadow:
    0 0 0 1px rgba(139, 93, 255, 0.22) inset,
    0 18px 42px rgba(0, 0, 0, 0.24),
    0 0 22px rgba(139, 93, 255, 0.12);
  background: linear-gradient(180deg, rgba(139, 93, 255, 0.09), rgba(255, 255, 255, 0.025));
}

.thread-card__participants {
  color: var(--muted);
  font-size: 13px;
}

.messages-main,
.messages-sidebar {
  display: grid;
  gap: 16px;
  align-content: start;
}

@media (max-width: 980px) {
  .forum-strip-head,
  .forum-board__header,
  .forum-board__row,
  .forum-board__header--topics,
  .forum-board__row--topics {
    grid-template-columns: 1fr;
  }

  .forum-strip-head__stats {
    grid-template-columns: repeat(3, auto);
    text-align: left;
  }

  .forum-board__header {
    display: none;
  }

  .forum-board__row {
    gap: 10px;
  }

  .forum-board__number {
    text-align: left;
    justify-self: start;
    font-size: 14px;
    color: var(--muted);
  }

  .forum-board__last {
    justify-items: start;
  }

  .forum-post-row {
    grid-template-columns: 1fr;
  }

  .forum-post-user {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 768px) {
  .forum-page-shell,
  .forum-page-shell--topic {
    width: min(100%, calc(100% - 20px));
  }

  .forum-strip-head,
  .forum-create-panel {
    padding: 18px;
  }

  .forum-board__row,
  .forum-board__empty,
  .forum-post-content,
  .forum-post-user {
    padding: 16px;
  }

  .forum-strip-head h1,
  .forum-create-panel h2 {
    font-size: 24px;
  }
}
/* Forum profile/avatar links */
.forum-post-avatar {
  text-decoration: none;
  overflow: hidden;
}

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

.forum-post-avatar span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.forum-post-avatar:hover,
.forum-post-user__name:hover {
  border-color: rgba(139, 93, 255, 0.54);
  filter: brightness(1.08);
}

.forum-post-user__name {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.forum-topic-author-line,
.forum-last-user-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.forum-mini-avatar {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.86), rgba(77, 163, 255, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.forum-mini-avatar--tiny {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  font-size: 10px;
}

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

/* 16-legal.css */
.legal-shell {
  padding: 34px;
  border-radius: 30px;
}

.legal-header {
  max-width: 860px;
  margin-bottom: 26px;
}

.legal-header h1 {
  margin: 12px 0;
  font-size: clamp(34px, 5vw, 52px);
}

.legal-header p {
  color: var(--muted);
  line-height: 1.75;
}

.legal-updated {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted-2);
}

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

.legal-card {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
}

.legal-card--full {
  grid-column: 1 / -1;
}

.legal-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.75;
}

.legal-list {
  margin: 0;
  padding-left: 20px;
}

.legal-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted-2);
}

.cookie-table {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.cookie-row {
  display: grid;
  grid-template-columns: 140px 150px minmax(0, 1fr) 130px;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

.cookie-row--head {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.cookie-banner {
  position: sticky;
  bottom: 18px;
  z-index: 40;
  padding: 0 18px;
}

.cookie-banner__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(10, 12, 20, 0.96);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}

.cookie-banner__copy p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-btn--small,
.secondary-btn--small {
  min-height: 42px;
  padding: 0 16px;
}

.checkbox--stacked span {
  line-height: 1.6;
}

@media (max-width: 900px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-card--full {
    grid-column: auto;
  }

  .cookie-row {
    grid-template-columns: 1fr;
  }

  .cookie-row--head {
    display: none;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }
}

/* 17-messages.css */
.messages-page-shell {
  height: calc(100svh - 172px);
  min-height: min(560px, calc(100svh - 172px));
  padding: 24px 0;
  overflow: hidden;
}

.messages-page-shell .container {
  height: 100%;
  min-height: 0;
}

.messages-shell {
  height: 100%;
  max-height: 100%;
  padding: 0;
  overflow: hidden;
}

.messages-app {
  height: 100%;
  min-height: 0;
  max-height: 100%;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 0;
}

.messages-sidebar-v2 {
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 0;
  overflow: hidden;
}

.messages-sidebar-card {
  height: 100%;
  padding: 22px 18px 18px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.messages-sidebar-v2__top h1 {
  margin: 6px 0 10px;
  font-size: clamp(28px, 2vw, 34px);
}

.messages-sidebar-v2__eyebrow,
.messages-chat-v2__overline {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--muted-2);
}

.messages-sidebar-v2__intro {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.messages-user-search {
  margin-top: 22px;
}

.messages-user-search__label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.messages-user-search__field-wrap {
  position: relative;
}

.messages-user-search__field,
.messages-composer-v2 textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 7, 13, 0.92);
  color: var(--text);
  border-radius: 18px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.messages-user-search__field {
  padding: 14px 16px;
  font-size: 15px;
}

.messages-user-search__field:focus,
.messages-composer-v2 textarea:focus {
  border-color: rgba(139, 93, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(139, 93, 255, 0.12);
}

.messages-user-search__results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 12, 22, 0.98);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.messages-user-search__result-item,
.messages-user-search__empty {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
}

.messages-user-search__result-item {
  cursor: pointer;
}

.messages-user-search__result-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.messages-user-search__empty,
.messages-user-search__hint {
  color: var(--muted-2);
}

.messages-user-search__hint {
  margin: 10px 2px 0;
  font-size: 12px;
  line-height: 1.5;
}

.messages-sidebar-v2__list-wrap {
  min-height: 0;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.messages-sidebar-v2__list-title-row {
  margin-bottom: 14px;
}

.messages-sidebar-v2__list-title-row h2 {
  margin: 0;
  font-size: 18px;
}

.messages-thread-list-v2 {
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 93, 255, 0.55) rgba(255, 255, 255, 0.04);
}

.messages-thread-card-v2,
.messages-thread-list-v2__empty {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 22px;
  padding: 16px 16px 15px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.messages-thread-card-v2:hover {
  transform: translateY(-1px);
  border-color: rgba(139, 93, 255, 0.35);
  background: rgba(255, 255, 255, 0.045);
}

.messages-thread-card-v2.is-active {
  border-color: rgba(139, 93, 255, 0.52);
  box-shadow: inset 0 0 0 1px rgba(139, 93, 255, 0.16);
  background: linear-gradient(180deg, rgba(139, 93, 255, 0.09), rgba(255, 255, 255, 0.03));
}

.messages-thread-card-v2__header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.messages-thread-card-v2__header strong {
  font-size: 15px;
  line-height: 1.4;
}

.messages-thread-card-v2__badge {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

.messages-thread-card-v2__snippet {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.messages-thread-card-v2__snippet--empty {
  color: var(--muted-2);
}

.messages-thread-list-v2__empty h3,
.messages-empty-state-v2 h2,
.messages-empty-state-v2 h3 {
  margin-top: 0;
}

.messages-chat-v2 {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 79, 216, 0.09), transparent 28%),
    radial-gradient(circle at bottom left, rgba(77, 163, 255, 0.08), transparent 26%);
}

.messages-card-panel {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.018));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 16px 40px rgba(0, 0, 0, 0.14);
}

.messages-chat-v2__header {
  flex: 0 0 auto;
  padding: 20px 22px;
}

.messages-chat-v2__header h2 {
  margin: 8px 0 0;
  font-size: clamp(24px, 2vw, 30px);
}

.messages-chat-v2__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 93, 255, 0.55) rgba(255, 255, 255, 0.04);
}

.chat-message-row {
  display: flex;
  width: 100%;
}

.chat-message-row.is-own {
  justify-content: flex-end;
}

.chat-message-row.is-other {
  justify-content: flex-start;
}

.chat-message-bubble {
  max-width: min(62%, 720px);
  padding: 14px 16px 13px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.chat-message-row.is-own .chat-message-bubble {
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.96), rgba(139, 93, 255, 0.94));
  border-color: rgba(255, 255, 255, 0.16);
  border-top-right-radius: 8px;
  color: #fff;
  margin-left: auto;
}

.chat-message-row.is-other .chat-message-bubble {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  border-top-left-radius: 8px;
  color: var(--text);
  margin-right: auto;
}

.chat-message-row.is-own .chat-message-bubble__author {
  color: rgba(255, 255, 255, 0.82);
  text-align: right;
}

.chat-message-row.is-other .chat-message-bubble__author {
  color: var(--muted);
  text-align: left;
}

.chat-message-bubble__author {
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.chat-message-bubble__text {
  line-height: 1.65;
  font-size: 15px;
  word-break: break-word;
}

.messages-composer-v2 {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
}

.messages-composer-v2 textarea {
  min-height: 58px;
  max-height: 180px;
  padding: 16px 18px;
  resize: none;
  font: inherit;
  line-height: 1.55;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 93, 255, 0.55) rgba(255, 255, 255, 0.04);
}

.messages-composer-v2--new-thread {
  margin-top: 0;
}

.messages-composer-v2 .primary-btn {
  white-space: nowrap;
}

.messages-empty-state-v2 {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  padding: 40px 24px;
}

.messages-empty-state-v2--compose {
  min-height: 280px;
}

.messages-empty-state-v2__icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 28px;
  color: var(--text);
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.25), rgba(77, 163, 255, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.messages-alert-v2 {
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 79, 79, 0.2);
  background: rgba(255, 79, 79, 0.08);
  color: #ffd1d1;
}

.messages-alert-v2 p {
  margin: 0;
}

.messages-alert-v2 p + p {
  margin-top: 6px;
}

/* Webkit scrollbars */
.messages-thread-list-v2::-webkit-scrollbar,
.messages-chat-v2__body::-webkit-scrollbar,
.messages-composer-v2 textarea::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.messages-thread-list-v2::-webkit-scrollbar-track,
.messages-chat-v2__body::-webkit-scrollbar-track,
.messages-composer-v2 textarea::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.messages-thread-list-v2::-webkit-scrollbar-thumb,
.messages-chat-v2__body::-webkit-scrollbar-thumb,
.messages-composer-v2 textarea::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 79, 216, 0.8), rgba(139, 93, 255, 0.82));
  border-radius: 999px;
  border: 2px solid rgba(10, 12, 22, 0.45);
}

.messages-thread-list-v2::-webkit-scrollbar-thumb:hover,
.messages-chat-v2__body::-webkit-scrollbar-thumb:hover,
.messages-composer-v2 textarea::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 79, 216, 0.95), rgba(139, 93, 255, 0.95));
}

.messages-composer-v2 textarea::-webkit-resizer {
  display: none;
}

@media (max-width: 1080px) {
  .messages-app {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .chat-message-bubble {
    max-width: min(72%, 720px);
  }
}

@media (max-width: 900px) {
  .messages-app {
    grid-template-columns: 1fr;
  }

  .messages-sidebar-v2 {
    padding-bottom: 0;
    border-right: 0;
  }

  .messages-sidebar-card {
    border-radius: 22px;
  }

  .messages-page-shell {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .messages-shell {
    height: auto;
    max-height: none;
  }

  .messages-app {
    height: auto;
    max-height: none;
  }

  .messages-sidebar-v2__list-wrap {
    max-height: 360px;
  }

  .messages-chat-v2 {
    padding-top: 18px;
  }
}

@media (max-width: 640px) {
  .messages-page-shell {
    padding-top: 18px;
    padding-bottom: 24px;
  }

  .messages-sidebar-v2,
  .messages-chat-v2 {
    padding: 16px;
  }

  .messages-composer-v2 {
    grid-template-columns: 1fr;
  }

  .chat-message-bubble {
    max-width: 88%;
  }
}
/* Avatar support in private messages */
.messages-thread-card-v2 {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.messages-thread-card-v2__avatar,
.messages-chat-v2__avatar,
.chat-message-avatar,
.messages-user-search__avatar {
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.92), rgba(77, 163, 255, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 22px rgba(139, 93, 255, 0.18);
}

.messages-thread-card-v2__avatar,
.messages-user-search__avatar {
  width: 46px;
  height: 46px;
  border-radius: 15px;
}

.messages-thread-card-v2__avatar img,
.messages-chat-v2__avatar img,
.chat-message-avatar img,
.messages-user-search__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.messages-thread-card-v2__content {
  min-width: 0;
}

.messages-chat-v2__identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.messages-chat-v2__avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  font-size: 22px;
}

.chat-message-row {
  align-items: flex-end;
  gap: 10px;
}

.chat-message-row.is-own {
  flex-direction: row-reverse;
}

.chat-message-avatar {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  font-size: 15px;
}

.chat-message-bubble__author {
  display: block;
  text-decoration: none;
}

.chat-message-bubble__author:hover {
  color: #fff;
}

.messages-user-search__result-item {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
}

.messages-user-search__result-item > span:last-child {
  display: grid;
  gap: 2px;
}

.messages-user-search__result-item small {
  color: var(--muted-2);
  font-size: 12px;
}

/* Secure expiring image messages */
.messages-image-upload-btn,
.messages-emoji-toggle {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.messages-image-upload-btn:hover,
.messages-emoji-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(185, 91, 255, 0.55);
  background: rgba(185, 91, 255, 0.14);
}

.messages-image-upload-btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.messages-emoji-wrap {
  position: relative;
  flex: 0 0 auto;
}

.messages-emoji-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  z-index: 40;
  width: min(260px, 70vw);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(20, 21, 34, 0.96);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36), 0 0 32px rgba(185, 91, 255, 0.18);
  backdrop-filter: blur(18px);
}

.messages-emoji-panel[hidden] {
  display: none !important;
}

.messages-emoji-panel button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 20px;
  transition: transform .16s ease, background .16s ease;
}

.messages-emoji-panel button:hover {
  transform: translateY(-1px) scale(1.04);
  background: rgba(185, 91, 255, 0.18);
}

.chat-message-image {
  display: block;
  overflow: hidden;
  max-width: min(320px, 58vw);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.04);
}

.chat-message-image img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.chat-message-download {
  display: inline-flex;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(230, 215, 255, 0.94);
  text-decoration: none;
}

.chat-message-download:hover {
  text-decoration: underline;
}

.chat-message-expired {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.messages-composer-v2[enctype="multipart/form-data"] {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

@media (max-width: 680px) {
  .messages-composer-v2[enctype="multipart/form-data"] {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .messages-composer-v2[enctype="multipart/form-data"] .primary-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Composer polish and selected image preview */
.messages-composer-v2[enctype="multipart/form-data"] {
  grid-template-columns: 52px minmax(0, 1fr) 52px auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.messages-composer-v2[enctype="multipart/form-data"] textarea {
  min-height: 52px;
  padding: 14px 18px;
  align-self: center;
}

.messages-composer-v2[enctype="multipart/form-data"] .primary-btn {
  min-height: 52px;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.messages-image-upload-btn,
.messages-emoji-toggle {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  align-self: center;
}

.messages-image-preview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 2px;
  border-radius: 20px;
  border: 1px solid rgba(185, 91, 255, 0.24);
  background: linear-gradient(135deg, rgba(185, 91, 255, 0.13), rgba(77, 163, 255, 0.07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.messages-image-preview[hidden] {
  display: none !important;
}

.messages-image-preview__thumb {
  width: 64px;
  height: 48px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.24);
}

.messages-image-preview__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.messages-image-preview__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.messages-image-preview__title {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(231, 219, 255, 0.88);
}

.messages-image-preview__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.74);
}

.messages-image-preview__remove {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.84);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.messages-image-preview__remove:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 91, 150, 0.48);
  background: rgba(255, 91, 150, 0.14);
}

@media (max-width: 680px) {
  .messages-composer-v2[enctype="multipart/form-data"] {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
  }

  .messages-composer-v2[enctype="multipart/form-data"] .primary-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}


.chat-message-link {
  color: #f7b8ff;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 184, 255, 0.42);
  overflow-wrap: anywhere;
}

.chat-message-link:hover,
.chat-message-link:focus-visible {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.86);
}

/* 18-index.css */
.index-page {
  position: relative;
}

.index-page .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* HERO */
.hero-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: clamp(26px, 4vw, 44px);
  min-height: 620px;

  /* fallback ha nincs videó */
  background:
    radial-gradient(circle at 82% 20%, rgba(139, 93, 255, 0.22), transparent 26%),
    radial-gradient(circle at 88% 78%, rgba(77, 163, 255, 0.16), transparent 24%),
    radial-gradient(circle at 10% 92%, rgba(255, 79, 216, 0.12), transparent 22%),
    linear-gradient(135deg, rgba(15, 17, 31, 0.96), rgba(4, 8, 20, 0.98));

  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 26px 90px rgba(0, 0, 0, 0.42);
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.015), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.22) 100%);
  pointer-events: none;
}

/* HERO VIDEO */
.hero-with-video {
  background: none !important;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;

  opacity: 0.7;
  filter:
    brightness(0.95)
    contrast(1.10)
    saturate(1.15);

  transform: scale(1.05);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    linear-gradient(
      180deg,
      rgba(6, 7, 13, 0.55) 0%,
      rgba(6, 7, 13, 0.85) 100%
    ),
    radial-gradient(circle at 15% 20%, rgba(255, 79, 216, 0.12), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(77, 163, 255, 0.12), transparent 45%);
}

.hero-with-video::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    radial-gradient(circle at 30% 40%, rgba(255, 79, 216, 0.08), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(77, 163, 255, 0.08), transparent 40%);

  pointer-events: none;
}

/* GRID */
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 420px);
  gap: 42px;
  align-items: start;
  min-height: 530px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 760px;
}

.hero-copy .badge {
  width: fit-content;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(139, 93, 255, 0.28), rgba(255, 79, 216, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 247, 255, 0.92);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(54px, 8vw, 102px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 900;
  color: var(--text);
}

.hero-copy h1 .accent {
  background: linear-gradient(90deg, #f3e7ff, #b0b7ff, #c6a3ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy > p {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--muted);
}

/* BUTTONS */
.hero-actions {
  display: flex;
  gap: 14px;
}

.primary-btn {
  background: linear-gradient(135deg, #ff4fd8, #8b5dff);
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 800;
}

.secondary-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  padding: 14px 24px;
  border-radius: 999px;
}

/* SIDE */
.hero-side {
  display: flex;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-card {
  padding: 24px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
}

/* PANELS */
.grid-panels {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 22px;
}

.panel {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
}

/* NEWS */
.news-section {
  padding: 30px;
  border-radius: 30px;
  background: rgba(255,255,255,0.03);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}

.news-card {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

  .news-grid {
    grid-template-columns: 1fr;
  }
}
/* clickable news cards and news detail */
.news-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.news-card--link:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.06);
}

.news-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.news-card__more {
  display: inline-flex;
  margin-top: 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}

.news-detail-page {
  padding-bottom: 48px;
}

.news-detail-container {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

.news-detail-back {
  margin-bottom: 18px;
}

.news-detail {
  overflow: hidden;
  border-radius: 32px;
}

.news-detail__hero {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.news-detail__header {
  padding: clamp(24px, 4vw, 44px) clamp(22px, 4vw, 46px) 20px;
}

.news-detail__header h1 {
  margin: 18px 0 14px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
}

.news-detail__header p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 17px;
}

.news-detail__content {
  padding: 0 clamp(22px, 4vw, 46px) clamp(28px, 5vw, 54px);
  color: var(--text);
  line-height: 1.8;
}

.news-detail__content h1,
.news-detail__content h2,
.news-detail__content h3 {
  margin: 28px 0 12px;
  line-height: 1.2;
}

.news-detail__content p,
.news-detail__content ul {
  margin: 0 0 18px;
  color: var(--muted);
}

.news-detail__content ul {
  padding-left: 22px;
}

.news-detail__content a {
  color: var(--cyan);
  font-weight: 700;
}

.news-detail__content code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.news-detail__content img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 22px;
  margin: 22px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 19-news-detail.css */
/* NEWS DETAIL / EDITORIAL ARTICLE */
.news-detail-page {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 54px) 0 clamp(60px, 7vw, 110px);
  min-height: 70vh;
}

.news-detail-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 79, 216, 0.16), transparent 32%),
    radial-gradient(circle at 84% 18%, rgba(77, 163, 255, 0.12), transparent 30%),
    radial-gradient(circle at 70% 86%, rgba(139, 93, 255, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(9, 10, 20, 0.98), rgba(6, 8, 16, 0.98));
}

.news-detail-container {
  position: relative;
  z-index: 1;
  width: min(940px, calc(100% - 36px));
  margin: 0 auto;
}

.news-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 9px 13px;
  border-radius: 999px;
  color: rgba(245, 247, 255, 0.78);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.news-detail-back:hover {
  transform: translateY(-1px);
  color: #fff;
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.14);
}

.news-article {
  overflow: hidden;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(27, 30, 45, 0.84), rgba(12, 14, 26, 0.92)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.news-article__hero {
  position: relative;
  margin: 0;
  height: clamp(240px, 38vw, 430px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.news-article__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 45%, rgba(12, 14, 26, 0.92)),
    radial-gradient(circle at 16% 14%, rgba(255, 79, 216, 0.18), transparent 34%);
}

.news-article__hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-article__header {
  padding: clamp(28px, 4.5vw, 54px) clamp(24px, 5vw, 68px) clamp(18px, 3vw, 30px);
}

.news-article__tag {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.24), rgba(77, 163, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-article__header h1 {
  max-width: 780px;
  margin: 18px 0 0;
  font-size: clamp(32px, 5.2vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: rgba(255, 255, 255, 0.96);
}

.news-article__header p {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(215, 221, 236, 0.78);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.75;
}

.news-article__content {
  padding: 0 clamp(24px, 5vw, 68px) clamp(34px, 6vw, 68px);
}

.markdown-body {
  color: rgba(229, 233, 245, 0.88);
  font-size: 16px;
  line-height: 1.85;
}

.markdown-body > *:first-child {
  margin-top: 0;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  color: rgba(255, 255, 255, 0.96);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.markdown-body h1 {
  margin: 34px 0 14px;
  font-size: clamp(28px, 4vw, 42px);
}

.markdown-body h2 {
  margin: 32px 0 12px;
  font-size: clamp(23px, 3vw, 31px);
}

.markdown-body h3 {
  margin: 26px 0 10px;
  font-size: clamp(18px, 2vw, 22px);
}

.markdown-body p {
  margin: 0 0 18px;
  color: rgba(215, 221, 236, 0.8);
}

.markdown-body ul,
.markdown-body ol {
  margin: 0 0 22px;
  padding-left: 1.35rem;
  color: rgba(215, 221, 236, 0.82);
}

.markdown-body li {
  margin: 7px 0;
  padding-left: 4px;
}

.markdown-body a {
  color: #8fd7ff;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(143, 215, 255, 0.32);
}

.markdown-body a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.65);
}

.markdown-body strong {
  color: rgba(255, 255, 255, 0.95);
}

.markdown-body hr {
  height: 1px;
  margin: 32px 0;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 79, 216, 0.35), rgba(77, 163, 255, 0.3), transparent);
}

.markdown-body blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 3px solid rgba(255, 79, 216, 0.72);
  border-radius: 0 18px 18px 0;
  color: rgba(245, 247, 255, 0.9);
  background: linear-gradient(90deg, rgba(255, 79, 216, 0.12), rgba(255, 255, 255, 0.035));
}

.markdown-body blockquote p {
  margin: 0;
  color: rgba(245, 247, 255, 0.9);
}

.markdown-body code {
  padding: 3px 7px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.93);
  background: rgba(255, 255, 255, 0.085);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.92em;
}

.markdown-body pre {
  overflow-x: auto;
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: 20px;
  color: rgba(235, 240, 255, 0.92);
  background: rgba(2, 5, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.markdown-body pre code {
  padding: 0;
  border: 0;
  background: transparent;
}

.markdown-body img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 24px;
  margin: 28px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

.markdown-body table {
  width: 100%;
  margin: 24px 0 30px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.markdown-body th,
.markdown-body td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.markdown-body th {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.055);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.markdown-body td {
  color: rgba(215, 221, 236, 0.82);
}

@media (max-width: 720px) {
  .news-detail-container {
    width: min(100% - 22px, 940px);
  }

  .news-article {
    border-radius: 26px;
  }

  .news-article__hero {
    height: 230px;
  }

  .markdown-body table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* 20-chatbot.css */
/* LOCAL AI CHATBOT */
.neuxor-chatbot {
  position: fixed;
  right: clamp(16px, 2.6vw, 30px);
  bottom: clamp(16px, 2.6vw, 30px);
  z-index: 1200;
  font-family: inherit;
}

.neuxor-chatbot__float {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 16px 9px 10px;
  border: 1px solid rgba(92, 225, 255, 0.24);
  border-radius: 999px;
  color: var(--text);
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 79, 216, 0.22), transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(77, 163, 255, 0.20), transparent 34%),
    linear-gradient(135deg, rgba(13, 16, 32, 0.88), rgba(6, 7, 13, 0.94));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42), var(--glow-blue), var(--glow-pink);
  cursor: pointer;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.neuxor-chatbot__float:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 79, 216, 0.42);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.50), 0 0 34px rgba(255, 79, 216, 0.25), 0 0 30px rgba(77, 163, 255, 0.20);
}

.neuxor-chatbot__orb {
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 79, 216, 0.18), rgba(92, 225, 255, 0.16));
  filter: blur(14px);
  opacity: 0.75;
  animation: neuxorChatPulse 2.8s ease-in-out infinite;
  pointer-events: none;
}

.neuxor-chatbot__robot {
  position: relative;
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
}

.neuxor-chatbot__float-text {
  position: relative;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.neuxor-chatbot__panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: min(380px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 120px));
  display: none;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 79, 216, 0.16), transparent 32%),
    radial-gradient(circle at 90% 28%, rgba(77, 163, 255, 0.14), transparent 30%),
    linear-gradient(155deg, rgba(12, 15, 29, 0.96), rgba(4, 7, 17, 0.98));
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.58), var(--glow-purple);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.neuxor-chatbot.is-open .neuxor-chatbot__panel {
  display: grid;
  grid-template-rows: auto minmax(190px, 1fr) auto auto;
  animation: neuxorChatIn 180ms ease-out;
}

.neuxor-chatbot__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 16px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.neuxor-chatbot__identity {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.neuxor-chatbot__avatar {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(92, 225, 255, 0.18);
}

.neuxor-chatbot__title {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 900;
}

.neuxor-chatbot__status {
  color: var(--muted);
  font-size: 0.76rem;
}

.neuxor-chatbot__close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.neuxor-chatbot__messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.neuxor-chatbot__msg {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.neuxor-chatbot__msg--bot {
  align-self: flex-start;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.neuxor-chatbot__msg--user {
  align-self: flex-end;
  color: #fff;
  background: linear-gradient(135deg, rgba(139, 93, 255, 0.9), rgba(255, 79, 216, 0.78));
  box-shadow: 0 10px 28px rgba(139, 93, 255, 0.20);
}

.neuxor-chatbot__msg--typing {
  color: var(--muted);
  font-style: italic;
}

.neuxor-chatbot__suggestions {
  display: flex;
  gap: 8px;
  padding: 0 15px 13px;
  overflow-x: auto;
}

.neuxor-chatbot__suggestions button {
  flex: 0 0 auto;
  border: 1px solid rgba(92, 225, 255, 0.17);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.neuxor-chatbot__form {
  display: flex;
  gap: 9px;
  padding: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.neuxor-chatbot__input {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  padding: 11px 12px;
  outline: none;
}

.neuxor-chatbot__input:focus {
  border-color: rgba(92, 225, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(92, 225, 255, 0.08);
}

.neuxor-chatbot__send {
  border: 0;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  padding: 0 14px;
  font-weight: 900;
  cursor: pointer;
}

.neuxor-chatbot.is-busy .neuxor-chatbot__send,
.neuxor-chatbot.is-busy .neuxor-chatbot__input {
  opacity: 0.75;
}

@keyframes neuxorChatIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes neuxorChatPulse {
  0%, 100% { opacity: 0.45; transform: scale(0.98); }
  50% { opacity: 0.95; transform: scale(1.04); }
}

@media (max-width: 820px) {
  .neuxor-chatbot {
    right: 14px;
    bottom: 14px;
  }

  .neuxor-chatbot__float {
    width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 6px;
    justify-content: center;
  }

  .neuxor-chatbot__float-text {
    display: none;
  }

  .neuxor-chatbot__robot {
    width: 42px;
    height: 42px;
  }

  .neuxor-chatbot__panel {
    right: 0;
    bottom: 68px;
    width: min(360px, calc(100vw - 28px));
    max-height: min(560px, calc(100vh - 100px));
    border-radius: 24px;
  }
}

/* Chatbot quality-pass refinements */
.neuxor-chatbot,
.neuxor-chatbot * {
  box-sizing: border-box;
}

.neuxor-chatbot__panel {
  contain: layout paint;
}

.neuxor-chatbot__messages {
  overflow-x: hidden;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  min-width: 0;
}

.neuxor-chatbot__messages::-webkit-scrollbar {
  width: 8px;
}

.neuxor-chatbot__messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
}

.neuxor-chatbot__messages::-webkit-scrollbar-thumb {
  background: rgba(92, 225, 255, 0.24);
  border-radius: 999px;
}

.neuxor-chatbot__msg {
  overflow-wrap: anywhere;
}

.neuxor-chatbot__suggestions {
  min-width: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}

.neuxor-chatbot__suggestions::-webkit-scrollbar {
  display: none;
}

.neuxor-chatbot__suggestions button {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.neuxor-chatbot__form {
  position: sticky;
  bottom: 0;
  background: rgba(5, 8, 20, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.neuxor-chatbot__input {
  height: 46px;
  font-size: 0.94rem;
}

.neuxor-chatbot__send {
  min-height: 46px;
}

.neuxor-chatbot__msg--typing {
  position: relative;
  min-width: 48px;
  color: transparent;
}

.neuxor-chatbot__msg--typing::after {
  content: "";
  display: block;
  width: 34px;
  height: 10px;
  background: radial-gradient(circle closest-side, currentColor 92%, transparent) 0 50% / 8px 8px no-repeat,
              radial-gradient(circle closest-side, currentColor 92%, transparent) 50% 50% / 8px 8px no-repeat,
              radial-gradient(circle closest-side, currentColor 92%, transparent) 100% 50% / 8px 8px no-repeat;
  color: var(--muted);
  animation: neuxorChatDots 1s infinite linear;
}

@keyframes neuxorChatDots {
  0% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-1px); }
  100% { opacity: 0.35; transform: translateY(0); }
}

@media (max-width: 820px) {
  .neuxor-chatbot__panel {
    width: calc(100vw - 24px);
    max-height: min(72vh, calc(100vh - 96px));
    right: -2px;
  }

  .neuxor-chatbot__head {
    padding: 14px 14px 11px;
  }

  .neuxor-chatbot__messages {
    padding: 13px;
  }

  .neuxor-chatbot__msg {
    max-width: 90%;
    font-size: 0.88rem;
  }

  .neuxor-chatbot__suggestions {
    padding: 0 13px 11px;
  }

  .neuxor-chatbot__form {
    padding: 11px;
  }

  .neuxor-chatbot__send {
    padding: 0 12px;
  }
}

/* FAQ-only chatbot mode */
.neuxor-chatbot.is-open .neuxor-chatbot__panel {
  grid-template-rows: auto minmax(170px, 1fr) auto;
}

.neuxor-chatbot__faq {
  display: grid;
  gap: 9px;
  padding: 0 15px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(5, 8, 20, 0.12), rgba(5, 8, 20, 0.72));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.neuxor-chatbot__faq-title {
  margin-top: 13px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.neuxor-chatbot__faq button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  border: 1px solid rgba(92, 225, 255, 0.18);
  border-radius: 15px;
  color: var(--text);
  background:
    radial-gradient(circle at 100% 50%, rgba(255, 79, 216, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.045);
  padding: 10px 12px;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.neuxor-chatbot__faq button::after {
  content: "›";
  flex: 0 0 auto;
  color: rgba(92, 225, 255, 0.82);
  font-size: 1.2rem;
  line-height: 1;
}

.neuxor-chatbot__faq button:hover,
.neuxor-chatbot__faq button.is-active {
  transform: translateY(-1px);
  border-color: rgba(255, 79, 216, 0.36);
  background:
    radial-gradient(circle at 100% 50%, rgba(255, 79, 216, 0.20), transparent 36%),
    rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 24px rgba(139, 93, 255, 0.16);
}

.neuxor-chatbot__faq button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.neuxor-chatbot__form,
.neuxor-chatbot__input,
.neuxor-chatbot__send,
.neuxor-chatbot__suggestions {
  display: none !important;
}

@media (max-width: 820px) {
  .neuxor-chatbot__faq {
    padding: 0 13px 13px;
    gap: 8px;
  }

  .neuxor-chatbot__faq-title {
    margin-top: 11px;
  }

  .neuxor-chatbot__faq button {
    min-height: 40px;
    padding: 9px 11px;
    font-size: 0.8rem;
    border-radius: 14px;
  }
}

/* 21-apps.css */
/* APPLICATION PAGES */
.apps-page {
  padding: 38px 0 80px;
}

.apps-hero {
  padding: clamp(28px, 5vw, 58px);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

.apps-hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 79, 216, 0.22), transparent 68%);
  pointer-events: none;
}

.apps-hero h1 {
  margin-top: 14px;
  max-width: 820px;
}

.apps-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
}

.apps-demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.apps-demo-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 26px;
  border-radius: 26px;
}

.apps-demo-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #fff;
  font-weight: 900;
  font-size: 22px;
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.30), rgba(77, 163, 255, 0.24));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.apps-demo-card h2 {
  margin: 0 0 8px;
}

.apps-demo-card p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 820px) {
  .apps-demo-grid {
    grid-template-columns: 1fr;
  }

  .apps-demo-card {
    padding: 22px 18px;
  }
}


/* TIC-TAC-TOE APP REFRESH */
.ttt-page--refresh {
  padding: 30px 0 88px;
}

.ttt-container {
  max-width: 1680px;
}

.ttt-hero {
  min-height: 164px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px, 3vw, 42px);
}

.ttt-hero h1 {
  margin: 14px 0 10px;
  max-width: 720px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 0.98;
}

.ttt-hero p {
  max-width: 680px;
  font-size: clamp(15px, 1.4vw, 18px);
}

.ttt-hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.ttt-hero__meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 72px;
  padding: 0 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
  border: 1px solid rgba(255,255,255,.10);
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  box-shadow: 0 22px 50px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.05);
}

.ttt-app-shell {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) minmax(360px, 460px);
  gap: 24px;
  align-items: stretch;
  margin-top: 24px;
}

.ttt-board-card,
.ttt-panel,
.ttt-score-card {
  border-radius: 30px;
}

.ttt-board-card {
  min-height: 680px;
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  position: relative;
}

.ttt-board-card::before {
  content: "";
  position: absolute;
  inset: auto -18% -35% 30%;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77,163,255,.12), transparent 68%);
  pointer-events: none;
}

.ttt-board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.ttt-board-head h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -.05em;
}

.ttt-state {
  width: min(100%, 660px);
  padding: 12px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(236,72,221,.22), rgba(99,102,241,.15));
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  position: relative;
  z-index: 1;
}

.ttt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.35vw, 18px);
  width: min(100%, 660px);
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.ttt-grid form {
  margin: 0;
}

.ttt-cell {
  width: 100%;
  aspect-ratio: 1/1;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,.08), transparent 32%),
    linear-gradient(145deg, rgba(14,17,39,.96), rgba(8,10,27,.92));
  color: #fff;
  font-size: clamp(54px, 7vw, 104px);
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 0 32px rgba(236,72,221,.10), 0 18px 44px rgba(0,0,0,.20);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.ttt-cell:not(:disabled):hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(236,72,221,.58);
  box-shadow: 0 22px 58px rgba(236,72,221,.18), inset 0 0 34px rgba(236,72,221,.14);
}

.ttt-cell:disabled {
  cursor: not-allowed;
  opacity: .9;
}

.ttt-side-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.ttt-panel,
.ttt-score-card {
  padding: 24px;
}

.ttt-panel h2,
.ttt-score-card h2 {
  margin: 0 0 10px;
}

.ttt-panel p {
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 18px;
}

.ttt-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}

.ttt-invite-box {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.ttt-invite-box h3 {
  margin: 0 0 12px;
}

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

.ttt-invite-form label {
  font-weight: 800;
  color: rgba(255,255,255,.82);
}

.ttt-invite-inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.ttt-invite-form input {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(4,6,18,.62);
  color: #fff;
  outline: none;
}

.ttt-invite-form input:focus {
  border-color: rgba(236,72,221,.55);
  box-shadow: 0 0 0 4px rgba(236,72,221,.13);
}

.ttt-alert {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 18px;
  color: #ffd6f7;
}

.ttt-score-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.ttt-mode-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(77,163,255,.12);
  border: 1px solid rgba(77,163,255,.22);
  color: rgba(255,255,255,.84);
  font-weight: 900;
  font-size: 12px;
}

.ttt-scoreline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.ttt-scoreline div {
  min-height: 68px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.ttt-scoreline strong {
  display: block;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.ttt-scoreline span {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ttt-empty {
  text-align: center;
  padding: 50px 18px;
}

.ttt-empty--feature {
  min-height: 520px;
  display: grid;
  place-content: center;
  position: relative;
  z-index: 1;
}

.ttt-empty__icon {
  font-size: 86px;
  font-weight: 950;
  letter-spacing: -10px;
  color: #f0abfc;
  margin-bottom: 12px;
  text-shadow: 0 18px 48px rgba(236,72,221,.22);
}

@media (min-width: 1180px) {
  .ttt-board-card {
    align-items: center;
  }

  .ttt-board-head,
  .ttt-state,
  .ttt-grid {
    width: min(100%, 660px);
  }
}

@media (max-width: 1180px) {
  .ttt-app-shell {
    grid-template-columns: 1fr;
  }

  .ttt-side-stack {
    grid-template-columns: 1fr 1fr;
  }

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

  .ttt-board-card {
    min-height: auto;
  }
}

@media (max-width: 820px) {
  .ttt-page--refresh {
    padding-top: 18px;
  }

  .ttt-hero {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
  }

  .ttt-hero__meta {
    display: none;
  }

  .ttt-side-stack {
    grid-template-columns: 1fr;
  }

  .ttt-board-card,
  .ttt-panel,
  .ttt-score-card {
    padding: 18px;
    border-radius: 24px;
  }

  .ttt-board-head {
    flex-direction: column;
  }

  .ttt-scoreline {
    grid-template-columns: 1fr;
  }

  .ttt-grid {
    width: 100%;
  }

  .ttt-cell {
    border-radius: 18px;
  }

  .ttt-invite-inline {
    grid-template-columns: 1fr;
  }
}

/* Tic-tac-toe refinement: viewport-aware board and invite helpers */
.ttt-app-shell {
  grid-template-columns: minmax(520px, 1fr) minmax(340px, 440px);
  gap: clamp(18px, 2vw, 28px);
}

.ttt-board-card {
  min-height: auto;
}

@media (min-width: 1180px) {
  .ttt-board-card {
    align-items: center;
  }

  .ttt-board-head,
  .ttt-state,
  .ttt-grid {
    width: min(100%, clamp(360px, 36vw, 520px));
  }
}

.ttt-grid,
.ttt-grid.ttt-grid--large {
  width: min(100%, clamp(300px, 34vw, 500px));
  gap: clamp(10px, 1vw, 14px);
  margin-top: clamp(18px, 2vw, 22px);
}

.ttt-cell {
  border-radius: clamp(17px, 1.6vw, 22px);
  font-size: clamp(42px, 5.2vw, 76px);
}

.ttt-user-search {
  position: relative;
  min-width: 0;
}

.ttt-user-suggestions {
  position: absolute;
  z-index: 60;
  inset: calc(100% + 8px) 0 auto 0;
  display: grid;
  gap: 6px;
  max-height: 288px;
  overflow: auto;
  padding: 8px;
  border-radius: 18px;
  background: rgba(10, 12, 28, .96);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .38), 0 0 0 1px rgba(236, 72, 221, .06);
  backdrop-filter: blur(18px);
}

.ttt-user-suggestion {
  width: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.ttt-user-suggestion:hover {
  background: rgba(236, 72, 221, .14);
}

.ttt-user-suggestion--empty {
  display: block;
  color: var(--text-muted);
  cursor: default;
}

.ttt-user-suggestion__avatar,
.ttt-friend-chip__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(236,72,221,.28), rgba(77,163,255,.18));
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 950;
}

.ttt-user-suggestion strong,
.ttt-friend-chip strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.ttt-user-suggestion small,
.ttt-friend-chip small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 11px;
}

.ttt-user-suggestion em {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(77, 163, 255, .12);
  color: rgba(255,255,255,.82);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.ttt-friend-picker {
  margin-top: 14px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.085);
}

.ttt-friend-picker__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: rgba(255,255,255,.9);
  font-size: 13px;
  font-weight: 950;
}

.ttt-friend-picker__head small {
  min-width: 26px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(236,72,221,.14);
  color: rgba(255,255,255,.82);
}

.ttt-friend-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding-right: 2px;
}

.ttt-friend-chip {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(4,6,18,.42);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.ttt-friend-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(236,72,221,.34);
  background: rgba(236,72,221,.10);
}

.ttt-friend-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

@media (max-width: 1180px) {
  .ttt-grid,
  .ttt-grid.ttt-grid--large {
    width: min(100%, 520px);
  }
}

@media (max-width: 560px) {
  .ttt-grid,
  .ttt-grid.ttt-grid--large {
    width: 100%;
    gap: 9px;
  }

  .ttt-cell {
    font-size: clamp(34px, 15vw, 58px);
  }
}

.ttt-board-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.secondary-btn--danger {
  color: #fff;
  border-color: rgba(248, 113, 113, .35);
  background: linear-gradient(135deg, rgba(127, 29, 29, .34), rgba(236, 72, 153, .16));
}

.secondary-btn--danger:hover {
  border-color: rgba(248, 113, 113, .62);
  box-shadow: 0 16px 32px rgba(127, 29, 29, .22);
}

@media (max-width: 700px) {
  .ttt-board-actions {
    width: 100%;
    justify-content: stretch;
  }

  .ttt-board-actions form,
  .ttt-board-actions button {
    width: 100%;
  }
}

/* 99-responsive.css */
/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-grid,
  .grid-panels,
  .news-grid,
  .dashboard-cards {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading p {
    text-align: left;
  }
}

@media (max-width: 980px) {
  .forum-layout,
  .messages-layout,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-shell--wide {
    padding: 24px 18px;
  }
}

@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .user-chip {
    max-width: 100%;
  }

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

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

  .admin-topbar__nav {
    width: 100%;
  }

  .admin-topbar__nav a {
    flex: 1 1 auto;
  }

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

@media (max-width: 920px) {
  .contact-grid,
  .message-detail-grid {
    grid-template-columns: 1fr;
  }

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

  .admin-message-row__meta {
    justify-items: start;
    min-width: 0;
  }

  .admin-message-row__date {
    text-align: left;
  }
}

@media (max-width: 780px) {
  .site-footer {
    margin-top: 40px;
    padding-bottom: 22px;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .site-footer__links {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: clamp(26px, 7vw, 34px);
  }

  h2 {
    font-size: clamp(20px, 5vw, 26px);
  }

  p {
    font-size: 14px;
  }

  .glass,
  .panel,
  .card {
    border-radius: 18px;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
    min-height: 46px;
  }

  input,
  textarea,
  select {
    font-size: 16px; /* iOS zoom fix */
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .landing-page {
    padding: 18px 0 60px;
  }

  .header-inner {
    padding: 12px 16px;
    min-height: auto;
  }

  .brand img {
    height: 52px;
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
  }

  .nav a,
  .nav .nav-item,
  .nav .nav-link-btn,
  .nav .nav-logout-btn {
    padding: 9px 12px;
    min-height: 42px;
  }

  .hero-shell {
    padding: 26px 20px;
    border-radius: 24px;
  }

  .hero-card {
    padding: 30px 20px;
  }

  .hero-copy h1 {
    line-height: 1.04;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions a,
  .hero-actions button {
    width: 100%;
  }

  .panel,
  .news-section,
  .dashboard-card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .news-card {
    padding: 20px;
    border-radius: 20px;
  }

  .auth-shell,
  .profile-shell {
    margin: 20px auto;
    padding: 22px 18px;
    border-radius: 24px;
  }

  .profile-panel {
    padding: 20px 18px;
    border-radius: 20px;
  }

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

  .auth-actions {
    flex-direction: column;
  }

  .auth-actions .primary-btn,
  .auth-actions .secondary-btn,
  .auth-actions button {
    width: 100%;
  }

  .nav-wrap {
    gap: 14px;
  }

  .user-chip {
    width: 100%;
    justify-content: space-between;
  }

  .user-chip-label {
    max-width: none;
  }

  .page-shell,
  .page-shell--narrow {
    width: min(100% - 24px, 1200px);
  }

  .admin-message-row {
    padding: 18px;
  }

  .admin-message-row__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .message-detail-card {
    padding: 18px;
  }

  .profile-delete-block {
    max-width: 100%;
  }
}
/* ULTRAWIDE OPTIMIZATION
   Keeps normal desktop/tablet layouts untouched, but lets large monitors breathe. */
@media (min-width: 1600px) {
  :root {
    --maxw: 1560px;
  }

  .container,
  .header-inner {
    padding-left: 32px;
    padding-right: 32px;
  }

  .landing-page {
    padding-top: 44px;
  }

  .hero-shell {
    min-height: 660px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(390px, 500px);
    gap: clamp(48px, 5vw, 86px);
    align-items: center;
    min-height: 570px;
  }

  .hero-copy {
    max-width: 920px;
  }

  .hero-copy h1 {
    font-size: clamp(78px, 5.1vw, 116px);
  }

  .hero-copy > p {
    max-width: 780px;
  }

  .hero-stats {
    width: 100%;
  }

  .stat-card {
    padding: 30px;
    border-radius: 26px;
  }

  .grid-panels {
    grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.45fr);
  }

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

  .page-shell,
  .profile-shell--wide {
    width: min(1560px, calc(100% - 64px));
  }

  .messages-page-shell .container {
    max-width: 1560px;
  }

  .messages-app {
    grid-template-columns: 420px minmax(0, 1fr);
  }

  .messages-sidebar-v2,
  .messages-chat-v2 {
    padding: 30px;
  }

  .messages-chat-v2__body {
    min-height: 0;
  }

  .chat-message-bubble {
    max-width: min(58%, 860px);
  }

  .news-detail-container {
    width: min(1180px, calc(100% - 72px));
  }

  .news-article__hero {
    height: clamp(360px, 24vw, 520px);
  }

  .news-article__header h1 {
    max-width: 980px;
    font-size: clamp(46px, 3vw, 68px);
  }

  .markdown-body {
    font-size: 17px;
  }
}

@media (min-width: 2100px) {
  :root {
    --maxw: 1840px;
  }

  .container,
  .header-inner {
    padding-left: 40px;
    padding-right: 40px;
  }

  .hero-shell {
    min-height: 700px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(460px, 560px);
    gap: clamp(70px, 6vw, 132px);
    min-height: 610px;
  }

  .hero-copy {
    max-width: 1080px;
  }

  .hero-copy h1 {
    font-size: clamp(92px, 4.25vw, 138px);
  }

  .hero-copy > p {
    max-width: 900px;
    font-size: 24px;
  }

  .grid-panels,
  .news-section {
    max-width: 1680px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .page-shell,
  .profile-shell--wide {
    width: min(1720px, calc(100% - 96px));
  }

  .messages-page-shell .container {
    max-width: 1720px;
  }

  .messages-app {
    grid-template-columns: 460px minmax(0, 1fr);
  }

  .messages-chat-v2__body {
    min-height: 0;
  }

  .news-detail-container {
    width: min(1260px, calc(100% - 96px));
  }
}

@media (min-width: 3000px) {
  :root {
    --maxw: 2040px;
  }

  .hero-shell,
  .grid-panels,
  .news-section,
  .messages-page-shell .container {
    max-width: 1880px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-copy h1 {
    font-size: clamp(104px, 3.45vw, 150px);
  }


  .news-detail-container {
    width: min(1320px, calc(100% - 128px));
  }
}



/* Fold / ultra narrow phone fixes */
@media (max-width: 480px) {
  .header-inner {
    min-height: 72px;
    padding-inline: 14px;
    gap: 12px;
  }

  .brand img {
    height: clamp(42px, 9vw, 54px);
    max-width: 62vw;
    object-fit: contain;
  }

  .nav-wrap {
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: 100dvh;
    padding:
      calc(84px + env(safe-area-inset-top))
      16px
      calc(24px + env(safe-area-inset-bottom));
    border-left: none;
  }

  .nav-wrap .nav {
    border-radius: 20px;
    padding: 8px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
  }

  body.menu-open {
    overflow: hidden;
    touch-action: none;
  }
}

/* TicTacToe live update polish */
.ttt-cell.is-new {
  animation: ttt-pop-in .22s cubic-bezier(.2, .9, .2, 1.2);
}

.ttt-cell.is-pending {
  opacity: .72;
  transform: scale(.985);
}

@keyframes ttt-pop-in {
  0% {
    opacity: .45;
    transform: scale(.86);
  }
  70% {
    opacity: 1;
    transform: scale(1.045);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Visitor statistics admin page */
.visitor-stats__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.visitor-stats__lead {
  max-width: 760px;
  color: var(--muted);
  margin: 10px 0 0;
  line-height: 1.65;
}

.visitor-stats__range {
  display: grid;
  gap: 8px;
  min-width: 190px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.visitor-stats__range select {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 16px;
  padding: 11px 14px;
  outline: none;
}

.visitor-stats__range option { background: #111827; color: #fff; }

.visitor-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.visitor-kpi,
.visitor-map-card,
.visitor-chart-card,
.visitor-table-card {
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(135deg, rgba(139,93,255,.10), rgba(92,225,255,.045)),
    rgba(255,255,255,.045);
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
  border-radius: 28px;
}

.visitor-kpi { padding: 20px; position: relative; overflow: hidden; }
.visitor-kpi::after {
  content: "";
  position: absolute;
  inset: auto -30px -45px auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(92,225,255,.14);
  filter: blur(14px);
}
.visitor-kpi span { display: block; color: var(--muted); font-size: 13px; font-weight: 700; }
.visitor-kpi strong { display: block; margin-top: 8px; font-size: clamp(30px, 4vw, 48px); line-height: 1; }

.visitor-map-card { padding: 22px; overflow: hidden; }
.visitor-map-card__top,
.visitor-chart-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.visitor-map-card h2,
.visitor-chart-card h2 { margin: 0; font-size: 22px; }
.visitor-map-card p,
.visitor-chart-card__top span { margin: 6px 0 0; color: var(--muted); }

.visitor-play-btn {
  border: 1px solid rgba(92,225,255,.28);
  background: linear-gradient(135deg, rgba(92,225,255,.18), rgba(139,93,255,.18));
  color: #fff;
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.visitor-world-map {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 500;
  min-height: 360px;
  max-height: 70vh;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 52% 43%, rgba(92,225,255,.14), transparent 20%),
    radial-gradient(circle at 28% 30%, rgba(139,93,255,.11), transparent 25%),
    linear-gradient(180deg, rgba(8, 12, 27, .98), rgba(4, 7, 17, .98));
  box-shadow: inset 0 0 65px rgba(92,225,255,.045);
}

.visitor-world-map__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  opacity: .95;
  filter: drop-shadow(0 0 18px rgba(92,225,255,.16));
  mix-blend-mode: normal;
}

.visitor-world-map__image {
  pointer-events: none;
  user-select: none;
}

.visitor-world-map__latlon path {
  fill: none;
  stroke: rgba(255,255,255,.055);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.visitor-world-map__land path {
  fill: url(#visitorLandGradient);
  stroke: rgba(255,255,255,.18);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  opacity: .86;
}

.visitor-world-map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.20), transparent 14%, transparent 86%, rgba(0,0,0,.22)),
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 45%, rgba(0,0,0,.16));
}

.visitor-world-map__continents,
.visitor-world-map__grid { display: none; }

.visitor-world-map__points { position: absolute; inset: 0; z-index: 2; }
.visitor-world-map__unknown {
  position: absolute;
  z-index: 3;
  left: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100% - 36px));
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--text);
  background: rgba(7, 11, 26, .74);
  box-shadow: 0 12px 34px rgba(0,0,0,.32);
  font-weight: 800;
  backdrop-filter: blur(12px);
}
.visitor-map-point {
  position: absolute;
  transform: translate(-50%, -50%);
  width: var(--marker-size, 24px);
  height: var(--marker-size, 24px);
  border: 1px solid rgba(255,255,255,.50);
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.95), rgba(92,225,255,.75) 30%, rgba(139,93,255,.52));
  color: #07111e;
  display: grid;
  place-items: center;
  box-shadow: 0 0 26px rgba(92,225,255,.42), 0 0 70px rgba(139,93,255,.18);
  cursor: default;
  animation: visitorPulse 2.4s ease-in-out infinite;
  will-change: transform;
}
.visitor-map-point::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1px solid rgba(92,225,255,.18);
}
.visitor-map-point span { font-size: clamp(9px, calc(var(--marker-size, 24px) / 3.2), 12px); font-weight: 900; line-height: 1; }
@keyframes visitorPulse {
  0%, 100% { box-shadow: 0 0 18px rgba(92,225,255,.32), 0 0 55px rgba(139,93,255,.16); }
  50% { box-shadow: 0 0 38px rgba(92,225,255,.66), 0 0 85px rgba(139,93,255,.32); }
}

.visitor-timeline { margin-top: 18px; }
.visitor-timeline input { width: 100%; accent-color: var(--cyan); }
.visitor-timeline__meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-weight: 700; margin-top: 8px; }

.visitor-grid-section {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.1fr);
  gap: 18px;
  margin-top: 18px;
}
.visitor-chart-card,
.visitor-table-card { padding: 20px; }
.visitor-bars { display: grid; gap: 13px; }
.visitor-bar-row {
  display: grid;
  grid-template-columns: 190px minmax(120px, 1fr) 70px;
  gap: 12px;
  align-items: center;
}
.visitor-bar-row__label strong { display:block; font-size: 14px; }
.visitor-bar-row__label span { color: var(--muted); font-size: 12px; }
.visitor-bar-row__track { height: 12px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.08); }
.visitor-bar-row__track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--purple), var(--cyan)); }
.visitor-bar-row__value { text-align: right; font-weight: 800; }

.visitor-table-wrap { overflow-x: auto; }
.visitor-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.visitor-table th,
.visitor-table td { padding: 13px 10px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; }
.visitor-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.visitor-code { display: inline-flex; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 4px 8px; font-weight: 900; }
.visitor-empty,
.visitor-stats__note { color: var(--muted); }
.visitor-stats__note { margin-top: 18px; line-height: 1.6; }
.visitor-stats__note code { color: var(--cyan); }

@media (max-width: 980px) {
  .visitor-stats__header,
  .visitor-map-card__top,
  .visitor-chart-card__top { flex-direction: column; }
  .visitor-kpis,
  .visitor-grid-section { grid-template-columns: 1fr; }
  .visitor-world-map { min-height: 320px; }
}

@media (max-width: 560px) {
  .visitor-bar-row { grid-template-columns: 1fr; gap: 7px; }
  .visitor-bar-row__value { text-align: left; }
  .visitor-kpis { gap: 10px; }
}


/* Visitor map calibration: keep the SVG and marker overlay in the same coordinate space. */
.visitor-world-map--real {
  max-height: min(72vh, 640px);
}

.visitor-world-map--real .visitor-world-map__svg,
.visitor-world-map--real .visitor-world-map__points {
  inset: 0;
}

.visitor-map-point {
  will-change: transform;
}

@media (max-width: 760px) {
  .visitor-world-map {
    min-height: 260px;
  }

  .visitor-map-point span {
    font-size: 9px;
  }
}
