/* =========================================================
   VANISH FORUM — 2026 UI refresh
   Scoped to body.theme-v3. Overrides the legacy XenForo base.
   ========================================================= */

.theme-v3 {
  --bg: #07070b;
  --bg-soft: #090a0f;
  --surface: #0f1015;
  --surface-2: #14161d;
  --surface-3: #1a1c25;
  --surface-4: #202330;
  --line: rgba(255, 255, 255, 0.075);
  --line-soft: rgba(255, 255, 255, 0.045);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f5f9;
  --text-2: #c8cbd7;
  --muted: #989caa;
  --muted-2: #6f7382;
  --muted-3: #565a68;
  --accent: #6d83ff;
  --accent-2: #a06bff;
  --accent-light: #c0caff;
  --accent-soft: rgba(109, 131, 255, 0.12);
  --accent-line: rgba(109, 131, 255, 0.32);
  --pink: #ff5fbd;
  --green: #49dba4;
  --radius-card: 18px;
  --radius-hero: 24px;
  --grad: linear-gradient(135deg, #6d83ff 0%, #8a72ff 48%, #a06bff 100%);
  --grad-soft: linear-gradient(135deg, rgba(109, 131, 255, 0.16), rgba(160, 107, 255, 0.08));
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

.theme-v3,
.theme-v3 button,
.theme-v3 input,
.theme-v3 textarea,
.theme-v3 select {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.theme-v3 .bg-ambient {
  background:
    radial-gradient(900px 500px at 24% -10%, rgba(109, 131, 255, 0.17), transparent 65%),
    radial-gradient(700px 460px at 96% 2%, rgba(160, 107, 255, 0.11), transparent 66%),
    radial-gradient(800px 500px at 60% 105%, rgba(56, 209, 173, 0.035), transparent 70%),
    #07070b;
}

.theme-v3 .bg-ambient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/pattern/icons-pattern-v5.webp') center top / 2240px auto repeat;
  opacity: 0.78;
  pointer-events: none;
}

.theme-v3 .bg-ambient::after {
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.26;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 55%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 55%);
}

.theme-v3 .noise {
  opacity: 0.018;
}

.theme-v3 ::selection {
  background: rgba(109, 131, 255, 0.35);
}

.theme-v3 ::-webkit-scrollbar-track {
  background: #08080c;
}

.theme-v3 ::-webkit-scrollbar-thumb {
  background: #272a36;
  border-color: #08080c;
}

.theme-v3 .app-main {
  padding-bottom: 0;
}

.theme-v3 .page {
  padding-top: 26px;
}

.theme-v3 .container {
  width: min(1280px, calc(100% - 48px));
}

.theme-v3 a {
  color: inherit;
}

.theme-v3 h1,
.theme-v3 h2,
.theme-v3 h3,
.theme-v3 h4 {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  letter-spacing: -0.025em;
}

/* ---------------- Header ---------------- */

.theme-v3 .topbar {
  position: sticky;
  top: 0;
  z-index: 300;
  height: auto;
  padding: 14px 24px 0;
  border: 0;
  background: linear-gradient(to bottom, rgba(7, 7, 11, 0.9) 0%, rgba(7, 7, 11, 0.45) 70%, transparent 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.theme-v3 .topbar-inner {
  height: 66px;
  padding: 0 10px 0 18px;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(14, 15, 21, 0.86);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    0 24px 60px -38px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.theme-v3 .brand img {
  width: 106px;
  opacity: 0.98;
}

.theme-v3 .brand-suffix {
  display: none;
}

.theme-v3 .topbar-nav {
  align-self: center;
  height: auto;
  margin-left: 6px;
  gap: 2px;
}

.theme-v3 .topbar-nav a {
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  color: #9fa2b0;
  font-size: 13px;
  font-weight: 450;
  letter-spacing: -0.005em;
  text-transform: none;
}

.theme-v3 .topbar-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
}

.theme-v3 .topbar-nav a.active {
  color: #fff;
  background: rgba(109, 131, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(109, 131, 255, 0.08);
}

.theme-v3 .topbar-nav a.active::after {
  display: none;
}

.theme-v3 .topbar-right {
  gap: 4px;
}

.theme-v3 .header-create {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 13px;
  margin-right: 2px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  box-shadow: 0 12px 26px -16px rgba(109, 131, 255, 0.9);
  transition: filter 0.18s, box-shadow 0.18s;
}

.theme-v3 .header-create:hover {
  filter: brightness(1.08);
  box-shadow: 0 14px 30px -14px rgba(109, 131, 255, 0.9);
}

.theme-v3 .header-create .icon {
  width: 13px;
  height: 13px;
}

.theme-v3 .search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-width: 172px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.028);
  color: #858999;
  font-size: 12px;
}

.theme-v3 .search-trigger:hover {
  color: #d6d8e2;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

.theme-v3 .search-trigger .icon {
  width: 14px;
  height: 14px;
}

.theme-v3 .search-trigger .kbd {
  margin-left: auto;
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: #707484;
  font-size: 8.5px;
}

.theme-v3 .topbar-right .icon-btn {
  width: 37px;
  height: 37px;
  border: 0;
  border-radius: 10px;
  color: #9b9eac;
}

.theme-v3 .topbar-right .icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.theme-v3 .bell-badge {
  position: absolute;
  top: 4px;
  right: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border: 2px solid #0e0f15;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 7px;
  font-weight: 700;
  line-height: 1;
}

.theme-v3 .topbar-sep {
  height: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.theme-v3 .topbar-auth-btn {
  height: 38px;
  padding: 0 10px;
  border-radius: 9px;
  color: #a2a5b3;
  font-size: 12px;
}

.theme-v3 .topbar-auth-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
}

.theme-v3 .topbar-auth-btn.accent-btn {
  height: 38px;
  margin-left: 2px;
  padding: 0 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-v3 .topbar-auth-btn.accent-btn:hover {
  background: rgba(255, 255, 255, 0.09);
}

.theme-v3 .user-chip {
  height: 40px;
  padding: 0 9px 0 5px;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
}

.theme-v3 .user-chip-name {
  font-size: 12px;
  color: #d8d9e2;
}

.theme-v3 .popover {
  padding: 6px;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #12141b;
  box-shadow: 0 30px 80px -25px rgba(0, 0, 0, 0.95);
}

.theme-v3 .popover-item {
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 12px;
}

.theme-v3 .popover-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.theme-v3 .popover-item .icon {
  color: #7f8393;
}

.theme-v3 .user-popover-head {
  border-radius: 9px;
}

/* ---------------- Typography & page headers ---------------- */

.theme-v3 .page-title-row {
  align-items: flex-end;
  padding: 6px 0 0;
  margin-bottom: 20px;
}

.theme-v3 .page-title {
  font-family: 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.06;
  color: #f5f6fa;
}

.theme-v3 .page-sub {
  margin-top: 8px;
  max-width: 650px;
  color: #969aa8;
  font-size: 13px;
  line-height: 1.6;
}

.theme-v3 .page-title-actions {
  gap: 8px;
  padding-bottom: 3px;
}

.theme-v3 .online-pill {
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: #aaaebb;
  font-size: 11px;
}

.theme-v3 .online-pill b {
  color: #eeeef4;
  font-weight: 550;
}

.theme-v3 .avatar-stack .avatar {
  width: 21px;
  height: 21px;
  margin-left: -6px;
  border: 2px solid #0c0d12;
}

.theme-v3 .avatar-stack-more {
  height: 21px;
  border: 2px solid #0c0d12;
  background: #1d202a;
  color: #989baa;
}

.theme-v3 .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8494ff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.theme-v3 .section-kicker::before {
  content: '';
  width: 12px;
  height: 1px;
  background: #7d8cff;
  opacity: 0.7;
}

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

.theme-v3 .section-heading h2 {
  margin-top: 4px;
  color: #f0f1f6;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.theme-v3 .section-count {
  color: #707483;
  font-size: 10.5px;
}

.theme-v3 .section-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8997d8;
  font-size: 11px;
  transition: color 0.18s;
}

.theme-v3 .section-link:hover {
  color: #fff;
}

.theme-v3 .section-link .icon {
  width: 11px;
  height: 11px;
}

.theme-v3 .pill-new {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 95, 189, 0.14);
  border: 1px solid rgba(255, 95, 189, 0.25);
  color: #ff9bd3;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* ---------------- Buttons, tags, avatars ---------------- */

.theme-v3 .btn {
  height: 40px;
  padding: 0 18px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 500;
  gap: 7px;
}

.theme-v3 .btn .icon {
  width: 15px;
  height: 15px;
}

.theme-v3 .btn-primary {
  border: 0;
  background: var(--grad);
  color: #fff;
  box-shadow:
    0 14px 32px -18px rgba(109, 131, 255, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.theme-v3 .btn-primary:hover {
  background: linear-gradient(135deg, #7b90ff 0%, #977cff 48%, #b27aff 100%);
  box-shadow:
    0 18px 38px -16px rgba(109, 131, 255, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.theme-v3 .btn-ghost,
.theme-v3 .btn-glass {
  color: #e2e4ec;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
}

.theme-v3 .btn-ghost:hover,
.theme-v3 .btn-glass:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}

.theme-v3 .btn-soft {
  color: #b9bdc9;
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.07);
}

.theme-v3 .btn-soft:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.13);
}

.theme-v3 .btn-sm {
  height: 32px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 11px;
}

.theme-v3 .btn-pink {
  border: 0;
  background: linear-gradient(135deg, #f03f9d, #ff6cc1);
  box-shadow: 0 12px 28px -16px rgba(249, 46, 140, 0.8);
}

.theme-v3 .icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #9b9eac;
}

.theme-v3 .icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--line);
}

.theme-v3 .tag {
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: #a7aab6;
  font-size: 9.5px;
}

.theme-v3 .role-badge {
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 8.5px;
  letter-spacing: 0.02em;
}

.theme-v3 .role-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 20px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 8px;
  letter-spacing: 0.04em;
}

/* ---------------- Privilege plaques ---------------- */

.theme-v3 .privilege-plaque {
  --p1: #ff3048;
  --p2: #c9001f;
  --p3: #72000f;
  --g1: #ff65ef;
  --g2: #8f3dff;
  --plaque-text: #fff;
  --plaque-text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55), 0 0 10px rgba(255, 255, 255, 0.15);
  --gem-glow: rgba(190, 70, 255, 0.45);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: middle;
  position: relative;
  padding-bottom: 5px;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 7px rgba(0, 0, 0, 0.38));
}

.theme-v3 .privilege-plaque-body {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 1px 16px 0;
  background:
    radial-gradient(110% 150% at 18% 0%, rgba(255, 255, 255, 0.24), transparent 48%),
    radial-gradient(80% 130% at 88% 115%, rgba(0, 0, 0, 0.3), transparent 58%),
    linear-gradient(135deg, var(--p1) 0%, var(--p2) 56%, var(--p3) 100%);
  clip-path: polygon(
    0% 22%, 4% 6%, 9% 14%, 15% 2%, 22% 12%, 29% 3%, 36% 13%, 44% 2%, 51% 12%, 58% 3%, 65% 13%, 72% 2%, 79% 12%, 86% 3%, 93% 13%, 97% 5%, 100% 20%,
    100% 80%, 96% 95%, 91% 86%, 84% 98%, 77% 88%, 70% 97%, 63% 87%, 56% 98%, 49% 88%, 42% 97%, 35% 87%, 28% 98%, 21% 88%, 14% 97%, 8% 86%, 4% 96%, 0% 82%
  );
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.theme-v3 .privilege-plaque-body::before {
  content: '';
  position: absolute;
  inset: -25%;
  background:
    linear-gradient(112deg, transparent 22%, rgba(255, 255, 255, 0.16) 23%, transparent 31%),
    linear-gradient(64deg, transparent 54%, rgba(0, 0, 0, 0.22) 55%, transparent 66%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  background-size: auto, auto, 90px 90px;
  mix-blend-mode: overlay;
  opacity: 0.55;
  pointer-events: none;
}

.theme-v3 .privilege-plaque-text {
  position: relative;
  z-index: 1;
  color: var(--plaque-text);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.095em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: var(--plaque-text-shadow);
}

.theme-v3 .privilege-plaque-gem {
  width: 13px;
  height: 13px;
  margin-top: -5px;
  display: grid;
  place-items: center;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--g1), var(--g2));
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    0 0 11px var(--gem-glow),
    inset 0 0 5px rgba(255, 255, 255, 0.4);
  position: relative;
  z-index: 2;
}

.theme-v3 .privilege-plaque-gem::before {
  content: '✦';
  transform: rotate(-45deg);
  color: #fff;
  font-size: 7px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.85);
}

.theme-v3 .privilege-plaque--compact {
  padding-bottom: 3px;
}

.theme-v3 .privilege-plaque--compact .privilege-plaque-body {
  min-height: 23px;
  padding: 1px 11px 0;
}

.theme-v3 .privilege-plaque--compact .privilege-plaque-text {
  font-size: 7px;
  letter-spacing: 0.08em;
}

.theme-v3 .privilege-plaque--compact .privilege-plaque-gem {
  width: 10px;
  height: 10px;
  margin-top: -4px;
}

.theme-v3 .privilege-plaque--compact .privilege-plaque-gem::before {
  font-size: 5.5px;
}

.theme-v3 .privilege-plaque.privilege-moderator {
  --p1: #4f9bff;
  --p2: #1450c8;
  --p3: #071f5e;
  --g1: #64efff;
  --g2: #2b7dff;
  --gem-glow: rgba(65, 170, 255, 0.45);
}

.theme-v3 .privilege-plaque.privilege-veteran {
  --p1: #ffd05a;
  --p2: #d98207;
  --p3: #7a3b00;
  --g1: #fff09a;
  --g2: #ff9800;
  --gem-glow: rgba(255, 170, 40, 0.4);
  --plaque-text: #271300;
  --plaque-text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.theme-v3 .privilege-plaque.privilege-member {
  --p1: #454c63;
  --p2: #252a3a;
  --p3: #12151f;
  --g1: #c7d0ff;
  --g2: #6d83ff;
  --gem-glow: rgba(109, 131, 255, 0.3);
}

.theme-v3 .profile-name-row .privilege-plaque {
  margin-top: 3px;
}

.theme-v3 .profile-meta-cell .privilege-plaque {
  margin-top: 2px;
}

.theme-v3 .member-card-info .privilege-plaque {
  margin-top: 4px;
}

.theme-v3 .moderator-copy .privilege-plaque {
  margin-top: 4px;
}

.theme-v3 .post-role-bar .privilege-plaque {
  margin-top: 1px;
}

.theme-v3 .badge-new {
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 8px;
}

.theme-v3 .online-dot {
  width: 6px;
  height: 6px;
}

/* ---------------- Breadcrumbs / notice / flash ---------------- */

.theme-v3 .breadcrumbs {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #646877;
  font-size: 10.5px;
  gap: 7px;
}

.theme-v3 .breadcrumbs a {
  color: #8c90a0;
}

.theme-v3 .breadcrumbs a:hover {
  color: #fff;
}

.theme-v3 .breadcrumbs .current {
  color: #b6b9c5;
}

.theme-v3 .notice {
  min-height: 58px;
  margin: 16px 0 18px;
  padding: 11px 12px 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 15px;
  background:
    linear-gradient(90deg, rgba(255, 95, 189, 0.055), transparent 42%),
    rgba(15, 16, 21, 0.9);
}

.theme-v3 .notice-icon {
  width: 34px;
  height: 34px;
  border-color: rgba(255, 95, 189, 0.24);
  background: rgba(255, 95, 189, 0.06);
  color: #ff8bcb;
}

.theme-v3 .notice-text {
  color: #aeb1bd;
  font-size: 11.5px;
}

.theme-v3 .notice-text strong {
  color: #eef0f6;
  font-weight: 550;
}

.theme-v3 .notice-btn {
  height: 33px;
  padding: 0 13px;
  border-radius: 9px;
  font-size: 10.5px;
}

.theme-v3 .notice-close {
  border-radius: 8px;
}

.theme-v3 .flash-wrap {
  padding-top: 14px;
}

.theme-v3 .flash {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border-color: var(--line);
  background: var(--surface);
  color: #c5c8d4;
  font-size: 11.5px;
}

.theme-v3 .flash-success {
  border-color: rgba(73, 219, 164, 0.18);
  background: rgba(73, 219, 164, 0.055);
}

.theme-v3 .flash-error {
  border-color: rgba(255, 104, 104, 0.2);
  background: rgba(255, 104, 104, 0.055);
}

/* ---------------- Home ---------------- */

.theme-v3 .home-topline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 0 0;
}

.theme-v3 .home-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #818596;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.theme-v3 .home-eyebrow .dot-live {
  width: 5px;
  height: 5px;
}

.theme-v3 .home-eyebrow-sep {
  color: #4f5361;
}

.theme-v3 .home-title {
  margin-top: 8px;
  color: #f6f7fa;
  font-family: 'Inter', sans-serif;
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.theme-v3 .home-title span {
  background: linear-gradient(100deg, #a8b5ff 0%, #b49aff 55%, #ff8fd4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.theme-v3 .home-sub {
  margin-top: 10px;
  color: #999dab;
  font-size: 13px;
  line-height: 1.55;
}

.theme-v3 .home-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  flex-shrink: 0;
}

.theme-v3 .home-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 326px;
  margin-top: 20px;
  padding: 40px 44px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-hero);
  background: #0d0e14;
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.theme-v3 .home-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.theme-v3 .home-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(0.85) brightness(0.78);
}

.theme-v3 .home-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(92deg, #08090d 0%, rgba(8, 9, 13, 0.97) 30%, rgba(8, 9, 13, 0.72) 55%, rgba(8, 9, 13, 0.08) 94%),
    linear-gradient(0deg, rgba(7, 8, 12, 0.9) 0%, transparent 48%);
}

.theme-v3 .home-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 300px;
  right: -120px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 95, 189, 0.16), transparent 66%);
  pointer-events: none;
}

.theme-v3 .home-hero-content {
  position: relative;
  z-index: 1;
  max-width: 615px;
}

.theme-v3 .home-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px 0 6px;
  border: 1px solid rgba(109, 131, 255, 0.28);
  border-radius: 999px;
  background: rgba(109, 131, 255, 0.1);
  color: #b4c0ff;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.theme-v3 .home-hero-kicker img {
  width: 19px;
  height: 19px;
  object-fit: contain;
}

.theme-v3 .home-hero h2 {
  margin-top: 16px;
  color: #fff;
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.theme-v3 .home-hero h2 span {
  background: linear-gradient(100deg, #ffffff 0%, #c4cdff 48%, #c0a4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.theme-v3 .home-hero p {
  max-width: 470px;
  margin-top: 12px;
  color: #aeb2c0;
  font-size: 13px;
  line-height: 1.6;
}

.theme-v3 .home-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.theme-v3 .home-hero-actions .btn {
  height: 38px;
  font-size: 11.5px;
}

.theme-v3 .home-hero-side {
  position: absolute;
  right: 26px;
  bottom: 26px;
  width: 218px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 17px;
  background: rgba(10, 11, 16, 0.62);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 60px -25px rgba(0, 0, 0, 0.9);
}

.theme-v3 .hero-side-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #c7cad5;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.theme-v3 .hero-side-number {
  margin-top: 10px;
  color: #fff;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.theme-v3 .hero-side-caption {
  margin-top: 5px;
  color: #8e92a1;
  font-size: 9.5px;
}

.theme-v3 .hero-side-avatars {
  display: flex;
  align-items: center;
  margin-top: 12px;
}

.theme-v3 .hero-side-avatars .avatar {
  margin-left: -7px;
  border: 2px solid #0d0e13;
}

.theme-v3 .hero-side-avatars .avatar:first-child {
  margin-left: 0;
}

.theme-v3 .hero-side-empty {
  color: #777b8a;
  font-size: 10px;
}

.theme-v3 .home-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.theme-v3 .metric-card {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 76px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(16, 17, 23, 0.88);
}

.theme-v3 .metric-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid transparent;
  border-radius: 11px;
  flex-shrink: 0;
}

