:root {
  color-scheme: dark;
  --bg: #0a0b10;
  --bg-2: #0f1119;
  --panel: #141722;
  --panel-2: #191d2a;
  --panel-3: #202536;
  --text: #f7f8ff;
  --muted: #a4adbf;
  --quiet: #6f788d;
  --line: rgba(255, 255, 255, 0.1);
  --strong-line: rgba(255, 255, 255, 0.16);
  --purple: #9c6bff;
  --violet: #c46dff;
  --cyan: #6ee7ff;
  --lime: #f279d2;
  --rose: #ff75bd;
  --amber: #ffb84d;
  --red: #ff6176;
  --green: #86efac;
  --glass: rgba(255, 255, 255, 0.065);
  --glass-2: rgba(255, 255, 255, 0.095);
  --header-h: 80px;
  --sidebar-w: 312px;
  --max: 1520px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  --soft-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  --card-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
  scrollbar-color: var(--purple) #11131c;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(125deg, rgba(80, 38, 153, 0.24), transparent 35%),
    linear-gradient(245deg, rgba(13, 110, 126, 0.18), transparent 42%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 44px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 44px),
    linear-gradient(180deg, #06070c 0%, #0d0f16 46%, #080910 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body::before {
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 18px),
    linear-gradient(110deg, rgba(156, 107, 255, 0.12), transparent 34%, rgba(110, 231, 255, 0.08) 68%, transparent);
  background-size: 180px 180px, 160% 160%;
  opacity: 0.48;
  will-change: transform;
  animation: ambient-drift 30s linear infinite;
}

body::after {
  background:
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.025) 48%, transparent 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
  opacity: 0.24;
}

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

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

button {
  cursor: pointer;
}

::selection {
  color: #080a10;
  background: #8eeaff;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

[hidden] {
  display: none !important;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(320px, 600px) minmax(280px, 1fr);
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 10, 15, 0.94);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.topbar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 121, 210, 0.72), rgba(110, 231, 255, 0.62), transparent);
  opacity: 0.72;
}

.brand {
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: #02030a;
  box-shadow: 0 10px 30px rgba(110, 231, 255, 0.16), 0 0 0 1px rgba(242, 121, 210, 0.08);
  object-fit: cover;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.brand:hover .brand-mark {
  border-color: rgba(110, 231, 255, 0.52);
  box-shadow: 0 14px 34px rgba(110, 231, 255, 0.24), 0 0 0 1px rgba(242, 121, 210, 0.2);
  transform: translateY(-1px) rotate(-2deg) scale(1.03);
}

.brand strong {
  display: block;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
}

.brand small {
  display: none;
  max-width: 220px;
  margin-top: 5px;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.2;
}

.top-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.top-search span {
  position: absolute;
  left: 16px;
  color: var(--quiet);
  font-size: 18px;
  font-weight: 900;
  pointer-events: none;
}

.top-search input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px 0 44px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.top-search input:focus {
  border-color: rgba(119, 87, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(119, 87, 255, 0.14);
}

.top-search:focus-within span {
  color: var(--cyan);
}

.top-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding-right: 24px;
}

.crystal-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(242, 121, 210, 0.46);
  border-radius: 12px;
  padding: 0;
  color: #ffd6f3;
  background: rgba(242, 121, 210, 0.1);
  font-size: 20px;
  font-weight: 950;
}

.notification-shell {
  position: relative;
  flex: 0 0 auto;
}

.notification-trigger {
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.notification-trigger:hover,
.notification-trigger[aria-expanded="true"] {
  border-color: rgba(242, 121, 210, 0.72);
  background: rgba(242, 121, 210, 0.16);
  box-shadow: 0 0 0 4px rgba(242, 121, 210, 0.12), 0 14px 34px rgba(0, 0, 0, 0.28);
}

.notification-trigger:hover {
  transform: translateY(-1px);
}

.notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 9px;
  height: 9px;
  border: 2px solid #15111f;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(110, 231, 255, 0.8);
}

.notification-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 110;
  width: min(340px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(31, 26, 46, 0.98), rgba(13, 15, 22, 0.98)),
    rgba(13, 15, 22, 0.98);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(242, 121, 210, 0.12);
  backdrop-filter: blur(18px);
  animation: menu-pop 0.18s ease both;
}

.notification-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--rose), var(--cyan));
}

.notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
}

.notification-head strong {
  font-size: 15px;
  font-weight: 950;
}

.notification-head small {
  min-width: 30px;
  border: 1px solid rgba(242, 121, 210, 0.24);
  border-radius: 999px;
  padding: 4px 8px;
  color: #ffd6f3;
  background: rgba(242, 121, 210, 0.1);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.notification-list {
  max-height: 380px;
  overflow: auto;
  padding: 0 8px 8px;
}

.notification-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 10px;
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 10px;
  color: var(--text);
  background: transparent;
  text-align: left;
  transition: background 0.16s ease;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.075);
}

.notification-title {
  min-width: 0;
  font-size: 14px;
  font-weight: 950;
}

.notification-time {
  color: var(--quiet);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.notification-message,
.notification-preview {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.notification-preview {
  color: #ffd6f3;
}

.notification-empty {
  padding: 30px 16px 32px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  text-align: center;
}

.userbar {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.profile-menu-shell {
  position: relative;
}

.profile-trigger {
  cursor: pointer;
}

.profile-trigger[aria-expanded="true"] {
  border-color: rgba(242, 121, 210, 0.58);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(242, 121, 210, 0.12), 0 12px 30px rgba(0, 0, 0, 0.24);
}

.profile-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 100;
  width: 244px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(31, 26, 46, 0.98), rgba(13, 15, 22, 0.98)),
    rgba(13, 15, 22, 0.98);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(242, 121, 210, 0.12);
  backdrop-filter: blur(18px);
  animation: menu-pop 0.18s ease both;
}

.profile-menu::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--rose), var(--cyan));
}

.profile-menu-item {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  padding: 0 14px;
  color: var(--text);
  background: transparent;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  transition: background 0.16s ease, color 0.16s ease;
}

.profile-menu-item:first-child {
  min-height: 46px;
  color: #ffd6f3;
  background: rgba(242, 121, 210, 0.08);
}

.profile-menu-item:last-child {
  min-height: 56px;
  border-bottom: 0;
}

.profile-menu-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.075);
}

.profile-menu-item:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.user-pill,
.crystal-pill,
.account-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  max-width: 260px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  font-weight: 850;
}

.user-pill strong,
.account-pill strong {
  display: block;
  line-height: 1.05;
}

.user-pill small,
.account-pill small {
  display: block;
  max-width: 132px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
}

.menu-button {
  display: none;
  min-width: 52px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 850;
}

.sidebar {
  position: fixed;
  z-index: 40;
  left: 0;
  top: var(--header-h);
  bottom: 0;
  width: var(--sidebar-w);
  display: grid;
  grid-template-rows: 1fr auto;
  border-right: 1px solid var(--line);
  background: rgba(13, 15, 22, 0.92);
  backdrop-filter: blur(16px);
}

.side-nav {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 16px 18px;
}

