:root {
  color-scheme: light;
  --ink: #132033;
  --muted: #65758b;
  --line: #d8e0eb;
  --panel: #ffffff;
  --soft: #f5f8fc;
  --blue: #102f63;
  --blue-2: #1d5fbf;
  --gold: #d8a328;
  --red: #d33a32;
  --green: #16865e;
  --shadow: 0 18px 55px rgba(16, 47, 99, 0.12);
  --content-width: 1380px;
  --page-gutter: clamp(18px, 4vw, 48px);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  background: var(--soft);
}

.app-toast {
  position: fixed;
  right: var(--page-gutter);
  bottom: 24px;
  z-index: 100;
  max-width: min(420px, calc(100vw - 36px));
  padding: 13px 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), #1f5d9f);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(16, 47, 99, 0.24);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  animation: toast-in 0.22s ease both;
}

.app-toast.error {
  background: linear-gradient(135deg, #9f2f27, #d33a32);
}

.app-toast.hiding {
  animation: toast-out 0.2s ease both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

h1,
h2,
h3,
h4,
h5 {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

strong,
b {
  font-weight: 600;
}

p {
  font-size: 15px;
}

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

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

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 72px;
  padding: 12px var(--page-gutter);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.92));
  border-bottom: 1px solid rgba(216, 224, 235, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 36px rgba(16, 47, 99, 0.08);
}

.site-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
}

.brand,
.header-actions,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-weight: 600;
  box-shadow: inset 0 -4px 0 var(--gold);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.nav {
  position: relative;
  justify-content: center;
  gap: 5px;
  width: fit-content;
  justify-self: center;
  padding: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(236, 244, 255, 0.34)),
    rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(16, 47, 99, 0.08),
    0 16px 38px rgba(16, 47, 99, 0.12);
}

.nav::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.52) 42%, transparent 62%);
  opacity: 0.72;
  pointer-events: none;
}

.nav::after {
  content: "";
  position: absolute;
  top: -50%;
  bottom: -50%;
  left: -35%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.56), transparent);
  transform: rotate(18deg);
  animation: nav-glass-sheen 6s ease-in-out infinite;
  pointer-events: none;
}

.nav a,
.button,
.icon-button {
  min-height: 40px;
  border-radius: 8px;
}

.nav a {
  position: relative;
  z-index: 1;
  padding: 9px 15px;
  color: rgba(30, 49, 78, 0.82);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 999px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--blue);
  background:
    radial-gradient(circle at 30% 10%, rgba(255, 255, 255, 0.94), transparent 45%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(232, 241, 255, 0.58));
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 22px rgba(16, 47, 99, 0.13),
    0 0 0 1px rgba(29, 95, 191, 0.08);
  transform: translateY(-1px) scale(1.015);
}

.nav a.active {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(29, 95, 191, 0.94), rgba(16, 47, 99, 0.92));
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -8px 18px rgba(5, 16, 36, 0.18),
    0 12px 28px rgba(16, 47, 99, 0.24),
    0 0 0 3px rgba(216, 163, 40, 0.14);
}

.nav a.nav-submit-link {
  margin-left: 2px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(216, 163, 40, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 10px 24px rgba(16, 47, 99, 0.15),
    0 0 0 2px rgba(216, 163, 40, 0.1);
}

.nav a.nav-submit-link:hover,
.nav a.nav-submit-link.active {
  color: var(--blue);
  background: #ffffff;
  border-color: rgba(216, 163, 40, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 13px 28px rgba(16, 47, 99, 0.18),
    0 0 0 3px rgba(216, 163, 40, 0.16);
  transform: translateY(-1px) scale(1.018);
}

.header-actions {
  gap: 10px;
}

.header-actions .button,
.header-actions .icon-button {
  min-height: 34px;
  font-size: 13px;
  font-weight: 400;
  box-shadow: none;
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  font-weight: 600;
}

.button {
  padding: 10px 14px;
  background: var(--blue);
  color: white;
  box-shadow: 0 10px 24px rgba(16, 47, 99, 0.18);
}

.button.secondary {
  background: var(--gold);
  color: #261a04;
}

.button.ghost,
.icon-button {
  color: var(--blue);
  background: #eef4fd;
  box-shadow: none;
}

.icon-button {
  width: 42px;
  border: 1px solid #dce6f3;
}

.header-auth-button {
  padding: 8px 11px;
}

.header-auth-button.auth-login-button {
  position: relative;
  overflow: hidden;
  min-height: 38px;
  padding: 7px 14px 7px 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.34), transparent 34%),
    linear-gradient(135deg, var(--blue-2), var(--blue));
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 14px 28px rgba(16, 47, 99, 0.2),
    0 0 0 3px rgba(216, 163, 40, 0.11);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.header-auth-button.auth-login-button::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.24), transparent 34%, rgba(216, 163, 40, 0.18));
  opacity: 0.82;
  pointer-events: none;
}

.header-auth-button.auth-login-button > span {
  position: relative;
  z-index: 1;
}

.header-auth-button.auth-login-button .header-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 5px 12px rgba(5, 16, 36, 0.16);
}

.header-auth-button.auth-login-button .header-icon svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.header-auth-button.auth-login-button:hover {
  color: #ffffff;
  border-color: rgba(216, 163, 40, 0.64);
  filter: saturate(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 17px 34px rgba(16, 47, 99, 0.25),
    0 0 0 4px rgba(216, 163, 40, 0.16);
  transform: translateY(-1px);
}

.header-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
}

.header-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.app-shell {
  min-height: calc(100vh - 140px);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: min(434px, calc(72vh - 68px));
  padding: clamp(20px, 3.6vw, 42px) var(--page-gutter);
  color: white;
  overflow: hidden;
  background-image: linear-gradient(90deg, rgba(6, 19, 41, 0.88), rgba(6, 19, 41, 0.55), rgba(6, 19, 41, 0.08)), url("/assets/ai-cambodia-hero.png");
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 72% 24%, rgba(216, 163, 40, 0.2), transparent 30%),
    radial-gradient(circle at 18% 72%, rgba(29, 95, 191, 0.22), transparent 34%);
  background-size: 48px 48px, 48px 48px, 100% 100%, 100% 100%;
  animation: hero-grid-drift 8s linear infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.12) 42%, transparent 72%);
  animation: pattern-sweep 5.5s ease-in-out infinite;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: clamp(20px, 4vw, 52px);
  align-items: center;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding-bottom: clamp(8px, 2.8vh, 30px);
}

.hero-copy {
  animation: rise-in 0.38s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #ffe6a4;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.dark {
  margin-bottom: 10px;
  color: var(--blue-2);
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: 1.4rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero p {
  max-width: 600px;
  margin: 18px 0 0;
  color: #e4ecf8;
  font-size: 15px;
  line-height: 1.55;
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 640px;
  margin-top: 20px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.hero-search input {
  min-width: 0;
  min-height: 46px;
  padding: 12px 14px;
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  color: var(--ink);
  background: #ffffff;
  font-family: inherit;
  font-size: 14px;
  outline: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-actions,
.search-row,
.filter-row,
.card-actions,
.detail-actions,
.form-row,
.tabs,
.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-top: 22px;
}

.hero-preview {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(5, 16, 38, 0.28);
  backdrop-filter: blur(18px);
  animation: float-panel 3.6s ease-in-out infinite;
}

.static-preview {
  pointer-events: none;
}

.hero-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(216, 163, 40, 0.78), rgba(29, 95, 191, 0.7), rgba(255, 255, 255, 0.65));
  background-size: 220% 220%;
  animation: border-flow 3.2s ease infinite;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.preview-toolbar {
  display: flex;
  gap: 6px;
}

.preview-toolbar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d3deeb;
}

.preview-toolbar span:first-child {
  background: var(--gold);
}

.preview-search,
.preview-trends,
.preview-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.preview-search {
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
}

.preview-trends {
  display: grid;
  gap: 9px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(238, 244, 253, 0.96), rgba(255, 255, 255, 0.98)),
    #ffffff;
}

.preview-trends > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.preview-trends div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.preview-trends i {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid #dce7f5;
  border-radius: 999px;
  color: var(--blue);
  background: #ffffff;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.preview-card {
  display: grid;
  gap: 4px;
  padding: 13px;
  animation: list-rise 0.5s ease both;
}

.preview-card:nth-child(4) {
  animation-delay: 0.12s;
}

.preview-card:nth-child(5) {
  animation-delay: 0.24s;
}

.preview-card.active {
  border-color: #bfd2ec;
  box-shadow: 0 12px 26px rgba(16, 47, 99, 0.1);
}

.preview-card strong {
  font-size: 14px;
}

.preview-card span {
  color: var(--muted);
  font-size: 12px;
}

.section {
  padding: clamp(28px, 5vw, 58px) var(--page-gutter);
}

.section > * {
  max-width: var(--content-width);
  margin-right: auto;
  margin-left: auto;
}

.section.tight {
  padding-top: 24px;
}

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

.section-heading h2,
.page-title h1 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: 0;
}

.section-heading p,
.page-title p {
  margin: 8px 0 0;
  max-width: 780px;
  color: var(--muted);
  line-height: 1.6;
}

.stats-grid,
.listing-grid,
.admin-grid,
.taxonomy-grid,
.team-grid {
  display: grid;
  gap: 16px;
}