.theme-v3 .metric-icon .icon {
  width: 16px;
  height: 16px;
}

.theme-v3 .metric-card b {
  display: block;
  color: #eef0f6;
  font-size: 19px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.theme-v3 .metric-card span:not(.metric-icon) {
  display: block;
  margin-top: 3px;
  color: #777b89;
  font-size: 9.5px;
}

.theme-v3 .home-layout {
  margin-top: 28px;
}

.theme-v3 .category-section {
  margin-bottom: 30px;
}

.theme-v3 .category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.theme-v3 .category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 214px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background:
    radial-gradient(120% 100% at 100% 0%, var(--tint-soft, rgba(109, 131, 255, 0.08)), transparent 55%),
    rgba(16, 17, 23, 0.9);
  color: inherit;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.theme-v3 .category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 35%);
  pointer-events: none;
}

.theme-v3 .category-card:hover {
  border-color: var(--tint-border, rgba(109, 131, 255, 0.3));
  background:
    radial-gradient(120% 100% at 100% 0%, var(--tint-soft, rgba(109, 131, 255, 0.12)), transparent 55%),
    rgba(20, 22, 29, 0.96);
  box-shadow: 0 24px 50px -36px rgba(0, 0, 0, 0.95);
}

.theme-v3 .category-card.tint-blue {
  --tint: #8da0ff;
  --tint-soft: rgba(109, 131, 255, 0.11);
  --tint-border: rgba(109, 131, 255, 0.32);
}

.theme-v3 .category-card.tint-violet {
  --tint: #c2a6ff;
  --tint-soft: rgba(160, 107, 255, 0.1);
  --tint-border: rgba(160, 107, 255, 0.3);
}

.theme-v3 .category-card.tint-green {
  --tint: #86ecc6;
  --tint-soft: rgba(73, 219, 164, 0.08);
  --tint-border: rgba(73, 219, 164, 0.28);
}

.theme-v3 .category-card.tint-pink {
  --tint: #ff9ed5;
  --tint-soft: rgba(255, 95, 189, 0.09);
  --tint-border: rgba(255, 95, 189, 0.28);
}

.theme-v3 .category-card.tint-amber {
  --tint: #ffd292;
  --tint-soft: rgba(255, 189, 92, 0.08);
  --tint-border: rgba(255, 189, 92, 0.28);
}

.theme-v3 .category-card.tint-cyan {
  --tint: #9ae8ff;
  --tint-soft: rgba(92, 208, 255, 0.08);
  --tint-border: rgba(92, 208, 255, 0.28);
}

.theme-v3 .category-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.theme-v3 .category-card-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid var(--tint-border);
  border-radius: 12px;
  background: var(--tint-soft);
  color: var(--tint);
}

.theme-v3 .category-card-icon .icon {
  width: 19px;
  height: 19px;
}

.theme-v3 .category-card-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #696d7b;
  transition: color 0.18s, background 0.18s;
}

.theme-v3 .category-card:hover .category-card-arrow {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.theme-v3 .category-card-arrow .icon {
  width: 14px;
  height: 14px;
}

.theme-v3 .category-card-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 13px;
}

.theme-v3 .category-card-title-row h3 {
  color: #eaecf3;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.theme-v3 .category-card > p {
  margin-top: 6px;
  color: #8e92a1;
  font-size: 11.5px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.theme-v3 .category-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 11px;
  color: #777b89;
  font-size: 9.5px;
}

.theme-v3 .category-card-stats b {
  color: #c2c5d1;
  font-weight: 550;
}

.theme-v3 .category-card-latest {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-v3 .category-latest-copy {
  min-width: 0;
}

.theme-v3 .category-latest-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #aeb2c0;
  font-size: 10.5px;
}

.theme-v3 .category-latest-meta {
  display: block;
  margin-top: 2px;
  color: #6d7180;
  font-size: 9px;
}

.theme-v3 .knowledge-card {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 30px;
  padding: 18px;
  border: 1px solid rgba(109, 131, 255, 0.18);
  border-radius: var(--radius-card);
  background:
    linear-gradient(100deg, rgba(109, 131, 255, 0.09), transparent 60%),
    rgba(16, 17, 23, 0.9);
  transition: border-color 0.2s, background 0.2s;
}

.theme-v3 .knowledge-card:hover {
  border-color: rgba(109, 131, 255, 0.35);
  background:
    linear-gradient(100deg, rgba(109, 131, 255, 0.13), transparent 60%),
    rgba(18, 20, 27, 0.95);
}

.theme-v3 .knowledge-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(109, 131, 255, 0.26);
  border-radius: 12px;
  background: rgba(109, 131, 255, 0.1);
  color: #adbbff;
  flex-shrink: 0;
}

.theme-v3 .knowledge-icon .icon {
  width: 18px;
  height: 18px;
}

.theme-v3 .knowledge-copy {
  min-width: 0;
  flex: 1;
}

.theme-v3 .knowledge-copy b {
  display: block;
  color: #e8eaf2;
  font-size: 13px;
  font-weight: 550;
}

.theme-v3 .knowledge-copy span {
  display: block;
  margin-top: 2px;
  color: #838796;
  font-size: 10.5px;
}

.theme-v3 .knowledge-arrow {
  color: #737786;
}

.theme-v3 .knowledge-arrow .icon {
  width: 15px;
  height: 15px;
}

.theme-v3 .latest-discussions {
  margin-top: 4px;
}

/* ---------------- Sidebar ---------------- */

.theme-v3 .forum-sidebar {
  gap: 13px;
  top: 94px;
}

.theme-v3 .widget {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(15, 16, 22, 0.88);
  overflow: hidden;
}

.theme-v3 .widget-head {
  padding: 15px 15px 9px;
}

.theme-v3 .widget-title {
  gap: 7px;
  color: #c9ccd7;
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0;
  text-transform: none;
}

.theme-v3 .widget-title .icon {
  width: 13px;
  height: 13px;
  color: #7f8392;
}

.theme-v3 .widget-head-link {
  gap: 4px;
  color: #7b7f8e;
  font-size: 9.5px;
}

.theme-v3 .widget-head-link:hover {
  color: #c7cbf7;
}

.theme-v3 .widget-head-link .icon {
  width: 10px;
  height: 10px;
}

.theme-v3 .widget-body {
  padding: 0 15px 15px;
}

.theme-v3 .recent-list,
.theme-v3 .stats-list,
.theme-v3 .profile-online-list,
.theme-v3 .moderators-list,
.theme-v3 .rules-list {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2px;
}

.theme-v3 .recent-item {
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.theme-v3 .recent-item:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.theme-v3 .recent-title {
  color: #b9bdc9;
  font-size: 11px;
  line-height: 1.45;
}

.theme-v3 .recent-meta {
  margin-top: 3px;
  color: #717584;
  font-size: 9px;
}

.theme-v3 .stats-row {
  padding: 8px 0;
  border-bottom-color: rgba(255, 255, 255, 0.05);
  color: #818594;
  font-size: 10.5px;
}

.theme-v3 .stats-row b {
  color: #c8cbd6;
  font-size: 10.5px;
  font-weight: 500;
}

.theme-v3 .online-summary {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 0 9px;
}

.theme-v3 .online-summary b {
  color: #f0f1f6;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.theme-v3 .online-summary span:not(.dot-live) {
  color: #7f8391;
  font-size: 9.5px;
}

.theme-v3 .profile-online-list {
  border-top: 0;
  padding-top: 0;
}

.theme-v3 .profile-online-row {
  padding: 8px 0;
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.theme-v3 .profile-online-copy b {
  color: #c9ccd7;
  font-size: 11px;
  font-weight: 500;
}

.theme-v3 .profile-online-copy span {
  color: #717584;
  font-size: 8.5px;
}

.theme-v3 .sidebar-empty {
  display: block;
  padding: 12px 0 2px;
  color: #6d7180;
  font-size: 9.5px;
}

.theme-v3 .widget-cta {
  margin-top: 12px;
}

.theme-v3 .join-card {
  position: relative;
  display: block;
  padding: 18px;
  border: 1px solid rgba(109, 131, 255, 0.18);
  border-radius: var(--radius-card);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(160, 107, 255, 0.13), transparent 55%),
    linear-gradient(160deg, rgba(109, 131, 255, 0.08), transparent 60%),
    rgba(15, 16, 22, 0.92);
  overflow: hidden;
}

.theme-v3 .join-card-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  right: -90px;
  top: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 131, 255, 0.18), transparent 66%);
  pointer-events: none;
}

.theme-v3 .join-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  margin-bottom: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
}

.theme-v3 .join-icon img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.theme-v3 .join-card h3 {
  color: #f0f1f7;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.theme-v3 .join-card p {
  margin-top: 5px;
  color: #969aa9;
  font-size: 10.5px;
  line-height: 1.55;
}

.theme-v3 .join-actions {
  margin-top: 13px;
  gap: 6px;
}

.theme-v3 .join-actions .btn {
  height: 35px;
  border-radius: 9px;
  font-size: 10.5px;
}

.theme-v3 .join-stats {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-v3 .join-stat b {
  color: #e3e5ee;
  font-size: 14px;
}

.theme-v3 .join-stat span {
  color: #707483;
  font-size: 7.5px;
}

.theme-v3 .user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: auto;
  padding: 14px;
}

.theme-v3 .user-card-copy {
  min-width: 0;
  flex: 1;
}

.theme-v3 .user-card-copy b {
  display: block;
  color: #eef0f6;
  font-size: 13px;
  font-weight: 550;
}

.theme-v3 .user-card-copy span {
  display: block;
  margin-top: 1px;
  color: #858998;
  font-size: 9px;
}

.theme-v3 .user-card-arrow {
  width: 15px;
  height: 15px;
  color: #7c8090;
}

.theme-v3 .product-mini-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.theme-v3 .live-tag {
  height: 19px;
  border-radius: 999px;
  font-size: 7.5px;
}

.theme-v3 .product-version {
  margin-bottom: 7px;
  color: #8a8e9d;
  font-size: 9.5px;
}

.theme-v3 .product-copy {
  color: #979baa;
  font-size: 10.5px;
  line-height: 1.55;
}

.theme-v3 .product-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 11px 0 13px;
  padding: 0;
}

.theme-v3 .product-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #9296a5;
  font-size: 9.5px;
}

.theme-v3 .product-list .icon {
  width: 10px;
  height: 10px;
  color: #8191ff;
}

.theme-v3 .product-widget .btn {
  height: 34px;
  border-radius: 9px;
  font-size: 10.5px;
}

.theme-v3 .moderators-list {
  border-top: 0;
  padding-top: 0;
}

.theme-v3 .moderator-row {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.theme-v3 .moderator-row:last-child {
  border-bottom: 0;
  padding-bottom: 1px;
}

.theme-v3 .moderator-name {
  color: #c3c6d1;
  font-size: 10.5px;
}

.theme-v3 .moderator-role {
  color: #717584;
  font-size: 8.5px;
}

.theme-v3 .rule-item {
  color: #8d91a0;
  font-size: 9.5px;
}

/* ---------------- Thread lists ---------------- */

.theme-v3 .threads-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.theme-v3 .threads-toolbar {
  min-height: 50px;
  margin-bottom: 7px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(15, 16, 22, 0.88);
}

.theme-v3 .thread-tabs {
  gap: 3px;
  flex-wrap: wrap;
}

.theme-v3 .thread-tab {
  height: 31px;
  padding: 0 11px;
  border-radius: 8px;
  color: #8e92a1;
  font-size: 11px;
  transition: color 0.16s, background 0.16s;
}

.theme-v3 .thread-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.theme-v3 .thread-tab.active {
  color: #fff;
  background: rgba(109, 131, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(109, 131, 255, 0.08);
}

.theme-v3 .select-control {
  height: 32px;
  border-color: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: #9397a6;
  font-size: 10.5px;
}

.theme-v3 .select-control:hover {
  border-color: var(--line-strong);
  color: #d0d3dd;
}

.theme-v3 .threads-list-head {
  display: none;
}

.theme-v3 .thread-section-label {
  min-height: auto;
  padding: 13px 3px 7px;
  border: 0;
  background: transparent;
  color: #747887;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.theme-v3 .thread-section-label .icon {
  width: 11px;
  height: 11px;
  color: #7c8090;
}

.theme-v3 .thread-section-label .label-count {
  color: #5c606e;
}

.theme-v3 .thread-item {
  grid-template-columns: 42px minmax(0, 1fr) 162px 20px;
  gap: 12px;
  min-height: 84px;
  margin-bottom: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 16, 22, 0.9);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.theme-v3 .thread-item:last-child {
  margin-bottom: 0;
}

.theme-v3 .thread-item:hover {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(19, 21, 28, 0.96);
  box-shadow: 0 18px 40px -34px rgba(0, 0, 0, 0.95);
}

.theme-v3 .thread-item.unread::before {
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, #7e92ff, #a173ff);
  box-shadow: 0 0 10px rgba(109, 131, 255, 0.55);
}

.theme-v3 .thread-item-avatar {
  align-self: center;
  margin-top: 0;
}

.theme-v3 .thread-item-avatar .avatar {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.theme-v3 .thread-item-title-row {
  gap: 6px;
}

.theme-v3 .thread-item-title {
  color: #e7e9f0;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.4;
}

.theme-v3 .thread-item:hover .thread-item-title {
  color: #bec9ff;
}

.theme-v3 .thread-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 5px;
  color: #747887;
  font-size: 9.5px;
}

.theme-v3 .thread-author {
  color: #9599a8;
}

.theme-v3 .thread-category {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #a7abb8;
  font-size: 8.5px;
}

.theme-v3 .thread-inline-stat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #717584;
}

.theme-v3 .thread-inline-stat .icon {
  width: 10px;
  height: 10px;
  opacity: 0.8;
}

.theme-v3 .thread-inline-tag {
  display: inline-flex;
  align-items: center;
  height: 17px;
  padding: 0 5px;
  border-radius: 5px;
  background: rgba(109, 131, 255, 0.07);
  color: #8b96c9;
  font-size: 8px;
}

.theme-v3 .thread-pin {
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  border-color: rgba(255, 195, 107, 0.2);
  background: rgba(255, 195, 107, 0.06);
  color: #d9af6f;
  font-size: 7.5px;
}

.theme-v3 .thread-solved {
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 7.5px;
}

.theme-v3 .thread-badge-new {
  height: 16px;
  margin-left: 1px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 7px;
}

.theme-v3 .thread-last-col {
  justify-content: flex-end;
  gap: 8px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.055);
}

.theme-v3 .thread-last-name {
  color: #aeb1be;
  font-size: 9.5px;
}

.theme-v3 .thread-last-time {
  color: #666a79;
  font-size: 8.5px;
}

.theme-v3 .thread-row-arrow {
  display: grid;
  place-items: center;
  color: #5f6372;
  transition: color 0.18s;
}

.theme-v3 .thread-row-arrow .icon {
  width: 13px;
  height: 13px;
}

.theme-v3 .thread-item:hover .thread-row-arrow {
  color: #aebaff;
}

.theme-v3 .threads-footer {
  min-height: 39px;
  margin-top: 7px;
  padding: 9px 3px 0;
  border-top: 0;
  background: transparent;
  color: #666a79;
  font-size: 9px;
}

.theme-v3 .threads-footer .login-link {
  color: #8d9bdd;
}

.theme-v3 .empty-block {
  padding: 38px 20px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(15, 16, 22, 0.55);
  color: #818594;
}

.theme-v3 .empty-block strong {
  color: #c4c7d2;
  font-size: 13px;
}

.theme-v3 .empty-block span {
  font-size: 10.5px;
}

.theme-v3 .threads-panel + .pagination {
  margin-top: 12px;
}

/* ---------------- Pagination ---------------- */

.theme-v3 .pagination {
  gap: 5px;
  padding-top: 14px;
}

.theme-v3 .page-link {
  min-width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 16, 22, 0.8);
  color: #8f93a2;
  font-size: 10px;
}

.theme-v3 .page-link:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
}

.theme-v3 .page-link.active {
  border-color: rgba(109, 131, 255, 0.24);
  background: rgba(109, 131, 255, 0.14);
  color: #fff;
}

.theme-v3 .page-link.disabled {
  color: #4f5361;
  background: rgba(255, 255, 255, 0.018);
}

.theme-v3 .page-gap {
  color: #626675;
}

/* ---------------- Category / generic headers ---------------- */

.theme-v3 .category-header-card {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 4px 0 18px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(90% 150% at 100% 0%, var(--tint-soft, rgba(109, 131, 255, 0.1)), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent),
    rgba(15, 16, 22, 0.92);
}

.theme-v3 .category-header-card.tint-blue {
  --tint: #95a5ff;
  --tint-soft: rgba(109, 131, 255, 0.11);
  --tint-border: rgba(109, 131, 255, 0.25);
}

.theme-v3 .category-header-card.tint-violet {
  --tint: #c5a8ff;
  --tint-soft: rgba(160, 107, 255, 0.1);
  --tint-border: rgba(160, 107, 255, 0.24);
}

.theme-v3 .category-header-card.tint-green {
  --tint: #8ceac7;
  --tint-soft: rgba(73, 219, 164, 0.08);
  --tint-border: rgba(73, 219, 164, 0.22);
}

.theme-v3 .category-header-card.tint-pink {
  --tint: #ff9dd5;
  --tint-soft: rgba(255, 95, 189, 0.09);
  --tint-border: rgba(255, 95, 189, 0.22);
}

.theme-v3 .category-header-card.tint-amber {
  --tint: #ffd394;
  --tint-soft: rgba(255, 189, 92, 0.08);
  --tint-border: rgba(255, 189, 92, 0.22);
}

.theme-v3 .category-header-card.tint-cyan {
  --tint: #9ce9ff;
  --tint-soft: rgba(92, 208, 255, 0.08);
  --tint-border: rgba(92, 208, 255, 0.22);
}

.theme-v3 .category-header-main {
  display: flex;
  align-items: center;
  gap: 17px;
  min-width: 0;
  flex: 1;
}

.theme-v3 .category-header-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid var(--tint-border);
  border-radius: 17px;
  background: var(--tint-soft);
  color: var(--tint);
  flex-shrink: 0;
}

.theme-v3 .category-header-icon .icon {
  width: 26px;
  height: 26px;
}

.theme-v3 .category-header-copy {
  min-width: 0;
}