.side-label {
  margin: 0 8px 8px;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-link,
.mobile-nav a,
.mobile-nav button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
  text-align: left;
  background: transparent;
  font-size: 16px;
  font-weight: 850;
  text-decoration: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.nav-break {
  margin-top: 8px;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(52, 213, 255, 0.08);
  font-weight: 950;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav a:hover,
.mobile-nav button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
}

.nav-link:hover {
  transform: translateX(2px);
}

.nav-link.is-active .nav-icon {
  color: #080a10;
  background: linear-gradient(135deg, var(--rose), var(--cyan));
  box-shadow: 0 8px 18px rgba(110, 231, 255, 0.2);
}

.mobile-nav a,
.mobile-nav button {
  display: flex;
  align-items: center;
}

.side-actions {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}

.logout-link {
  text-align: center;
}

.mobile-nav {
  position: fixed;
  top: calc(var(--header-h) + 10px);
  right: 12px;
  z-index: 70;
  width: min(260px, calc(100vw - 24px));
  max-height: calc(100vh - var(--header-h) - 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
  background: #11141d;
  box-shadow: var(--shadow);
  animation: menu-pop 0.18s ease both;
}

main {
  width: min(calc(100vw - var(--sidebar-w) - 56px), var(--max));
  margin-left: calc(var(--sidebar-w) + 28px);
  padding: calc(var(--header-h) + 24px) 28px 80px 0;
}

.home-view {
  display: grid;
  gap: 24px;
}

.hero-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 126px;
  border: 1px solid rgba(119, 87, 255, 0.3);
  border-radius: 16px;
  padding: 20px 26px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(242, 121, 210, 0.34), transparent 26%),
    linear-gradient(245deg, rgba(110, 231, 255, 0.18), transparent 34%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 8px, transparent 8px 18px),
    linear-gradient(90deg, rgba(63, 35, 122, 0.78), rgba(46, 21, 84, 0.84) 46%, rgba(18, 54, 78, 0.78)),
    linear-gradient(180deg, #121729, #0d1020);
  background-size: 160% 160%, 160% 160%, auto, auto, auto;
  box-shadow: var(--soft-shadow);
  animation: panel-enter 0.56s ease both;
}

.welcome-banner {
  position: relative;
}

.welcome-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 8px, transparent 8px 18px);
  background-size: 220% 100%, auto;
  pointer-events: none;
  opacity: 0.72;
}

.banner-mascot,
.banner-copy,
.hero-stats {
  position: relative;
  z-index: 1;
}

.banner-mascot {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  overflow: hidden;
  background: #02030a;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  transform: rotate(-4deg);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
  animation: mascot-float 5s ease-in-out infinite;
}

.hero-panel:hover .banner-mascot {
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.42), 0 0 34px rgba(110, 231, 255, 0.16);
  transform: rotate(-2deg) translateY(-2px) scale(1.02);
}

.banner-mascot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: rotate(4deg) scale(1.08);
}

.banner-mascot span {
  color: #08100b;
  font-size: 28px;
  font-weight: 950;
  transform: rotate(4deg);
}

.hero-panel h1 {
  max-width: 860px;
  margin: 0 0 6px;
  font-size: clamp(35px, 5vw, 56px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}

.hero-panel p {
  max-width: 860px;
  margin: 0;
  color: rgba(247, 248, 255, 0.86);
  font-size: 18px;
  line-height: 1.35;
}

.featured-actions,
.listing-actions,
.toolbar,
.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  width: min(300px, 28vw);
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.hero-stats .stat-box {
  display: flex;
  gap: 4px;
  justify-content: center;
  white-space: nowrap;
}

.hero-stats .stat-box strong {
  font: inherit;
}

.hero-panel > div,
.hero-stats,
.featured-copy,
.featured-actions {
  min-width: 0;
}

.featured-actions .stat-box {
  flex: 0 1 132px;
}

.featured-card {
  min-height: 248px;
  border: 1px solid var(--strong-line);
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
  animation: panel-enter 0.62s 0.06s ease both;
}

.featured-inner {
  position: relative;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 248px;
  padding: 24px;
}

.featured-inner::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 78px;
  background:
    linear-gradient(90deg, rgba(110, 231, 255, 0.16), rgba(196, 109, 255, 0.26), rgba(242, 121, 210, 0.13)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 8px, transparent 8px 18px);
  border-bottom: 1px solid var(--line);
}

.featured-inner::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 22px;
  width: 136px;
  height: 18px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.78) 0 3px, transparent 4px) 0 50% / 18px 18px repeat-x;
  opacity: 0.7;
}

.featured-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 144px;
  height: 144px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: var(--text);
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(119, 87, 255, 0.34), rgba(52, 213, 255, 0.18)),
    #1d2231;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.3);
  font-size: 15px;
  font-weight: 950;
  text-align: center;
}

.featured-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.feature-dots {
  position: absolute;
  right: 0;
  top: -42px;
  display: inline-flex;
  gap: 7px;
}

.feature-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.feature-dots span:first-child,
.feature-dots span.is-active {
  width: 22px;
  background: var(--purple);
}

.featured-inner.spotlight-slide {
  animation: spotlight-slide-in 0.52s cubic-bezier(0.2, 0.82, 0.22, 1) both;
}

.featured-inner.spotlight-slide.is-swiping {
  animation: spotlight-slide-left 0.46s cubic-bezier(0.72, 0, 0.26, 1) both;
}

.featured-copy .eyebrow {
  margin-bottom: 10px;
}

.featured-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1;
  font-weight: 950;
}

.featured-copy p,
.featured-description {
  margin: 0 0 16px;
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.featured-copy .tags {
  margin-bottom: 14px;
}

.spotlight-time {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(242, 121, 210, 0.26);
  border-radius: 999px;
  padding: 0 12px;
  color: #ffd6f3 !important;
  background: rgba(242, 121, 210, 0.1);
  font-size: 13px !important;
  font-weight: 900;
}

.stat-box {
  display: grid;
  place-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.065);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.section {
  margin-top: 0;
  padding: 18px 0 0;
}

.plain-section {
  border: 0;
  background: transparent;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.05;
  font-weight: 950;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 920;
}

.primary,
.secondary,
.danger {
  position: relative;
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 15px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, opacity 0.16s ease, box-shadow 0.16s ease;
}

.primary::before,
.secondary::before,
.danger::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transform: translateX(-125%);
  transition: transform 0.48s ease;
  pointer-events: none;
}

.primary:hover,
.secondary:hover,
.danger:hover {
  transform: translateY(-1px);
}

.primary:hover::before,
.secondary:hover::before,
.danger:hover::before {
  transform: translateX(125%);
}

