/*
 * BebaBox UI refresh
 * Loaded AFTER theme-system.css (see templates/base.html) so it wins the cascade.
 *
 * Goals
 *  - Lime is a FILL colour (buttons, badges, tiles). It is never used as text on a light surface.
 *  - One accent text colour per theme (--accent-ink) with AA contrast on that theme's surfaces.
 *  - Every icon sits in a consistent "tile" so icons look intentional instead of floating.
 *  - BebaCheck / BebaVerify are the primary services; BebaBox delivery is secondary.
 */

/* ------------------------------------------------------------------ tokens */
:root {
    --lime: #b7e423;
    --lime-strong: #a3cf12;
    --lime-soft: rgba(183, 228, 35, 0.14);
    --navy-900: #081423;
    --navy-800: #0d1c33;
    --navy-700: #14284a;

    --accent-ink: #c6ef3f;          /* accent text on dark surfaces */
    --accent-ink-hover: #dcff6b;

    --tile-bg: linear-gradient(145deg, #234a85 0%, #0f2850 100%);
    --tile-fg: #c9f23b;
    --tile-ring: rgba(183, 228, 35, 0.38);
    --tile-shadow: 0 8px 18px rgba(3, 10, 22, 0.35);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --theme-page-bg:
        radial-gradient(900px 480px at 88% -8%, rgba(183, 228, 35, 0.10), transparent 60%),
        radial-gradient(800px 500px at -10% 105%, rgba(73, 138, 255, 0.12), transparent 60%),
        linear-gradient(160deg, #081423 0%, #0f2240 100%);
    --theme-surface: rgba(20, 38, 66, 0.78);
    --theme-surface-muted: rgba(15, 30, 54, 0.7);
    --theme-surface-soft: rgba(255, 255, 255, 0.04);
    --theme-border: rgba(255, 255, 255, 0.09);
    --theme-border-strong: rgba(183, 228, 35, 0.38);
    --theme-text-soft: rgba(255, 255, 255, 0.86);
    --theme-text-muted: rgba(255, 255, 255, 0.70);
    --theme-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 18px 40px rgba(0, 0, 0, 0.22);
    --card-bg: var(--theme-surface);
}

html[data-theme='light'] {
    --accent-ink: #4a7a0b;
    --accent-ink-hover: #355a05;

    --tile-bg: linear-gradient(145deg, #1d3d70 0%, #0d2146 100%);
    --tile-fg: #c9f23b;
    --tile-ring: rgba(16, 32, 55, 0.0);
    --tile-shadow: 0 8px 16px rgba(16, 32, 55, 0.20);

    --theme-page-bg:
        radial-gradient(900px 480px at 90% -10%, rgba(183, 228, 35, 0.16), transparent 60%),
        radial-gradient(800px 500px at -10% 105%, rgba(73, 138, 255, 0.10), transparent 60%),
        linear-gradient(180deg, #f6f9fd 0%, #eaf1f9 100%);
    --theme-surface: #ffffff;
    --theme-surface-muted: #f3f7fc;
    --theme-surface-soft: #eef4fb;
    --theme-border: rgba(16, 32, 55, 0.10);
    --theme-border-strong: rgba(16, 32, 55, 0.22);
    --theme-text: #0f1f38;
    --theme-text-soft: #1f3552;
    --theme-text-muted: #51647e;
    --theme-shadow: 0 1px 2px rgba(16, 32, 55, 0.05), 0 14px 34px rgba(16, 32, 55, 0.08);
    --card-bg: var(--theme-surface);
}

/* ------------------------------------------------------------------ base */
body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.01em;
}

a { text-underline-offset: 3px; }

:focus-visible {
    outline: 3px solid rgba(183, 228, 35, 0.65);
    outline-offset: 2px;
}

html[data-theme='light'] :focus-visible {
    outline-color: rgba(74, 122, 11, 0.7);
}

/* ------------------------------------------------------------------ accent text (light theme contrast fix) */
html[data-theme='light'] .text-lime,
html[data-theme='light'] i.text-lime,
html[data-theme='light'] .fas.text-lime,
html[data-theme='light'] .fa-solid.text-lime,
html[data-theme='light'] .dash-title span,
html[data-theme='light'] .hero-title span,
html[data-theme='light'] .cta-card h2,
html[data-theme='light'] .fact-box strong,
html[data-theme='light'] .info-label,
html[data-theme='light'] .price-value,
html[data-theme='light'] .price-amount,
html[data-theme='light'] .amount-value,
html[data-theme='light'] .detail-value.mono,
html[data-theme='light'] .detail-value.lime,
html[data-theme='light'] .d-row-val.lime,
html[data-theme='light'] .pay-row-val,
html[data-theme='light'] .price-tag,
html[data-theme='light'] .type-chip,
html[data-theme='light'] .chip i,
html[data-theme='light'] .file-name-display,
html[data-theme='light'] .error-text,
html[data-theme='light'] .view-all-link,
html[data-theme='light'] .results-header a,
html[data-theme='light'] .beba-seller-container .back-link,
html[data-theme='light'] .section-header i,
html[data-theme='light'] .security-note i,
html[data-theme='light'] .file-upload i,
html[data-theme='light'] .required,
html[data-theme='light'] code,
html[data-theme='light'] .empty-state i,
html[data-theme='light'] .empty-state-icon,
html[data-theme='light'] .option-icon i,
html[data-theme='light'] .info-banner i,
html[data-theme='light'] .tips-card i,
html[data-theme='light'] .price-info i,
html[data-theme='light'] .seller-icon i,
html[data-theme='light'] .strip-icon i {
    color: var(--accent-ink) !important;
}

html[data-theme='light'] .text-decoration-none.text-lime:hover,
html[data-theme='light'] .view-all-link:hover,
html[data-theme='light'] .results-header a:hover,
html[data-theme='light'] .beba-seller-container .back-link:hover {
    color: var(--accent-ink-hover) !important;
}

/* In dark mode keep accent text bright but not neon-harsh */
html[data-theme='dark'] .text-lime { color: var(--accent-ink) !important; }

/* ------------------------------------------------------------------ icon tiles */
.icon-tile,
.compact-stat-icon,
.stat-icon,
.feature-icon,
.category-icon,
.contact-icon,
.icon-circle,
.option-icon,
.section-title-icon,
.strip-icon,
.seller-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: var(--tile-bg) !important;
    color: var(--tile-fg) !important;
    border: 0 !important;
    border-radius: var(--radius-md) !important;
    box-shadow: inset 0 0 0 1px var(--tile-ring), var(--tile-shadow);
    flex-shrink: 0;
}

.compact-stat-icon {
    width: 44px !important;
    height: 44px !important;
    margin: 0 auto 12px !important;
}

.icon-tile { width: 44px; height: 44px; font-size: 1.1rem; }
.icon-tile--lg { width: 60px; height: 60px; font-size: 1.5rem; border-radius: 18px !important; }
.icon-tile--sm { width: 34px; height: 34px; font-size: 0.9rem; border-radius: 10px !important; }
.icon-tile--lime {
    background: linear-gradient(145deg, #d3f45a 0%, var(--lime) 55%, #9fcb10 100%) !important;
    color: var(--navy-900) !important;
    box-shadow: 0 8px 18px rgba(143, 179, 21, 0.35);
}

.icon-tile i,
.compact-stat-icon i,
.stat-icon i,
.feature-icon i,
.category-icon i,
.contact-icon i,
.icon-circle i,
.option-icon i,
.section-title-icon i,
.strip-icon i,
.seller-icon i,
html[data-theme='light'] .icon-tile i,
html[data-theme='light'] .compact-stat-icon i,
html[data-theme='light'] .stat-icon i,
html[data-theme='light'] .feature-icon i,
html[data-theme='light'] .category-icon i,
html[data-theme='light'] .contact-icon i,
html[data-theme='light'] .icon-circle i,
html[data-theme='light'] .option-icon i,
html[data-theme='light'] .section-title-icon i,
html[data-theme='light'] .strip-icon i,
html[data-theme='light'] .seller-icon i {
    color: inherit !important;
}

.icon-tile--lime i,
html[data-theme='light'] .icon-tile--lime i { color: var(--navy-900) !important; }

/* Home page entry cards use a lime tile already; give it the same polish */
.public-entry-icon {
    border-radius: 18px !important;
    background: linear-gradient(145deg, #d3f45a 0%, var(--lime) 55%, #9fcb10 100%) !important;
    box-shadow: 0 10px 22px rgba(143, 179, 21, 0.35);
}

html[data-theme='light'] .public-entry-arrow { color: var(--accent-ink) !important; }

/* ------------------------------------------------------------------ navbar */
.glass-navbar {
    padding: 0.6rem 0;
}

html[data-theme='dark'] .glass-navbar {
    background: rgba(8, 20, 35, 0.82) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
}

html[data-theme='light'] .glass-navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(16, 32, 55, 0.08) !important;
    box-shadow: 0 6px 24px rgba(16, 32, 55, 0.06) !important;
}

.glass-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0;
    margin-right: 1.25rem;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #d3f45a 0%, var(--lime) 55%, #9fcb10 100%);
    color: var(--navy-900) !important;
    font-size: 1.05rem;
    box-shadow: 0 6px 14px rgba(143, 179, 21, 0.35);
}

.brand-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-tagline {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--accent-ink);
    margin-top: 2px;
}

html[data-theme='light'] .glass-navbar .brand-tagline { color: var(--accent-ink) !important; }

.glass-navbar .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.93rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

html[data-theme='dark'] .glass-navbar .nav-link { color: rgba(255, 255, 255, 0.82); }

html[data-theme='dark'] .glass-navbar .nav-link:hover,
html[data-theme='dark'] .glass-navbar .nav-link:focus {
    background: rgba(255, 255, 255, 0.07);
    color: #fff !important;
}

html[data-theme='light'] .glass-navbar .nav-link:hover,
html[data-theme='light'] .glass-navbar .nav-link:focus {
    background: rgba(16, 32, 55, 0.06);
    color: var(--theme-text) !important;
}

.glass-navbar .nav-link.active {
    background: var(--lime-soft);
    color: var(--accent-ink) !important;
}

html[data-theme='light'] .glass-navbar .nav-link.active {
    background: rgba(183, 228, 35, 0.28);
    color: #2f4f06 !important;
}

/* BebaCheck / BebaVerify are the headline services: icon + stronger weight */
.glass-navbar .nav-link.nav-primary i { font-size: 0.9rem; opacity: 0.95; }
.glass-navbar .nav-link.nav-primary { font-weight: 700; }

.glass-navbar .nav-link .badge {
    font-size: 0.62rem;
    padding: 0.28em 0.55em;
    border-radius: 999px;
    letter-spacing: 0.04em;
}

.theme-toggle-btn {
    font-size: 0.88rem !important;
    font-weight: 600;
}

html[data-theme='dark'] .glass-navbar .nav-link i.fa-bell { color: inherit; }

/* mobile menu */
@media (max-width: 991.98px) {
    .glass-navbar .navbar-collapse {
        margin-top: 0.75rem;
        padding: 0.75rem;
        border-radius: var(--radius-md);
        background: var(--theme-surface);
        border: 1px solid var(--theme-border);
    }

    .glass-navbar .nav-link { width: 100%; padding: 0.7rem 0.9rem !important; }
    .brand-tagline { display: none; }
}

/* ------------------------------------------------------------------ buttons / badges */
.btn {
    border-radius: var(--radius-md);
    font-weight: 600;
    letter-spacing: 0.005em;
}

.btn-lg { padding: 0.8rem 1.5rem; }

.btn-lime {
    background: linear-gradient(180deg, #c8f03c 0%, var(--lime) 100%) !important;
    border: 1px solid #a8d014 !important;
    color: var(--navy-900) !important;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(143, 179, 21, 0.28);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-lime:hover,
.btn-lime:focus {
    filter: brightness(0.97);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(143, 179, 21, 0.38);
    color: var(--navy-900) !important;
}

.btn-lime:active { transform: translateY(0); }

html[data-theme='dark'] .btn-outline-lime {
    background: rgba(183, 228, 35, 0.04) !important;
    border: 1px solid rgba(183, 228, 35, 0.55) !important;
    color: var(--accent-ink) !important;
}

html[data-theme='dark'] .btn-outline-lime:hover,
html[data-theme='dark'] .btn-outline-lime:focus {
    background: var(--lime) !important;
    border-color: var(--lime) !important;
    color: var(--navy-900) !important;
}

html[data-theme='light'] .btn-outline-lime {
    background: #fff !important;
    border: 1px solid rgba(16, 32, 55, 0.22) !important;
    color: var(--theme-text) !important;
}

html[data-theme='light'] .btn-outline-lime:hover,
html[data-theme='light'] .btn-outline-lime:focus {
    background: var(--lime) !important;
    border-color: #a8d014 !important;
    color: var(--navy-900) !important;
}

.badge { font-weight: 700; letter-spacing: 0.02em; }
.badge.bg-lime,
html[data-theme='light'] .badge.bg-lime {
    background: var(--lime) !important;
    color: var(--navy-900) !important;
    border-radius: 999px;
}

/* ------------------------------------------------------------------ cards / surfaces */
.glass-card {
    border-radius: var(--radius-lg) !important;
}

html[data-theme='dark'] .glass-card {
    background: linear-gradient(180deg, rgba(24, 44, 76, 0.82), rgba(16, 32, 58, 0.78)) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme='light'] .glass-card {
    border: 1px solid rgba(16, 32, 55, 0.08) !important;
}

.glass-card:hover { transform: none; }

.card-header {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}

html[data-theme='light'] .card-header.text-lime,
html[data-theme='light'] .card-header .text-lime,
html[data-theme='light'] .card-header h5,
html[data-theme='light'] .card-header h6 {
    color: var(--theme-text) !important;
}

html[data-theme='dark'] .card-header.text-lime h5,
html[data-theme='dark'] .card-header.text-lime h6 { color: var(--accent-ink) !important; }

.list-group-item { border-radius: 0; }

/* ------------------------------------------------------------------ forms */
.form-control,
.form-select {
    border-radius: var(--radius-md);
    padding: 0.65rem 0.9rem;
}

html[data-theme='dark'] .form-control,
html[data-theme='dark'] .form-select {
    background: rgba(8, 20, 35, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

html[data-theme='dark'] .form-control:focus,
html[data-theme='dark'] .form-select:focus {
    border-color: var(--lime);
    box-shadow: 0 0 0 0.2rem rgba(183, 228, 35, 0.2);
}

html[data-theme='light'] .form-control:focus,
html[data-theme='light'] .form-select:focus,
html[data-theme='light'] textarea:focus,
html[data-theme='light'] select:focus {
    border-color: #7fae10 !important;
    box-shadow: 0 0 0 0.22rem rgba(127, 174, 16, 0.2) !important;
}

/* ------------------------------------------------------------------ footer */
footer.site-footer { padding-top: 2.25rem !important; padding-bottom: 2.25rem !important; }

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
}

.footer-brand .brand-mark { width: 34px; height: 34px; font-size: 0.95rem; }

.footer-tagline {
    font-weight: 700;
    color: var(--accent-ink);
    margin-bottom: 0.25rem;
}

html[data-theme='light'] .footer-tagline { color: var(--accent-ink) !important; }

html[data-theme='dark'] .footer-links a { color: rgba(255, 255, 255, 0.72); }
html[data-theme='dark'] .footer-links a:hover { color: var(--accent-ink-hover); }
html[data-theme='light'] .footer-links a { color: var(--theme-text-soft) !important; }
html[data-theme='light'] .footer-links a:hover { color: var(--accent-ink) !important; }

.footer-links a i { color: var(--accent-ink); opacity: 0.9; }
html[data-theme='light'] .footer-links a i { color: var(--accent-ink) !important; }

.footer-links { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; }
.footer-links a.me-3 { margin-right: 0 !important; }

/* ------------------------------------------------------------------ eyebrow / tagline chip */
.eyebrow,
.tagline-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: var(--lime-soft);
    border: 1px solid rgba(183, 228, 35, 0.3);
    color: var(--accent-ink);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

html[data-theme='light'] .eyebrow,
html[data-theme='light'] .tagline-chip {
    background: rgba(183, 228, 35, 0.22) !important;
    border-color: rgba(120, 160, 10, 0.35) !important;
    color: #2f4f06 !important;
}

/* ================================================================== DASHBOARD HUB */
.hub {
    padding: 1.75rem 0 3rem;
}

.hub-hero {
    position: relative;
    overflow: hidden;
    padding: 2rem 2rem 1.9rem;
    border-radius: 24px;
    background:
        radial-gradient(520px 260px at 95% 0%, rgba(183, 228, 35, 0.22), transparent 65%),
        linear-gradient(135deg, #0d1f3c 0%, #173564 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 48px rgba(8, 20, 35, 0.28);
    color: #fff;
}

.hub-hero h1,
html[data-theme='light'] .hub-hero h1 {
    color: #fff !important;
    font-weight: 800;
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
    margin: 0.85rem 0 0.4rem;
}

.hub-hero h1 span,
html[data-theme='light'] .hub-hero h1 span { color: var(--lime) !important; }

.hub-hero p,
html[data-theme='light'] .hub-hero p {
    color: rgba(255, 255, 255, 0.82) !important;
    max-width: 560px;
    margin: 0;
    font-size: 1.02rem;
}

.hub-hero .tagline-chip,
html[data-theme='light'] .hub-hero .tagline-chip {
    background: rgba(183, 228, 35, 0.16) !important;
    border-color: rgba(183, 228, 35, 0.4) !important;
    color: var(--lime) !important;
}

.hub-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }

.hub-hero .btn-outline-lime,
html[data-theme='light'] .hub-hero .btn-outline-lime {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #fff !important;
}

.hub-hero .btn-outline-lime:hover,
html[data-theme='light'] .hub-hero .btn-outline-lime:hover {
    background: #fff !important;
    color: var(--navy-900) !important;
    border-color: #fff !important;
}

.hub-section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 2rem 0 0.9rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--theme-text-muted) !important;
}

.hub-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--theme-border);
}

