/**
 * Premium surfaces: ecommerce customer overview quick cards (.bb-customer-page)
 * Design tokens aligned with lm-widget-link in the theme LM partial.
 */

.bb-customer-page .lm-overview-summary {
    margin-bottom: 1.75rem;
}

.bb-customer-page .card.border-0.bg-primary.bg-opacity-10,
.bb-customer-page .card.border-0.bg-success.bg-opacity-10,
.bb-customer-page .card.border-0.bg-warning.bg-opacity-10 {
    --bb-surface-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --bb-surface-radius: 16px;
    position: relative;
    overflow: hidden;
    border-radius: var(--bb-surface-radius) !important;
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.75) inset,
        0 1px 1px rgba(15, 23, 42, 0.04),
        0 4px 12px rgba(15, 23, 42, 0.06),
        0 18px 36px -16px rgba(15, 23, 42, 0.14);
    transition: transform 0.38s var(--bb-surface-ease), box-shadow 0.38s var(--bb-surface-ease), border-color 0.38s var(--bb-surface-ease);
    min-height: 156px;
    isolation: isolate;
}

.bb-customer-page .card.border-0.bg-primary.bg-opacity-10::before,
.bb-customer-page .card.border-0.bg-success.bg-opacity-10::before,
.bb-customer-page .card.border-0.bg-warning.bg-opacity-10::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

.bb-customer-page .card.border-0.bg-primary.bg-opacity-10::after,
.bb-customer-page .card.border-0.bg-success.bg-opacity-10::after,
.bb-customer-page .card.border-0.bg-warning.bg-opacity-10::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.45) 0%, transparent 42%, transparent 100%);
    mix-blend-mode: overlay;
}

.bb-customer-page .card.border-0.bg-primary.bg-opacity-10:hover,
.bb-customer-page .card.border-0.bg-success.bg-opacity-10:hover,
.bb-customer-page .card.border-0.bg-warning.bg-opacity-10:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.85) inset,
        0 2px 4px rgba(15, 23, 42, 0.05),
        0 12px 28px rgba(15, 23, 42, 0.1),
        0 28px 56px -20px rgba(15, 23, 42, 0.18);
}

