:root {
    --brand: #d9480f;
    --brand-dark: #a8360a;
    --brand-soft: #fff1e8;
    --ink: #1d1a17;
    --muted: #6b645d;
    --cream: #fbf8f4;
    --line: #ece5dc;
    --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-link-color-rgb: 168, 54, 10;
}
body { background: var(--cream); color: var(--ink); }
h1, h2, h3, h4, h5 { font-weight: 800; letter-spacing: -0.01em; }
.text-muted { color: var(--muted) !important; }

/* ---------- Nav & footer ---------- */
.site-nav { background: #fff; border-bottom: 1px solid var(--line); }
.site-nav .nav-link { color: var(--ink); font-weight: 600; }
.site-nav .nav-link:hover { color: var(--brand); }
.brand { font-weight: 800; color: var(--ink) !important; }
.brand i { color: var(--brand); }
.site-logo { height: 46px; width: auto; max-width: 220px; object-fit: contain; display: block; }
@media (max-width: 575px) { .site-logo { height: 32px; max-width: 150px; } }
.site-footer { background: #fff; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer a { color: var(--ink); text-decoration: none; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline-brand { border-color: var(--brand); color: var(--brand); font-weight: 700; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #fff; padding: 56px 0 40px; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.1; }
.hero .lead { color: #d8d1c9; max-width: 640px; }
.hero-search { max-width: 640px; }
.hero-search .form-control { border-radius: 999px 0 0 999px; padding: .8rem 1.2rem; border: 0; }
.hero-search .btn { border-radius: 0 999px 999px 0; padding: .8rem 1.4rem; }
.hero-stat { color: #d8d1c9; font-size: .9rem; }
.hero-stat strong { color: #fff; }

/* ---------- Chips ---------- */
.chip-row { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px;
    padding: .4rem .95rem; font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.hero .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.hero .chip:hover { background: #fff; color: var(--ink); }

/* ---------- Section heads ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; margin: 2.2rem 0 1rem; }
.section-head h2 { font-size: 1.35rem; margin: 0; }
.section-head a { font-weight: 700; text-decoration: none; }

/* ---------- Video cards ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.video-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink);
    display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.video-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(29,26,23,.08); color: var(--ink); }
.video-thumb { position: relative; aspect-ratio: 9 / 13; background: #2a2521 center / cover no-repeat; display: flex; align-items: center; justify-content: center; }
.video-thumb .platform-mark { font-size: 3rem; color: rgba(255,255,255,.85); }
.video-thumb .play { position: absolute; width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.video-thumb .badge-platform { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: .75rem;
    border-radius: 999px; padding: .2rem .6rem; font-weight: 600; }
.video-thumb.thumb-tiktok { background-color: #111; }
.video-thumb.thumb-instagram { background-color: #8a2a6b; }
.video-thumb .thumb-caption { position: absolute; left: 12px; right: 12px; bottom: 12px; color: #fff; font-weight: 700; font-size: .95rem;
    line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.video-meta { padding: .7rem .8rem .8rem; }
.video-meta .place { font-weight: 700; font-size: .92rem; line-height: 1.25; }
.video-meta .by { color: var(--muted); font-size: .82rem; }

/* ---------- Place cards (mall shelves) ---------- */
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 260px); gap: 1rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory; }
.shelf > * { scroll-snap-align: start; }
.place-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.place-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); display: block; height: 100%; }
.place-card:hover { box-shadow: 0 10px 24px rgba(29,26,23,.08); color: var(--ink); }
.place-img { aspect-ratio: 4 / 3; background: #efe7de center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: #b9ab9c; font-size: 2.5rem; }
.place-body { padding: .8rem .9rem 1rem; }
.place-body h3 { font-size: 1rem; margin: 0 0 .2rem; font-weight: 800; }
.place-body .sub { color: var(--muted); font-size: .85rem; }
.perk { background: var(--brand-soft); color: var(--brand-dark); border-radius: 8px; padding: .3rem .55rem; font-size: .8rem; font-weight: 600; display: inline-block; margin-top: .5rem; }
.badge-halal { background: #e6f4ea; color: #1e6b3a; font-weight: 700; }
.badge-soft { background: #f1ece6; color: var(--ink); font-weight: 600; }

/* ---------- Creator cards & pages ---------- */
.creator-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.creator-card { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem .75rem; text-decoration: none; color: var(--ink); }
.creator-card:hover { border-color: var(--brand); color: var(--ink); }
.avatar { border-radius: 50%; object-fit: cover; background: var(--brand-soft); color: var(--brand-dark); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.avatar-sm { width: 32px; height: 32px; font-size: .85rem; }
.avatar-md { width: 72px; height: 72px; font-size: 1.6rem; }
.avatar-lg { width: 112px; height: 112px; font-size: 2.6rem; border: 4px solid #fff; }
.creator-hero { background: var(--ink); color: #fff; padding: 40px 0 28px; }
.creator-hero .bio { color: #d8d1c9; max-width: 620px; }
.creator-hero .social a { color: #fff; font-size: 1.3rem; margin-right: .8rem; }

/* ---------- Embeds ---------- */
.embed-wrap { background: #000; border-radius: 14px; overflow: hidden; margin: 0 auto; }
.embed-wrap.vertical { max-width: 340px; aspect-ratio: 9 / 16; }
.embed-wrap.horizontal { aspect-ratio: 16 / 9; }
.embed-wrap.instagram { max-width: 400px; aspect-ratio: auto; height: 640px; background: #fff; }
.embed-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Back office ---------- */
.office-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.office-nav { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.office-nav a { padding: .45rem .9rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; background: #fff; border: 1px solid var(--line); }
.office-nav a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; height: 100%; }
.stat .label { color: var(--muted); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.stat .value { font-size: 1.6rem; font-weight: 800; line-height: 1.2; margin-top: .2rem; }
.stat .hint { color: var(--muted); font-size: .82rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; }
.panel h5 { font-size: 1rem; }
.table-clean { background: #fff; }
.table-clean th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 700; }
.share-box { background: var(--brand-soft); border-radius: 12px; padding: .8rem 1rem; }
.share-box code { color: var(--brand-dark); word-break: break-all; }
.qr-card { max-width: 380px; margin: 0 auto; text-align: center; }
.qr-amount { font-size: 2.6rem; font-weight: 800; }
.form-section { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; margin-bottom: 1rem; }
.form-section h5 { margin-bottom: 1rem; }
.type-pick .btn-check:checked + .btn { background: var(--ink); color: #fff; border-color: var(--ink); }
.type-pick .btn { text-align: left; border: 1px solid var(--line); background: #fff; color: var(--ink); width: 100%; padding: .9rem 1rem; border-radius: 12px; }
.type-pick .btn small { display: block; color: inherit; opacity: .75; font-weight: 400; }

@media (max-width: 575px) {
    .video-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
    .hero { padding: 36px 0 28px; }
}

/* TikTok preview inside cards: shows the video's first frame; clicks go to the card link (tracked) */
.video-thumb { overflow: hidden; }
.video-thumb .thumb-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.video-thumb .play, .video-thumb .badge-platform { z-index: 2; }

/* ---------- v6: fees, referral box, member card ---------- */
.ref-code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; background: var(--brand-soft); color: var(--brand-dark); padding: .1rem .45rem; border-radius: 6px; }
.badge.fee-content { background: #7048e8; }
.badge.fee-user { background: #1c7ed6; }
.badge.fee-merchant { background: #2b8a3e; }
.fee-box { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .7rem; height: 100%; }
.fee-box .badge { margin-bottom: .35rem; }
.member-card { position: relative; max-width: 420px; aspect-ratio: 1.586; border-radius: 18px; padding: 1.3rem 1.4rem; color: #fff; overflow: hidden;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.member-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.12); }
.member-card .mc-brand { font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; }
.member-card .mc-club { font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; opacity: .85; }
.member-card .mc-name { font-size: 1.35rem; font-weight: 800; margin-top: 1.6rem; }
.member-card .mc-no { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .14em; opacity: .95; }
.member-card .mc-foot { position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.1rem; display: flex; justify-content: space-between; align-items: flex-end; font-size: .8rem; }
.member-card .mc-pts { font-size: 1.1rem; font-weight: 800; }
.member-card img.mc-logo { max-height: 34px; background: #fff; border-radius: 6px; padding: 2px 6px; }

/* ---------- v7: VIP Club card (your design as the background, details filled in on top) ---------- */
.vip-card { position: relative; container-type: inline-size; max-width: 640px; margin-inline: auto;
    filter: drop-shadow(0 12px 22px rgba(0,0,0,.35)); }
.vip-card img { display: block; width: 100%; height: auto; }
.vip-card .vc-v { position: absolute; transform: translateY(-52%); color: #f6c84a; font-weight: 800; font-size: 3.27cqw; letter-spacing: .02em;
    text-shadow: 0 1px 2px rgba(0,0,0,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62%; line-height: 1.2; }
.vip-card .vc-name { top: 49.8%; left: 30.2%; }
.vip-card .vc-no { top: 57.7%; left: 33.7%; letter-spacing: .06em; }
.vip-card .vc-since { top: 65.3%; left: 25.2%; }
.vip-card .vc-pts { top: 73.1%; left: 18.6%; }

/* ---------- v7: top-bar icon buttons ---------- */
.btn-icon { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; padding: .3rem .6rem; line-height: 1.2; }
.btn-icon:hover { border-color: var(--brand); color: var(--brand); }
.theme-light-icon { display: none; }
html[data-bs-theme=dark] .theme-light-icon { display: inline; }
html[data-bs-theme=dark] .theme-dark-icon { display: none; }

/* ---------- v7: welcome video with three buttons ---------- */
.hero-video { background: #000; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.hero-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.video-tabs button { border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; border-radius: 999px; padding: .35rem .9rem; font-weight: 700; font-size: .9rem; }
.video-tabs button.active, .video-tabs button:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- v7: dark mode ---------- */
html[data-bs-theme=dark] {
    --ink: #f3eee8; --muted: #aaa198; --cream: #14110e; --line: #312b26; --brand-soft: #3b2414; --surface: #1e1a16;
    --bs-link-color-rgb: 255, 140, 90; --bs-body-bg: #14110e; --bs-body-color: #f3eee8;
}
html[data-bs-theme=dark] .site-nav, html[data-bs-theme=dark] .site-footer, html[data-bs-theme=dark] .chip,
html[data-bs-theme=dark] .video-card, html[data-bs-theme=dark] .place-card, html[data-bs-theme=dark] .creator-card,
html[data-bs-theme=dark] .office-nav a, html[data-bs-theme=dark] .stat, html[data-bs-theme=dark] .panel,
html[data-bs-theme=dark] .table-clean, html[data-bs-theme=dark] .form-section, html[data-bs-theme=dark] .type-pick .btn,
html[data-bs-theme=dark] .fee-box { background: var(--surface); }
html[data-bs-theme=dark] .hero, html[data-bs-theme=dark] .creator-hero { background: #0b0a08; }
html[data-bs-theme=dark] .chip.active, html[data-bs-theme=dark] .office-nav a.active,
html[data-bs-theme=dark] .type-pick .btn-check:checked + .btn { background: #f3eee8; color: #14110e; border-color: #f3eee8; }
html[data-bs-theme=dark] .hero .chip { background: rgba(255,255,255,.08); }
html[data-bs-theme=dark] .hero .chip:hover { background: #fff; color: #14110e; }
html[data-bs-theme=dark] .text-dark { color: var(--ink) !important; }
html[data-bs-theme=dark] .bg-light { background-color: #2a2520 !important; color: var(--ink) !important; }
html[data-bs-theme=dark] .bg-white { background-color: var(--surface) !important; }
html[data-bs-theme=dark] .table { --bs-table-bg: var(--surface); --bs-table-color: var(--ink); }
html[data-bs-theme=dark] .ref-code { color: #ffb68a; }
html[data-bs-theme=dark] .btn-light { --bs-btn-bg: #2a2520; --bs-btn-color: #f3eee8; --bs-btn-border-color: #3a332c; }
.gt-box { position: fixed; right: 12px; bottom: 12px; z-index: 1030; }
.gt-box:empty { display: none; }
body { top: 0 !important; } /* Google's translate bar must not push the page down */
body > .skiptranslate, .goog-te-banner-frame { display: none !important; } /* hide Google's top bar; the small button stays bottom-right */
.embed-wrap { position: relative; }
.tap-sound { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; border: 0; border-radius: 999px;
    background: rgba(0,0,0,.72); color: #fff; font-weight: 700; padding: .55rem 1.1rem; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.tap-sound:hover { background: var(--brand); }
.video-meta .why { font-size: .75rem; font-weight: 700; color: var(--brand); margin-bottom: .1rem; }

/* ---------- Spin Wheel Challenge ---------- */
.bonus-badge { background: #ffc94a !important; color: #111 !important; }
.bonus-badge:hover { background: #ffd770 !important; color: #111 !important; }
.spin-wheel { position: relative; width: min(340px, 82vw); margin: 0 auto; }
.spin-wheel svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 22px rgba(0,0,0,.3)); }
.spin-wheel .seg-num { font: 800 20px 'Plus Jakarta Sans', sans-serif; fill: #fff; }
.spin-wheel .seg-pts { font: 700 8px 'Plus Jakarta Sans', sans-serif; fill: #fbe6a6; letter-spacing: .08em; }
.spin-wheel .seg-hub { font: 800 13px 'Plus Jakarta Sans', sans-serif; fill: #f6d77c; letter-spacing: .08em; }
.spin-pointer { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); z-index: 2; width: 0; height: 0;
    border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 30px solid var(--brand); filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.spin-wheel.idle svg { animation: wheelIdle 18s linear infinite; }
@keyframes wheelIdle { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin-wheel.idle svg { animation: none; } }
.spin-result { margin-top: 1.2rem; animation: popIn .5s ease-out; }
@keyframes popIn { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.spin-teaser { padding: 2.5rem 0; background: linear-gradient(135deg, var(--brand-soft), transparent 70%); border-bottom: 1px solid var(--line); }

/* Continue with Google */
.btn-google { background: #fff; color: #1f1f1f; border: 1px solid #747775; font-weight: 600; padding: .55rem 1rem; }
.btn-google:hover, .btn-google:focus { background: #f2f2f2; color: #1f1f1f; border-color: #747775; }
[data-bs-theme="dark"] .btn-google { background: #131314; color: #e3e3e3; border-color: #8e918f; }
[data-bs-theme="dark"] .btn-google:hover { background: #1f1f20; color: #e3e3e3; }

/* Privacy Policy / Terms */
.legal { line-height: 1.65; }
.legal h2 { font-weight: 700; }
.legal li { margin-bottom: .35rem; }
.footer-legal { border-top: 1px solid rgba(127,127,127,.2); padding-top: .75rem; }
.mgm-demo .spin-wheel { width: min(240px, 70vw); }

/* ---------- v13: pinned Top picks ---------- */
.text-brand { color: var(--brand); }
.video-thumb .badge-pin { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--brand); color: #fff;
    border-radius: 999px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: .85rem; box-shadow: 0 1px 4px rgba(0,0,0,.35); }

/* ---------- v14: hearts, share, admin picks ---------- */
.btn-heart { border: 1px solid var(--bs-border-color); background: transparent; color: inherit; border-radius: 999px; padding: .35rem .9rem; font-weight: 600; }
.btn-heart .bi { color: #e03131; }
.btn-heart.on { background: #ffe3e3; border-color: #ffa8a8; color: #c92a2a; }
[data-bs-theme="dark"] .btn-heart.on { background: rgba(224,49,49,.18); color: #ff8787; }
.btn-share-wa, .btn-share-fb, .btn-share-tg { color: #fff; border-radius: 999px; width: 40px; height: 38px; display: inline-flex; align-items: center; justify-content: center; }
.btn-share-wa { background: #25d366; } .btn-share-fb { background: #1877f2; } .btn-share-tg { background: #229ed9; }
.btn-share-wa:hover, .btn-share-fb:hover, .btn-share-tg:hover { color: #fff; filter: brightness(.92); }
.video-meta .hearts { color: #e03131; font-size: .8rem; }

/* Add to Home Screen banner (PWA) */
.install-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1080; display: flex; align-items: center; gap: .75rem;
    background: var(--bs-body-bg); color: var(--bs-body-color); border: 1px solid var(--bs-border-color); border-radius: 16px;
    padding: .7rem .8rem; box-shadow: 0 8px 28px rgba(0,0,0,.25); max-width: 560px; margin: 0 auto; }
.install-banner[hidden] { display: none; }
.install-banner img { border-radius: 10px; flex-shrink: 0; }
@media (display-mode: standalone) { .install-banner { display: none !important; } }

/* ---------- v15: applications ---------- */
.apply-fields[data-for="creator"] .only-agent, .apply-fields[data-for="agent"] .only-creator { display: none; }
.apply-box { border: 1px dashed var(--brand); border-radius: 14px; padding: 1rem 1rem .25rem; margin-bottom: 1rem; background: var(--brand-soft); }
[data-bs-theme="dark"] .apply-box { background: rgba(217,72,15,.08); }
.badge-count { background: #e03131; color: #fff; border-radius: 999px; font-size: .7rem; padding: .1rem .45rem; margin-left: .25rem; vertical-align: middle; }
.invite-links .input-group-text { min-width: 110px; }

/* v15.2: dark-outline buttons stay visible in dark mode (Admin Save / Search / Link …) */
[data-bs-theme="dark"] .btn-outline-dark { --bs-btn-color: #e9ecef; --bs-btn-border-color: #8b939b; --bs-btn-hover-color: #111;
    --bs-btn-hover-bg: #e9ecef; --bs-btn-hover-border-color: #e9ecef; --bs-btn-active-color: #111; --bs-btn-active-bg: #dee2e6;
    --bs-btn-disabled-color: #8b939b; --bs-btn-disabled-border-color: #555; }
[data-bs-theme="dark"] .btn-outline-secondary { --bs-btn-color: #ced4da; --bs-btn-border-color: #7a828a; }

/* v16: role tick boxes in Admin > Users */
.role-ticks { display: flex; flex-wrap: wrap; gap: .15rem .7rem; font-size: .85rem; }
.role-ticks .form-check-input { margin-right: .2rem; }

/* ---------- v17: comments ---------- */
.comments-box .comment { display: flex; gap: .65rem; padding: .65rem 0; }
.comments-box .thread { border-bottom: 1px solid var(--bs-border-color); }
.comments-box .comment.reply { margin-left: 2.6rem; padding-top: .35rem; }
.comments-box .comment.is-hidden { opacity: .55; }
.comments-box .cbody { white-space: normal; overflow-wrap: anywhere; margin: .1rem 0 .2rem; }
.comments-box .cactions { display: flex; gap: .9rem; font-size: .82rem; }
.comments-box .cactions a, .comments-box .cactions .btn-link { color: var(--bs-secondary-color); text-decoration: none; font-size: .82rem; }
.comments-box .cactions a:hover, .comments-box .cactions .btn-link:hover { color: var(--brand); }
.cbadge { font-size: .7rem; font-weight: 700; border-radius: 999px; padding: .1rem .45rem; margin-left: .15rem; white-space: nowrap; }
.cb-creator { background: #e7f5ff; color: #1971c2; } .cb-owner { background: #fff4e6; color: #d9480f; }
.cb-diner { background: #ebfbee; color: #2b8a3e; } .cb-team { background: #0b3d2e; color: #e9c46a; }
[data-bs-theme="dark"] .cb-creator { background: rgba(25,113,194,.25); color: #a5d8ff; }
[data-bs-theme="dark"] .cb-owner { background: rgba(217,72,15,.25); color: #ffc078; }
[data-bs-theme="dark"] .cb-diner { background: rgba(43,138,62,.25); color: #b2f2bb; }
.min-w-0 { min-width: 0; }

/* v17.1: menu stays on one line */
.site-nav .nav-link { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199.98px) { .site-nav .navbar-nav .nav-link { padding-left: .45rem; padding-right: .45rem; font-size: .95rem; } }
html[data-bs-theme=dark] .badge-soft { background: #2f2a24 !important; color: #e8e0d6 !important; border-color: #4a4239 !important; }

/* v18: edited comments */
.comments-box .cedited { font-size: .75rem; color: var(--bs-secondary-color); font-style: italic; }
