/* ==========================================================================
   Laylatna — Design System
   Luxury / elegant / modern / feminine without excess — Egyptian market
   ========================================================================== */

:root {
    --ivory: #FAF7F2;
    --dusty-rose: #C98F9B;
    --champagne-gold: #C8A96B;
    --deep-plum: #3F3035;
    --white: #FFFFFF;

    --text-main: var(--deep-plum);
    --text-muted: #7A6B6E;
    --border-soft: #EAE2DC;

    --radius-md: 14px;
    --radius-lg: 22px;
    --shadow-soft: 0 10px 30px rgba(63, 48, 53, 0.08);

    --font-ar: 'Cairo', 'Tajawal', sans-serif;
    --font-en: 'Poppins', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--ivory);
    color: var(--text-main);
    font-family: var(--font-ar);
    -webkit-font-smoothing: antialiased;
}

html[lang="en"] body { font-family: var(--font-en); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Navbar ---------- */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-soft);
    background: var(--white);
}
.navbar-inner {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    padding: 0 40px;
    gap: 16px;
    box-sizing: border-box;
}
@media (max-width: 720px) {
    .navbar-inner { padding: 0 16px; }
}
.navbar .logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--deep-plum);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.navbar .logo span { color: var(--champagne-gold); }
.navbar .logo-img {
    height: 108px;
    width: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}
@media (max-width: 720px) {
    .navbar .logo-img { height: 68px; }
}
.navbar nav.nav-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--ivory);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 6px;
    flex-shrink: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.navbar nav.nav-pill::-webkit-scrollbar { display: none; }
.navbar nav.nav-pill a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    padding: 9px 20px;
    border-radius: 999px;
    transition: background .15s ease, color .15s ease;
    white-space: nowrap;
}
.navbar nav.nav-pill a:hover { background: rgba(63,48,53,.06); }
.navbar nav.nav-pill a.active {
    background: var(--deep-plum);
    color: var(--white);
}
.navbar .nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    white-space: nowrap;
}
.navbar .nav-actions a { font-size: 15px; color: var(--text-main); }
.navbar .nav-actions a:hover { color: var(--dusty-rose); }
.lang-toggle {
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    background: var(--ivory);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--dusty-rose); color: var(--white); }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(201,143,155,.35); }
.btn-outline { background: transparent; color: var(--deep-plum); border: 1.5px solid var(--deep-plum); }
.btn-gold { background: var(--champagne-gold); color: var(--white); }
.btn-block { width: 100%; text-align: center; }

/* ---------- Hero ---------- */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--white) 0%, var(--ivory) 100%);
}
.hero h1 {
    font-size: clamp(28px, 5vw, 46px);
    line-height: 1.3;
    margin: 0 0 18px;
    color: var(--deep-plum);
}
.hero p {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 30px;
}
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Section ---------- */
.section { padding: 60px 0; }
.section-title {
    font-size: 26px;
    margin-bottom: 30px;
    text-align: center;
    color: var(--deep-plum);
}

/* ---------- Cards ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    border: 1px solid var(--border-soft);
}
.card img { height: 160px; width: 100%; object-fit: contain; background: var(--ivory, #faf6f1); }
.card-body { padding: 16px; }
.card-body h3 { margin: 0 0 6px; font-size: 17px; }
.card-body .price { color: var(--dusty-rose); font-weight: 700; }
.badge {
    display: inline-block;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(200,169,107,.15);
    color: var(--champagne-gold);
    font-weight: 700;
}

/* ---------- Category pill ---------- */
.category-pill {
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 22px 14px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}
.category-pill:hover { border-color: var(--dusty-rose); }

/* ---------- Forms ---------- */
.form-card {
    max-width: 480px;
    margin: 60px auto;
    background: var(--white);
    padding: 34px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    font-family: inherit;
    font-size: 14px;
    background: var(--ivory);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--dusty-rose);
}
.error-box {
    background: #FBEAEA;
    color: #A33;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 16px;
}
.success-box {
    background: #E9F5EC;
    color: #2E7D46;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 16px;
}