/* primary services */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.6rem;
    border-radius: 22px;
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    box-shadow: var(--theme-shadow);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--lime), #6fd1a3);
}

.service-card--verify::before { background: linear-gradient(90deg, #6fd1a3, #4aa8ff); }

.service-card:hover {
    transform: translateY(-3px);
    border-color: var(--theme-border-strong);
}

.service-card-head { display: flex; align-items: flex-start; gap: 1rem; }

.service-card h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.service-card p {
    margin: 0;
    color: var(--theme-text-muted) !important;
    line-height: 1.5;
}

.service-search {
    display: flex;
    gap: 0.5rem;
}

.service-search .form-control { flex: 1; min-width: 0; }

.service-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: auto; }

.service-stats {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.service-stat {
    flex: 1 1 120px;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-md);
    background: var(--theme-surface-soft);
    border: 1px solid var(--theme-border);
}

.service-stat strong {
    display: block;
    font-size: 1.4rem;
    line-height: 1.1;
    color: var(--theme-text) !important;
}

.service-stat span {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--theme-text-muted) !important;
}

/* secondary: BebaBox delivery */
.delivery-panel {
    border-radius: 20px;
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    box-shadow: var(--theme-shadow);
    overflow: hidden;
}

.delivery-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--theme-border);
}

.delivery-head h2 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.delivery-head small { color: var(--theme-text-muted) !important; font-weight: 500; }