.primary {
  color: #080a10;
  background: linear-gradient(135deg, #f3b4ff, var(--rose) 52%, var(--cyan));
  background-size: 145% 145%;
  box-shadow: 0 12px 28px rgba(242, 121, 210, 0.22);
}

.primary:hover {
  box-shadow: 0 18px 38px rgba(242, 121, 210, 0.3), 0 0 0 1px rgba(110, 231, 255, 0.18);
  animation: button-glow 2.2s ease-in-out infinite;
}

.secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.secondary:hover {
  border-color: rgba(110, 231, 255, 0.26);
  background: rgba(255, 255, 255, 0.095);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.danger {
  color: #fff;
  background: var(--red);
}

button:disabled,
a[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.62;
}

.segmented {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.segmented button {
  min-height: 38px;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 0 16px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button.is-active {
  color: #080a10;
  background: linear-gradient(135deg, var(--rose), var(--cyan));
}

.toolbar {
  margin: 0 0 22px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(119, 87, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(119, 87, 255, 0.16);
}

input,
select {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 132px;
  resize: vertical;
  padding: 13px 14px;
}

.toolbar input {
  flex: 1 1 560px;
  font-weight: 800;
}

.toolbar select {
  flex: 0 0 220px;
}

.card-grid,
.quest-grid,
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.rank-grid {
  display: grid;
  gap: 22px;
}

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

.rank-rows {
  display: grid;
  gap: 12px;
}

.subhead {
  margin: 2px 0 -4px;
  color: var(--muted);
  font-weight: 900;
}

.listing-card,
.rank-row,
.quest-card,
.tool-card,
.pending-card,
.empty {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.026)),
    rgba(20, 23, 34, 0.9);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.listing-card::after,
.rank-row::after,
.quest-card::after,
.tool-card::after,
.pending-card::after,
.empty::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 42%, rgba(110, 231, 255, 0.05));
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.listing-card:hover,
.rank-row:hover,
.quest-card:hover,
.tool-card:hover,
.pending-card:hover {
  border-color: rgba(110, 231, 255, 0.22);
  box-shadow: var(--card-shadow), 0 0 0 1px rgba(242, 121, 210, 0.08);
  transform: translateY(-3px);
}

.listing-card:hover::after,
.rank-row:hover::after,
.quest-card:hover::after,
.tool-card:hover::after,
.pending-card:hover::after {
  opacity: 1;
}

.listing-card {
  position: relative;
  display: grid;
  grid-template-rows: 104px auto 72px auto 1fr;
  min-height: 338px;
  overflow: hidden;
  animation: card-rise 0.48s ease both;
}

.listing-card::before {
  content: "";
  height: 104px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(156, 107, 255, 0.34), rgba(242, 121, 210, 0.16), rgba(110, 231, 255, 0.12)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.055) 0 8px, transparent 8px 18px);
  background-size: auto, 180% 180%;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.listing-card:hover::before {
  filter: saturate(1.2) brightness(1.08);
  transform: scale(1.01);
}

.listing-card[data-type="bot"]::before {
  background:
    linear-gradient(135deg, rgba(255, 117, 189, 0.24), rgba(156, 107, 255, 0.28), rgba(110, 231, 255, 0.1)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 8px, transparent 8px 18px);
}

.listing-rank {
  position: absolute;
  right: 14px;
  top: 118px;
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffd6f3;
  background: rgba(242, 121, 210, 0.12);
  font-weight: 950;
}

.listing-top {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 0 14px;
  margin-top: -38px;
}

.listing-icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  object-fit: cover;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(119, 87, 255, 0.34), rgba(52, 213, 255, 0.2)),
    #202536;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.32);
  font-size: 14px;
  font-weight: 950;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.listing-card:hover .listing-icon,
.rank-row:hover .listing-icon {
  border-color: rgba(110, 231, 255, 0.4);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36), 0 0 22px rgba(110, 231, 255, 0.12);
  transform: translateY(-2px) scale(1.02);
}

.listing-card h3 {
  margin-top: 6px;
}

.listing-card[data-ranked="true"] h3 {
  padding-right: 48px;
}

.listing-type {
  margin: 40px 0 0;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.listing-card p,
.listing-description,
.rank-description,
.profile-listing-description,
.admin-preview-description,
.quest-card p,
.tool-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.listing-card > p,
.listing-card .listing-description,
.listing-card .tags,
.listing-card .listing-actions {
  padding-left: 14px;
  padding-right: 14px;
}

.listing-card > p,
.listing-card .listing-description {
  display: -webkit-box;
  min-height: 72px;
  max-height: 72px;
  overflow: hidden;
  font-weight: 700;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.rank-copy p,
.rank-description {
  display: -webkit-box;
  max-height: 48px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-weight: 700;
}

.discord-markdown {
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.discord-markdown-compact {
  display: inline;
  color: inherit;
  line-height: inherit;
}

.discord-markdown p {
  margin: 0 0 12px;
}

.discord-markdown p:last-child {
  margin-bottom: 0;
}

.discord-markdown h3,
.discord-markdown h4,
.discord-markdown h5 {
  margin: 18px 0 8px;
  color: var(--text);
  line-height: 1.15;
  font-weight: 950;
}

.discord-markdown h3:first-child,
.discord-markdown h4:first-child,
.discord-markdown h5:first-child {
  margin-top: 0;
}

.discord-markdown strong {
  color: var(--text);
  font-weight: 950;
}

.discord-markdown em {
  color: #dfe5ff;
}

.discord-markdown a {
  color: #8fe8ff;
  font-weight: 850;
  text-decoration: none;
}

.discord-markdown a:hover {
  color: #ffd6f3;
  text-decoration: underline;
}

.discord-markdown ul {
  display: grid;
  gap: 6px;
  margin: 0 0 12px 20px;
  padding: 0;
}

.discord-markdown blockquote {
  margin: 0 0 12px;
  border-left: 4px solid rgba(128, 222, 255, 0.34);
  padding: 8px 12px;
  color: #c9d1e7;
  background: rgba(128, 222, 255, 0.06);
}

.discord-markdown code {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px;
  padding: 2px 6px;
  color: #e8ecff;
  background: rgba(0, 0, 0, 0.34);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.discord-markdown pre {
  overflow: auto;
  margin: 0 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.36);
}

.discord-markdown pre code {
  border: 0;
  padding: 0;
  background: transparent;
}

.md-spoiler {
  border-radius: 5px;
  padding: 0 4px;
  color: transparent;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease;
}

.md-spoiler:hover,
.md-spoiler:focus {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.listing-card .tags {
  align-self: start;
  margin-top: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  font-size: 12px;
  font-weight: 850;
}

.tag-more {
  color: #ffd6f3;
  border-color: rgba(242, 121, 210, 0.32);
  background: rgba(242, 121, 210, 0.11);
}

.listing-actions {
  align-self: end;
  justify-content: center;
  margin-top: 8px;
  padding-bottom: 14px;
}

.listing-actions .primary,
.listing-actions .secondary,
.listing-actions .danger {
  min-height: 34px;
  padding: 0 11px;
  font-size: 13px;
}

.admin-delete-button {
  background: linear-gradient(135deg, #ff6176, #a61232);
  box-shadow: 0 12px 28px rgba(166, 18, 50, 0.24);
}

.meta-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 800;
}

.meta-row span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0 7px;
  background: rgba(255, 255, 255, 0.045);
}

.rank-row {
  display: grid;
  grid-template-columns: 54px 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 12px;
}

.rank-row .rank-no {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffd6f3;
  background: rgba(242, 121, 210, 0.1);
  font-size: 16px;
  font-weight: 950;
}

.rank-row .listing-icon {
  width: 66px;
  height: 58px;
  font-size: 11px;
}

.rank-row h3 {
  margin-bottom: 4px;
  font-size: 17px;
}

.rank-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.rank-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rank-row-actions .stat-box {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.rank-row-actions .primary,
.rank-row-actions .secondary {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.quest-card,
.tool-card,
.pending-card,
.empty {
  padding: 18px;
}

.quest-card,
.tool-card {
  overflow: hidden;
  animation: card-rise 0.48s ease both;
}

.quest-card:nth-child(2),
.tool-card:nth-child(2),
.listing-card:nth-child(2) {
  animation-delay: 0.04s;
}

.quest-card:nth-child(3),
.tool-card:nth-child(3),
.listing-card:nth-child(3) {
  animation-delay: 0.08s;
}

.quest-card:nth-child(4),
.tool-card:nth-child(4),
.listing-card:nth-child(4) {
  animation-delay: 0.12s;
}

.quest-card h3,
.tool-card h3 {
  position: relative;
  z-index: 1;
}

.empty {
  display: grid;
  min-height: 160px;
  place-items: center;
  color: var(--muted);
  text-align: center;
  font-weight: 850;
  background: rgba(20, 23, 34, 0.82);
}

.progress {
  height: 12px;
  margin: 14px 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.32);
}

.progress span {
  display: block;
  height: 100%;
  background:
    linear-gradient(90deg, var(--rose), var(--cyan), var(--green)),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.26) 0 7px, transparent 7px 14px);
  background-size: 180% 100%, auto;
  animation: progress-flow 2.4s linear infinite;
}

.tool-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.embed-tool-card {
  position: relative;
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(242, 121, 210, 0.13), rgba(110, 231, 255, 0.08)),
    rgba(20, 23, 34, 0.92);
  box-shadow: var(--card-shadow);
  animation: card-rise 0.48s ease both;
}

.embed-tool-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--rose), var(--cyan), var(--green));
}

