/* ============================================================
   Offerbol - Main Stylesheet
   ============================================================ */

/* --- CSS Variables --- */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --accent: #f59e0b;
    --danger: #ef4444;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --min-touch-target: 44px; /* WCAG 2.1 AA minimum */
}

/* --- Accessibility: Skip Navigation --- */
.skip-nav {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 9999;
    padding: 12px 24px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.2s;
}
.skip-nav:focus {
    top: 0;
}

/* --- Accessibility: Focus Styles --- */
*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Remove outline for mouse users */
*:focus:not(:focus-visible) {
    outline: none;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- Base Styles --- */
body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fluid typography */
html {
    font-size: clamp(14px, 1vw + 12px, 16px);
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: #fff;
    padding: clamp(3rem, 8vw, 6rem) 0;
    text-align: center;
}
.hero-section h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}
.hero-section p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
}
.hero-search {
    max-width: 700px;
    margin: 2rem auto 0;
}
.hero-search .form-control {
    height: 54px;
    font-size: 1.1rem;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    border: none;
    padding-left: 1.2rem;
}
.hero-search .btn {
    height: 54px;
    min-width: 120px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-weight: 600;
}

/* Mobile hero search stacks vertically */
@media (max-width: 576px) {
    .hero-search .input-group {
        flex-direction: column;
    }
    .hero-search .form-control,
    .hero-search .btn {
        border-radius: var(--radius-md);
        width: 100%;
    }
    .hero-search .btn {
        margin-top: 0.5rem;
    }
    .hero-search select.form-control {
        margin-top: 0.5rem;
    }
}

/* --- Category Cards --- */
.category-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.category-card .icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}
.category-card h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.category-card .count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Listing Cards --- */
.listing-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: box-shadow 0.2s, transform 0.15s;
}
.listing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.listing-card .card-title a {
    color: var(--text-dark);
    font-weight: 600;
}
.listing-card .card-title a:hover {
    color: var(--primary);
}
.logo-placeholder {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border: 1px solid var(--border);
}
.category-badge {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
}

/* --- Rating Stars --- */
.rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
}
.rating-stars .bi-star-fill,
.rating-stars .bi-star-half {
    color: var(--accent);
}
.rating-stars .bi {
    font-size: 0.9rem;
}

/* --- Touch Targets (Mobile) --- */
@media (max-width: 768px) {
    .btn {
        min-height: var(--min-touch-target);
        padding: 0.6rem 1rem;
    }
    .nav-link {
        min-height: var(--min-touch-target);
        display: flex;
        align-items: center;
    }
    .form-control, .form-select {
        min-height: var(--min-touch-target);
        font-size: 16px; /* prevents iOS zoom */
    }
    .dropdown-item {
        padding: 0.75rem 1.25rem;
    }
    /* Stack listing card buttons */
    .listing-card .d-flex.gap-2 {
        flex-direction: column;
    }
    .listing-card .btn {
        width: 100%;
    }
}

/* --- Vendor Dashboard Sidebar --- */
.vendor-sidebar {
    width: 250px;
    min-height: calc(100vh - 56px);
    background: var(--bg-light);
    border-right: 1px solid var(--border);
    position: fixed;
    left: 0;
    top: 56px;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
}
.vendor-sidebar .nav-link {
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    border-left: 3px solid transparent;
    min-height: var(--min-touch-target);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.vendor-sidebar .nav-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.vendor-sidebar .nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}
.vendor-content {
    margin-left: 250px;
    min-height: calc(100vh - 56px);
}

@media (max-width: 991px) {
    .vendor-sidebar {
        transform: translateX(-100%);
    }
    .vendor-sidebar.show {
        transform: translateX(0);
    }
    .vendor-content {
        margin-left: 0;
    }
}

/* ============================================================
   ADMIN PANEL THEME
   ============================================================ */

/* --- Admin Navbar --- */
.admin-navbar {
    height: 60px;
    background-color: #0f172a !important;
    background-image: linear-gradient(90deg, #0f172a 0%, #1e293b 100%) !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: none !important;
    --bs-navbar-color: #e2e8f0;
    --bs-navbar-hover-color: #ffffff;
    --bs-navbar-active-color: #ffffff;
    --bs-navbar-brand-color: #ffffff;
    --bs-navbar-brand-hover-color: #ffffff;
}
.admin-navbar .navbar-brand,
.admin-navbar .navbar-brand span {
    color: #fff;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
}
.admin-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
}
.admin-brand-sub {
    color: #93c5fd;
    font-weight: 500;
}
/* Navbar buttons are Bootstrap .btn elements; override their default dark
   text so links stay readable on the dark navbar (incl. hover/focus). */
