/* === MagicWorld Forum — Glass Morphism Theme === */

:root {
  --bg-deep: #0a0418;
  --bg-mid: #150827;
  --bg-card: rgba(40, 20, 75, 0.35);
  --bg-card-hover: rgba(55, 30, 95, 0.5);
  --border: rgba(168, 85, 247, 0.18);
  --border-strong: rgba(168, 85, 247, 0.35);
  --text: #f3e8ff;
  --text-dim: #c4b5e8;
  --text-muted: #8b7ab5;
  --accent: #a855f7;
  --accent-bright: #c084fc;
  --accent-deep: #7c3aed;
  --accent-glow: rgba(168, 85, 247, 0.45);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;
  --shadow: 0 20px 60px -20px rgba(124, 58, 237, 0.45);
  --radius: 16px;
  --radius-lg: 20px;
  --radius-sm: 10px;
  --blur: 22px;
  --t: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent-bright); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--text); }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }

::selection { background: var(--accent-glow); color: white; }

svg { width: 1em; height: 1em; vertical-align: middle; flex-shrink: 0; }
.btn svg { width: 16px; height: 16px; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-lg svg { width: 18px; height: 18px; }
.section-icon svg, .topic-avatar svg { width: 22px; height: 22px; }
.dropdown-item svg { width: 16px; height: 16px; }
.cabinet-menu-item svg { width: 18px; height: 18px; }
h1 svg, h2 svg, h3 svg { width: 20px; height: 20px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-deep), var(--accent));
  border-radius: 10px;
}

/* === Animated background === */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 0% 0%, #1e0a3c 0%, transparent 40%),
    radial-gradient(ellipse at 100% 100%, #2a0e4d 0%, transparent 40%),
    linear-gradient(135deg, #0a0418 0%, #150827 50%, #0d0420 100%);
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.55;
  animation: float 24s ease-in-out infinite;
}
.orb-1 {
  width: 580px; height: 580px;
  background: radial-gradient(circle, #a855f7, transparent 60%);
  top: -8%; left: -10%;
  animation-delay: 0s;
}
.orb-2 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #6d28d9, transparent 60%);
  bottom: -15%; right: -10%;
  animation-delay: -8s;
}
.orb-3 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #c084fc, transparent 60%);
  top: 35%; left: 50%;
  animation-delay: -16s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 30px) scale(0.95); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* === Stars === */