.theme-v3 .category-header-copy h1 {
  margin-top: 3px;
  color: #f2f3f8;
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.theme-v3 .category-header-copy p {
  margin-top: 5px;
  color: #9195a4;
  font-size: 12px;
  line-height: 1.55;
}

.theme-v3 .category-chips {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.theme-v3 .category-chips span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: #858998;
  font-size: 9px;
}

.theme-v3 .category-chips .icon {
  width: 10px;
  height: 10px;
}

.theme-v3 .category-header-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.theme-v3 .category-header-actions .btn {
  height: 36px;
  font-size: 11px;
}

.theme-v3 .page-header-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 4px 0 18px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(80% 150% at 100% 0%, rgba(109, 131, 255, 0.09), transparent 55%),
    rgba(15, 16, 22, 0.92);
}

.theme-v3 .page-header-card h1 {
  margin-top: 3px;
  color: #f2f3f8;
  font-size: 33px;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.theme-v3 .page-header-card p {
  margin-top: 5px;
  color: #9195a4;
  font-size: 12px;
}

.theme-v3 .page-header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.theme-v3 .page-header-actions .btn {
  height: 36px;
  font-size: 11px;
}

/* ---------------- Topic ---------------- */

.theme-v3 .container-topic {
  width: min(1160px, calc(100% - 48px));
}

.theme-v3 .topic-header-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(109, 131, 255, 0.075), transparent 55%),
    rgba(15, 16, 22, 0.92);
}

.theme-v3 .topic-header-main {
  min-width: 0;
}

.theme-v3 .topic-label-row {
  gap: 5px;
  margin-bottom: 11px;
}

.theme-v3 .topic-label {
  height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #a2a6b4;
  font-size: 9px;
}

.theme-v3 .topic-label.hot {
  border-color: rgba(255, 195, 107, 0.2);
  background: rgba(255, 195, 107, 0.055);
  color: #e0b978;
}

.theme-v3 .topic-label.solved {
  border-color: rgba(73, 219, 164, 0.2);
  background: rgba(73, 219, 164, 0.055);
  color: #84e9c3;
}

.theme-v3 .topic-title {
  color: #f4f5f9;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.theme-v3 .topic-subline {
  gap: 8px;
  margin-top: 12px;
  color: #858998;
  font-size: 10.5px;
}

.theme-v3 .topic-subline a {
  color: #b0b3c0;
}

.theme-v3 .topic-title-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.theme-v3 .topic-title-actions .btn {
  height: 34px;
  font-size: 10.5px;
}

.theme-v3 .topic-title-actions .btn.is-active {
  border-color: rgba(109, 131, 255, 0.25);
  background: rgba(109, 131, 255, 0.1);
  color: #b9c4ff;
}

.theme-v3 .thread-moderation {
  margin-top: 13px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(15, 16, 22, 0.8);
}

.theme-v3 .thread-moderation-label {
  font-size: 8.5px;
}

.theme-v3 .thread-moderation .btn {
  height: 29px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 9.5px;
}

.theme-v3 .posts {
  gap: 11px;
  margin-top: 16px;
}

.theme-v3 .post {
  display: block;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 16, 22, 0.9);
  overflow: hidden;
}

.theme-v3 .post.is-op {
  border-color: rgba(109, 131, 255, 0.2);
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(109, 131, 255, 0.055), transparent 55%),
    rgba(15, 16, 22, 0.94);
}

.theme-v3 .post-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-right: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.012);
}

.theme-v3 .post-author-avatar {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
}

.theme-v3 .post-author-avatar .avatar {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: none;
}

.theme-v3 .post-author-name {
  margin-top: 0;
  color: #e4e6ee;
  font-size: 12.5px;
  font-weight: 550;
}

.theme-v3 .post-role-bar {
  margin: 0;
  width: auto;
  flex-shrink: 0;
}

.theme-v3 .post-author-stats {
  display: none;
}

.theme-v3 .post-content {
  min-width: 0;
}

.theme-v3 .post-head {
  min-height: 34px;
  padding: 6px 20px;
  border-bottom: 0;
  background: transparent;
}

.theme-v3 .post-head-time {
  color: #737786;
  font-size: 9.5px;
}

.theme-v3 .post-op-tag {
  height: 18px;
  border-radius: 999px;
  font-size: 8px;
}

.theme-v3 .post-number {
  color: #666a79;
  font-size: 9px;
}

.theme-v3 .post-anchor {
  border-radius: 7px;
}

.theme-v3 .post-body {
  padding: 4px 20px 19px;
  color: #c2c5d1;
  font-size: 14px;
  line-height: 1.78;
}

.theme-v3 .post-body h2 {
  font-size: 21px;
  color: #eef0f6;
}

.theme-v3 .post-body h3 {
  font-size: 17px;
}

.theme-v3 .post-body pre {
  border-color: rgba(255, 255, 255, 0.075);
  border-radius: 12px;
  background: #090a0e;
}

.theme-v3 .post-body blockquote {
  border-left-color: #6d83ff;
  border-radius: 0 10px 10px 0;
  background: rgba(109, 131, 255, 0.055);
}

.theme-v3 .post-body img {
  border-radius: 12px;
}

.theme-v3 .post-foot {
  min-height: 39px;
  padding: 6px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  background: transparent;
}

.theme-v3 .post-react {
  height: 29px;
  padding: 0 9px;
  border-radius: 8px;
  color: #818594;
  font-size: 9.5px;
}

.theme-v3 .post-react:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #dfe1eb;
}

.theme-v3 .post-react.is-liked {
  border-color: rgba(255, 95, 189, 0.18);
  background: rgba(255, 95, 189, 0.065);
  color: #ff9ed5;
}

.theme-v3 .posts-footer-note {
  margin-top: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.012);
  color: #767a89;
  font-size: 9.5px;
}

.theme-v3 .reply-panel {
  margin-top: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(15, 16, 22, 0.9);
}

.theme-v3 .reply-head {
  min-height: 44px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: transparent;
}

.theme-v3 .reply-title {
  font-size: 11.5px;
}

.theme-v3 .editor-toolbar {
  min-height: 39px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.012);
}

.theme-v3 .tool-btn {
  border-radius: 7px;
}

.theme-v3 .tool-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.theme-v3 .editor-tab {
  border-radius: 7px;
}

.theme-v3 .editor-tab.active {
  background: rgba(255, 255, 255, 0.07);
}

.theme-v3 .editor-input {
  background: #0b0c10;
  color: #d0d3de;
  font-size: 13px;
}

.theme-v3 .reply-foot {
  padding: 9px 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  background: transparent;
}

.theme-v3 .reply-actions .btn {
  height: 34px;
  border-radius: 9px;
  font-size: 10.5px;
}

.theme-v3 .reply-guest {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(15, 16, 22, 0.75);
}

.theme-v3 .related-block {
  margin-top: 24px;
}

.theme-v3 .related-heading {
  color: #858998;
  font-size: 9px;
}

.theme-v3 .related-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(15, 16, 22, 0.86);
}

.theme-v3 .related-card:hover {
  border-color: var(--line-strong);
  background: rgba(20, 22, 29, 0.95);
}

/* ---------------- Profiles ---------------- */

.theme-v3 .profile-page {
  padding-top: 22px;
}

.theme-v3 .profile-hero {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(15, 16, 22, 0.9);
  overflow: hidden;
}

.theme-v3 .profile-cover {
  height: 194px;
  border-bottom: 0;
  background:
    radial-gradient(600px 280px at 78% -30%, rgba(255, 255, 255, 0.13), transparent 62%),
    radial-gradient(520px 260px at 100% 120%, rgba(255, 95, 189, 0.16), transparent 68%),
    radial-gradient(520px 260px at 0% 110%, rgba(109, 131, 255, 0.13), transparent 68%),
    linear-gradient(110deg, #12152a 0%, #171a38 55%, #241432 100%);
  box-shadow: inset 0 -2px 0 var(--cover-accent, #6d83ff);
}

.theme-v3 .profile-cover::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.7;
}

.theme-v3 .profile-cover::after {
  border-color: rgba(255, 255, 255, 0.045);
}

.theme-v3 .profile-cover-word {
  color: rgba(255, 255, 255, 0.035);
  font-size: 92px;
}

.theme-v3 .profile-cover-badge {
  top: 18px;
  left: 20px;
  height: 26px;
  border-color: rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(8, 9, 13, 0.55);
  color: #d8dae4;
  font-size: 7.5px;
}

.theme-v3 .profile-identity {
  padding: 0 26px 18px;
  gap: 20px;
}

.theme-v3 .profile-avatar-wrap {
  margin-top: -56px;
}

.theme-v3 .profile-avatar-wrap .avatar {
  width: 118px;
  height: 118px;
  border: 4px solid #0f1015;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.theme-v3 .profile-presence {
  right: 9px;
  bottom: 9px;
}

.theme-v3 .profile-name-row h1 {
  font-size: 29px;
}

.theme-v3 .profile-status-line {
  font-size: 10.5px;
}

.theme-v3 .profile-actions .btn {
  height: 36px;
  border-radius: 10px;
  font-size: 10.5px;
}

.theme-v3 .profile-stat-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(255, 255, 255, 0.012);
}

.theme-v3 .profile-stat {
  padding: 15px 22px;
}

.theme-v3 .profile-stat b {
  font-size: 20px;
}

.theme-v3 .profile-stat span {
  color: #757987;
  font-size: 8.5px;
}

.theme-v3 .profile-tabs {
  gap: 4px;
  margin-top: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  flex-wrap: wrap;
}

.theme-v3 .profile-tab {
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: #8e92a1;
  font-size: 10.5px;
}

.theme-v3 .profile-tab:last-child {
  border-right: 1px solid var(--line);
}

.theme-v3 .profile-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.theme-v3 .profile-tab.active {
  color: #fff;
  border-color: rgba(109, 131, 255, 0.24);
  background: rgba(109, 131, 255, 0.14);
  box-shadow: none;
}

.theme-v3 .profile-layout {
  margin-top: 16px;
  gap: 16px;
}

.theme-v3 .profile-main,
.theme-v3 .profile-sidebar {
  gap: 13px;
}

.theme-v3 .profile-section .widget-head {
  padding-bottom: 10px;
}

.theme-v3 .profile-bio {
  color: #b5b8c5;
  font-size: 12px;
}

.theme-v3 .profile-meta-grid {
  gap: 14px;
  padding-top: 13px;
  border-top-color: rgba(255, 255, 255, 0.06);
}

.theme-v3 .profile-meta-cell > span:first-child {
  color: #6f7382;
  font-size: 8px;
}

.theme-v3 .profile-meta-cell b {
  color: #cdd0db;
  font-size: 10.5px;
}

.theme-v3 .profile-activity-list {
  border-top: 0;
}

.theme-v3 .profile-activity-item {
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 9px;
}

.theme-v3 .profile-activity-item:hover {
  background: rgba(255, 255, 255, 0.035);
}

.theme-v3 .profile-activity-icon {
  width: 31px;
  height: 31px;
  border-radius: 9px;
}

.theme-v3 .profile-activity-icon.is-thread {
  border-color: rgba(109, 131, 255, 0.2);
  background: rgba(109, 131, 255, 0.08);
}

.theme-v3 .profile-activity-title {
  color: #d5d8e2;
  font-size: 11.5px;
}

.theme-v3 .profile-activity-excerpt {
  color: #868a99;
  font-size: 10px;
}

.theme-v3 .achievements-grid {
  gap: 7px;
  border-top: 0;
  padding-top: 0;
}

.theme-v3 .achievement {
  border-color: rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.theme-v3 .achievement-icon {
  border-radius: 8px;
}

.theme-v3 .achievement b {
  color: #c9ccd7;
  font-size: 10px;
}

.theme-v3 .achievement span {
  color: #767a89;
  font-size: 8px;
}

.theme-v3 .member-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 16, 22, 0.9);
}

.theme-v3 .member-card:hover {
  border-color: var(--line-strong);
  background: rgba(19, 21, 28, 0.96);
}

.theme-v3 .members-toolbar {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(15, 16, 22, 0.8);
}

.theme-v3 .member-search input {
  border-color: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.theme-v3 .member-stats-strip {
  color: #777b8a;
  font-size: 10px;
}

.theme-v3 .member-card-name {
  color: #e1e3eb;
  font-size: 12.5px;
}

.theme-v3 .member-card-role {
  color: #777b8a;
}

/* ---------------- Forms / auth / editors ---------------- */

.theme-v3 .form-layout {
  gap: 16px;
  margin-top: 16px;
}

.theme-v3 .form-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 16, 22, 0.9);
  overflow: hidden;
}

.theme-v3 .form-panel-head {
  min-height: 48px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: transparent;
}

.theme-v3 .form-panel-head b {
  font-size: 12px;
  color: #d8dae4;
}

.theme-v3 .form-body {
  padding: 18px;
}

.theme-v3 .form-label {
  color: #b1b4c1;
  font-size: 10.5px;
}

.theme-v3 .text-input,
.theme-v3 .textarea-input,
.theme-v3 .select-input {
  border-color: rgba(255, 255, 255, 0.075);
  border-radius: 10px;
  background: rgba(8, 9, 13, 0.65);
  color: #d3d5df;
}

.theme-v3 .text-input {
  height: 42px;
  font-size: 12px;
}

.theme-v3 .select-input {
  height: 42px;
  border-radius: 10px;
  font-size: 11.5px;
}

.theme-v3 .textarea-input,
.theme-v3 .editor-input {
  background: rgba(8, 9, 13, 0.65);
  font-size: 12px;
}

.theme-v3 .tag-option {
  height: 29px;
  border-color: rgba(255, 255, 255, 0.075);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #9397a6;
  font-size: 10px;
}

.theme-v3 .tag-option:hover {
  border-color: var(--line-strong);
  color: #e9eaf0;
}

.theme-v3 .tag-option.selected,
.theme-v3 .tag-option:has(input:checked) {
  border-color: rgba(109, 131, 255, 0.24);
  background: rgba(109, 131, 255, 0.12);
  color: #bcc7ff;
}

.theme-v3 .form-actions-row {
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  background: transparent;
}

.theme-v3 .checkbox-row {
  color: #858998;
  font-size: 9.5px;
}

.theme-v3 .form-side {
  gap: 13px;
}

.theme-v3 .tips-list {
  border-top: 0;
  padding-top: 0;
}

.theme-v3 .tip-row {
  color: #8e92a1;
  font-size: 9.5px;
}

.theme-v3 .tip-row b {
  color: #bfc2ce;
}

.theme-v3 .auth-page {
  padding-top: 34px;
}

.theme-v3 .auth-shell {
  width: min(460px, 100%);
  padding: 18px 0 60px;
}

.theme-v3 .auth-brand img {
  width: 108px;
}

.theme-v3 .auth-brand span {
  color: #747887;
  font-size: 8px;
}

.theme-v3 .auth-card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background:
    radial-gradient(110% 100% at 50% 0%, rgba(109, 131, 255, 0.09), transparent 55%),
    rgba(15, 16, 22, 0.94);
  box-shadow: 0 40px 100px -50px rgba(0, 0, 0, 0.95);
}

.theme-v3 .auth-card-head h1 {
  color: #f2f3f8;
  font-size: 25px;
}

.theme-v3 .auth-card-head p {
  color: #8f93a2;
  font-size: 10.5px;
}

.theme-v3 .auth-form .form-row {
  margin-bottom: 12px;
}

.theme-v3 .auth-form .btn {
  height: 42px;
  margin-top: 4px;
  border-radius: 10px;
}

.theme-v3 .auth-divider {
  color: #5f6372;
}

.theme-v3 .auth-note {
  color: #646877;
  font-size: 8.5px;
}

.theme-v3 .auth-switch {
  color: #7b7f8e;
  font-size: 10px;
}

/* ---------------- Settings / notifications / admin ---------------- */

.theme-v3 .settings-grid {
  gap: 16px;
}

.theme-v3 .settings-side {
  gap: 13px;
}

.theme-v3 .settings-profile-head {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.theme-v3 .file-input {
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(8, 9, 13, 0.5);
  color: #8f93a2;
}

.theme-v3 .notification-widget {
  margin-top: 4px;
}

.theme-v3 .notification-list {
  border-top: 0;
}

.theme-v3 .notification-item {
  padding: 11px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 9px;
}

.theme-v3 .notification-item.is-unread {
  background: rgba(109, 131, 255, 0.045);
}

.theme-v3 .notification-text {
  color: #aeb1be;
  font-size: 10.5px;
}

.theme-v3 .notification-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.theme-v3 .admin-stats {
  gap: 9px;
  margin-top: 4px;
}

.theme-v3 .admin-stat {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 16, 22, 0.9);
}

.theme-v3 .admin-stat span {
  color: #717584;
  font-size: 8px;
}

.theme-v3 .admin-stat b {
  color: #eef0f6;
  font-size: 20px;
}

.theme-v3 .admin-layout {
  gap: 16px;
  margin-top: 14px;
}

.theme-v3 .admin-table {
  font-size: 10px;
}

.theme-v3 .admin-table th {
  border-bottom-color: rgba(255, 255, 255, 0.06);
  color: #6f7382;
}

.theme-v3 .admin-table td {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.theme-v3 .admin-user-form .select-control {
  border-radius: 7px;
}

.theme-v3 .admin-ban-reason {
  border-radius: 7px;
}

.theme-v3 .report-card {
  padding: 13px;
  border-color: var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
}

.theme-v3 .report-target {
  border-left-color: #6d83ff;
  border-radius: 0 8px 8px 0;
  background: rgba(109, 131, 255, 0.045);
}

.theme-v3 .report-status {
  border-radius: 999px;
}

.theme-v3 .report-actions .btn {
  border-radius: 8px;
}

.theme-v3 .search-page-form {
  margin-top: 4px;
  padding: 7px 8px 7px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(15, 16, 22, 0.9);
  box-shadow: 0 20px 50px -40px rgba(0, 0, 0, 0.9);
}

.theme-v3 .search-page-form input {
  font-size: 13px;
}

.theme-v3 .search-page-form .btn {
  border-radius: 9px;
}

.theme-v3 .search-summary {
  padding: 15px 2px 11px;
  color: #8c90a0;
  font-size: 10.5px;
}

.theme-v3 .error-page {
  margin-top: 42px;
  padding: 38px 26px;
  border-color: var(--line);
  border-radius: 22px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(109, 131, 255, 0.08), transparent 55%),
    rgba(15, 16, 22, 0.92);
}

.theme-v3 .error-code {
  color: #373a4e;
  font-size: 78px;
}

.theme-v3 .error-page h1 {
  font-size: 25px;
}

.theme-v3 .error-page p {
  color: #8f93a2;
  font-size: 11px;
}

.theme-v3 .error-actions .btn {
  border-radius: 9px;
}

.theme-v3 .toast {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: rgba(18, 20, 27, 0.97);
  color: #d3d5df;
  font-size: 10.5px;
  box-shadow: 0 22px 55px -24px rgba(0, 0, 0, 0.95);
}

/* ---------------- Search overlay / modal ---------------- */

.theme-v3 .search-panel {
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: #0f1117;
  box-shadow: 0 50px 120px -25px rgba(0, 0, 0, 0.95);
}

.theme-v3 .search-bar {
  padding: 14px 16px;
  border-bottom-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.012);
}

.theme-v3 .search-input {
  font-size: 13px;
}