.admin-navbar .admin-navbar-link,
.admin-navbar .admin-navbar-link:link,
.admin-navbar .admin-navbar-link:visited {
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
}
.admin-navbar .admin-navbar-link:hover,
.admin-navbar .admin-navbar-link:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}
.admin-navbar .admin-user {
    color: #e2e8f0;
    padding-right: 0.25rem;
}
.admin-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}
.admin-navbar .admin-user-name { font-weight: 600; font-size: 0.9rem; color: #f1f5f9; }
.admin-navbar .admin-logout-btn,
.admin-navbar .admin-logout-btn:link,
.admin-navbar .admin-logout-btn:visited {
    color: #fca5a5 !important;
    border: 1px solid rgba(248, 113, 113, 0.45);
    border-radius: var(--radius-sm);
}
.admin-navbar .admin-logout-btn:hover,
.admin-navbar .admin-logout-btn:focus {
    color: #fff !important;
    background: var(--danger);
    border-color: var(--danger);
}

/* --- Admin Shell / Layout --- */
.admin-shell {
    display: flex;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}
.admin-main {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 256px;
    display: flex;
    flex-direction: column;
}

/* --- Admin Sidebar (Dark, Grouped) --- */
.admin-sidebar {
    width: 256px;
    min-height: calc(100vh - 60px);
    background: linear-gradient(180deg, #1e293b 0%, #172033 100%);
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.admin-nav {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0.75rem 1.5rem;
}
.admin-nav-heading {
    padding: 1rem 0.75rem 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}
.admin-sidebar .nav-link {
    position: relative;
    padding: 0.6rem 0.85rem;
    margin-bottom: 2px;
    color: #94a3b8;
    border-radius: var(--radius-sm);
    min-height: var(--min-touch-target);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.925rem;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.admin-sidebar .nav-link i {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.admin-sidebar .nav-link:hover {
    background: rgba(148, 163, 184, 0.1);
    color: #f1f5f9;
}
.admin-sidebar .nav-link.active {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.22) 0%, rgba(37, 99, 235, 0.05) 100%);
    color: #fff;
    font-weight: 600;
}
.admin-sidebar .nav-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--primary) 0%, #4f46e5 100%);
}

/* --- Sidebar backdrop (mobile) --- */
.admin-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 60px 0 0 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 999;
}

/* --- Admin Content --- */
.admin-content {
    flex: 1 1 auto;
    background: var(--bg-light);
}
.admin-content-inner {
    padding: 1.75rem 2rem;
    max-width: 1280px;
}

/* --- Admin Footer --- */
.admin-footer {
    padding: 1rem 2rem;
    color: var(--text-muted);
    font-size: 0.825rem;
    border-top: 1px solid var(--border);
    background: var(--bg-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.admin-footer-sep { opacity: 0.5; }

/* --- Admin: Page header --- */
.admin-panel h2 {
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

/* --- Admin: Cards --- */
.admin-panel .card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.admin-panel .card.shadow-sm:hover {
    box-shadow: var(--shadow-md);
}
.admin-panel .card-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    padding: 1rem 1.25rem;
}

/* --- Admin: Stat cards --- */
.admin-panel .stat-card {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-white);
    overflow: hidden;
    position: relative;
}
.admin-panel .stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: var(--primary-light);
    color: var(--primary);
}
.admin-panel .stat-card .stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.1;
}
.admin-panel .stat-card .stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Admin: Tables --- */
.admin-panel .table {
    margin-bottom: 0;
}
.admin-panel .table > thead th {
    background: #f1f5f9;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 1rem;
    white-space: nowrap;
}
.admin-panel .table > tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #eef2f7;
}
.admin-panel .table-hover > tbody > tr:hover > * {
    background-color: #f8fafc;
}

/* --- Admin: Badges --- */
.admin-panel .badge {
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.4em 0.7em;
    border-radius: 999px;
}

/* --- Admin: Buttons --- */
.admin-panel .btn {
    border-radius: var(--radius-sm);
    font-weight: 500;
}
.admin-panel .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}
.admin-panel .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* --- Admin: Forms --- */
.admin-panel .form-control,
.admin-panel .form-select {
    border-radius: var(--radius-sm);
    border-color: var(--border);
}
.admin-panel .form-control:focus,
.admin-panel .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.admin-panel .form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
}