.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* Layer 1 — small distant stars (slow drift) */
.stars-1 {
  background-image:
    radial-gradient(1px 1px at 12% 8%, #fff, transparent),
    radial-gradient(1px 1px at 23% 17%, #e9d5ff, transparent),
    radial-gradient(1px 1px at 38% 5%, #fff, transparent),
    radial-gradient(1px 1px at 51% 22%, #fff, transparent),
    radial-gradient(1px 1px at 67% 9%, #c4b5fd, transparent),
    radial-gradient(1px 1px at 79% 14%, #fff, transparent),
    radial-gradient(1px 1px at 91% 6%, #fff, transparent),
    radial-gradient(1px 1px at 7% 28%, #fff, transparent),
    radial-gradient(1px 1px at 18% 41%, #ddd6fe, transparent),
    radial-gradient(1px 1px at 32% 35%, #fff, transparent),
    radial-gradient(1px 1px at 44% 48%, #fff, transparent),
    radial-gradient(1px 1px at 58% 38%, #fff, transparent),
    radial-gradient(1px 1px at 72% 52%, #c4b5fd, transparent),
    radial-gradient(1px 1px at 85% 44%, #fff, transparent),
    radial-gradient(1px 1px at 96% 38%, #fff, transparent),
    radial-gradient(1px 1px at 4% 62%, #fff, transparent),
    radial-gradient(1px 1px at 15% 73%, #fff, transparent),
    radial-gradient(1px 1px at 28% 67%, #ddd6fe, transparent),
    radial-gradient(1px 1px at 41% 81%, #fff, transparent),
    radial-gradient(1px 1px at 53% 73%, #fff, transparent),
    radial-gradient(1px 1px at 65% 84%, #fff, transparent),
    radial-gradient(1px 1px at 78% 76%, #c4b5fd, transparent),
    radial-gradient(1px 1px at 89% 91%, #fff, transparent),
    radial-gradient(1px 1px at 11% 93%, #fff, transparent),
    radial-gradient(1px 1px at 36% 95%, #ddd6fe, transparent),
    radial-gradient(1px 1px at 60% 93%, #fff, transparent);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.85;
  animation: starsDrift 240s linear infinite, starsTwinkle 4s ease-in-out infinite;
}
/* Layer 2 — medium stars with subtle pulse */
.stars-2 {
  background-image:
    radial-gradient(1.5px 1.5px at 9% 13%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 27% 24%, #e9d5ff, transparent),
    radial-gradient(1.5px 1.5px at 49% 11%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 73% 29%, #ddd6fe, transparent),
    radial-gradient(1.5px 1.5px at 88% 18%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 14% 47%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 36% 56%, #e9d5ff, transparent),
    radial-gradient(1.5px 1.5px at 57% 49%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 81% 59%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 22% 78%, #ddd6fe, transparent),
    radial-gradient(1.5px 1.5px at 45% 87%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 68% 81%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 92% 73%, #e9d5ff, transparent);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.7;
  animation: starsDrift2 360s linear infinite, starsTwinkle 6s ease-in-out infinite 1s;
}
/* Layer 3 — bigger glowing stars (sparser) */
.stars-3 {
  background-image:
    radial-gradient(2px 2px at 17% 19%, #fff, transparent),
    radial-gradient(2px 2px at 42% 32%, #e9d5ff, transparent),
    radial-gradient(2px 2px at 64% 14%, #fff, transparent),
    radial-gradient(2px 2px at 85% 36%, #c4b5fd, transparent),
    radial-gradient(2px 2px at 19% 64%, #fff, transparent),
    radial-gradient(2px 2px at 51% 71%, #fff, transparent),
    radial-gradient(2px 2px at 76% 88%, #e9d5ff, transparent);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.95;
  filter: drop-shadow(0 0 3px rgba(196, 181, 253, 0.8));
  animation: starsTwinkle 3s ease-in-out infinite 0.5s;
}

@keyframes starsTwinkle {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0.4; }
}
@keyframes starsDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-40px, -20px, 0); }
}
@keyframes starsDrift2 {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(60px, 30px, 0); }
}

/* === Comets === */
.comets {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.comet {
  position: absolute;
  top: -10px;
  left: -150px;
  width: 150px;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(196, 181, 253, 0.4) 30%,
    rgba(255, 255, 255, 0.95) 80%,
    #ffffff 100%);
  border-radius: 999px;
  filter: drop-shadow(0 0 6px rgba(196, 181, 253, 0.9)) drop-shadow(0 0 12px rgba(168, 85, 247, 0.6));
  opacity: 0;
  transform-origin: right center;
}
.comet::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px #fff, 0 0 16px #c4b5fd, 0 0 24px #a855f7;
}

.comet-1 {
  top: 10%;
  animation: cometFly 8s linear infinite;
  animation-delay: 0s;
}
.comet-2 {
  top: 25%;
  animation: cometFly 11s linear infinite;
  animation-delay: 3s;
  width: 120px;
}
.comet-3 {
  top: 45%;
  animation: cometFly 9s linear infinite;
  animation-delay: 6s;
  width: 180px;
}
.comet-4 {
  top: 65%;
  animation: cometFly 13s linear infinite;
  animation-delay: 9s;
  width: 100px;
}
.comet-5 {
  top: 80%;
  animation: cometFly 10s linear infinite;
  animation-delay: 12s;
  width: 160px;
}

@keyframes cometFly {
  0% {
    transform: translate3d(0, 0, 0) rotate(15deg);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translate3d(calc(100vw + 300px), 60vh, 0) rotate(15deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stars, .comet, .orb { animation: none !important; }
}

/* === Glass utility === */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.glass-strong {
  background: rgba(35, 18, 65, 0.65);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* === Navbar === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 24px;
  background: rgba(10, 4, 24, 0.7);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.logo:hover { color: var(--text); }
.logo-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: transparent;
  color: white;
  filter: drop-shadow(0 8px 18px var(--accent-glow)) drop-shadow(0 0 6px rgba(245, 158, 11, 0.25));
  transition: transform var(--t), filter var(--t);
}
.logo-icon.small {
  width: 34px; height: 34px;
  filter: drop-shadow(0 4px 10px var(--accent-glow));
}
.logo-icon svg { width: 100%; height: 100%; display: block; }
.logo:hover .logo-icon {
  transform: rotate(-6deg) scale(1.06);
  filter: drop-shadow(0 10px 22px var(--accent-glow)) drop-shadow(0 0 10px rgba(245, 158, 11, 0.45));
}

.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-title { font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.logo-sub { font-size: 11px; color: var(--text-muted); letter-spacing: 0.15em; text-transform: uppercase; margin-top: 2px; }

.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav-link {
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: 10px;
  transition: all var(--t);
  position: relative;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(168, 85, 247, 0.1);
}
.nav-link.active {
  color: var(--text);
  background: rgba(168, 85, 247, 0.18);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: white;
  box-shadow: 0 8px 24px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(168, 85, 247, 0.16);
  border-color: var(--border-strong);
}

.btn-danger {
  background: linear-gradient(135deg, #b91c1c, #ef4444);
  color: white;
  box-shadow: 0 8px 24px -8px rgba(239, 68, 68, 0.45);
}
.btn-danger:hover { transform: translateY(-2px); }

.btn-success {
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
}

.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

/* === Form elements === */
.field { margin-bottom: 18px; }
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.field-label .req { color: var(--danger); margin-left: 4px; }

.input, .textarea, .select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 5, 30, 0.55);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: all var(--t);
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  background: rgba(20, 8, 38, 0.7);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15);
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.textarea { min-height: 110px; resize: vertical; font-family: inherit; }

/* === Main layout === */
main#app {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px 64px;
  animation: fadeUp 0.5s ease-out;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Hero === */
.hero {
  text-align: center;
  padding: 56px 24px 48px;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-bright);
  margin-bottom: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--accent-bright);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-bright);
  animation: pulse 2s ease-in-out infinite;
}
.hero-badge.online {
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.1);
}
.hero-badge.online::before {
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
}
.hero-badge.offline {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.1);
}
.hero-badge.offline::before {
  background: #ef4444;
  box-shadow: 0 0 12px #ef4444;
  animation: none;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #c084fc 50%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 28px;
}
.hero-online {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding: 13px 26px;
  background: rgba(15, 5, 30, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 30px -10px var(--accent-glow);
  transition: all var(--t);
}
.hero-online.is-online {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.45);
}
.hero-online.is-offline {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 10px 30px -10px rgba(239, 68, 68, 0.4);
}
.hero-online-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success), 0 0 24px var(--success);
  animation: pulse 2s ease-in-out infinite;
}
.hero-online.is-offline .hero-online-dot {
  background: var(--danger);
  box-shadow: 0 0 12px var(--danger);
  animation: none;
}
.hero-online-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
}
.hero-online-value {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 22px;
  background: linear-gradient(135deg, #ffffff, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}
.hero-online-divider {
  font-size: 18px;
  -webkit-text-fill-color: rgba(196, 181, 253, 0.5);
  color: rgba(196, 181, 253, 0.5);
  font-weight: 500;
  margin: 0 2px;
}
.hero-online.is-offline .hero-online-value {
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* === Section categories === */
.category-block { margin-bottom: 36px; }
.category-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  padding-left: 4px;
}
.category-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent-deep));
  border-radius: 2px;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

/* === Game mode cards === */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
  align-items: stretch;
}
.mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  background: var(--bg-card);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--t);
  isolation: isolate;
}
.mode-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mode-color), transparent);
  opacity: 0.8;
}
.mode-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--mode-color) 14%, transparent) 0%, transparent 55%);
  opacity: 0.6;
  pointer-events: none;
  transition: opacity var(--t);
  z-index: -1;
}
.mode-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--mode-color) 45%, transparent);
  box-shadow: 0 24px 50px -20px color-mix(in srgb, var(--mode-color) 50%, transparent);
}
.mode-card:hover::after { opacity: 1; }

.mode-glow {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, var(--mode-color), transparent 70%);
  opacity: 0.22;
  filter: blur(24px);
  z-index: -1;
  pointer-events: none;
  transition: opacity var(--t), transform var(--t);
}
.mode-card:hover .mode-glow {
  opacity: 0.45;
  transform: scale(1.15);
}

.mode-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--mode-color) 85%, #000),
    color-mix(in srgb, var(--mode-color) 100%, transparent));
  color: white;
  box-shadow:
    0 8px 18px -8px color-mix(in srgb, var(--mode-color) 70%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  flex-shrink: 0;
}
.mode-icon svg { width: 20px; height: 20px; }

.mode-header {
  display: flex;
  align-items: center;
  gap: 10px;
  row-gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.mode-name {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: white;
  flex-shrink: 0;
  margin-right: 2px;
}
.mode-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: color-mix(in srgb, var(--mode-color) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--mode-color) 50%, transparent);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mode-color);
  flex-shrink: 0;
  white-space: nowrap;
}
.mode-desc {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}

.mode-card {
  cursor: pointer;
  user-select: none;
}
.mode-card:focus-visible {
  outline: 2px solid var(--mode-color);
  outline-offset: 3px;
}
.mode-card:active {
  transform: translateY(-2px) scale(0.995);
}

.mode-copy-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  background: color-mix(in srgb, var(--mode-color) 12%, rgba(15, 5, 30, 0.4));
  border: 1px solid color-mix(in srgb, var(--mode-color) 35%, transparent);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  color: var(--mode-color);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--t), transform var(--t);
  pointer-events: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.mode-copy-hint svg { width: 11px; height: 11px; }
.mode-card:hover .mode-copy-hint {
  opacity: 1;
  transform: translateX(0);
}

.mode-discord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 14px;
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.4);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #a0aaff;
  text-decoration: none;
  transition: all var(--t);
}
.mode-discord svg { width: 14px; height: 14px; }
.mode-discord:hover {
  background: rgba(88, 101, 242, 0.28);
  border-color: rgba(88, 101, 242, 0.65);
  color: #c7cdff;
  transform: translateX(3px);
}

.mode-card.mode-copied {
  animation: modeCopied 0.8s ease-out;
}
.mode-card.mode-copied .mode-copy-hint {
  background: color-mix(in srgb, var(--success) 25%, rgba(15, 5, 30, 0.4));
  border-color: var(--success);
  color: #6ee7b7;
  opacity: 1;
  transform: translateX(0);
}
@keyframes modeCopied {
  0% { box-shadow: 0 24px 50px -20px color-mix(in srgb, var(--mode-color) 50%, transparent); }
  40% { box-shadow: 0 0 0 3px var(--success), 0 24px 50px -20px rgba(16, 185, 129, 0.6); }
  100% { box-shadow: 0 24px 50px -20px color-mix(in srgb, var(--mode-color) 50%, transparent); }
}

@media (max-width: 600px) {
  .mode-card { padding: 20px; gap: 14px; }
  .mode-icon { width: 48px; height: 48px; min-width: 48px; }
  .mode-icon svg { width: 24px; height: 24px; }
  .mode-name { font-size: 17px; }
  .mode-copy-hint { opacity: 1; transform: none; }
}

/* === Rules page === */
.rules-header {
  padding: 32px 36px;
  margin-bottom: 18px;
}
.rules-header h1 {
  font-family: 'Manrope', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #ffffff, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rules-tabs {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.rules-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(15, 5, 30, 0.5);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: all var(--t);
  color: var(--text-dim);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}
.rules-tab svg { width: 18px; height: 18px; }
.rules-tab::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--tab-color, var(--accent));
  opacity: 0;
  transition: opacity var(--t);
}
.rules-tab:hover {
  border-color: color-mix(in srgb, var(--tab-color, var(--accent)) 50%, transparent);
  color: var(--text);
  background: color-mix(in srgb, var(--tab-color, var(--accent)) 8%, rgba(15, 5, 30, 0.5));
}
.rules-tab.active {
  background: color-mix(in srgb, var(--tab-color, var(--accent)) 14%, rgba(15, 5, 30, 0.5));
  border-color: var(--tab-color, var(--accent));
  color: white;
  box-shadow: 0 8px 24px -10px var(--tab-color, var(--accent));
}
.rules-tab.active::before { opacity: 1; }
.rules-tab.active svg { color: var(--tab-color, var(--accent)); }
.rules-tab-short {
  display: inline-block;
  padding: 2px 8px;
  background: color-mix(in srgb, var(--tab-color, var(--accent)) 25%, transparent);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--tab-color, var(--accent));
}

.rules-body {
  padding: 36px 40px;
  font-size: 14px;
  line-height: 1.65;
}
.rules-section { margin-bottom: 36px; }
.rules-section:last-child { margin-bottom: 0; }
.rules-section-title {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #fff 0%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rule-item {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: rgba(15, 5, 30, 0.32);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all var(--t);
}
.rule-item:hover {
  background: rgba(15, 5, 30, 0.5);
  border-color: var(--border-strong);
}
.rule-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 26px;
  padding: 0 10px;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: white;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px -6px var(--accent-glow);
}
.rule-content {
  flex: 1;
  min-width: 0;
}
.rule-text {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.6;
}
.rule-text-cont {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(168, 85, 247, 0.15);
}
.rule-pun {
  display: inline-block;
  margin: 0 2px;
  padding: 1px 9px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: #fca5a5;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.rule-list {
  margin-top: 8px;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rule-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-dim);
}
.rule-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}
.rule-note {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin: 12px 0;
  padding: 10px 14px;
  background: rgba(168, 85, 247, 0.06);
  border-left: 2px solid var(--accent);
  border-radius: 0 8px 8px 0;
}
.rules-body a {
  color: var(--accent-bright);
  border-bottom: 1px dashed transparent;
  transition: border-color var(--t);
}
.rules-body a:hover { border-bottom-color: var(--accent-bright); }

