:root {
  --bg: #0f1419;
  --bg-soft: #18212d;
  --panel: rgba(22, 33, 47, 0.78);
  --text: #eef4fb;
  --muted: #b7c4d6;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #4fd1c5;
  --warn: #f6ad55;
  --ok: #68d391;
  --bad: #fc8181;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, #243850 0%, transparent 45%),
    radial-gradient(circle at 90% 20%, #2f4a33 0%, transparent 40%),
    linear-gradient(160deg, #090d12 0%, #111b26 55%, #0a0f15 100%);
  min-height: 100vh;
}

.bg-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.24;
}

.bg-glow-1 {
  width: 360px;
  height: 360px;
  left: -80px;
  top: -100px;
  background: #4fd1c5;
}

.bg-glow-2 {
  width: 420px;
  height: 420px;
  right: -100px;
  bottom: -120px;
  background: #f6ad55;
}

.container {
  width: min(1120px, 94vw);
  margin: 28px auto 48px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1120px, 94vw);
  margin: 20px auto;
  padding: 10px 12px;
  border: 1px solid rgba(152, 193, 232, 0.2);
  border-radius: 16px;
  background:
    linear-gradient(110deg, rgba(11, 20, 29, 0.92), rgba(17, 29, 41, 0.88)),
    radial-gradient(circle at 15% 20%, rgba(79, 209, 197, 0.18), transparent 45%);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(4, 10, 18, 0.34);
}

.top-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.corner-menu-btn {
  min-width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(162, 194, 223, 0.3);
  background: rgba(8, 16, 24, 0.58);
  font-size: 18px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.corner-menu-btn span {
  font-size: 13px;
  font-weight: 700;
}

.corner-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 18, 0.42);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 35;
}

.corner-menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(320px, 92vw);
  border-left: 1px solid rgba(152, 193, 232, 0.25);
  background: rgba(8, 14, 22, 0.97);
  box-shadow: -12px 0 30px rgba(3, 8, 16, 0.45);
  transform: translateX(104%);
  transition: transform 220ms ease;
  z-index: 40;
  padding: 14px;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 12px;
  align-content: start;
  overflow-y: auto;
}

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

body.menu-open .corner-menu-drawer {
  transform: translateX(0);
}

.corner-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(152, 193, 232, 0.18);
}

.corner-menu-close {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(162, 194, 223, 0.3);
  background: rgba(8, 16, 24, 0.58);
}

.corner-menu-links {
  display: grid;
  gap: 6px;
  align-content: start;
}

.drawer-lang-switch {
  border-top: 1px solid rgba(152, 193, 232, 0.18);
  padding-top: 10px;
}

.nav-menu {
  position: relative;
}

.nav-menu > summary {
  list-style: none;
}

.nav-menu > summary::-webkit-details-marker {
  display: none;
}

.nav-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 220px;
  border: 1px solid rgba(152, 193, 232, 0.28);
  border-radius: 12px;
  background: rgba(9, 16, 24, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(5, 11, 20, 0.4);
  padding: 6px;
  display: grid;
  gap: 4px;
  z-index: 25;
}

.nav-menu-item {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  display: block;
}

.nav-menu-item:hover {
  background: rgba(79, 209, 197, 0.14);
}

.nav-menu-item.active {
  border-color: rgba(125, 224, 216, 0.5);
  background: rgba(79, 209, 197, 0.2);
}

.mobile-only {
  display: none;
}

.drawer-ads {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.drawer-ads h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #d7e6fa;
}

.drawer-ads-list {
  display: grid;
  gap: 8px;
}

.drawer-ad-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: rgba(9, 14, 20, 0.35);
}

.drawer-ad-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
}

.drawer-ad-media {
  width: 100%;
  border-radius: 8px;
  border: 0;
  max-height: 160px;
  object-fit: cover;
}

.drawer-ad-desc {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
}

.lang-link {
  min-width: 42px;
  text-align: center;
  padding-left: 8px;
  padding-right: 8px;
}