/* --- Admin: nav pills / filter tabs --- */
.admin-panel .nav-pills .nav-link {
    color: var(--text-muted);
    border-radius: 999px;
    font-weight: 500;
}
.admin-panel .nav-pills .nav-link.active {
    background: var(--primary);
    color: #fff;
}

/* --- Admin: Chips (summary pills) --- */
.admin-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text-muted);
}
.admin-chip-warning { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.admin-chip-success { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }

/* --- Admin: Reviews page --- */
.review-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 1rem;
}
.review-header-icon-warning { background: #fffbeb; color: #d97706; }
.review-header-icon-primary { background: var(--primary-light); color: var(--primary); }

.review-list .review-item {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #eef2f7;
    transition: background 0.15s ease;
}
.review-list .review-item:hover { background: #f8fafc; }
.review-body { min-width: 0; flex: 1 1 340px; }
.review-stars { font-size: 0.95rem; letter-spacing: 1px; }
.review-rating-num { font-weight: 700; color: var(--text-dark); font-size: 0.9rem; }
.review-title { font-weight: 600; color: var(--text-dark); }
.review-comment {
    color: #334155;
    line-height: 1.5;
    font-size: 0.95rem;
}
.review-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.82rem;
}
.review-meta i { opacity: 0.75; }
.review-meta-sep { opacity: 0.4; }
.review-actions form { margin: 0; }

.review-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
}
.review-empty i {
    font-size: 2.25rem;
    color: #cbd5e1;
    display: block;
    margin-bottom: 0.5rem;
}

/* --- Admin: Categories tree --- */
.min-w-0 { min-width: 0; }
.cat-tree { padding: 0.5rem 0; }
.cat-row {
    padding: 0.85rem 1.25rem;
    transition: background 0.15s ease;
}
.cat-parent + .cat-parent { border-top: 1px solid #eef2f7; }
.cat-row:hover { background: #f8fafc; }
.cat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.05rem;
    flex-shrink: 0;
}
.cat-icon-sub {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #f1f5f9;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.cat-name {
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cat-name-sub { font-weight: 500; font-size: 0.95rem; }
.cat-slug {
    color: var(--text-muted);
    font-family: var(--font-mono, monospace);
    font-size: 0.78rem;
}
.cat-children {
    margin: 0.5rem 0 0 3rem;
    border-left: 2px solid #eef2f7;
    padding-left: 0.25rem;
}
.cat-children .cat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
}
.cat-inactive .cat-name,
.cat-inactive .cat-icon { opacity: 0.6; }

/* Action buttons: space them out instead of a joined btn-group */
.cat-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}
.cat-actions form { margin: 0; }
.cat-actions .btn {
    border-radius: var(--radius-sm) !important;
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.4;
}
.cat-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}
.cat-empty i {
    font-size: 2.5rem;
    color: #cbd5e1;
    display: block;
    margin-bottom: 0.75rem;
}

/* --- Admin: Package pricing cards --- */
.pkg-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}
.pkg-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}
.pkg-card-featured {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}
.pkg-card-inactive { opacity: 0.72; }
.pkg-ribbon {
    position: absolute;
    top: 0.9rem;
    right: -2.4rem;
    transform: rotate(45deg);
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.25rem 2.6rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.pkg-name {
    font-weight: 700;
    color: var(--text-dark);
}
.pkg-price {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    color: var(--primary);
}
.pkg-currency { font-size: 1.1rem; font-weight: 600; }
.pkg-amount { font-size: 2rem; font-weight: 800; line-height: 1; }
.pkg-duration {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.pkg-dot { opacity: 0.4; margin: 0 0.15rem; }
.pkg-features {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--border);
    padding-top: 0.85rem;
}
.pkg-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #334155;
    font-size: 0.9rem;
    margin-bottom: 0.45rem;
}
.pkg-features li i {
    color: var(--secondary);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .admin-main {
        margin-left: 0;
    }
    .admin-sidebar {
        transform: translateX(-100%);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
    }
    .admin-sidebar.show {
        transform: translateX(0);
    }
    .admin-sidebar.show ~ .admin-sidebar-backdrop {
        display: block;
    }
    .admin-content-inner {
        padding: 1.25rem;
    }
    .admin-footer {
        padding: 1rem 1.25rem;
    }
}