@media (max-width: 768px) {
  .rules-header { padding: 24px 22px; }
  .rules-body { padding: 24px 20px; }
  .rules-section-title { font-size: 18px; }
  .rule-item { padding: 12px; gap: 10px; }
  .rule-num { min-width: 38px; height: 22px; font-size: 11px; }
  .rule-text { font-size: 13px; }
}

/* === Chats list === */
.chats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}
.chat-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  background: var(--bg-card);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.chat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent-deep));
  opacity: 0;
  transition: opacity var(--t);
}
.chat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  box-shadow: 0 18px 40px -18px var(--accent-glow);
}
.chat-card:hover::before { opacity: 1; }
.chat-card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 8px 22px -8px rgba(168, 85, 247, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.chat-card-icon svg { width: 26px; height: 26px; }
.chat-card-body { flex: 1; min-width: 0; }
.chat-card-name {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.chat-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.chat-card-last {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-card-last strong { color: var(--accent-bright); margin-right: 4px; }
.chat-card-meta {
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  flex-shrink: 0;
}
.chat-card-meta strong {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  color: var(--accent-bright);
  font-weight: 800;
}

/* === Chat room === */
.chat-room {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 240px);
  min-height: 520px;
  padding: 0;
  overflow: hidden;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 5, 30, 0.35);
  flex-shrink: 0;
}
.chat-header-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: white;
  flex-shrink: 0;
}
.chat-header-icon svg { width: 22px; height: 22px; }
.chat-header h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 2px;
}
.chat-header p { font-size: 12px; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}
.chat-empty {
  margin: auto;
  text-align: center;
  color: var(--text-muted);
}
.chat-empty svg { width: 56px; height: 56px; opacity: 0.3; margin-bottom: 12px; }