.stats-grid {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
}

.stat,
.listing-card,
.panel,
.comment,
.form-panel,
.about-block,
.admin-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stat {
  padding: 16px;
}

.stat strong {
  display: block;
  font-size: 24px;
  color: var(--blue);
}

.stat span {
  color: var(--muted);
  font-weight: 600;
}

.home-stats-section {
  margin-top: -34px;
  padding-bottom: 14px;
  position: relative;
  z-index: 2;
}

.home-stats-shell {
  padding: 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(216, 224, 235, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  animation: rise-in 0.48s ease both;
}

.home-stats-shell .stats-grid {
  gap: 10px;
}

.home-stats-shell .stat {
  box-shadow: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.home-stats-shell .stat:hover {
  transform: translateY(-2px);
  border-color: #b9cbe4;
  background: #fbfdff;
}

.global-stats-ticker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(216, 224, 235, 0.95);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  animation: rise-in 0.42s ease both;
}

.global-stats-ticker span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  text-align: center;
  color: var(--blue);
  background: #f4f8fe;
  border: 1px solid #dce7f5;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.prompts-directory-shell {
  display: grid;
  gap: 18px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.prompt-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 190px) minmax(150px, 190px) minmax(150px, 190px) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid rgba(26, 59, 108, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.prompt-toolbar label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.prompt-toolbar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.prompt-toolbar input,
.prompt-toolbar select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 42px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font-family: inherit;
  font-size: 14px;
}

.prompt-toolbar input:focus,
.prompt-toolbar select:focus {
  border-color: var(--blue-2);
  outline: 3px solid #dbe9ff;
}

.prompt-toolbar select {
  padding: 0 36px 0 12px;
  border-color: #cbd7e6;
  background-color: #ffffff;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  appearance: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  cursor: pointer;
}

.prompt-toolbar select:hover {
  border-color: #b8cbed;
  box-shadow: 0 8px 18px rgba(16, 47, 99, 0.06);
}

.prompt-filter-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
  min-width: max-content;
}

.prompt-results-toolbar {
  padding: 0;
}

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

.prompt-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(26, 59, 108, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 16px 42px rgba(26, 59, 108, 0.07);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.prompt-card:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 95, 191, 0.22);
  box-shadow: 0 20px 52px rgba(26, 59, 108, 0.12);
}

.prompt-card-top {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
}

.prompt-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  font-weight: 600;
  box-shadow: inset 0 -6px 0 rgba(216, 163, 40, 0.78);
}

.prompt-platform {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 4px;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--blue);
  background: #eef4fd;
  font-size: 11px;
  font-weight: 600;
}

.prompt-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

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

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

.prompt-tags span {
  padding: 5px 8px;
  border: 1px solid #dce7f5;
  border-radius: 999px;
  color: var(--blue);
  background: #ffffff;
  font-size: 11px;
  font-weight: 600;
}

.prompt-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #edf2f8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

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

.home-premium-section {
  padding-top: 28px;
}

.premium-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.premium-spotlight-card {
  position: relative;
  animation: list-rise 0.42s ease both;
  animation-delay: calc(var(--item-index) * 0.06s);
}

.premium-spotlight-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(29, 95, 191, 0.42), rgba(216, 163, 40, 0.38), rgba(29, 95, 191, 0.16));
  filter: blur(10px);
  opacity: 0.28;
}

.premium-spotlight-card .listing-card {
  position: relative;
  z-index: 1;
  border-color: rgba(29, 95, 191, 0.22);
}

.home-featured-section,
.home-directory-hub {
  position: relative;
}

.home-featured-section {
  padding-top: 18px;
}

.home-featured-section::before,
.home-directory-hub::before {
  content: "";
  position: absolute;
  inset: 14px 0 auto;
  z-index: -1;
  height: 180px;
  background: linear-gradient(90deg, transparent, rgba(29, 95, 191, 0.08), transparent);
  pointer-events: none;
}

.home-hub-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.home-hub-category-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.home-hub-category-card {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 128px;
  padding: 14px;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94)),
    #ffffff;
  border: 1px solid rgba(216, 224, 235, 0.96);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(15, 40, 78, 0.07);
  animation: list-rise 0.42s ease both;
  animation-delay: calc(var(--item-index) * 0.035s);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.home-hub-category-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  width: 4px;
  background: linear-gradient(180deg, var(--blue-2), var(--gold));
}

.home-hub-category-card:nth-child(3n)::before {
  background: linear-gradient(180deg, var(--green), var(--blue-2));
}

.home-hub-category-card:nth-child(3n + 2)::before {
  background: linear-gradient(180deg, var(--gold), var(--green));
}

.home-hub-category-card span {
  display: inline-grid;
  width: fit-content;
  min-width: 34px;
  min-height: 24px;
  place-items: center;
  padding: 3px 8px;
  color: var(--blue);
  background: #eef4fd;
  border: 1px solid #dbe7f6;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.home-hub-category-card strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.28;
}

.home-hub-category-card small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-hub-category-card:hover {
  border-color: #c4d7ee;
  box-shadow: 0 18px 34px rgba(15, 40, 78, 0.1);
  transform: translateY(-2px);
}

.home-category-rail {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 120px);
  padding: 12px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.home-category-rail a {
  display: block;
  padding: 10px 11px;
  color: var(--ink);
  background: #f7faff;
  border: 1px solid #e1eaf6;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.home-category-rail a:hover {
  color: var(--blue);
  background: #eef5ff;
  border-color: #c7d9f1;
  transform: translateX(2px);
}

.home-hub-results {
  min-width: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.home-hub-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.layout-switcher.mini button {
  width: 32px;
  height: 32px;
}

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

.home-hub-grid.list,
.home-hub-grid.compact {
  grid-template-columns: 1fr;
}

.home-featured-item {
  flex: 0 0 calc((100% - 36px) / 3);
  scroll-snap-align: start;
  animation: list-rise 0.42s ease both;
  animation-delay: calc(var(--item-index) * 0.08s);
}

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

.carousel-arrows {
  display: inline-flex;
  gap: 8px;
}

.carousel-arrow {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  background: white;
  box-shadow: 0 10px 24px rgba(16, 47, 99, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.carousel-arrow:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #b9cbe4;
  background: #eef4fd;
}

.carousel-arrow:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.carousel-arrow svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.featured-carousel {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.featured-carousel::-webkit-scrollbar {
  display: none;
}

.home-featured-track {
  display: flex;
  gap: 18px;
  align-items: stretch;
}

.home-featured-track .listing-card {
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-featured-track .listing-card:hover {
  transform: translateY(-4px);
  border-color: #b9cbe4;
  box-shadow: 0 18px 44px rgba(16, 47, 99, 0.14);
}

.listing-list {
  display: grid;
  gap: 12px;
}

.listing-card {
  display: flex;
  flex-direction: column;
  min-height: 196px;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.listing-card:hover {
  transform: translateY(-3px);
  border-color: rgba(29, 95, 191, 0.28);
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(16, 47, 99, 0.12);
}

.listing-card.list-card {
  min-height: 0;
  box-shadow: none;
}

.listing-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px;
}

.listing-topline,
.meta-line,
.admin-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.tool-identity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tool-card-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.tool-logo-frame {
  display: inline-grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #d8e3f2;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffffff, #f3f7fd);
  box-shadow: 0 10px 22px rgba(16, 47, 99, 0.08);
  overflow: hidden;
}

.tool-logo-frame img,
.tool-identity img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rating {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid #efe2bb;
  border-radius: 8px;
  color: #5f4306;
  background: #fffaf0;
  font-size: 13px;
  font-weight: 600;
}

.pricing-badge,
.verified-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.pricing-badge {
  color: #0b5d43;
  background: #e4f8ef;
}

.pricing-badge.freemium {
  color: var(--blue);
  background: #edf4ff;
}

.pricing-badge.paid {
  color: #7a4c00;
  background: #fff0c2;
}

.verified-badge {
  gap: 5px;
  padding: 4px 9px 4px 5px;
  border: 1px solid rgba(24, 119, 242, 0.18);
  color: #1769e0;
  background: #edf6ff;
}

.verified-badge::before {
  content: "✓";
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #1877f2;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.pill,
.tag,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #edf4ff;
  color: var(--blue);
}

.tag {
  color: #5f4306;
  background: #fff3cf;
}

.taxonomy-delete {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: rgba(255, 255, 255, 0.68);
  font-weight: 600;
  line-height: 1;
}

.status.pending {
  color: #805000;
  background: #fff2c4;
}

.status.approved {
  color: #086044;
  background: #dff7ed;
}

.status.rejected,
.status.deleted {
  color: #8a1e18;
  background: #ffe2df;
}

.listing-card h3 {
  margin: 12px 0 6px;
  font-size: 1rem;
  line-height: 1.32;
}

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #edf2f8;
  justify-content: space-between;
}

.metric-button,
.small-button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  font-weight: 600;
}

.metric-button.active,
.small-button:hover {
  color: var(--blue);
  border-color: #b8cbed;
  background: #eef4fd;
}

.try-ai-button {
  margin-left: auto;
  min-height: 30px;
  padding: 5px 9px;
  color: var(--blue);
  border-color: #d8e3f2;
  background: #f8fbff;
  font-size: 12px;
  font-weight: 500;
  box-shadow: none;
}

.try-ai-button:hover {
  color: var(--blue);
  border-color: #bfd0e8;
  background: #eef4fd;
}

.page-title {
  padding: clamp(30px, 5vw, 56px) var(--page-gutter) 16px;
  max-width: calc(var(--content-width) + 96px);
  margin-right: auto;
  margin-left: auto;
}

.directory-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  gap: 24px;
  align-items: end;
  max-width: calc(var(--content-width) + 96px);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 58px) var(--page-gutter) 22px;
  overflow: hidden;
}

