:root {
    --gold: #c9971c;
    --gold-dark: #a67b12;
    --ink: #241d0e;
    --muted: #7a6f57;
    --bg: #faf7f0;
    --card: #ffffff;
    --border: #e8e0cd;
    --danger: #b3402f;
    --success: #2e7d43;
}

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

body {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------------------------------------------------------------- header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0 5vw;
    min-height: 62px;
    background: var(--ink);
    color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.brand {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.brand-icon { color: var(--gold); }

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 1.5rem;
    min-width: 0;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.nav-links a {
    color: #e6dcc2;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    white-space: nowrap;
}
.nav-links a:hover { color: var(--gold); background: rgba(255, 255, 255, 0.06); }
.nav-links a.active { color: var(--gold); background: rgba(201, 151, 28, 0.14); }
.nav-admin { color: var(--gold) !important; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.nav-user {
    color: #f1e9d6;
    font-size: 0.9rem;
    opacity: 0.85;
    white-space: nowrap;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.nav-muted {
    color: #a99c7d;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    white-space: nowrap;
}
.nav-muted:hover { color: var(--gold); }

.nav-toggle {
    display: none;
    margin-left: auto;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    color: #f1e9d6;
    font-size: 1.15rem;
    line-height: 1;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
}
.nav-toggle:hover { border-color: var(--gold); color: var(--gold); }

.nav-close { display: none; }
.nav-backdrop { display: none; }

@media (max-width: 860px) {
    .site-header { gap: 0.8rem; padding: 0.7rem 5vw; }
    .nav-toggle { display: block; }

    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 120;
        width: min(78vw, 320px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.6rem;
        padding: 4.2rem 1.2rem 1.6rem;
        background: var(--ink);
        box-shadow: -14px 0 34px rgba(0, 0, 0, 0.4);
        transform: translateX(100%);
        transition: transform 0.28s ease;
        overflow-y: auto;
    }
    .site-nav.open { transform: translateX(0); }

    .nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0.9rem;
        right: 1rem;
        width: 38px;
        height: 38px;
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 10px;
        background: transparent;
        color: #f1e9d6;
        font-size: 1.4rem;
        line-height: 1;
        cursor: pointer;
    }
    .nav-close:hover { border-color: var(--gold); color: var(--gold); }

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 110;
        background: rgba(20, 15, 5, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
    }
    .site-nav.open + .nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
    }
    .nav-links a { padding: 0.7rem 0.8rem; font-size: 1rem; }
    .nav-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
        margin-top: auto;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
    .nav-actions .btn { text-align: center; }
    .nav-user { border-left: none; padding-left: 0.3rem; }
}

/* ------------------------------------------------------------- layout */
.container {
    flex: 1;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 5vw 3rem;
}
.site-footer {
    text-align: center;
    padding: 1.2rem 5vw;
    background: var(--ink);
    color: #cbbfa3;
    font-size: 0.85rem;
}
.site-footer-big { text-align: left; padding: 2.4rem 5vw 0; }
.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.8rem;
    max-width: 1100px;
    margin: 0 auto;
}
.footer-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}
.footer-col h4 {
    color: var(--gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.6rem;
}
.footer-col p { font-size: 0.88rem; line-height: 1.55; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.45rem; font-size: 0.88rem; }
.footer-col a { color: #f1e9d6; text-decoration: none; }
.footer-col a:hover { color: var(--gold); }
.footer-safety { color: #a99c7d; margin-top: 0.5rem; }
.footer-socials {
    display: flex;
    gap: 0.55rem;
    margin-top: 0.8rem;
}
.footer-socials a {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
    color: #f1e9d6;
    transition: background 0.15s, color 0.15s, transform 0.15s;
}
.footer-socials a svg { width: 17px; height: 17px; }
.footer-socials a:hover {
    background: var(--gold);
    color: #fff;
    transform: translateY(-2px);
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 1.8rem;
    padding: 1rem 0;
    font-size: 0.8rem;
    color: #a99c7d;
}

/* FAQ teaser + bottom CTA (landing page) */
.faq-teaser {
    max-width: 760px;
    margin: 3rem auto 0;
    text-align: center;
}
.faq-teaser h2 { font-size: 1.7rem; margin-bottom: 1rem; }
.faq-teaser .faq-list { text-align: left; }
.faq-teaser-more { margin-top: 0.4rem; }
.faq-teaser-more a {
    color: var(--gold-dark);
    font-weight: 700;
    text-decoration: none;
}
.faq-teaser-more a:hover { text-decoration: underline; }

.cta-strip {
    margin-top: 3rem;
    text-align: center;
    background:
        radial-gradient(700px 300px at 15% -20%, rgba(201, 151, 28, 0.35), transparent 70%),
        linear-gradient(120deg, #2c230d, var(--ink));
    color: #fff;
    border-radius: 16px;
    padding: 2.6rem 1.5rem;
}
.cta-strip h2 { font-size: 1.8rem; }
.cta-strip p { color: #e6dcc2; margin: 0.5rem 0 1.4rem; }
.cta-strip-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.btn-wa { background: #25d366; border-color: #25d366; }
.btn-wa:hover { background: #1eb857; border-color: #1eb857; }
.lead { color: var(--muted); margin: 0.6rem 0 1.4rem; }
.hint { font-weight: 400; color: var(--muted); font-size: 0.85em; }
.empty { color: var(--muted); font-style: italic; }

/* ------------------------------------------------------------- buttons */
.btn {
    display: inline-block;
    background: var(--gold);
    color: #fff;
    border: 2px solid var(--gold);
    border-radius: 8px;
    padding: 0.6rem 1.4rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn-large { font-size: 1.15rem; padding: 0.8rem 2rem; }
.btn-small { font-size: 0.85rem; padding: 0.35rem 0.9rem; }
.btn-block { display: block; width: 100%; }
.btn-outline { background: transparent; color: var(--gold-dark); }
.btn-outline:hover { background: var(--gold); color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #8c3123; border-color: #8c3123; }

/* ------------------------------------------------ full-width home page */
.container-full {
    max-width: none;
    padding: 0 0 3rem;
}
.container-full .flashes { padding: 1rem 3vw 0; }
.container-full .what-we-buy,
.container-full .steps { padding-left: 3vw; padding-right: 3vw; }

/* ---------------------------------------------------------------- hero */
.hero {
    text-align: center;
    padding: 3.5rem 5vw 3rem;
    background: linear-gradient(160deg, #241d0e 0%, #3a2f16 55%, #4d3d15 100%);
    color: #fff;
}
.hero h1 { font-size: 2.6rem; margin-bottom: 0.5rem; color: var(--gold); }
.hero .lead { color: #e6dcc2; max-width: 640px; margin-left: auto; margin-right: auto; }
/* ------------------------------------------------------- extras / promo */
.price-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.6rem;
    background: linear-gradient(90deg, #2c230d, #4d3d15);
    color: #f4e8c8;
    border-radius: 12px;
    padding: 0.7rem 1.2rem;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}
.price-banner-title { color: var(--gold); font-weight: 700; }
.price-item strong { color: var(--gold); }

.recently-bought { text-align: center; margin-top: 2.5rem; }
.recently-bought h2 { font-size: 1.7rem; }
.bought-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    text-align: left;
    margin-top: 0.5rem;
}
.bought-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.bought-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.bought-card figcaption { padding: 0.7rem 0.9rem 0.9rem; }
.bought-card strong { display: block; font-size: 0.95rem; }
.bought-card span { color: var(--success); font-size: 0.85rem; font-weight: 600; }

/* WhatsApp */
.wa-link {
    display: inline-block;
    background: #25d366;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0.15rem 0.65rem;
    border-radius: 99px;
    margin-left: 0.4rem;
    vertical-align: middle;
}
.wa-link:hover { background: #1eb857; }
.wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 90;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-raised { bottom: 84px; }

/* AI support chat */
.chat-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 95;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #d9a82a, #a67b12);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s;
}
.chat-float:hover { transform: scale(1.08); }
.chat-float svg { transition: transform 0.2s; }
.chat-float.chat-active svg { transform: rotate(90deg) scale(0.9); }
.chat-float.chat-active {
    background: var(--ink);
    border: 2px solid var(--gold);
}
.chat-panel[hidden] { display: none; }
.chat-panel {
    position: fixed;
    right: 18px;
    bottom: 84px;
    z-index: 130;
    width: min(90vw, 360px);
    height: clamp(260px, 55vh, 500px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}
.chat-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 1rem;
    background: var(--ink);
    color: #fff;
}
.chat-avatar {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #f6d76b, #c9971c);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}
.chat-name { font-weight: 700; font-size: 0.95rem; }
.chat-status { font-size: 0.75rem; color: #cbbfa3; }
.chat-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #25d366;
}
.chat-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #cbbfa3;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
}
.chat-close:hover { color: #fff; }
.chat-msgs {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    background: var(--bg);
}
.chat-msg {
    max-width: 82%;
    padding: 0.55rem 0.85rem;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.chat-assistant {
    align-self: flex-start;
    background: #fff;
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}
.chat-user {
    align-self: flex-end;
    background: linear-gradient(135deg, #d9a82a, #b98708);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-typing { display: flex; gap: 4px; padding: 0.8rem 0.9rem; }
.chat-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b9ac8e;
    animation: chat-blink 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chat-blink {
    0%, 60%, 100% { opacity: 0.3; }
    30% { opacity: 1; }
}
.chat-input {
    display: flex;
    gap: 0.5rem;
    padding: 0.7rem;
    background: #fff;
    border-top: 1px solid var(--border);
}
.chat-input input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 0.55rem 1rem;
    font: inherit;
    font-size: 0.92rem;
}
.chat-input input:focus { outline: none; border-color: var(--gold); }
.chat-send {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}
.chat-send:hover { background: var(--gold-dark); }
@media (max-width: 860px) {
    .chat-panel { width: min(88vw, 340px); height: clamp(240px, 50vh, 440px); }
}
@media (max-width: 560px) {
    .chat-panel {
        right: 4vw;
        bottom: 76px;
        width: min(86vw, 320px);
        height: clamp(220px, 46vh, 380px);
    }
    .chat-msg { font-size: 0.88rem; }
    .chat-head { padding: 0.65rem 0.9rem; }
    .chat-avatar { width: 32px; height: 32px; font-size: 0.95rem; }
    .chat-name { font-size: 0.88rem; }
    .chat-input { padding: 0.55rem; }
    .chat-float { width: 48px; height: 48px; right: 14px; bottom: 14px; }
    .wa-raised { bottom: 74px; }
}

/* honeypot — hidden from humans, visible to bots */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 1px;
    overflow: hidden;
}

/* FAQ */
.faq-page { max-width: 760px; margin: 0 auto; }
.faq-list details {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    margin-bottom: 0.7rem;
}
.faq-list summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 1.02rem;
}
.faq-list details[open] summary { color: var(--gold-dark); margin-bottom: 0.5rem; }
.faq-list p { color: #4d4433; }
.faq-cta { text-align: center; margin-top: 1.8rem; }

.form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 560px) { .form-grid-3 { grid-template-columns: 1fr; } }
.auth-forgot { text-align: center; margin-top: 0.9rem; font-size: 0.9rem; }
.auth-forgot a { color: var(--muted); }
.auth-forgot a:hover { color: var(--gold-dark); }
.admin-header-tools {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* mobile niceties: 16px inputs prevent iOS auto-zoom, larger tap targets */
@media (max-width: 560px) {
    input[type="text"], input[type="tel"], input[type="email"],
    input[type="password"], input[type="number"], input[type="search"],
    textarea, select { font-size: 16px; }
    .btn-large { width: 100%; }
    .hero { padding: 2rem 0.4rem 1.6rem; }
    .hero h1 { font-size: 1.65rem; }
    .lead { font-size: 0.97rem; }
    .listing-body { flex-direction: column; }
    .listing-photos { max-width: none; }
    .wa-float { right: 12px; bottom: 12px; }
}

/* ---------------------------------------------------------- what we buy */
.what-we-buy {
    margin-top: 2.5rem;
    text-align: center;
}
.what-we-buy h2 { font-size: 1.7rem; }
.buy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    text-align: left;
}
.buy-card {
    display: block;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.15s, box-shadow 0.15s;
}
.buy-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(36, 29, 14, 0.15);
    border-color: var(--gold);
}
.buy-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.buy-card h3 {
    padding: 0.8rem 1rem 0;
    color: var(--gold-dark);
}
.buy-card p {
    padding: 0.2rem 1rem 1rem;
    font-size: 0.92rem;
    color: var(--muted);
}
@media (max-width: 700px) {
    .buy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }
    .buy-card h3 { font-size: 0.92rem; padding: 0.55rem 0.7rem 0; }
    .buy-card p { font-size: 0.78rem; padding: 0.15rem 0.7rem 0.75rem; }
    .bought-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }
    .bought-card strong { font-size: 0.85rem; }
    .bought-card span { font-size: 0.75rem; }
    .steps { grid-template-columns: 1fr; }
}
.photo-credits {
    margin-top: 0.9rem;
    font-size: 0.75rem;
    color: var(--muted);
}
.photo-credits a { color: var(--muted); }

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-top: 3rem;
}
.steps-title {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.7rem;
    margin-bottom: 0.2rem;
}
.step {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.4rem;
    text-align: center;
}
.step-num {
    width: 2.4rem;
    height: 2.4rem;
    line-height: 2.4rem;
    margin: 0 auto 0.7rem;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ---------------------------------------------------------------- forms */
.form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
}
.form-card-narrow { max-width: 420px; margin: 2rem auto; }
.form-row { margin-bottom: 1.1rem; }
.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
}
input[type="text"], input[type="tel"], input[type="password"], textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    background: #fffdf8;
}
input:focus, textarea:focus {
    outline: 2px solid var(--gold);
    border-color: var(--gold);
}
input[type="file"] { font: inherit; }
.photo-toolbar {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
}
.photo-thumb {
    position: relative;
}
.photo-thumb img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: block;
}
.photo-remove {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: var(--danger);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}
.photo-remove:hover { background: #8c3123; }
select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    background: #fffdf8;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.form-alt {
    margin-top: 1.2rem;
    text-align: center;
    color: var(--muted);
}
.test-form { margin-top: 1rem; }
.btn-join { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-join:hover { background: var(--gold); color: #fff; }
.badge-pending { color: var(--gold-dark); }

/* ----------------------------------------------------------- auth pages */
.container-auth {
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 5vw 4rem;
    background:
        radial-gradient(1100px 550px at 85% -10%, rgba(201, 151, 28, 0.14), transparent 70%),
        radial-gradient(900px 500px at 5% 110%, rgba(201, 151, 28, 0.10), transparent 70%),
        var(--bg);
}
.container-auth .flashes {
    width: 100%;
    max-width: 460px;
}
.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2.5rem 2.3rem 2.2rem;
    box-shadow: 0 18px 50px rgba(36, 29, 14, 0.12);
}
.auth-badge {
    width: 54px;
    height: 54px;
    margin: 0 auto 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, #f6d76b, #c9971c 60%, #a67b12);
    box-shadow: 0 8px 20px rgba(201, 151, 28, 0.38);
}
.auth-badge-dark {
    background: linear-gradient(135deg, #4d3d15, var(--ink));
    box-shadow: 0 8px 20px rgba(36, 29, 14, 0.35);
    font-size: 1.3rem;
}
.auth-card h1 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}
.auth-sub {
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1.7rem;
}
.auth-card label {
    font-size: 0.85rem;
    letter-spacing: 0.01em;
}
.auth-card input,
.auth-card select {
    padding: 0.72rem 0.95rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: #fbf8f1;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.auth-card input:focus {
    outline: none;
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(201, 151, 28, 0.16);
}
.pw-field { position: relative; }
.pw-field input { width: 100%; padding-right: 4.3rem; }
.pw-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--gold-dark);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.32rem 0.55rem;
    border-radius: 7px;
    cursor: pointer;
}
.pw-toggle:hover { background: rgba(201, 151, 28, 0.12); }
.btn-auth {
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #d9a82a, #a67b12);
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 6px 16px rgba(166, 123, 18, 0.28);
}
.btn-auth:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(166, 123, 18, 0.4);
}
.btn-auth:active { transform: translateY(0); }
.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1.5rem 0 0.9rem;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    white-space: nowrap;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--border);
}
.auth-alt { text-align: center; }
.auth-alt a {
    color: var(--gold-dark);
    font-weight: 700;
    text-decoration: none;
}
.auth-alt a:hover { text-decoration: underline; }
@media (max-width: 560px) {
    .auth-card { padding: 1.8rem 1.3rem; }
    .container-auth { padding: 1.5rem 4vw 3rem; }
}