.chat-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: chatMsgIn 0.25s ease-out;
}
@keyframes chatMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg-me { flex-direction: row-reverse; }

.chat-msg-avatar {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-bright));
  display: grid; place-items: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.chat-msg-bubble {
  max-width: 78%;
  padding: 10px 14px;
  background: rgba(40, 20, 75, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 14px;
  border-top-left-radius: 4px;
  position: relative;
}
.chat-msg-me .chat-msg-bubble {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(168, 85, 247, 0.3));
  border-color: rgba(168, 85, 247, 0.45);
  border-top-left-radius: 14px;
  border-top-right-radius: 4px;
}

.chat-msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 11px;
  flex-wrap: wrap;
}
.chat-msg-name {
  font-weight: 700;
  font-size: 12px;
}
.chat-msg-badge {
  padding: 1px 7px;
  border-radius: 100px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.chat-msg-time {
  color: var(--text-muted);
  font-size: 10px;
  margin-left: auto;
}
.chat-msg-del {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 2px;
  border-radius: 4px;
  opacity: 0;
  transition: all var(--t);
}
.chat-msg-del svg { width: 12px; height: 12px; }
.chat-msg:hover .chat-msg-del { opacity: 1; }
.chat-msg-del:hover { color: var(--danger); background: rgba(239, 68, 68, 0.1); }

.chat-msg-text {
  font-size: 14px;
  color: var(--text);
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.5;
}

.chat-form {
  display: flex;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: rgba(15, 5, 30, 0.4);
  flex-shrink: 0;
}
.chat-form .input { flex: 1; }

@media (max-width: 768px) {
  .chat-room { height: calc(100vh - 200px); }
  .chat-msg-bubble { max-width: 85%; }
  .chats-grid { grid-template-columns: 1fr; }
}

.section-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.section-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), transparent);
  opacity: 0;
  transition: opacity var(--t);
}
.section-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 50px -20px var(--accent-glow);
}
.section-card:hover::before { opacity: 1; }