.directory-hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -2;
  width: 100vw;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, rgba(16, 47, 99, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 47, 99, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 12% 22%, rgba(216, 163, 40, 0.2), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(29, 95, 191, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(216, 163, 40, 0.12), rgba(29, 95, 191, 0.08));
  background-size: 44px 44px, 44px 44px, 100% 100%, 100% 100%, 100% 100%;
  mask-image: linear-gradient(180deg, #000 0%, transparent 98%);
  animation: grid-drift 10s linear infinite;
}

.directory-hero::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  transform: translateX(-50%);
  background:
    linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.58) 42%, transparent 72%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.42), transparent 42%);
  opacity: 0.75;
  mask-image: linear-gradient(180deg, #000 0%, transparent 86%);
  animation: pattern-sweep 7s ease-in-out infinite;
}

.directory-hero-copy h1 {
  margin: 0;
}

.directory-hero-copy p:not(.eyebrow) {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.directory-hero-stats div {
  min-height: 90px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(216, 224, 235, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  animation: rise-in 0.5s ease both;
}

.directory-hero-stats div:nth-child(2) {
  animation-delay: 0.08s;
}

.directory-hero-stats div:nth-child(3) {
  animation-delay: 0.16s;
}

.directory-hero-stats strong {
  display: block;
  color: var(--blue);
  font-size: 1.4rem;
  line-height: 1.1;
}

.directory-hero-stats span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.toolbar,
.form-panel,
.panel {
  padding: 18px;
}

.directory-layout {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.filter-panel,
.results-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.filter-panel {
  position: sticky;
  top: 86px;
  padding: 18px;
  animation: rise-in 0.45s ease both;
}

.filter-panel-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.filter-panel-title h2 {
  margin: 0;
}

.filter-panel-title span {
  color: var(--muted);
  font-size: 12px;
}

.filter-panel form,
.filter-search,
.filter-block {
  display: grid;
  gap: 10px;
}

.filter-search span,
.filter-block h2 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.filter-block {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.filter-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 7px 9px 7px 11px;
  border-radius: 8px;
  color: #40516a;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.filter-option:hover,
.filter-option.active {
  color: var(--blue);
  background: #eef4fd;
}

.filter-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-option span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.filter-option span::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border: 2px solid #b8c6da;
  border-radius: 50%;
  background: white;
}

.filter-option:hover span::before,
.filter-option.active span::before {
  border-color: var(--blue-2);
  background: var(--blue-2);
  box-shadow: 0 0 0 3px #dbe9ff;
}

.results-panel {
  padding: 12px;
  animation: rise-in 0.52s ease both;
  animation-delay: 0.06s;
}

.results-filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid rgba(26, 59, 108, 0.1);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.results-filter-bar label {
  display: grid;
  gap: 5px;
}

.results-filter-bar span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.results-filter-bar select {
  box-sizing: border-box;
  height: 42px;
  min-height: 42px;
  width: 100%;
  padding: 0 36px 0 12px;
  border: 1px solid #cbd7e6;
  border-radius: 8px;
  color: var(--ink);
  background-color: #ffffff;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  appearance: none;
  font: inherit;
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.results-filter-bar select:hover {
  border-color: #b8cbed;
  box-shadow: 0 8px 18px rgba(16, 47, 99, 0.06);
}

.results-filter-bar select:focus {
  border-color: var(--blue-2);
  outline: 3px solid #dbe9ff;
}

.directory-filter-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
  min-width: max-content;
}

.directory-filter-actions .small-button,
.prompt-filter-actions .small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-height: 42px;
  margin-left: 0;
  padding: 0 14px;
  line-height: 1;
  white-space: nowrap;
}

.directory-apply-button,
.prompt-apply-button {
  color: #ffffff;
  border-color: var(--blue);
  background: var(--blue);
}

.directory-apply-button:hover,
.prompt-apply-button:hover {
  color: #ffffff;
  border-color: var(--blue-2);
  background: var(--blue-2);
}

.directory-reset-button,
.prompt-reset-button {
  color: var(--blue);
  border-color: #d8e3f2;
  background: #f8fbff;
}

.directory-reset-button:hover,
.prompt-reset-button:hover {
  color: var(--blue);
  border-color: #bfd0e8;
  background: #eef4fd;
}

.directory-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  transition: grid-template-columns 0.16s ease;
}

.directory-card-grid .listing-card {
  min-height: 168px;
}

.directory-card-grid .listing-body {
  padding: 10px;
}

.directory-card-grid .listing-card h3 {
  margin: 8px 0 4px;
}

.directory-card-grid .listing-card p {
  line-height: 1.38;
}

.directory-card-grid .card-actions {
  gap: 6px;
  padding-top: 8px;
}

.directory-card-grid.list,
.directory-card-grid.compact {
  grid-template-columns: 1fr;
}

.directory-card-grid.list {
  gap: 8px;
}

.directory-card-grid.list .listing-card {
  display: block;
  min-height: 0;
}

.directory-card-grid.list .listing-body {
  display: grid;
  grid-template-columns: minmax(230px, 0.85fr) minmax(260px, 1fr) minmax(190px, 0.7fr);
  gap: 14px;
  align-items: center;
}

.directory-card-grid.list .listing-topline {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.directory-card-grid.list .listing-card h3 {
  grid-column: 1;
  grid-row: 2;
  margin: 6px 0 0;
}

.directory-card-grid.list .listing-card p {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.directory-card-grid.list .card-actions {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: stretch;
}

.directory-card-grid.list .card-actions {
  align-content: center;
  justify-content: flex-end;
}

.directory-card-grid.compact {
  gap: 8px;
}

.directory-card-grid.compact .listing-card {
  min-height: 0;
  flex-direction: row;
  align-items: center;
}

.directory-card-grid.compact .listing-card p,
.directory-card-grid.compact .card-actions {
  display: none;
}

.directory-card-grid.compact .listing-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 12px;
}

.directory-card-grid.compact .listing-topline {
  grid-column: 2;
  grid-row: 1;
  justify-content: flex-end;
}

.directory-card-grid.compact .tool-identity .pill {
  display: inline-flex;
}

.directory-card-grid.compact .tool-logo-frame {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.directory-card-grid.compact .listing-card h3 {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: 0.98rem;
}

.results-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  padding: 4px 2px 12px;
  border-bottom: 1px solid var(--line);
}

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

.layout-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f8fc;
}

.layout-switcher button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.layout-switcher button:hover,
.layout-switcher button.active {
  color: var(--blue);
  border-color: rgba(26, 59, 108, 0.14);
  background: #ffffff;
  transform: translateY(-1px);
}

.layout-switcher svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.results-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.results-toolbar strong {
  color: var(--ink);
  font-weight: 600;
}

.pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.pagination .small-button {
  min-height: 34px;
  padding: 8px 12px;
}

.pagination .disabled {
  pointer-events: none;
  opacity: 0.45;
}

.listing-list .listing-card h3 {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.35;
}

.listing-list .listing-card p {
  font-size: 14px;
  line-height: 1.5;
}

.listing-list-item {
  animation: list-rise 0.42s ease both;
  animation-delay: calc(var(--item-index) * 0.055s);
}

.listing-list .listing-card {
  position: relative;
  border-color: #dbe4f0;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.listing-list .listing-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--blue-2), var(--gold));
  opacity: 0;
  transition: opacity 0.18s ease;
}

.listing-list .listing-card:hover {
  transform: translateY(-2px);
  border-color: #b9cbe4;
  box-shadow: 0 14px 34px rgba(16, 47, 99, 0.1);
}

.listing-list .listing-card:hover::before {
  opacity: 1;
}

.toolbar {
  margin-bottom: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-row input,
.search-row select,
.form-panel input,
.form-panel select,
.form-panel textarea,
.filter-panel input,
.filter-panel select,
.comment-box textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px;
  border: 1px solid #cbd7e6;
  border-radius: 8px;
  color: var(--ink);
  background: white;
}

.filter-panel select,
.filter-panel select {
  appearance: none;
  background-color: white;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 36px;
}

.filter-panel select:focus,
.filter-panel input:focus {
  border-color: var(--blue-2);
  outline: 3px solid #dbe9ff;
}

.search-row input {
  flex: 1 1 260px;
}

.search-row select {
  flex: 0 1 190px;
}

.form-panel {
  display: grid;
  gap: 14px;
  max-width: 860px;
}

.owner-listing-form {
  width: 100%;
  max-width: 100%;
}

.auth-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
  align-items: center;
  max-width: calc(var(--content-width) + 96px);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 64px) var(--page-gutter) 26px;
  overflow: hidden;
}

