:root {
    --bg: #f4f7fb;
    --bg-soft: #eef3f9;
    --surface: #ffffff;
    --surface-alt: #f8fbff;
    --surface-dark: #0f172a;
    --surface-dark-2: #111c34;
    --text: #0f172a;
    --text-soft: #475569;
    --text-faint: #94a3b8;
    --line: #dbe4f0;
    --line-strong: #c7d4e5;
    --primary: #0f766e;
    --primary-strong: #115e59;
    --primary-soft: #e6fffb;
    --secondary: #f59e0b;
    --secondary-soft: #fff4db;
    --danger: #dc2626;
    --danger-soft: #fee2e2;
    --info: #2563eb;
    --info-soft: #dbeafe;
    --success: #059669;
    --success-soft: #d1fae5;
    --warning: #b45309;
    --warning-soft: #fef3c7;
    --shadow-sm: 0 10px 30px rgba(15, 23, 42, .06);
    --shadow-md: 0 18px 45px rgba(15, 23, 42, .10);
    --shadow-lg: 0 28px 70px rgba(15, 23, 42, .16);
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 28px;
    --container: min(1240px, calc(100% - 40px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, .10), transparent 28rem),
        radial-gradient(circle at bottom right, rgba(37, 99, 235, .08), transparent 30rem),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 48%, #f7f9fc 100%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

img {
    max-width: 100%;
}

.wrap {
    width: var(--container);
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 18px 0;
    background: rgba(9, 16, 30, .82);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(18px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
}

.brand::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--secondary), #f97316);
    box-shadow: 12px 0 0 var(--primary);
}

.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    padding: 5px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .18);
}

.brand:has(.brand-logo)::before {
    display: none;
}

.navlinks {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.navlinks a {
    padding: 11px 15px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .82);
    font-size: .95rem;
    font-weight: 600;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.navlinks a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .10);
    transform: translateY(-1px);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 54px;
    color: #fff;
    background:
        linear-gradient(115deg, rgba(7, 15, 28, .96) 0%, rgba(10, 20, 38, .88) 42%, rgba(15, 118, 110, .42) 100%),
        url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .12), transparent 24rem),
        radial-gradient(circle at 80% 30%, rgba(245, 158, 11, .18), transparent 18rem);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 120px;
    background: linear-gradient(180deg, transparent, rgba(244, 247, 251, .98));
}

.hero .wrap {
    position: relative;
    z-index: 1;
}

.hero-copy {
    max-width: 760px;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    line-height: .98;
    letter-spacing: -.04em;
}

.hero p {
    margin: 0;
    max-width: 680px;
    color: rgba(241, 245, 249, .92);
    font-size: 1.08rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-stats span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .16);
    color: rgba(255, 255, 255, .84);
    backdrop-filter: blur(10px);
}

.hero-stats strong {
    color: #fff;
}

.public-search-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 42px;
    padding: 0 4px;
}

.public-search-title strong {
    font-size: 1.1rem;
    font-weight: 800;
}

.public-search-title span {
    color: rgba(255, 255, 255, .72);
}

.filter {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
    padding: 18px;
    border-radius: 26px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .72);
    box-shadow: var(--shadow-lg);
}

input,
select,
textarea,
button {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 15px;
    font: inherit;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background-color .2s ease;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-faint);
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(15, 118, 110, .55);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .10);
}

textarea {
    min-height: 130px;
    resize: vertical;
}

button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    border: 0;
    border-radius: 14px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(15, 118, 110, .22);
}

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

.btn.secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.hero .btn.secondary {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: none;
}

.section {
    padding: 56px 0;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.section h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    letter-spacing: -.03em;
}

.section-head p {
    margin: 0;
    color: var(--text-soft);
    max-width: 560px;
}

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

.card,
.panel,
.public-detail-top,
.sahibinden-gallery,
.listing-summary,
.contact-card,
.detail-facts,
.description-lite {
    background: var(--surface);
    border: 1px solid rgba(203, 213, 225, .72);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.card {
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(15, 118, 110, .24);
}

.listing-card-pro {
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

.listing-card-pro .card-media {
    min-height: 250px;
}

.listing-card-pro .card-media img {
    aspect-ratio: 16 / 11;
}

.card-media {
    position: relative;
    display: block;
    overflow: hidden;
}

.card-media::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, .62));
}

.card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .35s ease;
}

.card:hover img {
    transform: scale(1.04);
}

.media-tag,
.featured-ribbon,
.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 800;
}