.theme-v3 .search-item {
  padding: 9px 10px;
  border-radius: 9px;
}

.theme-v3 .search-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.theme-v3 .search-item-title {
  color: #d6d8e2;
  font-size: 11.5px;
}

.theme-v3 .search-item-meta {
  color: #777b8a;
  font-size: 9px;
}

.theme-v3 .search-foot {
  border-top-color: rgba(255, 255, 255, 0.06);
  color: #646877;
}

.theme-v3 .search-chip {
  height: 27px;
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  color: #8e92a1;
  font-size: 9.5px;
}

.theme-v3 .modal {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: #0f1117;
}

.theme-v3 .modal-head {
  border-bottom-color: rgba(255, 255, 255, 0.06);
  background: transparent;
}

.theme-v3 .modal-title {
  font-size: 20px;
}

.theme-v3 .modal-sub {
  color: #8b8f9e;
  font-size: 10.5px;
}

.theme-v3 .popover-label {
  color: #5f6372;
}

/* ---------------- Mobile drawer ---------------- */

.theme-v3 .mobile-panel {
  border-left-color: var(--line);
  background: #0b0c11;
}

.theme-v3 .mobile-user-box {
  border-color: var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.theme-v3 .mobile-nav a {
  border-radius: 9px;
  font-size: 12.5px;
}

.theme-v3 .mobile-nav a:hover,
.theme-v3 .mobile-nav a.active {
  background: rgba(109, 131, 255, 0.09);
}

.theme-v3 .mobile-product {
  border-color: rgba(109, 131, 255, 0.16);
  border-radius: 12px;
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(109, 131, 255, 0.13), transparent 60%),
    rgba(255, 255, 255, 0.02);
}

/* ---------------- Footer ---------------- */

.theme-v3 .site-footer {
  margin-top: 46px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(109, 131, 255, 0.04), transparent 60%),
    #08090d;
}

.theme-v3 .footer-main {
  padding: 42px 0 30px;
  gap: 40px;
}

.theme-v3 .footer-brand img {
  width: 100px;
}

.theme-v3 .footer-brand p {
  color: #7b7f8e;
  font-size: 10px;
}

.theme-v3 .footer-status {
  border-radius: 999px;
  font-size: 8.5px;
}

.theme-v3 .footer-col h4 {
  color: #858997;
  font-size: 8px;
}

.theme-v3 .footer-col a,
.theme-v3 .footer-col button {
  color: #747887;
  font-size: 10px;
}

.theme-v3 .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.05);
  color: #5c606e;
  font-size: 8.5px;
}

.theme-v3 .lang-select {
  border-radius: 999px;
  border-color: var(--line);
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1240px) {
  .theme-v3 .header-create {
    display: none;
  }

  .theme-v3 .search-trigger {
    min-width: 150px;
  }
}

@media (max-width: 1120px) {
  .theme-v3 .topbar-nav {
    display: none;
  }

  .theme-v3 .topbar-menu-btn {
    display: inline-flex;
  }

  .theme-v3 .topbar-inner {
    padding-left: 16px;
  }
}

@media (max-width: 1024px) {
  .theme-v3 .home-hero {
    padding: 34px;
  }

  .theme-v3 .home-hero-side {
    display: none;
  }

  .theme-v3 .category-grid {
    grid-template-columns: 1fr;
  }

  .theme-v3 .forum-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .theme-v3 .profile-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .theme-v3 .admin-side {
    position: static;
  }

  .theme-v3 .footer-main {
    gap: 30px;
  }
}

@media (max-width: 900px) {
  .theme-v3 .topbar {
    padding: 9px 16px 0;
  }

  .theme-v3 .topbar-inner {
    height: 58px;
    padding: 0 8px 0 14px;
    border-radius: 14px;
  }

  .theme-v3 .brand img {
    width: 92px;
  }

  .theme-v3 .search-trigger {
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
    border: 0;
    background: transparent;
  }

  .theme-v3 .search-trigger > span {
    display: none;
  }

  .theme-v3 .topbar-right .icon-btn {
    width: 34px;
    height: 34px;
  }

  .theme-v3 .topbar-auth-btn {
    height: 34px;
    padding: 0 8px;
    font-size: 11px;
  }

  .theme-v3 .home-topline {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .theme-v3 .home-top-actions {
    padding-bottom: 0;
  }

  .theme-v3 .home-hero {
    min-height: 300px;
    padding: 28px;
  }

  .theme-v3 .home-hero h2 {
    font-size: 38px;
  }

  .theme-v3 .home-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .theme-v3 .forum-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .theme-v3 .forum-sidebar {
    grid-template-columns: 1fr 1fr;
  }

  .theme-v3 .thread-item {
    grid-template-columns: 42px minmax(0, 1fr) 150px 18px;
  }

  .theme-v3 .category-header-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .theme-v3 .category-header-actions {
    width: 100%;
  }

  .theme-v3 .category-header-actions .btn {
    flex: 1;
  }

  .theme-v3 .page-header-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .theme-v3 .topic-header-card {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  .theme-v3 .topic-title-actions {
    width: 100%;
  }

  .theme-v3 .topic-title-actions .btn {
    flex: 1;
  }

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

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

  .theme-v3 .auth-shell {
    padding-top: 12px;
  }

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

  .theme-v3 .admin-side {
    grid-template-columns: 1fr 1fr;
  }

  .theme-v3 .settings-grid {
    grid-template-columns: 1fr;
  }

  .theme-v3 .settings-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .theme-v3 .container {
    width: calc(100% - 28px);
  }

  .theme-v3 .container-topic {
    width: calc(100% - 28px);
  }

  .theme-v3 .page {
    padding-top: 16px;
  }

  .theme-v3 .topbar {
    padding: 8px 10px 0;
  }

  .theme-v3 .topbar-inner {
    height: 56px;
    border-radius: 13px;
  }

  .theme-v3 .brand img {
    width: 86px;
  }

  .theme-v3 .topbar-sep {
    display: none;
  }

  .theme-v3 .topbar-auth-btn {
    display: none;
  }

  .theme-v3 .user-chip-name {
    display: none;
  }

  .theme-v3 .user-chip {
    width: 34px;
    height: 34px;
    padding: 3px;
    border: 0;
    background: transparent;
  }

  .theme-v3 .user-chip .icon {
    display: none;
  }

  .theme-v3 .home-title {
    font-size: 36px;
  }

  .theme-v3 .home-sub {
    font-size: 12px;
  }

  .theme-v3 .home-hero {
    min-height: 280px;
    margin-top: 16px;
    padding: 23px;
    border-radius: 19px;
  }

  .theme-v3 .home-hero h2 {
    font-size: 33px;
  }

  .theme-v3 .home-hero p {
    font-size: 11.5px;
  }

  .theme-v3 .home-hero-actions .btn {
    height: 35px;
  }

  .theme-v3 .home-metrics {
    gap: 7px;
    margin-top: 10px;
  }

  .theme-v3 .metric-card {
    min-height: 68px;
    padding: 11px;
    border-radius: 13px;
  }

  .theme-v3 .metric-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .theme-v3 .metric-card b {
    font-size: 16px;
  }

  .theme-v3 .metric-card span:not(.metric-icon) {
    font-size: 8.5px;
  }

  .theme-v3 .home-layout {
    margin-top: 20px;
  }

  .theme-v3 .section-heading {
    align-items: flex-start;
  }

  .theme-v3 .section-heading h2 {
    font-size: 21px;
  }

  .theme-v3 .category-section {
    margin-bottom: 22px;
  }

  .theme-v3 .category-card {
    min-height: 196px;
    padding: 15px;
  }

  .theme-v3 .category-card > p {
    font-size: 10.5px;
  }

  .theme-v3 .category-card-title-row h3 {
    font-size: 16px;
  }

  .theme-v3 .knowledge-card {
    padding: 14px;
  }

  .theme-v3 .forum-sidebar {
    grid-template-columns: 1fr;
  }

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

  .theme-v3 .admin-side {
    grid-template-columns: 1fr;
  }

  .theme-v3 .settings-side {
    grid-template-columns: 1fr;
  }

  .theme-v3 .threads-toolbar {
    flex-wrap: wrap;
    padding: 7px;
  }

  .theme-v3 .thread-tabs {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .theme-v3 .thread-tabs::-webkit-scrollbar {
    display: none;
  }

  .theme-v3 .thread-tab {
    white-space: nowrap;
  }

  .theme-v3 .thread-toolbar-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .theme-v3 .thread-item {
    grid-template-columns: 36px minmax(0, 1fr) 18px;
    gap: 9px;
    padding: 12px;
  }

  .theme-v3 .thread-item-avatar .avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .theme-v3 .thread-item-title {
    font-size: 12.5px;
  }

  .theme-v3 .thread-item-meta {
    gap: 4px;
    font-size: 9px;
  }

  .theme-v3 .thread-category,
  .theme-v3 .thread-inline-tag {
    display: none;
  }

  .theme-v3 .thread-last-col {
    display: none;
  }

  .theme-v3 .thread-row-arrow {
    display: grid;
  }

  .theme-v3 .threads-footer {
    padding-top: 8px;
  }

  .theme-v3 .threads-footer span:last-child {
    display: none;
  }

  .theme-v3 .page-title {
    font-size: 29px;
  }

  .theme-v3 .page-sub {
    font-size: 11.5px;
  }

  .theme-v3 .page-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .theme-v3 .page-title-actions {
    width: 100%;
    flex-wrap: wrap;
    padding-bottom: 0;
  }

  .theme-v3 .page-title-actions .btn {
    flex: 1;
  }

  .theme-v3 .home-top-actions .btn {
    flex: 1;
  }

  .theme-v3 .home-top-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .theme-v3 .category-header-card,
  .theme-v3 .page-header-card {
    padding: 17px;
    border-radius: 18px;
    margin-bottom: 14px;
  }

  .theme-v3 .category-header-main {
    align-items: flex-start;
  }

  .theme-v3 .category-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }

  .theme-v3 .category-header-icon .icon {
    width: 21px;
    height: 21px;
  }

  .theme-v3 .category-header-copy h1,
  .theme-v3 .page-header-card h1 {
    font-size: 26px;
  }

  .theme-v3 .category-header-copy p,
  .theme-v3 .page-header-card p {
    font-size: 10.5px;
  }

  .theme-v3 .category-header-actions {
    margin-top: 2px;
  }

  .theme-v3 .notice {
    margin: 13px 0 15px;
    padding: 10px;
    border-radius: 13px;
  }

  .theme-v3 .notice-text {
    padding-right: 18px;
    font-size: 10.5px;
  }

  .theme-v3 .notice-actions {
    margin-left: 38px;
  }

  .theme-v3 .topic-header-card {
    padding: 17px;
    border-radius: 18px;
  }

  .theme-v3 .topic-title {
    font-size: 25px;
  }

  .theme-v3 .topic-subline {
    font-size: 9.5px;
  }

  .theme-v3 .topic-title-actions {
    flex-wrap: wrap;
  }

  .theme-v3 .topic-title-actions .btn span {
    display: inline;
  }

  .theme-v3 .post {
    border-radius: 15px;
  }

  .theme-v3 .post-author {
    padding: 11px 13px;
  }

  .theme-v3 .post-author-avatar {
    flex-wrap: wrap;
    gap: 7px;
  }

  .theme-v3 .post-author-avatar .avatar {
    width: 34px;
    height: 34px;
  }

  .theme-v3 .post-author-name {
    font-size: 11px;
  }

  .theme-v3 .post-head {
    padding: 5px 14px;
  }

  .theme-v3 .post-body {
    padding: 4px 14px 16px;
    font-size: 13px;
  }

  .theme-v3 .post-foot {
    padding: 5px 9px;
  }

  .theme-v3 .post-react {
    font-size: 9px;
    padding: 0 7px;
  }

  .theme-v3 .profile-cover {
    height: 145px;
  }

  .theme-v3 .profile-identity {
    padding: 0 15px 14px;
    gap: 10px;
  }

  .theme-v3 .profile-avatar-wrap {
    margin-top: -41px;
  }

  .theme-v3 .profile-avatar-wrap .avatar {
    width: 84px;
    height: 84px;
    border-width: 3px;
  }

  .theme-v3 .profile-name-row h1 {
    font-size: 22px;
  }

  .theme-v3 .profile-status-line {
    font-size: 9.5px;
  }

  .theme-v3 .profile-stat {
    padding: 11px 14px;
  }

  .theme-v3 .profile-stat b {
    font-size: 17px;
  }

  .theme-v3 .profile-tabs {
    gap: 3px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .theme-v3 .profile-tabs::-webkit-scrollbar {
    display: none;
  }

  .theme-v3 .profile-tab {
    flex-shrink: 0;
    height: 32px;
    padding: 0 11px;
    font-size: 9.5px;
  }

  .theme-v3 .members-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .theme-v3 .members-toolbar {
    padding: 8px;
  }

  .theme-v3 .member-search {
    max-width: none;
    flex-basis: 100%;
  }

  .theme-v3 .member-filters {
    width: 100%;
    overflow-x: auto;
  }

  .theme-v3 .auth-page {
    padding-top: 10px;
  }

  .theme-v3 .auth-card {
    padding: 19px;
    border-radius: 18px;
  }

  .theme-v3 .auth-card-head h1 {
    font-size: 22px;
  }

  .theme-v3 .form-layout {
    margin-top: 12px;
  }

  .theme-v3 .form-panel {
    border-radius: 15px;
  }

  .theme-v3 .form-body {
    padding: 14px;
  }

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

  .theme-v3 .footer-main {
    padding: 32px 0 24px;
  }

  .theme-v3 .footer-links {
    gap: 24px;
  }

  .theme-v3 .site-footer {
    margin-top: 32px;
  }
}

@media (max-width: 520px) {
  .theme-v3 .home-title {
    font-size: 32px;
  }

  .theme-v3 .home-hero {
    min-height: 265px;
    padding: 19px;
  }

  .theme-v3 .home-hero h2 {
    font-size: 28px;
  }

  .theme-v3 .home-hero p {
    font-size: 10.5px;
  }

  .theme-v3 .home-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .theme-v3 .home-hero-actions .btn {
    padding: 0 10px;
    font-size: 9.5px;
  }

  .theme-v3 .home-hero-actions .btn .icon {
    display: none;
  }

  .theme-v3 .home-hero-kicker {
    font-size: 7.5px;
  }

  .theme-v3 .metric-card {
    gap: 8px;
    padding: 10px;
  }

  .theme-v3 .metric-icon {
    width: 30px;
    height: 30px;
  }

  .theme-v3 .metric-card b {
    font-size: 15px;
  }

  .theme-v3 .category-card-stats {
    gap: 8px;
  }

  .theme-v3 .category-header-main {
    gap: 11px;
  }

  .theme-v3 .category-header-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .theme-v3 .page-header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .theme-v3 .topic-title-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .theme-v3 .topic-title-actions .btn:first-child {
    grid-column: 1 / -1;
  }

  .theme-v3 .post-author-avatar .role-bar {
    font-size: 7px;
    min-height: 18px;
    padding: 2px 6px;
  }

  .theme-v3 .profile-actions {
    width: 100%;
  }

  .theme-v3 .profile-actions .btn {
    flex: 1;
  }

  .theme-v3 .profile-stat-bar {
    grid-template-columns: 1fr 1fr;
  }

  .theme-v3 .profile-stat {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .theme-v3 .profile-stat:nth-child(2) {
    border-right: 0;
  }

  .theme-v3 .profile-stat:nth-child(3),
  .theme-v3 .profile-stat:nth-child(4) {
    border-bottom: 0;
  }

  .theme-v3 .profile-avatar-wrap .avatar {
    width: 74px;
    height: 74px;
  }

  .theme-v3 .profile-avatar-wrap {
    margin-top: -36px;
  }

  .theme-v3 .profile-name-row h1 {
    font-size: 20px;
  }

  .theme-v3 .home-top-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .theme-v3 .home-top-actions .online-pill {
    justify-self: start;
  }

  .theme-v3 .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .theme-v3 .thread-section-label {
    padding-top: 10px;
  }

  .theme-v3 .search-page-form input {
    flex-basis: 100%;
  }

  .theme-v3 .search-page-form .btn {
    width: 100%;
  }

  .theme-v3 .notice-actions {
    margin-left: 0;
  }
}

/* ---------------- Legibility & balance pass ---------------- */

.theme-v3 .thread-item-title {
  font-size: 14px;
}

.theme-v3 .thread-item-meta {
  font-size: 10.5px;
}

.theme-v3 .thread-category {
  height: 19px;
  font-size: 9px;
}

.theme-v3 .thread-inline-tag {
  height: 18px;
  font-size: 8.5px;
}

.theme-v3 .thread-inline-stat {
  font-size: 10px;
}

.theme-v3 .thread-last-name {
  font-size: 10.5px;
}

.theme-v3 .thread-last-time {
  font-size: 9.5px;
}

.theme-v3 .thread-section-label {
  font-size: 9.5px;
}

.theme-v3 .category-card-title-row h3 {
  font-size: 17.5px;
}

.theme-v3 .category-card > p {
  font-size: 12.5px;
}

.theme-v3 .category-card-stats {
  font-size: 10.5px;
}

.theme-v3 .category-latest-title {
  font-size: 11.5px;
}

.theme-v3 .category-latest-meta {
  font-size: 9.5px;
}

.theme-v3 .metric-card span:not(.metric-icon) {
  font-size: 10.5px;
}

.theme-v3 .widget-title {
  font-size: 11.5px;
}

.theme-v3 .recent-title {
  font-size: 11.5px;
}

.theme-v3 .recent-meta {
  font-size: 9.5px;
}

.theme-v3 .stats-row {
  font-size: 11px;
}

.theme-v3 .stats-row b {
  font-size: 11px;
}

.theme-v3 .profile-online-copy b {
  font-size: 11.5px;
}

.theme-v3 .profile-online-copy span {
  font-size: 9px;
}

.theme-v3 .product-copy {
  font-size: 11px;
}

.theme-v3 .product-list li {
  font-size: 10px;
}

.theme-v3 .profile-bio {
  font-size: 12.5px;
}

.theme-v3 .profile-meta-cell b {
  font-size: 11px;
}

.theme-v3 .profile-activity-title {
  font-size: 12px;
}

.theme-v3 .profile-activity-excerpt {
  font-size: 10.5px;
}

.theme-v3 .achievement b {
  font-size: 10.5px;
}

.theme-v3 .post-head-time {
  font-size: 10px;
}

.theme-v3 .post-react {
  font-size: 10px;
}

.theme-v3 .post-body {
  font-size: 14.5px;
}

@media (min-width: 1280px) {
  .theme-v3 .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 769px) and (max-width: 1279px) {
  .theme-v3 .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .theme-v3 .category-grid {
    grid-template-columns: 1fr;
  }
  .theme-v3 .thread-item-title {
    font-size: 12.5px;
  }
  .theme-v3 .thread-item-meta {
    font-size: 9.5px;
  }
  .theme-v3 .post-body {
    font-size: 13px;
  }
}

/* ---------------- Native controls polish ---------------- */

.theme-v3 input[type="file"] {
  width: 100%;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(8, 9, 13, 0.55);
  color: #8f93a2;
  font-size: 11px;
}

.theme-v3 input[type="file"]::file-selector-button {
  height: 30px;
  margin-right: 10px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #dfe1eb;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}

.theme-v3 input[type="file"]::file-selector-button:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.09);
}

.theme-v3 .text-input:focus,
.theme-v3 .textarea-input:focus,
.theme-v3 .select-input:focus,
.theme-v3 .editor-input:focus,
.theme-v3 input[type="file"]:focus {
  border-color: rgba(109, 131, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(109, 131, 255, 0.12);
  outline: 0;
}

.theme-v3 select option {
  background: #12141b;
  color: #d3d5df;
}

.theme-v3 .checkbox-row input[type="checkbox"],
.theme-v3 .tag-option input {
  accent-color: #6d83ff;
}

@media (max-width: 900px) {
  .theme-v3 .bg-ambient::before {
    background-size: 1720px auto;
  }
}

@media (max-width: 600px) {
  .theme-v3 .bg-ambient::before {
    background-size: 1440px auto;
  }
}

/* ---------------- Leadership panel ---------------- */

.theme-v3 .leadership-page {
  padding-top: 24px;
}

.theme-v3 .leadership-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(70% 160% at 100% 0%, rgba(255, 48, 72, 0.1), transparent 55%),
    radial-gradient(60% 120% at 0% 100%, rgba(109, 131, 255, 0.08), transparent 60%),
    rgba(15, 16, 22, 0.92);
}

.theme-v3 .leadership-hero h1 {
  margin-top: 3px;
  color: #f4f5f9;
  font-size: 33px;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.theme-v3 .leadership-hero p {
  margin-top: 5px;
  color: #9397a6;
  font-size: 12px;
}

.theme-v3 .leadership-hero-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.theme-v3 .leadership-hero--compact {
  align-items: flex-start;
}

.theme-v3 .leadership-target {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.theme-v3 .leadership-target .avatar {
  width: 62px;
  height: 62px;
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.theme-v3 .leadership-target-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 9px;
}

.theme-v3 .leadership-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.theme-v3 .leadership-stat {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 16, 22, 0.9);
}

.theme-v3 .leadership-stat span {
  color: #717584;
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.theme-v3 .leadership-stat b {
  display: block;
  margin-top: 4px;
  color: #eef0f6;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.theme-v3 .leadership-tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.theme-v3 .leadership-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: #9296a5;
  font-size: 10.5px;
  transition: color 0.16s, background 0.16s, border-color 0.16s;
}

.theme-v3 .leadership-tabs a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.theme-v3 .leadership-tabs .icon {
  width: 12px;
  height: 12px;
}

.theme-v3 .leadership-section {
  margin-top: 27px;
  scroll-margin-top: 90px;
}

.theme-v3 .leadership-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.theme-v3 .leadership-section-head h2 {
  margin-top: 3px;
  color: #f1f2f7;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.theme-v3 .leadership-section-head p {
  margin-top: 3px;
  color: #828696;
  font-size: 10.5px;
}

.theme-v3 .leadership-search {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 280px;
  padding: 5px 6px 5px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(15, 16, 22, 0.86);
}

.theme-v3 .leadership-search .icon {
  width: 14px;
  height: 14px;
  color: #737786;
}

.theme-v3 .leadership-search input {
  min-width: 0;
  flex: 1;
  height: 28px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #d8dae4;
  font: inherit;
  font-size: 11px;
}

.theme-v3 .leadership-search input::placeholder {
  color: #666a79;
}

.theme-v3 .leadership-user-list,
.theme-v3 .leadership-blocks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.theme-v3 .leadership-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 16, 22, 0.9);
  transition: border-color 0.16s, background 0.16s;
}

.theme-v3 .leadership-user-row:hover {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(19, 21, 28, 0.96);
}

.theme-v3 .leadership-user-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  flex: 1;
}

.theme-v3 .leadership-user-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.theme-v3 .leadership-user-name {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #e4e6ee;
  font-size: 12px;
  font-weight: 550;
}

.theme-v3 .leadership-user-meta {
  color: #767a89;
  font-size: 8.5px;
}

.theme-v3 .leadership-owner-tag {
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 5px;
  border: 1px solid rgba(255, 48, 72, 0.24);
  border-radius: 999px;
  background: rgba(255, 48, 72, 0.08);
  color: #ff9aaa;
  font-size: 6.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.theme-v3 .leadership-user-plaque {
  min-width: 122px;
}

.theme-v3 .leadership-user-perms {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 92px;
  color: #858998;
  font-size: 9px;
}

.theme-v3 .leadership-user-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.theme-v3 .leadership-user-actions .btn {
  height: 29px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 9px;
}

.theme-v3 .leadership-user-actions .btn.is-active {
  border-color: rgba(109, 131, 255, 0.25);
  background: rgba(109, 131, 255, 0.1);
  color: #bdc8ff;
}

.theme-v3 .leadership-user-actions .form-inline {
  display: flex;
  gap: 4px;
}

.theme-v3 .role-color-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.12);
}

.theme-v3 .dot-sep {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #5d6170;
}

.theme-v3 .leadership-empty {
  padding: 30px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #818594;
  font-size: 11px;
  text-align: center;
}

.theme-v3 .leadership-role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.theme-v3 .leadership-role-card {
  display: flex;
  flex-direction: column;
  min-height: 150px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(15, 16, 22, 0.9);
  transition: border-color 0.16s, background 0.16s;
}

.theme-v3 .leadership-role-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(20, 22, 29, 0.97);
}