.section-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: white;
  box-shadow: 0 10px 24px -10px var(--accent-glow);
  flex-shrink: 0;
}
.section-icon svg { width: 24px; height: 24px; }

.section-info { flex: 1; min-width: 0; }
.section-title-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.section-desc {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.section-meta {
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.section-meta strong { display: block; color: var(--accent-bright); font-size: 16px; font-weight: 700; }

/* === Topics list === */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 24px 28px;
  flex-wrap: wrap;
}
.section-header-info { flex: 1; min-width: 200px; }
.section-header h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.section-header p { color: var(--text-dim); font-size: 14px; }

.topics-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.topic-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: all var(--t);
}
.topic-row:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateX(4px);
}
.topic-avatar {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-bright));
  display: grid; place-items: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.topic-main { flex: 1; min-width: 0; }
.topic-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.topic-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.topic-meta a { color: var(--text-dim); }
.topic-meta a:hover { color: var(--accent-bright); }

.topic-stats {
  display: flex;
  gap: 18px;
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.topic-stats-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.topic-stats-item strong {
  color: var(--accent-bright);
  font-size: 16px;
  font-weight: 700;
}

/* === Status badges === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-open { background: rgba(6, 182, 212, 0.15); color: #06b6d4; border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-in_review { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-accepted, .badge-fixed { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-rejected, .badge-duplicate { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-pinned { background: rgba(168, 85, 247, 0.18); color: var(--accent-bright); border: 1px solid var(--border-strong); }
.badge-closed { background: rgba(100, 100, 100, 0.2); color: var(--text-muted); border: 1px solid rgba(100,100,100,0.3); }

/* === Topic page === */
.topic-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.post {
  display: flex;
  gap: 18px;
  padding: 24px 28px;
  background: var(--bg-card);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.post-author {
  width: 160px;
  flex-shrink: 0;
  text-align: center;
  padding-right: 18px;
  border-right: 1px solid var(--border);
}
.post-avatar {
  width: 72px; height: 72px;
  border-radius: 16px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-bright));
  display: grid; place-items: center;
  color: white;
  font-size: 28px;
  font-weight: 800;
}
.post-author-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.post-author-name a { color: var(--text); }
.post-author-role {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}
.post-author-stats {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.7;
}