.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(16, 47, 99, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 47, 99, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 78% 22%, rgba(216, 163, 40, 0.2), transparent 30%),
    radial-gradient(circle at 18% 74%, rgba(29, 95, 191, 0.16), transparent 34%);
  background-size: 42px 42px, 42px 42px, 100% 100%, 100% 100%;
  animation: grid-drift 18s linear infinite;
  mask-image: linear-gradient(180deg, #000 0%, transparent 96%);
}

.auth-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.7) 44%, transparent 72%);
  transform: translateX(-100%);
  animation: sheen 4.8s ease-in-out infinite;
}

.auth-hero-copy h1 {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--ink);
}

.auth-hero-copy p:last-child {
  max-width: 650px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.auth-orbit {
  position: relative;
  display: grid;
  width: 190px;
  height: 190px;
  justify-self: end;
  place-items: center;
  border: 1px solid rgba(26, 59, 108, 0.14);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(238, 244, 253, 0.86)),
    #ffffff;
  box-shadow: var(--shadow);
}

.auth-orbit strong {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 18px;
  background: var(--blue);
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 600;
  box-shadow: inset 0 -9px 0 var(--gold);
}

.auth-orbit span {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 8px rgba(216, 163, 40, 0.12);
  animation: orbit-dot 6s linear infinite;
}

.auth-orbit span:nth-child(2) {
  background: var(--blue-2);
  box-shadow: 0 0 0 8px rgba(29, 95, 191, 0.12);
  animation-delay: -2s;
}

.auth-orbit span:nth-child(3) {
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(22, 134, 94, 0.12);
  animation-delay: -4s;
}

.auth-section {
  padding-top: 10px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 20px;
  max-width: 1060px;
  margin: 0 auto;
}

.auth-card {
  position: relative;
  display: grid;
  gap: 15px;
  min-width: 0;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(26, 59, 108, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(255, 255, 255, 0.98) 88px),
    #ffffff;
  box-shadow: 0 18px 46px rgba(16, 47, 99, 0.09);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-2), var(--gold), var(--blue-2));
  background-size: 220% 100%;
  animation: border-flow 4s ease infinite;
}

.auth-card-primary {
  border-color: rgba(26, 59, 108, 0.18);
}

.auth-card-highlight {
  border-color: rgba(29, 95, 191, 0.34);
  box-shadow: 0 22px 58px rgba(26, 59, 108, 0.13);
}

.auth-card-highlight .auth-card-heading span {
  background: var(--blue);
  color: #ffffff;
}

.auth-card-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 6px;
}

.auth-card-heading span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #eef4fd;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}

.auth-card-heading h2 {
  margin: 0;
  font-size: 1.4rem;
}

.auth-card-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.auth-card .field {
  gap: 8px;
}

.auth-card .field label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.auth-card input {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid #cbd7e6;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  outline: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-card input:focus {
  border-color: var(--blue-2);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(29, 95, 191, 0.1);
}

.auth-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
  border-radius: 8px;
}

.auth-recovery-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.78fr);
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(26, 59, 108, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(237, 244, 255, 0.92), rgba(255, 255, 255, 0.96)),
    #ffffff;
  box-shadow: 0 16px 38px rgba(16, 47, 99, 0.08);
}

.auth-recovery-card span {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--blue-2);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.auth-recovery-card strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.auth-recovery-card p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.auth-recovery-card [data-reset-status] {
  grid-column: 1 / -1;
  min-height: 20px;
  margin: -4px 0 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 500;
}

.auth-recovery-card [data-reset-status].error {
  color: var(--red);
}

.auth-recovery-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.auth-recovery-controls input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #cbd7e6;
  border-radius: 8px;
  background: #ffffff;
  outline: 0;
}

.auth-recovery-controls input:focus {
  border-color: var(--blue-2);
  box-shadow: 0 0 0 4px rgba(29, 95, 191, 0.1);
}

.about-page-layout.auth-page-layout {
  align-items: start;
}

.auth-page-content {
  min-width: 0;
}

.auth-page-content .auth-layout {
  max-width: none;
  margin: 0;
}

.auth-page-layout .about-sidebar-balanced {
  align-self: start;
}

.auth-support-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.auth-support-strip span {
  display: grid;
  min-height: 46px;
  place-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(26, 59, 108, 0.1);
  border-radius: 8px;
  background: #ffffff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 12px 30px rgba(26, 59, 108, 0.06);
}

.demo-access {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(26, 59, 108, 0.1);
  border-radius: 8px;
  background: #f8fbff;
}

.demo-access strong {
  color: var(--blue);
  font-size: 13px;
}

.demo-access span {
  color: var(--muted);
  font-size: 12px;
}

.submit-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: end;
  max-width: calc(var(--content-width) + 96px);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 58px) var(--page-gutter) 22px;
  overflow: hidden;
}

.submit-hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -2;
  width: 100vw;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, rgba(29, 95, 191, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(29, 95, 191, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 14% 18%, rgba(216, 163, 40, 0.18), transparent 28%),
    radial-gradient(circle at 84% 28%, rgba(29, 95, 191, 0.16), transparent 34%);
  background-size: 42px 42px, 42px 42px, 100% 100%, 100% 100%;
  mask-image: linear-gradient(180deg, #000 0%, transparent 94%);
  animation: grid-drift 9s linear infinite;
}

.submit-hero::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  transform: translateX(-50%);
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.56) 44%, transparent 74%);
  opacity: 0.72;
  mask-image: linear-gradient(180deg, #000 0%, transparent 86%);
  animation: pattern-sweep 7.5s ease-in-out infinite;
}

.submit-hero-copy h1 {
  margin: 0;
  max-width: 720px;
}

.submit-hero-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.submit-hero-card {
  position: relative;
  min-height: 156px;
  padding: 20px;
  color: white;
  background: linear-gradient(135deg, var(--blue), #174d96);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: float-panel 4.8s ease-in-out infinite;
}

.submit-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.18) 45%, transparent 70%);
  transform: translateX(-100%);
  animation: sheen 3.8s ease-in-out infinite;
}

.submit-hero-card span {
  display: block;
  color: #dce8fb;
  font-size: 13px;
}

.submit-hero-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.4rem;
}

.submit-signal {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 6px;
}

.submit-signal i {
  width: 7px;
  height: 26px;
  border-radius: 999px;
  background: var(--gold);
  animation: signal-rise 1.4s ease-in-out infinite;
}

.submit-signal i:nth-child(2) {
  height: 38px;
  animation-delay: 0.16s;
}

.submit-signal i:nth-child(3) {
  height: 48px;
  animation-delay: 0.32s;
}

.submit-section {
  padding-top: 18px;
}

.submit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.submit-form {
  max-width: none;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid #cfdbea;
  animation: rise-in 0.45s ease both;
}

.submit-form .form-row {
  gap: 14px;
}

.form-section-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-top: 6px;
}

.form-section-heading:not(:first-child) {
  margin-top: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.form-section-heading > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--blue);
  background: #edf4ff;
  border: 1px solid #cfe0fa;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.form-section-heading h2 {
  margin: 0;
}

.form-section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
}

.submit-form input,
.submit-form select,
.submit-form textarea {
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.submit-form .submit-description-input {
  min-height: 220px;
  line-height: 1.65;
  resize: vertical;
}

.submit-form input:focus,
.submit-form select:focus,
.submit-form textarea:focus {
  border-color: var(--blue-2);
  outline: 3px solid #dbe9ff;
  transform: translateY(-1px);
}

.submit-button {
  justify-self: start;
  margin-top: 6px;
}

.submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.submit-aside {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 14px;
}

.submit-card {
  position: relative;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.submit-card h2 {
  margin: 0 0 12px;
}

.animated-border::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-2), var(--gold), var(--blue-2));
  background-size: 220% 220%;
  animation: border-flow 4s ease infinite;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.submit-checklist {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.submit-checklist li,
.review-timeline div {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
  line-height: 1.55;
}

.submit-checklist span,
.review-timeline span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--blue);
  background: #fff3cf;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
}

.review-timeline {
  display: grid;
  gap: 12px;
}

.review-timeline p {
  margin: 0;
  color: var(--muted);
}

.form-row {
  align-items: start;
}

.field {
  display: grid;
  flex: 1 1 260px;
  gap: 7px;
}

.field label {
  font-weight: 600;
}

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

textarea {
  min-height: 140px;
  resize: vertical;
}

.listing-profile-hero {
  padding: clamp(22px, 4vw, 42px) var(--page-gutter) 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
  border-bottom: 1px solid var(--line);
}

.listing-profile-hero > * {
  max-width: var(--content-width);
  margin-right: auto;
  margin-left: auto;
}

.profile-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.profile-kicker a {
  color: var(--blue-2);
}

.profile-summary-box {
  padding: clamp(18px, 3vw, 26px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d7e1ee;
  border-radius: 8px;
  box-shadow: var(--shadow);
  animation: rise-in 0.45s ease both;
}

.profile-header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(180px, auto);
  gap: 18px;
  align-items: center;
  max-width: var(--content-width);
}

.profile-logo {
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(16, 47, 99, 0.12);
}

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