.bb-customer-page .card.border-0.bg-primary.bg-opacity-10 .card-body,
.bb-customer-page .card.border-0.bg-success.bg-opacity-10 .card-body,
.bb-customer-page .card.border-0.bg-warning.bg-opacity-10 .card-body {
    position: relative;
    z-index: 1;
    padding: 26px 22px 22px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.bb-customer-page .card.border-0.bg-primary.bg-opacity-10 .card-body > h5,
.bb-customer-page .card.border-0.bg-success.bg-opacity-10 .card-body > h5,
.bb-customer-page .card.border-0.bg-warning.bg-opacity-10 .card-body > h5,
.bb-customer-page .card.border-0.bg-primary.bg-opacity-10 .card-body .card-title,
.bb-customer-page .card.border-0.bg-success.bg-opacity-10 .card-body .card-title,
.bb-customer-page .card.border-0.bg-warning.bg-opacity-10 .card-body .card-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.bb-customer-page .card.border-0.bg-primary.bg-opacity-10 .card-body > p,
.bb-customer-page .card.border-0.bg-success.bg-opacity-10 .card-body > p,
.bb-customer-page .card.border-0.bg-warning.bg-opacity-10 .card-body > p {
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
    margin-bottom: 1.15rem;
    flex-grow: 1;
    max-width: 28ch;
}

.bb-customer-page .card.border-0.bg-primary.bg-opacity-10 {
    background: linear-gradient(145deg, #f8fafc 0%, #ffffff 40%, #eef4ff 100%) !important;
}

.bb-customer-page .card.border-0.bg-primary.bg-opacity-10::before {
    background: radial-gradient(ellipse 95% 70% at 18% -30%, rgba(59, 130, 246, 0.2), transparent 52%),
        radial-gradient(ellipse 80% 50% at 100% 110%, rgba(99, 102, 241, 0.08), transparent 45%);
}

.bb-customer-page .card.border-0.bg-primary.bg-opacity-10:hover {
    border-color: rgba(59, 130, 246, 0.42) !important;
}

.bb-customer-page .card.border-0.bg-primary.bg-opacity-10 .btn {
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
    border-radius: 999px;
    padding: 0.5rem 1.15rem;
    border-width: 1.5px;
    background: rgba(37, 99, 235, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.45) !important;
    color: #1d4ed8 !important;
    transition: background 0.25s var(--bb-surface-ease), border-color 0.25s var(--bb-surface-ease), color 0.25s var(--bb-surface-ease), box-shadow 0.25s var(--bb-surface-ease);
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.12);
}

.bb-customer-page .card.border-0.bg-primary.bg-opacity-10 .btn:hover {
    background: rgba(37, 99, 235, 0.18) !important;
    border-color: rgba(59, 130, 246, 0.6) !important;
    color: #1e3a8a !important;
}

.bb-customer-page .card.border-0.bg-success.bg-opacity-10 {
    background: linear-gradient(145deg, #f8fafc 0%, #ffffff 40%, #ecfdf5 100%) !important;
}

.bb-customer-page .card.border-0.bg-success.bg-opacity-10::before {
    background: radial-gradient(ellipse 95% 70% at 18% -30%, rgba(16, 185, 129, 0.18), transparent 52%),
        radial-gradient(ellipse 80% 50% at 100% 110%, rgba(52, 211, 153, 0.09), transparent 45%);
}

.bb-customer-page .card.border-0.bg-success.bg-opacity-10:hover {
    border-color: rgba(16, 185, 129, 0.4) !important;
}

.bb-customer-page .card.border-0.bg-success.bg-opacity-10 .btn {
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
    border-radius: 999px;
    padding: 0.5rem 1.15rem;
    border-width: 1.5px;
    background: rgba(5, 150, 105, 0.1) !important;
    border-color: rgba(16, 185, 129, 0.45) !important;
    color: #047857 !important;
    transition: background 0.25s var(--bb-surface-ease), border-color 0.25s var(--bb-surface-ease), color 0.25s var(--bb-surface-ease), box-shadow 0.25s var(--bb-surface-ease);
    box-shadow: 0 1px 2px rgba(5, 150, 105, 0.12);
}

.bb-customer-page .card.border-0.bg-success.bg-opacity-10 .btn:hover {
    background: rgba(5, 150, 105, 0.18) !important;
    border-color: rgba(16, 185, 129, 0.58) !important;
    color: #065f46 !important;
}

.bb-customer-page .card.border-0.bg-warning.bg-opacity-10 {
    background: linear-gradient(145deg, #f8fafc 0%, #ffffff 40%, #fffbeb 100%) !important;
}

.bb-customer-page .card.border-0.bg-warning.bg-opacity-10::before {
    background: radial-gradient(ellipse 95% 70% at 18% -30%, rgba(245, 158, 11, 0.2), transparent 52%),
        radial-gradient(ellipse 80% 50% at 100% 110%, rgba(251, 191, 36, 0.1), transparent 45%);
}

.bb-customer-page .card.border-0.bg-warning.bg-opacity-10:hover {
    border-color: rgba(245, 158, 11, 0.45) !important;
}

.bb-customer-page .card.border-0.bg-warning.bg-opacity-10 .btn {
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
    border-radius: 999px;
    padding: 0.5rem 1.15rem;
    border-width: 1.5px;
    background: rgba(217, 119, 6, 0.1) !important;
    border-color: rgba(245, 158, 11, 0.48) !important;
    color: #b45309 !important;
    transition: background 0.25s var(--bb-surface-ease), border-color 0.25s var(--bb-surface-ease), color 0.25s var(--bb-surface-ease), box-shadow 0.25s var(--bb-surface-ease);
    box-shadow: 0 1px 2px rgba(217, 119, 6, 0.12);
}

.bb-customer-page .card.border-0.bg-warning.bg-opacity-10 .btn:hover {
    background: rgba(217, 119, 6, 0.18) !important;
    border-color: rgba(245, 158, 11, 0.62) !important;
    color: #92400e !important;
}

/* Overview cards: круг со икона — иста површина / рамка / сенка како CTA копчето; сиви „clipboard / home / user“ наместо core икони */
.bb-customer-page .card.border-0.bg-primary.bg-opacity-10 .card-body .rounded-circle.bg-primary,
.bb-customer-page .card.border-0.bg-success.bg-opacity-10 .card-body .rounded-circle.bg-success,
.bb-customer-page .card.border-0.bg-warning.bg-opacity-10 .card-body .rounded-circle.bg-warning {
    position: relative;
}

.bb-customer-page .card.border-0.bg-primary.bg-opacity-10 .card-body .rounded-circle.bg-primary {
    background: rgba(37, 99, 235, 0.1) !important;
    border: 1.5px solid rgba(59, 130, 246, 0.45) !important;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.12);
}

.bb-customer-page .card.border-0.bg-success.bg-opacity-10 .card-body .rounded-circle.bg-success {
    background: rgba(5, 150, 105, 0.1) !important;
    border: 1.5px solid rgba(16, 185, 129, 0.45) !important;
    box-shadow: 0 1px 2px rgba(5, 150, 105, 0.12);
}

.bb-customer-page .card.border-0.bg-warning.bg-opacity-10 .card-body .rounded-circle.bg-warning {
    background: rgba(217, 119, 6, 0.1) !important;
    border: 1.5px solid rgba(245, 158, 11, 0.48) !important;
    box-shadow: 0 1px 2px rgba(217, 119, 6, 0.12);
}

.bb-customer-page .card.border-0.bg-primary.bg-opacity-10 .card-body .rounded-circle.bg-primary svg,
.bb-customer-page .card.border-0.bg-success.bg-opacity-10 .card-body .rounded-circle.bg-success svg,
.bb-customer-page .card.border-0.bg-warning.bg-opacity-10 .card-body .rounded-circle.bg-warning svg {
    display: none !important;
}

.bb-customer-page .card.border-0.bg-primary.bg-opacity-10 .card-body .rounded-circle.bg-primary::after {
    content: '';
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: no-repeat center / 24px 24px
        url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2364748b%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%205h-2a2%202%200%200%200%20-2%202v12a2%202%200%200%200%202%202h10a2%202%200%200%200%202%20-2v-12a2%202%200%200%200%20-2%20-2h-2%22/%3E%3Cpath%20d%3D%22M9%203m0%202a2%202%200%200%201%202%20-2h2a2%202%200%200%201%202%202v0a2%202%200%200%201%20-2%202h-2a2%202%200%200%201%20-2%20-2z%22/%3E%3Cpath%20d%3D%22M9%2012h.01%22/%3E%3Cpath%20d%3D%22M13%2012h2%22/%3E%3Cpath%20d%3D%22M9%2016h.01%22/%3E%3Cpath%20d%3D%22M13%2016h2%22/%3E%3C/svg%3E");
}

.bb-customer-page .card.border-0.bg-success.bg-opacity-10 .card-body .rounded-circle.bg-success::after {
    content: '';
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: no-repeat center / 24px 24px
        url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2364748b%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2012l-2%200l9%20-9l9%209l-2%200%22/%3E%3Cpath%20d%3D%22M5%2012v7a2%202%200%200%200%202%202h10a2%202%200%200%200%202%20-2v-7%22/%3E%3Cpath%20d%3D%22M9%2021v-6a2%202%200%200%201%202%20-2h2a2%202%200%200%201%202%202v6%22/%3E%3C/svg%3E");
}

.bb-customer-page .card.border-0.bg-warning.bg-opacity-10 .card-body .rounded-circle.bg-warning::after {
    content: '';
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: no-repeat center / 24px 24px
        url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2364748b%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2012m-9%200a9%209%200%201%200%2018%200a9%209%200%201%200%20-18%200%22/%3E%3Cpath%20d%3D%22M12%2010m-3%200a3%203%200%201%200%206%200a3%203%200%201%200%20-6%200%22/%3E%3Cpath%20d%3D%22M6.168%2018.849a4%204%200%200%201%203.832%20-2.849h4a4%204%200%200%201%203.834%202.855%22/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
    .bb-customer-page .card.border-0.bg-primary.bg-opacity-10,
    .bb-customer-page .card.border-0.bg-success.bg-opacity-10,
    .bb-customer-page .card.border-0.bg-warning.bg-opacity-10,
    .bb-customer-page .card.border-0.bg-primary.bg-opacity-10 .btn,
    .bb-customer-page .card.border-0.bg-success.bg-opacity-10 .btn,
    .bb-customer-page .card.border-0.bg-warning.bg-opacity-10 .btn {
        transition: none;
    }

    .bb-customer-page .card.border-0.bg-primary.bg-opacity-10:hover,
    .bb-customer-page .card.border-0.bg-success.bg-opacity-10:hover,
    .bb-customer-page .card.border-0.bg-warning.bg-opacity-10:hover {
        transform: none;
    }
}

/* Overview quick-link cards: hide trailing arrow SVG (markup from ecommerce core) */
.bb-customer-page .card.border-0.bg-primary.bg-opacity-10 .card-body .btn svg,
.bb-customer-page .card.border-0.bg-success.bg-opacity-10 .card-body .btn svg,
.bb-customer-page .card.border-0.bg-warning.bg-opacity-10 .card-body .btn svg {
    display: none !important;
}

/* Customer area page header: title + short description */
.bb-customer-page .bb-profile-header {
    display: flex !important;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 0 1.15rem !important;
    padding: 0 0 1.05rem !important;
    border-bottom: 1px solid #e2e8f0;
}

.bb-customer-page .bb-profile-header__text {
    flex: 1 1 16rem;
    min-width: 0;
}

.bb-customer-page .bb-profile-header-title {
    margin: 0 !important;
    font-size: 1.45rem !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
    color: #0a0a0a !important;
    letter-spacing: -0.02em;
}

.bb-customer-page .bb-profile-header-desc {
    margin: 0.4rem 0 0 !important;
    max-width: 42rem;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    color: #64748b !important;
    font-weight: 500 !important;
}

.bb-customer-page .bb-profile-header__actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Sidebar profile block: скриен цел (без празен остаток од рамка/2px) */
.bb-customer-page .bb-customer-sidebar-heading {
    display: none !important;
}

/* Нав: врв на .bb-customer-sidebar — без 16px (често gap-3/1rem) помеѓу скриен heading и nav */
.bb-customer-page .bb-customer-sidebar,
.bb-customer-page .bb-customer-sidebar.h-100 {
    padding-top: 0 !important;
    margin-top: 0 !important;
    gap: 0 !important;
    row-gap: 0 !important;
    column-gap: 0 !important;
}

.bb-customer-page .bb-customer-sidebar > .bb-customer-navigation,
.bb-customer-page .bb-customer-sidebar .bb-customer-navigation:first-child {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.bb-customer-page .bb-customer-sidebar .bb-customer-navigation .nav,
.bb-customer-page .bb-customer-sidebar .bb-customer-navigation .nav-pills,
.bb-customer-page .bb-customer-sidebar .bb-customer-navigation > ul {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* LM customer data cards (консултации, лиценци…): јасна рамка и врв за разлика од позадината */
.bb-customer-page .lm-customer-data-card {
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    overflow: hidden;
    background: #ffffff !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.75) inset,
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 6px 18px -6px rgba(15, 23, 42, 0.1) !important;
}

/* Main content wrapper (downloads, empty states): ист како Reviews */
.bb-customer-page .bb-customer-content-wrapper {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    background-color: transparent !important;
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden;
    padding: 1rem !important;
}

/* Empty = Reviews: бела картичка .bb-empty внатре во wrapper (customer.css + force) */
.bb-customer-page .bb-customer-content-wrapper > .bb-empty,
.bb-customer-page .bb-empty {
    text-align: center !important;
    padding: 3rem 2rem !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 8px 24px -16px rgba(15, 23, 42, 0.12) !important;
    margin: 0 !important;
}

.bb-customer-page .bb-empty .bb-empty-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #0a0a0a !important;
    margin-bottom: 0.5rem !important;
}

.bb-customer-page .bb-empty .bb-empty-subtitle {
    font-size: 0.9rem !important;
    color: #64748b !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.5 !important;
    max-width: 36rem;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Sidebar wrapper: без надворешна вертикална линија кон main (ecommerce default border-right) */
.bb-customer-page .bb-customer-sidebar-wrapper,
.bb-customer-page .bb-customer-sidebar-wrapper.h-100 {
    padding-top: 0 !important;
    gap: 0 !important;
    row-gap: 0 !important;
    border-right: none !important;
    border-inline-end: none !important;
    box-shadow: none !important;
}

@media (min-width: 992px) {
    .bb-customer-page .customer-body .row > .col-lg-3 .bb-customer-sidebar-wrapper {
        border-right: 0 !important;
        border-inline-end: 0 !important;
    }
}

/* Breath above footer — content + Account box not glued to footer */
.bb-customer-page {
    padding-bottom: 3.5rem !important;
}

.bb-customer-page > .container {
    padding-bottom: 1.25rem !important;
}

.bb-customer-page .customer-body {
    margin-bottom: 1.5rem !important;
}

/* Main column: breath under header (mt-50 on wrapper + light pad) */
.bb-customer-page .bb-profile-content {
    padding-top: 0.35rem !important;
}

/* Compact primary actions across customer area (theme .btn is oversized) */
.bb-customer-page .bb-profile-main > .crm-portal .btn,
.bb-customer-page .bb-profile-header .btn,
.bb-customer-page .bb-empty .bb-empty-action .btn {
    min-height: 0 !important;
    height: auto !important;
    line-height: 1.25 !important;
    padding: 0.45rem 1rem !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.bb-customer-page .bb-profile-content .bb-profile-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* LM/customer под-страници: без голем празнинен „воздух“ над првата секција (претходно mt-40) */
.bb-customer-page .bb-profile-main .lm-customer-page-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.bb-customer-page .bb-profile-main .lm-customer-page-section > .container {
    padding-top: 0 !important;
}

.bb-customer-page .bb-profile-main > .bb-customer-profile-wrapper:first-child {
    margin-top: 0 !important;
}

/* Empty-state / shop CTA („Browse products“): стандарден сив раб, бела позадина */
.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card {
    --bb-cta-ease: cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    border-radius: 16px !important;
    border: 1px solid var(--bs-border-color, #dee2e6) !important;
    background: #ffffff !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: transform 0.38s var(--bb-cta-ease), box-shadow 0.38s var(--bb-cta-ease), border-color 0.38s var(--bb-cta-ease);
    isolation: isolate;
}

.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card:hover {
    transform: translateY(-2px);
    border-color: var(--bs-secondary-color, #adb5bd) !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

/* Икона-круг: без остар cyan (bg-info/20) — неутрално-сивкаст диск + пригушена икона */
.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card span.rounded-circle.bg-info.bg-opacity-20,
.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .rounded-circle.bg-info.bg-opacity-20 {
    background: linear-gradient(165deg, #f8fafc 0%, #f1f5f9 55%, #eef2f7 100%) !important;
    border: 1px solid rgba(148, 163, 184, 0.32) !important;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    color: #64748b !important;
}

.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card span.rounded-circle svg,
.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card span.rounded-circle .icon,
.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .rounded-circle.bg-info.bg-opacity-20 svg {
    color: #64748b !important;
    opacity: 0.92;
}

.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card span.rounded-circle.text-white,
.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card span.rounded-circle .text-white,
.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card span.rounded-circle svg.text-white {
    color: #64748b !important;
}

.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body {
    position: relative;
    z-index: 1;
    padding: 1.5rem 1.5rem !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        padding: 1.55rem 1.75rem !important;
        column-gap: 1rem;
        row-gap: 1rem;
    }

    .bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body .btn,
    .bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body a.btn {
        margin-left: auto !important;
    }
}

.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body > h5,
.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body .card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0a0a0a !important;
    margin: 0 !important;
    line-height: 1.3;
}

.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body > p,
.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body p.lead {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #475569 !important;
    margin: 0 !important;
    max-width: 38rem;
    flex: 0 1 auto;
}

/* Bootstrap .flex-grow-1 на текст-блокот правеше „џиновски“ празнина до иконата */
.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body .flex-grow-1 {
    flex: 0 1 auto !important;
    max-width: min(100%, 40rem);
    min-width: 0;
}

/*
 * Ecommerce користи .row > .col-12.col-md без број — на md+ двете колони земаат ~50% ширина.
 * Првата колона (икона) мора да биде col-auto, не половина од картичката.
 */
.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body .row.align-items-center {
    --bs-gutter-x: 1rem;
    max-width: 100%;
    min-width: 0;
}

.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body {
    max-width: 100%;
    min-width: 0;
}

/* Текст-колона: мора min-width:0 за flex да дозволи прелом; инаку една линија го турка копчето */
.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body .row.align-items-center > .col-md:nth-child(2) {
    min-width: 0 !important;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal !important;
}

.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body .row.align-items-center > .col-md:nth-child(2) h5,
.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body .row.align-items-center > .col-md:nth-child(2) p,
.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body .row.align-items-center > .col-md:nth-child(2) .card-title {
    white-space: normal !important;
    max-width: 100%;
}

.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body .row.align-items-center > .col-md:last-child .btn,
.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body .row.align-items-center > .col-md:last-child a.btn {
    white-space: nowrap;
}

@media (min-width: 768px) {
    .bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body .row.align-items-center > .col-md:first-child {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none;
        min-width: auto;
    }

    .bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body .row.align-items-center > .col-md:nth-child(2):not(:last-child) {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
    }

    .bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body .row.align-items-center > .col-md:nth-child(2):last-child {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
    }

    .bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body .row.align-items-center > .col-md:last-child:not(:first-child):not(:nth-child(2)) {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: auto;
    }
}

/* Икона: тесно до текстот; отстрани ms/me од првиот блок / круг */
.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body > .rounded-circle,
.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body > div:first-child {
    flex-shrink: 0;
    margin: 0 !important;
}

.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body .rounded-circle {
    flex-shrink: 0;
}

.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body .btn,
.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body a.btn {
    flex-shrink: 0;
    align-self: center;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    border-radius: 999px !important;
    padding: 0.62rem 1.4rem !important;
    border: none !important;
    background: linear-gradient(145deg, #0ea5e9 0%, #0284c7 52%, #0369a1 100%) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    transition: transform 0.25s var(--bb-cta-ease), filter 0.25s var(--bb-cta-ease);
}

.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body .btn:hover,
.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body a.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    color: #ffffff !important;
    box-shadow: none !important;
}

.bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body .btn svg {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card,
    .bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body .btn,
    .bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body a.btn {
        transition: none;
    }

    .bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card:hover,
    .bb-customer-page .bb-profile-main .card.bb-customer-shop-cta-card .card-body .btn:hover {
        transform: none;
    }
}

/* -------------------------------------------------------------------------
   Customer offcanvas backdrop: softer overlay + drop stuck layers
   (Bootstrap sometimes leaves .offcanvas-backdrop.show without an open panel.)
   ------------------------------------------------------------------------- */
.bb-customer-page .offcanvas-backdrop {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100dvh !important;
    /* default BS is heavy; keep dimming subtle on account pages */
    background-color: rgba(15, 23, 42, 0.28) !important;
}

.bb-customer-page .offcanvas-backdrop + .offcanvas-backdrop {
    display: none !important;
}

@supports selector(:has(*)) {
    /* Hide leftover backdrop when no customer offcanvas is open */
    .bb-customer-page:not(:has(.offcanvas.show)) .offcanvas-backdrop {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* -------------------------------------------------------------------------
   Empty state: replace broken/empty default SVG with on-brand developer icon
   (Storyset-style mood; original asset — see theme images folder.)
   ------------------------------------------------------------------------- */
/* Скриј го default SVG од темата (често карт/икона) — преку background прикажуваме сопствениот asset */
.bb-customer-page .bb-empty .bb-empty-img .d-inline-flex svg {
    display: none !important;
}

.bb-customer-page .bb-empty .bb-empty-img .d-inline-flex {
    width: 5.5rem;
    height: 5.5rem;
    min-width: 5.5rem;
    min-height: 5.5rem;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9 !important;
    background-image: url('../images/customer-empty-developer.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 78%;
    animation: bb-customer-empty-float 3.5s ease-in-out infinite;
}

@keyframes bb-customer-empty-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bb-customer-page .bb-empty .bb-empty-img .d-inline-flex {
        animation: none;
    }
}

/* -------------------------------------------------------------------------
   Customer sidebar nav: активна + hover — #0a0a0a, бел текст
   ------------------------------------------------------------------------- */
.bb-customer-page .bb-customer-navigation .nav-pills .nav-item .nav-link {
    --bb-nav-ease: cubic-bezier(0.22, 1, 0.36, 1);
    transition:
        background-color 0.22s var(--bb-nav-ease),
        color 0.22s var(--bb-nav-ease),
        transform 0.22s var(--bb-nav-ease),
        box-shadow 0.22s var(--bb-nav-ease);
}

/* Неактивни: неутрална боја */
.bb-customer-page .bb-customer-navigation .nav-pills .nav-item .nav-link:not(.active) {
    background-color: transparent !important;
    color: #334155 !important;
}

.bb-customer-page .bb-customer-navigation .nav-pills .nav-item .nav-link:not(.active) .nav-icon {
    color: #64748b !important;
}

.bb-customer-page .bb-customer-navigation .nav-pills .nav-item a.nav-link:hover:not(.active),
.bb-customer-page .bb-customer-navigation .nav-pills .nav-item .nav-link:hover:not(.active) {
    background-color: #0a0a0a !important;
    color: #ffffff !important;
    box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.22);
    transform: translateX(2px);
}

.bb-customer-page .bb-customer-navigation .nav-pills .nav-item .nav-link:hover:not(.active) .nav-icon,
.bb-customer-page .bb-customer-navigation .nav-pills .nav-item .nav-link:hover:not(.active) .nav-text {
    color: #ffffff !important;
}

.bb-customer-page .bb-customer-navigation .nav-pills .nav-item .nav-link.active {
    background-color: #0a0a0a !important;
    color: #ffffff !important;
    box-shadow:
        0 4px 14px -4px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bb-customer-page .bb-customer-navigation .nav-pills .nav-item .nav-link.active .nav-icon,
.bb-customer-page .bb-customer-navigation .nav-pills .nav-item .nav-link.active .nav-text {
    color: #ffffff !important;
}

.bb-customer-page .bb-customer-navigation .nav-pills .nav-item .nav-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .bb-customer-page .bb-customer-navigation .nav-pills .nav-item .nav-link {
        transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    }

    .bb-customer-page .bb-customer-navigation .nav-pills .nav-item .nav-link:hover:not(.active) {
        transform: none;
    }
}

/* -------------------------------------------------------------------------
   intl-tel-input (customer форми): акцент #3b82f6 на флаг/hover/focus
   ------------------------------------------------------------------------- */
.bb-customer-page .iti .iti__selected-flag {
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.bb-customer-page .iti:hover .iti__selected-flag {
    background-color: rgba(59, 130, 246, 0.1) !important;
}

.bb-customer-page .iti__selected-flag[aria-expanded='true'],
.bb-customer-page .iti:focus-within .iti__selected-flag {
    background-color: rgba(59, 130, 246, 0.12) !important;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.55);
}

.bb-customer-page .iti .iti__arrow {
    border-top-color: #3b82f6 !important;
}

.bb-customer-page .iti .iti__arrow--up {
    border-bottom-color: #3b82f6 !important;
    border-top-color: transparent !important;
}

.bb-customer-page .iti input.js-phone-number-mask,
.bb-customer-page .iti input[type='tel'],
.bb-customer-page .iti input[type='text'] {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bb-customer-page .iti:focus-within input.js-phone-number-mask,
.bb-customer-page .iti:focus-within input[type='tel'],
.bb-customer-page .iti:focus-within input[type='text'] {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35) !important;
    outline: none !important;
}

.bb-customer-page .iti__country-list .iti__country.iti__highlight {
    background-color: rgba(59, 130, 246, 0.12) !important;
}

/* -------------------------------------------------------------------------
   Empty CTA = ист black pill како product-reviews („Start Shopping“)
   ------------------------------------------------------------------------- */
.bb-customer-page .bb-empty .bb-empty-action .btn,
.bb-customer-page .bb-empty .bb-empty-action .btn-primary,
.bb-customer-page .bb-empty .bb-empty-action a.btn {
    --bb-btn-ease: cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    background-color: #0a0a0a !important;
    border-color: #0a0a0a !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    transition:
        transform 0.28s var(--bb-btn-ease),
        box-shadow 0.28s var(--bb-btn-ease),
        filter 0.2s ease,
        background-color 0.2s ease;
}

.bb-customer-page .bb-empty .bb-empty-action .btn:hover,
.bb-customer-page .bb-empty .bb-empty-action .btn-primary:hover,
.bb-customer-page .bb-empty .bb-empty-action a.btn:hover {
    transform: translateY(-3px);
    background-color: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
    box-shadow:
        0 4px 0 rgba(15, 23, 42, 0.06),
        0 14px 32px -10px rgba(15, 23, 42, 0.35);
    filter: none;
}

.bb-customer-page .bb-empty .bb-empty-action .btn:active,
.bb-customer-page .bb-empty .bb-empty-action a.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -8px rgba(15, 23, 42, 0.35);
}

.bb-customer-page .bb-empty .bb-empty-action .btn:focus-visible,
.bb-customer-page .bb-empty .bb-empty-action a.btn:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.65);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .bb-customer-page .bb-empty .bb-empty-action .btn,
    .bb-customer-page .bb-empty .bb-empty-action .btn:hover,
    .bb-customer-page .bb-empty .bb-empty-action .btn:active,
    .bb-customer-page .bb-empty .bb-empty-action a.btn,
    .bb-customer-page .bb-empty .bb-empty-action a.btn:hover,
    .bb-customer-page .bb-empty .bb-empty-action a.btn:active {
        transform: none;
        filter: none;
    }

    .bb-customer-page .bb-empty .bb-empty-action .btn:hover,
    .bb-customer-page .bb-empty .bb-empty-action a.btn:hover {
        box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.2);
    }
}

/* Overview: „Welcome back“ — не глобално #000 од темата */
.bb-customer-page .bb-customer-profile-info > h2.h4,
.bb-customer-page .bb-customer-profile-info > h2.h4.mb-2 {
    color: #0a0a0a !important;
}

/* Customer overview: блок „наскоро гледани“ — ист типографски ритам како LM widgets */
.bb-customer-page.customer-overview-recently-viewed .customer-overview-recently-viewed__title {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 1.25rem !important;
}

/* =========================================================================
   Processin customer dashboard (unified overview)
   ========================================================================= */
.processin-dash {
    --pd-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --pd-radius: 1rem;
    --pd-border: rgba(148, 163, 184, 0.28);
    --pd-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.75) inset,
        0 1px 1px rgba(15, 23, 42, 0.04),
        0 8px 24px -12px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.processin-dash-hero {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--pd-radius) + 4px);
    border: 1px solid var(--pd-border);
    background:
        linear-gradient(135deg, #ffffff 0%, #f8fafc 42%, #eef2ff 100%);
    box-shadow: var(--pd-shadow);
    padding: 1.35rem 1.4rem;
}

.processin-dash-hero__glow {
    position: absolute;
    inset: -40% auto auto -20%;
    width: 70%;
    height: 140%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.16), transparent 68%);
    pointer-events: none;
}

.processin-dash-hero__row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

.processin-dash-hero__avatar {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.processin-dash-hero__avatar-img {
    width: 72px;
    height: 72px;
    border-radius: 1.1rem;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 8px 20px -10px rgba(37, 99, 235, 0.55);
}

.processin-dash-hero__avatar-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.1rem;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.25s var(--pd-ease);
}

.processin-dash-hero__avatar:hover .processin-dash-hero__avatar-overlay {
    opacity: 1;
}

.processin-dash-hero__avatar-overlay input {
    display: none;
}

.processin-dash-hero__avatar-overlay label {
    color: #fff;
    cursor: pointer;
    margin: 0;
}

.processin-dash-hero__copy {
    flex: 1 1 auto;
    min-width: 0;
}

.processin-dash-hero__title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a !important;
    line-height: 1.25;
}

