:root {
    --header-bg:   #1a1e24;
    --header-h:    60px;

    --bg:          #f2f3f5;
    --surface:     #ffffff;
    --surface-alt: #f7f8fa;

    --border:      #e0e2e7;
    --border-dark: #c8ccd4;

    --text:        #1a1e24;
    --text-sub:    #4a5060;
    --text-muted:  #8a919e;

    --accent:      #0a7ea4;   /* single teal accent */
    --accent-light:#e6f4f9;
    --accent-dark: #085f7a;

    --radius-sm:   6px;
    --radius:      10px;
    --radius-lg:   14px;

    --shadow-sm:   0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
    --shadow:      0 2px 8px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.06);
    --shadow-md:   0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.07);

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding-top: var(--header-h);
    min-height: 100vh;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.main-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: var(--header-bg);
	background:  var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.main-header h1 {
    font-size: 1.8rem;
	font-variant: small-caps;
	font-family:Georgia;
    font-weight: 600;
    color: #e6f4f9;
    letter-spacing: 0.15em;
	text-shadow: 1px 1px 2px #333;
}

.main-header a {text-decoration:none;}
.main-header a:hover h1 {color:white;}


/* ── Layout ── */
main {
    max-width: 1040px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* ── Section labels ── */
.section-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

/* ── Filter Bar ── */
#subject-filter {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.4rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

#subject-filter h2 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 0;
    margin-right: 0.5rem;
    white-space: nowrap;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.filter-options label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-sub);
    cursor: pointer;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    border: 1px solid var(--border-dark);
    background: var(--surface-alt);
    transition: all 0.15s ease;
    user-select: none;
}

.filter-options label:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.filter-options input[type="checkbox"] {
    accent-color: var(--accent);
    width: 13px; height: 13px;
    cursor: pointer;
}

/* ── Table ── */
#table-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

#domainTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

#domainTable thead {
    background: var(--surface-alt);
    border-bottom: 1px solid var(--border);
}

#domainTable th {
    padding: 12px 18px;
    text-align: left;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: color 0.15s;
}

#domainTable th:hover { color: var(--text-sub); }

#domainTable th .arrow { margin-left: 3px; }
#domainTable th.sorted-asc .arrow::after  { content: '↑'; color: var(--accent); }
#domainTable th.sorted-desc .arrow::after { content: '↓'; color: var(--accent); }

#domainTable tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.12s;
    animation: rowIn 0.25s ease both;
}

#domainTable tbody tr:last-child { border-bottom: none; }
#domainTable tbody tr:hover { background: var(--accent-light); }

@keyframes rowIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
#domainTable tbody tr:nth-child(1) { animation-delay: 0.02s; }
#domainTable tbody tr:nth-child(2) { animation-delay: 0.05s; }
#domainTable tbody tr:nth-child(3) { animation-delay: 0.08s; }
#domainTable tbody tr:nth-child(4) { animation-delay: 0.11s; }
#domainTable tbody tr:nth-child(5) { animation-delay: 0.14s; }

#domainTable tbody td {
    padding: 15px 18px;
    vertical-align: middle;
}

#domainTable tbody td a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.domain-name-cell {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
    transition: color 0.12s;
}
tr:hover .domain-name-cell { color: var(--accent); }

.price {
    font-weight: 600;
    color: var(--text-sub);
    font-variant-numeric: tabular-nums;
}

.contact-us {
    font-weight: 600;
    color: var(--accent);
    font-style: italic;
}

.category-pill {
    display: inline-block;
    padding: 0.22rem 0.65rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--surface-alt);
    color: var(--text-sub);
    border: 1px solid var(--border-dark);
}

/* ── Domain Detail Page ── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: opacity 0.15s;
}
.back-link:hover { opacity: 0.75; }

.domain-hero {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 2.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
    animation: fadeUp 0.35s ease both;
}

.domain-hero .domain-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: var(--accent-light);
    border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
    padding: 0.2rem 0.7rem;
    border-radius: 100px;
    margin-bottom: 0.9rem;
}

.domain-hero .domain-title {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.domain-hero .domain-description {
    color: var(--text-sub);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 750px;
}

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

.domain-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
    animation: fadeUp 0.35s 0.07s ease both;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

.stat-label {
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
    line-height: 1;
}

.stat-value.plain {
    font-size: 1rem;
    color: var(--text-sub);
    font-weight: 600;
}

/* ── Bid Form ── */
#bid-form-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
    animation: fadeUp 0.35s 0.12s ease both;
}

#bid-form-container h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.3rem;
}

#bid-form-container > p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-sub);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    background: var(--surface-alt);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9rem;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(10,126,164,0.1);
}

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

#bid-form-container button[type="submit"],
#bidForm button[type="submit"] {
    padding: 0.7rem 2rem;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: var(--shadow-sm);
    margin-top: 0.25rem;
}

#bid-form-container button[type="submit"]:hover:not(:disabled),
#bidForm button[type="submit"]:hover:not(:disabled) {
    background: var(--accent-dark);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}
#bid-form-container button[type="submit"]:active,
#bidForm button[type="submit"]:active { transform: translateY(0); }
#bid-form-container button[type="submit"]:disabled,
#bidForm button[type="submit"]:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── Related Domains ── */
#related-domains {
    animation: fadeUp 0.35s 0.16s ease both;
    margin-top: 1.75rem;
}

#related-domains h2 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

#related-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.85rem;
}

.related-domain-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.related-domain-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.related-domain-card a { text-decoration: none; color: inherit; }

.rel-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    display: block;
    margin-bottom: 0.3rem;
    transition: color 0.12s;
}
.related-domain-card:hover .rel-name { color: var(--accent); }

.rel-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: block;
}

/* ── Messages ── */
.error-message, .form-message {
    padding: 0.85rem 1.1rem;
    margin-top: 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.87rem;
}
.error-message        { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.form-message.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.form-message.error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ── Utility ── */
.loading-cell {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ── Footer ── */
footer {
    text-align: center;
    padding: 2rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}
footer a { color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
footer a:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 800px) {
	.main-header h1 {
		font-size: 1.2rem;
		letter-spacing: 0.05em;
	}
}


@media (max-width: 600px) {
    main { padding: 1.25rem 1rem 3rem; }
    .domain-hero { padding: 1.5rem; }
    #bid-form-container { padding: 1.25rem 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .domain-hero .domain-title { font-size: 1.6rem; }
}