.media-tag {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 1;
    padding: 8px 12px;
    background: rgba(255, 255, 255, .94);
    color: var(--primary-strong);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .16);
}

.featured-ribbon {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    padding: 8px 12px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1f2937;
}

.card-body {
    padding: 22px;
}

.card-location {
    margin-bottom: 10px;
    color: var(--primary-strong);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.card-body h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    line-height: 1.35;
    letter-spacing: -.02em;
}

.price {
    margin: 14px 0;
    color: var(--text);
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: -.03em;
}

.meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0;
    color: var(--text-soft);
    font-size: .85rem;
}

.meta span,
.spec-pills span {
    background: var(--surface-alt);
    border: 1px solid #e7eef7;
}

.spec-pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 18px;
}

.spec-pills span {
    display: block;
    padding: 11px 10px;
    border-radius: 14px;
    text-align: center;
    font-size: .82rem;
    font-weight: 700;
    color: var(--text-soft);
}

.card-footer-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #e8eef6;
    color: var(--text-soft);
    font-size: .85rem;
}

.card-footer-line a {
    color: var(--primary-strong);
    font-weight: 800;
}

.tag {
    padding: 7px 11px;
    background: var(--primary-soft);
    color: var(--primary-strong);
}

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

.tag.yellow {
    background: var(--warning-soft);
    color: var(--warning);
}

.tag.blue {
    background: var(--info-soft);
    color: var(--info);
}

.detail,
.detail-layout {
    display: grid;
    gap: 24px;
    align-items: start;
}

.detail {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
}

.detail-layout {
    grid-template-columns: minmax(0, 1.55fr) 390px;
}

.gallery,
.detail-sidebar {
    display: grid;
    gap: 14px;
}

.gallery img:first-child,
.sahibinden-gallery img:first-child {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 18px;
}

.thumbs,
.detail-thumbs {
    display: grid;
    gap: 10px;
}

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

.detail-thumbs {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.thumbs img,
.detail-thumbs img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
}

.detail-thumbs img {
    border: 2px solid transparent;
    cursor: pointer;
}

.detail-thumbs img:hover {
    border-color: var(--primary);
}

.detail-section {
    padding-top: 32px;
}

.public-detail-top,
.sahibinden-gallery,
.listing-summary,
.contact-card,
.detail-facts,
.description-lite {
    padding: 22px;
}

.detail-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    margin-bottom: 18px;
}

.breadcrumb {
    margin-bottom: 10px;
    color: var(--text-faint);
    font-size: .82rem;
    font-weight: 600;
}

.detail-top h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -.03em;
}

.detail-location {
    margin-top: 10px;
    color: var(--text-soft);
    font-weight: 600;
}

.detail-price {
    min-width: 240px;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff, #f8fbff);
    border: 1px solid #e3ebf5;
    box-shadow: var(--shadow-sm);
}

.detail-price span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-faint);
    font-size: .82rem;
}

.detail-price strong {
    display: block;
    color: var(--text);
    font-size: 2rem;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.detail-sidebar {
    position: sticky;
    top: 92px;
}

.listing-summary h2,
.contact-card h2,
.detail-facts h2,
.description-lite h2,
.panel h2,
section > h2 {
    margin: 0 0 16px;
    font-size: 1.25rem;
    letter-spacing: -.02em;
}

.spec-list {
    margin: 0;
    border-top: 1px solid #e8eef6;
}

.spec-list div {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e8eef6;
}

.spec-list dt {
    color: var(--text-faint);
    font-size: .84rem;
}

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

.contact-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.contact-card p,
.description-lite p {
    color: var(--text-soft);
    line-height: 1.75;
}

.phone-line {
    display: block;
    margin: 14px 0;
    color: var(--primary-strong);
    font-size: 1.7rem;
    font-weight: 900;
}

.contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 16px 0;
}

.detail-facts,
.description-lite {
    margin-top: 20px;
}

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

.fact-grid div {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #e7eef7;
    background: var(--surface-alt);
}

.fact-grid span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-faint);
    font-size: .78rem;
}

.fact-grid strong {
    display: block;
    font-size: .95rem;
}

.panel {
    padding: 22px;
}

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

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

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid #dde6f1;
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
}

.table th,
.table td {
    padding: 15px 16px;
    border-bottom: 1px solid #e8eef6;
    text-align: left;
    vertical-align: top;
}