.embed-tool-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.embed-tool-head h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.02;
}

.embed-tool-head p:last-child {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 760;
}

.embed-tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 22px;
}

.embed-webhook-form,
.embed-preview-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  padding: 16px;
  background: rgba(8, 10, 16, 0.48);
}

.webhook-guide {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(110, 231, 255, 0.16);
  border-radius: 12px;
  padding: 14px;
  color: var(--muted);
  background: rgba(110, 231, 255, 0.06);
  font-size: 14px;
  line-height: 1.5;
}

.webhook-guide strong {
  color: var(--text);
}

.webhook-guide ol {
  display: grid;
  gap: 4px;
  margin: 0 0 0 20px;
  padding: 0;
}

.webhook-guide p {
  margin: 0;
}

.tool-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.tool-field {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.tool-field.full {
  grid-column: 1 / -1;
}

.tool-field input,
.tool-field textarea {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.tool-field textarea {
  min-height: 170px;
}

.color-field input {
  min-height: 48px;
  padding: 6px;
}

.embed-tool-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.embed-send-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.discord-message-preview {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  min-height: 260px;
  border-radius: 12px;
  padding: 16px;
  background: #313338;
}

.preview-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  font-size: 13px;
  font-weight: 950;
}

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

.preview-message-body {
  min-width: 0;
}

.preview-message-body > strong {
  display: block;
  margin-bottom: 6px;
  color: #f2f3f5;
  font-size: 15px;
}

.embed-preview-card {
  display: grid;
  gap: 8px;
  max-width: 520px;
  border-left: 4px solid var(--rose);
  border-radius: 4px;
  padding: 12px 14px;
  color: #dbdee1;
  background: #2b2d31;
}

.embed-preview-card h4 {
  margin: 0;
  color: #f2f3f5;
  font-size: 16px;
}

.embed-preview-card .discord-markdown {
  color: #dbdee1;
  font-size: 14px;
  line-height: 1.5;
}

.embed-preview-card img {
  max-width: 100%;
  max-height: 260px;
  border-radius: 4px;
  object-fit: contain;
}

.tool-card::before,
.quest-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose), var(--cyan), var(--green));
  opacity: 0.82;
}

.price {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(242, 121, 210, 0.22);
  border-radius: 8px;
  padding: 0 10px;
  color: #ffd6f3;
  background: rgba(242, 121, 210, 0.08);
  font-weight: 950;
}

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

.profile-hero-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) minmax(180px, 260px);
  gap: 22px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(242, 121, 210, 0.13), rgba(110, 231, 255, 0.08)),
    rgba(255, 255, 255, 0.045);
  box-shadow: var(--card-shadow);
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 156px;
  height: 156px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(156, 107, 255, 0.34), rgba(110, 231, 255, 0.2)),
    #090b13;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

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

.profile-avatar span {
  color: var(--text);
  font-size: 38px;
  font-weight: 950;
}

.profile-copy {
  min-width: 0;
}

.profile-copy h3 {
  margin: 0;
  color: var(--text);
  font-size: 34px;
  line-height: 1.05;
}

.profile-discord-id {
  margin: 7px 0 14px;
  color: var(--quiet);
  font-size: 13px;
  font-weight: 850;
}

.profile-bio {
  min-height: 116px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 14px;
  color: var(--muted);
  background: rgba(8, 10, 16, 0.5);
  line-height: 1.55;
  white-space: pre-wrap;
}

.profile-edit-form {
  display: grid;
  gap: 12px;
}

.profile-actions {
  display: grid;
}

.profile-actions .primary {
  min-height: 76px;
  font-size: 17px;
}

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

.profile-stat {
  display: grid;
  min-height: 96px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(110, 231, 255, 0.16), rgba(242, 121, 210, 0.1)),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.profile-stat strong {
  font-size: 30px;
  font-weight: 950;
}

.profile-stat small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

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

.section-head.compact {
  margin-top: 2px;
}

.section-head.compact h3 {
  margin: 0;
  color: var(--text);
  font-size: 26px;
}

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

.profile-listing-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.profile-listing-cover {
  height: 74px;
  margin: -14px -14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 8px, transparent 8px 18px),
    linear-gradient(135deg, rgba(156, 107, 255, 0.42), rgba(110, 231, 255, 0.2));
}

.profile-listing-main {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.profile-listing-main .listing-icon {
  width: 76px;
  height: 76px;
  margin-top: -42px;
  border-radius: 16px;
}

.profile-listing-main h4 {
  margin: 6px 0 5px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.1;
}

.profile-listing-main p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.profile-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  padding: 0 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 950;
}

.profile-status[data-status="approved"] {
  border-color: rgba(134, 239, 172, 0.3);
  color: var(--green);
  background: rgba(134, 239, 172, 0.08);
}

.profile-status[data-status="pending"] {
  border-color: rgba(255, 184, 77, 0.3);
  color: var(--amber);
  background: rgba(255, 184, 77, 0.08);
}

.profile-status[data-status="rejected"],
.profile-status[data-status="hidden"] {
  border-color: rgba(255, 97, 118, 0.28);
  color: var(--red);
  background: rgba(255, 97, 118, 0.08);
}

