/* ============================================================
   PrintMandi - shared design system
   Tokens and component classes copied from the three delivered
   reference pages (landing-index.html, member-dashboard.html,
   admin-dashboard.html). Linked by every public, member and
   admin page - do not duplicate these rules inline.
   ============================================================ */

:root {
    --ink: #0E1E36;
    --ink-deep: #081328;
    --ink-2: #142846;
    --bg: #F6F7F9;
    --paper: #F6F4EF;
    --paper-deep: #EBE5D6;
    --card: #FFFFFF;
    --line: #E4E7EE;
    --line-warm: #E3DECF;
    --text: #1A2235;
    --text-dim: #64708A;
    --text-dim-dark: #9FA9C0;
    --orange: #FF7A1F;
    --orange-deep: #E35F0A;
    --orange-bg: #FFF1E4;
    --green: #1FA971;
    --green-bg: #E7F7EF;
    --amber: #D98F2B;
    --amber-bg: #FBF1DF;
    --red: #DD5347;
    --red-bg: #FCEBE9;
    --coral: #E2645A;
    --neutral-bg: #EEF0F4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
}
h1, h2, h3, h4, .display-font { font-family: 'Plus Jakarta Sans', sans-serif; }
body.page-public { background: var(--paper); }
.mono { font-family: 'JetBrains Mono', monospace; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
    font-weight: 600;
    font-size: 13.5px;
    padding: 9px 18px;
    border-radius: 7px;
    display: inline-block;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
}
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .45); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-deep); }
.btn-navy { background: var(--ink); color: #fff; }
.btn-navy:hover { background: var(--ink-deep); }
.btn-outline { border: 1px solid var(--line); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--ink); }
.btn-approve { background: var(--green); color: #fff; font-weight: 700; }
.btn-approve:hover { opacity: .9; }
.btn-reject { background: #fff; border: 1px solid var(--line); color: var(--text-dim); }
.btn-reject:hover { border-color: var(--red); color: var(--red); }
.btn-danger { background: #fff; border: 1px solid var(--line); color: var(--red); }
.btn-danger:hover { border-color: var(--red); background: var(--red-bg); }
.btn-sm { font-size: 12px; padding: 6px 13px; border-radius: 7px; }
.btn-block { display: block; width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Public nav ---------- */
.nav-wrap { background: var(--ink); padding: 16px 0; position: sticky; top: 0; z-index: 50; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { font-weight: 800; font-size: 19px; color: #fff; }
.logo span { color: var(--orange); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--text-dim-dark); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* ---------- Hero slider ---------- */
.hero { background: var(--ink-deep); position: relative; overflow: hidden; }
.hero-track { display: flex; transition: transform .6s cubic-bezier(.65, 0, .35, 1); }
.hero-slide {
    min-width: 100%;
    min-height: 480px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(8, 19, 40, .95) 0%, rgba(8, 19, 40, .68) 50%, rgba(8, 19, 40, .25) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 560px; color: #fff; }
.hero-kicker { color: var(--orange); font-weight: 700; font-size: 13px; letter-spacing: .04em; margin-bottom: 14px; }
.hero-content h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.15; margin: 0 0 16px; }
.hero-content p { color: var(--text-dim-dark); font-size: 16px; line-height: 1.6; margin: 0 0 26px; max-width: 460px; }
.hero-cta { padding: 13px 26px; font-size: 14.5px; }
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    font-size: 16px;
}
.hero-nav:hover { background: rgba(255, 255, 255, .2); }
.hero-prev { left: 24px; }
.hero-next { right: 24px; }
.hero-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.hero-dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .35); border: none; cursor: pointer; padding: 0; }
.hero-dots button.active { background: var(--orange); width: 22px; border-radius: 5px; transition: width .2s; }

/* ---------- Search card (overlaps the hero) ---------- */
.search-wrap { margin-top: -46px; position: relative; z-index: 10; }
.search-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 18px 44px rgba(8, 19, 40, .16);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.search-field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; }
.search-field label { font-size: 11px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: .03em; }
.search-submit { display: flex; align-items: flex-end; }
.search-submit .btn { padding: 12px 28px; font-size: 14px; }

/* ---------- Form fields ---------- */
input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=number], input[type=url], input[type=date], input[type=time],
input[type=datetime], input[type=datetime-local], input[type=month],
input[type=week], input[type=color], input[type=file], select, textarea {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 13px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); }
textarea { min-height: 120px; resize: vertical; }

