:root {
    --bg: #f5f7fb;
    --panel: #ffffff;
    --text: #131722;
    --muted: #6d7482;
    --line: #e4e8ef;
    --primary: #155eef;
    --primary-dark: #0f46c7;
    --accent: #f59e0b;
    --danger: #b34141;
    --shadow: 0 18px 45px rgba(18, 31, 56, .08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Vazirmatn, Tahoma, Arial, sans-serif;
    line-height: 1.7;
}

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

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

.shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 42px;
}

.market-head,
.domain-hero,
.offer-panel,
.empty-state {
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.market-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: end;
    padding: 26px 28px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(21, 94, 239, .10), transparent 46%),
        linear-gradient(315deg, rgba(245, 158, 11, .12), transparent 42%),
        var(--panel);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-dark);
    font-weight: 800;
}

.brand-logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: min(180px, 52vw);
    object-fit: contain;
    border-radius: 8px;
}

.brand-logo-sm {
    height: 32px;
    max-width: 140px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-family: Arial, sans-serif;
}

h1,
h2,
p {
    margin-top: 0;
}

.market-head h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4.5vw, 52px);
    line-height: 1.15;
}

.market-head p,
.offer-panel p,
.empty-state p,
.hero-description {
    color: var(--muted);
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(100px, 1fr));
    gap: 10px;
    min-width: 360px;
}

.stats-strip span {
    display: grid;
    gap: 3px;
    padding: 14px;
    background: #f7f9fc;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--muted);
}

.stats-strip strong {
    color: var(--text);
    font-size: 22px;
}

.filter-bar {
    margin: 18px 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.field,
.check-field {
    display: grid;
    gap: 6px;
}

.field-wide {
    grid-column: span 2;
}

.field label,
.check-field {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfcff;
    color: var(--text);
    outline: 0;
}

input,
select {
    min-height: 42px;
    padding: 0 12px;
}

textarea {
    resize: vertical;
    padding: 10px 12px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 123, 87, .13);
}

.check-field {
    align-content: end;
    grid-template-columns: auto 1fr;
    align-items: center;
    min-height: 68px;
}

.check-field input {
    width: 18px;
    height: 18px;
    min-height: 0;
}

.filter-actions,
.hero-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-actions {
    align-self: end;
}

.primary-button,
.ghost-button,
.card-bottom a,
.pagination a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 800;
}

.primary-button {
    background: var(--primary);
    color: #fff;
}

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

.ghost-button,
.pagination a {
    background: #fff;
    color: var(--primary-dark);
    border-color: var(--line);
}

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

.filter-sidebar {
    position: sticky;
    top: 16px;
    display: grid;
    gap: 14px;
}