.profile-listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-listing-meta span {
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  padding: 5px 9px;
  color: var(--muted);
  background: rgba(8, 10, 16, 0.36);
  font-size: 12px;
  font-weight: 850;
}

.profile-spotlight-box {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(242, 121, 210, 0.22);
  border-radius: 8px;
  padding: 11px;
  background:
    linear-gradient(135deg, rgba(242, 121, 210, 0.12), rgba(110, 231, 255, 0.07)),
    rgba(8, 10, 16, 0.28);
}

.profile-spotlight-box[data-status="active"] {
  border-color: rgba(134, 239, 172, 0.3);
  background:
    linear-gradient(135deg, rgba(134, 239, 172, 0.12), rgba(110, 231, 255, 0.07)),
    rgba(8, 10, 16, 0.28);
}

.profile-spotlight-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.profile-spotlight-box button {
  width: 100%;
}

.profile-listing-editor {
  width: min(1060px, calc(100vw - 28px));
  max-height: min(86vh, 820px);
  overflow: auto;
}

.profile-listing-editor .wizard-title p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 850;
}

.profile-editor-note {
  border: 1px solid rgba(255, 184, 77, 0.24);
  border-radius: 8px;
  padding: 10px 12px;
  color: #ffe1a6;
  background: rgba(255, 184, 77, 0.08);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.profile-editor-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(8, 10, 16, 0.42);
}

.profile-editor-tabs button {
  min-height: 54px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  background: transparent;
  font-weight: 950;
}

.profile-editor-tabs button:last-child {
  border-right: 0;
}

.profile-editor-tabs button:hover,
.profile-editor-tabs button.is-active {
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(242, 121, 210, 0.22), rgba(110, 231, 255, 0.12)),
    rgba(255, 255, 255, 0.06);
}

.profile-editor-panel {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(242, 121, 210, 0.08), rgba(110, 231, 255, 0.045)),
    rgba(8, 10, 16, 0.32);
}

.profile-editor-panel.is-active {
  display: block;
}

.profile-tag-field {
  gap: 12px;
}

.profile-tag-grid {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 10px;
}

.profile-editor-preview {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  min-height: 180px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 76px 16px 16px;
  background: rgba(255, 255, 255, 0.045);
}

.profile-preview-banner {
  position: absolute;
  inset: 0 0 auto;
  height: 104px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 8px, transparent 8px 18px),
    linear-gradient(135deg, rgba(156, 107, 255, 0.42), rgba(110, 231, 255, 0.2));
}

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

.profile-editor-preview .listing-icon {
  position: relative;
  z-index: 1;
}

.profile-editor-preview strong,
.profile-editor-preview span {
  position: relative;
  z-index: 1;
  display: block;
}

.profile-editor-preview strong {
  color: var(--text);
  font-size: 22px;
  font-weight: 950;
}

.profile-editor-preview span {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .profile-listing-editor {
    width: calc(100vw - 18px);
    max-height: 90vh;
  }

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

  .profile-editor-tabs button {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .profile-editor-tabs button:last-child {
    border-bottom: 0;
  }

  .profile-editor-panel {
    padding: 12px;
  }

  .profile-editor-preview {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 88px;
  }
}

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

.admin-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-tile {
  display: grid;
  min-height: 118px;
  gap: 6px;
  align-content: start;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 16px;
  color: var(--muted);
  text-align: left;
  background:
    linear-gradient(135deg, rgba(242, 121, 210, 0.12), rgba(110, 231, 255, 0.07)),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.admin-tile span {
  color: var(--text);
  font-size: 28px;
  font-weight: 950;
}

.admin-tile strong {
  color: var(--text);
  font-size: 15px;
}

.admin-tile small {
  color: var(--quiet);
  font-weight: 800;
}

.admin-tile:hover,
.admin-tile.is-active {
  transform: translateY(-2px);
  border-color: rgba(242, 121, 210, 0.45);
  background:
    linear-gradient(135deg, rgba(242, 121, 210, 0.22), rgba(110, 231, 255, 0.13)),
    rgba(255, 255, 255, 0.05);
}

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

.admin-workbench-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
}

.admin-workbench-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 28px;
}

.admin-search {
  display: grid;
  gap: 7px;
  width: min(420px, 100%);
  color: var(--quiet);
  font-size: 12px;
  font-weight: 900;
}

.admin-search span {
  justify-self: end;
}

.admin-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(8, 10, 16, 0.72);
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.admin-search input:focus {
  border-color: rgba(110, 231, 255, 0.54);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(110, 231, 255, 0.1);
}

.pending-card,
.admin-card {
  display: grid;
  gap: 12px;
}

.admin-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

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

.admin-card-head h3 {
  margin: 0;
  color: var(--text);
}

.admin-card-head small {
  color: var(--quiet);
  font-weight: 800;
}

.admin-card select,
.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(8, 10, 16, 0.72);
  font: inherit;
}

.admin-card select {
  width: min(190px, 100%);
}

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

.admin-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

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

.admin-field textarea {
  min-height: 98px;
  resize: vertical;
}

.admin-field input[type="file"] {
  min-height: 52px;
  padding: 8px;
}

.admin-field input[type="file"]::file-selector-button {
  min-height: 34px;
  margin-right: 12px;
  border: 0;
  border-radius: 8px;
  padding: 0 13px;
  color: #080a10;
  background: linear-gradient(135deg, #f3b4ff, var(--rose) 52%, var(--cyan));
  font-weight: 950;
  cursor: pointer;
}

.upload-hint {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 820;
}

.legal-page {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 0%, rgba(242, 121, 210, 0.2), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(110, 231, 255, 0.16), transparent 26%),
    linear-gradient(135deg, #080a10 0%, #111322 52%, #07080d 100%);
}

.legal-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0 24px;
}

.legal-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.legal-nav .brand span {
  display: grid;
  gap: 1px;
}

.legal-nav .brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.legal-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.legal-nav-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  text-decoration: none;
  font-weight: 900;
}

.legal-nav-links a:hover,
.legal-nav-links a[aria-current="page"] {
  color: var(--text);
  border-color: rgba(242, 121, 210, 0.45);
  background: rgba(242, 121, 210, 0.11);
}

.legal-nav-links .legal-home-link {
  color: var(--text);
  border-color: rgba(110, 231, 255, 0.32);
  background: rgba(110, 231, 255, 0.08);
  white-space: nowrap;
}

.legal-document {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 46px);
  background:
    linear-gradient(135deg, rgba(242, 121, 210, 0.1), rgba(110, 231, 255, 0.055)),
    rgba(13, 16, 27, 0.86);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.legal-document h1 {
  margin: 8px 0 16px;
  color: #fff;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 0.98;
}

.legal-document h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(20px, 3vw, 28px);
}

.legal-document section {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

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

.legal-note {
  border: 1px solid rgba(242, 121, 210, 0.28);
  border-radius: 8px;
  padding: 16px;
  color: #ffe7f8;
  background: rgba(242, 121, 210, 0.09);
  line-height: 1.65;
}

.faq-shell {
  display: grid;
  gap: 22px;
}

.faq-hero,
.faq-admin-panel,
.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(242, 121, 210, 0.11), rgba(110, 231, 255, 0.06)),
    rgba(13, 16, 27, 0.88);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.faq-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 52px);
}