.theme-v3 .leadership-role-preview {
  min-height: 33px;
  display: flex;
  align-items: flex-start;
}

.theme-v3 .leadership-role-name {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: #e3e5ee;
  font-size: 12.5px;
  font-weight: 550;
}

.theme-v3 .leadership-role-name span {
  height: 16px;
  padding: 0 5px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: #737786;
  font-size: 6.5px;
  font-weight: 400;
  line-height: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.theme-v3 .leadership-role-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  color: #7e8291;
  font-size: 8.5px;
}

.theme-v3 .leadership-role-base {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  color: #666a79;
  font-size: 7.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.theme-v3 .leadership-role-add {
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-style: dashed;
  border-color: rgba(109, 131, 255, 0.24);
  background: rgba(109, 131, 255, 0.035);
  color: #8d9be4;
  text-align: center;
}

.theme-v3 .leadership-role-add:hover {
  border-color: rgba(109, 131, 255, 0.42);
  background: rgba(109, 131, 255, 0.07);
}

.theme-v3 .leadership-role-add .icon {
  width: 20px;
  height: 20px;
  margin-bottom: 3px;
}

.theme-v3 .leadership-role-add b {
  font-size: 11.5px;
  font-weight: 550;
}

.theme-v3 .leadership-role-add span {
  color: #737786;
  font-size: 8.5px;
}

.theme-v3 .leadership-block-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 61px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(15, 16, 22, 0.9);
  transition: border-color 0.16s, background 0.16s, opacity 0.16s;
}

.theme-v3 .leadership-block-row:hover {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(19, 21, 28, 0.96);
}

.theme-v3 .leadership-block-row.is-dragging {
  opacity: 0.45;
}

.theme-v3 .leadership-block-row.is-drag-over {
  border-color: rgba(109, 131, 255, 0.4);
  background: rgba(109, 131, 255, 0.08);
}

.theme-v3 .drag-handle {
  display: grid;
  place-items: center;
  width: 24px;
  height: 30px;
  color: #626675;
  cursor: grab;
  flex-shrink: 0;
}

.theme-v3 .drag-handle:active {
  cursor: grabbing;
}

.theme-v3 .drag-handle .icon {
  width: 14px;
  height: 14px;
}

.theme-v3 .leadership-block-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(109, 131, 255, 0.2);
  border-radius: 9px;
  background: rgba(109, 131, 255, 0.07);
  color: #a6b3ff;
  flex-shrink: 0;
}

.theme-v3 .leadership-block-icon .icon {
  width: 16px;
  height: 16px;
}

.theme-v3 .leadership-block-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 150px;
  flex: 1;
}

.theme-v3 .leadership-block-copy b {
  color: #dfe1ea;
  font-size: 11.5px;
  font-weight: 550;
}

.theme-v3 .leadership-block-copy span {
  color: #737786;
  font-size: 8.5px;
}

.theme-v3 .leadership-block-stats {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #787c8b;
  font-size: 8.5px;
}

.theme-v3 .leadership-block-stats b {
  color: #b3b7c4;
  font-weight: 500;
}

.theme-v3 .leadership-block-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.theme-v3 .leadership-block-actions .form-inline {
  display: flex;
  gap: 2px;
}

.theme-v3 .leadership-block-actions .icon-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  color: #7f8392;
}

.theme-v3 .leadership-block-actions .icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.theme-v3 .leadership-block-actions .icon-btn:disabled,
.theme-v3 .leadership-block-actions .icon-btn.is-disabled {
  opacity: 0.3;
  pointer-events: none;
}

.theme-v3 .leadership-block-actions .icon-btn.danger:hover {
  color: #ff8e9a;
  background: rgba(255, 70, 90, 0.08);
}

.theme-v3 .leadership-block-actions .icon {
  width: 13px;
  height: 13px;
}

.theme-v3 .leadership-edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 16px;
  align-items: start;
  margin-top: 14px;
}

.theme-v3 .leadership-panel {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(15, 16, 22, 0.9);
  overflow: hidden;
}

.theme-v3 .leadership-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 17px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.theme-v3 .leadership-panel-head h2,
.theme-v3 .leadership-panel-head h3 {
  margin-top: 2px;
  color: #e9ebf3;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.theme-v3 .leadership-panel-head h3 {
  font-size: 13px;
}

.theme-v3 .leadership-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.theme-v3 .leadership-field .form-label {
  margin: 0;
}

.theme-v3 .leadership-hint {
  color: #6f7382;
  font-size: 8.5px;
  line-height: 1.5;
}

.theme-v3 .leadership-color-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.theme-v3 .leadership-color-input {
  width: 44px;
  height: 34px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(8, 9, 13, 0.6);
  cursor: pointer;
}

.theme-v3 .leadership-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.theme-v3 .leadership-color-input::-webkit-color-swatch {
  border: 0;
  border-radius: 5px;
}

.theme-v3 .leadership-color-value {
  color: #b9bdc9;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.theme-v3 .leadership-color-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: #8b8f9e;
  font-size: 9px;
}

.theme-v3 .leadership-color-toggle input {
  accent-color: #6d83ff;
}

.theme-v3 .leadership-fixed-field {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  color: #777b8a;
  font-size: 9px;
}

.theme-v3 .leadership-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.theme-v3 .leadership-form-grid .leadership-field:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.045);
}

.theme-v3 .leadership-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding: 13px 17px;
}

.theme-v3 .leadership-side {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.theme-v3 .leadership-side-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 2px 15px 8px;
}

.theme-v3 .leadership-side-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #777b8a;
  font-size: 9px;
}

.theme-v3 .leadership-side-list > div:last-child {
  border-bottom: 0;
}

.theme-v3 .leadership-side-list b {
  color: #c4c7d2;
  font-size: 9.5px;
  font-weight: 500;
  text-align: right;
}

.theme-v3 .leadership-quick-roles {
  padding: 12px 15px 15px;
}

.theme-v3 .leadership-quick-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.theme-v3 .leadership-quick-form .btn {
  justify-content: flex-start;
}

.theme-v3 .leadership-preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 15px;
}

.theme-v3 .leadership-preview-box .leadership-hint {
  text-align: center;
}

.theme-v3 .leadership-permissions {
  padding: 14px 17px 16px;
}

.theme-v3 .leadership-permissions-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.theme-v3 .leadership-permissions-head h3 {
  margin-top: 2px;
  color: #dfe1ea;
  font-size: 13px;
  font-weight: 600;
}

.theme-v3 .permission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.theme-v3 .permission-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s;
}

.theme-v3 .permission-option:hover {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.035);
}

.theme-v3 .permission-option.is-checked {
  border-color: rgba(109, 131, 255, 0.28);
  background: rgba(109, 131, 255, 0.08);
}

.theme-v3 .permission-option input {
  width: 13px;
  height: 13px;
  margin-top: 3px;
  accent-color: #6d83ff;
  flex-shrink: 0;
}

.theme-v3 .permission-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  color: #7f8393;
  flex-shrink: 0;
}

.theme-v3 .permission-icon .icon {
  width: 12px;
  height: 12px;
}

.theme-v3 .permission-option b {
  display: block;
  color: #bfc2ce;
  font-size: 9.5px;
  font-weight: 550;
}

.theme-v3 .permission-option span span {
  display: block;
  margin-top: 2px;
  color: #737786;
  font-size: 8px;
  line-height: 1.4;
}

.theme-v3 .leadership-permissions.is-disabled {
  opacity: 0.55;
}

.theme-v3 .leadership-danger-panel {
  border-color: rgba(255, 90, 105, 0.2);
}

.theme-v3 .leadership-danger-panel .leadership-panel-head {
  border-bottom-color: rgba(255, 90, 105, 0.12);
}

.theme-v3 .leadership-danger-panel .leadership-hint {
  padding: 11px 15px 4px;
}

.theme-v3 .leadership-danger-panel form {
  padding: 8px 15px 15px;
}

.theme-v3 .leadership-danger-panel .btn.danger {
  color: #ff9aa5;
  border-color: rgba(255, 90, 105, 0.18);
  background: rgba(255, 90, 105, 0.06);
}

.theme-v3 .leadership-danger-panel .btn.danger:hover {
  color: #fff;
  background: rgba(255, 90, 105, 0.14);
}

@media (max-width: 1100px) {
  .theme-v3 .leadership-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .theme-v3 .leadership-role-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .theme-v3 .leadership-user-row {
    flex-wrap: wrap;
  }

  .theme-v3 .leadership-user-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

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

  .theme-v3 .leadership-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .theme-v3 .leadership-hero {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .theme-v3 .leadership-stats {
    grid-template-columns: 1fr 1fr;
  }

  .theme-v3 .leadership-role-grid {
    grid-template-columns: 1fr 1fr;
  }

  .theme-v3 .leadership-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .theme-v3 .leadership-search {
    width: 100%;
    min-width: 0;
  }

  .theme-v3 .leadership-user-row {
    gap: 8px;
    padding: 10px;
  }

  .theme-v3 .leadership-user-main {
    min-width: 0;
    flex-basis: 100%;
  }

  .theme-v3 .leadership-user-plaque {
    min-width: 0;
  }

  .theme-v3 .leadership-user-perms {
    min-width: 0;
  }

  .theme-v3 .leadership-block-row {
    flex-wrap: wrap;
  }

  .theme-v3 .leadership-block-copy {
    min-width: 0;
    flex-basis: calc(100% - 82px);
  }

  .theme-v3 .leadership-block-stats {
    margin-left: 34px;
  }

  .theme-v3 .leadership-block-actions {
    margin-left: auto;
  }

  .theme-v3 .permission-grid {
    grid-template-columns: 1fr;
  }

  .theme-v3 .leadership-form-grid {
    grid-template-columns: 1fr;
  }

  .theme-v3 .leadership-form-grid .leadership-field:first-child {
    border-right: 0;
  }

  .theme-v3 .leadership-side {
    grid-template-columns: 1fr;
  }

  .theme-v3 .leadership-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .theme-v3 .leadership-tabs::-webkit-scrollbar {
    display: none;
  }

  .theme-v3 .leadership-tabs a {
    flex-shrink: 0;
  }
}

@media (max-width: 520px) {
  .theme-v3 .leadership-hero {
    padding: 17px;
    border-radius: 18px;
  }

  .theme-v3 .leadership-hero h1 {
    font-size: 26px;
  }

  .theme-v3 .leadership-target {
    align-items: flex-start;
  }

  .theme-v3 .leadership-target .avatar {
    width: 48px;
    height: 48px;
  }

  .theme-v3 .leadership-role-grid {
    grid-template-columns: 1fr;
  }

  .theme-v3 .leadership-user-actions .form-inline {
    flex-wrap: wrap;
  }

  .theme-v3 .leadership-block-stats {
    margin-left: 0;
    flex-basis: 100%;
  }
}

.theme-v3 .privilege-plaque-stack {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  vertical-align: middle;
}

.theme-v3 .privilege-plaque-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #9b9fae;
  font-size: 8px;
  font-weight: 600;
}

.theme-v3 .role-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.theme-v3 .role-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s;
}

.theme-v3 .role-choice:hover {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.035);
}

.theme-v3 .role-choice.is-checked {
  border-color: rgba(109, 131, 255, 0.28);
  background: rgba(109, 131, 255, 0.08);
}

.theme-v3 .role-choice input {
  width: 13px;
  height: 13px;
  accent-color: #6d83ff;
  flex-shrink: 0;
}

.theme-v3 .role-choice-plaque {
  display: flex;
  align-items: flex-start;
  min-width: 92px;
}

.theme-v3 .role-choice-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.theme-v3 .role-choice-copy b {
  color: #cdd0db;
  font-size: 9px;
  font-weight: 550;
}

.theme-v3 .role-choice-copy span {
  color: #717584;
  font-size: 7.5px;
}

.theme-v3 .role-choice input:disabled ~ .role-choice-plaque,
.theme-v3 .role-choice input:disabled ~ .role-choice-copy {
  opacity: 0.55;
}

@media (max-width: 768px) {
  .theme-v3 .role-picker {
    grid-template-columns: 1fr;
  }
}

/* ---------------- Neon role usernames ---------------- */

.theme-v3 .neon-name {
  color: #f7f8ff;
  text-shadow:
    0 0 3px var(--neon-strong),
    0 0 9px var(--neon-soft),
    0 0 22px var(--neon-soft),
    0 0 42px var(--neon-soft);
}

.theme-v3 .neon-name--soft {
  text-shadow:
    0 0 2px var(--neon-strong),
    0 0 7px var(--neon-soft),
    0 0 18px var(--neon-soft);
}

.theme-v3 .profile-name-row h1.neon-name {
  color: #fff;
}

/* ---------------- Role selector ---------------- */

.theme-v3 .role-selector {
  margin: 0 0 20px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(70% 160% at 100% 0%, rgba(109, 131, 255, 0.08), transparent 55%),
    rgba(15, 16, 22, 0.92);
}

.theme-v3 .role-selector-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}

.theme-v3 .role-selector-head h2 {
  margin-top: 3px;
  color: #f1f2f7;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.theme-v3 .role-selector-head p {
  margin-top: 3px;
  color: #838796;
  font-size: 10.5px;
}

.theme-v3 .role-selector-user {
  color: #777b8a;
  font-size: 9.5px;
}

.theme-v3 .role-selector-user b {
  font-weight: 500;
}

.theme-v3 .role-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 8px;
}

.theme-v3 .role-select-card {
  --choice-color: #6d83ff;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 175px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--choice-color) 13%, transparent), transparent 62%),
    rgba(18, 20, 27, 0.9);
  overflow: hidden;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.theme-v3 .role-select-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--choice-color);
  opacity: 0.65;
}

.theme-v3 .role-select-card:hover {
  border-color: color-mix(in srgb, var(--choice-color) 36%, rgba(255, 255, 255, 0.12));
  background:
    radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--choice-color) 20%, transparent), transparent 62%),
    rgba(22, 24, 32, 0.96);
  transform: translateY(-2px);
}

