/* HM360 Modern Client Area Layer
   Loaded after theme.min.css and custom.css so it always wins.
   Only additive component classes are used here – no theme selectors are
   rewritten, which keeps future theme upgrades safe.
   ------------------------------------------------------------------ */

:root {
    --hm360-primary: #2563eb;
    --hm360-primary-dark: #0d47a1;
    --hm360-primary-soft: #eef5ff;
    --hm360-ink: #0f172a;
    --hm360-muted: #64748b;
    --hm360-line: rgba(15, 23, 42, .08);
    --hm360-surface: #ffffff;
    --hm360-canvas: #f7f9fc;
    --hm360-radius-lg: 18px;
    --hm360-radius-sm: 12px;
    --hm360-shadow-sm: 0 8px 20px rgba(15, 23, 42, .06);
    --hm360-shadow-md: 0 10px 25px rgba(15, 23, 42, .06);
    --hm360-shadow-lg: 0 20px 40px rgba(15, 23, 42, .13);
}

/* ------------------------------------------------------------------
   Soft page canvas – opt-in per page so nothing else changes tone
   ------------------------------------------------------------------ */
body.hm360-soft-canvas {
    background-color: var(--hm360-canvas);
}

body.hm360-soft-canvas #main-body {
    padding-top: 1.75rem;
    padding-bottom: 3rem;
}

/* ------------------------------------------------------------------
   11. Page header (gradient hero with optional search)
   ------------------------------------------------------------------ */
.header-area .sub-header.hm360-page-header {
    background: linear-gradient(90deg, var(--hm360-primary-dark), var(--hm360-primary)) !important;
    border: 0;
    padding: 2.25rem 0;
}

.hm360-page-header .hm360-page-header-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: .25rem;
    color: #fff;
}

.hm360-page-header .hm360-page-header-subtitle {
    margin-bottom: 0;
    font-size: .95rem;
    color: rgba(255, 255, 255, .82);
}

.hm360-page-header .hm360-search-box {
    position: relative;
}

.hm360-page-header .hm360-search-box .form-control {
    height: 54px;
    border: none;
    border-radius: 50px;
    padding-left: 3rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    font-size: .95rem;
}

.hm360-page-header .hm360-search-box .form-control:focus {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12), 0 0 0 .2rem rgba(255, 255, 255, .35);
}

.hm360-page-header .hm360-search-box .hm360-search-icon {
    position: absolute;
    top: 50%;
    left: 1.15rem;
    transform: translateY(-50%);
    color: var(--hm360-primary);
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .hm360-page-header .hm360-search-box {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .header-area .sub-header.hm360-page-header {
        padding: 1.5rem 0;
    }

    .hm360-page-header .hm360-page-header-title {
        font-size: 1.35rem;
    }
}

/* ------------------------------------------------------------------
   2. / 10. Sidebar cards (categories + quick actions)
   ------------------------------------------------------------------ */
.hm360-side-card {
    background: var(--hm360-surface);
    border: 0;
    border-radius: var(--hm360-radius-lg);
    box-shadow: var(--hm360-shadow-sm);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.hm360-side-card .hm360-side-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: 1.1rem 1.25rem .85rem;
    background: transparent;
    border: 0;
}

.hm360-side-card .hm360-side-card-title {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .95rem;
    font-weight: 700;
    color: var(--hm360-ink);
}

.hm360-side-card .hm360-side-card-title i {
    color: var(--hm360-primary);
}

.hm360-side-card .hm360-side-card-action {
    font-size: .8rem;
    font-weight: 600;
    color: var(--hm360-primary);
    text-decoration: none;
}

.hm360-side-card .hm360-side-card-action:hover {
    text-decoration: underline;
}

.hm360-side-card .hm360-side-list {
    padding: 0 .75rem 1rem;
}

.hm360-side-card .hm360-side-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    border: none;
    border-radius: var(--hm360-radius-sm);
    margin-bottom: .35rem;
    padding: .8rem 1rem;
    color: #1f2937;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.hm360-side-card .hm360-side-link:last-child {
    margin-bottom: 0;
}

.hm360-side-card .hm360-side-link i {
    color: var(--hm360-primary);
    width: 18px;
    text-align: center;
    font-size: .9rem;
}

.hm360-side-card .hm360-side-link .hm360-side-link-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.hm360-side-card .hm360-side-link .hm360-side-link-chevron {
    color: var(--hm360-muted);
    font-size: .8rem;
}

.hm360-side-card .hm360-side-link:hover {
    background: #f5f9ff;
    color: #0057d9;
}

.hm360-side-card .hm360-side-link.active {
    background: linear-gradient(90deg, var(--hm360-primary-dark), var(--hm360-primary));
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .28);
}

.hm360-side-card .hm360-side-link.active i,
.hm360-side-card .hm360-side-link.active .hm360-side-link-chevron {
    color: #fff;
}

.hm360-side-card .hm360-side-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 .4rem;
    border-radius: 999px;
    background: var(--hm360-primary-soft);
    color: var(--hm360-primary);
    font-size: .72rem;
    font-weight: 700;
}

.hm360-side-card .hm360-side-link.active .hm360-side-count {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.hm360-side-card .hm360-side-empty {
    padding: 0 1.25rem 1.25rem;
    color: var(--hm360-muted);
    font-size: .85rem;
}

/* ------------------------------------------------------------------
   6. Category heading
   ------------------------------------------------------------------ */
.hm360-category-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.hm360-category-header .hm360-category-title {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--hm360-ink);
    margin-bottom: .35rem;
}

.hm360-category-header .hm360-category-title i {
    color: var(--hm360-primary);
    font-size: 1.35rem;
}