/* ------------------------------------------------------ modern sell page */
.sell-card { max-width: 720px; }
.sell-card .auth-sub { max-width: 460px; margin-left: auto; margin-right: auto; }
.sell-section {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.2rem 1.2rem 0.6rem;
    margin-bottom: 1.1rem;
    background: #fdfbf5;
}
.sell-section-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    font-size: 0.98rem;
    margin-bottom: 0.9rem;
}
.sell-section-title span {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #f6d76b, #c9971c);
    color: #fff;
    font-size: 0.8rem;
}
.sell-card textarea {
    padding: 0.72rem 0.95rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: #fbf8f1;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.sell-card textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(201, 151, 28, 0.16);
}
.drop-zone {
    border: 2px dashed #d8c690;
    border-radius: 12px;
    background: #fbf8f1;
    text-align: center;
    padding: 1.4rem 1rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    margin-bottom: 0.8rem;
}
.drop-zone:hover, .drop-zone.drop-hover, .drop-zone:focus-visible {
    border-color: var(--gold);
    background: #fff;
    outline: none;
}
.drop-zone-icon { font-size: 1.7rem; }
.drop-zone-text { margin: 0.2rem 0 0.15rem; }
.drop-zone-text strong { color: var(--gold-dark); }
.sell-card .photo-preview { margin-bottom: 0.6rem; }
.btn-send { font-size: 1.1rem; padding: 0.95rem 1rem; }
.sell-reassure {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 0.8rem;
}

