/* ============================================================
   INB Campus — global styles
   Brand: #0F4C81 (primary) · #00B894 (secondary) · #F39C12 (accent)
   Supports light & dark mode via [data-bs-theme].
   ============================================================ */
:root {
    --brand:        #0F4C81;
    --brand-2:      #00B894;
    --accent:       #F39C12;
    --bg:           #F8FAFC;
    --dark:         #2D3436;
    --card:         #FFFFFF;
    --text:         #2D3436;
    --muted:        #6b7280;
    --radius:       16px;
    --shadow:       0 10px 30px rgba(15, 76, 129, .12);
}
[data-bs-theme="dark"] {
    --bg:   #0b1220;
    --card: #131c2e;
    --text: #e6ebf5;
    --muted:#9aa7bd;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text); }

.btn-brand {
    background: var(--brand); color: #fff; border: none; border-radius: 12px;
    padding: .7rem 1.3rem; font-weight: 600; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-brand:hover { background: #0c3f6c; color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-brand-outline, .btn-outline-brand {
    border: 2px solid var(--brand); color: var(--brand); border-radius: 12px; font-weight: 600; background: transparent;
}
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.link-accent { color: var(--brand-2); text-decoration: none; font-weight: 600; }
.link-accent:hover { text-decoration: underline; }
.link-muted { color: var(--muted); text-decoration: none; font-weight: 600; }
.link-muted:hover { color: var(--brand); }

/* Glassmorphism card */
.glass {
    background: rgba(255, 255, 255, .75);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
[data-bs-theme="dark"] .glass {
    background: rgba(19, 28, 46, .72);
    border: 1px solid rgba(255, 255, 255, .08);
}

/* ---------- Auth pages ---------- */
.auth-body {
    min-height: 100vh; margin: 0;
    background: linear-gradient(135deg, #0F4C81 0%, #0a3a63 45%, #00B894 120%);
    display: grid; place-items: center; padding: 24px;
}
.auth-wrap { width: 100%; max-width: 460px; }
.auth-card { padding: 2rem 2rem 1.5rem; }
.auth-brand { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.25rem; }
.auth-logo, .nav-logo {
    width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; font-weight: 800; display: grid; place-items: center; letter-spacing: -1px;
}
.nav-logo { width: 38px; height: 38px; flex-basis: 38px; font-size: .9rem; }
/* Brand logo image (uploaded logo.png or bundled logo.svg) — used everywhere. */
.brand-logo-img { height: 40px; width: auto; max-width: 170px; display: block; object-fit: contain; }
.auth-brand .brand-logo-img { height: 56px; max-width: 220px; }
.auth-brand-name { font-weight: 700; color: var(--brand); line-height: 1.1; }
.auth-brand-tag { font-size: .78rem; color: var(--muted); }
.auth-title { font-size: 1.5rem; font-weight: 700; margin: .25rem 0 .1rem; }
.auth-sub { color: var(--muted); margin-bottom: 1.25rem; }
.auth-alt { text-align: center; margin-top: 1.1rem; color: var(--muted); }
.auth-foot { text-align: center; color: rgba(255, 255, 255, .8); font-size: .8rem; margin-top: 1rem; }
.form-floating > label { color: var(--muted); }
.form-control { border-radius: 12px; padding: 1rem .9rem; }
.form-control:focus { border-color: var(--brand-2); box-shadow: 0 0 0 .2rem rgba(0, 184, 148, .18); }

/* password reveal + strength */
.form-floating { position: relative; }
.pw-toggle {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    border: none; background: transparent; color: var(--muted); z-index: 5; padding: .4rem .6rem;
}
.pw-meter { height: 6px; border-radius: 6px; background: #e5e9f0; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; transition: width .3s, background .3s; }

.verify-icon {
    width: 74px; height: 74px; margin: 0 auto 1rem; border-radius: 50%;
    background: rgba(0, 184, 148, .15); color: var(--brand-2);
    display: grid; place-items: center; font-size: 2rem;
}

.theme-toggle {
    position: fixed; top: 16px; right: 16px; z-index: 20;
    background: rgba(255, 255, 255, .2); color: #fff; border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%; width: 40px; height: 40px;
}
.app-body .theme-toggle { position: static; background: transparent; color: var(--text); border-color: var(--muted); }

/* ---------- Landing ---------- */
body:has(.hero) { background: var(--bg); }
.landing-nav { background: var(--card); box-shadow: 0 2px 14px rgba(0,0,0,.05); position: sticky; top: 0; z-index: 10; }
.hero {
    background: radial-gradient(1200px 500px at 50% -10%, rgba(0,184,148,.25), transparent),
                linear-gradient(135deg, #0F4C81, #0a3a63);
    color: #fff; padding: 5rem 0 6rem;
}
.hero-badge { display: inline-block; background: rgba(255,255,255,.15); padding: .4rem 1rem; border-radius: 999px; font-size: .85rem; margin-bottom: 1rem; }
.hero-title { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; margin: 0; }
.hero-tag { font-size: 1.4rem; color: var(--accent); font-weight: 700; margin: .25rem 0 .5rem; }
.hero-sub { max-width: 620px; margin: 0 auto 1.75rem; opacity: .9; }
.features { margin-top: -3.5rem; margin-bottom: 4rem; position: relative; z-index: 5; }
.feature-card { padding: 1.6rem; }
.feature-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(15,76,129,.1); color: var(--brand); font-size: 1.5rem; margin-bottom: .9rem; }
.feature-name { font-size: 1.15rem; font-weight: 700; }
.feature-desc { color: var(--muted); margin: 0; }
.landing-foot { padding: 2rem 0; color: var(--muted); }

/* ---------- Dashboard ---------- */
.app-body { background: var(--bg); min-height: 100vh; }
.app-nav { background: var(--card); box-shadow: 0 2px 14px rgba(0,0,0,.05); }
.user-chip { display: flex; align-items: center; gap: .5rem; background: transparent; border: 1px solid var(--muted); border-radius: 999px; padding: .3rem .8rem; color: var(--text); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.welcome-card { padding: 1.6rem; }
.role-badge { background: rgba(0,184,148,.15); color: var(--brand-2); font-weight: 600; margin-right: .35rem; }
.module-tile { padding: 1.4rem 1rem; text-align: center; }
.module-tile i { font-size: 1.8rem; color: var(--brand); }
.module-label { font-weight: 700; margin-top: .5rem; }
.module-status { font-size: .75rem; color: var(--muted); }
.module-live { transition: transform .15s ease, box-shadow .15s ease; }
.module-live:hover { transform: translateY(-3px); box-shadow: 0 .5rem 1.25rem rgba(15,76,129,.18); }
.module-tile:not(.module-live) { opacity: .55; cursor: default; }
.module-tile:not(.module-live) i { color: var(--muted); }

/* ---------- Nav chips ---------- */
.wallet-chip { background: rgba(0,184,148,.12); color: var(--brand-2); border: 1px solid rgba(0,184,148,.3); border-radius: 999px; font-weight: 600; }
.wallet-chip:hover { background: var(--brand-2); color: #fff; }
.cart-chip { background: transparent; border: 1px solid var(--muted); border-radius: 999px; color: var(--text); }
.cart-badge { position: absolute; top: -6px; right: -6px; background: var(--accent); color: #fff; border-radius: 999px; font-size: .65rem; padding: .15rem .4rem; }

/* ---------- Product cards ---------- */
.product-card { overflow: hidden; transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-thumb { display: grid; place-items: center; aspect-ratio: 4/3; background: linear-gradient(135deg,#eef3f9,#e3ecf6); color: #b7c4d6; font-size: 2.4rem; text-decoration: none; position: relative; }
[data-bs-theme="dark"] .product-thumb { background: linear-gradient(135deg,#1a2438,#141d2e); color:#33415c; }
.product-body { padding: .8rem; display: flex; flex-direction: column; flex-grow: 1; }
.product-title { font-weight: 600; color: var(--text); text-decoration: none; font-size: .95rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-title:hover { color: var(--brand); }
.product-meta { font-size: .75rem; color: var(--muted); margin-top: .15rem; }
.product-price { font-weight: 800; color: var(--brand); }
.product-compare { text-decoration: line-through; color: var(--muted); font-size: .85rem; margin-left: .3rem; }
.sale-badge { position: absolute; top: 8px; left: 8px; background: var(--accent); }
.rating-pill { background: rgba(243,156,18,.15); color: #b9770f; border-radius: 999px; padding: .1rem .5rem; font-size: .78rem; font-weight: 700; }

/* Filters */
.filter-head { font-weight: 700; text-transform: uppercase; font-size: .72rem; letter-spacing: .5px; color: var(--muted); }
.cat-list { display: flex; flex-direction: column; gap: .1rem; }
.cat-link { padding: .45rem .6rem; border-radius: 10px; color: var(--text); text-decoration: none; font-size: .9rem; }
.cat-link:hover { background: rgba(15,76,129,.08); }
.cat-link.active { background: var(--brand); color: #fff; }

/* Product detail */
.product-gallery { display: grid; place-items: center; aspect-ratio: 1/1; font-size: 4rem; color: #b7c4d6; background: linear-gradient(135deg,#eef3f9,#e3ecf6); overflow: hidden; }
/* Real product images fill the thumb/gallery boxes (seed art is SVG). */
.product-thumb img, .product-gallery img { width: 100%; height: 100%; object-fit: contain; padding: 12%; }
.product-gallery img { padding: 16%; }
.detail-price { font-size: 2rem; font-weight: 800; color: var(--brand); }
.btn-icon { background: transparent; border: 1px solid var(--muted); border-radius: 10px; color: var(--muted); }
.btn-icon:hover { color: #e74c3c; border-color: #e74c3c; }
.review-form { background: rgba(15,76,129,.04); padding: 1rem; border-radius: 12px; }
.rating-input i { font-size: 1.4rem; color: var(--accent); cursor: pointer; margin-right: .1rem; }
.review-item { padding: .8rem 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.verified-badge { background: rgba(0,184,148,.15); color: var(--brand-2); font-size: .65rem; }

/* Cart */
.cart-row { display: flex; align-items: center; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.cart-thumb { width: 56px; height: 56px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg,#eef3f9,#e3ecf6); color:#b7c4d6; flex: 0 0 56px; }
.qty-control { display: flex; align-items: center; gap: .4rem; }
.btn-qty { border: 1px solid var(--muted); border-radius: 8px; width: 30px; line-height: 1; padding: .15rem 0; }
.qty-val { min-width: 24px; text-align: center; font-weight: 700; }
.cart-line-total { min-width: 90px; text-align: right; }
.summary-card { position: sticky; top: 84px; }

/* Order steps */
.order-steps { display: flex; justify-content: space-between; position: relative; }
.order-steps::before { content:''; position: absolute; top: 16px; left: 5%; right: 5%; height: 3px; background: #e5e9f0; z-index: 0; }
.order-step { position: relative; z-index: 1; text-align: center; flex: 1; }
.step-dot { width: 34px; height: 34px; border-radius: 50%; background: #e5e9f0; color:#fff; display: grid; place-items: center; margin: 0 auto .4rem; font-weight: 700; }
.order-step.done .step-dot { background: var(--brand-2); }
.step-label { font-size: .78rem; color: var(--muted); }
.order-step.done .step-label { color: var(--text); font-weight: 600; }

/* Wallet */
.wallet-hero { background: linear-gradient(135deg, var(--brand), #0a3a63); color: #fff; }
.wallet-balance { font-size: 2.4rem; font-weight: 800; letter-spacing: -1px; }
.payment-method { border: 1px solid rgba(15,76,129,.15); }

/* ---------- Food ---------- */
.restaurant-card { overflow: hidden; transition: transform .15s, box-shadow .15s; }
.restaurant-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.restaurant-banner { height: 120px; display: grid; place-items: center; font-size: 2.6rem; color: #fff;
    background: linear-gradient(135deg, var(--brand-2), var(--brand)); position: relative; }
.restaurant-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.open-badge { position: absolute; top: 10px; right: 10px; }
.restaurant-hero { background: linear-gradient(135deg, rgba(0,184,148,.12), rgba(15,76,129,.08)); }
.menu-item { display: flex; gap: 1rem; padding: 1rem; }
.menu-thumb { width: 60px; height: 60px; border-radius: 12px; flex: 0 0 60px; display: grid; place-items: center;
    background: linear-gradient(135deg,#fff2e0,#ffe3c7); color: var(--accent); font-size: 1.6rem; }
.menu-group-title { font-weight: 700; text-transform: uppercase; font-size: .72rem; letter-spacing: .5px; color: var(--muted); margin: 1rem 0 .3rem; }

/* ---------- Accommodation ---------- */
.property-card { overflow: hidden; transition: transform .15s, box-shadow .15s; }
.property-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.property-thumb { height: 150px; display: grid; place-items: center; font-size: 3rem; color: #fff; position: relative;
    background: linear-gradient(135deg, #0F4C81, #2c7bbf); }
.property-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.verified-tag { position: absolute; top: 10px; left: 10px; }
.amenity-chip { background: rgba(15,76,129,.08); color: var(--brand); border-radius: 999px; padding: .3rem .8rem; font-size: .82rem; }
.detail-label { font-size: .72rem; text-transform: uppercase; color: var(--muted); letter-spacing: .4px; }
.room-options { display: flex; flex-direction: column; gap: .5rem; }
.room-option { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border: 2px solid #e5e9f0; border-radius: 12px; cursor: pointer; margin: 0; }
[data-bs-theme="dark"] .room-option { border-color: rgba(255,255,255,.1); }
.room-option:has(input:checked) { border-color: var(--brand-2); background: rgba(0,184,148,.06); }
.room-option.disabled { opacity: .5; cursor: not-allowed; }
.room-option input { accent-color: var(--brand-2); }

/* ---------- Jobs ---------- */
.job-card { padding: 1.1rem; transition: transform .15s, box-shadow .15s; }
.job-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.job-type-badge { background: rgba(15,76,129,.1); color: var(--brand); font-weight: 600; }
.job-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.applicant-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid rgba(0,0,0,.06); }

@media (max-width: 576px) {
    .auth-card { padding: 1.5rem 1.25rem; }
    .step-label { font-size: .6rem; }
    .cart-line-total { min-width: 70px; }
    .order-steps { gap: .2rem; }
}

/* ---------- Tutors (module 6) ---------- */
.tutor-card { transition: transform .15s ease, box-shadow .15s ease; }
.tutor-card:hover { transform: translateY(-3px); box-shadow: 0 .5rem 1.25rem rgba(15,76,129,.18); }
.tutor-rate { background: rgba(0,184,148,.15); color: var(--brand-2); font-weight: 600; }
.subject-chip { background: rgba(15,76,129,.12); color: var(--brand); font-weight: 600; }
.booking-panel { position: sticky; top: 1rem; }
.slot-list { max-height: 320px; overflow-y: auto; }
.slot-list .list-group-item { background: transparent; }

@media (max-width: 991px) {
    .booking-panel { position: static; }
}

/* ---------- Digital Library (module 7) ---------- */
.resource-card { transition: transform .15s ease, box-shadow .15s ease; }
.resource-card:hover { transform: translateY(-3px); box-shadow: 0 .5rem 1.25rem rgba(15,76,129,.18); }
.resource-icon {
    width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
    background: rgba(15,76,129,.1); color: var(--brand); font-size: 1.25rem;
}
.badge-free { background: rgba(243,156,18,.18); color: #b8770c; font-weight: 600; }
[data-bs-theme="dark"] .badge-free { color: var(--accent); }
.nav-tabs .nav-link { color: var(--muted); border: none; font-weight: 600; }
.nav-tabs .nav-link.active { color: var(--brand); background: transparent; border-bottom: 2px solid var(--brand); }

/* ---------- Campus Events (module 8) ---------- */
.event-card { transition: transform .15s ease, box-shadow .15s ease; }
.event-card:hover { transform: translateY(-3px); box-shadow: 0 .5rem 1.25rem rgba(15,76,129,.18); }
.event-date {
    flex: 0 0 54px; width: 54px; height: 58px; border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; display: grid; place-items: center; align-content: center; line-height: 1;
}
.event-date-day { font-size: 1.35rem; font-weight: 800; }
.event-date-mon { font-size: .65rem; font-weight: 700; letter-spacing: .5px; opacity: .9; }
.ticket-stub { border-left: 4px solid var(--brand-2); }
.ticket-code { background: rgba(15,76,129,.06); border-radius: 8px; padding: .5rem .75rem; }
[data-bs-theme="dark"] .ticket-code { background: rgba(255,255,255,.05); }
.min-w-0 { min-width: 0; }

/* ---------- Clubs (module 9) ---------- */
.club-card { transition: transform .15s ease, box-shadow .15s ease; }
.club-card:hover { transform: translateY(-3px); box-shadow: 0 .5rem 1.25rem rgba(15,76,129,.18); }
.club-badge {
    width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .95rem;
}
.club-badge-lg { width: 60px; height: 60px; flex-basis: 60px; font-size: 1.3rem; }

/* ---------- Rides (module 10) ---------- */
.ride-card { transition: transform .15s ease, box-shadow .15s ease; }
.ride-card:hover { transform: translateY(-3px); box-shadow: 0 .5rem 1.25rem rgba(15,76,129,.18); }
.ride-route { font-size: .95rem; }

/* ---------- Messaging (module 11) ---------- */
.conv-list { max-height: 70vh; overflow-y: auto; }
.conv-item { background: transparent; border-color: rgba(128,128,128,.15); }
.conv-item:hover { background: rgba(15,76,129,.05); }
.conv-item.active-conv { background: rgba(15,76,129,.1); }
.conv-unread .fw-semibold { font-weight: 800 !important; }
.conv-avatar {
    width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; font-weight: 700; display: grid; place-items: center;
}
.conv-avatar-group { background: linear-gradient(135deg, var(--accent), #d35400); }
.conv-badge { background: var(--brand-2); color: #fff; border-radius: 999px; font-size: .7rem; }
.nav-unread { position: absolute; top: 0; right: -2px; padding: .15rem .35rem; }

.thread-panel { height: 70vh; }
.thread-head { border-bottom: 1px solid rgba(128,128,128,.15); }
.thread-foot { border-top: 1px solid rgba(128,128,128,.15); }
.thread-body { overflow-y: auto; }
.msg-row { display: flex; align-items: center; gap: .35rem; margin-bottom: .5rem; }
.msg-row.msg-mine { justify-content: flex-end; }
.msg-bubble {
    position: relative; max-width: 75%; padding: .45rem .7rem .4rem;
    border-radius: 14px; background: rgba(128,128,128,.12); word-break: break-word;
}
.msg-bubble-mine { background: var(--brand); color: #fff; }
.msg-sender { display: block; font-size: .7rem; font-weight: 700; color: var(--brand-2); margin-bottom: .1rem; }
.msg-body { font-size: .9rem; }
/* Meta row at the bottom of a bubble: time FIRST, then the delivery tick, then
   (groups only) the eye + seen-count. Inline, so nothing overlaps the text. */
.msg-meta { display: flex; align-items: center; justify-content: flex-end; gap: .3rem; margin-top: .15rem; line-height: 1; }
.msg-time { font-size: .65rem; opacity: .65; white-space: nowrap; }
.msg-deleted .msg-body { font-style: italic; }
/* Delete sits OUTSIDE the bubble (a flex sibling), so it never overlaps the
   message text the way the old absolutely-positioned one did. */
.msg-del {
    flex: none; border: none; background: transparent; color: var(--muted);
    opacity: 0; font-size: .8rem; line-height: 1; padding: .3rem;
    border-radius: 50%; cursor: pointer; transition: opacity .15s, color .15s, background .15s;
}
.msg-row:hover .msg-del { opacity: .7; }
.msg-del:hover { opacity: 1 !important; color: #dc3545; background: rgba(220,53,69,.12); }
/* Touch devices have no hover — keep it discoverable. */
@media (hover: none) { .msg-del { opacity: .5; } }

@media (max-width: 991px) {
    .thread-panel { height: calc(100vh - 190px); }
}

/* ---------- Community (module 12) ---------- */
.post-row { transition: transform .12s ease, box-shadow .12s ease; }
.post-row:hover { transform: translateY(-2px); box-shadow: 0 .4rem 1rem rgba(15,76,129,.14); }
.vote-col { flex: 0 0 38px; width: 38px; }
.vote-col-sm { flex-basis: 30px; width: 30px; }
.vote-btn {
    border: none; background: transparent; color: var(--muted);
    line-height: 1; padding: 0; font-size: 1.4rem; display: block; width: 100%;
    transition: color .12s ease, transform .12s ease;
}
.vote-btn:hover { color: var(--brand); transform: scale(1.15); }
.vote-btn.voted-up { color: var(--brand-2); }
.vote-btn.voted-down { color: #e17055; }
.vote-score { font-weight: 700; font-size: .85rem; }
.text-truncate-2 {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.comment-reply { border-left: 2px solid rgba(15,76,129,.18); padding-left: .75rem; }

/* ---------- Ads (module 13) ---------- */
.ad-slot { border: 1px dashed rgba(243,156,18,.5); }
.ad-label {
    font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    background: rgba(243,156,18,.18); color: #b8770c; padding: .1rem .4rem; border-radius: 4px;
}
[data-bs-theme="dark"] .ad-label { color: var(--accent); }
.ad-slot-icon { font-size: 1.5rem; color: var(--accent); opacity: .5; }

/* ---------- Messaging: attachments + read receipts (module 11) ---------- */

/* Attachments inside a bubble */
.msg-img-link { display: block; margin-bottom: .3rem; }
.msg-img {
    display: block; max-width: 240px; max-height: 260px; width: 100%;
    border-radius: 10px; object-fit: cover;
}
.msg-audio { display: block; width: 240px; max-width: 100%; height: 40px; margin-bottom: .3rem; }
.msg-file {
    display: flex; align-items: center; gap: .5rem; min-width: 190px;
    padding: .45rem .6rem; margin-bottom: .3rem; border-radius: 10px;
    background: rgba(128,128,128,.14); color: inherit; text-decoration: none;
}
.msg-file:hover { background: rgba(128,128,128,.24); color: inherit; }
.msg-bubble-mine .msg-file { background: rgba(255,255,255,.18); }
.msg-bubble-mine .msg-file:hover { background: rgba(255,255,255,.28); }
.msg-file-meta { display: flex; flex-direction: column; min-width: 0; }
.msg-file-name { font-size: .8rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.msg-file-size { font-size: .65rem; opacity: .7; }

/* Read receipts — a delivery tick sitting inline in the meta row, after the time.
   Direct chats show the tick alone; group chats add an eye + seen-count. */
.msg-receipt {
    display: inline-flex; align-items: center; gap: .2rem;
    font-size: .65rem; line-height: 1;
    color: rgba(0,0,0,.55);                 /* sent, not yet seen */
}
.msg-bubble-mine .msg-receipt { color: rgba(255,255,255,.6); }
.msg-receipt.msg-seen,
.msg-bubble-mine .msg-receipt.msg-seen { color: #25D366; }  /* seen */
.msg-receipt i { font-size: .75rem; }
.msg-seen-count { display: inline-flex; align-items: center; gap: .15rem; font-weight: 600; }

/* Composer: pending attachment chip */
.attach-preview { margin-bottom: .5rem; }
.attach-chip {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .35rem .6rem; border-radius: 10px;
    background: rgba(128,128,128,.14); font-size: .8rem; max-width: 100%;
}
.attach-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.attach-size { opacity: .65; font-size: .7rem; }
.attach-progress { height: 4px; margin-top: .4rem; }
.attach-progress .progress-bar { background: var(--brand-2); }

/* Composer: recording state */
.record-bar {
    display: flex; align-items: center; gap: .5rem;
    padding: .4rem .6rem; margin-bottom: .5rem; border-radius: 10px;
    background: rgba(220,53,69,.1); font-size: .8rem;
}
.record-dot {
    width: 9px; height: 9px; border-radius: 50%; background: #dc3545;
    animation: recPulse 1s ease-in-out infinite;
}
#recordBtn.recording { background: #dc3545; border-color: #dc3545; color: #fff; }
@keyframes recPulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* Composer: the other side is typing / recording */
.typing-indicator {
    display: flex; align-items: center; gap: .5rem;
    padding: .25rem 1rem .5rem; font-size: .8rem; color: var(--bs-secondary-color, #6c757d);
}
.typing-dots { display: inline-flex; gap: 3px; }
.typing-dots span {
    width: 6px; height: 6px; border-radius: 50%; background: currentColor;
    opacity: .35; animation: typingBounce 1.2s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes typingBounce { 0%,80%,100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

@media (prefers-reduced-motion: reduce) {
    .record-dot { animation: none; }
    .typing-dots span { animation: none; }
}

/* Clickable links inside message bubbles — white for easy spotting, on a
   subtle dark chip so they stay readable on light incoming bubbles too. */
.msg-link {
    color: #fff; text-decoration: underline; word-break: break-word;
    background: rgba(15,76,129,.85); padding: 0 .25rem; border-radius: 4px;
}
.msg-link:hover { background: rgba(15,76,129,1); color: #fff; }

/* Composer toolbar / emoji palette / personalisation panel */
.composer-toolbar .btn { line-height: 1; }
.emoji-panel {
    display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: .5rem; padding: .4rem;
    max-height: 160px; overflow-y: auto; border-radius: 10px; background: rgba(128,128,128,.10);
}
.emoji-item { border: 0; background: transparent; font-size: 1.25rem; line-height: 1;
    padding: .2rem .35rem; border-radius: 6px; cursor: pointer; }
.emoji-item:hover { background: rgba(128,128,128,.25); }
.chat-settings-panel { margin-bottom: .5rem; padding: .6rem .75rem; border-radius: 10px;
    background: rgba(128,128,128,.10); }

/* Link preview card — shown under a message and live in the composer */
.msg-link-card {
    display: flex; gap: .6rem; margin-top: .4rem; padding: .5rem;
    border-radius: 10px; background: rgba(128,128,128,.10);
    text-decoration: none; color: inherit; max-width: 360px; align-items: center;
}
.msg-link-card:hover { background: rgba(128,128,128,.18); }
.msg-link-card-img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: 0 0 56px; }
.msg-link-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.msg-link-card-title { font-weight: 600; font-size: .85rem; line-height: 1.2;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.msg-link-card-desc { font-size: .78rem; opacity: .8; line-height: 1.2;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.msg-link-card-domain { font-size: .72rem; opacity: .6; text-transform: lowercase; }

.composer-link-preview { position: relative; margin-bottom: .5rem; }
.composer-link-preview .btn-close { position: absolute; top: 6px; right: 6px; }
.composer-link-preview .msg-link-card { margin-top: 0; max-width: none; }

/* ---------- Referrals (module 15) ---------- */
.referral-banner {
    display: flex; align-items: center; gap: .6rem;
    padding: .65rem .85rem; border-radius: 12px; font-size: .875rem;
    background: rgba(0,184,148,.12); border: 1px solid rgba(0,184,148,.3);
}
.referral-banner i { color: var(--brand-2); font-size: 1.1rem; }

.ref-code-box {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    padding: .75rem 1rem; border-radius: 12px;
    background: rgba(15,76,129,.08); border: 1px dashed rgba(15,76,129,.35);
}
[data-bs-theme="dark"] .ref-code-box { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); }
.ref-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1.35rem; font-weight: 700; letter-spacing: .12em; color: var(--brand);
}
[data-bs-theme="dark"] .ref-code { color: #7FB3E0; }

.ref-steps { padding-left: 1.1rem; font-size: .875rem; }
.ref-steps li { margin-bottom: .35rem; }

.ref-stat {
    padding: .75rem .5rem; border-radius: 12px; background: rgba(128,128,128,.08);
    display: flex; flex-direction: column; gap: .15rem; height: 100%;
}
.ref-stat-value { font-size: 1.25rem; font-weight: 700; line-height: 1.1; }
.ref-stat-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; opacity: .65; }
.ref-stat-earn { background: rgba(0,184,148,.12); }
.ref-stat-earn .ref-stat-value { color: var(--brand-2); font-size: 1.05rem; }

.ref-board { list-style: none; padding: 0; margin: 0; counter-reset: rb; }
.ref-board li {
    display: flex; align-items: center; gap: .5rem;
    padding: .35rem 0; font-size: .85rem; counter-increment: rb;
    border-bottom: 1px solid rgba(128,128,128,.12);
}
.ref-board li:last-child { border-bottom: 0; }
.ref-board li::before {
    content: counter(rb); flex: 0 0 20px; height: 20px; border-radius: 50%;
    background: rgba(128,128,128,.15); font-size: .7rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}

.ref-badge {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .2rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600;
}
.ref-pending   { background: rgba(243,156,18,.15); color: #B9770E; }
.ref-qualified { background: rgba(0,184,148,.15);  color: #0B7A63; }
.ref-rejected  { background: rgba(128,128,128,.15); color: #6C757D; }
[data-bs-theme="dark"] .ref-pending   { color: #F0B963; }
[data-bs-theme="dark"] .ref-qualified { color: #4FD1B0; }

.ref-table th {
    font-size: .7rem; text-transform: uppercase; letter-spacing: .04em;
    opacity: .6; font-weight: 600;
}
.ref-table td { font-size: .875rem; }

@media (max-width: 575px) {
    .ref-code { font-size: 1.1rem; letter-spacing: .08em; }
}

/* ---------- Loyalty (module 16) ---------- */
.loyalty-tier-card { border-top: 3px solid var(--tier, var(--brand)); }
.loyalty-tier-icon { font-size: 1.4rem; color: var(--tier, var(--brand)); }
.loyalty-tier-name { font-size: 1.2rem; font-weight: 700; }
.loyalty-mult { background: var(--tier, var(--brand)); color: #fff; font-weight: 600; }
.loyalty-progress { height: 8px; border-radius: 999px; }
.loyalty-progress .progress-bar { background: var(--tier, var(--brand-2)); }

.loyalty-balance { font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--brand); }
[data-bs-theme="dark"] .loyalty-balance { color: #7FB3E0; }
.loyalty-stat { display: flex; flex-direction: column; padding: .5rem; border-radius: 10px; background: rgba(128,128,128,.08); }
.loyalty-stat span { font-size: 1.1rem; font-weight: 700; }
.loyalty-stat small { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; opacity: .6; }

.loyalty-ladder {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: .15rem;
    padding: .85rem .5rem; border-radius: 12px; text-align: center; height: 100%;
    background: rgba(128,128,128,.06); border: 1px solid transparent; opacity: .55;
}
.loyalty-ladder.is-reached { opacity: 1; }
.loyalty-ladder.is-current { border-color: var(--tier); background: color-mix(in srgb, var(--tier) 12%, transparent); opacity: 1; }
.loyalty-ladder i { font-size: 1.4rem; color: var(--tier); }
.loyalty-ladder-name { font-weight: 700; font-size: .9rem; }
.loyalty-ladder-req { font-size: .7rem; opacity: .7; }
.loyalty-ladder-mult { font-size: .72rem; font-weight: 600; color: var(--tier); }
.loyalty-ladder-tag {
    position: absolute; top: -8px; right: -6px; background: var(--tier); color: #fff;
    font-size: .6rem; font-weight: 700; padding: .1rem .4rem; border-radius: 999px;
}
.loyalty-table td { font-size: .875rem; }

@media (max-width: 575px) { .loyalty-balance { font-size: 1.9rem; } }

/* ---------- Analytics (module 17) ---------- */
/* KPI stat tiles: hero number, ink text, one accent icon */
.stat-tile { display: flex; flex-direction: column; gap: .1rem; }
.stat-tile-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .35rem; }
.stat-tile-head > i { font-size: 1.15rem; color: var(--brand); opacity: .85; }
[data-bs-theme="dark"] .stat-tile-head > i { color: #7FB3E0; }
.stat-value { font-size: 1.5rem; font-weight: 800; line-height: 1.05; }
.stat-label { font-size: .78rem; font-weight: 600; }
.stat-hint { font-size: .66rem; text-transform: uppercase; letter-spacing: .03em; opacity: .55; }
.stat-delta { display: inline-flex; align-items: center; gap: .1rem; font-size: .7rem; font-weight: 700; padding: .05rem .35rem; border-radius: 999px; }
.stat-delta-up   { color: #0B7A63; background: rgba(0,184,148,.14); }
.stat-delta-down { color: #C0392B; background: rgba(231,76,60,.14); }
.stat-delta-flat { color: #6C757D; background: rgba(128,128,128,.12); }
[data-bs-theme="dark"] .stat-delta-up { color: #4FD1B0; }
[data-bs-theme="dark"] .stat-delta-down { color: #F1948A; }

/* SVG trend charts */
.chart-host { position: relative; width: 100%; }
.analytics-svg { width: 100%; height: 180px; display: block; overflow: visible; }
.analytics-axis { stroke: rgba(128,128,128,.35); stroke-width: 1; }
.analytics-crosshair { stroke: rgba(128,128,128,.5); stroke-width: 1; stroke-dasharray: 3 3; }
.analytics-tip {
    position: absolute; top: 4px; transform: translateX(-50%);
    background: var(--bs-body-bg, #fff); border: 1px solid rgba(128,128,128,.25);
    border-radius: 8px; padding: .3rem .5rem; pointer-events: none; z-index: 5;
    box-shadow: 0 4px 14px rgba(0,0,0,.12); white-space: nowrap; text-align: center;
}
.analytics-tip-v { display: block; font-weight: 700; font-size: .8rem; }
.analytics-tip-d { display: block; font-size: .65rem; opacity: .6; }

/* Magnitude bars: one hue, direct-labeled */
.mag-bars { display: flex; flex-direction: column; gap: .55rem; }
.mag-row { display: flex; align-items: center; gap: .6rem; }
.mag-label { flex: 0 0 5.5rem; font-size: .8rem; text-align: right; opacity: .8; }
.mag-track { flex: 1 1 auto; height: 12px; background: rgba(128,128,128,.1); border-radius: 999px; overflow: hidden; }
.mag-fill { height: 100%; border-radius: 999px; background: var(--brand); }
[data-bs-theme="dark"] .mag-fill { background: #4C8DD1; }
.mag-value { flex: 0 0 2.5rem; font-size: .8rem; font-weight: 700; text-align: right; }

/* Order status: reserved status colours, always with labels */
.status-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: rgba(128,128,128,.1); }
.status-seg { height: 100%; }
.status-seg + .status-seg { box-shadow: inset 2px 0 0 var(--bs-body-bg, #fff); }
.status-legend { list-style: none; padding: 0; margin: 0; }
.status-legend li { display: flex; align-items: center; gap: .5rem; padding: .25rem 0; font-size: .82rem; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; }
.status-good, .status-good.status-dot, span.status-good { background: #00B894; }
.status-info, span.status-info { background: #3D7DBF; }
.status-warning, span.status-warning { background: #F39C12; }
.status-critical, span.status-critical { background: #E5484D; }
.status-neutral, span.status-neutral { background: #9AA0A6; }
.analytics-table td { font-size: .85rem; }

/* ---------- Admin console (module 18) ---------- */
.admin-queue { list-style: none; padding: 0; margin: 0; }
.admin-queue li {
    display: flex; align-items: center; gap: .5rem; padding: .45rem 0;
    font-size: .875rem; border-bottom: 1px solid rgba(128,128,128,.12);
}
.admin-queue li:last-child { border-bottom: 0; }
.admin-queue-count {
    margin-left: auto; min-width: 1.75rem; text-align: center; font-weight: 700;
    font-size: .75rem; padding: .1rem .4rem; border-radius: 999px;
    background: rgba(128,128,128,.14);
}
.admin-queue-count.has-work { background: rgba(243,156,18,.2); color: #B9770E; }
[data-bs-theme="dark"] .admin-queue-count.has-work { color: #F0B963; }

.admin-role-chip {
    display: inline-flex; align-items: center; gap: .25rem;
    padding: .12rem .45rem; margin: .1rem .15rem .1rem 0; border-radius: 6px;
    background: rgba(15,76,129,.1); color: var(--brand);
    font-size: .68rem; font-weight: 600; font-family: ui-monospace, Menlo, monospace;
}
[data-bs-theme="dark"] .admin-role-chip { background: rgba(255,255,255,.1); color: #7FB3E0; }
.admin-role-held { font-size: .75rem; padding: .2rem .5rem; }
.admin-role-x {
    border: 0; background: transparent; color: inherit; opacity: .55;
    font-size: .9rem; line-height: 1; padding: 0 0 0 .15rem; cursor: pointer;
}
.admin-role-x:hover { opacity: 1; color: #dc3545; }

.admin-setting {
    display: flex; align-items: center; gap: 1rem; padding: .85rem 1rem;
    border-bottom: 1px solid rgba(128,128,128,.12);
}
.admin-setting:last-child { border-bottom: 0; }
.admin-setting-control { flex: 0 0 auto; min-width: 9rem; text-align: right; }

.admin-notes { list-style: none; padding: 0; margin: 0; }
.admin-notes li {
    padding: .55rem .75rem; margin-bottom: .4rem; border-radius: 8px;
    background: rgba(128,128,128,.08); font-size: .85rem;
    border-left: 3px solid var(--accent);
}

@media (max-width: 575px) {
    .admin-setting { flex-direction: column; align-items: stretch; gap: .5rem; }
    .admin-setting-control { text-align: left; }
}

/* ---------- Pages, Account & Support (module 19) ---------- */
.page-doc { max-width: 900px; margin: 0 auto; }
.page-legal h2 { font-size: .95rem; font-weight: 700; margin: 1.25rem 0 .4rem; }
.page-legal h2:first-child { margin-top: 0; }
.page-legal p, .page-legal li { font-size: .875rem; line-height: 1.65; }
.page-legal ul { padding-left: 1.1rem; }
.page-code {
    background: rgba(128,128,128,.1); border-radius: 8px; padding: .75rem .9rem;
    font-size: .78rem; overflow-x: auto; margin: .5rem 0;
}
.api-table code { word-break: break-all; }
.api-method { color: #fff !important; font-family: ui-monospace, Menlo, monospace; font-size: .65rem; }

/* Support thread */
.support-thread { display: flex; flex-direction: column; gap: .75rem; max-height: 60vh; overflow-y: auto; }
.support-msg { padding: .7rem .85rem; border-radius: 10px; background: rgba(128,128,128,.08); }
.support-msg.is-staff { background: rgba(15,76,129,.08); border-left: 3px solid var(--brand); }
[data-bs-theme="dark"] .support-msg.is-staff { background: rgba(255,255,255,.07); }
.support-msg-head { display: flex; align-items: center; gap: .4rem; font-size: .78rem; margin-bottom: .3rem; }
.support-staff-tag {
    background: var(--brand); color: #fff; font-size: .6rem; font-weight: 700;
    padding: .05rem .35rem; border-radius: 999px; text-transform: uppercase;
}
.support-msg-body { font-size: .875rem; word-break: break-word; }

/* Dashboard tiles keep their look; groups just get breathing room */
.module-tile { transition: transform .12s ease; }

/* ---------- Messaging: group admin + leave + back-to-chat (P1) ---------- */
.conv-left-tag {
    font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
    background: rgba(128,128,128,.2); color: #6c757d; padding: .05rem .3rem; border-radius: 4px;
    margin-left: .25rem; vertical-align: middle;
}
.manage-list { list-style: none; padding: 0; margin: 0; }
.manage-list li {
    display: flex; align-items: center; gap: .5rem; padding: .5rem 0;
    border-bottom: 1px solid rgba(128,128,128,.12); font-size: .875rem;
}
.manage-list li:last-child { border-bottom: 0; }

.back-to-chat {
    position: fixed; right: 18px; bottom: 18px; z-index: 1030;
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .6rem .9rem; border-radius: 999px; text-decoration: none;
    background: var(--brand); color: #fff; box-shadow: 0 6px 20px rgba(15,76,129,.35);
    transition: transform .12s ease;
}
.back-to-chat:hover { color: #fff; transform: translateY(-2px); }
.back-to-chat i { font-size: 1.1rem; }
.back-to-chat-label { font-size: .85rem; font-weight: 600; }
.back-to-chat-badge {
    background: #e5484d; color: #fff; font-size: .68rem; font-weight: 700;
    border-radius: 999px; padding: .05rem .4rem; min-width: 1.2rem; text-align: center;
}
@media (max-width: 575px) { .back-to-chat-label { display: none; } }
@media (prefers-reduced-motion: reduce) { .back-to-chat:hover { transform: none; } }

/* ---------- Messaging: video attachments (P2) ---------- */
.msg-video {
    display: block; max-width: 280px; max-height: 320px; width: 100%;
    border-radius: 10px; margin-bottom: .3rem; background: #000;
}

/* ---------- DataTables polish (P3) ---------- */
div.dt-buttons { display: inline-flex; gap: .35rem; flex-wrap: wrap; }
div.dt-buttons .btn i { margin-right: .2rem; }
table.dataTable { width: 100% !important; }
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid rgba(128,128,128,.3); border-radius: 8px; padding: .3rem .6rem; margin-left: .4rem;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--brand) !important; color: #fff !important; border-radius: 6px;
}
.page-item.active .page-link { background: var(--brand); border-color: var(--brand); }

/* ---------- Passkey login divider (P5) ---------- */
.auth-divider { display: flex; align-items: center; text-align: center; margin: 1rem 0; color: #98a2b3; font-size: .8rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-bottom: 1px solid rgba(128,128,128,.25); }
.auth-divider span { padding: 0 .75rem; }

/* ---------- Paystack top-up note ---------- */
.paystack-note {
    display: flex; gap: .6rem; align-items: flex-start;
    padding: .65rem .8rem; border-radius: 10px; font-size: .8rem;
    background: rgba(0,193,149,.1); border: 1px solid rgba(0,193,149,.28);
}
.paystack-note i { color: #00B894; font-size: 1.05rem; margin-top: .1rem; }

/* ---------- Navbar overflow ("More") ---------- */
.nav-more-menu { max-height: 70vh; overflow-y: auto; min-width: 12rem; }
.nav-more-menu .dropdown-item { display: flex; align-items: center; }
/* On mobile the whole nav is a collapse panel; cap its height so it can never
   swallow the page, and let it scroll instead. */
@media (max-width: 991.98px) {
    #topnav { max-height: 70vh; overflow-y: auto; }
    /* A nested dropdown inside the collapse should read as an indented list,
       not a floating popup that escapes the panel. */
    #topnav .nav-item.dropdown .nav-more-menu {
        position: static !important; transform: none !important;
        border: 0; box-shadow: none; padding-left: .75rem;
        background: rgba(128,128,128,.06); border-radius: 8px;
    }
}

/* ---------- Long messages: read more ---------- */
.msg-readmore {
    display: inline-block; border: 0; background: transparent; padding: 0;
    margin-left: .25rem; font-size: .78rem; font-weight: 600; cursor: pointer;
    color: var(--brand-2); text-decoration: underline;
}
.msg-bubble-mine .msg-readmore { color: #B8E6DA; }
.msg-readmore:hover { opacity: .8; }
.msg-rest { display: inline; }

/* ---------- Broadcast SMS ---------- */
.broadcast-results { max-height: 220px; overflow-y: auto; }
.broadcast-result {
    padding: .45rem .6rem; border-radius: 8px; cursor: pointer; font-size: .875rem;
    border-bottom: 1px solid rgba(128,128,128,.1);
}
.broadcast-result:hover { background: rgba(15,76,129,.08); }
.broadcast-result.is-disabled { opacity: .6; cursor: not-allowed; }
.broadcast-history { list-style: none; padding: 0; margin: 0; }
.broadcast-history li { padding: .7rem 1rem; border-bottom: 1px solid rgba(128,128,128,.12); }
.broadcast-history li:last-child { border-bottom: 0; }

/* ---------- 2FA (TOTP) setup ---------- */
.twofa-qr { width: 160px; height: 160px; background: #fff; padding: 8px; border-radius: 10px; display: inline-block; }
.twofa-qr img, .twofa-qr canvas { display: block; }
.twofa-secret { font-size: 1rem; letter-spacing: .1em; background: rgba(128,128,128,.12); padding: .4rem .6rem; border-radius: 8px; word-break: break-all; }
.twofa-recovery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem; }
.twofa-recovery-code { font-size: .95rem; letter-spacing: .08em; background: rgba(128,128,128,.12); padding: .35rem .5rem; border-radius: 6px; text-align: center; }

/* ---- Services marketplace ---- */
.service-card { transition: transform .12s ease, box-shadow .12s ease; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(15,76,129,.12); }
.service-card-desc { min-height: 2.4em; }
.service-cat-badge { background: rgba(15,76,129,.10); color: #0F4C81; font-weight: 600; }
[data-bs-theme="dark"] .service-cat-badge { background: rgba(93,169,233,.18); color: #9ecbf0; }
.service-desc { white-space: pre-line; line-height: 1.6; }