.hm360-category-header .hm360-category-tagline {
    margin-bottom: 0;
    color: var(--hm360-muted);
    font-size: .9rem;
}

.hm360-plan-count {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1.05rem;
    border-radius: 999px;
    background: var(--hm360-primary-soft);
    color: var(--hm360-primary);
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
}

/* ------------------------------------------------------------------
   1. / 3. / 12. Product cards + grid
   ------------------------------------------------------------------ */
.hm360-product-grid {
    row-gap: 30px;
}

.hm360-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 0;
    border-radius: var(--hm360-radius-lg);
    background: var(--hm360-surface);
    box-shadow: var(--hm360-shadow-md);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.hm360-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hm360-shadow-lg);
}

.hm360-product-card .hm360-product-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.65rem 1.5rem 1.5rem;
}

.hm360-product-card .hm360-product-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1rem;
}

.hm360-product-card .hm360-product-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--hm360-primary-soft);
    color: var(--hm360-primary);
    font-size: .9rem;
    flex: 0 0 auto;
}

.hm360-product-card .hm360-product-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hm360-ink);
    margin-bottom: .25rem;
}

.hm360-product-card .hm360-product-tagline {
    color: var(--hm360-muted);
    font-size: .85rem;
    margin-bottom: 1.15rem;
}

.hm360-product-card .hm360-product-price {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--hm360-primary);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.hm360-product-card .hm360-product-price.is-quote {
    font-size: 1.15rem;
}

.hm360-product-card .hm360-product-cycle {
    display: block;
    color: var(--hm360-muted);
    font-size: .8rem;
    margin-top: .2rem;
}

.hm360-product-card .hm360-product-divider {
    height: 1px;
    background: var(--hm360-line);
    margin: 1.25rem 0;
}

/* 7. Badges */
.hm360-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 30px;
    background: var(--hm360-primary-soft);
    color: var(--hm360-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    line-height: 1.2;
}

.hm360-badge-soft {
    background: #f1f5f9;
    color: #475569;
}

.hm360-badge-warning {
    background: #fff7e6;
    color: #b45309;
}

.hm360-badge-success {
    background: #e8f8f0;
    color: #0f7b52;
}

/* 8. Feature list */
.hm360-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    flex: 1 1 auto;
}

.hm360-features li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 12px;
    color: #475569;
    font-size: .875rem;
    line-height: 1.45;
}

.hm360-features li:last-child {
    margin-bottom: 0;
}

.hm360-features li i {
    position: absolute;
    left: 0;
    top: .2rem;
    color: #16a34a;
    font-size: .8rem;
}

.hm360-features-toggle {
    align-self: flex-start;
    padding: 0;
    margin-top: .85rem;
    background: none;
    border: 0;
    color: var(--hm360-primary);
    font-size: .82rem;
    font-weight: 600;
}

.hm360-features-toggle:hover {
    text-decoration: underline;
}

/* 4. Buttons */
.hm360-btn-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    margin-top: 1.35rem;
    padding: 14px 20px;
    border: none;
    border-radius: var(--hm360-radius-sm);
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.hm360-btn-order:hover,
.hm360-btn-order:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, .35);
}

.hm360-btn-order i {
    transition: transform .25s ease;
}

.hm360-btn-order:hover i {
    transform: translateX(3px);
}

/* ------------------------------------------------------------------
   Storefront shell + help panel
   ------------------------------------------------------------------ */
.hm360-storefront {
    background: var(--hm360-surface);
    border-radius: var(--hm360-radius-lg);
    box-shadow: var(--hm360-shadow-sm);
    padding: 1.85rem;
}

.hm360-help-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.85rem;
    padding: 1.35rem 1.5rem;
    border-radius: var(--hm360-radius-lg);
    background: #f8fafc;
    border: 1px solid var(--hm360-line);
}

.hm360-help-panel .hm360-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--hm360-primary-soft);
    color: var(--hm360-primary);
    flex: 0 0 auto;
}

.hm360-help-panel .hm360-help-title {
    font-weight: 700;
    color: var(--hm360-ink);
    margin-bottom: .15rem;
}

.hm360-help-panel .hm360-help-text {
    margin-bottom: 0;
    color: var(--hm360-muted);
    font-size: .85rem;
}

.hm360-help-panel .hm360-help-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, .25);
    background: #fff;
    color: var(--hm360-primary);
    font-weight: 600;
    font-size: .85rem;
    text-decoration: none;
    transition: background .25s ease, box-shadow .25s ease;
}

.hm360-help-panel .hm360-help-cta:hover {
    background: var(--hm360-primary-soft);
    box-shadow: 0 8px 18px rgba(37, 99, 235, .18);
}

.hm360-empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    border-radius: var(--hm360-radius-lg);
    background: #f8fafc;
    border: 1px dashed var(--hm360-line);
    color: var(--hm360-muted);
}

.hm360-empty-state i {
    display: block;
    font-size: 2rem;
    color: #cbd5e1;
    margin-bottom: .75rem;
}

@media (max-width: 767.98px) {
    .hm360-storefront {
        padding: 1.15rem;
    }

    .hm360-category-header .hm360-category-title {
        font-size: 1.4rem;
    }

    .hm360-product-grid {
        row-gap: 20px;
    }

    .hm360-help-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .hm360-help-panel .hm360-help-cta {
        width: 100%;
        justify-content: center;
    }
}

.dashboard-stat-card {
    min-height: 145px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.dashboard-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12) !important;
}

.dashboard-stat-icon {
    font-size: 28px;
    line-height: 1;
}

.dashboard-stat-card h3 {
    font-size: 28px;
    font-weight: 500;
}

.dashboard-stat-card small {
    font-size: 13px;
}

.dashboard-stat-card small i {
    font-size: 11px;
}