.delivery-body { padding: 1.4rem; }

.mini-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.4rem;
}

.mini-stat {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    background: var(--theme-surface-soft);
    border: 1px solid var(--theme-border);
}

.mini-stat strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1.05;
    color: var(--theme-text) !important;
}

.mini-stat div > span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--theme-text-muted) !important;
}

.active-box-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: 1.15rem 1.25rem;
    border-radius: var(--radius-md);
    background: var(--theme-surface-soft);
    border: 1px solid var(--theme-border);
    margin-bottom: 1.4rem;
}

.active-box-tile h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 0.35rem; }

.meta-row { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; color: var(--theme-text-muted) !important; font-size: 0.88rem; }
.meta-row i { margin-right: 0.35rem; color: var(--accent-ink); }
html[data-theme='light'] .meta-row i { color: var(--accent-ink) !important; }

.empty-box {
    text-align: center;
    padding: 1.6rem 1rem;
    border-radius: var(--radius-md);
    border: 1px dashed var(--theme-border-strong);
    margin-bottom: 1.4rem;
}

.empty-box p { color: var(--theme-text-muted) !important; margin: 0.6rem auto 1rem; max-width: 420px; }

.recent-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--theme-text-muted) !important;
    margin-bottom: 0.5rem;
}

.recent-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--theme-border);
}

