:root {
  --ink: #171817;
  --muted: #5d625d;
  --surface: #ffffff;
  --soft: #f4f6f1;
  --line: #dfe5dc;
  --green: #245a45;
  --green-dark: #173d30;
  --red: #a3392d;
  --gold: #af7a36;
  --shadow: 0 18px 50px rgba(23, 24, 23, 0.12);
}

html.theme-night {
  --ink: #f3f0e8;
  --muted: #bcc8bf;
  --surface: #141a18;
  --soft: #0b1110;
  --line: #26332f;
  --green: #8bd2aa;
  --green-dark: #4da176;
  --red: #e07c6f;
  --gold: #d3aa5e;
  --shadow: 0 18px 52px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-bottom: 36px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

body::after {
  content: "";
  display: block;
  height: max(34px, env(safe-area-inset-bottom));
}

body.standalone-domain {
  background: #fbfcf8;
}

html.theme-night body.standalone-domain,
html.theme-night .admin-body {
  background: #0a100f;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 16px 5vw;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

html.theme-night .site-header {
  background: rgba(12, 17, 16, 0.94);
  border-bottom-color: var(--line);
}

.site-header.is-overlay {
  position: absolute;
  inset: 0 0 auto 0;
  background: rgba(16, 17, 16, 0.24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-cluster {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
}

.brand-logo {
  width: clamp(260px, 30vw, 390px);
  height: auto;
}

html.theme-night .brand-logo {
  filter: brightness(1.08) contrast(1.04);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 16px;
  font-size: 0.95rem;
}

.nav-links a {
  color: inherit;
  text-decoration: none;
}

.nav-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.homepage-landscape {
  width: 100%;
  aspect-ratio: 16 / 6.2;
  max-height: 430px;
  overflow: hidden;
  background: #15251f;
  border-bottom: 1px solid var(--line);
}

.homepage-landscape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 58px;
  height: 30px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(23, 24, 23, 0.08);
  cursor: pointer;
  overflow: hidden;
}

.theme-toggle:hover {
  border-color: var(--gold);
}

.theme-toggle:focus-visible {
  outline: 3px solid rgba(175, 122, 54, 0.28);
  outline-offset: 3px;
}

.theme-toggle::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(175, 122, 54, 0.42);
  border-radius: 999px;
  background: #fff4c7;
  box-shadow: 0 5px 12px rgba(175, 122, 54, 0.24);
  transform: translateX(0);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.theme-toggle-icons {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  width: 100%;
  pointer-events: none;
}

.theme-icon {
  width: 17px;
  height: 17px;
  justify-self: center;
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}

.theme-icon-sun {
  opacity: 1;
  filter: drop-shadow(0 2px 4px rgba(175, 122, 54, 0.24));
}

.theme-icon-moon {
  opacity: 0.56;
  transform: scale(0.92);
  filter: drop-shadow(0 2px 4px rgba(23, 24, 23, 0.18));
}

html.theme-night .theme-toggle {
  color: var(--gold);
  background: #101713;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

html.theme-night .theme-toggle::before {
  background: #202b28;
  border-color: rgba(211, 170, 94, 0.46);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.34);
  transform: translateX(28px);
}

html.theme-night .theme-icon-sun {
  opacity: 0.54;
  transform: scale(0.92);
  filter: none;
}

html.theme-night .theme-icon-moon {
  opacity: 1;
  transform: scale(1);
  filter: drop-shadow(0 2px 5px rgba(211, 170, 94, 0.22));
}

.domain-card[data-domain*=".com"] .card-image-link,
.domain-card[data-domain*=".com"] h2 a,
.domain-card[data-domain*=".com"] .button,
.standalone-hero-image[href*=".com/"],
.promoted-domain-line a[href*=".com/"] {
  cursor: pointer;
}

.catalog-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 40px;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto;
  padding: 74px 5vw 34px;
}

.eyebrow,
.tag {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tag-red {
  color: var(--red);
}

.tag-pink {
  color: #b72f71;
}

.tag-cart {
  color: #237083;
}

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

h1 {
  margin: 0;
  max-width: 820px;
  font-size: 3rem;
  line-height: 1.06;
}

h2 {
  margin: 0 0 14px;
  font-size: 1.65rem;
  line-height: 1.18;
}

p {
  margin: 0;
}

.intro-copy {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.intro-stats div {
  min-height: 96px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.intro-stats strong {
  display: block;
  font-size: 1.85rem;
  line-height: 1;
}

.intro-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 5vw 26px;
}

.search-field {
  display: grid;
  gap: 8px;
  width: min(100%, 520px);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.search-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.search-field input:focus {
  outline: 3px solid rgba(36, 90, 69, 0.18);
  border-color: var(--green);
}

.result-count {
  color: var(--muted);
  font-size: 0.92rem;
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 5vw 58px;
}

.domain-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  min-height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-intro {
  align-items: center;
}

.contact-stats strong {
  font-size: 1.25rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 5vw 58px;
}

.contact-panel {
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-panel p,
.contact-panel li {
  color: var(--muted);
}

.contact-panel a {
  color: var(--green);
  font-weight: 700;
}

html.theme-night .intro-stats div,
html.theme-night .domain-card,
html.theme-night .contact-panel,
html.theme-night .promoted-domain-line,
html.theme-night .admin-panel,
html.theme-night .batch-result,
html.theme-night .publish-result {
  background: var(--surface);
  border-color: var(--line);
}

html.theme-night .card-image-link,
html.theme-night .standalone-hero-image {
  background: #1b2420;
}

html.theme-night .search-field input,
html.theme-night .admin-panel input,
html.theme-night .admin-panel select,
html.theme-night .admin-panel textarea {
  color: var(--ink);
  background: #101713;
  border-color: var(--line);
}

html.theme-night .search-field input::placeholder,
html.theme-night .admin-panel textarea::placeholder {
  color: #829087;
}

html.theme-night .button {
  color: #07110d;
  background: var(--gold);
  border-color: var(--gold);
}

html.theme-night .button:hover {
  background: #e0bd77;
}

html.theme-night .pagination-button,
html.theme-night .pagination-page {
  background: #101713;
  border-color: var(--line);
}

html.theme-night .pagination-page[aria-current="page"] {
  color: #07110d;
  background: var(--gold);
  border-color: var(--gold);
}

html.theme-night .image-sale-label,
html.theme-night .domain-cursor-badge {
  background: rgba(10, 16, 14, 0.86);
}

html.theme-night .standalone-footer,
html.theme-night .site-footer {
  color: var(--muted);
}

html.theme-night .visitor-counter-item {
  background: #101713;
  border-color: var(--line);
}

html.theme-night .standalone-footer a,
html.theme-night .site-footer a,
html.theme-night .contact-panel a,
html.theme-night .promoted-domain-line a {
  color: var(--green);
}

.domain-card[hidden] {
  display: none;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: -28px auto 58px;
  padding: 0 5vw;
}

.catalog-pagination[hidden] {
  display: none;
}

.pagination-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.pagination-controls,
.pagination-pages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination-button,
.pagination-page {
  min-width: 42px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.pagination-page[aria-current="page"] {
  color: #ffffff;
  background: var(--green);
  border-color: var(--green);
}

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

.card-image-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #d8ded4;
}

.card-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.domain-card:hover img {
  transform: scale(1.025);
}

.sale-image::after,
.standalone-hero-image::after,
.sale-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 11, 0.1), rgba(10, 12, 11, 0.72));
  pointer-events: none;
}

.image-sale-label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  max-width: calc(100% - 36px);
  padding: 10px 12px;
  color: #ffffff;
  background: rgba(13, 17, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 800;
  line-height: 1.16;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}

.image-sale-label-compact {
  font-size: 1.05rem;
}

.standalone-domain-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 5vw 30px;
}

.standalone-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: 42px;
  align-items: center;
}

.standalone-hero-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #d8ded4;
  box-shadow: var(--shadow);
}