.table th {
    background: #f8fbff;
    color: var(--text-faint);
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.table tr:last-child td {
    border-bottom: 0;
}

.admin-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, .08), transparent 24rem),
        linear-gradient(180deg, #f8fbff 0%, #f3f7fc 100%);
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100vh;
    padding: 28px 20px;
    overflow: auto;
    background:
        radial-gradient(circle at top, rgba(56, 189, 248, .12), transparent 18rem),
        linear-gradient(180deg, #0b1220 0%, #10192d 100%);
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, .06);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(15, 118, 110, .95), rgba(37, 99, 235, .95));
    box-shadow: 0 18px 30px rgba(15, 118, 110, .24);
}

.sidebar-brand-mark svg,
.nav-icon svg {
    width: 22px;
    height: 22px;
}

.sidebar-brand strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
}

.sidebar-brand span {
    display: block;
    margin-top: 4px;
    color: rgba(226, 232, 240, .68);
    font-size: .82rem;
}

.sidebar-nav,
.sidebar-footer-links {
    display: grid;
    gap: 8px;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 16px;
    color: rgba(226, 232, 240, .82);
    font-size: .95rem;
    font-weight: 700;
    transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.sidebar a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    transform: translateX(2px);
}

.sidebar a.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(15, 118, 110, .28), rgba(37, 99, 235, .22));
    border: 1px solid rgba(94, 234, 212, .18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 14px 28px rgba(2, 8, 23, .22);
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    color: currentColor;
    flex: 0 0 38px;
}

.sidebar a.active .nav-icon {
    background: rgba(255, 255, 255, .12);
}

.sidebar-footer-links {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.admin-main {
    min-width: 0;
    padding: 34px;
}

.admin-shell {
    display: grid;
    gap: 22px;
}

.admin-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 4px;
}

.admin-title h1 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 3vw, 2.8rem);
    letter-spacing: -.03em;
}

.admin-title p {
    margin: 0;
    color: var(--text-soft);
}

.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px;
    border-radius: 28px;
    border: 1px solid rgba(15, 118, 110, .14);
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, .18), transparent 16rem),
        linear-gradient(135deg, #ffffff 0%, #f4fbfb 52%, #f8fbff 100%);
    box-shadow: var(--shadow-md);
}

.dashboard-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -.04em;
}

.dashboard-hero p {
    margin: 0;
    max-width: 720px;
    color: var(--text-soft);
    line-height: 1.75;
}

.quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

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

.metric-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
    border: 1px solid #dde6f1;
    box-shadow: var(--shadow-sm);
}

.metric-card::before {
    content: "";
    position: absolute;
    inset: auto -24px -24px auto;
    width: 110px;
    height: 110px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(15, 118, 110, .12), rgba(37, 99, 235, .10));
    transform: rotate(18deg);
}

.metric-card span {
    position: relative;
    display: block;
    margin-bottom: 12px;
    color: var(--text-faint);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.metric-card strong {
    position: relative;
    display: block;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -.04em;
}

.dashboard-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

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

.finance-strip div,
.mini-list a {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #e5edf6;
    background: var(--surface-alt);
}

.finance-strip span,
.mini-list span {
    display: block;
    color: var(--text-faint);
    font-size: .78rem;
}

.finance-strip strong {
    display: block;
    margin-top: 8px;
    font-size: 1.45rem;
    letter-spacing: -.03em;
}

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

.mini-list a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.mini-list a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.notice {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #bbf7d0;
    background: #ecfdf5;
    color: #065f46;
    font-weight: 600;
}

.notice.error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.notice.success {
    background: #ecfdf5;
    color: #065f46;
    border-color: #bbf7d0;
}

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

.actions form {
    margin: 0;
}

.actions .btn,
.actions button {
    padding: 10px 12px;
    font-size: .82rem;
}

.danger-btn {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    box-shadow: 0 16px 28px rgba(220, 38, 38, .18);
}

.listing-workspace {
    display: grid;
    gap: 22px;
}

.listing-editor {
    padding: 0;
    overflow: hidden;
}

.editor-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    padding: 26px;
    background: linear-gradient(135deg, #ffffff 0%, #f4fbfb 100%);
    border-bottom: 1px solid #e6edf6;
}

.editor-head h2 {
    margin: 0 0 8px;
    font-size: 1.5rem;
}

.editor-head p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.editor-status {
    min-width: 170px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(15, 118, 110, .16);
    background: #fff;
    text-align: right;
    box-shadow: var(--shadow-sm);
}

.editor-status span {
    display: block;
    color: var(--text-faint);
    font-size: .78rem;
    font-weight: 800;
}

.editor-status strong {
    display: block;
    margin-top: 6px;
    color: var(--primary-strong);
}

.crm-form {
    display: grid;
    gap: 0;
}

.form-section {
    padding: 24px 26px;
    border-bottom: 1px solid #e8eef6;
}

.form-section:last-of-type {
    border-bottom: 0;
}

.form-section-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.form-section-head > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--info));
    color: #fff;
    font-weight: 900;
}