/* Native date/time pickers need height and room for their calendar icon. */
input[type=date], input[type=time], input[type=datetime], input[type=datetime-local],
input[type=month], input[type=week] { min-height: 44px; line-height: 1.2; }
input[type=datetime-local], input[type=datetime] { min-width: 216px; }
input[type=date], input[type=month], input[type=week] { min-width: 150px; }
input[type=time] { min-width: 120px; }
input[type=color] { padding: 5px; min-height: 44px; width: 60px; cursor: pointer; }

/* File pickers: keep the native button but match the design tokens. */
input[type=file] { padding: 9px 11px; background: #fff; cursor: pointer; }
input[type=file]::file-selector-button {
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    background: var(--ink);
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    margin-right: 12px;
    cursor: pointer;
}
input[type=file]::file-selector-button:hover { background: var(--ink-deep); }

/* Checkboxes and radios must never inherit the full-width input rule. */
input[type=checkbox], input[type=radio] {
    width: auto;
    min-height: 0;
    padding: 0;
    accent-color: var(--orange);
    transform: scale(1.2);
    cursor: pointer;
}
label.field-label { display: block; font-size: 12px; font-weight: 700; color: var(--text-dim); margin-bottom: 6px; letter-spacing: .02em; }
.field { margin-bottom: 16px; min-width: 0; }
.field-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.field-row > .field { flex: 1 1 220px; }
.help-text { font-size: 12px; color: var(--text-dim); margin-top: 5px; line-height: 1.5; }
.check-row { display: flex; align-items: center; gap: 9px; font-size: 13.5px; min-height: 44px; }
.check-row label { font-weight: 600; color: var(--text); cursor: pointer; }
.check-row input[type=checkbox] { width: auto; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head { max-width: 560px; margin-bottom: 34px; }
.section-head .eyebrow { color: var(--orange-deep); font-weight: 700; font-size: 12.5px; letter-spacing: .04em; margin-bottom: 8px; }
.section-head h2 { font-size: 27px; margin: 0 0 10px; }
.section-head p { color: var(--text-dim); font-size: 15px; line-height: 1.6; margin: 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line-warm); border-bottom: 1px solid var(--line-warm); }
.section-between { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-tile { background: #fff; border: 1px solid var(--line-warm); border-radius: 12px; padding: 22px 16px; text-align: center; transition: border-color .15s, transform .15s; }
.cat-tile:hover { border-color: var(--orange); transform: translateY(-3px); }
.cat-tile .icon {
    width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%;
    background: var(--orange-bg); color: var(--orange);
    display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.cat-tile .cname { font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.cat-tile .ccount { font-size: 12px; color: var(--text-dim); }
.cat-tile.post-tile { border: 1.5px dashed var(--orange); background: #FFF9F3; }
.cat-tile.post-tile .icon { background: var(--orange); color: #fff; }

/* ---------- Listing cards ---------- */
.listing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.listing-grid-3 { grid-template-columns: repeat(3, 1fr); }
.listing-card { background: #fff; border: 1px solid var(--line-warm); border-radius: 14px; overflow: hidden; transition: box-shadow .15s, transform .15s; display: flex; flex-direction: column; }
.listing-card:hover { box-shadow: 0 14px 32px rgba(14, 30, 54, .1); transform: translateY(-2px); }
.listing-thumb {
    height: 168px;
    background: linear-gradient(135deg, #EDE8DC, #E3DECF);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 12px;
    overflow: hidden;
}
.listing-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-thumb .tag { position: absolute; top: 10px; font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; z-index: 2; }
.tag-featured { left: 10px; background: var(--orange); color: #fff; }
.tag-condition { right: 10px; background: rgba(14, 30, 54, .85); color: #fff; }
.listing-info { padding: 14px 16px 18px; flex: 1; }
.listing-info .ltitle { font-weight: 700; font-size: 14.5px; margin-bottom: 6px; line-height: 1.35; }
.listing-info .lprice { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--ink); font-size: 16px; }
.listing-info .lmeta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-warm); }
.listing-card .save-form { padding: 0 16px 16px; }

/* ---------- How it works / stats / pricing ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: #fff; border: 1px solid var(--line-warm); border-radius: 14px; padding: 26px 24px; }
.step .num {
    width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: var(--orange);
    font-family: 'JetBrains Mono', monospace; font-weight: 700;
    display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step h3 { font-size: 16.5px; margin: 0 0 8px; }
.step p { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; margin: 0; }

.stats-strip { background: var(--ink); padding: 50px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats-grid .sv { font-family: 'JetBrains Mono', monospace; font-size: 30px; font-weight: 700; color: var(--orange); }
.stats-grid .sl { font-size: 13px; color: var(--text-dim-dark); margin-top: 4px; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-card { background: #fff; border: 1px solid var(--line-warm); border-radius: 14px; padding: 28px 24px; }
.price-card.featured { border: 1.5px solid var(--orange); box-shadow: 0 10px 30px rgba(255, 122, 31, .12); }
.price-card h3 { font-size: 16px; margin: 0 0 6px; }
.price-card .amount { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 30px; font-weight: 800; margin: 6px 0 16px; }
.price-card .amount span { font-size: 13px; font-weight: 500; color: var(--text-dim); }
.price-card ul { margin: 0 0 20px; }
.price-card li { font-size: 13.5px; padding: 7px 0; border-top: 1px solid var(--line-warm); }
.price-card li:first-child { border-top: none; }
.price-card .btn { width: 100%; }

/* ---------- Public footer ---------- */
footer { background: var(--ink-deep); color: var(--text-dim-dark); padding: 46px 0 22px; }
footer .foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 28px; margin-bottom: 28px; }
footer h6 { color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; margin: 0 0 12px; }
footer p, footer a { font-size: 13px; line-height: 1.9; margin: 0; }
footer a:hover { color: #fff; }
footer hr { border-color: rgba(255, 255, 255, .12); margin: 20px 0; border: none; border-top: 1px solid rgba(255, 255, 255, .12); }
.foot-bottom { font-size: 12.5px; }

/* ---------- App shell (member + admin) ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 252px;
    background: var(--ink);
    color: var(--text-dim-dark);
    flex: none;
    min-height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
}
.brand {
    padding: 22px 22px 18px;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 17px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.brand span { color: var(--orange); }
.brand .admintag { font-size: 11px; font-weight: 500; color: var(--text-dim-dark); }
.nav-section { font-size: 10.5px; color: rgba(255, 255, 255, .35); padding: 18px 22px 6px; font-weight: 700; letter-spacing: .04em; }
nav.primary { display: flex; flex-direction: column; padding: 4px 0; }
nav.primary a {
    padding: 10px 22px;
    font-size: 13.5px;
    border-left: 3px solid transparent;
    color: var(--text-dim-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
nav.primary a:hover { color: #fff; background: rgba(255, 255, 255, .04); }
nav.primary a.active { color: #fff; background: var(--ink-2); border-left-color: var(--orange); font-weight: 600; }
nav.primary.admin-nav a.active { border-left-color: var(--amber); }
.count-badge { background: var(--coral); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.sidebar-foot {
    margin-top: auto;
    padding: 16px 22px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-dim-dark);
    line-height: 1.6;
}
.sidebar-foot .who { font-size: 13px; font-weight: 600; color: #fff; }
.sidebar-foot .plan { font-size: 11px; color: var(--text-dim-dark); }
.avatar {
    width: 32px; height: 32px; border-radius: 50%; background: #213457;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
}

main { flex: 1; min-width: 0; }
/* Grid/flex children must be allowed to shrink, otherwise a wide table pushes
   the whole page sideways instead of scrolling inside .table-wrap. */
.two-col > *, .kpi-row > *, .kpi-row-3 > *, .two-col-even > *, .panel, .detail-grid > *, .spec-list > * { min-width: 0; }
.table-wrap { max-width: 100%; }
.topbar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.topbar h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 19px; margin: 0; }
.topbar .sub { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.content { padding: 28px 32px 60px; }
.badge { font-size: 11.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.badge.dealer { background: var(--orange-bg); color: var(--orange-deep); }

/* ---------- KPIs / panels ---------- */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.kpi-row-3 { grid-template-columns: repeat(3, 1fr); }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.kpi .label { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.kpi .value { font-family: 'JetBrains Mono', monospace; font-size: 24px; font-weight: 700; }
.kpi .value.warn { color: var(--amber); }
.kpi .value.bad { color: var(--red); }
.kpi .value.good { color: var(--green); }

.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; margin-bottom: 18px; }
.two-col-even { grid-template-columns: 1fr 1fr; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-bottom: 18px; }
.panel:last-child { margin-bottom: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.panel-head h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; margin: 0; }
.panel-head a.link { font-size: 12.5px; color: var(--orange-deep); font-weight: 600; }
.panel-head.admin a.link { color: var(--amber); }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
    text-align: left; padding: 10px 6px; font-size: 10.5px; color: var(--text-dim);
    border-bottom: 1px solid var(--line); font-weight: 700; letter-spacing: .02em;
}
td { padding: 12px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
td.mono { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; }
td a.action { font-size: 12.5px; color: var(--orange-deep); font-weight: 600; }
td.nowrap, .nowrap { white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.row-form { display: inline-block; margin: 0; }
.row-form select, .row-form input { width: auto; padding: 6px 9px; font-size: 12.5px; }

/* ---------- Status badges (shared across member + admin) ---------- */
.status { display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.status.active, .status.new { background: var(--green-bg); color: var(--green); }
.status.pending, .status.contacted { background: var(--amber-bg); color: var(--amber); }
.status.sold, .status.closed, .status.suspended, .status.reviewed, .status.dismissed { background: var(--neutral-bg); color: var(--text-dim); }
.status.expired, .status.rejected, .status.open { background: var(--red-bg); color: var(--red); }

/* ---------- Enquiry / plan widgets ---------- */
.enquiry-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.enquiry-item:last-child { border-bottom: none; }
.enquiry-item .erow { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; gap: 10px; }
.enquiry-item .ename { font-weight: 700; }
.enquiry-item .etime { color: var(--text-dim); font-size: 12px; white-space: nowrap; }
.enquiry-item .emsg { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }

.plan-name-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.plan-name-row .name { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 17px; }
.plan-meta { font-size: 12.5px; color: var(--text-dim); margin-bottom: 16px; }
.meter-row { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 7px; }
.meter-track { height: 7px; background: var(--neutral-bg); border-radius: 4px; overflow: hidden; margin-bottom: 18px; }
.meter-fill { height: 100%; background: var(--orange); }
.meter-fill.full { background: var(--red); }

.list-flat { list-style: none; margin: 0; padding: 0; }
.list-flat li { padding: 10px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 13px; gap: 12px; }
.list-flat li:first-child { border-top: none; }

.service-row { padding: 13px 0; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); gap: 12px; }
.service-row:last-child { border-bottom: none; }
.service-row .s-name { font-size: 13px; font-weight: 600; }
.service-row .s-sub { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }
.dot-row { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.dot-row .dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-row.ok { color: var(--green); }
.dot-row.ok .dot { background: var(--green); }
.dot-row.warn { color: var(--amber); }
.dot-row.warn .dot { background: var(--amber); }

/* ---------- Alerts ---------- */
.flash { font-size: 13.5px; padding: 13px 18px; border-radius: 10px; margin-bottom: 18px; line-height: 1.5; }
.flash.ok { background: var(--green-bg); color: var(--green); border: 1px solid #BFE6D2; }
.flash.warn { background: var(--amber-bg); color: var(--amber); border: 1px solid #EFD9AE; }
.flash.err { background: var(--red-bg); color: var(--red); border: 1px solid #F2C6C1; }
.flash a { font-weight: 700; text-decoration: underline; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: 100vh; background: var(--ink-deep); display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { background: #fff; border-radius: 16px; padding: 34px 30px; width: 100%; max-width: 460px; box-shadow: 0 24px 60px rgba(8, 19, 40, .35); }
.auth-card .logo { color: var(--ink); font-size: 22px; margin-bottom: 6px; }
.auth-card .logo span { color: var(--orange); }
.auth-card .auth-sub { font-size: 13.5px; color: var(--text-dim); margin-bottom: 24px; }
.auth-card h2 { font-size: 20px; margin: 0 0 4px; }
.auth-foot { font-size: 13px; color: var(--text-dim); margin-top: 20px; }
.auth-foot a { color: var(--orange-deep); font-weight: 700; }
.auth-admin .auth-card { border-top: 4px solid var(--amber); }

/* ---------- Public detail page ---------- */
.detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
.photo-main { background: linear-gradient(135deg, #EDE8DC, #E3DECF); border-radius: 14px; height: 340px; display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 13px; overflow: hidden; }
.photo-main img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.photo-thumbs img { width: 76px; height: 60px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-warm); }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 0; }
.spec-list .spec { border: 1px solid var(--line-warm); border-radius: 10px; padding: 12px 14px; }
.spec-list .spec .k { font-size: 11px; color: var(--text-dim); font-weight: 700; letter-spacing: .02em; }
.spec-list .spec .v { font-size: 14px; font-weight: 600; margin-top: 3px; }
.big-price { font-family: 'JetBrains Mono', monospace; font-size: 26px; font-weight: 700; color: var(--ink); }
.seller-box { border-top: 1px solid var(--line-warm); padding-top: 14px; margin-top: 14px; }
.breadcrumb { font-size: 12.5px; color: var(--text-dim); padding: 18px 0 0; }
.breadcrumb a:hover { color: var(--orange-deep); }
.meta-line { font-size: 12.5px; color: var(--text-dim); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.empty-state { text-align: center; color: var(--text-dim); font-size: 13.5px; padding: 34px 20px; }

/* ---------- Pagination / filter bar ---------- */
.pager { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.pager a { font-size: 12.5px; font-weight: 700; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line-warm); background: #fff; color: var(--text); }
.pager a.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 20px; }
.filter-bar .field { margin-bottom: 0; flex: 1 1 180px; }
.result-count { font-size: 12.5px; color: var(--text-dim); margin-bottom: 16px; }
.photo-preview { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.photo-preview img { width: 92px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

@media (max-width: 1000px) {
    .cat-grid, .listing-grid, .listing-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .steps, .price-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    footer .foot-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
    .detail-grid, .two-col, .two-col-even { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
    .sidebar { display: none; }
    .kpi-row, .kpi-row-3 { grid-template-columns: repeat(2, 1fr); }
    .content { padding: 22px 18px 50px; }
    .topbar { padding: 16px 18px; }
}

@media (max-width: 620px) {
    .cat-grid, .listing-grid, .listing-grid-3, .spec-list { grid-template-columns: 1fr; }
    .hero-slide { min-height: 400px; }
}

/* ============================================================
   CMS layer: site branding, menus, rich text, blog, contact
   ============================================================ */

/* Uploaded logo / footer logo / favicon replacements */
.logo .brand-img, h6 .brand-img { height: 30px; width: auto; display: inline-block; vertical-align: middle; }
.brand .brand-img { height: 24px; width: auto; display: inline-block; vertical-align: middle; margin-right: 4px; }
h6 .brand-img { height: 24px; }
footer .foot-address { font-style: normal; font-size: 13px; line-height: 1.9; color: var(--text-dim-dark); margin: 8px 0 0; }
footer .foot-cities { font-size: 12px; color: rgba(255, 255, 255, .45); margin-top: 10px; }
footer .foot-bottom a { color: var(--text-dim-dark); }
footer .foot-bottom a:hover { color: #fff; }

/* Quill-authored content rendered on public pages */
.rich-text { font-size: 15px; line-height: 1.75; color: var(--text); }
.rich-text > *:first-child { margin-top: 0; }
.rich-text p { margin: 0 0 16px; }
.rich-text h2, .rich-text h3, .rich-text h4 { margin: 28px 0 10px; font-size: 20px; }
.rich-text h3 { font-size: 17px; }
.rich-text h4 { font-size: 15px; }
.rich-text a { color: var(--orange-deep); font-weight: 600; text-decoration: underline; }
.rich-text ul, .rich-text ol { margin: 0 0 16px; padding-left: 22px; list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text li { margin-bottom: 6px; }
.rich-text blockquote { margin: 0 0 16px; padding: 12px 18px; border-left: 3px solid var(--orange); background: var(--orange-bg); color: var(--text); }
.rich-text pre, .rich-text code { font-family: 'JetBrains Mono', monospace; font-size: 13px; background: var(--neutral-bg); border-radius: 6px; }
.rich-text pre { padding: 14px; overflow-x: auto; margin: 0 0 16px; }
.rich-text code { padding: 2px 5px; }
.rich-text img { max-width: 100%; height: auto; border-radius: 10px; margin: 6px 0 16px; }
.rich-text table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; }
.rich-text th, .rich-text td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; }
.rich-text hr { border: none; border-top: 1px solid var(--line-warm); margin: 24px 0; }
.rich-text .ql-align-center { text-align: center; }
.rich-text .ql-align-right { text-align: right; }
.rich-text .ql-align-justify { text-align: justify; }
.rich-text .ql-size-small { font-size: .85em; }
.rich-text .ql-size-large { font-size: 1.25em; }
.rich-text .ql-size-huge { font-size: 1.6em; }
.rich-text .ql-indent-1 { padding-left: 2em; }
.rich-text .ql-indent-2 { padding-left: 4em; }

/* Content pages (About / Privacy / Terms) */
.page-shell { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.page-hero { background: var(--ink); color: #fff; padding: 40px 0 34px; }
.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 8px; }
.page-hero .meta-line { color: var(--text-dim-dark); }
.side-card { background: #fff; border: 1px solid var(--line-warm); border-radius: 12px; padding: 20px; margin-bottom: 18px; }
.side-card h3 { font-size: 14px; margin: 0 0 12px; }
.side-card ul li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.side-card ul li:first-child { border-top: none; }
.side-card ul li a:hover { color: var(--orange-deep); }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { background: #fff; border: 1px solid var(--line-warm); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.post-card:hover { box-shadow: 0 14px 32px rgba(14, 30, 54, .1); transform: translateY(-2px); }
.post-cover { height: 170px; background: linear-gradient(135deg, #EDE8DC, #E3DECF); display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 12px; overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 16px 18px 20px; flex: 1; }
.post-body .ptitle { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 15.5px; line-height: 1.4; margin-bottom: 8px; }
.post-body .pexcerpt { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; }
.post-body .pmeta { font-size: 12px; color: var(--text-dim); margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-warm); display: flex; justify-content: space-between; gap: 10px; }
.post-featured-flag { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--orange); color: #fff; margin-bottom: 8px; }
.post-article-cover { border-radius: 14px; overflow: hidden; margin-bottom: 22px; background: linear-gradient(135deg, #EDE8DC, #E3DECF); }
.post-article-cover img { width: 100%; display: block; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
.contact-line { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-warm); font-size: 13.5px; }
.contact-line:first-child { border-top: none; }
.contact-line .ck { color: var(--text-dim); min-width: 74px; font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .02em; padding-top: 2px; }
.contact-line a { color: var(--orange-deep); font-weight: 600; }

/* Admin Quill editor sizing */
.ql-editor { min-height: 320px; font-family: 'Inter', sans-serif; font-size: 14.5px; line-height: 1.7; }
.ql-toolbar { border-radius: 8px 8px 0 0; }
.ql-container { border-radius: 0 0 8px 8px; border-color: var(--line); }
.editor-note { font-size: 12px; color: var(--text-dim); margin-top: 6px; }

/* ---------- Topbar profile dropdown (no JS: details/summary) ---------- */
.topbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar-user { position: relative; }
.topbar-user > summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    padding: 5px 11px 5px 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.topbar-user > summary::-webkit-details-marker { display: none; }
.topbar-user > summary:hover { border-color: var(--ink); }
.topbar-user[open] > summary { border-color: var(--amber); }
.topbar-user .caret { color: var(--text-dim); font-size: 10px; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.lg { width: 64px; height: 64px; font-size: 20px; border-radius: 14px; }
.user-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 216px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 18px 44px rgba(8, 19, 40, .18);
    padding: 8px;
    z-index: 70;
}
.user-menu .um-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-menu .um-name { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.user-menu .um-role { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }
.user-menu a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; color: var(--text); }
.user-menu a:hover { background: var(--bg); color: var(--ink); }
.user-menu a.danger { color: var(--red); }
.user-menu a.danger:hover { background: var(--red-bg); color: var(--red); }
.user-menu .um-sep { height: 1px; background: var(--line); margin: 6px 0; }
.upload-preview { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

@media (max-width: 980px) {
    /* Keep the menu anchored to the right edge of the pill so it can never
       push the page sideways on narrow screens. */
    .topbar-user { max-width: 100%; }
    .user-menu { right: 0; left: auto; max-width: calc(100vw - 32px); }
}


@media (max-width: 1000px) {
    .page-shell, .contact-grid { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: 1fr; }
}