a {
  color: var(--text);
  text-decoration: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: Unbounded, sans-serif;
  letter-spacing: 0.3px;
  font-size: 14px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-mark {
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(79, 209, 197, 0.25), rgba(98, 177, 235, 0.2));
  border: 1px solid rgba(125, 224, 216, 0.42);
}

.brand-sub {
  color: #c9d8ec;
  opacity: 0.95;
}

.nav-link {
  border: 1px solid transparent;
  background: transparent;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  transition: 180ms ease;
  color: #d9e6f5;
}

.nav-link:hover {
  color: #eefbff;
  background: rgba(79, 209, 197, 0.14);
  transform: translateY(-1px);
}

.nav-link.active {
  color: #a7fff6;
  background: rgba(79, 209, 197, 0.2);
  border-color: rgba(125, 224, 216, 0.45);
}

.nav-link.nav-danger {
  color: #f3ccd0;
}

.nav-link.nav-danger:hover {
  color: #ffd7db;
  background: rgba(252, 129, 129, 0.14);
}

.hero,
.auth-card,
.editor,
.event-list,
.event-card,
.mini-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px;
  margin-bottom: 22px;
}

h1,
h2,
h3 {
  margin: 0;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-size: 12px;
  margin: 0 0 10px;
}

.muted {
  color: var(--muted);
}

.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
}

.pill.live {
  background: rgba(104, 211, 145, 0.2);
  color: #b2f5cc;
}

.pill.idle {
  background: rgba(79, 209, 197, 0.2);
  color: #b8fff7;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.hero-layout {
  position: relative;
  display: block;
  margin-bottom: 12px;
}

.clans-sidebar {
  width: 290px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(10px);
  padding: 14px;
  position: absolute;
  right: calc(100% + 16px);
  top: 0;
  max-height: none;
  overflow: visible;
  z-index: 10;
}

.clans-sidebar h2 {
  margin-bottom: 8px;
}

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

.clans-page-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.ads-list {
  margin-top: 8px;
  display: grid;
  gap: 10px;
}

.ad-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(9, 14, 20, 0.4);
  padding: 10px;
}

.ads-sidebar .ad-media {
  border: 0;
}

.ads-sidebar .ad-card + .ad-card {
  margin-top: 10px;
}

.ad-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.ad-card p {
  margin: 6px 0 0;
  font-size: 13px;
}

.ad-media {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-height: 240px;
  object-fit: cover;
}

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

.logo-preview-card {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(9, 14, 20, 0.35);
}

.logo-preview {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
}

.clan-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(9, 14, 20, 0.4);
  padding: 10px;
  display: block;
}

.clan-card h3 {
  margin: 0;
  font-size: 15px;
}

.clan-card p {
  margin: 4px 0 0;
  font-size: 13px;
}

.clan-logo {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
}

.event-feed {
  grid-template-columns: minmax(0, 1fr);
  max-width: 100%;
  margin: 0;
}

.events-feed-wrap {
  position: relative;
}

.ads-sidebar {
  width: 290px;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  padding: 0;
  position: absolute;
  left: calc(100% + 16px);
  top: -200px;
}

.ads-sidebar h2 {
  margin-bottom: 8px;
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(9, 14, 20, 0.4);
  padding: 8px 12px;
}

.to-top-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(125, 224, 216, 0.55);
  background: linear-gradient(140deg, rgba(28, 74, 82, 0.95), rgba(34, 93, 73, 0.95));
  color: #e8fffb;
  font-size: 20px;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(4, 11, 20, 0.42);
}

.to-top-btn.visible {
  display: inline-flex;
}

@media (max-width: 900px) {
  .clans-sidebar {
    display: none;
  }

  .ads-sidebar {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .hero-layout {
    display: block;
  }

  .event-feed {
    max-width: 100%;
  }
}

@media (max-width: 1540px) {
  .clans-sidebar {
    display: none;
  }

  .ads-sidebar {
    display: none;
  }
}

.event-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .event-card:hover {
    transform: translateY(-4px);
  }
}