/* --- Search Results Page --- */
.search-sidebar {
    position: sticky;
    top: 80px;
}
@media (max-width: 768px) {
    .search-sidebar {
        position: static;
        margin-bottom: 1.5rem;
    }
}

/* --- Business Detail Page --- */
.vendor-header {
    background: linear-gradient(135deg, var(--primary-light) 0%, #f0f9ff 100%);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}
.vendor-logo-large {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 3px solid var(--bg-white);
    box-shadow: var(--shadow-md);
}
.verified-badge {
    background: var(--secondary);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-weight: 600;
}

/* --- How it Works Section --- */
.how-it-works .step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--primary);
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}
.cta-section h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

/* --- Footer --- */
/* Ensure links are legible on the dark footer background.
   The markup uses Bootstrap's .text-muted, which is too dark here, so
   override link/muted colors within the footer specifically. */
footer .text-muted { color: #cbd5e1 !important; }
footer a.text-muted { color: #cbd5e1 !important; }
footer a.text-muted:hover,
footer a.text-muted:focus { color: #ffffff !important; }

.footer-links li {
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover,
.footer-links a:focus {
    color: #fff !important;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: background 0.2s;
    min-width: var(--min-touch-target);
    min-height: var(--min-touch-target);
}
.social-links a:hover {
    background: var(--primary);
}

/* --- Forms --- */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* --- Breadcrumbs --- */
.breadcrumb {
    background: transparent;
    padding: 0.75rem 0;
    margin-bottom: 0;
    font-size: 0.875rem;
}
.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}
.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* --- Pagination --- */
.pagination .page-link {
    min-width: var(--min-touch-target);
    min-height: var(--min-touch-target);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border-color: var(--border);
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* --- Responsive Spacing --- */
@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* --- Utilities --- */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Stats Cards (Dashboard) --- */
.stat-card {
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --- Package Cards --- */
.package-card {
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    transition: border-color 0.2s, transform 0.2s;
}
.package-card:hover,
.package-card.featured {
    border-color: var(--primary);
    transform: translateY(-4px);
}
.package-card .price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

/* --- Photo Gallery --- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}
.photo-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: opacity 0.2s;
}
.photo-grid img:hover {
    opacity: 0.85;
}

/* --- Review Cards --- */
.review-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

/* --- Print Styles --- */
@media print {
    .skip-nav, .navbar, footer, .btn, .sidebar {
        display: none !important;
    }
    body {
        font-size: 12pt;
    }
}

/* --- High Contrast Mode --- */
@media (forced-colors: active) {
    .category-badge {
        border: 1px solid;
    }
    .btn {
        border: 1px solid;
    }
}


/* ============================================================
   UI ENHANCEMENT LAYER (look & feel refresh)
   Layout + List page (search) + Detail page (listing)
   ============================================================ */

/* --- Refined design tokens --- */
:root {
    --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
    --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
    --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08);
    --shadow-lg: 0 12px 28px rgba(16, 24, 40, 0.12);
    --shadow-primary: 0 6px 18px rgba(37, 99, 235, 0.28);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

body {
    background-color: var(--bg-light);
}

/* Nicer thin scrollbars in scrollable filter lists */
.overflow-auto::-webkit-scrollbar { width: 8px; }
.overflow-auto::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
.overflow-auto::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* --- Buttons: subtle depth + motion --- */
.btn {
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: transform 0.12s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--gradient-primary);
    border: none;
}
.btn-primary:hover {
    box-shadow: var(--shadow-primary);
    filter: brightness(1.03);
}
.btn-success { border: none; background: var(--gradient-success); }
.btn-success:hover { box-shadow: 0 6px 18px rgba(16, 185, 129, 0.28); filter: brightness(1.03); }

/* --- Cards: consistent radius, border, hover lift --- */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.card-header {
    border-bottom: 1px solid var(--border);
    background: var(--bg-white);
    font-weight: 600;
}

/* --- Badges --- */
.badge { font-weight: 600; letter-spacing: 0.2px; }
.category-badge {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 999px;
}

/* --- Navbar polish --- */
.navbar:not(.admin-navbar) {
    backdrop-filter: saturate(180%) blur(6px);
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid var(--border);
}
.navbar-brand { font-size: 1.35rem; letter-spacing: -0.3px; }
.navbar .nav-link { font-weight: 500; position: relative; }
.navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 0.5rem; right: 0.5rem; bottom: 4px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s var(--ease);
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { transform: scaleX(1); }

/* --- Footer polish --- */
footer.bg-dark { background: #0f172a !important; }
.footer-links a { position: relative; }
.footer-links a:hover { padding-left: 3px; }

/* ============================================================
   SEARCH / LIST PAGE
   ============================================================ */

/* Sticky, compact search bar on results page */
.search-topbar { position: sticky; top: 72px; z-index: 20; }

/* Filter sidebar */
.search-sidebar .card-header { background: var(--bg-white); }
.search-sidebar .form-check-label { cursor: pointer; }
.search-sidebar .form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }

/* Vendor result cards */
.vendor-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: transform 0.18s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
    overflow: hidden;
    position: relative;
}
.vendor-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.2s var(--ease);
}
.vendor-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.vendor-card:hover::before { opacity: 1; }
.vendor-card img {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #fff;
}
.vendor-card h5 a { transition: color 0.15s var(--ease); }
.vendor-card:hover h5 a { color: var(--primary); }

/* Logo ring for placeholders and images */
.vendor-logo-ring {
    padding: 3px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-light), #ede9fe);
}

/* --- listing-card partial --- */
.listing-card { overflow: hidden; }
.listing-card:hover { border-color: transparent; }
.listing-card .vendor-logo img {
    border: 1px solid var(--border);
    object-fit: cover;
}
.logo-placeholder { width: 60px; height: 60px; }

/* ============================================================
   BUSINESS DETAIL PAGE
   ============================================================ */

/* Header banner */
.biz-hero {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    color: #fff;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}
.biz-hero h1 { color: #fff; }
.biz-hero .text-muted,
.biz-hero .badge.bg-light { color: rgba(255,255,255,0.85) !important; }
.biz-hero .badge.bg-light {
    background: rgba(255,255,255,0.15) !important;
    border-color: rgba(255,255,255,0.25) !important;
    color: #fff !important;
}
.biz-hero-logo {
    width: 96px; height: 96px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.85);
    box-shadow: var(--shadow-md);
    background: #fff;
}
.biz-hero-logo-placeholder {
    width: 96px; height: 96px; min-width: 96px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.4);
}

/* Tabs as pills */
.nav-tabs.card-header-tabs .nav-link {
    border: none;
    border-radius: 999px;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.5rem 1.1rem;
    transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.nav-tabs.card-header-tabs .nav-link:hover { background: var(--primary-light); color: var(--primary); }
.nav-tabs.card-header-tabs .nav-link.active {
    background: var(--primary);
    color: #fff;
}
.nav-tabs .nav-link .badge { background: rgba(0,0,0,0.15) !important; }
.nav-tabs .nav-link.active .badge { background: rgba(255,255,255,0.25) !important; }

/* Services list chips */
.service-chip {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.service-chip:hover { border-color: var(--primary); box-shadow: var(--shadow-xs); }

/* Photo gallery zoom */
.gallery-item { overflow: hidden; border-radius: var(--radius-sm); }
.gallery-item img { transition: transform 0.3s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }

/* Review items */
.review-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    background: var(--bg-white);
    transition: box-shadow 0.15s var(--ease);
}
.review-item:hover { box-shadow: var(--shadow-sm); }
.review-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Rating summary big number */
.rating-summary .display-4 { line-height: 1; }

/* Sticky sidebar for contact/related on detail page */
.biz-sidebar { position: sticky; top: 80px; }
@media (max-width: 991px) {
    .biz-sidebar { position: static; }
}

/* Similar businesses rows */
.similar-row { transition: background-color 0.15s var(--ease); }
.similar-row:hover { background: var(--bg-light); }

/* --- Mobile sticky action bar (detail page) --- */
.mobile-action-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1030;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(16,24,40,0.08);
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    display: none;
    gap: 0.5rem;
}
.mobile-action-bar .btn { flex: 1; }
@media (max-width: 767.98px) {
    .mobile-action-bar { display: flex; }
    /* room so content isn't hidden behind the bar */
    body.has-mobile-action-bar { padding-bottom: 76px; }
}

/* Fade-in for content cards */
@media (prefers-reduced-motion: no-preference) {
    .fade-in-up { animation: fadeInUp 0.4s var(--ease) both; }
    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(8px); }
        to { opacity: 1; transform: translateY(0); }
    }
}