.post-body { flex: 1; min-width: 0; }
.post-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.post-title-area h1 {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.post-date { font-size: 12px; color: var(--text-muted); }
.post-content {
  font-size: 14px;
  color: var(--text-dim);
  white-space: pre-wrap;
  word-wrap: break-word;
}
.post-content p { margin-bottom: 10px; }

.form-data-block {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.form-data-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding: 10px 14px;
  background: rgba(15, 5, 30, 0.45);
  border-radius: 10px;
  font-size: 13px;
  gap: 12px;
}
.form-data-label { color: var(--text-muted); font-weight: 600; }
.form-data-value { color: var(--text); white-space: pre-wrap; word-break: break-word; }

.post-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.post.official {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.05);
}
.post.official .post-body::before {
  content: '◆ Официальный ответ';
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* === Auth pages === */
.auth-wrapper {
  display: grid;
  place-items: center;
  min-height: 70vh;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 40px;
  animation: scaleIn 0.5s ease-out;
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.auth-card h1 {
  font-family: 'Manrope', sans-serif;
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.auth-card p { text-align: center; color: var(--text-muted); margin-bottom: 28px; font-size: 14px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-muted); }

/* === Personal cabinet === */
.cabinet-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) { .cabinet-grid { grid-template-columns: 1fr; } }

.cabinet-sidebar {
  padding: 24px;
  position: sticky;
  top: 90px;
}
.cabinet-profile {
  text-align: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.cabinet-avatar {
  width: 96px; height: 96px;
  border-radius: 22px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-bright));
  display: grid; place-items: center;
  color: white;
  font-size: 38px;
  font-weight: 800;
  box-shadow: 0 14px 32px -10px var(--accent-glow);
}
.cabinet-username { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.cabinet-role {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cabinet-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cabinet-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 11px;
  font-size: 14px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--t);
  text-align: left;
  width: 100%;
}
.cabinet-menu-item svg { width: 18px; height: 18px; }
.cabinet-menu-item:hover { background: rgba(168, 85, 247, 0.12); color: var(--text); }
.cabinet-menu-item.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(124, 58, 237, 0.15));
  color: white;
  border-left: 2px solid var(--accent);
}

.cabinet-content { padding: 32px; }
.cabinet-content h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
}

/* === Admin panel === */
.admin-tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: rgba(15, 5, 30, 0.45);
  border-radius: 14px;
  margin-bottom: 24px;
  overflow-x: auto;
}
.admin-tab {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
}
.admin-tab:hover { color: var(--text); }
.admin-tab.active {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: white;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th {
  text-align: left;
  padding: 14px 16px;
  background: rgba(15, 5, 30, 0.6);
  font-weight: 700;
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(168, 85, 247, 0.05); color: var(--text); }

.role-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.permissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.perm-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(15, 5, 30, 0.4);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  transition: all var(--t);
}
.perm-checkbox:hover { background: rgba(168, 85, 247, 0.08); border-color: var(--border-strong); }
.perm-checkbox input { accent-color: var(--accent); width: 16px; height: 16px; }
.perm-checkbox.checked { background: rgba(168, 85, 247, 0.12); border-color: var(--accent); }

/* === Modal === */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 12, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  z-index: 200;
  animation: fadeIn 0.2s ease-out;
  padding: 24px;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  animation: scaleIn 0.25s ease-out;
}
.modal h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(168, 85, 247, 0.1);
  color: var(--text-dim);
  transition: all var(--t);
}
.modal-close:hover { background: rgba(168, 85, 247, 0.2); color: var(--text); }
.modal-large { max-width: 720px; }