.event-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.status,
.result {
  font-size: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
}

.status {
  background: rgba(79, 209, 197, 0.18);
}

.result.win {
  background: rgba(104, 211, 145, 0.25);
}

.result.lose {
  background: rgba(252, 129, 129, 0.25);
}

.meta {
  margin: 0;
  color: #d8e4f5;
  font-size: 13px;
}

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

.news-feed .event-card h2 {
  font-size: 24px;
  line-height: 1.25;
}

.news-feed .desc {
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.event-actions {
  display: flex;
  gap: 10px;
}

.event-actions form {
  width: 100%;
}

.join-team-btn {
  background: linear-gradient(120deg, #2e8f6f, #3aa06d);
  border-color: rgba(141, 255, 182, 0.28);
  box-shadow: 0 8px 18px rgba(65, 165, 112, 0.26);
}

.cover {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: initial;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  display: block;
}

.timeline {
  display: flex;
  gap: 8px;
}

.node {
  flex: 1;
  text-align: center;
  padding: 6px;
  font-size: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.node.done {
  background: rgba(79, 209, 197, 0.2);
  color: #d8fffb;
}

.details {
  margin: 2px 0 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 14px;
}

.rules-list {
  margin-top: 6px;
  display: grid;
  gap: 4px;
}

.final-block {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(9, 14, 20, 0.45);
  padding: 10px;
  display: grid;
  gap: 6px;
  color: #d8e4f5;
}

.auth-card {
  max-width: 600px;
  margin: 40px auto;
  padding: 24px;
}

.profile-shell {
  display: grid;
  gap: 14px;
}

.profile-hero {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.profile-title h1 {
  margin-top: 2px;
  margin-bottom: 6px;
}

.profile-badges {
  display: grid;
  gap: 8px;
  justify-items: end;
}

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

.profile-card {
  border: 1px solid var(--line);
  background: rgba(9, 14, 20, 0.45);
  border-radius: 12px;
  padding: 12px;
}

.profile-card h2 {
  font-size: 16px;
  margin-bottom: 6px;
}

.profile-list {
  display: grid;
  gap: 6px;
  color: #d6e7fb;
}

.profile-list div {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px;
  background: rgba(9, 14, 20, 0.36);
  font-size: 14px;
}

.profile-card-wide {
  grid-column: 1 / -1;
}

.profile-code {
  margin-top: 10px;
  border: 1px dashed rgba(79, 209, 197, 0.42);
  border-radius: 10px;
  background: rgba(18, 39, 45, 0.35);
  padding: 10px;
  text-align: center;
  font-size: 18px;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(9, 14, 20, 0.45);
}

.auth-box p {
  margin: 8px 0;
}

.switch-link {
  margin: 12px 0 2px;
  color: var(--muted);
  font-size: 14px;
}

.switch-link a {
  color: #b8fff7;
  text-decoration: underline;
}

.actions-single {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

.btn-link {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  background: linear-gradient(120deg, #2b6f74, #347a57);
}

.ghost-link {
  background: rgba(9, 14, 20, 0.8);
}

.split {
  border: none;
  border-top: 1px solid var(--line);
  margin: 16px 0;
}

.auth-result {
  margin-bottom: 12px;
  color: #b7ffda;
}

.auth-result.error {
  color: #ffb2b2;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.admin-head-actions {
  display: flex;
  gap: 8px;
}

.admin-tabs {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.admin-tab-btn {
  border: 1px solid rgba(162, 194, 223, 0.24);
  background: rgba(8, 16, 24, 0.58);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
}

.admin-tab-btn.active {
  border-color: rgba(125, 224, 216, 0.55);
  background: rgba(79, 209, 197, 0.2);
  color: #e8fffc;
}

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

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

.logout {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.admin-layout.admin-tab-panel {
  display: none;
}

.admin-layout.admin-tab-panel.active {
  display: grid;
}

.admin-tools {
  margin-top: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  padding: 16px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.compact-form {
  padding: 10px;
}

.compact-form h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.compact-form label {
  margin-top: 7px;
}

.compact-form input,
.compact-form textarea,
.compact-form select,
.compact-form button {
  padding: 8px 9px;
  border-radius: 9px;
}

.upload-drop {
  margin-top: 10px;
  border: 1px dashed rgba(79, 209, 197, 0.45);
  border-radius: 12px;
  background: rgba(18, 32, 45, 0.55);
  padding: 10px;
}

.upload-drop p {
  margin: 0 0 6px;
  font-size: 13px;
  color: #d7eef2;
}

.upload-drop small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.upload-drop.drag-over {
  border-color: rgba(141, 255, 182, 0.8);
  background: rgba(32, 67, 63, 0.45);
}

.click-copy {
  cursor: pointer;
  user-select: all;
}

.tg-command-wrap {
  border: 1px dashed rgba(125, 224, 216, 0.45);
  border-radius: 10px;
  background: rgba(18, 38, 45, 0.35);
  padding: 10px;
  margin: 8px 0;
}

.tg-command-wrap code {
  display: block;
  text-align: center;
  font-size: 14px;
}

.btn-main {
  background: linear-gradient(130deg, #287d80, #2f925e);
  border-color: rgba(147, 243, 235, 0.25);
  box-shadow: 0 7px 16px rgba(33, 133, 111, 0.24);
}

.team-requests {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.team-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(9, 14, 20, 0.45);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.team-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.team-meta {
  display: grid;
  gap: 2px;
  color: #cde6ff;
  font-size: 12px;
}

.verify-list {
  display: grid;
  gap: 8px;
}

.verify-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(9, 14, 20, 0.45);
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.verify-main p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.verify-actions {
  display: grid;
  gap: 6px;
  min-width: 180px;
}

.users-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.users-filter-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  background: rgba(9, 14, 20, 0.45);
}

.users-filter-chip.active {
  border-color: rgba(79, 209, 197, 0.65);
  background: rgba(44, 102, 97, 0.4);
}

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

.user-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(9, 14, 20, 0.45);
  padding: 10px;
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 10px;
  align-items: start;
}

.user-top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.role-badge,
.state-badge {
  border-radius: 999px;
  font-size: 11px;
  padding: 4px 8px;
  border: 1px solid var(--line);
}

.role-badge.superadmin {
  background: rgba(246, 173, 85, 0.2);
}

.role-badge.admin {
  background: rgba(79, 209, 197, 0.2);
}

.role-badge.user {
  background: rgba(177, 188, 205, 0.18);
}

.state-badge.ok {
  background: rgba(104, 211, 145, 0.2);
}

.state-badge.wait {
  background: rgba(246, 173, 85, 0.2);
}

.state-badge.bad {
  background: rgba(252, 129, 129, 0.2);
}

.user-main h3 {
  margin: 2px 0;
}

.user-main p {
  margin: 2px 0;
  color: var(--muted);
  font-size: 13px;
}

.user-meta {
  display: grid;
  gap: 4px;
  color: #d5e6fb;
  font-size: 12px;
}

.user-actions {
  min-width: 130px;
  display: grid;
  gap: 6px;
}

.log-list {
  display: grid;
  gap: 6px;
}

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

.stat-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(9, 14, 20, 0.4);
}

.stat-card h3 {
  margin-top: 4px;
  font-size: 24px;
}

.stats-table {
  display: grid;
  gap: 6px;
}

.stats-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}

.stats-row span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.log-row {
  display: grid;
  grid-template-columns: 160px 160px 160px 1fr;
  gap: 8px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: rgba(9, 14, 20, 0.45);
}

.visit-list {
  display: grid;
  gap: 6px;
}

.visit-row {
  display: grid;
  grid-template-columns: 160px 150px 130px 1fr 120px 1.2fr;
  gap: 8px;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: rgba(9, 14, 20, 0.45);
}

.visit-row span {
  overflow-wrap: anywhere;
}

.editor,
.event-list {
  padding: 16px;
}

.editor-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 10px;
}

.editor-helper-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 12px;
}

.editor-helper-row button {
  margin-top: 0;
  font-size: 13px;
  padding: 9px 10px;
}

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

.editor-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(9, 14, 20, 0.32);
}

.editor-block h3 {
  font-size: 14px;
  margin-bottom: 4px;
}

.editor-block-wide {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: #d8e4f5;
}

input,
textarea,
select,
button {
  width: 100%;
  margin-top: 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 10px;
  color: var(--text);
  background: rgba(9, 14, 20, 0.8);
  font-family: inherit;
}

button {
  cursor: pointer;
  font-weight: 700;
  background: linear-gradient(120deg, #2b6f74, #347a57);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

button.ghost {
  background: rgba(9, 14, 20, 0.8);
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

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

.sticky-actions {
  position: sticky;
  bottom: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(9, 14, 20, 0.9);
  backdrop-filter: blur(8px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-card {
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.mini-card h3 {
  font-size: 16px;
}

.mini-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.mini-card button {
  width: auto;
  padding: 8px 10px;
}

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

.mini-actions form {
  margin: 0;
}

.news-admin-list {
  margin-top: 10px;
}

.danger-btn {
  background: linear-gradient(120deg, #8f3a48, #a14a58);
  border-color: rgba(255, 165, 180, 0.34);
}

.status-draft {
  border-color: rgba(246, 173, 85, 0.4);
}

.status-announced {
  border-color: rgba(79, 209, 197, 0.4);
}

.status-started {
  border-color: rgba(104, 211, 145, 0.5);
}

.status-finished {
  border-color: rgba(176, 196, 222, 0.5);
}

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

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

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

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

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

  .verify-actions {
    min-width: 0;
  }

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

  .user-actions {
    min-width: 0;
  }

  .mini-card {
    flex-direction: column;
    align-items: stretch;
  }

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

  .mini-actions {
    justify-content: flex-start;
  }

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

  .clans-sidebar {
    display: none;
  }

  .event-feed {
    max-width: 100%;
  }
}

@media (max-width: 680px) {
  .brand-logo {
    width: 28px;
    height: 28px;
  }

  .bg-glow {
    display: none;
  }

  body {
    background: linear-gradient(160deg, #090d12 0%, #111b26 55%, #0a0f15 100%);
  }

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

  .hero {
    flex-direction: column;
  }

  .actions,
  .row-2,
  .row-3,
  .editor-helper-row {
    grid-template-columns: 1fr;
  }

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

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

  .profile-badges {
    width: 100%;
    justify-items: start;
  }

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

  .topbar {
    width: 94vw;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 10px;
    backdrop-filter: none;
    box-shadow: none;
  }

  .brand {
    justify-content: flex-start;
    gap: 3px;
    font-size: 12px;
  }

  .topbar-actions {
    margin-left: auto;
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 6px;
    align-items: center;
  }

  .topbar-actions .nav-link {
    width: auto;
    text-align: center;
    padding: 8px;
  }

  .topbar-actions .lang-switch {
    display: inline-flex;
    gap: 4px;
  }

  .topbar-actions .lang-link {
    min-width: 34px;
    padding: 8px 6px;
  }

  .corner-menu-btn {
    min-width: 40px;
    padding: 0 10px;
  }

  .corner-menu-btn span {
    display: none;
  }

  .corner-menu-drawer {
    width: min(360px, 94vw);
    backdrop-filter: none;
    box-shadow: none;
  }

  .event-card {
    transition: none;
  }

  .news-hero {
    padding: 18px;
  }

  .news-hero h1 {
    font-size: clamp(24px, 7vw, 30px);
    line-height: 1.15;
  }

  .news-feed .event-card h2 {
    font-size: clamp(20px, 5.8vw, 24px);
    line-height: 1.2;
  }

  .news-feed .meta,
  .news-feed .status {
    font-size: 12px;
  }

  .news-feed .desc {
    font-size: 15px;
    line-height: 1.5;
  }

  .to-top-btn {
    right: 12px;
    bottom: 12px;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