/* ---------- Budget widgets ---------- */
.budget-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 30px;
}
.budget-tile {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 18px;
    text-align: center;
    border: 1px solid var(--border-soft);
}
.budget-tile .value { font-size: 22px; font-weight: 700; color: var(--deep-plum); }
.budget-tile .label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.budget-tile.over .value { color: #C0392B; }

.progress-bar {
    height: 10px;
    border-radius: 999px;
    background: var(--border-soft);
    overflow: hidden;
}
.progress-bar > div { height: 100%; background: var(--champagne-gold); }
.progress-bar.over > div { background: #C0392B; }

table.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-md); overflow: hidden; }
table.data-table th, table.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); text-align: start; font-size: 14px; }
table.data-table th { background: var(--ivory); font-weight: 700; }

/* ---------- Video embeds (link-only, responsive 16:9) ---------- */
.video-embed { position: relative; width: 100%; padding-top: 56.25%; border-radius: var(--radius-md); overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-fallback { display: inline-block; margin-top: 8px; }
footer { background: var(--deep-plum); color: var(--ivory); padding: 40px 0; text-align: center; font-size: 14px; margin-top: 60px; }

/* ---------- Utility ---------- */
.flex { display: flex; align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 14px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

@media (max-width: 720px) {
    .mobile-menu-toggle { display: block !important; }
    .navbar nav.nav-pill, .navbar .nav-actions { display: none; }
    .navbar nav.nav-pill.open, .navbar .nav-actions.open {
        display: flex; flex-direction: column; align-items: stretch;
        position: absolute; top: 64px; inset-inline: 0; background: var(--white);
        padding: 16px; border-bottom: 1px solid var(--border-soft); border-radius: 0;
    }
    .navbar nav.nav-pill.open a { text-align: center; }
}

/* ---- Footer: contact block (v5) ---- */
footer .footer-brand { font-size: 15px; opacity: .9; }
footer .footer-title { margin: 28px 0 16px; font-size: 20px; color: var(--ivory); }
.contact-cards { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.contact-card { display: flex; align-items: center; gap: 12px; min-width: 250px; padding: 12px 18px; border-radius: 16px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: var(--ivory); text-align: start;
  text-decoration: none; transition: transform .2s, background .2s, border-color .2s; }
.contact-card:hover { transform: translateY(-3px); background: rgba(255,255,255,.12); border-color: var(--brand); }
.contact-ic { width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0; }
.contact-ic svg { width: 24px; height: 24px; }
.contact-txt { display: flex; flex-direction: column; line-height: 1.5; }
.contact-txt strong { font-size: 14px; }
.contact-txt small { opacity: .7; font-size: 12px; }
.footer-contact-btn { margin-top: 22px; }
footer .footer-copy { margin-top: 24px; opacity: .6; }
.wa-float { position: fixed; bottom: 20px; inset-inline-end: 20px; width: 56px; height: 56px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 999; text-decoration: none; }
/* contact page */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }
.contact-layout .contact-cards { flex-direction: column; justify-content: flex-start; }
.contact-layout .contact-card { background: var(--white); color: var(--deep-plum); border: 1px solid #eee; box-shadow: 0 6px 20px rgba(0,0,0,.06); }
@media (max-width: 800px) { .contact-layout { grid-template-columns: 1fr; } .contact-card { min-width: 100%; } }

/* ---- Multi-select category checklist (v6) ---- */
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 340px; overflow-y: auto; padding: 4px; }
.check-item { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; padding: 10px 12px; border: 1px solid #e6dfd8;
  border-radius: 12px; background: var(--white); cursor: pointer; font-weight: 600; font-size: 14px; }
.check-item input { width: 18px !important; height: 18px; flex-shrink: 0; accent-color: var(--dusty-rose); }
.check-item:has(input:checked) { border-color: var(--dusty-rose); background: #fbf1f3; }
@media (max-width: 520px) { .check-list { grid-template-columns: 1fr; } }

/* ---- Onboarding payment block (v7) ---- */
.pay-box { margin: 22px 0; padding: 20px; border-radius: 16px; background: var(--ivory); border: 1px solid var(--champagne-gold); }
.amount-due { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; background: var(--white); border: 1px dashed var(--champagne-gold); font-size: 16px; }
.amount-due strong { font-size: 28px; color: var(--dusty-rose); }
.policy-note { margin: 10px 0 16px; padding: 12px 14px; border-radius: 12px; background: #fff8e6; border: 1px solid var(--champagne-gold); font-size: 13.5px; line-height: 1.8; }
.policy-note p { margin: 4px 0 0; }

/* ---- Show full images inside fixed-size cards (v9): same box, no cropping ---- */
.card img, .card picture img, .card [class*="slide"] img, .card [class*="media"] img { object-fit: contain !important; object-position: center; background-color: var(--ivory, #faf6f1); }

/* =====================================================================
   Vendor mini-website: cover frame + Light / Dark themes (v10)
   ===================================================================== */
.cover-frame { position: relative; width: 100%; aspect-ratio: 820 / 312; border-radius: var(--radius-lg); overflow: hidden; background: #eee; }
.cover-frame img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.cover-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.cover-placeholder span { padding: 8px 18px; border-radius: 999px; background: rgba(255,255,255,.55); color: #4a3b00; font-weight: 700; font-size: 14px; }
/* temporary cover colours: light = yellow, dark = green */
.cover-frame.theme-light .cover-placeholder { background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.55) 0, transparent 38%),
    radial-gradient(circle at 85% 90%, rgba(255,255,255,.35) 0, transparent 42%),
    linear-gradient(135deg, #FFE98A 0%, #F8C93E 100%); }
.cover-frame.theme-dark .cover-placeholder { background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.14) 0, transparent 38%),
    radial-gradient(circle at 85% 90%, rgba(255,255,255,.10) 0, transparent 42%),
    linear-gradient(135deg, #0F3D2E 0%, #1F8A5B 100%); }
.cover-frame.theme-dark .cover-placeholder span { background: rgba(0,0,0,.35); color: #d9fbe9; }

/* header row: logo overlaps the cover like a modern profile page */
.vp-head { margin-top: 0; padding: 0 8px; }
.vp-logo { width: 128px; height: 128px; object-fit: cover; border-radius: 24px; border: 4px solid var(--white);
  margin-top: -56px; position: relative; z-index: 2; box-shadow: 0 10px 28px rgba(0,0,0,.18); background: var(--white); }
.vp-head h1 { margin: 6px 0 4px; }
@media (max-width: 600px) { .vp-logo { width: 96px; height: 96px; margin-top: -40px; border-radius: 20px; } }

/* ---- Light theme (default): clean, bright ---- */
.vp-theme.theme-light { --vp-bg: #FFFFFF; --vp-surface: #FFFFFF; --vp-text: #2B2226; --vp-muted: #7A6B6E; --vp-border: #EEE6DD; }
/* ---- Dark theme: deep charcoal with emerald accent ---- */
.vp-theme.theme-dark { --vp-bg: #14110F; --vp-surface: #1F1B19; --vp-text: #F4EEE9; --vp-muted: #B7ABA6; --vp-border: #2E2927;
  --white: #1F1B19; --ivory: #14110F; --text-main: #F4EEE9; --text-muted: #B7ABA6; --champagne-gold: #E2C07A; --dusty-rose: #2FA874; }
.vp-theme { background: var(--vp-bg); color: var(--vp-text); border-radius: var(--radius-lg); padding: 14px 14px 28px; }
.vp-theme.theme-light { background: transparent; padding: 0; }
.vp-theme h1, .vp-theme h2, .vp-theme h3, .vp-theme p, .vp-theme label, .vp-theme strong { color: inherit; }
.vp-theme .text-muted { color: var(--vp-muted); }
.vp-theme .card, .vp-theme .form-card { background: var(--vp-surface); border: 1px solid var(--vp-border); }
.vp-theme.theme-dark .card { box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.vp-theme .badge { background: rgba(200,169,107,.18); color: var(--champagne-gold); }
.vp-theme.theme-dark .badge { background: rgba(47,168,116,.16); color: #7BE0B1; }
.vp-theme.theme-dark .btn-outline { color: #F4EEE9; border-color: #4a423f; background: transparent; }
.vp-theme.theme-dark .btn-outline:hover { border-color: #2FA874; color: #7BE0B1; }
.vp-theme.theme-dark .btn-primary { background: linear-gradient(135deg, #1F8A5B, #2FA874); color: #fff; }
.vp-theme.theme-dark input, .vp-theme.theme-dark textarea, .vp-theme.theme-dark select { background: #14110F; color: #F4EEE9; border-color: #3a3330; }
.vp-theme.theme-dark a:not(.btn) { color: #7BE0B1; }
.vp-theme.theme-dark .vp-logo { border-color: #14110F; }
.vp-theme .card img, .vp-theme .card-body img { background: var(--vp-bg); }
.vp-theme.theme-dark hr { border-color: #2E2927; }

/* ---- Dashboard theme picker ---- */
.theme-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; max-width: 560px; }
.theme-option { margin: 0; }
.theme-option button { width: 100%; text-align: start; padding: 14px; border-radius: 18px; border: 2px solid #E6DFD8; background: var(--white);
  cursor: pointer; display: flex; flex-direction: column; gap: 6px; font-family: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.theme-option button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.theme-option.is-active button { border-color: var(--dusty-rose); box-shadow: 0 0 0 4px rgba(201,143,155,.18); }
.theme-option small { color: var(--text-muted); }
.theme-preview { display: block; position: relative; height: 96px; border-radius: 12px; overflow: hidden; margin-bottom: 4px; }
.theme-preview.theme-light { background: #FFFFFF; border: 1px solid #EEE6DD; }
.theme-preview.theme-dark { background: #14110F; }
.theme-preview .tp-cover { position: absolute; inset: 0 0 auto 0; height: 46px; }
.theme-preview.theme-light .tp-cover { background: linear-gradient(135deg, #FFE98A, #F8C93E); }
.theme-preview.theme-dark .tp-cover { background: linear-gradient(135deg, #0F3D2E, #1F8A5B); }
.theme-preview .tp-logo { position: absolute; top: 32px; inset-inline-start: 12px; width: 28px; height: 28px; border-radius: 9px; border: 3px solid #fff; background: #ddd; }
.theme-preview.theme-dark .tp-logo { border-color: #14110F; background: #3a3330; }
.theme-preview .tp-line { position: absolute; top: 66px; inset-inline-start: 12px; width: 55%; height: 7px; border-radius: 4px; background: #E6DFD8; }
.theme-preview .tp-line.short { top: 80px; width: 32%; }
.theme-preview.theme-dark .tp-line { background: #3a3330; }
.vp-head > div { padding-top: 16px; }
@media (max-width: 600px) { .vp-head > div { padding-top: 4px; } }

/* =====================================================================
   Vendor mini-website shell: own header + footer (v11)
   ===================================================================== */
body.mini-dark { background: #14110F; color: #F4EEE9; }
body.mini-light { background: #FAF7F2; }
body.mini-dark .vp-theme.theme-dark { background: transparent; padding: 0; }
.ms-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0,0,0,.06); }
.ms-header.theme-light { background: rgba(255,255,255,.92); color: #2B2226; }
.ms-header.theme-dark { background: rgba(20,17,15,.92); color: #F4EEE9; border-bottom-color: #2E2927; }
.ms-header-inner { max-width: 1180px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ms-brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.ms-brand img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.ms-brand span { font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ms-link { color: inherit; opacity: .75; font-size: 14px; text-decoration: none; white-space: nowrap; }
.ms-link:hover { opacity: 1; }
.ms-btn { padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.ms-header.theme-light .ms-btn { background: #2B2226; color: #fff; }
.ms-header.theme-dark .ms-btn { background: linear-gradient(135deg, #1F8A5B, #2FA874); color: #fff; }
@media (max-width: 640px) { .ms-brand span { display: none; } .ms-header-inner { padding: 8px 12px; } .ms-link { font-size: 12px; } }

.ms-footer { margin-top: 60px; padding: 44px 20px 28px; }
.ms-footer.theme-light { background: #2B2226; color: #F4EEE9; }
.ms-footer.theme-dark { background: #0B0908; color: #F4EEE9; border-top: 1px solid #2E2927; }
.ms-footer-inner { max-width: 1180px; margin: 0 auto; text-align: center; }
.ms-footer-brand { display: inline-flex; align-items: center; gap: 12px; text-align: start; }
.ms-footer-brand img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; }
.ms-footer-brand small { display: block; opacity: .65; }
.ms-footer-title { margin: 26px 0 16px; font-size: 18px; color: inherit; }
.ms-contacts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ms-contact { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 14px; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12); color: inherit; text-decoration: none; text-align: start; min-width: 190px; transition: transform .2s, border-color .2s; }
.ms-contact:hover { transform: translateY(-3px); border-color: #fff; }
.ms-contact .ic { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ms-contact.wa .ic { background: #25D366; color: #fff; }
.ms-contact .ic svg { width: 21px; height: 21px; }
.ms-contact small { display: block; opacity: .65; font-size: 12px; }
.ms-contact b { font-size: 14px; }
.ms-address { margin-top: 18px; opacity: .8; }
.ms-footer-bottom { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; opacity: .65; }
.ms-footer-bottom a { color: inherit; text-decoration: underline; }

/* social icon buttons next to "Call" (v12) */
.btn-social { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--sc, #444); color: #fff;
  text-decoration: none; transition: transform .2s, box-shadow .2s; flex-shrink: 0; }
.btn-social svg { width: 21px; height: 21px; }
.btn-social:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.25); }
.vp-theme.theme-dark .btn-social[style*="#111111"], .vp-theme.theme-dark .btn-social[style*="#000000"] { background: #2b2725; border: 1px solid #4a423f; }

/* About page (v13) */
.about-hero { max-width: 820px; margin: 0 auto; padding: 28px 30px; border-radius: var(--radius-lg); background: var(--white);
  box-shadow: 0 10px 30px rgba(0,0,0,.06); font-size: 17px; line-height: 2; text-align: center; }
.about-hero p { margin: 0 0 10px; }
.about-text { max-width: 760px; margin: 0 auto; font-size: 16px; line-height: 2; }
.about-tags { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.about-tags .badge { font-size: 15px; padding: 10px 18px; }
.about-cta { margin-top: 44px; padding: 34px 20px; text-align: center; border-radius: var(--radius-lg); background: var(--ivory); border: 1px dashed var(--champagne-gold); }
footer .footer-links { margin-top: 18px; opacity: .85; }
footer .footer-links a { color: inherit; text-decoration: underline; }

/* Admin analytics (v14) */
.an-bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding: 14px 10px 8px; background: var(--white); border-radius: var(--radius-md); box-shadow: 0 6px 18px rgba(0,0,0,.05); direction: ltr; }
.an-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
.an-bar-fill { width: 100%; max-width: 28px; background: linear-gradient(180deg, var(--dusty-rose), #e3b3bc); border-radius: 6px 6px 2px 2px; display: block; }
.an-bar-val { font-size: 11px; color: var(--text-muted); margin-bottom: 3px; min-height: 14px; }
.an-bar-day { font-size: 10px; color: var(--text-muted); margin-top: 5px; white-space: nowrap; }
.an-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 800px) { .an-two { grid-template-columns: 1fr; } }
.an-meter { height: 8px; border-radius: 6px; background: #eee; overflow: hidden; display: inline-block; width: 70%; vertical-align: middle; }
.an-meter span { display: block; height: 100%; background: var(--champagne-gold); }

/* ---- Services & Products catalogue cards ---- */
.pcard { display:flex; flex-direction:column; }
.pcard > img, .pcard .pcard-noimg { height: 200px; width: 100%; object-fit: contain; background: var(--ivory, #faf6f1); cursor: zoom-in; }
.pcard .pcard-noimg { display:flex; align-items:center; justify-content:center; font-size:46px; cursor:default; }
.pcard .card-body { display:flex; flex-direction:column; gap:8px; flex:1; }
.pcard-tags { display:flex; gap:6px; flex-wrap:wrap; }
.pcard h3 { margin:0; }
.pcard-desc { margin:0; font-size:14px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.pcard .price { margin:0; font-size:18px; }
.pcard-old { text-decoration:line-through; color:var(--text-muted,#888); font-weight:400; font-size:14px; margin-inline-end:6px; }
.pcard .pcard-off { background:#c53030; color:#fff; }
.pcard-actions { display:flex; gap:8px; flex-wrap:wrap; }
.pcard-actions form { margin:0; display:contents; }
.pcard-actions .btn { flex:1; min-width:120px; padding:7px 10px; font-size:13px; text-align:center; }
.pcard-contact { display:flex; gap:8px; align-items:center; }
.pcard-contact a { display:inline-flex; align-items:center; justify-content:center; gap:6px; border-radius:999px; height:40px; text-decoration:none; font-weight:600; }
.pcard-contact .pc-wa { width:40px; background:#25D366; color:#fff; }
.pcard-contact .pc-tel { padding:0 14px; border:1px solid currentColor; color:var(--text, #333); flex:1; }
.pcard-vendor { display:flex; align-items:center; justify-content:space-between; gap:8px; border-top:1px dashed #e4d9c8; padding-top:10px; margin-top:auto; }
.pcard-vendor .pv-name { font-weight:700; font-size:14px; }
.pcard-vendor .pv-ok { color:#2f855a; }
.pcard-vendor .btn { padding:6px 12px; font-size:13px; white-space:nowrap; }

/* ---- Support chat ---- */
.chat-wrap{display:grid;grid-template-columns:300px 1fr;gap:16px;align-items:start}
.chat-wrap.single{grid-template-columns:1fr;max-width:760px;margin:0 auto}
#chat-threads{background:#fff;border:1px solid #eadfd6;border-radius:14px;max-height:70vh;overflow:auto}
.chat-thread{display:block;padding:12px 14px;border-bottom:1px solid #f1e8e0;color:inherit;text-decoration:none}
.chat-thread.active,.chat-thread:hover{background:#fbf3ee}
.chat-thread-h{display:flex;justify-content:space-between;align-items:center;gap:8px}
.chat-thread small{color:#8a7b70}
.chat-prev{font-size:13px;color:#6b5d54;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-badge{background:#c53030;color:#fff;border-radius:999px;font-size:12px;padding:1px 8px;font-weight:700}
.chat-badge-nav{background:#c53030;color:#fff;border-radius:999px;font-size:11px;padding:1px 7px;margin-inline-start:4px;font-weight:700}
.chat-panel{background:#fff;border:1px solid #eadfd6;border-radius:14px;display:flex;flex-direction:column;overflow:hidden}
.chat-head{padding:12px 16px;border-bottom:1px solid #f1e8e0;font-weight:700}
.chat-msgs{height:55vh;min-height:320px;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px;background:#fdfaf7}
.chat-empty{margin:auto;color:#8a7b70;text-align:center}
.chat-msg{max-width:80%;padding:8px 12px;border-radius:14px;background:#fff;border:1px solid #eadfd6}
.chat-msg.mine{align-self:flex-start;background:#f6e3d8;border-color:#ecc9b8}
.chat-msg.theirs{align-self:flex-end}
.chat-msg.admin.theirs{background:#eef6f0;border-color:#cfe5d5}
.chat-who{font-size:12px;font-weight:700;color:#8a5a44;margin-bottom:2px}
.chat-body{white-space:pre-wrap;word-break:break-word}
.chat-time{font-size:11px;color:#8a7b70;margin-top:3px}
.chat-form{display:flex;gap:8px;padding:10px;border-top:1px solid #f1e8e0}
.chat-form textarea{flex:1;resize:none;height:48px;padding:10px;border:1px solid #e0d3c8;border-radius:10px;font:inherit}
@media(max-width:800px){.chat-wrap{grid-template-columns:1fr}#chat-threads{max-height:200px}}

/* ---- Admin navbar (same pill style as the site) ---- */
.navbar nav.nav-pill.admin-pill { flex-wrap: wrap; justify-content: center; overflow: visible; border-radius: 28px; max-width: 880px; }
.navbar nav.nav-pill.admin-pill a { padding: 8px 14px; font-size: 14px; }
.admin-navbar .chat-badge-nav { margin-inline-start: 2px; }
.admin-navbar nav.nav-pill a.active .chat-badge-nav { background: #fff; color: var(--deep-plum); }
@media (max-width: 720px) { .admin-navbar .navbar-inner { flex-wrap: wrap; gap: 8px; } .navbar nav.nav-pill.admin-pill, .admin-navbar .nav-actions { display: flex; } }

/* ---- Mobile menu fix (phase 50): the two opened panels (links + account actions) used to be
   absolutely positioned on the same spot, so the actions covered the main links. Now they stack
   under the logo row, in normal flow. ---- */
@media (max-width: 720px) {
    .navbar { position: relative; }
    .navbar .navbar-inner { flex-wrap: wrap; row-gap: 0; }
    .navbar nav.nav-pill.open,
    .navbar .nav-actions.open {
        position: static;
        flex: 0 0 100%;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
    .navbar nav.nav-pill.open {
        gap: 2px;
        padding: 10px 12px 6px;
        border: 0;
        border-top: 1px solid var(--border-soft);
        border-radius: 0;
        overflow: visible;
        background: var(--ivory);
    }
    .navbar nav.nav-pill.open a { padding: 12px 16px; font-size: 16px; border-radius: 12px; }
    .navbar nav.nav-pill.open a.active { background: var(--deep-plum); color: var(--white); }
    .navbar .nav-actions.open {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px 16px;
        padding: 10px 12px 14px;
        background: var(--ivory);
        border-bottom: 1px solid var(--border-soft);
    }
}

/* ---- Services page filters (phase 51) ---- */
.svc-filters { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 24px; }
.svc-filters .form-group { min-width: 0; margin-bottom: 0; }
.svc-filters .form-group label { display: block; }
.svc-filters .fg-checks label { display: flex; margin-bottom: 8px; font-weight: 600; }
.svc-filters .fg-checks input[type=checkbox] { width: 18px; height: 18px; flex: 0 0 auto; padding: 0; }
@media (max-width: 720px) {
    .svc-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .svc-filters .fg-wide { grid-column: 1 / -1; }
    .svc-filters .fg-checks { display: flex; flex-wrap: wrap; gap: 6px 22px; }
    .svc-filters .fg-checks label { margin-bottom: 0; }
    .svc-filters select, .svc-filters input[type=text], .svc-filters input[type=number] { font-size: 16px; }
}

/* Side gutters on narrow screens: ".section" sets "padding: 60px 0", which wiped the ".container" side padding
   on every <div class="container section">, so content touched the screen edges on phones (phase 51). */
@media (max-width: 1180px) {
    .container.section { padding-inline: 20px; }
}
@media (max-width: 480px) {
    .container.section { padding-inline: 16px; }
}
