/* ========================================
   Showcase — Refined Theme with Dark Mode
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* --- Light theme (default) --- */
:root {
    --bg: #fafafa;
    --bg-alt: #f4f4f5;
    --bg-hero: linear-gradient(160deg, #f0fdfa 0%, #ecfdf5 40%, #f0fdf4 100%);
    --surface: #ffffff;
    --surface-raised: #ffffff;
    --text: #18181b;
    --text-secondary: #52525b;
    --text-muted: #a1a1aa;
    --primary: #0d9488;
    --primary-hover: #0f766e;
    --primary-soft: #f0fdfa;
    --primary-glow: rgba(13, 148, 136, 0.12);
    --accent: #06b6d4;
    --accent-soft: #ecfeff;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --border: #e4e4e7;
    --border-light: #f4f4f5;
    --bid: #0891b2;
    --buy: #059669;
    --lease: #0284c7;
    --card-glow: rgba(13, 148, 136, 0.08);
    --r: 12px;
    --r-sm: 8px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-full: 9999px;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 10px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 40px -8px rgba(0,0,0,0.12);
    --max-w: 1200px;
    --sidebar-w: 260px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --header-bg: rgba(255,255,255,0.82);
    --header-border: rgba(0,0,0,0.06);
    --footer-bg: #18181b;
    --footer-text: #e4e4e7;
    --footer-muted: #71717a;
    --footer-border: rgba(255,255,255,0.06);
    color-scheme: light;
}

/* --- Dark theme --- */
[data-theme="dark"] {
    --bg: #09090b;
    --bg-alt: #18181b;
    --bg-hero: linear-gradient(160deg, #042f2e 0%, #064e3b 40%, #052e16 100%);
    --surface: #18181b;
    --surface-raised: #27272a;
    --text: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --primary: #2dd4bf;
    --primary-hover: #5eead4;
    --primary-soft: rgba(45, 212, 191, 0.1);
    --primary-glow: rgba(45, 212, 191, 0.15);
    --accent: #22d3ee;
    --accent-soft: rgba(34, 211, 238, 0.1);
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --border: #27272a;
    --border-light: #27272a;
    --bid: #22d3ee;
    --buy: #34d399;
    --lease: #38bdf8;
    --card-glow: rgba(45, 212, 191, 0.06);
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.2);
    --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.5), 0 4px 10px -4px rgba(0,0,0,0.3);
    --shadow-xl: 0 20px 40px -8px rgba(0,0,0,0.6);
    --header-bg: rgba(9,9,11,0.82);
    --header-border: rgba(255,255,255,0.06);
    --footer-bg: #09090b;
    --footer-text: #e4e4e7;
    --footer-muted: #52525b;
    --footer-border: rgba(255,255,255,0.06);
    color-scheme: dark;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color 0.15s var(--ease); }
a:hover { color: var(--primary-hover); }
ul, ol { list-style: none; }