.theme-v3 .role-select-card.is-selected {
  border-color: color-mix(in srgb, var(--choice-color) 52%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--choice-color) 16%, transparent),
    0 14px 34px -24px var(--choice-color);
}

.theme-v3 .role-select-top {
  min-height: 68px;
}

.theme-v3 .role-select-kicker {
  color: #717584;
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.theme-v3 .role-select-top h3 {
  margin-top: 5px;
  color: #f2f3f8;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.theme-v3 .role-select-top p {
  margin-top: 4px;
  color: #858998;
  font-size: 9.5px;
}

.theme-v3 .role-select-plaque {
  display: flex;
  align-items: flex-start;
  min-height: 34px;
  margin-top: 4px;
}

.theme-v3 .role-select-action {
  margin-top: auto;
}

.theme-v3 .role-select-action form,
.theme-v3 .role-select-action .btn {
  width: 100%;
}

.theme-v3 .role-select-action .btn {
  height: 33px;
  border-radius: 9px;
  font-size: 10px;
}

.theme-v3 .role-selected-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  height: 33px;
  border: 1px solid color-mix(in srgb, var(--choice-color) 35%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--choice-color) 15%, transparent);
  color: #e9ebf3;
  font-size: 10px;
  font-weight: 550;
}

.theme-v3 .role-selected-badge .icon {
  width: 12px;
  height: 12px;
}

.theme-v3 .role-selector-note {
  margin-top: 11px;
  color: #656978;
  font-size: 8.5px;
}

@media (max-width: 768px) {
  .theme-v3 .role-selector {
    padding: 14px;
  }

  .theme-v3 .role-selector-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }

  .theme-v3 .role-selector-head h2 {
    font-size: 21px;
  }

  .theme-v3 .role-select-grid {
    grid-template-columns: 1fr 1fr;
  }

  .theme-v3 .role-select-card {
    min-height: 164px;
    padding: 12px;
  }

  .theme-v3 .role-select-top h3 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .theme-v3 .role-select-grid {
    grid-template-columns: 1fr;
  }

  .theme-v3 .role-select-card {
    min-height: 150px;
  }
}

/* ---------------- Leadership role choices ---------------- */

.theme-v3 .role-choice-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 12px;
  align-items: start;
}

.theme-v3 .role-choice-admin-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.theme-v3 .role-choice-admin-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 55px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 16, 22, 0.9);
}

.theme-v3 .role-choice-admin-plaque {
  min-width: 100px;
}

.theme-v3 .role-choice-admin-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.theme-v3 .role-choice-admin-copy b {
  color: #dfe1ea;
  font-size: 11px;
  font-weight: 550;
}

.theme-v3 .role-choice-admin-copy span {
  color: #777b8a;
  font-size: 8.5px;
}

.theme-v3 .role-choice-admin-sort {
  color: #646877;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 8px;
}

.theme-v3 .role-choice-admin-row .icon-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  color: #7f8392;
}

.theme-v3 .role-choice-admin-row .icon-btn.danger:hover {
  color: #ff8e9a;
  background: rgba(255, 70, 90, 0.08);
}

.theme-v3 .role-choice-admin-row .icon {
  width: 13px;
  height: 13px;
}

.theme-v3 .role-choice-admin-form .leadership-field {
  padding-top: 10px;
  padding-bottom: 10px;
}

.theme-v3 .role-choice-admin-form .leadership-form-actions {
  padding-top: 10px;
}

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

@media (max-width: 520px) {
  .theme-v3 .role-choice-admin-row {
    flex-wrap: wrap;
  }

  .theme-v3 .role-choice-admin-plaque {
    min-width: 0;
  }

  .theme-v3 .role-choice-admin-copy {
    flex-basis: calc(100% - 120px);
  }
}

.theme-v3 .hero-editor-preview {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  border-radius: 0 0 17px 17px;
}

.theme-v3 .hero-editor-preview img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.theme-v3 .hero-editor-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 8, 12, 0.9), transparent 75%);
  pointer-events: none;
}

.theme-v3 .hero-editor-preview-copy {
  position: absolute;
  z-index: 1;
  left: 14px;
  right: 14px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.theme-v3 .hero-editor-preview-copy b {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.theme-v3 .hero-editor-preview-copy span {
  color: #b9a7ff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.theme-v3 .leadership-panel-head--sub {
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.theme-v3 .leadership-field-note {
  margin-top: -8px;
  padding-top: 0;
  border-bottom: 0;
}

/* ---------------- Buy cheats / shop ---------------- */

.theme-v3 .topbar-nav a.buy-nav {
  color: #dfe4ff;
  background: rgba(109, 131, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(109, 131, 255, 0.1);
}

.theme-v3 .topbar-nav a.buy-nav:hover {
  color: #fff;
  background: rgba(109, 131, 255, 0.2);
}

.theme-v3 .topbar-nav a.buy-nav.active {
  background: rgba(109, 131, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(109, 131, 255, 0.22);
}

.theme-v3 .mobile-nav a.buy-nav-mobile {
  color: #dfe4ff;
  background: rgba(109, 131, 255, 0.1);
}

.theme-v3 .shop-page {
  padding-top: 24px;
}

.theme-v3 .shop-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 280px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  background:
    radial-gradient(90% 160% at 100% 0%, rgba(109, 131, 255, 0.18), transparent 58%),
    radial-gradient(70% 120% at 0% 100%, rgba(160, 107, 255, 0.1), transparent 60%),
    rgba(13, 14, 20, 0.94);
  overflow: hidden;
  isolation: isolate;
}

.theme-v3 .shop-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.15;
  -webkit-mask-image: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.8));
  mask-image: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.8));
}

.theme-v3 .shop-hero-copy {
  max-width: 610px;
}

.theme-v3 .shop-hero h1 {
  margin-top: 5px;
  color: #fff;
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.theme-v3 .shop-hero p {
  margin-top: 12px;
  color: #a7abb9;
  font-size: 12.5px;
  line-height: 1.65;
}

.theme-v3 .shop-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.theme-v3 .shop-hero-actions .btn {
  height: 40px;
  font-size: 11.5px;
}

.theme-v3 .shop-hero-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: #777b8a;
  font-size: 9px;
}

.theme-v3 .shop-hero-stats b {
  color: #d9dbe5;
  font-weight: 550;
}

.theme-v3 .shop-hero-mark {
  position: relative;
  width: 300px;
  height: 190px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  overflow: hidden;
  transform: rotate(2deg);
  box-shadow: 0 28px 60px -30px rgba(0, 0, 0, 0.9);
}

.theme-v3 .shop-hero-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.8);
}

.theme-v3 .shop-hero-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 8, 12, 0.8), transparent 65%);
}

.theme-v3 .shop-hero-mark-badge {
  position: absolute;
  z-index: 1;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(7, 8, 12, 0.55);
  color: #d8dae4;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
}

.theme-v3 .shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 12px;
}

.theme-v3 .shop-filters {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.theme-v3 .shop-filter {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #8c90a0;
  font-size: 10px;
  transition: color 0.16s, background 0.16s, border-color 0.16s;
}

.theme-v3 .shop-filter:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
}

.theme-v3 .shop-filter.active {
  color: #fff;
  border-color: rgba(109, 131, 255, 0.28);
  background: rgba(109, 131, 255, 0.14);
}

.theme-v3 .shop-toolbar-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #6d7180;
  font-size: 8.5px;
}

.theme-v3 .shop-toolbar-note .icon {
  width: 11px;
  height: 11px;
}

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

.theme-v3 .shop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 16, 22, 0.92);
  overflow: hidden;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}

.theme-v3 .shop-card:hover {
  border-color: color-mix(in srgb, var(--product-color) 40%, rgba(255, 255, 255, 0.12));
  box-shadow: 0 24px 50px -34px var(--product-color);
  transform: translateY(-3px);
}

.theme-v3 .shop-card-art {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 120px;
  padding: 15px;
  background:
    radial-gradient(100% 170% at 100% 0%, color-mix(in srgb, var(--product-color) 34%, transparent), transparent 62%),
    radial-gradient(80% 120% at 0% 100%, color-mix(in srgb, var(--product-color) 13%, transparent), transparent 65%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.045), transparent 55%),
    #0b0c11;
  overflow: hidden;
}

.theme-v3 .shop-card-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.14;
  -webkit-mask-image: linear-gradient(135deg, transparent, #000);
  mask-image: linear-gradient(135deg, transparent, #000);
}

.theme-v3 .shop-card-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid color-mix(in srgb, var(--product-color) 34%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--product-color) 10%, transparent);
  color: var(--product-color);
}

.theme-v3 .shop-card-icon .icon {
  width: 20px;
  height: 20px;
}

.theme-v3 .shop-card-badge,
.theme-v3 .shop-card-status {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 8, 12, 0.45);
  color: #c3c7d4;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}

.theme-v3 .shop-card-badge {
  align-self: flex-start;
  position: absolute;
  top: 15px;
  right: 15px;
  border-color: color-mix(in srgb, var(--product-color) 30%, transparent);
  color: var(--product-color);
}

.theme-v3 .shop-card-status {
  position: absolute;
  right: 15px;
  bottom: 13px;
  color: #9fe8cc;
}

.theme-v3 .shop-card-watermark {
  position: absolute;
  z-index: 0;
  left: 15px;
  bottom: -16px;
  color: rgba(255, 255, 255, 0.045);
  font-size: 58px;
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1;
  pointer-events: none;
}

.theme-v3 .shop-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 15px;
}

.theme-v3 .shop-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.theme-v3 .shop-card-brand {
  color: var(--product-color);
  font-size: 7.5px;
  font-weight: 650;
  letter-spacing: 0.13em;
}

.theme-v3 .shop-card h2 {
  margin-top: 3px;
  color: #f2f3f8;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
}

.theme-v3 .shop-card-tagline {
  max-width: 110px;
  color: #737786;
  font-size: 7.5px;
  text-align: right;
  line-height: 1.4;
}

.theme-v3 .shop-card-description {
  margin-top: 9px;
  min-height: 48px;
  color: #8e92a1;
  font-size: 10px;
  line-height: 1.55;
}

.theme-v3 .shop-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 9px;
}

.theme-v3 .shop-card-features span {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 7px;
  border: 1px solid color-mix(in srgb, var(--product-color) 20%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--product-color) 7%, transparent);
  color: #aeb3c2;
  font-size: 7.5px;
}

.theme-v3 .shop-card-stats {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 11px;
  color: #6d7180;
  font-size: 8px;
}

.theme-v3 .shop-card-stats b {
  color: #c0c4d0;
  font-weight: 550;
}

.theme-v3 .shop-card-actions {
  display: flex;
  gap: 5px;
  margin-top: auto;
  padding-top: 12px;
}

.theme-v3 .shop-card-actions .btn {
  flex: 1;
  height: 34px;
  padding: 0 9px;
  border-radius: 9px;
  font-size: 8.5px;
}

.theme-v3 .shop-card-actions .btn-primary {
  background: linear-gradient(135deg, var(--product-color), color-mix(in srgb, var(--product-color) 55%, #7c5cff));
  box-shadow: 0 10px 24px -16px var(--product-color);
}

.theme-v3 .shop-empty {
  grid-column: 1 / -1;
  padding: 34px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #818594;
  font-size: 11px;
  text-align: center;
}

.theme-v3 .shop-empty a {
  color: #aab8ff;
}

.theme-v3 .shop-more-card {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 11px;
  padding: 15px;
  border: 1px solid rgba(255, 189, 92, 0.16);
  border-radius: 15px;
  background:
    linear-gradient(100deg, rgba(255, 189, 92, 0.065), transparent 55%),
    rgba(15, 16, 22, 0.9);
  transition: border-color 0.18s, background 0.18s;
}

.theme-v3 .shop-more-card:hover {
  border-color: rgba(255, 189, 92, 0.3);
  background:
    linear-gradient(100deg, rgba(255, 189, 92, 0.1), transparent 55%),
    rgba(19, 21, 28, 0.96);
}

.theme-v3 .shop-more-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 189, 92, 0.24);
  border-radius: 11px;
  background: rgba(255, 189, 92, 0.08);
  color: #ffd292;
  flex-shrink: 0;
}

.theme-v3 .shop-more-icon .icon {
  width: 19px;
  height: 19px;
}

.theme-v3 .shop-more-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.theme-v3 .shop-more-copy b {
  color: #e6e8f0;
  font-size: 11.5px;
  font-weight: 600;
}

.theme-v3 .shop-more-copy > span:last-child {
  color: #7d8190;
  font-size: 9px;
}

.theme-v3 .shop-more-stats {
  color: #777b8a;
  font-size: 8.5px;
}

.theme-v3 .shop-more-stats b {
  color: #b8bcc9;
  font-weight: 500;
}

.theme-v3 .shop-more-arrow {
  color: #777b8a;
}

.theme-v3 .shop-more-arrow .icon {
  width: 15px;
  height: 15px;
}

.theme-v3 .shop-risk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 11px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 189, 92, 0.12);
  border-radius: 13px;
  background: rgba(255, 189, 92, 0.035);
}

.theme-v3 .shop-risk-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 189, 92, 0.18);
  border-radius: 8px;
  color: #e8bd76;
  flex-shrink: 0;
}

.theme-v3 .shop-risk-icon .icon {
  width: 14px;
  height: 14px;
}

.theme-v3 .shop-risk b {
  color: #ddc08b;
  font-size: 10px;
  font-weight: 550;
}

.theme-v3 .shop-risk p {
  margin-top: 3px;
  color: #858998;
  font-size: 9px;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .theme-v3 .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-v3 .shop-hero-mark {
    width: 240px;
    height: 160px;
  }
}

@media (max-width: 768px) {
  .theme-v3 .shop-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
    border-radius: 19px;
  }

  .theme-v3 .shop-hero-mark {
    width: 100%;
    height: 160px;
    transform: none;
  }

  .theme-v3 .shop-hero h1 {
    font-size: 38px;
  }

  .theme-v3 .shop-grid {
    grid-template-columns: 1fr;
  }

  .theme-v3 .shop-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .theme-v3 .shop-more-card {
    flex-wrap: wrap;
  }

  .theme-v3 .shop-more-stats {
    margin-left: 55px;
    flex-basis: 100%;
  }

  .theme-v3 .shop-more-arrow {
    margin-left: auto;
  }
}

@media (max-width: 520px) {
  .theme-v3 .shop-hero h1 {
    font-size: 34px;
  }

  .theme-v3 .shop-hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .theme-v3 .shop-hero-actions .btn {
    width: 100%;
  }

  .theme-v3 .shop-hero-stats {
    font-size: 8px;
  }

  .theme-v3 .shop-toolbar-note {
    font-size: 8px;
  }
}

/* ---------------- Shop readability / premium pass ---------------- */

.theme-v3 .shop-hero {
  min-height: 310px;
  padding: 38px 40px;
}

.theme-v3 .shop-hero h1 {
  font-size: clamp(48px, 5.6vw, 68px);
  line-height: 0.95;
}

.theme-v3 .shop-hero p {
  max-width: 560px;
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #b0b4c1;
}

.theme-v3 .shop-hero-actions {
  margin-top: 24px;
}

.theme-v3 .shop-hero-actions .btn {
  height: 42px;
  padding: 0 18px;
  font-size: 12px;
}

.theme-v3 .shop-hero-stats {
  gap: 10px;
  margin-top: 22px;
  font-size: 10.5px;
}

.theme-v3 .shop-hero-stats b {
  font-size: 11px;
}

.theme-v3 .shop-toolbar {
  margin: 22px 0 14px;
}

.theme-v3 .shop-filter {
  height: 36px;
  padding: 0 14px;
  font-size: 11px;
}

.theme-v3 .shop-toolbar-note {
  font-size: 10px;
}

.theme-v3 .shop-featured {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  min-height: 370px;
  margin-bottom: 14px;
  border: 1px solid color-mix(in srgb, var(--product-color) 32%, rgba(255, 255, 255, 0.1));
  border-radius: 24px;
  background:
    radial-gradient(90% 150% at 100% 0%, color-mix(in srgb, var(--product-color) 12%, transparent), transparent 60%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 48%),
    #0d0e14;
  box-shadow:
    0 0 0 1px rgba(232, 196, 119, 0.06),
    0 34px 90px -60px color-mix(in srgb, var(--product-color) 70%, transparent);
  overflow: hidden;
}

.theme-v3 .shop-featured::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.035) 48%, transparent 60%);
}

.theme-v3 .shop-featured-art {
  position: relative;
  min-height: 370px;
  overflow: hidden;
  background:
    radial-gradient(100% 130% at 0% 100%, color-mix(in srgb, var(--product-color) 28%, transparent), transparent 65%),
    #090a0e;
}

.theme-v3 .shop-featured-art > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) brightness(0.9);
}

.theme-v3 .shop-featured-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 30%, rgba(13, 14, 20, 0.72) 100%),
    linear-gradient(0deg, rgba(9, 10, 14, 0.85) 0%, transparent 55%);
}

.theme-v3 .shop-featured-badge,
.theme-v3 .shop-featured-status {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: 0.09em;
}

.theme-v3 .shop-featured-badge {
  top: 20px;
  left: 20px;
  border: 1px solid rgba(232, 196, 119, 0.35);
  background: rgba(28, 24, 14, 0.68);
  color: #f0d190;
  backdrop-filter: blur(10px);
}

.theme-v3 .shop-featured-badge .icon {
  width: 11px;
  height: 11px;
}

.theme-v3 .shop-featured-status {
  right: 20px;
  bottom: 20px;
  border: 1px solid rgba(73, 219, 164, 0.25);
  background: rgba(8, 18, 14, 0.62);
  color: #a7edd1;
  letter-spacing: 0.03em;
  backdrop-filter: blur(10px);
}

.theme-v3 .shop-featured-word {
  position: absolute;
  z-index: 1;
  left: 18px;
  bottom: -18px;
  color: rgba(255, 255, 255, 0.06);
  font-size: 92px;
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1;
  pointer-events: none;
}

.theme-v3 .shop-featured-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 36px;
}

.theme-v3 .shop-featured-body .shop-card-brand {
  font-size: 9.5px;
}

.theme-v3 .shop-featured-body h2 {
  margin-top: 5px;
  color: #fff;
  font-size: clamp(38px, 4.2vw, 56px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.theme-v3 .shop-featured-tagline {
  margin-top: 10px;
  color: color-mix(in srgb, var(--product-color) 80%, #ffffff);
  font-size: 12.5px;
  font-weight: 500;
}

.theme-v3 .shop-featured-description {
  max-width: 540px;
  margin-top: 9px;
  color: #a6aab8;
  font-size: 12.5px;
  line-height: 1.7;
}

.theme-v3 .shop-featured .shop-card-features {
  margin-top: 15px;
}

.theme-v3 .shop-featured .shop-card-features span {
  height: 25px;
  padding: 0 10px;
  border-color: color-mix(in srgb, var(--product-color) 26%, transparent);
  font-size: 9.5px;
}

.theme-v3 .shop-featured-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: #818594;
  font-size: 10.5px;
}

.theme-v3 .shop-featured-meta b {
  color: #d6d9e3;
  font-weight: 550;
}

.theme-v3 .shop-featured-actions {
  display: flex;
  gap: 7px;
  margin-top: 20px;
}

.theme-v3 .shop-featured-actions .btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 11px;
}

.theme-v3 .shop-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.theme-v3 .shop-card {
  border-radius: 20px;
}

.theme-v3 .shop-card-art {
  height: 175px;
  padding: 18px;
}

.theme-v3 .shop-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.theme-v3 .shop-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
}