.profile-title h1 {
  margin: 8px 0 8px;
  max-width: 760px;
  font-size: 1.4rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.profile-title p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.profile-submitted {
  justify-self: end;
  min-width: 180px;
  padding: 12px 14px;
  text-align: right;
  background: #f6f9fd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-submitted span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.profile-submitted strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  max-width: var(--content-width);
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.profile-metrics div {
  padding: 13px 14px;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-metrics strong {
  display: block;
  color: var(--blue);
  font-size: 22px;
  line-height: 1.1;
}

.profile-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 18px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.detail-main,
.detail-side {
  display: grid;
  min-width: 0;
  gap: 14px;
  align-content: start;
}

.detail-side {
  position: static;
  align-self: start;
  height: auto;
  max-height: none;
  overflow: visible;
  padding-right: 0;
  scrollbar-width: auto;
}

.detail-side::-webkit-scrollbar {
  width: 6px;
}

.detail-side::-webkit-scrollbar-thumb {
  background: rgba(26, 59, 108, 0.28);
  border-radius: 999px;
}

.detail-primary-actions {
  display: grid;
  gap: 10px;
  border-color: rgba(26, 59, 108, 0.16);
  background:
    linear-gradient(135deg, rgba(26, 59, 108, 0.08), rgba(217, 168, 50, 0.1)),
    #ffffff;
}

.detail-primary-actions .button,
.detail-primary-actions .small-button {
  width: 100%;
}

.detail-panel h2,
.action-panel h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 1.4rem;
}

.detail-panel .panel-heading h2,
.action-panel h2,
.detail-side .detail-panel h2 {
  font-size: 16px;
  font-weight: 500;
}

.action-panel h2,
.detail-side .detail-panel h2 {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid rgba(26, 59, 108, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(26, 59, 108, 0.08), rgba(217, 168, 50, 0.12)),
    #ffffff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(15, 35, 66, 0.07);
}

.panel-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.detail-main p,
.about-block p,
.comment p,
.panel p {
  color: var(--muted);
  line-height: 1.65;
}

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

.detail-share-panel {
  display: grid;
  grid-template-columns: auto minmax(320px, 430px);
  gap: 16px;
  align-items: center;
  overflow: hidden;
  border-color: rgba(26, 59, 108, 0.14);
  background:
    radial-gradient(circle at 0 0, rgba(217, 168, 50, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(26, 59, 108, 0.06), rgba(255, 255, 255, 0.95));
}

.share-copy {
  display: flex;
  min-width: 150px;
  align-items: center;
}

.share-copy .eyebrow {
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.share-button {
  display: inline-flex;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(26, 59, 108, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(15, 35, 66, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.share-button span {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.share-button:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 168, 50, 0.55);
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(15, 35, 66, 0.12);
}

.share-button.facebook span {
  background: #1877f2;
}

.share-button.twitter span {
  background: #111827;
}

.share-button.linkedin span {
  background: #0a66c2;
}

.detail-actions .metric-button,
.share-row .small-button,
.share-row .share-button {
  width: 100%;
  min-width: 0;
}

.detail-facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.detail-facts div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-facts div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.detail-facts dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.detail-facts dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}

.detail-facts a {
  color: var(--blue-2);
}

.detail-claim-panel {
  display: grid;
  gap: 10px;
  overflow: hidden;
  border-color: rgba(26, 59, 108, 0.16);
  background:
    radial-gradient(circle at 100% 0, rgba(217, 168, 50, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(26, 59, 108, 0.08), rgba(255, 255, 255, 0.96));
}

.detail-claim-panel .claim-kicker {
  width: fit-content;
  padding: 5px 9px;
  color: var(--gold-dark);
  background: rgba(217, 168, 50, 0.14);
  border: 1px solid rgba(217, 168, 50, 0.28);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.detail-claim-panel h2 {
  margin: 0;
  color: var(--blue);
  font-size: 1.4rem;
  font-weight: 600;
}

.detail-claim-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.detail-claim-button {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  background: linear-gradient(135deg, var(--blue), #265f9f);
  box-shadow: 0 12px 24px rgba(26, 59, 108, 0.18);
}

.detail-claim-button.success {
  background: linear-gradient(135deg, #0f8a5f, #18a976);
}

.detail-claim-panel [data-claim-status] {
  min-height: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.detail-claim-panel [data-claim-status].error {
  color: #a12a24;
}

.comment {
  padding: 14px;
}

.comment.reply {
  margin-left: 28px;
  border-left: 4px solid var(--gold);
}

.comment strong {
  display: block;
}

.comment time {
  color: var(--muted);
  font-size: 12px;
}

.comment-box {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-grid {
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.tabs {
  position: sticky;
  top: 104px;
  align-items: stretch;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(26, 59, 108, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 253, 0.92));
  box-shadow: 0 20px 55px rgba(26, 59, 108, 0.08);
}

.tabs button {
  justify-content: flex-start;
  width: 100%;
  min-height: 44px;
  border-color: transparent;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
}

.tabs button:hover,
.tabs button.active {
  color: var(--blue);
  border-color: rgba(26, 59, 108, 0.12);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(26, 59, 108, 0.08);
}

.tabs button.active::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 2px;
  border-radius: 999px;
  background: var(--gold);
}

.admin-item {
  padding: 14px;
  box-shadow: none;
}

.dashboard-overview {
  display: grid;
  gap: 16px;
}

.dashboard-hero-panel,
.dashboard-card,
.dashboard-stat-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.dashboard-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 18px;
  align-items: center;
  padding: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 16%, rgba(216, 163, 40, 0.18), transparent 28%),
    linear-gradient(135deg, #ffffff, #f4f8ff);
}

.dashboard-hero-panel h2 {
  margin: 0;
}

.dashboard-hero-panel p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.dashboard-actions .small-button {
  min-height: 38px;
  background: #ffffff;
}

.dashboard-pulse {
  display: grid;
  min-height: 128px;
  place-items: center;
  border: 1px solid rgba(26, 59, 108, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(16, 47, 99, 0.95), rgba(29, 95, 191, 0.86));
  color: #ffffff;
  text-align: center;
  box-shadow: inset 0 -8px 0 rgba(216, 163, 40, 0.7);
}

.dashboard-pulse strong {
  display: block;
  font-size: 36px;
  line-height: 1;
}

.dashboard-pulse span {
  color: #d9e6f7;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

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

.dashboard-stat-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  box-shadow: none;
}

.dashboard-stat-card::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -28px;
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: rgba(216, 163, 40, 0.11);
}

.stat-icon {
  display: grid;
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 8px;
  background: #edf4ff;
}

.stat-icon::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--blue);
  box-shadow: inset 0 -4px 0 rgba(216, 163, 40, 0.75);
}

.stat-icon.pending::before {
  border-radius: 999px;
  background: var(--gold);
}

.stat-icon.users::before,
.stat-icon.subscribers::before {
  border-radius: 999px 999px 4px 4px;
}

.stat-icon.comments::before {
  border-radius: 999px 999px 999px 3px;
}

.stat-icon.votes::before {
  clip-path: polygon(50% 0, 100% 45%, 76% 100%, 24% 100%, 0 45%);
}

.dashboard-stat-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.dashboard-stat-card strong {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  font-size: 28px;
  line-height: 1;
}

.dashboard-stat-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.dashboard-health-card {
  display: grid;
  gap: 5px;
  padding: 15px;
  border: 1px solid rgba(26, 59, 108, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(26, 59, 108, 0.06);
}

.dashboard-health-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.dashboard-health-card strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

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

.dashboard-health-card.good {
  border-color: rgba(20, 163, 111, 0.22);
  background: linear-gradient(180deg, #ffffff, #f2fbf7);
}

.dashboard-health-card.warning {
  border-color: rgba(216, 163, 40, 0.32);
  background: linear-gradient(180deg, #ffffff, #fff9e9);
}

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

.dashboard-settings-card {
  background:
    radial-gradient(circle at 96% 0%, rgba(216, 163, 40, 0.14), transparent 28%),
    linear-gradient(135deg, #ffffff, #f7fbff);
}

.dashboard-settings-card p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.settings-current {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(26, 59, 108, 0.12);
  border-radius: 999px;
  color: var(--blue);
  background: #edf4ff;
  font-size: 12px;
  font-weight: 600;
}

.settings-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.settings-row label {
  display: grid;
  min-width: min(260px, 100%);
  gap: 6px;
}

.settings-row label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.settings-row select {
  min-height: 40px;
  padding: 10px 34px 10px 12px;
  border: 1px solid rgba(26, 59, 108, 0.14);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.dashboard-chart-grid,
.dashboard-insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.dashboard-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  box-shadow: none;
}

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

.dashboard-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.dashboard-card-heading h3 {
  margin: 0;
  font-size: 16px;
}

.text-tab {
  padding: 0;
  border: 0;
  color: var(--blue-2);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}

.dashboard-bars {
  display: grid;
  gap: 10px;
}

.dashboard-bar {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(120px, 1fr) 42px;
  gap: 10px;
  align-items: center;
}

.dashboard-bar span,
.dashboard-bar strong,
.dashboard-list small,
.dashboard-list > a span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.dashboard-bar i {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef6;
}

.dashboard-bar b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-2), var(--gold));
}

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

.dashboard-list > a,
.dashboard-list > span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(26, 59, 108, 0.1);
  border-radius: 8px;
  background: #fbfdff;
}

.dashboard-list strong {
  color: var(--ink);
  font-size: 13px;
}

.dashboard-activity-card {
  grid-column: span 1;
}

.dashboard-timeline {
  display: grid;
  gap: 8px;
}

.dashboard-timeline span {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 2px 10px;
  padding: 10px;
  border: 1px solid rgba(26, 59, 108, 0.1);
  border-radius: 8px;
  background: #fbfdff;
}

.dashboard-timeline i {
  grid-row: span 2;
  align-self: center;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--blue);
  background: #edf4ff;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  text-align: center;
}

.dashboard-timeline strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-timeline small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

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

.admin-create-user,
.compact-user-form {
  box-shadow: none;
}

.admin-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.admin-filter-bar input {
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.admin-filter-bar select {
  min-height: 40px;
  padding: 10px 34px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: white;
}

.listing-filter-bar {
  grid-template-columns: minmax(220px, 1fr) minmax(145px, 180px) minmax(180px, 220px) auto auto;
}

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

.admin-listing-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(26, 59, 108, 0.12);
  border-radius: 8px;
  background: #fbfdff;
}

.admin-listing-summary p {
  margin: 0;
  color: var(--muted);
}

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

.subscription-filter-bar {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
}

.subscription-table {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(26, 59, 108, 0.1);
  border-radius: 8px;
  background: #ffffff;
}

.subscription-table-head,
.subscription-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.1fr) 150px minmax(180px, 1fr) 120px 150px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(26, 59, 108, 0.08);
}

.subscription-table-head {
  background: #f2f6fb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.subscription-row:last-child {
  border-bottom: 0;
}

.subscription-row input,
.subscription-row select {
  min-width: 0;
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.subscription-row > span:not(.subscription-actions) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

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

.user-admin-card {
  display: grid;
  gap: 12px;
  border-color: rgba(26, 59, 108, 0.12);
  background:
    linear-gradient(180deg, #ffffff, #fbfdff);
}

.user-admin-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

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

.user-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(16, 47, 99, 0.95), rgba(29, 95, 191, 0.86));
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: inset 0 -5px 0 var(--gold);
}

.user-admin-identity strong {
  display: block;
  color: var(--ink);
}

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

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

.role-badge,
.account-badge,
.user-admin-meta span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.role-badge {
  color: var(--blue);
  background: #edf4ff;
}

.account-badge.active {
  color: #0c6848;
  background: #e7f7ef;
}

.account-badge.banned {
  color: #8d1f18;
  background: #fff0ef;
}

.account-badge.reset-requested {
  color: #73500c;
  background: #fff6da;
}

.user-admin-meta span {
  color: var(--muted);
  background: #f2f6fb;
}

.user-admin-actions {
  padding-top: 2px;
}

.owned-listings {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(26, 59, 108, 0.12);
  border-radius: 8px;
  background: #fbfdff;
}

.owned-listings strong,
.muted-small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.ban-toggle {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(211, 58, 50, 0.2);
  border-radius: 8px;
  color: #8d1f18;
  background: #fff8f7;
  font-size: 13px;
}

.ban-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ban-toggle span {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid #e3a9a4;
  border-radius: 4px;
  background: #ffffff;
}

.ban-toggle input:checked + span {
  border-color: var(--red);
  background: var(--red);
}

.ban-toggle input:checked + span::before {
  content: "";
  width: 8px;
  height: 5px;
  border-bottom: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  transform: rotate(-45deg) translateY(-1px);
}

.ban-toggle strong {
  font-size: 13px;
  font-weight: 600;
}

.taxonomy-admin-panel {
  display: grid;
  gap: 16px;
}

.taxonomy-help-strip {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(216, 163, 40, 0.32);
  border-radius: 8px;
  background: #fff9e9;
}

.taxonomy-help-strip span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: #2d2107;
  font-size: 12px;
  font-weight: 600;
}

.taxonomy-help-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

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

.taxonomy-quick-add form {
  display: grid;
  grid-template-columns: auto minmax(140px, 1fr) minmax(180px, 1.4fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.taxonomy-quick-add form[data-taxonomy-create="tags"] {
  grid-template-columns: auto minmax(140px, 1fr) auto;
}

.taxonomy-quick-add strong {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.taxonomy-quick-add input,
.taxonomy-table input {
  min-width: 0;
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.taxonomy-simple-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.taxonomy-list-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.taxonomy-list-heading h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.taxonomy-list-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.taxonomy-table {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(26, 59, 108, 0.1);
  border-radius: 8px;
  background: white;
}

.taxonomy-table-head,
.taxonomy-table-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) minmax(240px, 1.5fr) 110px 150px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(26, 59, 108, 0.08);
}

.taxonomy-tag-table .taxonomy-table-head,
.taxonomy-tag-table .taxonomy-table-row {
  grid-template-columns: minmax(180px, 1fr) 110px 150px;
}

.taxonomy-table-head {
  background: #f2f6fb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.taxonomy-table-row:last-child {
  border-bottom: 0;
}

.taxonomy-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.taxonomy-inline-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.small-button.danger {
  color: #8d1f18;
  background: #fff0ef;
  border-color: #f1c7c3;
}

.small-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.page-admin-panel,
.menu-admin-panel,
.page-admin-list {
  display: grid;
  gap: 14px;
}

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

.cms-command-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
  align-items: center;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(26, 59, 108, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 253, 0.94)),
    radial-gradient(circle at top right, rgba(216, 163, 40, 0.18), transparent 34%);
  box-shadow: 0 20px 55px rgba(26, 59, 108, 0.08);
}

.cms-command-panel h2 {
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 600;
}

.cms-command-panel p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.cms-command-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cms-command-stats span {
  display: grid;
  gap: 3px;
  min-height: 74px;
  align-content: center;
  padding: 12px;
  border: 1px solid rgba(26, 59, 108, 0.12);
  border-radius: 8px;
  color: var(--muted);
  background: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

.cms-command-stats strong {
  color: var(--blue);
  font-size: 24px;
  font-weight: 600;
}

.cms-submenu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(26, 59, 108, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(26, 59, 108, 0.06);
}

.cms-submenu button,
.cms-overview-card {
  border: 1px solid rgba(26, 59, 108, 0.1);
  border-radius: 8px;
  background: #ffffff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.cms-submenu button {
  display: grid;
  gap: 4px;
  min-height: 76px;
  align-content: center;
  padding: 13px 14px;
  color: var(--muted);
}

.cms-submenu button strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.cms-submenu button span {
  font-size: 12px;
  line-height: 1.4;
}

.cms-submenu button:hover,
.cms-submenu button.active {
  border-color: rgba(216, 163, 40, 0.45);
  background:
    linear-gradient(180deg, #ffffff, #fffaf0);
  box-shadow: 0 12px 26px rgba(216, 163, 40, 0.12);
}

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

.cms-overview-card {
  display: grid;
  gap: 10px;
  min-height: 170px;
  align-content: start;
  padding: 18px;
  color: var(--muted);
  box-shadow: 0 18px 44px rgba(26, 59, 108, 0.07);
}

.cms-overview-card:not(.static):hover {
  transform: translateY(-2px);
  border-color: rgba(26, 59, 108, 0.2);
  box-shadow: 0 22px 54px rgba(26, 59, 108, 0.12);
}

.cms-overview-card.static {
  cursor: default;
}

.cms-overview-card strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.cms-overview-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}

.cms-section-hidden {
  display: none !important;
}

.cms-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 16px;
  align-items: start;
}

.cms-menu-workspace {
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
}

.cms-main-column,
.cms-side-column {
  display: grid;
  gap: 16px;
}

.cms-side-column {
  position: sticky;
  top: 104px;
}

.cms-section-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(26, 59, 108, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(26, 59, 108, 0.07);
}

.cms-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.cms-section-heading.compact {
  align-items: center;
}

.cms-section-heading h3,
.menu-create-card h3 {
  margin: 4px 0 4px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.cms-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.cms-section-heading > span:not(.cms-step) {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--blue);
  background: #edf4ff;
  font-size: 12px;
  font-weight: 600;
}

.cms-step {
  display: inline-grid;
  min-width: 32px;
  height: 26px;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #2d2107;
  background: var(--gold);
  font-size: 12px;
  font-weight: 600;
}

.cms-create-page {
  padding: 18px;
  border: 1px solid rgba(216, 163, 40, 0.28);
  background:
    linear-gradient(180deg, #ffffff, #fffdf7);
  box-shadow: 0 18px 48px rgba(216, 163, 40, 0.08);
}

.cms-form-actions {
  display: flex;
  justify-content: flex-end;
}

.cms-filter-bar {
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 10px;
}

.cms-filter-bar.compact {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.cms-page-list {
  gap: 12px;
}

.cms-page-edit-card {
  padding: 14px;
}

.cms-page-edit-card .visual-editor,
.cms-page-edit-card .code-editor {
  min-height: 160px;
}

.cms-menu-create {
  padding: 12px;
  border: 1px solid rgba(26, 59, 108, 0.1);
  border-radius: 8px;
  background: #f8fbff;
}

.cms-menu-group {
  box-shadow: none;
}

.cms-menu-stack {
  display: grid;
  gap: 10px;
}

.cms-menu-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(26, 59, 108, 0.1);
  border-radius: 8px;
  background: #fbfdff;
}

.cms-menu-item .form-row {
  grid-template-columns: minmax(0, 1fr) 86px;
}

.cms-menu-actions {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.order-field input {
  text-align: center;
}

.page-editor-card {
  display: grid;
  gap: 14px;
  border-color: rgba(26, 59, 108, 0.12);
  background:
    linear-gradient(180deg, #ffffff, #fbfdff);
}

.page-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.page-editor-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.page-editor-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.rich-editor-field {
  display: grid;
  gap: 8px;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(26, 59, 108, 0.12);
  border-radius: 8px;
  background: #f4f8fd;
}

.editor-toolbar button {
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid rgba(26, 59, 108, 0.12);
  border-radius: 7px;
  color: var(--blue);
  background: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.editor-toolbar button.active {
  color: #ffffff;
  border-color: var(--blue);
  background: var(--blue);
}

.visual-editor,
.code-editor {
  width: 100%;
  min-height: 230px;
  padding: 16px;
  border: 1px solid rgba(26, 59, 108, 0.14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.visual-editor {
  color: var(--ink);
  line-height: 1.75;
  outline: none;
}

.visual-editor:focus,
.code-editor:focus {
  border-color: rgba(26, 59, 108, 0.38);
  box-shadow: 0 0 0 4px rgba(26, 59, 108, 0.08);
}

.code-editor {
  display: none;
  resize: vertical;
  color: #183253;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.6;
}

.rich-editor-field.code-mode .visual-editor {
  display: none;
}

.rich-editor-field.code-mode .code-editor {
  display: block;
}

.editor-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.menu-create-card {
  display: grid;
  gap: 12px;
  box-shadow: none;
}

.menu-admin-table {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(26, 59, 108, 0.1);
  border-radius: 8px;
  background: #ffffff;
}

.menu-admin-head,
.menu-admin-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(180px, 1.3fr) 140px 90px 78px 160px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(26, 59, 108, 0.08);
}

.menu-admin-head {
  background: #f2f6fb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.menu-admin-row:last-child {
  border-bottom: 0;
}

.menu-admin-row input,
.menu-admin-row select {
  min-width: 0;
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.mini-check {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
}

.mini-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mini-check span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid #b8c6d8;
  border-radius: 5px;
  background: #ffffff;
}

.mini-check input:checked + span {
  border-color: #0c6848;
  background: #14a36f;
}

.mini-check input:checked + span::before {
  content: "";
  width: 9px;
  height: 5px;
  border-bottom: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  transform: rotate(-45deg) translateY(-1px);
}

.cms-page-title {
  padding-bottom: 22px;
}

.about-section {
  padding-top: 18px;
}

.about-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 22px;
  align-items: start;
}

.about-page-content {
  min-width: 0;
}

.cms-page-content {
  max-width: 920px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(26, 59, 108, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(26, 59, 108, 0.08);
}

.about-page-content .cms-page-content {
  position: relative;
  max-width: none;
  overflow: hidden;
  border-color: rgba(26, 59, 108, 0.12);
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.94), #ffffff 120px),
    #ffffff;
}

.about-page-content .cms-page-content::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--blue-2), var(--gold), var(--green));
}

.cms-page-content h1,
.cms-page-content h2,
.cms-page-content h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 600;
}

.about-page-content .cms-page-content h2 {
  display: flex;
  gap: 10px;
  align-items: center;
}

.about-page-content .cms-page-content h2::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(216, 163, 40, 0.12);
}

.cms-page-content p,
.cms-page-content li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.about-page-content .cms-page-content p {
  text-align: justify;
  text-justify: inter-word;
}

.cms-page-content ul,
.cms-page-content ol {
  margin: 0 0 24px;
  padding-left: 22px;
}

.about-page-content .cms-page-content ul {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.about-page-content .cms-page-content li {
  position: relative;
  margin: 0;
  padding: 11px 12px 11px 36px;
  border: 1px solid rgba(26, 59, 108, 0.08);
  border-radius: 8px;
  background: #f8fbff;
}

.about-page-content .cms-page-content li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 15px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue-2);
  box-shadow: 0 0 0 4px rgba(29, 95, 191, 0.1);
}