/* === Toast === */
#toast-container {
  position: fixed;
  top: 84px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  padding: 14px 20px;
  border-radius: 12px;
  background: rgba(35, 18, 65, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow);
  pointer-events: auto;
  animation: toastSlide 0.3s ease-out;
  max-width: 360px;
}
.toast.error { border-color: rgba(239, 68, 68, 0.5); }
.toast.success { border-color: rgba(16, 185, 129, 0.5); }
@keyframes toastSlide {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* === Loader === */
.loader-screen {
  display: grid;
  place-items: center;
  min-height: 50vh;
  gap: 18px;
}
.loader-pulse {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-bright));
  animation: loaderPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 60px var(--accent-glow);
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
}
.loader-text { font-size: 14px; color: var(--text-muted); }

/* === Empty state === */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state svg {
  width: 64px; height: 64px;
  opacity: 0.3;
  margin-bottom: 16px;
}
.empty-state h3 {
  color: var(--text-dim);
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 700;
}

/* === Footer === */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(10, 4, 24, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-top: auto;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-links { display: flex; gap: 22px; }

/* === Profile dropdown === */
.profile-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--t);
}
.profile-trigger:hover { background: rgba(168, 85, 247, 0.18); border-color: var(--border-strong); }
.profile-trigger-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-bright));
  display: grid; place-items: center;
  color: white;
  font-weight: 700;
  font-size: 13px;
}
.profile-trigger-name { font-size: 13px; font-weight: 600; }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  padding: 8px;
  z-index: 150;
  animation: scaleIn 0.15s ease-out;
  transform-origin: top right;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--t);
  width: 100%;
  text-align: left;
}
.dropdown-item:hover { background: rgba(168, 85, 247, 0.12); color: var(--text); }
.dropdown-item svg { width: 16px; height: 16px; }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* === Misc === */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.mt-2 { margin-top: 12px; }
.mb-2 { margin-bottom: 12px; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-2 { gap: 12px; }
.gap-3 { gap: 18px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.relative { position: relative; }

.alert {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 16px;
  border: 1px solid;
}
.alert-error { background: rgba(239, 68, 68, 0.1); color: #fca5a5; border-color: rgba(239, 68, 68, 0.3); }
.alert-info { background: rgba(6, 182, 212, 0.1); color: #67e8f9; border-color: rgba(6, 182, 212, 0.3); }

/* === Custom dropdown (replaces native <select>) === */
.cdd {
  position: relative;
  width: 100%;
}
.cdd-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 5, 30, 0.55);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t);
  text-align: left;
}
.cdd-trigger:hover {
  border-color: var(--border-strong);
  background: rgba(20, 8, 38, 0.7);
}
.cdd.cdd-open .cdd-trigger {
  border-color: var(--accent);
  background: rgba(25, 12, 48, 0.8);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15);
}
.cdd-value {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.cdd-value .cdd-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cdd-placeholder {
  color: var(--text-muted);
}
.cdd-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cdd-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--accent-bright);
  flex-shrink: 0;
}
.cdd-icon svg { width: 16px; height: 16px; }

.cdd-arrow {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform var(--t), color var(--t);
  flex-shrink: 0;
  margin-left: 10px;
}
.cdd.cdd-open .cdd-arrow {
  transform: rotate(180deg);
  color: var(--accent-bright);
}

.cdd-panel {
  /* Positioned dynamically via JS (position: fixed + top/left/width) */
  position: fixed;
  max-height: 300px;
  overflow-y: auto;
  padding: 6px;
  background: rgba(25, 10, 50, 0.96);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow:
    0 24px 60px -18px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(192, 132, 252, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  z-index: 1000;
  animation: cddDrop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cdd.cdd-up .cdd-panel {
  animation: cddDropUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cddDrop {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cddDropUp {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.cdd-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 13px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  position: relative;
}
.cdd-option .cdd-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cdd-option:hover {
  background: rgba(168, 85, 247, 0.15);
  color: var(--text);
  border-color: rgba(168, 85, 247, 0.25);
}
.cdd-option.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.28), rgba(124, 58, 237, 0.18));
  color: white;
  border-color: rgba(168, 85, 247, 0.45);
}
.cdd-option.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent-deep));
  border-radius: 0 2px 2px 0;
}
.cdd-check {
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: var(--accent-bright);
  opacity: 0;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}
.cdd-option.active .cdd-check { opacity: 1; }

/* Scrollbar for long option lists */
.cdd-panel::-webkit-scrollbar { width: 6px; }
.cdd-panel::-webkit-scrollbar-track { background: transparent; }
.cdd-panel::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.35);
  border-radius: 3px;
}
.cdd-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.55);
}