.theme-v3 .shop-card-icon .icon {
  width: 22px;
  height: 22px;
}

.theme-v3 .shop-card-badge,
.theme-v3 .shop-card-status {
  height: 24px;
  padding: 0 9px;
  font-size: 8.5px;
}

.theme-v3 .shop-card-badge {
  top: 18px;
  right: 18px;
}

.theme-v3 .shop-card-status {
  right: 18px;
  bottom: 17px;
}

.theme-v3 .shop-card-watermark {
  left: 18px;
  bottom: -12px;
  font-size: 76px;
}

.theme-v3 .shop-card-body {
  padding: 19px 20px 20px;
}

.theme-v3 .shop-card-brand {
  font-size: 9.5px;
  letter-spacing: 0.14em;
}

.theme-v3 .shop-card h2 {
  margin-top: 4px;
  font-size: 28px;
}

.theme-v3 .shop-card-tagline {
  display: block;
  max-width: none;
  margin-top: 5px;
  color: color-mix(in srgb, var(--product-color) 65%, #9a9eab);
  font-size: 11px;
  line-height: 1.4;
  text-align: left;
}

.theme-v3 .shop-card-description {
  min-height: 0;
  margin-top: 10px;
  color: #9a9eac;
  font-size: 12px;
  line-height: 1.65;
}

.theme-v3 .shop-card-features {
  margin-top: 12px;
}

.theme-v3 .shop-card-features span {
  height: 23px;
  padding: 0 9px;
  font-size: 9px;
}

.theme-v3 .shop-card-stats {
  margin-top: 14px;
  gap: 7px;
  font-size: 10px;
}

.theme-v3 .shop-card-stats b {
  font-size: 10px;
}

.theme-v3 .shop-card-actions {
  gap: 7px;
  padding-top: 15px;
}

.theme-v3 .shop-card-actions .btn {
  height: 39px;
  border-radius: 10px;
  font-size: 10.5px;
}

.theme-v3 .shop-more-card {
  margin-top: 14px;
  padding: 18px;
  border-radius: 16px;
}

.theme-v3 .shop-more-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.theme-v3 .shop-more-copy b {
  font-size: 13px;
}

.theme-v3 .shop-more-copy > span:last-child {
  font-size: 10.5px;
}

.theme-v3 .shop-more-stats {
  font-size: 10px;
}

.theme-v3 .shop-risk {
  margin-top: 14px;
  padding: 15px 17px;
}

.theme-v3 .shop-risk b {
  font-size: 11px;
}

.theme-v3 .shop-risk p {
  font-size: 10.5px;
}

@media (max-width: 1000px) {
  .theme-v3 .shop-featured {
    grid-template-columns: 1fr;
  }

  .theme-v3 .shop-featured-art {
    min-height: 250px;
  }

  .theme-v3 .shop-featured-body {
    padding: 26px;
  }

  .theme-v3 .shop-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .theme-v3 .shop-hero {
    padding: 24px;
  }

  .theme-v3 .shop-hero h1 {
    font-size: 42px;
  }

  .theme-v3 .shop-featured-body {
    padding: 22px;
  }

  .theme-v3 .shop-featured-body h2 {
    font-size: 38px;
  }

  .theme-v3 .shop-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .theme-v3 .shop-hero h1 {
    font-size: 38px;
  }

  .theme-v3 .shop-hero-actions {
    flex-direction: column;
  }

  .theme-v3 .shop-hero-actions .btn {
    width: 100%;
  }

  .theme-v3 .shop-featured-art {
    min-height: 210px;
  }

  .theme-v3 .shop-featured-body h2 {
    font-size: 34px;
  }

  .theme-v3 .shop-featured-actions {
    flex-direction: column;
  }

  .theme-v3 .shop-featured-actions .btn {
    width: 100%;
  }

  .theme-v3 .shop-card-art {
    height: 150px;
  }

  .theme-v3 .shop-card h2 {
    font-size: 25px;
  }
}

/* ---------------- Leadership products ---------------- */

.theme-v3 .product-admin-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 16px;
}

.theme-v3 .product-admin-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 16, 22, 0.9);
  transition: border-color 0.16s, background 0.16s;
}

.theme-v3 .product-admin-row:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(20, 22, 29, 0.97);
}

.theme-v3 .product-admin-thumb {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid color-mix(in srgb, var(--product-color) 28%, transparent);
  border-radius: 11px;
  background: color-mix(in srgb, var(--product-color) 9%, transparent);
  color: var(--product-color);
  overflow: hidden;
  flex-shrink: 0;
}

.theme-v3 .product-admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-v3 .product-admin-thumb .icon {
  width: 22px;
  height: 22px;
}

.theme-v3 .product-admin-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.theme-v3 .product-admin-brand {
  color: #7b7f8e;
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.theme-v3 .product-admin-copy b {
  color: #e2e4ec;
  font-size: 12.5px;
  font-weight: 550;
}

.theme-v3 .product-admin-copy > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #777b8a;
  font-size: 9.5px;
}

.theme-v3 .product-admin-price {
  color: #a8acb9;
  font-size: 9.5px;
  white-space: nowrap;
}

.theme-v3 .product-admin-flags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.theme-v3 .tag-premium {
  border-color: rgba(232, 196, 119, 0.25);
  background: rgba(232, 196, 119, 0.07);
  color: #edcc8a;
}

.theme-v3 .tag-off {
  color: #777b8a;
}

.theme-v3 .product-admin-actions .btn {
  height: 30px;
  padding: 0 10px;
  font-size: 9px;
}

.theme-v3 .product-admin-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
}

.theme-v3 .product-admin-preview-art {
  display: grid;
  place-items: center;
  width: 100%;
  height: 130px;
  margin-bottom: 6px;
  border: 1px solid color-mix(in srgb, var(--product-color) 25%, transparent);
  border-radius: 11px;
  background:
    radial-gradient(100% 140% at 100% 0%, color-mix(in srgb, var(--product-color) 24%, transparent), transparent 65%),
    rgba(8, 9, 13, 0.65);
  color: var(--product-color);
  overflow: hidden;
}

.theme-v3 .product-admin-preview-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-v3 .product-admin-preview-art .icon {
  width: 32px;
  height: 32px;
}

.theme-v3 .product-admin-preview > b {
  color: #eef0f6;
  font-size: 17px;
  font-weight: 600;
}

.theme-v3 .product-admin-preview-price {
  margin-top: 4px;
  color: var(--product-color);
  font-size: 11px;
  font-weight: 550;
}

@media (max-width: 768px) {
  .theme-v3 .product-admin-row {
    flex-wrap: wrap;
  }

  .theme-v3 .product-admin-copy {
    flex-basis: calc(100% - 70px);
  }

  .theme-v3 .product-admin-price {
    margin-left: 66px;
  }

  .theme-v3 .product-admin-actions {
    margin-left: auto;
  }
}

.theme-v3 .shop-card-actions .btn-soft,
.theme-v3 .shop-featured-actions .btn-soft {
  color: #e2e4ec;
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.05);
}

.theme-v3 .shop-card-actions .btn-soft:hover,
.theme-v3 .shop-featured-actions .btn-soft:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.09);
}

.theme-v3 .shop-featured-meta b {
  font-size: 11px;
}

.theme-v3 .shop-card-actions .btn.is-disabled,
.theme-v3 .shop-featured-actions .btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.35);
}

/* Shop: 3 products per row */
.theme-v3 .shop-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.theme-v3 .shop-grid .shop-card-art {
  height: 156px;
}

.theme-v3 .shop-grid .shop-card-body {
  padding: 17px 18px 18px;
}

.theme-v3 .shop-grid .shop-card h2 {
  font-size: 25px;
}

.theme-v3 .shop-grid .shop-card-description {
  font-size: 11.5px;
}

.theme-v3 .shop-grid .shop-card-actions {
  flex-wrap: wrap;
}

.theme-v3 .shop-grid .shop-card-actions .btn {
  min-width: 0;
  flex: 1 1 140px;
}

@media (max-width: 1100px) {
  .theme-v3 .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .theme-v3 .shop-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------- Product page ---------------- */

.theme-v3 .product-page {
  padding-top: 24px;
}

.theme-v3 .shop-card h2 a,
.theme-v3 .shop-featured-body h2 a {
  color: inherit;
  transition: color 0.18s;
}

.theme-v3 .shop-card h2 a:hover,
.theme-v3 .shop-featured-body h2 a:hover {
  color: color-mix(in srgb, var(--product-color) 75%, #ffffff);
}

.theme-v3 .shop-details-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  color: #7f8392;
  font-size: 9.5px;
  transition: color 0.18s;
}

.theme-v3 .shop-details-link:hover {
  color: var(--product-color);
}

.theme-v3 .shop-details-link .icon {
  width: 10px;
  height: 10px;
}

.theme-v3 .product-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  min-height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 26px;
  background:
    radial-gradient(80% 120% at 0% 0%, color-mix(in srgb, var(--product-color) 9%, transparent), transparent 55%),
    #14151a;
  overflow: hidden;
  isolation: isolate;
}

.theme-v3 .product-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px 40px;
}

.theme-v3 .product-hero-labels {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.theme-v3 .product-hero-labels .shop-card-brand {
  font-size: 10px;
}

.theme-v3 .product-pill,
.theme-v3 .product-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #989cab;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.theme-v3 .product-pill {
  border-color: color-mix(in srgb, var(--product-color) 30%, transparent);
  background: color-mix(in srgb, var(--product-color) 9%, transparent);
  color: var(--product-color);
}

.theme-v3 .product-status {
  border-color: rgba(73, 219, 164, 0.2);
  background: rgba(73, 219, 164, 0.06);
  color: #9fe6ca;
}

.theme-v3 .product-hero h1 {
  margin-top: 14px;
  color: #fff;
  font-size: clamp(48px, 5.8vw, 76px);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.theme-v3 .product-tagline {
  margin-top: 12px;
  color: color-mix(in srgb, var(--product-color) 76%, #ffffff);
  font-size: 14px;
  font-weight: 500;
}

.theme-v3 .product-description {
  max-width: 570px;
  margin-top: 8px;
  color: #a6aab8;
  font-size: 13px;
  line-height: 1.7;
}

.theme-v3 .product-hero .shop-card-features {
  margin-top: 16px;
}

.theme-v3 .product-hero .shop-card-features span {
  height: 25px;
  padding: 0 10px;
  font-size: 9.5px;
}

.theme-v3 .product-hero-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 17px;
  color: #838796;
  font-size: 10.5px;
}

.theme-v3 .product-hero-meta b {
  color: #d2d5df;
  font-weight: 550;
}

.theme-v3 .product-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.theme-v3 .product-hero-actions .btn {
  height: 43px;
  padding: 0 18px;
  border-radius: 11px;
  font-size: 11.5px;
}

.theme-v3 .product-hero-media {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background:
    radial-gradient(100% 120% at 100% 0%, color-mix(in srgb, var(--product-color) 24%, transparent), transparent 60%),
    #0b0c10;
}

.theme-v3 .product-hero-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) brightness(0.88);
}

.theme-v3 .product-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #14151a 0%, rgba(20, 21, 26, 0.7) 30%, transparent 70%),
    linear-gradient(0deg, rgba(10, 11, 15, 0.85), transparent 55%);
}

.theme-v3 .product-premium-badge {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(232, 196, 119, 0.36);
  border-radius: 999px;
  background: rgba(27, 23, 15, 0.72);
  color: #f0d190;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.1em;
  backdrop-filter: blur(10px);
}

.theme-v3 .product-premium-badge .icon {
  width: 11px;
  height: 11px;
}

.theme-v3 .product-hero-word {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: -18px;
  color: rgba(255, 255, 255, 0.06);
  font-size: 100px;
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1;
}

.theme-v3 .product-anchors {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin: 15px 0 18px;
}

.theme-v3 .product-anchors a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 21, 26, 0.7);
  color: #8b8f9e;
  font-size: 10px;
  transition: color 0.16s, border-color 0.16s, background 0.16s;
}

.theme-v3 .product-anchors a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.theme-v3 .product-section {
  margin-bottom: 14px;
  padding: 28px 30px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.018), transparent 40%),
    #14151a;
}

.theme-v3 .product-section-head h2 {
  margin-top: 3px;
  color: #f1f2f7;
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.theme-v3 .product-section-head p {
  max-width: 640px;
  margin-top: 5px;
  color: #858998;
  font-size: 11.5px;
  line-height: 1.6;
}

.theme-v3 .product-body-copy {
  max-width: 850px;
  margin-top: 17px;
  color: #b2b6c3;
  font-size: 13px;
  line-height: 1.8;
}

.theme-v3 .product-body-copy p + p {
  margin-top: 10px;
}

.theme-v3 .product-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.theme-v3 .product-feature-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 13px;
  background: #17181e;
}

.theme-v3 .product-feature-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(109, 131, 255, 0.18);
  border-radius: 9px;
  background: rgba(109, 131, 255, 0.06);
  color: #aab7ff;
}

.theme-v3 .product-feature-icon .icon {
  width: 16px;
  height: 16px;
}

.theme-v3 .product-feature-card h3 {
  margin-top: 11px;
  color: #dfe1ea;
  font-size: 13px;
  font-weight: 550;
}

.theme-v3 .product-feature-card p {
  margin-top: 5px;
  color: #858998;
  font-size: 10px;
  line-height: 1.55;
}

.theme-v3 .product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: 230px;
  gap: 8px;
  margin-top: 18px;
}

.theme-v3 .product-gallery-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #101116;
}

.theme-v3 .product-gallery-item.is-main {
  grid-row: auto;
}

.theme-v3 .product-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.theme-v3 .product-gallery-item:hover img {
  transform: scale(1.04);
}

.theme-v3 .product-gallery-item > span {
  position: absolute;
  left: 9px;
  bottom: 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(7, 8, 12, 0.62);
  color: #e0e2ea;
  font-size: 8px;
  backdrop-filter: blur(8px);
}

.theme-v3 .product-gallery-item > span .icon {
  width: 10px;
  height: 10px;
}

.theme-v3 .product-gallery-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 36px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  color: #777b8a;
  text-align: center;
}

.theme-v3 .product-gallery-empty .icon {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
  color: #8d9be4;
}

.theme-v3 .product-gallery-empty b {
  color: #c9ccd7;
  font-size: 12px;
}

.theme-v3 .product-gallery-empty span {
  font-size: 9.5px;
}

.theme-v3 .product-requirements p {
  margin-top: 12px;
  max-width: 820px;
  color: #aeb2c0;
  font-size: 12px;
  line-height: 1.7;
}

.theme-v3 .product-faq {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
}

.theme-v3 .product-faq details {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  background: #17181e;
}

.theme-v3 .product-faq summary {
  padding: 13px 15px;
  color: #d1d4de;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.theme-v3 .product-faq summary::-webkit-details-marker {
  display: none;
}

.theme-v3 .product-faq summary::after {
  content: '+';
  float: right;
  color: #7f8392;
}

.theme-v3 .product-faq details[open] summary::after {
  content: '−';
}

.theme-v3 .product-faq p {
  padding: 0 15px 14px;
  color: #8f93a2;
  font-size: 10.5px;
  line-height: 1.65;
}

.theme-v3 .product-faq a {
  color: #aab8ff;
}

.theme-v3 .product-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 25px 28px;
  border: 1px solid color-mix(in srgb, var(--product-color) 22%, transparent);
  border-radius: 20px;
  background:
    radial-gradient(80% 150% at 100% 0%, color-mix(in srgb, var(--product-color) 10%, transparent), transparent 60%),
    #14151a;
}

.theme-v3 .product-cta h2 {
  margin-top: 3px;
  color: #f1f2f7;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.theme-v3 .product-cta p {
  margin-top: 4px;
  color: #858998;
  font-size: 10.5px;
}

.theme-v3 .product-cta-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.theme-v3 .product-cta-actions .btn {
  height: 40px;
  border-radius: 10px;
  font-size: 10.5px;
}

.theme-v3 .product-related {
  margin-top: 20px;
}

.theme-v3 .product-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.theme-v3 .product-related-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #17181e;
  transition: border-color 0.16s, background 0.16s;
}

.theme-v3 .product-related-card:hover {
  border-color: color-mix(in srgb, var(--product-color) 30%, rgba(255, 255, 255, 0.1));
  background: #1b1c23;
}

.theme-v3 .product-related-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--product-color) 24%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--product-color) 7%, transparent);
  color: var(--product-color);
  flex-shrink: 0;
}

.theme-v3 .product-related-icon .icon {
  width: 15px;
  height: 15px;
}

.theme-v3 .product-related-card > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.theme-v3 .product-related-card b {
  color: #dfe1ea;
  font-size: 11.5px;
  font-weight: 550;
}

.theme-v3 .product-related-card span span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #777b8a;
  font-size: 8.5px;
}

.theme-v3 .product-related-card > .icon {
  width: 13px;
  height: 13px;
  color: #666a79;
}

/* Premium animated effects */

.theme-v3 .shop-featured,
.theme-v3 .product-hero.is-premium,
.theme-v3 .shop-card.is-premium {
  background-color: #15161c;
  background-size: 170% 170%;
  animation: premium-surface 16s ease-in-out infinite;
}

.theme-v3 .shop-featured::before,
.theme-v3 .product-hero.is-premium::before,
.theme-v3 .shop-card.is-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(420px 280px at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--product-color) 17%, transparent), transparent 62%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.theme-v3 .shop-featured.is-pointing::before,
.theme-v3 .product-hero.is-premium.is-pointing::before,
.theme-v3 .shop-card.is-premium.is-pointing::before {
  opacity: 1;
}

.theme-v3 .shop-featured::after {
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.06) 46%, transparent 58%);
  background-size: 240% 100%;
  animation: premium-shine 9s ease-in-out infinite;
}

.theme-v3 .shop-featured-art > img {
  animation: premium-zoom 20s ease-in-out infinite alternate;
}

.theme-v3 .shop-card.is-premium {
  border-color: color-mix(in srgb, var(--product-color) 28%, rgba(255, 255, 255, 0.1));
  box-shadow: 0 20px 55px -40px var(--product-color);
}

.theme-v3 .shop-card.is-premium .shop-card-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.09) 46%, transparent 60%);
  background-size: 220% 100%;
  animation: premium-shine 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes premium-surface {
  0%, 100% { background-position: 0% 40%; }
  50% { background-position: 100% 60%; }
}

@keyframes premium-shine {
  0%, 35% { background-position: 180% 0; }
  70%, 100% { background-position: -80% 0; }
}

@keyframes premium-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.045); }
}