.form-section-head h3 {
    margin: 0 0 4px;
    font-size: 1.1rem;
}

.form-section-head p {
    margin: 0;
    color: var(--text-soft);
    font-size: .86rem;
    line-height: 1.6;
}

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

.field {
    display: grid;
    gap: 8px;
    align-content: start;
}

.field span {
    color: #334155;
    font-size: .84rem;
    font-weight: 800;
}

.field small {
    color: var(--text-faint);
    font-size: .78rem;
    line-height: 1.5;
}

.field.full,
.pro-grid .full {
    grid-column: 1 / -1;
}

.file-field {
    grid-column: span 2;
    padding: 16px;
    border: 1px dashed #bfd0e3;
    border-radius: 18px;
    background: #f8fbff;
}

.switch-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.switch-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    padding: 11px 14px;
    border: 1px solid #e2eaf4;
    border-radius: 14px;
    background: #f8fbff;
    font-weight: 700;
}

.switch-row input {
    width: auto;
}

.upload-preview,
.image-manager {
    display: grid;
    gap: 12px;
}

.upload-preview {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.upload-preview:empty {
    display: none;
}

.upload-preview div,
.image-manager label {
    overflow: hidden;
    border: 1px solid #e2eaf4;
    border-radius: 16px;
    background: #fff;
}

.upload-preview img,
.image-manager img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.upload-preview span {
    display: block;
    padding: 8px;
    color: var(--text-faint);
    font-size: .72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.image-manager label {
    gap: 8px;
    padding: 8px;
}

.logo-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 96px;
    margin-bottom: 16px;
    border: 1px solid #e2eaf4;
    border-radius: 18px;
    background: #f8fbff;
}

.logo-preview img {
    max-width: 124px;
    max-height: 72px;
    object-fit: contain;
}

.form-actions {
    position: sticky;
    bottom: 0;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 26px;
    background: rgba(255, 255, 255, .92);
    border-top: 1px solid #e8eef6;
    backdrop-filter: blur(14px);
}

.form-actions .btn,
.form-actions button {
    min-width: 160px;
}

.match-card h3 {
    margin-top: 12px;
}

.admin-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 4px 4px;
    color: var(--text-faint);
    font-size: .84rem;
}

.print-only {
    display: none;
}

@media (max-width: 1180px) {
    .grid,
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .detail-sidebar {
        position: static;
    }

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

@media (max-width: 960px) {
    .admin-layout,
    .dashboard-split,
    .detail,
    .form-grid,
    .finance-strip {
        grid-template-columns: 1fr;
    }

    .admin-layout {
        display: block;
    }

    .sidebar {
        position: static;
        height: auto;
    }

    .admin-main {
        padding: 24px;
    }

    .dashboard-hero,
    .editor-head,
    .detail-top,
    .section-head,
    .nav {
        display: block;
    }

    .quick-actions,
    .hero-actions {
        margin-top: 18px;
    }

    .detail-price,
    .editor-status {
        margin-top: 16px;
        min-width: 0;
        text-align: left;
    }

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

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

@media (max-width: 720px) {
    .wrap {
        width: min(100% - 24px, 100%);
    }

    .hero {
        padding: 64px 0 42px;
    }

    .filter,
    .grid,
    .metric-grid,
    .pro-grid,
    .fact-grid,
    .image-manager,
    .thumbs,
    .detail-thumbs,
    .contact-actions {
        grid-template-columns: 1fr;
    }

    .public-search-title,
    .admin-title,
    .admin-footer {
        display: block;
    }

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

    .spec-pills {
        grid-template-columns: 1fr;
    }

    .file-field {
        grid-column: auto;
    }

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

    .form-actions {
        display: block;
    }
}

@media print {
    .topbar,
    .sidebar,
    .btn,
    .no-print,
    .admin-footer {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .wrap,
    .admin-main {
        width: 100%;
        padding: 0;
    }

    .panel,
    .card,
    .table {
        box-shadow: none;
        border-color: #000;
    }

    .print-only {
        display: block;
    }
}