/* --- Nav --- */
.site-header {
    background: var(--header-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--header-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header nav {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 2rem;
}
.logo {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
    letter-spacing: -0.03em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.logo:hover { color: var(--text); opacity: 0.85; }
.logo-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.nav-links { display: flex; gap: 0.25rem; align-items: center; }
.nav-links a {
    padding: 0.5rem 0.875rem;
    border-radius: var(--r-full);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all 0.15s var(--ease);
}
.nav-links a:hover { background: var(--bg-alt); color: var(--text); }
.nav-links .btn-signup {
    background: var(--primary);
    color: #fff !important;
    padding: 0.5rem 1.125rem;
    font-weight: 600;
    margin-left: 0.125rem;
}
.nav-links .btn-signup:hover {
    background: var(--primary-hover);
    color: #fff !important;
    transform: translateY(-1px);
}

/* Theme toggle */
.theme-toggle {
    background: none;
    border: 1.5px solid var(--border);
    border-radius: var(--r-full);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s var(--ease);
    margin-right: 0.25rem;
    flex-shrink: 0;
}
.theme-toggle:hover { color: var(--text); border-color: var(--text-muted); background: var(--bg-alt); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* --- Hero (catalog) --- */
.hero-section {
    background: var(--bg-hero);
    padding: 4rem 2rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='400' viewBox='0 0 800 400'%3E%3Cdefs%3E%3Cstyle%3Ecircle,ellipse,path%7Bfill:none;stroke:%230d9488;stroke-width:0.5;opacity:0.07%7D%3C/style%3E%3C/defs%3E%3C!-- dome arcs --%3E%3Cellipse cx='400' cy='400' rx='380' ry='340'/%3E%3Cellipse cx='400' cy='400' rx='310' ry='270'/%3E%3Cellipse cx='400' cy='400' rx='240' ry='200'/%3E%3Cellipse cx='400' cy='400' rx='170' ry='135'/%3E%3Cellipse cx='400' cy='400' rx='100' ry='75'/%3E%3C!-- radial lines --%3E%3Cpath d='M400 400L400 60'/%3E%3Cpath d='M400 400L180 80'/%3E%3Cpath d='M400 400L620 80'/%3E%3Cpath d='M400 400L60 200'/%3E%3Cpath d='M400 400L740 200'/%3E%3Cpath d='M400 400L100 340'/%3E%3Cpath d='M400 400L700 340'/%3E%3Cpath d='M400 400L20 400'/%3E%3Cpath d='M400 400L780 400'/%3E%3C!-- accent dots --%3E%3Ccircle cx='400' cy='130' r='2' style='fill:%230d9488;stroke:none;opacity:0.12'/%3E%3Ccircle cx='260' cy='180' r='2' style='fill:%230d9488;stroke:none;opacity:0.1'/%3E%3Ccircle cx='540' cy='180' r='2' style='fill:%230d9488;stroke:none;opacity:0.1'/%3E%3Ccircle cx='180' cy='260' r='2' style='fill:%230d9488;stroke:none;opacity:0.08'/%3E%3Ccircle cx='620' cy='260' r='2' style='fill:%230d9488;stroke:none;opacity:0.08'/%3E%3Ccircle cx='330' cy='155' r='1.5' style='fill:%2306b6d4;stroke:none;opacity:0.1'/%3E%3Ccircle cx='470' cy='155' r='1.5' style='fill:%2306b6d4;stroke:none;opacity:0.1'/%3E%3C/svg%3E") center bottom / 800px 400px no-repeat,
        radial-gradient(ellipse at 30% 20%, rgba(13,148,136,0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(6,182,212,0.05) 0%, transparent 60%);
    pointer-events: none;
}
[data-theme="dark"] .hero-section::before {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='400' viewBox='0 0 800 400'%3E%3Cdefs%3E%3Cstyle%3Ecircle,ellipse,path%7Bfill:none;stroke:%230d9488;stroke-width:0.5;opacity:0.12%7D%3C/style%3E%3C/defs%3E%3Cellipse cx='400' cy='400' rx='380' ry='340'/%3E%3Cellipse cx='400' cy='400' rx='310' ry='270'/%3E%3Cellipse cx='400' cy='400' rx='240' ry='200'/%3E%3Cellipse cx='400' cy='400' rx='170' ry='135'/%3E%3Cellipse cx='400' cy='400' rx='100' ry='75'/%3E%3Cpath d='M400 400L400 60'/%3E%3Cpath d='M400 400L180 80'/%3E%3Cpath d='M400 400L620 80'/%3E%3Cpath d='M400 400L60 200'/%3E%3Cpath d='M400 400L740 200'/%3E%3Cpath d='M400 400L100 340'/%3E%3Cpath d='M400 400L700 340'/%3E%3Cpath d='M400 400L20 400'/%3E%3Cpath d='M400 400L780 400'/%3E%3Ccircle cx='400' cy='130' r='2' style='fill:%230d9488;stroke:none;opacity:0.2'/%3E%3Ccircle cx='260' cy='180' r='2' style='fill:%230d9488;stroke:none;opacity:0.15'/%3E%3Ccircle cx='540' cy='180' r='2' style='fill:%230d9488;stroke:none;opacity:0.15'/%3E%3Ccircle cx='180' cy='260' r='2' style='fill:%230d9488;stroke:none;opacity:0.12'/%3E%3Ccircle cx='620' cy='260' r='2' style='fill:%230d9488;stroke:none;opacity:0.12'/%3E%3Ccircle cx='330' cy='155' r='1.5' style='fill:%2306b6d4;stroke:none;opacity:0.15'/%3E%3Ccircle cx='470' cy='155' r='1.5' style='fill:%2306b6d4;stroke:none;opacity:0.15'/%3E%3C/svg%3E") center bottom / 800px 400px no-repeat,
        radial-gradient(ellipse at 30% 20%, rgba(13,148,136,0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(6,182,212,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.hero-section .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid var(--primary-glow);
    padding: 0.375rem 1rem;
    border-radius: var(--r-full);
    margin-bottom: 1.25rem;
    position: relative;
}
.hero-section h1 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 0.75rem;
    position: relative;
}
.hero-section h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-section .subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 1.75rem;
    line-height: 1.65;
    position: relative;
}

/* Hero stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    position: relative;
}
.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
}
.hero-stat strong {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text);
}
.hero-stat span {
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-weight: 500;
}
.hero-stat-divider {
    width: 1px;
    height: 24px;
    background: var(--border);
}

/* --- Catalog --- */
.catalog {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

/* Controls toolbar */
.catalog-controls {
    display: flex;
    gap: 0.625rem;
    align-items: center;
    margin-bottom: 1.75rem;
    padding: 0.625rem 0.875rem;
    background: var(--surface);
    border-radius: var(--r);
    border: 1px solid var(--border);
}
.catalog-controls .search-input {
    flex: 1 1 0%;
    min-width: 140px;
    padding: 0.4375rem 0.75rem;
    font-size: 0.8125rem;
    border-radius: var(--r-full) !important;
    border: 1.5px solid var(--border) !important;
    background: var(--bg) !important;
    font-family: inherit;
    color: var(--text);
    transition: all 0.15s var(--ease);
    width: auto !important;
}
.catalog-controls .search-input:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.catalog-controls .search-input::placeholder { color: var(--text-muted); }
.catalog-controls .filter-select {
    padding: 0.4375rem 2rem 0.4375rem 0.75rem;
    border: 1.5px solid var(--border) !important;
    border-radius: var(--r-full) !important;
    background-color: var(--bg);
    font-size: 0.8125rem;
    font-family: inherit;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s var(--ease);
    width: auto !important;
    min-width: 0;
    flex: 0 0 auto;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%23a1a1aa' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}
.catalog-controls .filter-select:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

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

/* --- Listing Card --- */
.listing-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: all 0.3s var(--ease);
    color: var(--text);
    position: relative;
    overflow: hidden;
}
.listing-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    pointer-events: none;
    background: linear-gradient(135deg, var(--card-glow) 0%, transparent 100%);
}
.listing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    text-decoration: none;
    border-color: var(--primary);
}
.listing-card:hover::after { opacity: 1; }
.listing-card:hover .card-image img { transform: scale(1.05); }

.listing-card.featured {
    border-color: var(--primary);
}

/* Card image */
.card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--bg-alt);
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}

/* Card body */
.card-body {
    padding: 1.125rem 1.25rem 1.125rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-badges { display: flex; gap: 0.375rem; margin-bottom: 0.625rem; flex-wrap: wrap; }

.listing-card .card-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.125rem;
    color: var(--text);
}
.listing-card .hostname {
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
}
.listing-card .card-tagline {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.375rem;
    letter-spacing: 0.01em;
}
.listing-card .card-desc {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.55;
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.listing-card .card-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    gap: 0.75rem;
}
.listing-card .price {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1;
}
.offer-types { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.tag {
    display: inline-block;
    padding: 0.1875rem 0.5rem;
    border-radius: var(--r-full);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.tag-bid { background: rgba(8,145,178,0.1); color: var(--bid); }
.tag-buy { background: rgba(5,150,105,0.1); color: var(--buy); }
.tag-lease { background: rgba(2,132,199,0.1); color: var(--lease); }
.tag-rent { background: rgba(168,85,247,0.1); color: #8b5cf6; }
.tag-featured { background: var(--primary-soft); color: var(--primary); }

/* Category tags */
.tag-software { background: rgba(59,130,246,0.1); color: #3b82f6; }
.tag-saas { background: rgba(16,185,129,0.1); color: #10b981; }
.tag-source_code,.tag-source-code { background: rgba(245,158,11,0.1); color: #f59e0b; }
.tag-domain { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.tag-brand { background: rgba(236,72,153,0.1); color: #ec4899; }
.tag-template { background: rgba(6,182,212,0.1); color: #06b6d4; }
.tag-plugin { background: rgba(249,115,22,0.1); color: #f97316; }
.tag-dataset { background: rgba(34,197,94,0.1); color: #22c55e; }
.tag-design { background: rgba(244,63,94,0.1); color: #f43f5e; }
.tag-license { background: rgba(99,102,241,0.1); color: #6366f1; }
.tag-bundle { background: rgba(13,148,136,0.1); color: var(--primary); border: 1px solid var(--primary); }
.tag-other { background: var(--bg-alt); color: var(--text-secondary); border: 1px solid var(--border); }

[data-theme="dark"] .tag-bid { background: rgba(34,211,238,0.12); }
[data-theme="dark"] .tag-buy { background: rgba(52,211,153,0.12); }
[data-theme="dark"] .tag-lease { background: rgba(56,189,248,0.12); }
[data-theme="dark"] .tag-rent { background: rgba(168,85,247,0.12); }

/* Card metadata */
.card-meta { display: flex; gap: 0.375rem; flex-wrap: wrap; margin-top: 0.25rem; }
.meta-tag {
    font-size: 0.6rem;
    color: var(--text-muted);
    background: var(--bg-alt);
    padding: 0.125rem 0.375rem;
    border-radius: var(--r-full);
    text-transform: lowercase;
}
.card-tech {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Detail page metadata grid */
.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}
.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.75rem;
    background: var(--bg-alt);
    border-radius: var(--r-sm);
    border: 1px solid var(--border-light);
}
.meta-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.meta-value {
    font-size: 0.875rem;
    color: var(--text);
    font-weight: 500;
}
.meta-highlight {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}
.detail-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

/* Rent button */
.btn-rent { background: #8b5cf6; color: #fff; }
.btn-rent:hover { background: #7c3aed; }

.empty-state {
    color: var(--text-muted);
    text-align: center;
    padding: 4rem 2rem;
    font-size: 0.9375rem;
    grid-column: 1 / -1;
}
.pagination { text-align: center; margin-top: 2.5rem; }
.pagination a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--r-full);
    font-weight: 600;
    font-size: 0.875rem;
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: all 0.15s var(--ease);
}
.pagination a:hover { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--r-full);
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    text-decoration: none;
    line-height: 1.4;
    font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-secondary:hover { background: var(--surface); border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn-bid { background: var(--bid); color: #fff; }
.btn-bid:hover { filter: brightness(1.1); color: #fff; }
.btn-buy { background: var(--buy); color: #fff; }
.btn-buy:hover { filter: brightness(1.1); color: #fff; }
.btn-lease { background: var(--lease); color: #fff; }
.btn-lease:hover { filter: brightness(1.1); color: #fff; }

/* --- Forms (generic) --- */
label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.375rem;
    margin-top: 1.25rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="search"], textarea, select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    font-size: 0.9375rem;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
    transition: all 0.15s var(--ease);
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
textarea { resize: vertical; }
button[type="submit"] { margin-top: 1.5rem; width: 100%; }
.required { color: var(--danger); }
fieldset { border: 1.5px solid var(--border); border-radius: var(--r); padding: 1.25rem; margin: 1rem 0; }
fieldset legend { font-weight: 600; padding: 0 0.5rem; }
fieldset label { display: inline-flex; align-items: center; gap: 0.5rem; margin-right: 1.5rem; font-weight: normal; text-transform: none; letter-spacing: 0; }

/* --- Flash messages --- */
.flash { padding: 1rem 1.25rem; border-radius: var(--r-sm); margin-bottom: 1.25rem; font-size: 0.875rem; font-weight: 500; }
.flash-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.flash-info { background: var(--primary-soft); color: var(--primary); border: 1px solid var(--primary-glow); }
.flash-success { background: #ecfdf5; color: #166534; border: 1px solid #a7f3d0; }
[data-theme="dark"] .flash-error { background: rgba(220,38,38,0.1); border-color: rgba(220,38,38,0.2); }
[data-theme="dark"] .flash-info { background: var(--primary-soft); border-color: var(--primary-glow); }
[data-theme="dark"] .flash-success { background: rgba(5,150,105,0.1); border-color: rgba(5,150,105,0.2); }

/* --- Landing page --- */
.landing {
    max-width: 720px;
    margin: 0 auto;
    padding: 5rem 2rem;
    text-align: center;
}
.landing .hero h1 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}
.landing .domain-label { color: var(--text-muted); font-size: 1rem; font-weight: 500; margin-bottom: 1.5rem; }
.landing .description { max-width: 540px; margin: 0 auto 2.5rem; color: var(--text-secondary); line-height: 1.7; }
.landing .pricing { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.price-tag {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    padding: 1.25rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.2s var(--ease);
}
.price-tag:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.price-tag .label { display: block; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--text-muted); margin-bottom: 0.375rem; }
.price-tag .amount { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; }
.landing .actions { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 3rem; }
.landing.pending, .landing.sold { padding-top: 6rem; }

/* --- Themes (per-listing) --- */
.theme-premium { max-width: 100%; padding: 0; }
.theme-premium .hero {
    background: linear-gradient(135deg, #042f2e 0%, #0d9488 50%, #06b6d4 100%);
    color: #fff; padding: 6rem 2rem 4rem; margin-bottom: 2.5rem;
}
.theme-premium .hero h1 { color: #fff; }
.theme-premium .domain-label { color: rgba(255,255,255,0.7); }
.theme-premium .description { color: rgba(255,255,255,0.8); }
.theme-premium .pricing { max-width: 720px; margin: 0 auto 2rem; }
.theme-premium .price-tag { border: 2px solid var(--primary); }
.theme-premium .price-tag .amount { color: var(--primary); }
.theme-premium .actions { max-width: 720px; margin: 0 auto 3rem; }
.theme-premium .assets { max-width: 720px; margin: 0 auto; padding: 0 2rem; }

.theme-dark {
    background: #09090b; color: #e4e4e7;
    max-width: 100%; padding: 5rem 2rem; min-height: 100vh;
}
.theme-dark .hero h1 { color: #fff; }
.theme-dark .domain-label { color: #71717a; }
.theme-dark .description { color: #a1a1aa; }
.theme-dark .price-tag { background: #18181b; border-color: #27272a; color: #e4e4e7; }
.theme-dark .price-tag .label { color: #71717a; }
.theme-dark .price-tag .amount { color: #2dd4bf; }
.theme-dark .btn-bid { background: #0891b2; }
.theme-dark .btn-buy { background: #059669; }
.theme-dark .btn-lease { background: #0284c7; }
.theme-dark .assets { color: #e4e4e7; }
.theme-dark .asset-item { border-color: #27272a; background: #18181b; }
.theme-dark .asset-type { color: #71717a; }

.trust-footer { text-align: center; padding: 2rem; color: var(--text-muted); font-size: 0.8125rem; }

/* --- Assets --- */
.assets { text-align: left; margin-top: 3rem; }
.assets h2 { margin-bottom: 1rem; font-weight: 700; font-size: 1.125rem; }
.asset-list { list-style: none; }
.asset-item {
    display: flex; gap: 1rem; padding: 1rem; border: 1px solid var(--border);
    border-radius: var(--r-sm); margin-bottom: 0.5rem; align-items: center;
    transition: all 0.15s var(--ease);
}
.asset-item:hover { border-color: var(--primary); background: var(--primary-soft); }
.asset-img { width: 48px; height: 48px; object-fit: contain; border-radius: var(--r-sm); }
.asset-type { font-size: 0.6875rem; text-transform: uppercase; color: var(--text-muted); font-weight: 700; letter-spacing: 0.04em; }

/* --- Listing detail --- */
.detail-back {
    max-width: var(--max-w); margin: 0 auto; padding: 1.25rem 2rem 0;
}
.detail-back a {
    font-size: 0.8125rem; color: var(--text-muted); text-decoration: none; font-weight: 500;
    display: inline-flex; align-items: center; gap: 0.375rem;
    transition: color 0.15s var(--ease);
}
.detail-back a:hover { color: var(--primary); }

/* Detail hero image */
.detail-hero {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}
.detail-hero img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
}

.listing-detail {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2.5rem;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 1.5rem 2rem 4rem;
    align-items: start;
}

.detail-main { min-width: 0; }

.detail-header { margin-bottom: 2rem; }
.detail-header .tag, .detail-header .meta-tag {
    font-size: 0.6875rem; margin-bottom: 0.75rem; display: inline-block;
}
.detail-header h1 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700; font-size: 2.25rem; letter-spacing: -0.035em;
    line-height: 1.15; margin-bottom: 0.375rem; color: var(--text);
}
.detail-domain {
    color: var(--text-muted); font-size: 0.9375rem; margin-bottom: 0.25rem;
}
.detail-tagline {
    color: var(--text-secondary); font-size: 1rem; line-height: 1.5;
    margin-top: 0.5rem;
}

.detail-section { margin-bottom: 2rem; }
.detail-section h2 {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.75rem;
}
.detail-section p {
    color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.7;
}

/* Sidebar pricing card */
.detail-sidebar { position: sticky; top: 5rem; }
.detail-pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-lg);
}
.detail-price-label {
    font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.25rem;
}
.detail-price {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 2.25rem; font-weight: 700; letter-spacing: -0.04em;
    color: var(--text); line-height: 1.1; margin-bottom: 0.75rem;
}
.detail-price-note {
    font-size: 0.8125rem; color: var(--text-secondary); margin-bottom: 0.375rem;
}
.detail-actions {
    display: flex; flex-direction: column; gap: 0.5rem;
    margin-top: 1.25rem;
}
.detail-btn {
    display: block; width: 100%; text-align: center;
    padding: 0.75rem 1.5rem !important; font-size: 0.875rem !important;
    border-radius: var(--r) !important;
}
.detail-offer-summary {
    display: flex; gap: 0.375rem; justify-content: center;
    margin-top: 1rem; padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

/* Detail assets section */
.listing-detail .assets {
    margin-top: 0; margin-bottom: 2rem;
}
.listing-detail .assets h2 {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.75rem;
}

@media (max-width: 860px) {
    .listing-detail {
        grid-template-columns: 1fr;
        padding: 1rem 1rem 3rem;
    }
    .detail-sidebar { position: static; }
    .detail-header h1 { font-size: 1.75rem; }
    .detail-price { font-size: 2rem; }
}

/* --- Auth forms --- */
.auth-form-container {
    max-width: 420px; margin: 4rem auto; padding: 2.5rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-xl); box-shadow: var(--shadow-xl);
}
.auth-form-container h1 { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; font-size: 1.5rem; letter-spacing: -0.03em; margin-bottom: 0.25rem; }
.auth-form-container .auth-subtitle { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 1rem; }
.auth-alt { text-align: center; margin-top: 2rem; color: var(--text-muted); font-size: 0.875rem; }
.auth-alt a { font-weight: 600; }

/* --- Inquiry form --- */
.inquiry-form-container {
    max-width: 540px; margin: 4rem auto; padding: 2.5rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-xl); box-shadow: var(--shadow-xl);
}
.inquiry-form-container h1 { margin-bottom: 1rem; font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.03em; }

/* --- Account --- */
.account { max-width: var(--max-w); margin: 0 auto; padding: 3rem 2rem; }
.account h1 { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 0.25rem; }
.account-email { color: var(--text-muted); margin-bottom: 2rem; }
.inquiry-history h2 { margin-bottom: 1rem; font-weight: 700; }
.inquiry-list { display: flex; flex-direction: column; gap: 0.75rem; }
.inquiry-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
    padding: 1.25rem; box-shadow: var(--shadow-xs); transition: all 0.15s var(--ease);
}
.inquiry-card:hover { box-shadow: var(--shadow); }
.inquiry-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.inquiry-card time { font-size: 0.8125rem; color: var(--text-muted); }
.account-actions { margin-top: 2rem; }

/* --- Status badges --- */
.status-badge { display: inline-block; padding: 0.25rem 0.625rem; border-radius: var(--r-full); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.02em; }
.status-new { background: #dbeafe; color: #1e40af; }
.status-read { background: #f1f5f9; color: #475569; }
.status-replied { background: #fef3c7; color: #92400e; }
.status-accepted { background: #d1fae5; color: #065f46; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-active { background: #d1fae5; color: #065f46; }
.status-unlisted { background: #f1f5f9; color: #475569; }
.status-paused { background: #fef3c7; color: #92400e; }
.status-sold { background: #dbeafe; color: #1e40af; }
.status-leased { background: #ccfbf1; color: #0f766e; }

/* --- Admin --- */
body.admin {
    display: flex; min-height: 100vh; background: var(--bg-alt);
    overflow: hidden; height: 100vh;
}
.admin-sidebar {
    width: var(--sidebar-w); background: #111113; color: #fff;
    padding: 0; display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 50;
    border-right: 1px solid rgba(255,255,255,0.06);
}
.sidebar-brand {
    padding: 1.25rem 1.25rem 1rem; height: 60px;
    display: flex; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-brand .logo {
    color: #fff; display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 1.125rem; font-weight: 800; font-family: 'Space Grotesk', 'Inter', sans-serif;
    letter-spacing: -0.02em;
}
.sidebar-brand .logo-icon { width: 24px; height: 24px; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; padding: 0.75rem; overflow-y: auto; }
.sidebar-link {
    color: #a1a1aa; padding: 0.5rem 0.75rem; border-radius: 8px;
    transition: all 0.15s var(--ease); font-weight: 500; font-size: 0.8125rem;
    display: flex; align-items: center; gap: 0.625rem;
    text-decoration: none; position: relative;
}
.sidebar-link:hover { background: rgba(255,255,255,0.07); color: #fff; text-decoration: none; }
.sidebar-icon { width: 20px; height: 20px; flex-shrink: 0; }
.sidebar-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: var(--primary); color: #fff;
    font-size: 0.6875rem; font-weight: 700; margin-left: auto;
}
.sidebar-footer {
    margin-top: auto; padding: 0.75rem; border-top: 1px solid rgba(255,255,255,0.06);
    display: flex; flex-direction: column; gap: 2px;
}
.sidebar-footer .sidebar-link { color: #71717a; font-size: 0.8125rem; }
.sidebar-footer .sidebar-link:hover { color: #fff; }
.sidebar-footer .logout-link { color: #ef4444 !important; }
.sidebar-footer .logout-link:hover { background: rgba(239,68,68,0.1) !important; color: #ef4444 !important; }

/* Admin main content area */
.admin-main {
    margin-left: var(--sidebar-w);
    flex: 1; min-width: 0;
    display: flex; flex-direction: column;
    height: 100vh; overflow: hidden;
}
.admin-topbar {
    height: 60px; min-height: 60px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 2rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.admin-breadcrumb {
    display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem;
}
.admin-breadcrumb a {
    color: var(--text-muted); font-weight: 600; text-decoration: none;
    transition: color 0.15s;
}
.admin-breadcrumb a:hover { color: var(--text); }
.admin-breadcrumb .bc-sep { color: var(--text-muted); opacity: 0.5; }
.admin-breadcrumb span:last-child { color: var(--text); font-weight: 600; }

.admin-content {
    flex: 1; overflow-y: auto; padding: 2rem 2.5rem 3rem; min-width: 0;
}
.admin-content form { max-width: 720px; }
.admin-content form button[type="submit"] { width: auto; margin-top: 1.5rem; }

/* Page header */
.page-header {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
    margin-bottom: 2rem;
}
.page-header h1 {
    font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 800;
    letter-spacing: -0.03em; font-size: 1.75rem; margin: 0;
}
.page-subtitle {
    color: var(--text-muted); font-size: 0.8125rem; margin-top: 0.25rem;
}
.btn-icon {
    display: inline-flex; align-items: center; gap: 0.375rem;
}

/* Section containers */
.admin-section {
    margin-top: 2rem;
}
.section-header {
    margin-bottom: 1rem;
}
.section-header h2 {
    font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700;
    font-size: 1.125rem; letter-spacing: -0.02em; margin: 0;
}

/* Stats grid (redesigned) */
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem; margin-bottom: 0.5rem;
}
.stat-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
    padding: 1.25rem 1.5rem;
    display: flex; align-items: center; gap: 1rem;
    box-shadow: var(--shadow-xs);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative; overflow: hidden;
}
.stat-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px; border-radius: 0 999px 999px 0;
    background: var(--primary); opacity: 0;
    transition: opacity 0.15s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card:hover::before { opacity: 1; }
.stat-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.stat-icon-primary { background: rgba(20,184,166,0.12); color: var(--primary); }
.stat-icon-success { background: rgba(34,197,94,0.12); color: #22c55e; }
.stat-icon-warning { background: rgba(234,179,8,0.12); color: #eab308; }
.stat-icon-info { background: rgba(59,130,246,0.12); color: #3b82f6; }
.stat-number {
    display: block; font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1;
    font-variant-numeric: tabular-nums;
}
.stat-label {
    display: block; font-size: 0.6875rem; color: var(--text-muted);
    margin-top: 0.125rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Category grid */
.cat-grid {
    display: flex; flex-wrap: wrap; gap: 0.75rem;
}
.cat-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
    padding: 0.75rem 1.25rem; display: flex; align-items: center; gap: 0.75rem;
    transition: all 0.15s var(--ease);
}
.cat-card:hover { box-shadow: var(--shadow-xs); transform: translateY(-1px); }
.cat-count {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

/* Action grid (quick actions) */
.action-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}
.action-card {
    display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
    padding: 1.5rem 1rem; border-radius: var(--r); background: var(--surface);
    border: 1px solid var(--border); text-decoration: none;
    color: var(--text-secondary); font-size: 0.8125rem; font-weight: 600;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}
.action-card:hover {
    color: var(--primary); background: var(--primary-soft);
    border-color: var(--primary); transform: translateY(-2px);
    box-shadow: var(--shadow); text-decoration: none;
}

/* Listing rows (replaces table) */
.listing-rows {
    display: flex; flex-direction: column; gap: 0.5rem;
}
.listing-row {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.25rem; border-radius: var(--r);
    background: var(--surface); border: 1px solid var(--border);
    transition: all 0.15s var(--ease);
}
.listing-row:hover { background: var(--primary-soft); border-color: var(--primary); }
.listing-row-img {
    width: 56px; height: 56px; border-radius: 8px;
    object-fit: cover; flex-shrink: 0;
}
.listing-row-img-placeholder {
    background: linear-gradient(135deg, var(--bg-alt), var(--border));
}
.listing-row-info { flex: 1; min-width: 0; }
.listing-row-top {
    display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.listing-row-title {
    font-weight: 700; font-size: 0.9375rem; color: var(--text);
    text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.listing-row-title:hover { color: var(--primary); }
.listing-row-meta {
    display: flex; align-items: center; gap: 0.375rem; margin-top: 0.375rem;
    flex-wrap: wrap;
}
.listing-row-end {
    display: flex; align-items: center; gap: 1rem; flex-shrink: 0;
}
.listing-row-price {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1rem; font-weight: 700; white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.listing-row-actions { display: flex; gap: 0.375rem; }

/* Empty state */
.empty-state {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 4rem 2rem; text-align: center;
    border-radius: var(--r); background: var(--surface);
    border: 1px solid var(--border);
}
.empty-state h3 {
    margin-top: 1rem; font-size: 1.25rem; font-weight: 700;
}
.empty-state p {
    color: var(--text-muted); font-size: 0.875rem; margin-top: 0.5rem;
}

/* Admin login */
.admin-login-body {
    background: var(--bg-alt); min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 2rem;
}
.admin-login-wrapper {
    width: 100%; max-width: 400px;
}
.admin-login-brand {
    text-align: center; margin-bottom: 2.5rem;
}
.admin-login-brand a {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.5rem; font-weight: 800; color: var(--text);
    text-decoration: none; letter-spacing: -0.02em;
}
.admin-login-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-xl); padding: 2rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
[data-theme="dark"] .admin-login-card {
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.08);
}
.admin-login-card h1 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em;
    text-align: center; margin-bottom: 0.25rem;
}
.admin-login-subtitle {
    text-align: center; color: var(--text-muted); font-size: 0.875rem;
    margin-bottom: 2rem;
}
.admin-login-form { display: flex; flex-direction: column; gap: 1.25rem; }
.admin-login-form .form-group label {
    display: block; font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.5rem;
}
.admin-login-form input {
    width: 100%; padding: 0.75rem 1rem; border-radius: 999px;
    border: 1.5px solid var(--border); background: var(--bg-alt);
    font-size: 0.875rem; font-family: inherit; color: var(--text);
    transition: all 0.15s;
}
.admin-login-form input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.btn-login {
    width: 100%; padding: 0.875rem; border-radius: 999px; margin-top: 0.5rem;
    font-size: 0.875rem; font-weight: 700;
}
.admin-login-footer {
    text-align: center; margin-top: 1.5rem; font-size: 0.8125rem;
}
.admin-login-footer a {
    color: var(--text-muted); text-decoration: none; font-weight: 500;
}
.admin-login-footer a:hover { color: var(--primary); }

/* Toast system */
#toast-container {
    position: fixed; top: 1.25rem; right: 1.25rem; z-index: 100;
    display: flex; flex-direction: column; gap: 0.5rem;
    pointer-events: none;
}
.toast {
    pointer-events: auto; padding: 0.625rem 1.25rem;
    border-radius: 999px; font-size: 0.8125rem; font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: toastIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
    transition: all 0.3s ease;
}
.toast-success { background: var(--primary); color: #fff; }
.toast-error { background: #ef4444; color: #fff; }
.toast-info { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
@keyframes toastIn {
    from { opacity: 0; transform: translateX(20px) scale(0.95); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

.admin-table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
    overflow: hidden; box-shadow: var(--shadow-xs);
}
.admin-table th, .admin-table td { padding: 0.875rem 1rem; text-align: left; border-bottom: 1px solid var(--border-light); }
.admin-table th {
    background: var(--bg-alt); font-weight: 700; font-size: 0.6875rem;
    text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr { transition: background 0.1s; }
.admin-table tbody tr:hover { background: var(--primary-soft); }
.status-select { width: auto; padding: 0.25rem 0.5rem; font-size: 0.8125rem; }

.text-muted { color: var(--text-muted); font-size: 0.8125rem; }

/* --- HTMX --- */
.htmx-indicator { opacity: 0; transition: opacity 200ms ease-in; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }

/* --- CTA Section --- */
.cta-section {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 4rem 2rem 0;
}
.cta-inner {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 2.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}
.cta-inner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--buy));
}
.cta-eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.25rem;
}
.cta-inner h2 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.25rem;
    color: var(--text);
}
.cta-inner > div > p:last-child {
    color: var(--text-secondary);
    font-size: 0.875rem;
}
.cta-inner .btn {
    flex-shrink: 0;
    padding: 0.75rem 1.75rem;
    font-size: 0.9375rem;
}

/* --- Footer --- */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}
.site-footer .logo { color: #fff; }
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}
.footer-brand .logo {
    display: inline-flex;
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
}
.footer-brand p {
    color: var(--footer-muted);
    font-size: 0.8125rem;
    line-height: 1.7;
    max-width: 300px;
}
.footer-col h4 {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--footer-muted);
    margin-bottom: 1rem;
}
.footer-col ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.footer-col li { margin-bottom: 0.5rem; list-style: none !important; }
.footer-col a {
    color: #a1a1aa;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: color 0.15s var(--ease);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
    max-width: var(--max-w);
    margin: 2rem auto 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--footer-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--footer-muted);
}
.footer-bottom a { color: #a1a1aa; }
.footer-bottom a:hover { color: #fff; }

/* Minimal footer (for non-catalog pages) */
.site-footer-minimal {
    text-align: center; padding: 2.5rem 2rem; color: var(--text-muted); font-size: 0.8125rem;
    border-top: 1px solid var(--border-light); margin-top: 4rem;
}
.site-footer-minimal a { color: var(--text-muted); font-weight: 500; }
.site-footer-minimal a:hover { color: var(--primary); }
.site-footer-minimal p + p { margin-top: 0.25rem; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .listing-grid { grid-template-columns: 1fr; }
    .landing .hero h1 { font-size: 2rem; }
    .theme-premium .hero h1 { font-size: 2.25rem; }
    .admin-sidebar { display: none; }
    .admin-main { margin-left: 0; }
    .admin-topbar { padding: 0 1rem; }
    .admin-content { padding: 1.5rem 1rem; }
    .page-header { flex-direction: column; gap: 0.75rem; }
    .listing-row { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .listing-row-end { width: 100%; justify-content: space-between; }
    .listing-row-img { display: none; }
    .catalog-controls { flex-direction: column; align-items: stretch; }
    .catalog-controls .search-input { max-width: 100% !important; }
    .catalog-controls .filter-select { width: 100% !important; }
    .auth-form-container, .inquiry-form-container { margin: 2rem 1rem; padding: 1.5rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
    .cta-inner { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
    .hero-section { padding: 3rem 1.5rem 2.5rem; }
}

/* --- Nav badge --- */
.badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--danger); color: #fff; font-size: 0.625rem; font-weight: 700;
    min-width: 1.25rem; height: 1.25rem; padding: 0 0.375rem; border-radius: var(--r-full);
    margin-left: 0.5rem; line-height: 1;
}

/* --- Misc admin features --- */
.inquiry-actions { min-width: 240px; }
.inquiry-detail { margin-top: 0.375rem; font-size: 0.8125rem; }
.inquiry-detail summary { cursor: pointer; color: var(--primary); font-weight: 600; }
.inquiry-detail p { margin-top: 0.25rem; color: var(--text-muted); }
.notes-form { display: flex; gap: 0.375rem; margin-top: 0.375rem; }
.notes-input { flex: 1; padding: 0.25rem 0.5rem; font-size: 0.8125rem; border: 1px solid var(--border); border-radius: var(--r-sm); }

.bulk-import-form { max-width: 600px; }
.bulk-textarea { width: 100%; font-family: 'SF Mono','Fira Code',monospace; font-size: 0.8125rem; padding: 0.875rem; border: 1.5px solid var(--border); border-radius: var(--r-sm); resize: vertical; line-height: 1.6; background: var(--surface); color: var(--text); }
.form-actions { display: flex; gap: 0.75rem; margin-top: 1.25rem; }

.counter-offer-container { max-width: 540px; margin: 4rem auto; padding: 2.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-xl); }
.counter-offer-container h1 { margin-bottom: 1rem; font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.03em; }
.counter-message { font-style: italic; color: var(--text-muted); margin: 1rem 0; padding: 1rem; background: var(--bg-alt); border-radius: var(--r-sm); }
.counter-actions { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1.5rem; }
.counter-form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; }

.lease-form { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.lease-date { width: auto; padding: 0.25rem 0.5rem; font-size: 0.8125rem; }
.expiry-list { list-style: disc; padding-left: 1.5rem; }
.expiry-list li { padding: 0.25rem 0; list-style: disc; }

.invite-form .form-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem; }
@media (max-width: 768px) { .invite-form .form-row { grid-template-columns: 1fr; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.auction-section { background: var(--surface); border: 2px solid var(--bid); border-radius: var(--r); padding: 2rem; margin: 1.5rem auto; max-width: 480px; text-align: center; box-shadow: var(--shadow-md); }
.auction-section h2 { color: var(--bid); margin-bottom: 0.75rem; font-weight: 700; }
.auction-ends { margin-bottom: 0.5rem; }

/* --- Hero search bar (if used) --- */
.hero-search {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
}
.hero-search input[type="search"] {
    width: 100%;
    padding: 0.875rem 3.25rem 0.875rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: var(--r-full);
    font-size: 1rem;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-lg);
    transition: all 0.25s var(--ease);
}
.hero-search input[type="search"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-xl), 0 0 0 4px var(--primary-glow);
}
.hero-search input[type="search"]::placeholder { color: var(--text-muted); }
.hero-search svg {
    position: absolute;
    right: 1.125rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}