.theme-v3 .has-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.theme-v3 .has-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .theme-v3 .shop-featured,
  .theme-v3 .product-hero.is-premium,
  .theme-v3 .shop-card.is-premium,
  .theme-v3 .shop-featured::after,
  .theme-v3 .shop-featured-art > img,
  .theme-v3 .shop-card.is-premium .shop-card-art::before,
  .theme-v3 .has-reveal {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1000px) {
  .theme-v3 .product-hero {
    grid-template-columns: 1fr;
  }

  .theme-v3 .product-hero-media {
    min-height: 280px;
    grid-row: 1;
  }

  .theme-v3 .product-hero-copy {
    padding: 28px;
  }

  .theme-v3 .product-feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .theme-v3 .product-gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 190px;
  }

  .theme-v3 .product-related-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .theme-v3 .product-hero-copy {
    padding: 22px;
  }

  .theme-v3 .product-hero h1 {
    font-size: 44px;
  }

  .theme-v3 .product-section {
    padding: 20px;
  }

  .theme-v3 .product-section-head h2 {
    font-size: 24px;
  }

  .theme-v3 .product-feature-grid,
  .theme-v3 .product-related-grid,
  .theme-v3 .product-gallery {
    grid-template-columns: 1fr;
  }

  .theme-v3 .product-gallery {
    grid-auto-rows: 180px;
  }

  .theme-v3 .product-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .theme-v3 .product-cta-actions {
    width: 100%;
  }

  .theme-v3 .product-cta-actions .btn {
    flex: 1;
  }
}

/* ---------------- Subcategories ---------------- */

.theme-v3 .subcategory-section {
  margin: 0 0 20px;
}

.theme-v3 .subcategory-section .section-heading {
  margin-bottom: 12px;
}

.theme-v3 .subcategory-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.theme-v3 .subcategory-grid .category-card {
  min-height: 190px;
}

@media (max-width: 768px) {
  .theme-v3 .subcategory-grid {
    grid-template-columns: 1fr;
  }
}

.theme-v3 .block-depth {
  color: #7d8cff;
  font-weight: 400;
}

.theme-v3 .product-gallery-item {
  background: #0d0e13;
}

.theme-v3 .product-gallery-item img {
  object-fit: contain;
  background: #0d0e13;
}

.theme-v3 .product-gallery-admin {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.theme-v3 .product-gallery-admin-item {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d0e13;
  overflow: hidden;
}

.theme-v3 .product-gallery-admin-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.theme-v3 .product-gallery-admin-item span {
  position: absolute;
  left: 4px;
  top: 4px;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: rgba(7, 8, 12, 0.7);
  color: #c9ccd7;
  font-size: 7px;
}

@media (max-width: 520px) {
  .theme-v3 .product-gallery-admin {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------------- Subcategory management ---------------- */

.theme-v3 .subcategory-section .section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.theme-v3 .subcategory-add {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 190px;
  border-style: dashed;
  border-color: rgba(139, 155, 255, 0.32);
  background: rgba(109, 131, 255, 0.035);
  text-align: left;
}

.theme-v3 .subcategory-add:hover {
  border-color: rgba(139, 155, 255, 0.62);
  background: rgba(109, 131, 255, 0.07);
}

.theme-v3 .subcategory-add-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border: 1px solid rgba(139, 155, 255, 0.28);
  border-radius: 10px;
  background: rgba(109, 131, 255, 0.12);
  color: #aebaff;
}

.theme-v3 .subcategory-add-icon .icon {
  width: 19px;
  height: 19px;
}

.theme-v3 .subcategory-add h3 {
  margin: 0 0 6px;
  color: #eef0f7;
  font-size: 15px;
}

.theme-v3 .subcategory-add p {
  margin: 0;
  color: #8d92a3;
  font-size: 12px;
  line-height: 1.55;
}

.theme-v3 .subcategory-add-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: #aebaff;
  font-size: 11px;
  font-weight: 600;
}

.theme-v3 .subcategory-add-action .icon {
  width: 13px;
  height: 13px;
}

@media (max-width: 768px) {
  .theme-v3 .subcategory-section .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

/* ---------------- Product price block ---------------- */

.theme-v3 .shop-price-block {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  padding: 12px 14px 12px 17px;
  border: 1px solid color-mix(in srgb, var(--product-color) 26%, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--product-color) 13%, transparent), transparent 62%),
    rgba(8, 9, 14, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.theme-v3 .shop-price-block::before {
  content: '';
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: 0;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: var(--product-color);
  box-shadow: 0 0 10px color-mix(in srgb, var(--product-color) 55%, transparent);
}

.theme-v3 .shop-price-block::after {
  content: '';
  position: absolute;
  top: -34px;
  right: -20px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--product-color) 14%, transparent), transparent 68%);
  pointer-events: none;
}

.theme-v3 .shop-price-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.theme-v3 .shop-price-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8b90a1;
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.theme-v3 .shop-price-label .icon {
  width: 13px;
  height: 13px;
  color: color-mix(in srgb, var(--product-color) 72%, #c4c9dc);
}

.theme-v3 .shop-price-value {
  display: block;
  max-width: 100%;
  margin-top: 6px;
  overflow: hidden;
  color: #f7f8fc;
  font-size: 25px;
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.theme-v3 .shop-price-note {
  position: relative;
  z-index: 1;
  max-width: 104px;
  padding-bottom: 2px;
  color: #747988;
  font-size: 8.5px;
  line-height: 1.4;
  text-align: right;
}

.theme-v3 .shop-price-block--featured {
  width: min(100%, 430px);
  margin-top: 17px;
  padding: 15px 18px 15px 21px;
  border-radius: 14px;
}

.theme-v3 .shop-price-block--featured .shop-price-label {
  font-size: 9px;
}

.theme-v3 .shop-price-block--featured .shop-price-value {
  margin-top: 7px;
  font-size: 34px;
}

.theme-v3 .shop-price-block--featured .shop-price-note {
  max-width: 120px;
  padding-bottom: 4px;
  font-size: 9px;
}

.theme-v3 .shop-price-block--hero {
  width: min(100%, 410px);
  margin-top: 15px;
  padding: 13px 16px 13px 19px;
  border-radius: 13px;
}

.theme-v3 .shop-price-block--hero .shop-price-value {
  margin-top: 6px;
  font-size: 30px;
}

.theme-v3 .shop-price-block--hero .shop-price-note {
  padding-bottom: 3px;
  font-size: 9px;
}

.theme-v3 .shop-card.is-premium .shop-price-block,
.theme-v3 .shop-featured .shop-price-block {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--product-color) 17%, transparent), transparent 62%),
    rgba(9, 10, 15, 0.62);
}

@media (max-width: 480px) {
  .theme-v3 .shop-price-block {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .theme-v3 .shop-price-note {
    max-width: none;
    padding-bottom: 0;
    text-align: left;
  }

  .theme-v3 .shop-price-value {
    font-size: 23px;
  }

  .theme-v3 .shop-price-block--featured .shop-price-value,
  .theme-v3 .shop-price-block--hero .shop-price-value {
    font-size: 29px;
  }
}

/* ---------------- Topic attachments ---------------- */

.theme-v3 .file-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  border: 1px dashed rgba(139, 155, 255, 0.30);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(109, 131, 255, 0.07), transparent 62%),
    rgba(10, 11, 17, 0.55);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.theme-v3 .file-drop:hover {
  border-color: rgba(139, 155, 255, 0.62);
  background:
    linear-gradient(135deg, rgba(109, 131, 255, 0.11), transparent 62%),
    rgba(10, 11, 17, 0.72);
}

.theme-v3 .file-drop-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(139, 155, 255, 0.28);
  border-radius: 10px;
  background: rgba(109, 131, 255, 0.11);
  color: #aebaff;
}

.theme-v3 .file-drop-icon .icon {
  width: 18px;
  height: 18px;
}

.theme-v3 .file-drop-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.theme-v3 .file-drop-copy b {
  color: #e8eaf3;
  font-size: 12px;
  font-weight: 600;
}

.theme-v3 .file-drop-copy span {
  color: #858a9b;
  font-size: 10px;
  line-height: 1.45;
}

.theme-v3 .file-drop-action {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: #cfd3e0;
  font-size: 9px;
  font-weight: 600;
}

.theme-v3 .file-drop-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.theme-v3 .attachment-picked {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.theme-v3 .attachment-picked-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: #aeb2c0;
  font-size: 10px;
}

.theme-v3 .attachment-picked-item .icon {
  width: 13px;
  height: 13px;
  color: #9ba8ff;
}

.theme-v3 .attachment-picked-item b {
  min-width: 0;
  overflow: hidden;
  color: #dfe2ec;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-v3 .attachment-picked-item span {
  margin-left: auto;
  flex: 0 0 auto;
  color: #777c8d;
}

.theme-v3 .post-attachments {
  margin: 0 20px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(10, 11, 17, 0.52);
  overflow: hidden;
}

.theme-v3 .post-attachments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line-soft);
  color: #b6bac8;
  font-size: 10px;
  font-weight: 550;
}

.theme-v3 .post-attachments-head > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.theme-v3 .post-attachments-head .icon {
  width: 13px;
  height: 13px;
  color: #8f9cff;
}

.theme-v3 .post-attachments-head b {
  color: #eef0f6;
  font-weight: 600;
}

.theme-v3 .post-attachments-safe {
  color: #7fd8b4;
  font-size: 9px;
  font-weight: 500;
}

.theme-v3 .post-attachments-safe .icon {
  color: #61caa1;
}

.theme-v3 .post-attachments-list {
  display: flex;
  flex-direction: column;
}

.theme-v3 .attachment-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line-soft);
  color: inherit;
  transition: background 0.18s;
}

.theme-v3 .attachment-item:last-child {
  border-bottom: 0;
}

.theme-v3 .attachment-item:hover {
  background: rgba(109, 131, 255, 0.07);
}

.theme-v3 .attachment-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #9ba8ff;
}

.theme-v3 .attachment-icon .icon {
  width: 15px;
  height: 15px;
}

.theme-v3 .attachment-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.theme-v3 .attachment-copy b {
  overflow: hidden;
  color: #e2e5ef;
  font-size: 11px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-v3 .attachment-copy > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #7f8494;
  font-size: 9px;
}

.theme-v3 .attachment-copy .icon {
  width: 11px;
  height: 11px;
  color: #67cba4;
}

.theme-v3 .attachment-download {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(139, 155, 255, 0.20);
  border-radius: 7px;
  background: rgba(109, 131, 255, 0.08);
  color: #aebaff;
}

.theme-v3 .attachment-download .icon {
  width: 13px;
  height: 13px;
}

.theme-v3 .form-field-hint .icon {
  width: 12px;
  height: 12px;
  color: #67cba4;
  vertical-align: -2px;
}

@media (max-width: 768px) {
  .theme-v3 .file-drop-action {
    display: none;
  }

  .theme-v3 .post-attachments {
    margin: 0 13px 14px;
  }
}

/* ---------------- Email auth & notifications ---------------- */

.theme-v3 .auth-card--code {
  max-width: 470px;
}

.theme-v3 .auth-email {
  color: #c4ccff;
  font-weight: 600;
}

.theme-v3 .code-input {
  height: 54px;
  padding: 0 14px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.theme-v3 .auth-code-resend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  color: #858a9b;
  font-size: 10px;
}

.theme-v3 .auth-link-button {
  padding: 0;
  border: 0;
  background: none;
  color: #aebaff;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.theme-v3 .auth-link-button:disabled {
  color: #6f7484;
  cursor: default;
}

.theme-v3 .auth-email-change {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  color: #858a9b;
  font-size: 10px;
}

.theme-v3 .auth-email-change summary {
  color: #9da2b2;
  cursor: pointer;
}

.theme-v3 .auth-email-change .auth-form {
  margin-top: 12px;
}

.theme-v3 .form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.theme-v3 .auth-mini-link {
  color: #9da8ff;
  font-size: 9.5px;
}

.theme-v3 .settings-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 16, 22, 0.72);
  width: fit-content;
}

.theme-v3 .settings-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  color: #858a9b;
  font-size: 10.5px;
  font-weight: 550;
}

.theme-v3 .settings-tabs a .icon {
  width: 13px;
  height: 13px;
}

.theme-v3 .settings-tabs a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
}

.theme-v3 .settings-tabs a.active {
  color: #fff;
  background: rgba(109, 131, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(139, 155, 255, 0.22);
}

.theme-v3 .settings-grid--single {
  grid-template-columns: minmax(0, 760px);
}

.theme-v3 .settings-lead {
  margin: 0 0 14px;
  color: #9196a6;
  font-size: 11.5px;
  line-height: 1.65;
}

.theme-v3 .settings-subtitle {
  margin: 0 0 6px;
  color: #e7e9f1;
  font-size: 14px;
}

.theme-v3 .settings-divider {
  height: 1px;
  margin: 16px 0;
  background: var(--line-soft);
}

.theme-v3 .settings-email-current {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-v3 .settings-email-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(139, 155, 255, 0.24);
  border-radius: 11px;
  background: rgba(109, 131, 255, 0.09);
  color: #aebaff;
}

.theme-v3 .settings-email-icon .icon {
  width: 19px;
  height: 19px;
}

.theme-v3 .settings-email-current b {
  display: block;
  color: #eef0f6;
  font-size: 14px;
}

.theme-v3 .settings-verified,
.theme-v3 .settings-unverified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 9px;
}

.theme-v3 .settings-verified { color: #67cba4; }
.theme-v3 .settings-unverified { color: #ffb35c; }
.theme-v3 .settings-verified .icon,
.theme-v3 .settings-unverified .icon { width: 11px; height: 11px; }

.theme-v3 .settings-email-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.theme-v3 .settings-email-actions .btn {
  font-size: 9.5px;
}

.theme-v3 .notification-prefs {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.theme-v3 .notification-pref {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.theme-v3 .notification-pref:hover {
  border-color: rgba(139, 155, 255, 0.28);
  background: rgba(109, 131, 255, 0.045);
}

.theme-v3 .notification-pref-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 33px;
  height: 33px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #9ba8ff;
}

.theme-v3 .notification-pref-icon .icon {
  width: 15px;
  height: 15px;
}

.theme-v3 .notification-pref-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.theme-v3 .notification-pref-copy b {
  color: #e5e8f1;
  font-size: 11.5px;
  font-weight: 550;
}

.theme-v3 .notification-pref-copy span {
  color: #818697;
  font-size: 9.5px;
  line-height: 1.45;
}

.theme-v3 .notification-pref input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #6d83ff;
}

.theme-v3 .settings-notifications-note {
  margin-top: 14px;
}

.theme-v3 .email-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 13px;
  margin-bottom: 14px;
}

.theme-v3 .email-smtp-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
}

.theme-v3 .email-smtp-status.is-ok { color: #7fe0b8; background: rgba(73, 219, 164, 0.10); }
.theme-v3 .email-smtp-status.is-bad { color: #ff8a8a; background: rgba(255, 104, 104, 0.10); }

.theme-v3 .email-smtp-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 15px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
}

.theme-v3 .email-smtp-info > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
}

.theme-v3 .email-smtp-info span { color: #7f8494; }
.theme-v3 .email-smtp-info b { color: #d9dce7; font-weight: 550; text-align: right; }
.theme-v3 .email-smtp-info .email-smtp-error b { color: #ff8a8a; }

.theme-v3 .email-inline-form {
  display: flex;
  gap: 7px;
}

.theme-v3 .email-inline-form .text-input {
  flex: 1;
}

.theme-v3 .email-recipient-count {
  color: #8d92a3;
  font-size: 9.5px;
}

.theme-v3 .email-broadcast-result {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: #7fe0b8;
  font-size: 10px;
}

.theme-v3 .email-broadcast-result .icon { width: 13px; height: 13px; }

.theme-v3 .email-log-panel {
  margin-top: 0;
}

.theme-v3 .email-log-table {
  display: flex;
  flex-direction: column;
}

.theme-v3 .email-log-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 180px) minmax(0, 1fr) 100px 90px;
  gap: 10px;
  align-items: center;
  padding: 9px 13px;
  border-top: 1px solid var(--line-soft);
  color: #aeb2c0;
  font-size: 9.5px;
}

.theme-v3 .email-log-row--head {
  border-top: 0;
  color: #6f7484;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.theme-v3 .email-log-recipient,
.theme-v3 .email-log-subject {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-v3 .email-log-status {
  font-weight: 600;
}

.theme-v3 .email-log-status.is-sent { color: #67cba4; }
.theme-v3 .email-log-status.is-failed { color: #ff8a8a; }

.theme-v3 .email-log-empty {
  padding: 20px 15px;
  color: #7f8494;
  font-size: 10.5px;
}

@media (max-width: 900px) {
  .theme-v3 .email-admin-grid { grid-template-columns: 1fr; }
  .theme-v3 .email-log-row { grid-template-columns: 100px minmax(0, 1fr) 80px; }
  .theme-v3 .email-log-row > :nth-child(3),
  .theme-v3 .email-log-row > :nth-child(4) { display: none; }
}

@media (max-width: 520px) {
  .theme-v3 .settings-tabs { width: 100%; overflow-x: auto; }
  .theme-v3 .notification-pref { align-items: flex-start; }
  .theme-v3 .settings-email-actions { flex-wrap: wrap; }
  .theme-v3 .email-inline-form { flex-direction: column; }
}

/* ---------------- Clickable product cards ---------------- */

.theme-v3 .shop-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.theme-v3 .shop-card-overlay:focus-visible {
  outline: 2px solid rgba(174, 186, 255, 0.8);
  outline-offset: -3px;
}

.theme-v3 .shop-card-actions,
.theme-v3 .shop-featured-actions,
.theme-v3 .shop-details-link {
  position: relative;
  z-index: 2;
}

.theme-v3 .shop-card:hover .shop-card-photo,
.theme-v3 .shop-featured:hover .shop-featured-art > img {
  transform: scale(1.035);
}

.theme-v3 .shop-card-photo,
.theme-v3 .shop-featured-art > img {
  transition: transform 0.35s ease;
}

.theme-v3 .email-auth-panel {
  margin-bottom: 14px;
}

.theme-v3 .email-auth-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.theme-v3 .email-auth-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 10px;
}

.theme-v3 .email-auth-item span { color: #7f8494; }
.theme-v3 .email-auth-item b { font-weight: 650; }
.theme-v3 .email-auth-item.is-ok b { color: #67cba4; }
.theme-v3 .email-auth-item.is-bad b { color: #ff8a8a; }
.theme-v3 .email-auth-item.is-warn b { color: #ffb35c; }

.theme-v3 .email-auth-warning {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 179, 92, 0.22);
  border-radius: 9px;
  background: rgba(255, 179, 92, 0.06);
  color: #ffbd73;
}

.theme-v3 .email-auth-warning .icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.theme-v3 .email-auth-warning b {
  display: block;
  color: #ffd19b;
  font-size: 10.5px;
  font-weight: 600;
}

.theme-v3 .email-auth-warning span {
  display: block;
  margin-top: 3px;
  color: #ad8e6d;
  font-size: 9.5px;
  line-height: 1.5;
}

.theme-v3 .email-auth-records {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
}

.theme-v3 .email-auth-records > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.theme-v3 .email-auth-records span {
  color: #7f8494;
  font-size: 9px;
}

.theme-v3 .email-auth-records b { color: #aeb4c5; font-weight: 600; }

.theme-v3 .email-auth-records code {
  display: block;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.22);
  color: #b7c1ff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  user-select: all;
}

@media (max-width: 640px) {
  .theme-v3 .email-auth-grid { grid-template-columns: 1fr; }
}