.filter-sidebar form,
.sidebar-block,
.list-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.filter-sidebar form {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.filter-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.filter-title strong,
.sidebar-block h2 {
    font-size: 15px;
    margin: 0;
}

.filter-title a {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.switch-field {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 2px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.switch-field input {
    width: 18px;
    height: 18px;
    min-height: 0;
}

.sidebar-block {
    padding: 16px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.quick-links a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f3f6fb;
    color: #303846;
    font-size: 12px;
    font-weight: 700;
}

.quick-links a:hover {
    background: #e8efff;
    color: var(--primary-dark);
}

.quick-links a.is-active {
    background: var(--primary);
    color: #fff;
}

.cat-locked {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f7f9fc;
    color: var(--text);
    font-size: 14px;
}

.cat-locked a {
    color: var(--primary-dark);
    font-weight: 700;
}

.list-panel {
    overflow: hidden;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.toolbar strong {
    color: var(--text);
}

.domain-table-wrap {
    overflow-x: auto;
}

.domain-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    background: #fff;
}

.domain-table th,
.domain-table td {
    padding: 15px 16px;
    border-bottom: 1px solid var(--line);
    text-align: right;
    vertical-align: middle;
    white-space: nowrap;
}

.domain-table th {
    background: #f8fafc;
    color: #475467;
    font-size: 12px;
    font-weight: 800;
}

.domain-table tr:hover td {
    background: #fbfdff;
}

.table-domain {
    display: inline-block;
    direction: ltr;
    min-width: 150px;
    color: #101828;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 800;
    text-align: left;
}

.price-cell {
    color: #067647;
}

.price-link {
    color: #067647;
    font-weight: 700;
    white-space: nowrap;
}

.price-link:hover {
    color: #045c37;
    text-decoration: underline;
}

.contact-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    background: #eff8ff;
    color: var(--primary-dark);
    font-weight: 800;
}

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

.domain-card {
    position: relative;
    min-height: 190px;
    display: grid;
    align-content: space-between;
    gap: 16px;
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.domain-card:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 123, 87, .36);
    box-shadow: var(--shadow);
}

.domain-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.domain-card-avatar,
.table-domain-avatar,
.domain-avatar {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    flex-shrink: 0;
}

.domain-avatar-lg {
    width: 72px;
    height: 72px;
    border-radius: 18px;
}

.domain-card-titles {
    min-width: 0;
    flex: 1;
}

.domain-card-titles .domain-name {
    display: block;
}

.domain-card-titles p {
    margin: 4px 0 0;
}

.table-domain-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-domain-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.domain-name {
    direction: ltr;
    text-align: left;
    font-family: Arial, sans-serif;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.domain-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.mini-pill,
.pill {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(212, 154, 37, .16);
    color: #8c5e08;
    font-size: 12px;
    font-weight: 800;
}

.card-meta,
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.card-meta span,
.chips span {
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef4f1;
    color: var(--muted);
    font-size: 12px;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.card-bottom strong {
    color: var(--primary-dark);
}

.card-bottom a {
    min-height: 36px;
    padding-inline: 12px;
    background: #f4faf7;
    color: var(--primary-dark);
    border-color: #d1e5dc;
}

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.pagination a {
    min-width: 42px;
}

.pagination .active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.detail-shell {
    width: min(980px, calc(100% - 32px));
}

.detail-brand {
    margin-bottom: 16px;
}

.domain-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: visible;
    padding: clamp(28px, 6vw, 62px);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(21, 94, 239, .12), transparent 42%),
        linear-gradient(315deg, rgba(16, 185, 129, .12), transparent 38%),
        var(--panel);
}

.domain-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(15, 123, 87, .12), transparent 30%),
        repeating-linear-gradient(135deg, rgba(23, 33, 29, .035) 0 1px, transparent 1px 14px);
    pointer-events: none;
}

.domain-hero > * {
    position: relative;
}

.domain-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin-bottom: 6px;
}

.domain-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 6px;
}

.domain-logo {
    max-width: min(280px, 70vw);
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.domain-head .dt-kicker {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.domain-head h1 {
    direction: ltr;
    unicode-bidi: isolate;
    width: 100%;
    max-width: 100%;
    margin: 0;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: clamp(28px, 7vw, 64px);
    line-height: 1.15;
    overflow-wrap: break-word;
    word-break: break-word;
}

.domain-head .fa-name {
    margin: 0;
    color: var(--muted);
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 700;
    line-height: 1.5;
}

.fa-name {
    color: var(--muted);
    font-size: 20px;
}

.hero-price {
    margin: 20px 0 0;
    color: var(--primary-dark);
    font-size: clamp(24px, 5vw, 42px);
    font-weight: 900;
}

.is-sold .hero-price {
    color: var(--danger);
}

.hero-description {
    width: 100%;
    max-width: min(760px, 100%);
    margin: 20px auto 0;
    font-size: 16px;
    line-height: 1.95;
    text-align: right;
    overflow-wrap: break-word;
    word-break: normal;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    width: 100%;
}

.domain-hero .chips {
    justify-content: center;
    margin-top: 16px;
}

.offer-panel {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 24px;
    margin-top: 18px;
    padding: 24px;
    border-radius: 18px;
}

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

.offer-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.span-2 {
    grid-column: span 2;
}

.hp {
    position: absolute;
    left: -9999px;
}

.empty-state {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 54px 24px;
    border-radius: 18px;
    text-align: center;
}

.empty-state h1,
.empty-state h2 {
    margin-bottom: 0;
}

.success {
    border-color: rgba(15, 123, 87, .32);
}

.site-footer {
    width: min(1240px, calc(100% - 32px));
    margin: 28px auto 24px;
    padding: 0;
    color: rgba(255, 255, 255, .72);
    background: #0b0f19;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(11, 15, 25, .18);
}

.site-footer-inner {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    gap: 28px;
    padding: 28px 28px 22px;
    box-sizing: border-box;
}

.footer-brand p {
    margin: 12px 0 0;
    max-width: 320px;
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255, 255, 255, .58);
}

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

.footer-col strong {
    color: #fff;
    font-size: 13px;
    margin-bottom: 4px;
}

.footer-col a {
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    font-weight: 500;
}

.footer-col a:hover {
    color: #fff;
}

.site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding: 14px 28px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    box-sizing: border-box;
    font-size: 12px;
    color: rgba(255, 255, 255, .45);
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, .55);
    font-weight: 600;
}

