/*
Theme Name: MODesign Domains
Theme URI: https://modesign.site/
Author: Artemiy V Diakov
Author URI: https://modesign.site/
Description: Beautiful adaptive WordPress theme for selling domains and websites. Matches MODesign.site brand, with dark/light mode, multilingual support, contact form with spam protection, full SEO, and admin-managed listings.
Version: 1.0.9
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: modesign-domains
Tags: custom-logo, custom-menu, featured-images, translation-ready, dark-mode, responsive, seo
*/

/* ==========================================================================
   CSS Variables — Brand from modesign.site
   ========================================================================== */
:root {
  --bg-primary: #161d25;
  --bg-secondary: #1e2732;
  --bg-card: #232d3a;
  --bg-elevated: #2a3644;
  --text-primary: #f0f4f8;
  --text-secondary: #a0aec0;
  --text-muted: #718096;
  --accent: #c8f055;
  --accent-hover: #d4f870;
  --accent-dark: #a8d030;
  --purple: #7c3aed;
  --teal: #14b8a6;
  --gradient-start: #7c3aed;
  --gradient-end: #14b8a6;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 72px;
}

[data-theme="light"] {
  --bg-primary: #f7f9fc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-elevated: #f0f4f8;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --accent: #6b9e00;
  --accent-hover: #5a8800;
  --accent-dark: #4a7200;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

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

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

a:hover {
  color: var(--accent-hover);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

.section {
  padding: 4.5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  max-width: 100vw;
  background: rgba(22, 29, 37, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: visible;
}

.site-header.is-scrolled {
  background: rgba(22, 29, 37, 0.97);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  border-bottom-color: var(--border);
}

/* Offset content under fixed header */
.site-main {
  padding-top: var(--header-h);
}

[data-theme="light"] .site-header {
  background: rgba(247, 249, 252, 0.95);
}

[data-theme="light"] .site-header.is-scrolled {
  background: rgba(247, 249, 252, 0.98);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.header-brand {
  flex-shrink: 1;
  min-width: 0;
  max-width: 45%;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  max-width: 100%;
}

.site-logo img,
.custom-logo-link img {
  height: 32px;
  width: auto;
  max-width: 140px;
  display: block;
  object-fit: contain;
}

/* Desktop nav — horizontal */
.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list > li {
  margin: 0;
}

.nav-list a {
  display: block;
  color: var(--text-secondary);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
  color: var(--accent);
  background: rgba(200, 240, 85, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  min-width: 0;
}

.theme-toggle {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

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

[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.925rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--accent);
  color: #161d25;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #161d25;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200, 240, 85, 0.35);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 5.5rem 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 75% 15%, rgba(124, 58, 237, 0.18), transparent 60%),
    radial-gradient(ellipse 55% 45% at 15% 85%, rgba(20, 184, 166, 0.12), transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(0, 380px);
  gap: 3rem;
  align-items: center;
}

.hero-content {
  max-width: 640px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(200, 240, 85, 0.1);
  border: 1px solid rgba(200, 240, 85, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero-title {
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 480px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-visual {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
}

.hero-orb--1 {
  width: 180px;
  height: 180px;
  background: var(--purple);
  top: 10%;
  right: 15%;
}

.hero-orb--2 {
  width: 140px;
  height: 140px;
  background: var(--teal);
  bottom: 15%;
  left: 20%;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0.5rem auto 0;
}

.page-hero {
  padding: 3rem 0 2rem;
  border-bottom: none;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(124, 58, 237, 0.12), transparent);
}

.page-title {
  margin-bottom: 0.35rem;
}

.page-desc {
  color: var(--text-secondary);
}

/* ==========================================================================
   Filters & Listings
   ========================================================================== */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
  background: var(--bg-secondary);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-btn {
  appearance: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: rgba(200, 240, 85, 0.35);
}

.filter-btn.active {
  background: var(--accent);
  color: #161d25;
  border-color: var(--accent);
  font-weight: 600;
}

.search-wrap {
  flex: 1;
  min-width: 180px;
}

.search-input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition);
}

.search-input:focus {
  border-color: var(--accent);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.listing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.listing-card:hover {
  border-color: rgba(200, 240, 85, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.listing-card .card-media {
  height: 140px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.listing-card .card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.listing-card .card-media .type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  z-index: 1;
}

.listing-card .card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.listing-card .domain-name {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  word-break: break-all;
}

.listing-card .description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-card .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

.listing-card .price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
}

.listing-card .price small {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.listing-card .status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.status-available {
  background: rgba(20, 184, 166, 0.15);
  color: var(--teal);
}

.status-sold {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.status-reserved {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

/* ==========================================================================
   Single Listing
   ========================================================================== */
.single-listing {
  padding: 3rem 0;
}

.single-listing .listing-header {
  margin-bottom: 2rem;
}

.single-listing .domain-title {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.single-listing .price-large {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

.listing-details {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.detail-card h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.detail-list {
  display: grid;
  gap: 0.75rem;
}

.detail-list dt {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detail-list dd {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-form {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  max-width: none;
  margin: 0;
}

.footer-contact .contact-form h3 {
  display: none;
}

.form-message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.form-message.success {
  background: rgba(20, 184, 166, 0.15);
  color: var(--teal);
  border: 1px solid rgba(20, 184, 166, 0.3);
}

.form-message.error {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-message {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.form-message.success {
  background: rgba(20, 184, 166, 0.15);
  color: var(--teal);
  border: 1px solid rgba(20, 184, 166, 0.3);
}

.form-message.error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-secondary);
  border-top: none;
  padding: 3rem 0 1.5rem;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-desc,
.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.25rem 0;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition);
}

.pagination a:hover,
.pagination .current {
  background: var(--accent);
  color: #161d25;
  border-color: var(--accent);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: none;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .listing-layout {
    grid-template-columns: 1fr !important;
  }

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

@media (max-width: 900px) {
  .header-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem 1rem;
    z-index: 999;
    box-shadow: var(--shadow);
    box-sizing: border-box;
  }

  .header-nav.is-open {
    display: block;
    animation: slideDown 0.28s ease;
  }

  .header-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .header-nav .nav-list a {
    width: 100%;
    text-align: left;
    padding: 0.85rem 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .header-brand {
    max-width: 50%;
  }

  .site-logo img,
  .custom-logo-link img {
    height: 28px;
    max-width: 120px;
  }

  .header-cta {
    display: none;
  }

  .lang-code {
    display: none;
  }

  .lang-current {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }

  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  .filters-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-wrap {
    min-width: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section {
    padding: 3rem 0;
  }

  .hero {
    padding: 3.5rem 0 2.5rem;
  }
}

@media (max-width: 480px) {
  :root {
    --header-h: 60px;
  }

  .header-inner {
    gap: 0.35rem;
  }

  .site-logo img,
  .custom-logo-link img {
    height: 24px;
    max-width: 100px;
  }

  .header-actions {
    gap: 0.25rem;
  }

  .lang-current,
  .theme-toggle,
  .nav-toggle {
    width: 34px;
    height: 34px;
  }

  .container {
    padding: 0 0.85rem;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .filter-group {
    width: 100%;
  }

  .filter-btn {
    flex: 1;
    text-align: center;
    padding: 0.45rem 0.5rem;
    font-size: 0.8rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-badge {
    font-size: 0.7rem;
  }
}

/* ==========================================================================
   Utilities & Accessibility
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: #161d25;
  padding: 0.5rem 1rem;
  z-index: 9999;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-secondary);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  opacity: 0.4;
}

/* ==========================================================================
   Language switcher (built-in, no plugins)
   ========================================================================== */
.lang-switcher {
  position: relative;
}

.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background var(--transition), border-color var(--transition);
}

.lang-current:hover {
  border-color: var(--accent);
}

.lang-flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  list-style: none;
  padding: 0.35rem;
  z-index: 100;
}

.lang-switcher.is-open .lang-dropdown {
  display: block;
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
}

.lang-dropdown a:hover,
.lang-dropdown li.active a {
  background: var(--bg-elevated);
  color: var(--accent);
}

.lang-dropdown li.active a {
  font-weight: 600;
}


.lang-switcher {
  position: relative;
}

.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: border-color var(--transition), background var(--transition);
  height: 40px;
}

.lang-current:hover {
  border-color: var(--accent);
}

.lang-code {
  letter-spacing: 0.04em;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  list-style: none;
  padding: 0.4rem;
  z-index: 1100;
  margin: 0;
}

.lang-switcher.is-open .lang-dropdown {
  display: block;
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
}

.lang-dropdown a:hover,
.lang-dropdown li.active a {
  background: rgba(200, 240, 85, 0.1);
  color: var(--accent);
}

/* Listing single layout */
.listing-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

.listing-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.sidebar-price {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-price .label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.sidebar-price .value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}

.meta-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.meta-list li span { color: var(--text-muted); }
.meta-list li strong { color: var(--text-primary); text-align: right; }

.listing-hero-top {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.type-badge,
.status-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.type-badge {
  background: rgba(124, 58, 237, 0.2);
  color: #c4b5fd;
}

.status-badge.status-available,
.status.status-available { background: rgba(200, 240, 85, 0.15); color: var(--accent); }
.status-badge.status-reserved,
.status.status-reserved { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.status-badge.status-sold,
.status.status-sold { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.listing-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.listing-price-big {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.listing-price-big .negotiable {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb span { margin: 0 0.35rem; }

.listing-features ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--text-secondary);
}

.listing-features li { margin-bottom: 0.4rem; }

.listing-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.listing-image img { width: 100%; height: auto; display: block; }

.cta-section { padding-top: 1rem; }

.cta-box {
  text-align: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(20, 184, 166, 0.12));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
}

.cta-box h2 { margin-bottom: 0.75rem; }

.cta-box p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

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

.content-narrow { max-width: 720px; margin: 0 auto; }

.content p { margin-bottom: 1rem; color: var(--text-secondary); }

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

.error-404 { padding: 6rem 0; }

.error-code {
  font-size: 5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.price {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent);
}

.price small {
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.domain-name {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.domain-name a { color: var(--text-primary); }
.domain-name a:hover { color: var(--accent); }

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  gap: 0.75rem;
}

.description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-card .status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

body.nav-open {
  overflow: hidden;
}

/* ==========================================================================
   Animations — make the site feel alive
   ========================================================================== */
@keyframes modesign-fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes modesign-slide-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modesign-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.1); }
}

@keyframes modesign-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes modesign-shimmer {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

/* Hero — pure CSS on load */
.hero-badge {
  animation: modesign-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-title {
  animation: modesign-fade-up 0.75s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-subtitle {
  animation: modesign-fade-up 0.75s 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-actions {
  animation: modesign-fade-up 0.75s 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-orb--1 {
  animation: modesign-pulse 5s ease-in-out infinite;
}

.hero-orb--2 {
  animation: modesign-pulse 6.5s 0.8s ease-in-out infinite;
}

.hero-visual {
  animation: modesign-fade-in 1.2s 0.3s both;
}

/* Mobile menu open */
.header-nav.is-open {
  animation: modesign-slide-down 0.3s ease both;
}

/* Scroll reveal — visible by default; JS only enhances */
.reveal {
  opacity: 1;
  transform: none;
}

.js-ready .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cards hover */
.listing-card {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.35s ease,
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.listing-card.is-visible:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  border-color: rgba(200, 240, 85, 0.35);
}

.listing-card .card-media {
  transition: transform 0.45s ease;
}

.listing-card.is-visible:hover .card-media {
  transform: scale(1.04);
}

/* Buttons */
.btn {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-120%);
  pointer-events: none;
}

.btn-primary:hover::after {
  animation: modesign-shimmer 0.7s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: scale(0.97) translateY(0);
}

.filter-btn {
  transition: transform 0.2s ease, background 0.2s, color 0.2s, border-color 0.2s;
}

.filter-btn:hover {
  transform: translateY(-1px);
}

.theme-toggle svg {
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle:hover svg {
  transform: rotate(25deg) scale(1.1);
}

.cta-box {
  transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}

.cta-box.is-visible:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(200, 240, 85, 0.3), 0 16px 48px rgba(0, 0, 0, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge,
  .hero-title,
  .hero-subtitle,
  .hero-actions,
  .hero-orb--1,
  .hero-orb--2,
  .hero-visual,
  .header-nav.is-open {
    animation: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .btn-primary::after {
    display: none;
  }
}

/* ==========================================================================
   Listing cards — website thumbnail vs domain placeholder
   ========================================================================== */
.listing-card .card-media {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #5b21b6 0%, #0f766e 100%);
}

.listing-card .card-media--domain {
  background:
    radial-gradient(circle at 30% 40%, rgba(200, 240, 85, 0.15), transparent 50%),
    linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
}

.listing-card .card-media--website {
  background: linear-gradient(135deg, #6d28d9 0%, #0d9488 100%);
}

.listing-card .card-media--thumb {
  background: var(--bg-elevated);
  padding: 0;
}

.listing-card .card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s ease;
}

.listing-card:hover .card-thumb {
  transform: scale(1.05);
}

.card-media-icon {
  color: rgba(255, 255, 255, 0.55);
  z-index: 1;
  display: flex;
}

.card-media-icon--domain {
  color: rgba(200, 240, 85, 0.45);
}

.listing-card .card-media .type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

/* ==========================================================================
   Single listing — polished sale page
   ========================================================================== */
.listing-hero {
  position: relative;
  padding: 2.5rem 0 2rem;
  overflow: hidden;
  border-bottom: none;
}

.listing-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(124, 58, 237, 0.2), transparent 55%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(20, 184, 166, 0.12), transparent 50%);
  pointer-events: none;
}

.listing-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: 2.5rem;
  align-items: center;
}

.listing-hero--domain .listing-hero-inner {
  grid-template-columns: 1fr minmax(200px, 320px);
}

.listing-lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0.75rem 0 1.5rem;
  max-width: 520px;
  line-height: 1.55;
}

.listing-hero-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.listing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.listing-price-big {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.listing-price-big .negotiable {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  vertical-align: middle;
}

/* Browser-style preview frame */
.browser-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease;
}

.browser-frame:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 0.85rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.browser-chrome .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.browser-chrome .dot:nth-child(1) { background: #ff5f56; }
.browser-chrome .dot:nth-child(2) { background: #ffbd2e; }
.browser-chrome .dot:nth-child(3) { background: #27c93f; }

.browser-url {
  flex: 1;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-primary);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-viewport {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-elevated);
}

.browser-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Domain decorative orb */
.listing-hero-preview--domain {
  display: flex;
  justify-content: center;
  align-items: center;
}

.domain-orb {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(200, 240, 85, 0.2), transparent 55%),
    linear-gradient(145deg, rgba(124, 58, 237, 0.25), rgba(20, 184, 166, 0.2));
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--accent);
  animation: modesign-pulse 6s ease-in-out infinite;
}

.domain-orb-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  padding: 0 1rem;
  word-break: break-all;
  max-width: 180px;
}

/* Stats chips */
.listing-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.stat-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.1rem;
  min-width: 120px;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.stat-value {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.listing-block-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.listing-content {
  margin-bottom: 2.5rem;
}

.features-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.65rem;
}

.features-grid li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  font-size: 0.925rem;
}

.feat-check {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.listing-cta-mobile {
  display: none;
  margin-top: 2rem;
}

.negotiable-tag {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sold-notice {
  text-align: center;
  padding: 0.85rem;
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.listing-body-section {
  padding-top: 2.5rem;
}

@media (max-width: 992px) {
  .listing-hero-inner {
    grid-template-columns: 1fr !important;
  }

  .listing-hero-preview {
    order: -1;
    max-width: 480px;
    margin: 0 auto;
  }

  .browser-frame {
    transform: none;
  }

  .domain-orb {
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 768px) {
  .listing-cta-mobile {
    display: block;
  }

  .listing-sidebar {
    position: static;
  }

  .listing-hero {
    padding: 1.5rem 0 2rem;
  }

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

/* Inline inquiry on single listing */
.listing-inquiry {
  margin-top: 2rem;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.listing-inquiry .inquiry-hint {
  color: var(--text-secondary);
  margin: -0.25rem 0 1.25rem;
  font-size: 0.95rem;
}

.listing-inquiry .contact-form {
  max-width: 480px;
}

.listing-body-section {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  min-height: 0;
}

.listing-layout {
  align-items: start;
}

/* Avoid huge empty gap when main is short */
.listing-main:empty {
  display: none;
}

/* ==========================================================================
   Cookie / privacy notice banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  padding: 1rem;
  pointer-events: none;
}

.cookie-banner:not([hidden]) {
  pointer-events: auto;
  animation: modesign-slide-down 0.35s ease reverse;
  animation-name: modesign-fade-up;
}

.cookie-banner-inner {
  max-width: 920px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
  padding: 1.15rem 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.cookie-banner-inner p {
  flex: 1;
  min-width: 220px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cookie-banner-inner a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Legal content */
.legal-content h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.75rem 0 1rem;
  color: var(--text-secondary);
}

.legal-content li {
  margin-bottom: 0.4rem;
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}

.legal-content code {
  background: var(--bg-elevated);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
}

.listing-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.listing-summary-card p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}