.faq-hero::after {
  content: "";
  position: absolute;
  inset: auto 24px 0 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 121, 210, 0.76), rgba(110, 231, 255, 0.64), transparent);
}

.faq-hero h1 {
  margin: 8px 0 12px;
  color: #fff;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 0.95;
}

.faq-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.65;
}

.faq-admin-panel {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 26px);
}

.faq-admin-panel[hidden] {
  display: none;
}

.faq-create-form {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: 14px;
}

.faq-list,
.faq-admin-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(18, 21, 32, 0.92);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.faq-item:hover {
  border-color: rgba(110, 231, 255, 0.26);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(242, 121, 210, 0.08);
  transform: translateY(-1px);
}

.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 70px;
  padding: 18px 56px 18px 22px;
  color: #fff;
  font-size: 17px;
  font-weight: 950;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 22px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: #ffd6f3;
  background: rgba(242, 121, 210, 0.11);
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-answer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.75;
  white-space: pre-wrap;
}

.faq-admin-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 16px;
  background: rgba(9, 11, 18, 0.58);
}

.faq-admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-admin-card-head strong {
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.faq-admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.faq-admin-card-actions .secondary,
.faq-admin-card-actions .danger {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.blog-shell {
  display: grid;
  gap: 22px;
}

.blog-hero,
.blog-admin-panel,
.blog-reader-card,
.blog-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(242, 121, 210, 0.11), rgba(110, 231, 255, 0.06)),
    rgba(13, 16, 27, 0.88);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.blog-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 52px);
}

.blog-hero::after {
  content: "";
  position: absolute;
  inset: auto 24px 0 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 121, 210, 0.76), rgba(110, 231, 255, 0.64), transparent);
}

.blog-hero h1 {
  max-width: 820px;
  margin: 8px 0 12px;
  color: #fff;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 0.95;
}

.blog-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.65;
}

.blog-list-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.blog-list-head h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

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

.blog-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(18, 21, 32, 0.92);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.blog-card:hover {
  border-color: rgba(110, 231, 255, 0.26);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(242, 121, 210, 0.08);
  transform: translateY(-1px);
}

.blog-card-cover {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 16px),
    linear-gradient(135deg, rgba(242, 121, 210, 0.34), rgba(110, 231, 255, 0.24));
}

.blog-card-cover.fallback {
  display: grid;
  place-items: center;
}

.blog-card-cover span {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  color: #fff;
  background: rgba(10, 12, 20, 0.4);
  font-size: 24px;
  font-weight: 950;
}

.blog-card-body {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px;
}

.blog-category {
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(242, 121, 210, 0.34);
  border-radius: 8px;
  padding: 5px 9px;
  color: #ffd6f3;
  background: rgba(242, 121, 210, 0.1);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.blog-card h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.08;
}

.blog-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.55;
}

.blog-meta {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 850;
}

.blog-card .secondary {
  width: max-content;
}

.blog-reader-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: clamp(20px, 4vw, 42px);
}

.blog-reader-close {
  justify-self: start;
}

.blog-reader-cover {
  width: 100%;
  max-height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  object-fit: cover;
}

.blog-reader-card h2 {
  max-width: 860px;
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
}

.blog-content {
  display: grid;
  gap: 16px;
  max-width: 860px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 680;
  line-height: 1.78;
}

.blog-content p {
  margin: 0;
}

.blog-admin-panel {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 26px);
}

.blog-admin-panel[hidden] {
  display: none;
}

.blog-create-form,
.blog-admin-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

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

.blog-admin-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 16px;
  background: rgba(9, 11, 18, 0.58);
}

.blog-admin-card-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.blog-admin-card-head div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.blog-admin-card-head strong {
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.blog-admin-card-head span {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 850;
}

.blog-admin-card-head .danger {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.blog-create-form .listing-actions,
.blog-admin-card .listing-actions {
  grid-column: 1 / -1;
}

.modal {
  position: relative;
  width: min(980px, calc(100% - 28px));
  border: 1px solid var(--strong-line);
  border-radius: 8px;
  color: var(--text);
  background: #121620;
  box-shadow: var(--shadow);
  animation: modal-in 0.22s ease both;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(8px);
  animation: backdrop-in 0.2s ease both;
}

.modal-shell {
  position: relative;
  margin: 0;
  padding: 28px;
}

.modal-shell h2 {
  text-align: center;
}

.modal-shell h2 span {
  display: inline-block;
  margin-left: 8px;
  color: var(--muted);
  font-size: 16px;
  vertical-align: middle;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-size: 22px;
  font-weight: 950;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.modal-close:hover {
  border-color: rgba(242, 121, 210, 0.44);
  background: rgba(242, 121, 210, 0.14);
  transform: rotate(4deg) scale(1.03);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin: 24px 0;
}

.modal.add-modal {
  width: min(1060px, calc(100% - 28px));
  border-color: rgba(242, 121, 210, 0.2);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(21, 18, 32, 0.98), rgba(10, 12, 18, 0.98)),
    var(--bg-2);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.56), 0 0 0 1px rgba(110, 231, 255, 0.08);
}

.wizard-shell {
  min-height: min(78vh, 720px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 22px;
  padding: 34px clamp(20px, 5vw, 72px);
}

.wizard-title {
  display: grid;
  gap: 12px;
  text-align: center;
}

.wizard-title h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 950;
  letter-spacing: 0;
}

.wizard-title h2 span {
  color: #ffd6f3;
  font-size: 16px;
  font-weight: 900;
}

.wizard-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.wizard-progress span {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.wizard-progress span.is-active {
  background: linear-gradient(90deg, var(--purple), var(--rose), var(--cyan));
  box-shadow: 0 0 18px rgba(242, 121, 210, 0.3);
}

.wizard-step {
  align-content: start;
  display: grid;
  gap: 22px;
  min-height: 0;
}

.wizard-step[hidden] {
  display: none;
}

.wizard-step h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 950;
}

.wizard-field {
  display: grid;
  gap: 9px;
  color: var(--text);
  font-size: 18px;
  font-weight: 950;
}

.wizard-field span,
.wizard-field small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.wizard-field input,
.wizard-field select,
.wizard-field textarea {
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 0 1px rgba(242, 121, 210, 0.06);
  font-size: 16px;
  font-weight: 800;
}

.wizard-field input,
.wizard-field select {
  min-height: 58px;
}

select option {
  background: #151722;
  color: var(--text);
}

.guild-picker {
  position: relative;
}

.guild-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  width: 100%;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    #191822;
  box-shadow: inset 0 0 0 1px rgba(242, 121, 210, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  padding: 0 16px;
  text-align: left;
}

.guild-picker-trigger:hover,
.guild-picker-trigger[aria-expanded="true"] {
  border-color: rgba(242, 121, 210, 0.58);
  box-shadow:
    0 0 0 3px rgba(242, 121, 210, 0.12),
    inset 0 0 0 1px rgba(128, 222, 255, 0.1);
}

.guild-picker-trigger span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 900;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guild-picker-trigger.has-value span {
  color: var(--text);
}

.guild-picker-trigger b {
  flex: 0 0 auto;
  color: #f4a7df;
  font-size: 14px;
  font-weight: 950;
}

.guild-picker-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 140;
  max-height: 320px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(74, 42, 134, 0.48), rgba(19, 20, 31, 0.96) 46%, rgba(20, 42, 52, 0.9)),
    #11131c;
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 8px;
  animation: menu-pop 0.16s ease both;
}