.footer-bottom-links a:hover {
    color: #fff;
}

.site-footer-domain {
    margin-top: 36px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.footer-links a {
    color: var(--primary-dark);
    font-weight: 600;
}

.site-topbar {
    width: min(1240px, calc(100% - 32px));
    margin: 18px auto 0;
    background: #0b0f19;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(11, 15, 25, .22);
}

.site-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
}

.brand-on-dark {
    color: #fff;
    flex-shrink: 0;
}

.brand-on-dark .brand-mark {
    background: var(--primary);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px 4px;
    margin: 0;
    font-size: 14px;
}

.site-nav a {
    color: rgba(255, 255, 255, .78);
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 10px;
    transition: background .15s ease, color .15s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .2s ease, opacity .2s ease;
}

.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);
}

.static-page {
    margin-top: 0;
    padding: 28px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.static-page h1 {
    margin-bottom: 12px;
}

.static-list,
.static-steps {
    padding-right: 1.2rem;
    color: var(--muted);
}

.static-steps li {
    margin-bottom: 16px;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 16px;
    background: #fbfcff;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
}

.contact-channels {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.contact-chip {
    display: grid;
    gap: 2px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f7f9fc;
    min-width: 140px;
}

.contact-form-panel {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.captcha-img {
    height: 44px;
    border-radius: 8px;
    border: 1.5px solid var(--line);
    cursor: pointer;
    background: #f5f7fc;
    user-select: none;
}

.captcha-field input[type="number"] {
    max-width: 170px;
}

.alert-success {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(15, 123, 87, .1);
    border: 1px solid rgba(15, 123, 87, .25);
    color: #0f7b57;
}

.login-shell {
    min-height: calc(100vh - 80px);
    display: grid;
    place-items: center;
    padding: 28px;
}

.login-panel {
    width: min(420px, 100%);
    display: grid;
    gap: 14px;
    padding: 24px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.login-panel h1 {
    margin-bottom: 0;
    font-size: 24px;
}

.login-panel label,
.admin-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.alert-error {
    padding: 10px 12px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fff1f2;
    color: #b42318;
    font-size: 13px;
}

.admin-shell {
    width: min(1320px, calc(100% - 28px));
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    margin: 0 auto;
    padding: 24px 0 42px;
}

.admin-nav,
.admin-content,
.admin-stats span,
.admin-filter,
.admin-form {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.media-fieldset {
    margin: 0;
    padding: 16px;
    border: 1px dashed var(--line);
    border-radius: 14px;
}

.media-fieldset legend {
    padding: 0 8px;
    font-weight: 800;
}

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

.media-upload-card {
    display: grid;
    gap: 10px;
    align-content: start;
}

.media-preview {
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.media-preview-avatar {
    width: 72px;
    height: 72px;
    object-fit: cover;
}

.media-preview-logo {
    max-height: 64px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 720px) {
    .media-upload-grid {
        grid-template-columns: 1fr;
    }
}

.admin-nav {
    position: sticky;
    top: 16px;
    align-self: start;
    display: grid;
    gap: 22px;
    padding: 18px;
}

.admin-nav nav {
    display: grid;
    gap: 8px;
}

.admin-nav nav a {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 12px;
    color: #384152;
    font-weight: 800;
}

.admin-nav nav a:hover {
    background: #eef4ff;
    color: var(--primary-dark);
}

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

.admin-content {
    padding: 20px;
    overflow: hidden;
}

.admin-content h1 {
    margin-bottom: 18px;
    font-size: 26px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.admin-stats span {
    display: grid;
    gap: 2px;
    padding: 14px;
    color: var(--muted);
    font-size: 12px;
}

.admin-stats strong {
    color: var(--text);
    font-size: 22px;
}

.admin-filter {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr)) auto;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px;
    box-shadow: none;
}

.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.admin-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: right;
    vertical-align: top;
}

.admin-table th {
    background: #f8fafc;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

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

.admin-actions a,
.admin-actions button {
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--primary-dark);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.admin-actions button {
    color: #b42318;
}

.status-badge {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
}

.admin-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
    box-shadow: none;
}

.alert-success {
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    background: #f0fdf4;
    color: #166534;
    font-size: 13px;
}

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

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

.bulk-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fafc;
}

.switch-field.compact {
    margin: 0;
}

.stats-grid,
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.detail-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.detail-card h2,
.detail-card h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.section-subtitle {
    margin-top: 18px;
    font-size: 15px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    min-height: 160px;
    padding-top: 8px;
    overflow-x: auto;
}

.chart-bar {
    flex: 1 0 14px;
    max-width: 28px;
    display: grid;
    gap: 4px;
    align-content: end;
    text-align: center;
}

.chart-bar span {
    display: block;
    width: 100%;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, #4d84ff, var(--primary));
}

.chart-bar small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

.stat-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.stat-list div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px;
}

.stat-list dt {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.stat-list dd {
    margin: 0;
}

.status-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.status-badge.status-published { background: #ecfdf3; color: #067647; }
.status-badge.status-pending { background: #fff7ed; color: #c2410c; }
.status-badge.status-sold { background: #fef3f2; color: #b42318; }
.status-badge.status-unpublished,
.status-badge.status-archive { background: #f2f4f7; color: #475467; }
.status-badge.status-new { background: #eef4ff; color: var(--primary-dark); }
.status-badge.status-read { background: #f8fafc; color: #475467; }
.status-badge.status-replied { background: #ecfdf3; color: #067647; }
.status-badge.status-rejected { background: #fef3f2; color: #b42318; }
.status-badge.status-contact { background: #f5f3ff; color: #5b21b6; }
.status-badge.status-offer { background: #eff8ff; color: #175cd3; }

.page-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.admin-form-single {
    grid-template-columns: 1fr;
    padding: 0;
    margin-bottom: 14px;
}

.stack-actions {
    flex-direction: column;
    align-items: stretch;
}

.compact-table {
    min-width: 0;
}

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

.transfer-domain-picker {
    max-height: 360px;
    overflow: auto;
    margin-top: 8px;
}

.transfer-domain-picker table {
    margin: 0;
}

.admin-search {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
}

.offer-message {
    margin-top: 14px;
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
}

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

.parking-panel {
    margin-top: 14px;
}

.parking-panel .admin-filter {
    margin-bottom: 0;
}

@media (max-width: 1080px) {
    .admin-shell,
    .admin-stats,
    .admin-filter,
    .stats-grid,
    .detail-grid,
    .admin-stats-4,
    .stats-grid-3 {
        grid-template-columns: 1fr;
    }

    .admin-nav {
        position: static;
    }
}

@media (max-width: 980px) {
    .market-head,
    .offer-panel {
        grid-template-columns: 1fr;
    }

    .stats-strip {
        min-width: 0;
        width: 100%;
    }

    .market-layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        position: static;
        order: -1;
    }

    .field-wide,
    .span-2 {
        grid-column: span 2;
    }

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

    .nav-toggle {
        display: flex;
        order: 2;
    }

    .site-topbar-inner {
        flex-wrap: wrap;
        padding: 10px 14px;
    }

    .site-nav {
        display: none;
        width: 100%;
        order: 3;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 8px 0 4px;
        border-top: 1px solid rgba(255, 255, 255, .1);
    }

    .site-topbar.is-open .site-nav {
        display: flex;
    }

    .site-nav a {
        padding: 12px 14px;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .shell {
        width: min(100% - 20px, 1180px);
        padding-top: 14px;
    }

    .site-topbar {
        width: min(100% - 20px, 1180px);
        margin-top: 12px;
    }

    .market-head,
    .filter-sidebar form,
    .domain-hero,
    .offer-panel {
        padding: 16px;
    }

    .stats-strip,
    .domain-grid,
    .offer-form,
    .field-row {
        grid-template-columns: 1fr;
    }

    .field-wide,
    .span-2 {
        grid-column: auto;
    }

    .toolbar,
    .card-bottom,
    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .site-footer {
        width: min(100% - 20px, 1180px);
        margin: 20px auto 16px;
        border-radius: 14px;
    }

    .site-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 22px 16px;
        padding: 22px 18px 16px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .site-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 18px;
    }

    .filter-actions {
        grid-column: auto;
        flex-direction: column;
        align-items: stretch;
    }
}