.recent-row:last-child { border-bottom: 0; }
.recent-row .grow { flex: 1; min-width: 0; }
.recent-row h6 { margin: 0; font-size: 0.92rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.recent-row small { color: var(--theme-text-muted) !important; }
.recent-empty { color: var(--theme-text-muted) !important; font-size: 0.9rem; padding: 0.6rem 0; }

@media (max-width: 991.98px) {
    .service-grid { grid-template-columns: 1fr; }
    .mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 575.98px) {
    .hub-hero { padding: 1.4rem 1.2rem; border-radius: 20px; }
    .hub-hero-actions .btn { width: 100%; }
    .service-card { padding: 1.25rem; }
    .service-search { flex-direction: column; }
    .service-actions .btn { flex: 1 1 100%; }
    .delivery-body { padding: 1rem; }
    .mini-stats { grid-template-columns: 1fr 1fr !important; gap: 0.6rem; }
    .mini-stat { padding: 0.7rem; gap: 0.6rem; }
    .active-box-tile .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; }
}

/* ------------------------------------------------------------------ readability tweaks */
.lead { font-weight: 400; }

html[data-theme='light'] .text-light-soft,
html[data-theme='light'] .lead { color: var(--theme-text-muted) !important; }

.footer-brand h5 { font-weight: 800; letter-spacing: -0.02em; }