.cms-page-content li + li {
  margin-top: 8px;
}

.about-page-content .cms-page-content li + li {
  margin-top: 0;
}

.cms-page-content h2:not(:first-child),
.cms-page-content h3:not(:first-child) {
  margin-top: 28px;
}

.cms-page-content > *:last-child {
  margin-bottom: 0;
}

.about-sidebar {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.about-sidebar-panel {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(26, 59, 108, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px rgba(26, 59, 108, 0.08);
}

.about-sidebar-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-2), var(--gold));
}

.about-join-panel {
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 0%, rgba(216, 163, 40, 0.32), transparent 38%),
    linear-gradient(145deg, #102f63, #173f7c 62%, #0e274f);
}

.about-join-panel::before {
  background: linear-gradient(90deg, var(--gold), rgba(255, 255, 255, 0.78), var(--gold));
}

.about-sidebar-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 9px;
  border: 1px solid rgba(26, 59, 108, 0.12);
  border-radius: 999px;
  background: #eef4fd;
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.about-join-panel .about-sidebar-kicker {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.about-sidebar-panel h2 {
  margin: 0;
  color: inherit;
  font-size: 1.4rem;
  font-weight: 600;
}

.about-sidebar-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.about-join-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.about-sidebar-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}

.about-sidebar-button {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  font-size: 13px;
  box-shadow: none;
}