.processin-dash-hero__sub {
    margin: 0;
    font-size: 0.92rem;
    color: #64748b;
    max-width: none;
    width: 100%;
    line-height: 1.45;
}

.processin-dash-kpis {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

@media (min-width: 576px) {
    .processin-dash-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.processin-dash-kpi {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.05rem;
    border-radius: var(--pd-radius);
    border: 1px solid var(--pd-border);
    background: #fff;
    box-shadow: var(--pd-shadow);
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.32s var(--pd-ease), box-shadow 0.32s var(--pd-ease), border-color 0.32s var(--pd-ease);
    min-height: 96px;
}

.processin-dash-kpi:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.9) inset,
        0 12px 28px -14px rgba(15, 23, 42, 0.2);
}

.processin-dash-kpi__icon {
    width: 42px;
    height: 42px;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.15rem;
}

.processin-dash-kpi__meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.processin-dash-kpi__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}

.processin-dash-kpi__value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.15;
    word-break: break-word;
}

.processin-dash-kpi__hint {
    font-size: 0.78rem;
    color: #94a3b8;
}

.processin-dash-kpi--blue .processin-dash-kpi__icon { background: linear-gradient(145deg, #dbeafe, #bfdbfe); color: #1d4ed8; }
.processin-dash-kpi--indigo .processin-dash-kpi__icon { background: linear-gradient(145deg, #e0e7ff, #c7d2fe); color: #4338ca; }
.processin-dash-kpi--amber .processin-dash-kpi__icon { background: linear-gradient(145deg, #fef3c7, #fde68a); color: #b45309; }
.processin-dash-kpi--violet .processin-dash-kpi__icon { background: linear-gradient(145deg, #ede9fe, #ddd6fe); color: #6d28d9; }
.processin-dash-kpi--cyan .processin-dash-kpi__icon { background: linear-gradient(145deg, #cffafe, #a5f3fc); color: #0e7490; }
.processin-dash-kpi--teal .processin-dash-kpi__icon { background: linear-gradient(145deg, #ccfbf1, #99f6e4); color: #0f766e; }
.processin-dash-kpi--emerald .processin-dash-kpi__icon { background: linear-gradient(145deg, #d1fae5, #a7f3d0); color: #047857; }
.processin-dash-kpi--rose .processin-dash-kpi__icon { background: linear-gradient(145deg, #ffe4e6, #fecdd3); color: #be123c; }
.processin-dash-kpi--slate .processin-dash-kpi__icon { background: linear-gradient(145deg, #f1f5f9, #e2e8f0); color: #334155; }
.processin-dash-kpi--sky .processin-dash-kpi__icon { background: linear-gradient(145deg, #e0f2fe, #bae6fd); color: #0369a1; }

.processin-dash-section__head {
    margin-bottom: 0.85rem;
}

.processin-dash-section__title,
.processin-dash-panel__title {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.processin-dash-section__desc {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: #94a3b8;
}

.processin-dash-tickets__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.processin-dash-tickets__all {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0a0a0a !important;
    text-decoration: none !important;
}

.processin-dash-tickets__all:hover {
    color: #1d4ed8 !important;
}

.processin-dash-tickets__list {
    display: grid;
    gap: 0.55rem;
}

.processin-dash-ticket {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.processin-dash-ticket:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 23, 42, 0.18);
    box-shadow: 0 12px 28px -18px rgba(15, 23, 42, 0.28);
}

.processin-dash-ticket__id {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.28rem 0.5rem;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.processin-dash-ticket__main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.processin-dash-ticket__title {
    font-size: 0.92rem;
    font-weight: 650;
    color: #0f172a;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.processin-dash-ticket__meta {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.processin-dash-ticket__status {
    flex-shrink: 0;
}

.processin-dash-ticket__status .badge {
    display: inline-flex !important;
    align-items: center;
    min-height: 1.5rem;
    padding: 0.25rem 0.65rem !important;
    border-radius: 999px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
}

.processin-dash-ticket__chev {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #94a3b8;
}

.processin-dash-tickets__empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.1rem 1.15rem;
    border-radius: 14px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
}

.processin-dash-tickets__empty p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 575.98px) {
    .processin-dash-ticket {
        flex-wrap: wrap;
    }

    .processin-dash-ticket__status {
        margin-left: auto;
    }

    .processin-dash-ticket__chev {
        display: none;
    }
}

.processin-dash-shortcuts {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.65rem;
}

@media (min-width: 576px) {
    .processin-dash-shortcuts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .processin-dash-shortcuts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.processin-dash-shortcut {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.95rem;
    border-radius: 0.9rem;
    border: 1px solid var(--pd-border);
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.28s var(--pd-ease), border-color 0.28s var(--pd-ease), box-shadow 0.28s var(--pd-ease);
}

.processin-dash-shortcut:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 10px 24px -16px rgba(15, 23, 42, 0.28);
}

.processin-dash-shortcut__icon {
    width: 38px;
    height: 38px;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.processin-dash-shortcut--blue .processin-dash-shortcut__icon { background: #eff6ff; color: #2563eb; }
.processin-dash-shortcut--indigo .processin-dash-shortcut__icon { background: #eef2ff; color: #4f46e5; }
.processin-dash-shortcut--amber .processin-dash-shortcut__icon { background: #fffbeb; color: #d97706; }
.processin-dash-shortcut--violet .processin-dash-shortcut__icon { background: #f5f3ff; color: #7c3aed; }
.processin-dash-shortcut--cyan .processin-dash-shortcut__icon { background: #ecfeff; color: #0891b2; }
.processin-dash-shortcut--teal .processin-dash-shortcut__icon { background: #f0fdfa; color: #0d9488; }
.processin-dash-shortcut--emerald .processin-dash-shortcut__icon { background: #ecfdf5; color: #059669; }
.processin-dash-shortcut--rose .processin-dash-shortcut__icon { background: #fff1f2; color: #e11d48; }
.processin-dash-shortcut--slate .processin-dash-shortcut__icon { background: #f8fafc; color: #475569; }
.processin-dash-shortcut--sky .processin-dash-shortcut__icon { background: #f0f9ff; color: #0284c7; }

.processin-dash-shortcut__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.processin-dash-shortcut__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
}

.processin-dash-shortcut__meta {
    font-size: 0.75rem;
    color: #94a3b8;
}

.processin-dash-shortcut__chev {
    color: #cbd5e1;
    flex-shrink: 0;
}

.processin-dash-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 992px) {
    .processin-dash-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.processin-dash-panel {
    border-radius: var(--pd-radius);
    border: 1px solid var(--pd-border);
    background: #fff;
    box-shadow: var(--pd-shadow);
    padding: 1.1rem 1.15rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 100%;
}

.processin-dash-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.processin-dash-panel__link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #3b82f6;
    text-decoration: none !important;
    white-space: nowrap;
}

.processin-dash-panel__link:hover {
    color: #1d4ed8;
}

.processin-dash-panel__subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.processin-dash-crm-stats {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.55rem;
}

@media (min-width: 480px) {
    .processin-dash-crm-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.processin-dash-crm-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem 0.8rem;
    border-radius: 0.75rem;
    background: linear-gradient(160deg, #f8fafc, #eef2ff);
    border: 1px solid rgba(148, 163, 184, 0.22);
    text-decoration: none !important;
    color: inherit;
    transition: border-color 0.25s var(--pd-ease), transform 0.25s var(--pd-ease);
}

.processin-dash-crm-stat:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.processin-dash-crm-stat__label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.processin-dash-crm-stat__value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.processin-dash-crm-stat__value--text {
    font-size: 0.88rem;
    font-weight: 600;
}

.processin-dash-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.processin-dash-list__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    background: #f8fafc;
    text-decoration: none !important;
    color: inherit;
    transition: background 0.2s ease, border-color 0.2s ease;
}

a.processin-dash-list__row:hover {
    background: #eff6ff;
    border-color: rgba(59, 130, 246, 0.2);
}

.processin-dash-list__row--static {
    cursor: default;
}

.processin-dash-list__main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.processin-dash-list__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
}

.processin-dash-list__sub {
    font-size: 0.75rem;
    color: #94a3b8;
}

.processin-dash-list__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    flex-shrink: 0;
}

.processin-dash-list__amount {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
}

.processin-dash-list__chev {
    color: #cbd5e1;
    flex-shrink: 0;
}

.processin-dash-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    background: #e2e8f0;
    color: #475569;
}

.processin-dash-empty {
    padding: 1.25rem 0.5rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.processin-dash-empty--compact {
    padding: 0.5rem 0;
    text-align: start;
}

.processin-dash-empty p {
    margin: 0 0 0.75rem;
}

.processin-dash-empty__btn {
    border-radius: 999px !important;
    font-weight: 600;
}

.processin-dash-licenses-mount:not([hidden]) {
    margin-top: -0.35rem;
}

.processin-dash-licenses-mount .lm-overview-summary {
    margin-bottom: 0 !important;
}

@media (max-width: 575.98px) {
    .processin-dash-hero__row {
        flex-direction: column;
        align-items: flex-start;
    }

    .processin-dash-hero__title {
        font-size: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .processin-dash-kpi,
    .processin-dash-shortcut,
    .processin-dash-crm-stat {
        transition: none;
    }

    .processin-dash-kpi:hover,
    .processin-dash-shortcut:hover,
    .processin-dash-crm-stat:hover {
        transform: none;
    }
}

/* Hide leftover CRM strip if an old partial ever renders outside dash */
section.crm-portal-overview:not(.processin-dash .crm-portal-overview) {
    display: none !important;
}

/* =========================================================================
   Customer sidebar — accordion sections + account box
   ========================================================================= */
.bb-customer-page .processin-cnav {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
    min-height: 0;
    padding-top: 0.35rem !important;
}

.bb-customer-page .processin-cnav__sections {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}

.bb-customer-page .processin-cnav__section {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    overflow: hidden;
}

.bb-customer-page .processin-cnav__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
    border: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    color: #334155;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}

.bb-customer-page .processin-cnav__toggle:hover {
    background: linear-gradient(180deg, #eff6ff 0%, #e2e8f0 100%);
}

.bb-customer-page .processin-cnav__toggle-icon {
    width: auto;
    height: auto;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: #64748b;
    flex-shrink: 0;
    font-size: 1.05rem;
    padding: 0;
    box-shadow: none;
}

.bb-customer-page .processin-cnav__section[data-open] .processin-cnav__toggle-icon {
    color: #3b82f6;
}

.bb-customer-page .processin-cnav__toggle-label {
    flex: 1;
    text-align: start;
}

.bb-customer-page .processin-cnav__chev {
    color: #94a3b8;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    display: inline-flex;
}

.bb-customer-page .processin-cnav__section[data-open] .processin-cnav__chev {
    transform: rotate(180deg);
    color: #3b82f6;
}

.bb-customer-page .processin-cnav__body {
    padding: 0.35rem 0.4rem 0.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    background: #fff;
}

.bb-customer-page .processin-cnav__list {
    margin: 0 !important;
}

.bb-customer-page .processin-cnav__sublist {
    list-style: none;
    margin: 0.15rem 0 0.35rem 2.15rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.bb-customer-page .processin-cnav__sublink {
    display: block;
    padding: 0.35rem 0.55rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
    text-decoration: none !important;
}

.bb-customer-page .processin-cnav__sublink:hover,
.bb-customer-page .processin-cnav__sublink.active {
    color: #1d4ed8;
    background: #eff6ff;
}

.bb-customer-page .processin-cnav__account {
    margin-top: auto;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background:
        linear-gradient(165deg, #ffffff 0%, #f8fafc 45%, #eef2ff 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 8px 24px -16px rgba(15, 23, 42, 0.2);
}

.bb-customer-page .processin-cnav__account-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 0.45rem 0.15rem;
}

.bb-customer-page .processin-cnav__account .nav-link.processin-cnav__link--logout:not(.active) {
    color: #b91c1c;
}

.bb-customer-page .processin-cnav__account .nav-link.processin-cnav__link--logout:not(.active) .nav-icon {
    color: #dc2626;
}

.bb-customer-page .processin-cnav__account .nav-link.processin-cnav__link--logout:hover:not(.active) {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border-color: rgba(239, 68, 68, 0.25);
}

@media (prefers-reduced-motion: reduce) {
    .bb-customer-page .processin-cnav__chev {
        transition: none;
    }
}

/* —— Ticksify tickets inside customer portal —— */
.bb-customer-page .processin-ticksify-stats .processin-ticksify-stat {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    height: 100%;
    box-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.18);
}

.bb-customer-page .processin-ticksify-stat__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.bb-customer-page .processin-ticksify-stat__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}

.bb-customer-page .processin-ticksify-stat--open .processin-ticksify-stat__value { color: #15803d; }
.bb-customer-page .processin-ticksify-stat--closed .processin-ticksify-stat__value { color: #b91c1c; }
.bb-customer-page .processin-ticksify-stat--hold .processin-ticksify-stat__value { color: #c2410c; }

/* Premium tickets table */
.bb-customer-page .processin-ticksify-table-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 32px -18px rgba(15, 23, 42, 0.14);
}

.bb-customer-page .processin-ticksify-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.bb-customer-page .processin-ticksify-table thead th {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.95rem 1.1rem;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
    vertical-align: middle;
}

.bb-customer-page .processin-ticksify-table tbody td {
    padding: 1.05rem 1.1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #334155;
    font-size: 0.9rem;
    background: #fff;
    transition: background-color 0.18s ease;
}

.bb-customer-page .processin-ticksify-table tbody tr:last-child td {
    border-bottom: 0;
}

.bb-customer-page .processin-ticksify-table tbody tr:hover td {
    background: #f8fafc;
}

.bb-customer-page .processin-ticksify-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    padding: 0.28rem 0.55rem;
    border-radius: 8px;
    background: #f1f5f9;
    color: #0f172a !important;
    font-weight: 700;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
    text-decoration: none !important;
    border: 1px solid #e2e8f0;
}

.bb-customer-page a.processin-ticksify-id:hover {
    background: #0a0a0a;
    border-color: #0a0a0a;
    color: #fff !important;
}

.bb-customer-page .processin-ticksify-title {
    display: inline;
    color: #0f172a !important;
    font-weight: 650;
    text-decoration: none !important;
    line-height: 1.35;
}

.bb-customer-page .processin-ticksify-title:hover {
    color: #1d4ed8 !important;
}

.bb-customer-page .processin-ticksify-cat {
    color: #64748b;
    font-size: 0.875rem;
}

.bb-customer-page .processin-ticksify-date {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: #0f172a;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.bb-customer-page .processin-ticksify-chip {
    display: inline-flex;
    align-items: center;
    margin-left: 0.4rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    vertical-align: middle;
}

.bb-customer-page .processin-ticksify-chip--ok {
    background: #dcfce7;
    color: #166534;
}

.bb-customer-page .processin-ticksify-chip--muted {
    background: #f1f5f9;
    color: #475569;
}

.bb-customer-page .processin-ticksify-chip--staff {
    background: #dbeafe;
    color: #1e40af;
}

/* Soften plugin status/priority badges into premium pills */
.bb-customer-page .processin-ticksify-badge-wrap .badge,
.bb-customer-page .processin-ticksify-portal .badge {
    display: inline-flex !important;
    align-items: center;
    gap: 0.2rem;
    min-height: 1.55rem;
    padding: 0.28rem 0.7rem !important;
    border-radius: 999px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    box-shadow: none !important;
}

.bb-customer-page .processin-ticksify-table-card__footer {
    padding: 0.85rem 1.1rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.bb-customer-page .processin-ticksify-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 1rem;
}

.bb-customer-page .processin-ticksify-detail__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.bb-customer-page .processin-ticksify-detail__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1rem;
    line-height: 1.35;
}

.bb-customer-page .processin-ticksify-aside__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
}

.bb-customer-page .processin-ticksify-body,
.bb-customer-page .processin-ticksify-message__body {
    line-height: 1.65;
    color: #334155;
}

.bb-customer-page .processin-ticksify-message {
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.bb-customer-page .processin-ticksify-message:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.bb-customer-page .processin-ticksify-message__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.bb-customer-page .processin-ticksify-message__meta .processin-ticksify-date {
    margin-left: auto;
    color: #64748b;
    font-weight: 600;
}

.bb-customer-page .processin-ticksify-meta dt {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.bb-customer-page .processin-ticksify-meta dd {
    margin-bottom: 1rem;
    color: #0f172a;
    font-weight: 600;
}

@media (max-width: 767px) {
    .bb-customer-page .processin-ticksify-table thead {
        display: none;
    }

    .bb-customer-page .processin-ticksify-table,
    .bb-customer-page .processin-ticksify-table tbody,
    .bb-customer-page .processin-ticksify-table tr,
    .bb-customer-page .processin-ticksify-table td {
        display: block;
        width: 100%;
    }

    .bb-customer-page .processin-ticksify-table tbody tr {
        padding: 1rem 1.1rem;
        border-bottom: 1px solid #e2e8f0;
    }

    .bb-customer-page .processin-ticksify-table tbody tr:last-child {
        border-bottom: 0;
    }

    .bb-customer-page .processin-ticksify-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 1rem;
        padding: 0.4rem 0;
        border: 0;
    }

    .bb-customer-page .processin-ticksify-table tbody td::before {
        content: attr(data-label);
        flex-shrink: 0;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #94a3b8;
        padding-top: 0.2rem;
    }
}

/* CRM portal chrome when Ticksify pages load without plugin CSS */
.bb-customer-page .crm-portal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.bb-customer-page .crm-portal-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none !important;
}

.bb-customer-page .crm-portal-back:hover {
    color: #1d4ed8;
}

.bb-customer-page .crm-portal-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.15rem 1.25rem;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.75) inset,
        0 8px 24px -14px rgba(15, 23, 42, 0.1);
}

.bb-customer-page .crm-portal-table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.bb-customer-page .processin-ticksify-portal .btn,
.bb-customer-page .processin-ticksify-portal .crm-portal-btn {
    min-height: 0 !important;
    height: auto !important;
    padding: 0.45rem 0.95rem !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
}


/* Affiliate register — same light gradient as .psd-hero (black / white / blue) */
.bb-customer-page .affiliate-registration-hero,
.bb-customer-page .affiliate-registration-hero.bg-info {
    background:
        radial-gradient(1000px 480px at 88% 8%, rgba(59, 130, 246, 0.14), transparent 58%),
        radial-gradient(720px 380px at 8% 90%, rgba(56, 189, 248, 0.1), transparent 55%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 72%) !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.18);
}
.bb-customer-page .affiliate-registration-hero::before {
    inset: auto -8% -35% auto !important;
    top: auto !important;
    right: -8% !important;
    width: 50% !important;
    height: 65% !important;
    transform: none !important;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.16), transparent 70%) !important;
    filter: blur(42px);
    border-radius: 50%;
}
.bb-customer-page .affiliate-registration-hero .hero-title,
.bb-customer-page .affiliate-registration-hero .hero-title.text-white {
    color: #0f172a !important;
}
.bb-customer-page .affiliate-registration-hero .hero-title svg,
.bb-customer-page .affiliate-registration-hero .hero-title .text-white {
    color: #3b82f6 !important;
}
.bb-customer-page .affiliate-registration-hero .hero-description,
.bb-customer-page .affiliate-registration-hero .hero-description.text-white {
    color: #64748b !important;
}
.bb-customer-page .affiliate-registration-hero .hero-icon {
    background: rgba(59, 130, 246, 0.1) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
}
.bb-customer-page .affiliate-registration-hero .hero-icon svg {
    color: #3b82f6 !important;
}
.bb-customer-page .affiliate-rules-section .rules-content ul,
.bb-customer-page .affiliate-rules-section .rules-content .rules-list {
    list-style: disc !important;
    padding-left: 1.25rem !important;
    margin: 0.5rem 0 0 !important;
}
.bb-customer-page .affiliate-rules-section .rules-content li {
    display: list-item !important;
    list-style: disc !important;
    margin-bottom: 0.55rem;
}

/* —— Premium notifications inbox (Ticksify) —— */
.bb-customer-page .processin-inbox {
    position: relative;
}

.bb-customer-page .processin-inbox__toggle {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0 !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
    color: #0f172a !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.bb-customer-page .processin-inbox__toggle::after {
    display: none !important;
}

.bb-customer-page .processin-inbox__toggle:hover,
.bb-customer-page .processin-inbox__toggle[aria-expanded="true"] {
    border-color: #cbd5e1 !important;
    background: #f8fafc !important;
}

.bb-customer-page .processin-inbox__badge {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.15rem;
    text-align: center;
    border: 2px solid #fff;
}

.bb-customer-page .processin-inbox__menu {
    width: min(22rem, calc(100vw - 2rem)) !important;
    min-width: 20rem !important;
    max-height: none !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin-top: 0.5rem !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 18px 40px -18px rgba(15, 23, 42, 0.35) !important;
    background: #fff !important;
}

.bb-customer-page .processin-inbox__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1rem 0.85rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.bb-customer-page .processin-inbox__title {
    display: block;
    font-size: 0.92rem;
    font-weight: 750;
    color: #0a0a0a;
    letter-spacing: -0.01em;
}

.bb-customer-page .processin-inbox__subtitle {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.bb-customer-page .processin-inbox__mark-all {
    border: 0;
    background: transparent;
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0;
    white-space: nowrap;
}

.bb-customer-page .processin-inbox__mark-all:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.bb-customer-page .processin-inbox__list {
    max-height: 22rem;
    overflow: auto;
    padding: 0.45rem;
}

.bb-customer-page .processin-inbox__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.8rem 0.75rem;
    border-radius: 12px;
    text-decoration: none !important;
    color: inherit;
    transition: background-color 0.18s ease;
}

.bb-customer-page .processin-inbox__item:hover {
    background: #f8fafc;
}

.bb-customer-page .processin-inbox__item.is-unread {
    background: rgba(59, 130, 246, 0.06);
}

.bb-customer-page .processin-inbox__item.is-unread:hover {
    background: rgba(59, 130, 246, 0.1);
}

.bb-customer-page .processin-inbox__icon {
    flex-shrink: 0;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #dbeafe, #bfdbfe);
    color: #1d4ed8;
}

.bb-customer-page .processin-inbox__item.is-unread .processin-inbox__icon {
    background: linear-gradient(145deg, #0a0a0a, #1e293b);
    color: #fff;
}

.bb-customer-page .processin-inbox__content {
    flex: 1 1 auto;
    min-width: 0;
}

.bb-customer-page .processin-inbox__row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.bb-customer-page .processin-inbox__item-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.bb-customer-page .processin-inbox__dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #3b82f6;
    flex-shrink: 0;
}

.bb-customer-page .processin-inbox__body {
    margin-top: 0.25rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bb-customer-page .processin-inbox__meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

.bb-customer-page .processin-inbox__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-size: 0.7rem;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.bb-customer-page .processin-inbox__date {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

.bb-customer-page .processin-inbox__empty,
.bb-customer-page .processin-inbox__loading {
    padding: 1.5rem 1rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
}

.bb-customer-page .processin-inbox__foot {
    border-top: 1px solid #e2e8f0;
    padding: 0.7rem 0.9rem;
    background: #f8fafc;
}

.bb-customer-page .processin-inbox__foot-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0a0a0a !important;
    text-decoration: none !important;
}

.bb-customer-page .processin-inbox__foot-link:hover {
    color: #1d4ed8 !important;
}