/* ============================================================
   CATEGORIES PAGE
   ============================================================ */

/* Intro hero band */
.cat-hero {
    background: var(--gradient-primary);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: var(--shadow-md);
}
.cat-hero h1 {
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin-bottom: 0.25rem;
}
.cat-hero p { color: rgba(255, 255, 255, 0.9); max-width: 60ch; }

/* Category card */
.category-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: transform 0.18s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
    position: relative;
    overflow: hidden;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

/* Gradient icon tile */
.category-tile {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary-dark);
    background: linear-gradient(135deg, var(--primary-light) 0%, #ede9fe 100%);
    transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.category-card:hover .category-tile {
    transform: rotate(-6deg) scale(1.06);
    background: var(--gradient-primary);
    color: #fff;
}

/* Vendor count badge */
.cat-count-badge {
    background: var(--bg-light);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-weight: 600;
    padding: 0.28rem 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.category-card:hover .cat-count-badge {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-color: transparent;
}

/* Subcategory chips */
.subcat-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.subcat-chip {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.2;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: background-color 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.subcat-chip:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.subcat-chip-more {
    background: transparent;
    color: var(--primary);
    border-style: dashed;
    font-weight: 600;
}
.subcat-chip-more:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-color: var(--primary);
}


/* ============================================================
   SEARCH PAGE — toolbar, filter chips, filter card
   ============================================================ */

/* Results toolbar */
.results-toolbar { border: 1px solid var(--border); border-radius: var(--radius-md); }
.results-toolbar .form-select-sm { border-radius: var(--radius-sm); }

/* Removable active-filter chips */
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid transparent;
    text-decoration: none;
    transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.filter-chip:hover { background: var(--primary); color: #fff; }
.filter-chip .bi-x-lg { font-size: 0.7rem; opacity: 0.8; }

/* Filters card */
.filters-card .card-header {
    background: linear-gradient(135deg, var(--primary-light) 0%, #ede9fe 100%);
    border-bottom: 1px solid var(--border);
}
.filters-card .card-header h2 { color: var(--primary-dark); }
.filters-card .form-check-label { cursor: pointer; }
.filters-card .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}
/* Group headings inside filters */
.filters-card h6 { color: var(--text-dark); font-size: 0.9rem; }

/* Sticky filter panel on desktop */
@media (min-width: 992px) {
    .search-sidebar { position: sticky; top: 80px; }
}


/* ============================================================
   VENDOR REGISTER PAGE
   ============================================================ */

/* Hero band */
.reg-hero {
    background: var(--gradient-primary);
    color: #fff;
    padding: clamp(2rem, 5vw, 3.25rem) 0;
    margin-bottom: 0;
}
.reg-hero h1 { color: #fff; font-weight: 800; letter-spacing: -0.5px; }
.reg-hero p { color: rgba(255,255,255,0.9); font-size: 1.05rem; }
.reg-hero-benefits li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    color: rgba(255,255,255,0.95);
}
.reg-hero-benefits .bi-check-circle-fill { color: #a7f3d0; }
.reg-hero-icon { font-size: 7rem; color: rgba(255,255,255,0.25); }

/* Section cards */
.section-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    color: var(--text-dark);
    padding: 0.9rem 1.25rem;
}
.section-header .bi { color: var(--primary); }
.section-num {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-primary);
}

/* Category toggle chips */
.cat-toggle-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cat-toggle-input { position: absolute; opacity: 0; width: 0; height: 0; }
.cat-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.cat-toggle .cat-toggle-check { opacity: 0; width: 0; transition: opacity 0.15s var(--ease), width 0.15s var(--ease); }
.cat-toggle:hover { border-color: var(--primary); color: var(--primary); }
.cat-toggle-input:checked + .cat-toggle {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.cat-toggle-input:checked + .cat-toggle .cat-toggle-check { opacity: 1; width: 1em; }
.cat-toggle-input:focus-visible + .cat-toggle {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Sticky submit bar */
.reg-submit-bar {
    position: sticky;
    bottom: 0;
    z-index: 30;
    background: rgba(255,255,255,0.96);
    backdrop-filter: saturate(180%) blur(6px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(16,24,40,0.06);
    padding: 0.75rem 0;
    margin-top: 0.5rem;
}


/* ============================================================
   HOMEPAGE
   ============================================================ */

/* Hero */
.home-hero {
    background: var(--gradient-primary);
    color: #fff;
    padding: clamp(3rem, 8vw, 5.5rem) 0;
    position: relative;
    overflow: hidden;
}
.home-hero::after {
    /* subtle decorative glow */
    content: '';
    position: absolute;
    top: -40%; right: -10%;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 70%);
    pointer-events: none;
}
.home-hero-title {
    font-weight: 800;
    letter-spacing: -1px;
    font-size: clamp(1.9rem, 4.5vw, 3.25rem);
}
.home-hero-sub { font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(255,255,255,0.9); }

/* Pill search card */
.home-search {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 0.6rem;
    position: relative;
    z-index: 1;
}
.home-search .input-icon { position: relative; }
.home-search .input-icon > .bi {
    position: absolute;
    left: 0.85rem; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    z-index: 2;
}
.home-search .input-icon .form-control,
.home-search .input-icon .form-select { padding-left: 2.4rem; background: var(--bg-light); border-radius: var(--radius-md); }
.home-search .input-icon .form-control:focus,
.home-search .input-icon .form-select:focus { background: #fff; }

/* Quick links */
.home-quicklinks { color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.home-quicklinks a {
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,0.14);
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    margin: 0.15rem;
    display: inline-block;
    transition: background-color 0.15s var(--ease);
}
.home-quicklinks a:hover { background: rgba(255,255,255,0.28); }

/* Hero trust stats */
.home-hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(1.25rem, 5vw, 3rem);
    flex-wrap: wrap;
}
.home-hero-stats .stat { display: flex; flex-direction: column; align-items: center; }
.home-hero-stats .num { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.home-hero-stats .lbl { font-size: 0.8rem; color: rgba(255,255,255,0.8); margin-top: 0.15rem; }

/* Section head accent underline */
.section-head h2 { position: relative; display: inline-block; }
.section-head h2::after {
    content: '';
    display: block;
    width: 56px; height: 3px;
    margin: 0.5rem auto 0;
    border-radius: 3px;
    background: var(--gradient-primary);
}

/* Category cards on home */
.home-cat-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.home-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.home-cat-card .category-tile { display: flex; }
.home-cat-card:hover .category-tile {
    transform: rotate(-6deg) scale(1.06);
    background: var(--gradient-primary);
    color: #fff;
}

/* How it works steps */
.home-steps { position: relative; }
.home-step-icon {
    position: relative;
    width: 84px; height: 84px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary-light) 0%, #ede9fe 100%);
}
.home-step-num {
    position: absolute;
    top: -6px; right: -6px;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-primary);
}
/* connector line between steps (desktop) */
@media (min-width: 768px) {
    .home-steps .col-md-4:not(:last-child) .home-step-icon::after {
        content: '';
        position: absolute;
        top: 50%;
        left: calc(50% + 52px);
        width: calc(100% - 20px);
        height: 2px;
        background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 16px);
    }
}

/* Vendor CTA band */
.home-cta {
    background: var(--gradient-success);
    color: #fff;
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    text-align: center;
}
.home-cta-icon { font-size: 3.25rem; color: rgba(255,255,255,0.9); }
.home-cta .lead { color: rgba(255,255,255,0.92); }


/* ============================================================
   CMS PAGES (About, Terms, Privacy, Contact)
   ============================================================ */
.page-hero {
    background: var(--gradient-primary);
    color: #fff;
    padding: clamp(2rem, 5vw, 3rem) 0;
}
.page-hero h1 { color: #fff; font-weight: 800; letter-spacing: -0.5px; }
.page-hero-meta { color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; }

/* Readable long-form content */
.cms-content { color: var(--text-dark); line-height: 1.75; }
.cms-content h2 { font-weight: 700; margin: 0 0 1rem; font-size: 1.6rem; }
.cms-content h3 {
    font-weight: 700;
    margin: 1.75rem 0 0.75rem;
    font-size: 1.2rem;
    color: var(--text-dark);
}
.cms-content p { margin-bottom: 1rem; color: #334155; }
.cms-content ul, .cms-content ol { margin: 0 0 1rem 1.25rem; color: #334155; }
.cms-content li { margin-bottom: 0.5rem; }
.cms-content a { color: var(--primary); }
.cms-content strong { color: var(--text-dark); }
.cms-content h3:first-child, .cms-content h2:first-child { margin-top: 0; }