.standalone-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.standalone-hero-copy {
  display: grid;
  gap: 18px;
  align-content: center;
}

.standalone-hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.standalone-hero-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.12rem;
}

.standalone-article {
  max-width: 790px;
  margin-top: 54px;
  display: grid;
  gap: 22px;
  color: var(--muted);
}

.standalone-article h2 {
  color: var(--ink);
}

.standalone-article p,
.standalone-article li {
  font-size: 1.04rem;
}

.promoted-domain-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding: 16px 18px;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.promoted-domain-line span {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.promoted-domain-line a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.promoted-domain-line a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.domain-cursor-badge {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  padding: 7px 11px;
  color: #ffffff;
  background: var(--green-dark);
  border: 2px solid var(--gold);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate(14px, 14px) scale(0.94);
  transition: opacity 120ms ease, transform 120ms ease;
  box-shadow: 0 12px 26px rgba(23, 24, 23, 0.28);
}

.domain-cursor-badge.is-visible {
  opacity: 1;
  transform: translate(16px, 16px) scale(1);
}

.button-narrow {
  width: fit-content;
}

.standalone-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 5vw 26px;
  color: #6c7069;
  font-size: 0.92rem;
}

.standalone-footer > p {
  margin: 0;
}

.standalone-footer .footer-links {
  margin-top: 10px;
}