.guild-picker-option {
  display: block;
  min-height: 42px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
  padding: 0 14px;
  text-align: left;
}

.guild-picker-option:hover,
.guild-picker-option:focus-visible,
.guild-picker-option.is-selected {
  background: linear-gradient(90deg, rgba(242, 121, 210, 0.18), rgba(128, 222, 255, 0.12));
  color: #fff;
}

.guild-picker-empty {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  padding: 14px;
}

.guild-bot-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.guild-bot-status[hidden] {
  display: none;
}

.guild-bot-status.is-missing {
  border-color: rgba(255, 97, 118, 0.54);
  color: #ffd6de;
  background: rgba(255, 97, 118, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.guild-bot-status.is-ok {
  border-color: rgba(134, 239, 172, 0.42);
  color: #dcffe7;
  background: rgba(134, 239, 172, 0.1);
}

.guild-bot-status a {
  flex: 0 0 auto;
  border-radius: 10px;
  padding: 9px 12px;
  color: #080a12;
  background: linear-gradient(135deg, var(--rose), var(--cyan));
  text-decoration: none;
  white-space: nowrap;
}

.wizard-field textarea {
  min-height: 158px;
}

.wizard-field textarea[name="description"] {
  min-height: 188px;
  border-top-left-radius: 0;
}

.inline-input {
  display: flex;
  gap: 10px;
}

.inline-input input {
  flex: 1 1 auto;
}

.inline-input .secondary {
  flex: 0 0 auto;
}

.tag-choice-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(86px, 1fr));
  gap: 14px;
}

.tag-choice-grid button {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 900;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.tag-choice-grid button:hover,
.tag-choice-grid button.is-selected {
  border-color: rgba(242, 121, 210, 0.58);
  background: rgba(242, 121, 210, 0.14);
  transform: translateY(-1px);
}

.tag-total {
  justify-self: center;
  min-width: min(540px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 18px 22px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  font-size: 18px;
  font-weight: 950;
}

.tag-total strong {
  color: #ffd6f3;
}

.editor-box {
  overflow: hidden;
  border-radius: 14px;
}

.editor-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #202230;
}

.editor-bar button {
  display: grid;
  place-items: center;
  min-width: 38px;
  flex: 0 0 auto;
  height: 34px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 950;
}

.editor-bar button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.accordion-builder {
  display: grid;
  gap: 0;
}

.builder-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  font-size: 18px;
  font-weight: 950;
  text-align: left;
}

.builder-toggle small {
  color: var(--muted);
  font-size: 14px;
}

.builder-toggle b {
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
}

.builder-rows {
  display: grid;
}

.builder-row {
  display: grid;
  grid-template-columns: minmax(90px, 160px) minmax(0, 1fr) 52px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top: 0;
}

.builder-row input {
  min-height: 42px;
  border: 0;
  border-right: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.035);
  font-weight: 850;
}

.row-remove {
  display: grid;
  place-items: center;
  border: 0;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  font-size: 28px;
  font-weight: 500;
}

.row-remove:hover {
  color: #fff;
  background: rgba(255, 97, 118, 0.18);
}

.wizard-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.wizard-actions .primary,
.wizard-actions .secondary {
  min-width: 170px;
  min-height: 52px;
  font-size: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 850;
}

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

.detail-shell {
  max-height: min(82vh, 820px);
  overflow: auto;
}

.detail-page-content {
  display: grid;
  gap: 18px;
}

.detail-page-content > p {
  max-width: 980px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.65;
  white-space: pre-wrap;
}

.listing-description-full {
  max-width: 980px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 750;
}

.detail-hero {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 0 0 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(119, 87, 255, 0.18), rgba(52, 213, 255, 0.08)),
    rgba(255, 255, 255, 0.04);
}

.detail-hero .listing-icon {
  width: 96px;
  height: 96px;
}

.review-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.reviews {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.review {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  max-width: 420px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #151925;
  box-shadow: var(--shadow);
  font-weight: 850;
}

.modal > .toast {
  position: absolute;
  right: auto;
  bottom: 18px;
  left: 50%;
  z-index: 260;
  width: max-content;
  max-width: min(520px, calc(100% - 40px));
  transform: translateX(-50%);
  border-color: rgba(242, 121, 210, 0.32);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(28, 31, 46, 0.98), rgba(15, 17, 26, 0.98)),
    #151925;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(128, 222, 255, 0.08);
  text-align: center;
}

@keyframes ambient-drift {
  from {
    transform: translate3d(-16px, -16px, 0);
  }
  to {
    transform: translate3d(16px, 16px, 0);
  }
}

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mascot-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -5px;
  }
}

@keyframes button-glow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

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