.about-join-panel .button {
  background: #ffffff;
  color: var(--blue);
}

.about-join-panel .button.ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.about-value-list {
  display: grid;
  gap: 12px;
}

.about-value-list div {
  padding: 12px;
  border: 1px solid rgba(26, 59, 108, 0.08);
  border-radius: 8px;
  background: #f8fbff;
}

.about-value-list strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

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

.about-focus-grid span {
  display: grid;
  min-height: 54px;
  place-items: center;
  padding: 10px;
  border: 1px solid rgba(26, 59, 108, 0.1);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.chart {
  display: grid;
  gap: 10px;
  margin-top: 25px;
}

.bar {
  display: grid;
  grid-template-columns: 120px 1fr 48px;
  gap: 10px;
  align-items: center;
}

.bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef6;
}

.bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue-2), var(--gold));
}

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

.about-block {
  padding: 20px;
}

.notice {
  padding: 12px 14px;
  border-radius: 8px;
  color: #664100;
  background: #fff1c6;
  border: 1px solid #f2d88a;
}

.submit-login-notice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.notice-login-button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 6px 11px;
  color: var(--blue);
  background: #ffffff;
  border-color: #e0c263;
  font-size: 12px;
  font-weight: 500;
}

.notice-login-button:hover {
  color: var(--blue);
  background: #fff9e8;
  border-color: var(--gold);
}

.empty,
.center-panel {
  padding: 48px 18px;
  text-align: center;
  color: var(--muted);
}

.loader {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border: 4px solid #dce6f3;
  border-top-color: var(--blue-2);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.site-footer {
  position: relative;
  isolation: isolate;
  padding: 64px var(--page-gutter) 30px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 12% 20%, rgba(216, 163, 40, 0.22), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(29, 95, 191, 0.34), transparent 34%),
    linear-gradient(135deg, #07172f 0%, #102f63 52%, #081a35 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.08) 44%, transparent 74%);
  opacity: 0.42;
}

.site-footer-inner {
  display: grid;
  gap: 34px;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
}

.footer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: end;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.footer-brand small {
  display: block;
  color: #b9c8de;
  font-size: 12px;
}

.footer-brand-block h2 {
  max-width: 660px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(22px, 3.6vw, 46px);
  line-height: 1;
  white-space: nowrap;
}

.footer-brand-block p {
  max-width: 680px;
  margin: 18px 0 0;
  color: #cbd8eb;
  line-height: 1.7;
}

.footer-newsletter {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.2);
}