/* -------------------------------------------------------------- flashes */
.flashes { margin-bottom: 1.2rem; }
.flash {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}
.flash-error { background: #fdeceb; color: var(--danger); border: 1px solid #f2c4bd; }
.flash-success { background: #e9f6ed; color: var(--success); border: 1px solid #bfe3ca; }

/* -------------------------------------------------------------- success */
.success-card {
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 3rem 2rem;
}
.success-icon {
    width: 4rem;
    height: 4rem;
    line-height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    font-size: 2rem;
}
.success-card .btn { margin: 0.3rem; }

/* ---------------------------------------------------------------- admin */
.container-admin {
    max-width: none;
    padding: 0;
}
.admin-layout {
    display: flex;
    min-height: calc(100vh - 120px);
}
.admin-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--ink);
    color: #cbbfa3;
    padding: 1.4rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.admin-sidebar-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    padding: 0 0.7rem;
}
.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.admin-nav a {
    color: #e6dcc2;
    text-decoration: none;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    font-size: 0.95rem;
}
.admin-nav a:hover { background: rgba(255, 255, 255, 0.07); }
.admin-nav a.active {
    background: var(--gold);
    color: #fff;
    font-weight: 600;
}
.admin-sidebar-foot {
    margin-top: auto;
    padding: 0 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.admin-sidebar-foot a { color: #a99c7d; font-size: 0.85rem; text-decoration: none; }
.admin-sidebar-foot a:hover { color: var(--gold); }
.admin-main {
    flex: 1;
    min-width: 0;
    padding: 1.6rem 2vw 3rem;
    background: var(--bg);
}
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}
.admin-header h1 { font-size: 1.5rem; }
.admin-search { display: flex; gap: 0.5rem; }
.admin-search input {
    width: 280px;
    max-width: 60vw;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    background: #fff;
}

/* stat cards */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.2rem;
}
.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.1rem;
}
.stat-accent {
    background: linear-gradient(135deg, #d9a82a, #a67b12);
    border: none;
    color: #fff;
}
.stat-accent .stat-label { color: #f4e8c8; }
.stat-value { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.stat-label { font-size: 0.82rem; color: var(--muted); margin-top: 0.15rem; }

/* panels */
.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.2rem;
}
.panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    min-width: 0;
}
.panel h2 { font-size: 1.05rem; margin-bottom: 0.8rem; }

/* chart */
.chart {
    display: flex;
    align-items: stretch;
    gap: 4px;
    height: 150px;
}
.chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.chart-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 2px;
}
.chart-count { font-size: 0.68rem; color: var(--muted); line-height: 1; }
.chart-bar {
    width: 100%;
    min-height: 2px;
    background: linear-gradient(180deg, #d9a82a, #a67b12);
    border-radius: 3px 3px 0 0;
}
.chart-label {
    font-size: 0.62rem;
    color: var(--muted);
    text-align: center;
    margin-top: 4px;
    overflow: hidden;
}

/* pipeline list */
.pipeline { list-style: none; }
.pipeline li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.2rem;
    border-bottom: 1px solid var(--border);
}
.pipeline li:last-child { border-bottom: none; }
.pipeline a {
    color: var(--ink);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pipeline a:hover { color: var(--gold-dark); }

/* status colors */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.status-pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 99px;
    vertical-align: middle;
}
.status-new,           .status-border-new           { --sc: #b3402f; }
.status-called,        .status-border-called        { --sc: #b98708; }
.status-offer_made,    .status-border-offer_made    { --sc: #7a5c9e; }
.status-bought,        .status-border-bought        { --sc: #2e7d43; }
.status-rejected,      .status-border-rejected      { --sc: #8b8577; }
.status-dot  { background: var(--sc); }
.status-pill { background: color-mix(in srgb, var(--sc) 14%, #fff); color: var(--sc); }
[class*="status-border-"] { border-left: 5px solid var(--sc); }

/* tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.admin-table th {
    text-align: left;
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.4rem 0.6rem;
    border-bottom: 2px solid var(--border);
}
.admin-table td {
    padding: 0.55rem 0.6rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.badge-admin {
    background: var(--gold);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.12rem 0.5rem;
    border-radius: 99px;
}
.users-table { overflow-x: auto; display: block; }
.users-actions { display: flex; gap: 0.4rem; align-items: center; }

/* filter tabs */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
}
.filter-tabs a {
    text-decoration: none;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 0.3rem 0.85rem;
    font-size: 0.85rem;
}
.filter-tabs a span { color: var(--muted); font-size: 0.78rem; }
.filter-tabs a:hover { border-color: var(--gold); }
.filter-tabs a.active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.filter-tabs a.active span { color: var(--gold); }

/* listing extras */
.listing-actions select {
    width: auto;
    padding: 0.35rem 0.6rem;
    font-size: 0.88rem;
}
.notes { margin-top: 0.8rem; }
.notes summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
}
.notes form { display: flex; gap: 0.5rem; margin-top: 0.5rem; align-items: flex-start; }
.notes textarea { flex: 1; font-size: 0.9rem; }
.notes .deal-form { flex-direction: column; align-items: stretch; }
.deal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}
.deal-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 600;
}
.deal-grid input {
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    font-size: 0.9rem;
}
.deal-form > .btn { align-self: flex-start; }
.offer-tag {
    display: inline-block;
    background: color-mix(in srgb, #2e7d43 14%, #fff);
    color: #2e7d43;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.1rem 0.55rem;
    border-radius: 99px;
    margin-left: 0.4rem;
}
.backup-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; align-items: center; }

@media (max-width: 760px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar {
        width: auto;
        flex-direction: row;
        align-items: center;
        gap: 0.4rem;
        padding: 0.55rem 4vw;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .admin-sidebar::-webkit-scrollbar { display: none; }
    .admin-sidebar-title { display: none; }
    .admin-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.3rem;
    }
    .admin-nav a {
        white-space: nowrap;
        padding: 0.45rem 0.75rem;
        font-size: 0.88rem;
    }
    .admin-sidebar-foot {
        margin: 0 0 0 0.5rem;
        flex-direction: row;
        align-items: center;
        gap: 0.7rem;
        flex-shrink: 0;
    }
    .admin-sidebar-foot a { white-space: nowrap; font-size: 0.8rem; }

    .admin-main { padding: 1rem 4vw 2.5rem; }
    .admin-header { margin-bottom: 0.9rem; }
    .admin-header h1 { font-size: 1.3rem; }

    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .stat-card { padding: 0.75rem 0.85rem; border-radius: 10px; }
    .stat-value { font-size: 1.15rem; }
    .stat-label { font-size: 0.72rem; }

    .panel { padding: 0.9rem 1rem; }
    .panel-grid { gap: 0.7rem; }
    .chart { height: 110px; gap: 3px; }
    .chart-label { font-size: 0.55rem; }
    .chart-col:nth-child(even) .chart-label { visibility: hidden; }

    .admin-table { display: block; overflow-x: auto; white-space: nowrap; }
    .filter-tabs a { font-size: 0.78rem; padding: 0.28rem 0.7rem; }
    .listing { padding: 1rem; }
    .listing-actions { flex-wrap: wrap; gap: 0.5rem; }
    .admin-search input { width: 100%; max-width: none; flex: 1; }
    .admin-header-tools {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    .admin-search { display: flex; width: 100%; }
    .admin-header-tools > .btn { text-align: center; }
}
.listing {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.4rem;
    margin-bottom: 1.4rem;
}
.listing-contacted { opacity: 0.75; border-left: 5px solid var(--success); }
.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}
.listing-header h2 { font-size: 1.25rem; }
.listing-date { color: var(--muted); font-size: 0.85rem; }
.listing-body {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.listing-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 320px;
}
.listing-photos img {
    width: 95px;
    height: 95px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.listing-info { flex: 1; min-width: 240px; }
.listing-info p { margin-bottom: 0.35rem; }
.phone-link {
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 1.05rem;
}
.listing-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border);
}
.badge {
    color: var(--success);
    font-weight: 600;
    font-size: 0.9rem;
}

@media (max-width: 560px) {
    .hero h1 { font-size: 1.7rem; }
    .form-card { padding: 1.2rem; }
}