@keyframes spotlight-slide-in {
  from {
    opacity: 0;
    transform: translateX(42px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes spotlight-slide-left {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-64px);
  }
}

@keyframes progress-flow {
  from {
    background-position: 0% 50%, 0 0;
  }
  to {
    background-position: 100% 50%, 28px 0;
  }
}

@keyframes menu-pop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 1240px) {
  .topbar {
    grid-template-columns: var(--sidebar-w) minmax(260px, 1fr) auto;
  }

  .featured-inner {
    grid-template-columns: 150px minmax(0, 1fr);
  }

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

@media (max-width: 980px) {
  :root {
    --sidebar-w: 292px;
  }

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

  .profile-hero-card {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .profile-avatar {
    width: 128px;
    height: 128px;
    border-radius: 22px;
  }

  .profile-actions {
    grid-column: 1 / -1;
  }

  .profile-actions .primary {
    min-height: 52px;
  }

  .brand small {
    display: none;
  }

  .hero-panel {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .hero-stats {
    grid-column: 1 / -1;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rank-row {
    grid-template-columns: 48px 66px minmax(0, 1fr);
  }

  .rank-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 74px;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .tag-choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brand {
    padding: 0 12px;
  }

  .brand strong {
    font-size: 20px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .top-search {
    display: none;
  }

  .top-actions {
    gap: 8px;
    padding-right: 12px;
  }

  .notification-panel {
    position: fixed;
    top: calc(var(--header-h) - 4px);
    right: 12px;
    left: 12px;
    width: auto;
  }

  .crystal-badge:not(.notification-trigger),
  .logout-link {
    display: none;
  }

  .sidebar {
    display: none;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  main {
    width: calc(100vw - 44px);
    margin: 0 auto;
    padding: calc(var(--header-h) + 18px) 0 70px;
  }

  .mobile-nav {
    display: grid;
  }

  .featured-inner,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .featured-card,
  .listing-card,
  .rank-row {
    max-width: 100%;
  }

  .featured-icon {
    width: 132px;
    height: 132px;
  }

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

@media (max-width: 620px) {
  :root {
    --header-h: 132px;
  }

  .embed-tool-card {
    padding: 16px;
  }

  .embed-tool-head,
  .embed-tool-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .discord-message-preview {
    grid-template-columns: 1fr;
  }

  .guild-bot-status {
    align-items: stretch;
    flex-direction: column;
  }

  .guild-bot-status a {
    text-align: center;
  }

  .topbar {
    grid-template-columns: 44px minmax(0, 1fr) minmax(112px, 132px);
    grid-template-rows: 48px 44px;
    align-content: center;
    gap: 8px;
    padding: 8px 12px 10px;
  }

  .brand {
    grid-column: 1 / 3;
    grid-row: 1;
    width: 100%;
    height: 48px;
    min-width: 0;
    gap: 8px;
    padding: 0;
    overflow: hidden;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
  }

  .brand strong {
    min-width: 0;
    overflow: hidden;
    font-size: 23px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .top-actions {
    display: contents;
    padding-right: 0;
  }

  .notification-shell {
    grid-column: 1;
    grid-row: 2;
  }

  .notification-shell,
  .userbar,
  .profile-menu-shell {
    min-width: 0;
  }

  .notification-trigger,
  .crystal-badge {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .userbar {
    display: contents;
  }

  .top-actions .crystal-pill {
    grid-column: 2;
    grid-row: 2;
    display: inline-flex;
    width: 100%;
    max-width: none;
    min-height: 44px;
    justify-content: center;
    border-radius: 13px;
    padding: 0 8px;
    font-size: 13px;
  }

  .profile-menu-shell {
    grid-column: 3;
    grid-row: 1;
    width: 100%;
  }

  .account-pill,
  .user-pill {
    max-width: none;
    width: 100%;
    min-height: 44px;
    gap: 7px;
    padding: 0 9px;
  }

  .account-pill > span,
  .user-pill > span {
    min-width: 0;
  }

  .account-pill strong,
  .user-pill strong {
    font-size: 13px;
  }

  .account-pill small,
  .user-pill small {
    max-width: none;
    font-size: 12px;
  }

  .account-pill .avatar,
  .user-pill .avatar {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    border-radius: 7px;
  }

  .account-pill b,
  .user-pill b {
    flex: 0 0 auto;
  }

  .menu-button {
    grid-column: 3;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border-radius: 13px;
    padding: 0 12px;
    font-size: 16px;
  }

  .profile-menu {
    position: fixed;
    top: calc(var(--header-h) - 2px);
    right: 12px;
    left: 12px;
    width: auto;
  }

  .modal.add-modal {
    width: calc(100% - 16px);
    border-radius: 22px;
  }

  .wizard-shell {
    min-height: min(86vh, 760px);
    max-height: 86vh;
    overflow: auto;
    padding: 26px 16px;
  }

  .wizard-title h2 {
    font-size: 24px;
  }

  .wizard-title h2 span {
    display: block;
    margin: 6px 0 0;
  }

  .wizard-field {
    font-size: 15px;
  }

  .wizard-field input,
  .wizard-field select {
    min-height: 50px;
  }

  .guild-picker-trigger {
    min-height: 50px;
  }

  .guild-picker-menu {
    max-height: 260px;
  }

  .wizard-field textarea {
    min-height: 130px;
  }

  .tag-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .inline-input {
    flex-direction: column;
  }

  .wizard-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .wizard-actions .primary,
  .wizard-actions .secondary {
    width: 100%;
    min-width: 0;
  }

  .account-pill,
  .user-pill {
    padding: 0 9px;
  }

  .account-pill small,
  .user-pill small {
    max-width: none;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .banner-mascot {
    width: 78px;
    height: 78px;
    border-radius: 18px;
  }

  .banner-mascot span {
    font-size: 21px;
  }

  .hero-panel h1 {
    font-size: 29px;
    line-height: 1.04;
  }

  .hero-stats,
  .featured-actions {
    width: 100%;
  }

  .featured-actions .primary,
  .featured-actions .secondary {
    flex: 1 1 100%;
    width: 100%;
  }

  .featured-actions .stat-box {
    flex: 1 1 calc(50% - 6px);
  }

  .featured-copy h1 {
    font-size: 28px;
    line-height: 1.08;
  }

  .featured-inner {
    padding: 20px;
  }

  .hero-stats,
  .card-grid,
  .quest-grid,
  .tool-grid,
  .profile-stats,
  .profile-listing-grid,
  .admin-form-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .profile-avatar {
    width: 112px;
    height: 112px;
    border-radius: 20px;
  }

  .profile-copy h3 {
    font-size: 27px;
  }

  .profile-bio {
    min-height: 104px;
  }

  .profile-listing-main {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .profile-listing-main .listing-icon {
    width: 68px;
    height: 68px;
  }

  .admin-card-head {
    display: grid;
  }

  .admin-workbench-head {
    display: grid;
    align-items: stretch;
  }

  .admin-search,
  .admin-search span {
    width: 100%;
    justify-self: start;
  }

  .admin-card select {
    width: 100%;
  }

  .legal-nav {
    display: grid;
    align-items: start;
  }

  .legal-nav-links {
    justify-content: start;
  }

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

  .faq-hero,
  .faq-admin-panel {
    padding: 18px;
  }

  .faq-item summary {
    min-height: 62px;
    padding: 16px 50px 16px 16px;
    font-size: 16px;
  }

  .faq-item summary::after {
    right: 16px;
  }

  .faq-answer {
    padding: 0 16px 18px;
  }

  .faq-admin-card-head {
    display: grid;
    align-items: stretch;
  }

  .faq-admin-card-actions {
    justify-content: stretch;
  }

  .faq-admin-card-actions button {
    flex: 1 1 auto;
  }

  .tag-choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .builder-row {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .builder-row input {
    grid-column: 1 / 2;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .builder-row .row-remove {
    grid-column: 2 / 3;
    grid-row: 1 / span 2;
  }

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

  .section-head {
    align-items: flex-start;
  }

  .segmented {
    width: 100%;
  }

  .segmented button {
    flex: 1;
  }

  .toolbar select {
    flex-basis: 100%;
  }

  .rank-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .rank-row .listing-icon {
    grid-column: 1;
  }

  .rank-row .rank-copy {
    grid-column: 2;
  }
}

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

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

@media (max-width: 620px) {
  .blog-hero,
  .blog-admin-panel,
  .blog-reader-card {
    padding: 18px;
  }

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

  .blog-card-cover {
    min-height: 180px;
  }

  .blog-card .secondary {
    width: 100%;
  }

  .blog-create-form,
  .blog-admin-card {
    grid-template-columns: 1fr;
  }

  .blog-admin-card-head {
    display: grid;
    align-items: stretch;
  }

  .blog-admin-card-head .danger {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .listing-card:hover,
  .rank-row:hover,
  .quest-card:hover,
  .tool-card:hover,
  .pending-card:hover,
  .primary:hover,
  .secondary:hover,
  .danger:hover,
  .nav-link:hover {
    transform: none;
  }
}