.footer-newsletter label,
.footer-links-grid h3 {
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.footer-newsletter div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.footer-newsletter input {
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.footer-newsletter input::placeholder {
  color: #9fb1ca;
}

.footer-newsletter button {
  min-height: 42px;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  color: #241a05;
  background: var(--gold);
  font-weight: 600;
}

.footer-newsletter button:disabled {
  cursor: progress;
  opacity: 0.68;
}

.footer-newsletter p {
  min-height: 18px;
  margin: 0;
  color: #bfe8d4;
  font-size: 12px;
  font-weight: 600;
}

.footer-newsletter p.error {
  color: #ffd0ca;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.footer-links-grid div {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-links-grid h3 {
  margin: 0 0 4px;
}

.footer-links-grid a,
.footer-bottom a {
  color: #cbd8eb;
  font-size: 14px;
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer-links-grid a:hover,
.footer-bottom a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-socials {
  display: flex !important;
  flex-direction: row;
  gap: 8px !important;
}

.footer-socials a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

.footer-domain {
  margin-top: 4px;
  color: #ffffff !important;
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0;
  color: #9fb1ca;
  font-size: 13px;
}

.footer-bottom div {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #72839c;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes grid-drift {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
  }

  to {
    background-position: 44px 44px, 44px 44px, 2% 0, -2% 0, 0 0;
  }
}

@keyframes hero-grid-drift {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }

  to {
    background-position: 48px 48px, 48px 48px, 2% 0, -2% 0;
  }
}

@keyframes pattern-sweep {
  0%,
  100% {
    background-position: -80vw 0, center;
  }

  50% {
    background-position: 80vw 0, center;
  }
}

@keyframes float-panel {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes sheen {
  0%,
  45% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@keyframes nav-glass-sheen {
  0%,
  42% {
    left: -38%;
    opacity: 0;
  }

  52% {
    opacity: 0.85;
  }

  72%,
  100% {
    left: 104%;
    opacity: 0;
  }
}

@keyframes signal-rise {
  0%,
  100% {
    transform: scaleY(0.72);
    opacity: 0.72;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes orbit-dot {
  from {
    transform: rotate(0deg) translateX(88px) rotate(0deg);
  }

  to {
    transform: rotate(360deg) translateX(88px) rotate(-360deg);
  }
}

@keyframes orbit-dot-mobile {
  from {
    transform: rotate(0deg) translateX(68px) rotate(0deg);
  }

  to {
    transform: rotate(360deg) translateX(68px) rotate(-360deg);
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes border-flow {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes list-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1320px) {
  .directory-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .directory-card-grid.list,
  .directory-card-grid.compact {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 981px) and (max-width: 1023px) {
  .directory-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directory-card-grid.list,
  .directory-card-grid.compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .site-header-inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    gap: 6px;
    padding: 7px;
    overflow-x: auto;
    scroll-padding: 12px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

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

  .nav a {
    scroll-snap-align: start;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .footer-hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
  }

  .footer-brand-block h2 {
    white-space: normal;
  }

  .footer-newsletter {
    max-width: 560px;
  }

  .footer-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .footer-links-grid div {
    min-height: 100%;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
  }

  .footer-bottom {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .stats-grid,
  .listing-grid,
  .directory-card-grid,
  .premium-spotlight-grid,
  .taxonomy-grid,
  .team-grid,
  .detail-layout,
  .admin-grid,
  .directory-layout,
  .directory-hero,
  .hero-inner,
  .submit-hero,
  .auth-hero,
  .auth-layout,
  .cms-command-panel,
  .cms-overview-grid,
  .cms-submenu,
  .cms-workspace,
  .dashboard-hero-panel,
  .dashboard-stat-grid,
  .dashboard-health-grid,
  .dashboard-chart-grid,
  .dashboard-insights-grid,
  .home-hub-layout,
  .about-page-layout,
  .submit-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

  .tabs {
    position: static;
  }

  .cms-side-column {
    position: static;
  }

  .detail-side {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .profile-header {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .profile-logo {
    width: 58px;
    height: 58px;
  }

  .profile-submitted {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: left;
  }

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

  .detail-side {
    position: static;
  }

  .detail-share-panel {
    grid-template-columns: 1fr;
  }

  .submit-aside {
    position: static;
  }

  .home-category-rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }

  .home-hub-category-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-orbit {
    justify-self: start;
    width: 150px;
    height: 150px;
  }

  .auth-orbit span {
    animation-name: orbit-dot-mobile;
  }

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

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

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

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

  .prompt-search,
  .prompt-filter-actions {
    grid-column: 1 / -1;
  }

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

  .hero {
    min-height: 420px;
  }

  .hero-preview {
    max-width: 520px;
  }

  .home-featured-item {
    flex-basis: min(520px, calc((100% - 18px) / 2));
  }

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

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

  .directory-filter-actions {
    grid-column: 1 / -1;
  }

  .prompt-filter-actions {
    min-width: 0;
  }
}

@media (min-width: 621px) and (max-width: 980px) {
  .directory-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directory-card-grid.list,
  .directory-card-grid.compact {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  body {
    font-size: 14px;
  }

  .brand small {
    display: none;
  }

  .site-header-inner {
    gap: 10px;
  }

  .site-header {
    padding: 10px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    display: block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav {
    padding: 4px;
    border-radius: 18px;
    mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 28px), transparent 100%);
  }

  .nav a {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 11px;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .header-auth-button {
    min-width: 36px;
    padding: 8px;
  }

  .header-auth-button.auth-login-button {
    min-width: 42px;
    min-height: 42px;
    padding: 8px;
    border-radius: 999px;
  }

  .header-auth-button.auth-login-button .header-icon {
    width: 24px;
    height: 24px;
  }

  .header-auth-button span:last-child {
    display: none;
  }

  .hero-actions,
  .hero-search,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

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

  .site-footer {
    padding-top: 44px;
  }

  .footer-brand-block h2 {
    font-size: clamp(20px, 6vw, 28px);
  }

  .footer-hero,
  .footer-links-grid {
    grid-template-columns: 1fr;
  }

  .footer-newsletter div,
  .footer-bottom {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .footer-newsletter button {
    width: 100%;
  }

  .footer-links-grid {
    gap: 12px;
  }

  .footer-links-grid div {
    padding: 14px;
  }

  .footer-bottom div {
    flex-wrap: wrap;
    gap: 8px 10px;
  }

  .footer-bottom span {
    display: none;
  }

  .button,
  .icon-button {
    width: 100%;
  }

  .site-header .button,
  .site-header .icon-button {
    width: auto;
  }

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

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

  .global-stats-ticker span {
    width: 100%;
    justify-content: center;
  }

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

  .prompt-toolbar,
  .prompt-grid {
    grid-template-columns: 1fr;
  }

  .prompt-search,
  .prompt-filter-actions {
    grid-column: auto;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .hero-inner {
    gap: 18px;
    padding-bottom: 14px;
  }

  .hero-preview {
    padding: 14px;
  }

  .home-stats-section {
    margin-top: -18px;
  }

  .featured-heading-actions {
    justify-content: flex-start;
  }

  .home-featured-item {
    flex-basis: min(100%, 354px);
  }

  .home-category-rail,
  .home-hub-category-cards,
  .home-hub-grid {
    grid-template-columns: 1fr;
  }

  .home-hub-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .premium-spotlight-grid {
    grid-template-columns: 1fr;
  }

  .directory-hero {
    padding-top: 24px;
  }

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

  .directory-hero-stats div {
    min-height: 70px;
  }

  .directory-card-grid.list .listing-card {
    grid-template-columns: 1fr;
  }

  .directory-card-grid.list .listing-body {
    grid-template-columns: 1fr;
  }

  .directory-card-grid.list .listing-card p,
  .directory-card-grid.list .tag-list,
  .directory-card-grid.list .card-actions {
    grid-column: auto;
    grid-row: auto;
  }

  .results-toolbar-actions {
    justify-content: flex-start;
  }

  .results-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .results-filter-bar {
    grid-template-columns: 1fr;
  }

  .directory-filter-actions,
  .prompt-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-width: 0;
  }

  .directory-filter-actions .small-button,
  .prompt-filter-actions .small-button {
    justify-content: center;
    width: 100%;
  }

  .pagination {
    display: grid;
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .admin-filter-bar {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .listing-filter-bar,
  .cms-filter-bar,
  .cms-filter-bar.compact {
    grid-template-columns: 1fr;
  }

  .subscription-filter-bar,
  .subscription-table-head,
  .subscription-row,
  .menu-admin-head,
  .menu-admin-row {
    grid-template-columns: 1fr;
  }

  .subscription-table-head,
  .menu-admin-head {
    display: none;
  }

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

  .admin-listing-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-bar {
    grid-template-columns: 1fr 44px;
  }

  .dashboard-bar i {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .user-admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .user-admin-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .taxonomy-quick-add,
  .taxonomy-quick-add form,
  .taxonomy-quick-add form[data-taxonomy-create="tags"],
  .taxonomy-table-head,
  .taxonomy-table-row,
  .taxonomy-tag-table .taxonomy-table-head,
  .taxonomy-tag-table .taxonomy-table-row {
    grid-template-columns: 1fr;
  }

  .taxonomy-table-head {
    display: none;
  }

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

  .cms-command-stats,
  .cms-menu-item .form-row,
  .cms-menu-actions {
    grid-template-columns: 1fr;
  }

  .cms-section-heading,
  .page-editor-head {
    flex-direction: column;
  }

  .editor-toolbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .editor-toolbar button,
  .menu-admin-row .small-button {
    width: 100%;
  }

  .cms-page-content {
    padding: 20px;
  }

  .about-page-content .cms-page-content p {
    text-align: left;
  }

  .about-sidebar-actions,
  .about-focus-grid,
  .auth-support-strip,
  .auth-recovery-card,
  .auth-recovery-controls {
    grid-template-columns: 1fr;
  }

  .listing-profile-hero {
    padding-top: 22px;
  }

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

  .profile-logo {
    width: 48px;
    height: 48px;
  }

  .profile-title h1 {
    margin-top: 8px;
    font-size: 1.4rem;
  }

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

  .profile-metrics strong {
    font-size: 19px;
  }

  .submit-hero-card {
    min-height: 130px;
  }

  .auth-hero {
    padding-top: 24px;
  }

  .auth-orbit {
    display: none;
  }

  .auth-card {
    padding: 20px;
  }

  .form-section-heading {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .detail-actions {
    grid-template-columns: 1fr;
  }

  .detail-share-panel {
    gap: 14px;
  }

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

  .share-button {
    justify-content: flex-start;
  }

  .detail-facts div {
    display: grid;
    gap: 4px;
  }

  .detail-facts dd {
    text-align: left;
  }

  .hero h1 {
    font-size: 1.4rem;
  }

  .results-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .list-card .card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