.standalone-footer a {
  color: var(--green);
  font-weight: 700;
}

.visitor-counter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1;
}

.standalone-footer .visitor-counter {
  margin-top: 10px;
}

.visitor-counter-item {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 104px;
  min-height: 46px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.visitor-counter-static,
.visitor-counter-link {
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 30px;
}

.visitor-counter-link {
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
}

.visitor-counter-link:hover strong,
.visitor-counter-link:focus-visible strong {
  color: var(--green);
}

.visitor-counter-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.visitor-counter-item strong,
.visitor-counter-item span {
  display: block;
}

.visitor-counter-item strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.05;
}

.visitor-counter-item span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.country-visits-panel {
  max-width: 1180px;
  margin: 0 auto 70px;
  padding: 0 5vw;
}

.country-visits-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.country-visits-summary div {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.country-visits-summary strong {
  color: var(--ink);
  font-size: 1.35rem;
}

.country-visits-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.country-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.country-visits-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.top-visits-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.country-visits-table th,
.country-visits-table td,
.top-visits-table th,
.top-visits-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.country-visits-table th,
.top-visits-table th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.country-visits-table td,
.top-visits-table td {
  color: var(--ink);
  font-weight: 700;
}

.country-visits-table tr:last-child td,
.top-visits-table tr:last-child td {
  border-bottom: 0;
}

.country-visits-table td:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

.country-flag {
  min-width: 34px;
  font-size: 1.7rem;
  line-height: 1;
}

.top-visits-table td:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 300px;
}

.top-page-link {
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.top-page-link:hover,
.top-page-link:focus-visible {
  text-decoration: underline;
}

.top-visits-table td:nth-child(2) span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.country-visits-status {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-body {
  background: #f7f8f4;
}

.admin-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 5vw 70px;
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 42px;
  align-items: start;
}

.admin-login-only {
  grid-template-columns: minmax(280px, 430px);
  justify-content: center;
  min-height: calc(100vh - 160px);
  align-items: center;
}

.admin-login-copy {
  padding-top: 26px;
}

.admin-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(23, 24, 23, 0.08);
}

.admin-panel h2 {
  margin-bottom: 0;
}

.admin-panel h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
}

.admin-workspace {
  display: grid;
  gap: 26px;
}

.admin-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.admin-heading h1 {
  font-size: clamp(2.25rem, 4vw, 3.4rem);
}

.admin-logout {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 24px;
  align-items: start;
}

.admin-grid-simple {
  grid-template-columns: minmax(0, 820px);
}

.api-key-panel {
  display: grid;
  gap: 16px;
}

.admin-key-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 14px;
}

.admin-key-input {
  grid-column: 1 / -1;
}

.admin-field,
.admin-field-group {
  display: grid;
  gap: 8px;
}

.admin-field span,
.admin-check span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

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

.admin-domain-list textarea {
  min-height: 330px;
  font-size: 1.02rem;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
  outline: 3px solid rgba(36, 90, 69, 0.18);
  border-color: var(--green);
}

.admin-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.admin-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green);
}

.admin-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-status {
  display: inline-flex;
  width: fit-content;
  margin: 8px 0 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-status.is-ok {
  color: var(--green);
  border-color: rgba(36, 90, 69, 0.24);
  background: #eef7f0;
}

.admin-status.is-warn {
  color: #7a4d12;
  border-color: #ead7a8;
  background: #fff8e8;
}

.admin-output {
  align-content: start;
}

.admin-output-list {
  margin: 0;
}

.admin-output-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
}

.admin-output-list dd {
  overflow-wrap: anywhere;
  text-align: left;
}

.admin-preview {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: #f7f8f4;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.admin-preview h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.admin-preview p:last-child {
  color: var(--muted);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.admin-actions button {
  cursor: pointer;
}

.admin-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.batch-results {
  display: grid;
  gap: 12px;
}

.batch-result {
  padding: 14px 16px;
  background: #f7f8f4;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.batch-result h3 {
  margin: 0 0 6px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.batch-result h3 a {
  text-decoration: none;
}

.batch-result p:last-child {
  color: var(--muted);
}

.publish-results {
  display: grid;
  gap: 12px;
}

.publish-result {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  background: #f7f8f4;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.publish-result h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  line-height: 1.2;
}

.publish-result p:last-child {
  color: var(--muted);
}

.publish-result .text-link {
  flex: 0 0 auto;
  white-space: nowrap;
}

.card-body {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 24px;
}

.card-body h2 a {
  text-decoration: none;
}

.card-body p {
  color: var(--muted);
}

.card-actions,
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.button,
.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
}

.button {
  padding: 0 18px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--green);
  border: 1px solid var(--green);
}