/* === Join server instructions modal === */
.join-ip-box {
  background: linear-gradient(135deg, rgba(15, 5, 30, 0.6), rgba(30, 10, 50, 0.5));
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.join-ip-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
  opacity: 0.7;
}
.join-ip-label {
  font-size: 11px;
  color: #6ee7b7;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  font-weight: 800;
}
.join-ip-value {
  font-family: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #c084fc 60%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
  word-break: break-all;
  user-select: all;
}
.join-steps-title {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 6px 0 14px;
}
.join-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.join-steps li {
  position: relative;
  padding: 13px 16px 13px 50px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid var(--border);
  border-radius: 11px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
  counter-increment: step;
  transition: all var(--t);
}
.join-steps li:hover {
  background: rgba(168, 85, 247, 0.14);
  border-color: var(--border-strong);
  transform: translateX(2px);
}
.join-steps li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 11px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-bright));
  color: white;
  display: grid;
  place-items: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 4px 12px -4px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.join-steps li strong { color: var(--text); font-weight: 700; }
.join-steps li em { color: var(--accent-bright); font-style: normal; font-weight: 600; }
.join-steps li code {
  background: rgba(168, 85, 247, 0.22);
  border: 1px solid rgba(168, 85, 247, 0.4);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--accent-bright);
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-weight: 600;
}

/* === hCaptcha widget — purple translucent theme === */
.captcha-field {
  display: flex;
  justify-content: center;
  margin: 8px 0 18px;
}
.h-captcha {
  position: relative;
  padding: 3px;
  border-radius: 12px;
  /* Translucent purple gradient frame */
  background: linear-gradient(135deg,
    rgba(168, 85, 247, 0.45),
    rgba(124, 58, 237, 0.3),
    rgba(192, 132, 252, 0.45));
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow:
    0 14px 38px -12px rgba(168, 85, 247, 0.55),
    inset 0 0 0 1px rgba(192, 132, 252, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: box-shadow var(--t), transform var(--t);
  animation: captchaIn 0.4s ease-out;
}
.h-captcha:hover {
  box-shadow:
    0 20px 48px -10px rgba(168, 85, 247, 0.7),
    inset 0 0 0 1px rgba(192, 132, 252, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
/* Purple-tint the iframe via sepia + hue-rotate chain.
   Light-theme hCaptcha has a white bg → sepia turns it warm →
   hue-rotate(235deg) swings warm into purple.
   Slight opacity lets the wrapper gradient bleed through for a "glass" look. */
.h-captcha > iframe,
.h-captcha iframe[data-hcaptcha-widget-id] {
  border-radius: 9px !important;
  display: block;
  filter: sepia(1) hue-rotate(235deg) saturate(1.55) brightness(0.95) contrast(1.05);
  opacity: 0.92;
}
@keyframes captchaIn {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
/* Mobile: scale down slightly to fit narrow screens */
@media (max-width: 420px) {
  .h-captcha {
    transform: scale(0.92);
    transform-origin: center;
  }
  .h-captcha:hover {
    transform: scale(0.92) translateY(-1px);
  }
}

/* === Form info / notes blocks === */
.form-info-block {
  padding: 16px 20px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(124, 58, 237, 0.05));
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}
.form-info-block p {
  margin: 0 0 6px;
}
.form-info-block p:last-child { margin-bottom: 0; }
.form-info-block .notes-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.form-info-block .notes-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 4px;
  color: var(--text-dim);
}
.form-info-block .notes-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  width: 8px;
  height: 1px;
  background: var(--accent-bright);
}

.form-notes-block {
  padding: 14px 18px 16px;
  margin: 18px 0;
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #fed7aa;
}
.form-notes-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.form-notes-title svg { width: 14px; height: 14px; color: #fbbf24; }
.form-notes-block p {
  margin: 0 0 6px;
  color: #fed7aa;
}
.form-notes-block p:last-child { margin-bottom: 0; }
.form-notes-block .notes-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.form-notes-block .notes-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 4px;
  color: #fed7aa;
}
.form-notes-block .notes-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  width: 8px;
  height: 1px;
  background: #fbbf24;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a:hover { color: var(--accent-bright); }

@media (max-width: 768px) {
  .navbar { padding: 12px 16px; }
  .navbar-inner { gap: 16px; }
  .nav-links { display: none; }
  main#app { padding: 20px 16px 48px; }
  .post { flex-direction: column; }
  .post-author { width: 100%; border-right: none; padding-right: 0; padding-bottom: 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 14px; text-align: left; }
  .post-avatar { margin: 0; width: 56px; height: 56px; font-size: 22px; }
  .form-data-row { grid-template-columns: 1fr; gap: 4px; }
  .auth-card { padding: 28px 22px; }
}