.button:hover {
  background: var(--green-dark);
}

.button-light {
  color: var(--ink);
  background: #ffffff;
  border-color: #ffffff;
}

.button-light:hover {
  color: #ffffff;
  background: var(--green);
  border-color: var(--green);
}

.button-full {
  width: 100%;
}

.text-link {
  color: var(--green);
}

.text-link-light {
  color: #ffffff;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.selling-notes {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: 34px;
  max-width: 1180px;
  margin: 0 auto 64px;
  padding: 34px 5vw;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.selling-notes p:last-child {
  color: var(--muted);
  font-size: 1.02rem;
}

.domain-hero {
  min-height: 620px;
  display: flex;
  align-items: end;
  color: #ffffff;
  background-position: center;
  background-size: cover;
}

.hero-copy {
  width: min(920px, 90vw);
  margin: 0 auto;
  padding: 140px 0 76px;
}

.hero-copy h1 {
  font-size: 3.4rem;
}

.hero-copy p:not(.eyebrow) {
  max-width: 650px;
  margin-top: 18px;
  font-size: 1.12rem;
}

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

.domain-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 44px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 5vw;
}

.domain-article {
  display: grid;
  gap: 22px;
  color: var(--muted);
}

.domain-article h2 {
  color: var(--ink);
}

.domain-article p,
.domain-article li {
  font-size: 1.03rem;
}

.use-list {
  margin: 0;
  padding-left: 22px;
}

.use-list li + li {
  margin-top: 8px;
}

.domain-sidebar {
  align-self: start;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.sale-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.sale-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.facts {
  padding: 22px;
}

.facts h2 {
  font-size: 1.25rem;
}

dl {
  margin: 0 0 22px;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

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

dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.notice-band {
  max-width: 1180px;
  margin: 0 auto 56px;
  padding: 0 5vw;
}

.notice-band p {
  padding: 18px 20px;
  color: #4f514c;
  background: #fff8e8;
  border: 1px solid #ead7a8;
  border-radius: 8px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: start;
  gap: 13px 26px;
  padding: 18px 5vw;
  color: var(--muted);
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.site-footer > p {
  max-width: 540px;
  margin: 0;
}

.site-footer .visitor-counter {
  justify-self: end;
  padding-top: 1px;
}

.site-footer .footer-links {
  grid-column: 1 / -1;
  padding-top: 2px;
}

.site-footer a {
  font-weight: 700;
  color: var(--green);
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 900px) {
  .catalog-intro,
  .selling-notes,
  .domain-main,
  .standalone-hero,
  .admin-login,
  .admin-grid {
    grid-template-columns: 1fr;
  }

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

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

  .domain-main {
    padding-top: 42px;
  }
}

@media (max-width: 720px) {
  .site-header,
  .site-footer,
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    gap: 12px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer .visitor-counter {
    justify-self: start;
  }

  .country-visits-summary {
    grid-template-columns: 1fr;
  }

  .brand-cluster {
    width: 100%;
    justify-content: space-between;
  }

  .brand-logo {
    width: min(68vw, 300px);
  }

  .admin-shell {
    padding-top: 32px;
  }

  .admin-heading {
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.88rem;
  }

  .homepage-landscape {
    aspect-ratio: 16 / 8.5;
    max-height: none;
  }

  .homepage-landscape img {
    object-position: center;
  }

  .catalog-intro {
    padding-top: 46px;
  }

  h1,
  .hero-copy h1 {
    font-size: 2.25rem;
  }

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

  .domain-hero {
    min-height: 560px;
  }

  .hero-copy {
    padding-bottom: 48px;
  }

  .card-body {
    padding: 20px;
  }

  .image-sale-label {
    left: 14px;
    right: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
  }

  .standalone-domain-page {
    padding-top: 24px;
  }

  .standalone-hero {
    gap: 28px;
  }

  .standalone-hero-image {
    width: 100%;
  }

  .catalog-pagination {
    align-items: flex-start;
    flex-direction: column;
    margin-top: -22px;
  }

  .admin-preview,
  .admin-key-grid,
  .admin-output-list div {
    grid-template-columns: 1fr;
  }

  .publish-result {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .button,
  .text-link {
    width: 100%;
  }

  dl div {
    display: grid;
    gap: 2px;
  }

  dd {
    text-align: left;
  }
}
