/* UM Feature Navigator - Professional Theme with Hot Pink Accents */
.umfn-wrapper,
.umfn-customer-wrapper {
    --umfn-primary: #2563eb;
    --umfn-primary-dark: #1d4ed8;
    --umfn-hotpink: #ff69b4;
    --umfn-hotpink-light: #fff0f7;
    --umfn-gray-50: #f8fafc;
    --umfn-gray-100: #f1f5f9;
    --umfn-gray-200: #e2e8f0;
    --umfn-gray-300: #cbd5e1;
    --umfn-gray-400: #94a3b8;
    --umfn-gray-500: #64748b;
    --umfn-gray-600: #475569;
    --umfn-gray-700: #334155;
    --umfn-gray-800: #1e293b;
    --umfn-gray-900: #0f172a;
    --umfn-border: #e2e8f0;
    --umfn-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --umfn-shadow-md: 0 2px 4px -1px rgb(0 0 0 / 0.1);
    --umfn-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --umfn-tooltip-bg: #1e293b;
    --umfn-sidebar-width: clamp(210px, 18vw, 248px);
    --umfn-sidebar-width-tablet: 198px;
}

/* SweetAlert theme and stacking */
.swal2-container,
.swal2-container.umfn-swal-front {
    z-index: 2147483000 !important;
}

.swal2-popup,
.swal2-popup.umfn-swal-popup {
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12) !important;
    color: #1e293b !important;
    padding: 2em 2.2em !important;
}

.swal2-title {
    color: #1e293b !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    padding-top: 0 !important;
}

.swal2-html-container {
    color: #64748b !important;
    font-size: 0.9rem !important;
    margin-top: 4px !important;
}

.swal2-icon {
    margin: 0.6em auto 0.8em !important;
    width: 3em !important;
    height: 3em !important;
    font-size: 0.9em !important;
    border-width: 2px !important;
}

.swal2-icon.swal2-success {
    border-color: #14b8a6 !important;
    color: #0f766e !important;
}

.swal2-icon.swal2-warning {
    border-color: #f59e0b !important;
    color: #b45309 !important;
}

.swal2-icon.swal2-error {
    border-color: #ef4444 !important;
    color: #b91c1c !important;
}

.swal2-actions {
    gap: 8px !important;
    margin-top: 1.4em !important;
}

.swal2-confirm,
.swal2-styled.swal2-confirm,
.umfn-swal-confirm {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #1e293b !important;
    color: #ffffff;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    padding: 9px 20px !important;
    box-shadow: none !important;
}

.swal2-confirm:hover,
.swal2-styled.swal2-confirm:hover,
.umfn-swal-confirm:hover {
    background: #0f172a !important;
}

.swal2-cancel,
.swal2-styled.swal2-cancel,
.umfn-swal-cancel {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    color: #334155 !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    padding: 9px 20px !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
}

.swal2-cancel:hover,
.swal2-styled.swal2-cancel:hover,
.umfn-swal-cancel:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
}

.swal2-confirm:focus,
.swal2-cancel:focus,
.swal2-styled:focus,
.umfn-swal-confirm:focus,
.umfn-swal-cancel:focus {
    outline: 2px solid #94a3b8 !important;
    outline-offset: 2px !important;
    box-shadow: none !important;
}

.swal2-backdrop-show {
    background: rgba(15, 23, 42, 0.4) !important;
}

.swal2-container.umfn-swal-front .swal2-popup.umfn-swal-popup {
    width: min(420px, calc(100vw - 32px)) !important;
    min-height: 0 !important;
    padding: 28px !important;
    border-radius: 20px !important;
}

.swal2-container.umfn-swal-front .swal2-title {
    color: #1e293b !important;
    font-size: 1.3rem !important;
    line-height: 1.2 !important;
    padding: 0 !important;
}

.swal2-container.umfn-swal-front .swal2-html-container {
    margin: 8px 0 0 !important;
    color: #475569 !important;
    font-size: 0.95rem !important;
}

.swal2-container.umfn-swal-front .swal2-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 22px 0 0 !important;
}

.swal2-container.umfn-swal-front .swal2-styled {
    min-width: 118px !important;
    margin: 0 !important;
}

.swal2-container.umfn-swal-front .swal2-confirm.umfn-swal-confirm {
    background: linear-gradient(135deg, #c026d3, #db2777) !important;
    color: #ffffff !important;
}

.swal2-container.umfn-swal-front .swal2-cancel.umfn-swal-cancel {
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #334155 !important;
}

.swal2-container.umfn-swal-front .swal2-cancel.umfn-swal-cancel:not([style*="display: none"]) {
    display: inline-flex !important;
}

body.umfn-feature-panel-open {
    overflow: hidden;
}

.umfn-feature-panel-overlay {
    --umfn-hotpink: #ff69b4;
    --umfn-gray-600: #475569;
    --umfn-gray-700: #334155;
    --umfn-gray-900: #0f172a;
    --umfn-border: #e2e8f0;
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.umfn-feature-panel-overlay.active {
    display: flex;
}

.umfn-feature-panel {
    width: min(96vw, 1280px);
    height: min(94vh, 980px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    box-shadow: 0 26px 80px rgba(15, 23, 42, 0.35);
}

.umfn-feature-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--umfn-border);
    background: linear-gradient(135deg, #ffffff 0%, #fff7fb 100%);
}

.umfn-feature-panel-title-wrap {
    min-width: 0;
}

.umfn-feature-panel-kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--umfn-hotpink);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.umfn-feature-panel-title-wrap h2 {
    margin: 0;
    color: var(--umfn-gray-900);
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 800;
    line-height: 1.2;
}

.umfn-feature-panel-close {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid var(--umfn-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--umfn-gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
}

.umfn-feature-panel-close:hover,
.umfn-feature-panel-close:focus-visible {
    border-color: var(--umfn-hotpink);
    color: var(--umfn-hotpink);
    box-shadow: 0 8px 22px rgba(255, 105, 180, 0.18);
    outline: none;
}

.umfn-feature-panel-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: clamp(16px, 2.2vw, 30px);
    background: #f8fafc;
}

.umfn-feature-panel-body > * {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.umfn-feature-panel-body .umfn-loading,
.umfn-feature-panel-body .umfn-error {
    max-width: 620px;
    margin-top: 10vh;
}

.umfn-feature-panel-body .umfn-feature-loading {
    width: min(420px, 100%);
    height: auto;
    min-height: 210px;
    margin-top: clamp(28px, 7vh, 72px);
    padding: 28px;
    border: 1px solid rgba(255, 105, 180, 0.18);
    border-radius: 24px;
    background:
        radial-gradient(circle at 18% 16%, rgba(255, 105, 180, 0.18), transparent 30%),
        linear-gradient(135deg, #ffffff, #fff7fb);
    color: var(--umfn-gray-700);
    text-align: center;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.umfn-feature-panel-body .umfn-feature-loading i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 999px;
    background: #fff0f7;
    font-size: 1.25rem;
}

.umfn-feature-panel-body .umfn-feature-loading span {
    color: var(--umfn-gray-900);
    font-size: 1rem;
    font-weight: 800;
}

.umfn-feature-panel-body .umfn-feature-loading small {
    margin-top: 6px;
    color: var(--umfn-gray-500);
    font-size: 0.82rem;
}

.umfn-feature-panel-placeholder {
    height: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px;
    text-align: center;
    color: var(--umfn-gray-600);
    background: linear-gradient(135deg, #ffffff, #fff7fb);
}

.umfn-feature-panel-placeholder i {
    color: var(--umfn-hotpink);
    font-size: 2rem;
}

.umfn-feature-panel-placeholder p {
    margin: 0;
    font-size: 0.95rem;
}

.umfn-reopen-feature-panel {
    border: 0;
    border-radius: 999px;
    background: var(--umfn-hotpink);
    color: #ffffff;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 10px 18px;
    box-shadow: 0 12px 28px rgba(255, 105, 180, 0.25);
}

.umfn-reopen-feature-panel:hover,
.umfn-reopen-feature-panel:focus-visible {
    background: #e94f9f;
    outline: none;
}

@media (max-width: 768px) {
    .umfn-feature-panel-overlay {
        padding: 0;
    }

    .umfn-feature-panel {
        width: 100vw;
        height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .umfn-feature-panel-header {
        padding: 13px 14px;
    }

    .umfn-feature-panel-close {
        width: 36px;
        height: 36px;
    }

    .umfn-feature-panel-body {
        padding: 14px;
    }
}

/* Main Wrapper */
.umfn-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
}

/* Container - Enhanced Height */
.umfn-container {
    display: grid;
    grid-template-columns: minmax(0, var(--umfn-sidebar-width)) minmax(0, 1fr);
    height: 70vh;
    min-height: 600px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--umfn-border);
    box-sizing: border-box;
    position: relative;
    box-shadow: var(--umfn-shadow-sm);
}

.umfn-container * {
    box-sizing: border-box;
}

/* Tooltip Container */
.umfn-tooltip-container {
    position: relative;
    display: inline-block;
}

.umfn-tooltip-container:hover .umfn-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.umfn-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: var(--umfn-tooltip-bg);
    color: white;
    font-size: 0.6rem;
    font-weight: normal;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 9999;
    transition: all 0.2s ease;
    pointer-events: none;
    box-shadow: var(--umfn-shadow-sm);
    margin-bottom: 5px;
}

.umfn-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px;
    border-style: solid;
    border-color: var(--umfn-tooltip-bg) transparent transparent transparent;
}

/* Mobile Header */
.umfn-mobile-header {
    display: none;
    background: #ffffff;
    padding: 12px 16px;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--umfn-border);
    position: relative;
    z-index: 102;
    background: #ffffff;
}

.umfn-menu-toggle {
    background: var(--umfn-gray-100);
    border: 1px solid var(--umfn-border);
    color: var(--umfn-gray-700);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.umfn-menu-toggle:hover {
    background: var(--umfn-gray-200);
    border-color: var(--umfn-hotpink);
}

.umfn-menu-toggle i {
    font-size: 1rem;
}

.umfn-mobile-header h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--umfn-gray-800);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Slide-out Panel Overlay */
.umfn-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.umfn-mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Slide-out Panel */
.umfn-mobile-panel {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #ffffff;
    z-index: 1001;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.umfn-mobile-panel.active {
    left: 0;
}

/* Panel Header */
.umfn-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    flex-shrink: 0;
}

.umfn-panel-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.umfn-panel-header h3 i {
    font-size: 1rem;
}

.umfn-panel-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.umfn-panel-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Panel Search */
.umfn-panel-search {
    padding: 12px 16px;
    border-bottom: 1px solid var(--umfn-border);
    flex-shrink: 0;
}

.umfn-panel-search-input {
    width: 100%;
    padding: 8px 12px 8px 32px;
    border: 1px solid var(--umfn-border);
    border-radius: 20px;
    font-size: 0.85rem;
    background: var(--umfn-gray-50);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2394a3b8" width="16px" height="16px"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>');
    background-repeat: no-repeat;
    background-position: 10px center;
}

.umfn-panel-search-input:focus {
    outline: none;
    border-color: var(--umfn-hotpink);
    background-color: #ffffff;
}

/* Panel Tabs */
.umfn-panel-tabs {
    display: flex;
    padding: 8px 12px;
    gap: 8px;
    border-bottom: 1px solid var(--umfn-border);
    flex-shrink: 0;
}

.umfn-panel-tab {
    flex: 1;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--umfn-gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.umfn-panel-tab i {
    font-size: 0.8rem;
}

.umfn-panel-tab.active {
    background: var(--umfn-hotpink-light);
    color: var(--umfn-hotpink);
}

.umfn-panel-tab .umfn-panel-tab-count {
    background: var(--umfn-gray-200);
    color: var(--umfn-gray-600);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-left: 4px;
}

.umfn-panel-tab.active .umfn-panel-tab-count {
    background: var(--umfn-hotpink);
    color: white;
}

/* Panel Features List */
.umfn-panel-features-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.umfn-panel-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.umfn-panel-feature-item:hover {
    background: var(--umfn-gray-50);
}

.umfn-panel-feature-item.active {
    background: var(--umfn-hotpink-light);
    border-left-color: var(--umfn-hotpink);
}

.umfn-panel-feature-item i {
    width: 24px;
    color: var(--umfn-gray-500);
    font-size: 1rem;
    text-align: center;
}

.umfn-panel-feature-item.active i {
    color: var(--umfn-hotpink);
}

.umfn-panel-feature-title {
    flex: 1;
    font-size: 0.85rem;
    color: var(--umfn-gray-700);
}

.umfn-panel-feature-item.active .umfn-panel-feature-title {
    color: var(--umfn-hotpink);
    font-weight: 500;
}

.umfn-panel-feature-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 20px;
    background: var(--umfn-gray-100);
    color: var(--umfn-gray-500);
}

.umfn-panel-feature-item.disabled {
    opacity: 0.6;
}

.umfn-panel-feature-item.disabled .umfn-panel-feature-badge {
    background: #fef3c7;
    color: #d97706;
}

.umfn-panel-no-features {
    text-align: center;
    padding: 40px 20px;
    color: var(--umfn-gray-500);
    font-size: 0.85rem;
}

.umfn-panel-no-features i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    color: var(--umfn-gray-400);
}

/* Sidebar - Fixed layout */
.umfn-sidebar {
    width: 100%;
    min-width: 0;
    background: #ffffff;
    border-right: 1px solid var(--umfn-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

.umfn-sidebar-header {
    padding: 8px 10px;
    background: #ffffff;
    border-bottom: 1px solid var(--umfn-border);
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.umfn-sidebar-header h3 {
    margin: 0;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--umfn-gray-900);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.umfn-sidebar-header h3 i {
    color: var(--umfn-hotpink);
    font-size: 0.65rem;
}

.umfn-close-sidebar {
    display: none;
}

/* Feature Tabs */
.umfn-feature-tabs {
    display: flex;
    padding: 8px 8px 4px;
    gap: 4px;
    border-bottom: 1px solid var(--umfn-border);
    flex-shrink: 0;
}

.umfn-feature-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 3px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--umfn-gray-500);
    font-size: 0.62rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px 4px 0 0;
}

.umfn-feature-tab i {
    font-size: 0.6rem;
}

.umfn-feature-tab .umfn-tab-count {
    background: var(--umfn-gray-200);
    color: var(--umfn-gray-600);
    padding: 2px 5px;
    border-radius: 10px;
    font-size: 0.55rem;
    font-weight: 600;
    margin-left: 2px;
}

.umfn-feature-tab:hover {
    color: var(--umfn-hotpink);
    background: var(--umfn-hotpink-light);
}

.umfn-feature-tab.active {
    color: var(--umfn-hotpink);
    border-bottom-color: var(--umfn-hotpink);
    background: var(--umfn-hotpink-light);
}

.umfn-feature-tab.active .umfn-tab-count {
    background: var(--umfn-hotpink);
    color: white;
}

/* Search Container */
.umfn-search-container {
    padding: 8px;
    position: relative;
    border-bottom: 1px solid var(--umfn-border);
    height: 42px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.umfn-search-input {
    width: 100%;
    height: 26px;
    padding: 0 10px 0 24px;
    border: 1px solid var(--umfn-border);
    border-radius: 4px;
    font-size: 0.65rem;
    background: var(--umfn-gray-50);
    color: var(--umfn-gray-800);
    line-height: 26px;
}

.umfn-search-input:focus {
    outline: none;
    border-color: var(--umfn-hotpink);
    background: #ffffff;
}

.umfn-search-icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--umfn-gray-400);
    font-size: 0.6rem;
    pointer-events: none;
    z-index: 1;
}

/* Features List */
.umfn-features-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--umfn-gray-300) var(--umfn-gray-100);
    height: auto;
    min-height: 0;
}

.umfn-features-list::-webkit-scrollbar {
    width: 4px;
}

.umfn-features-list::-webkit-scrollbar-track {
    background: var(--umfn-gray-100);
}

.umfn-features-list::-webkit-scrollbar-thumb {
    background: var(--umfn-gray-300);
    border-radius: 4px;
}

/* Feature Item */
.umfn-feature-item {
    padding: 5px 6px;
    margin-bottom: 2px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.65rem;
    color: var(--umfn-gray-600);
    transition: background-color 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    line-height: 1.2;
    box-sizing: border-box;
    border-left: 2px solid transparent;
    min-height: 28px;
}

.umfn-feature-item:hover {
    background: var(--umfn-gray-100);
    color: var(--umfn-gray-900);
}

.umfn-feature-item.active {
    background: var(--umfn-gray-100);
    color: var(--umfn-hotpink);
    font-weight: 500;
    border-left: 2px solid var(--umfn-hotpink);
}

.umfn-feature-item.feature-disabled {
    opacity: 0.7;
    background: linear-gradient(to right, #f9f9f9, #f2f2f2);
    border-left: 2px solid #adb5bd;
}

.umfn-feature-item.feature-disabled:hover {
    opacity: 0.9;
    background: linear-gradient(to right, #f0f0f0, #e9e9e9);
}

.umfn-feature-icon {
    width: 14px;
    font-size: 0.65rem;
    color: var(--umfn-gray-500);
    text-align: center;
    flex-shrink: 0;
}

.umfn-feature-item:hover .umfn-feature-icon {
    color: var(--umfn-gray-700);
}

.umfn-feature-item.active .umfn-feature-icon {
    color: var(--umfn-hotpink);
}

.umfn-feature-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* Online advisor usernames */
.umfn-online-advisors-card {
    display: none !important;
    flex-shrink: 0;
    margin: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 105, 180, 0.18);
    border-radius: 10px;
    background: linear-gradient(145deg, #ffffff, #fff7fb);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.umfn-online-advisors-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.umfn-online-advisors-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    font-size: 0.7rem;
    box-shadow: 0 8px 18px rgba(255, 20, 147, 0.16);
}

.umfn-online-advisors-header strong,
.umfn-online-advisors-header small {
    display: block;
    line-height: 1.2;
}

.umfn-online-advisors-header strong {
    color: var(--umfn-gray-900);
    font-size: 0.72rem;
}

.umfn-online-advisors-header small {
    color: var(--umfn-gray-500);
    font-size: 0.58rem;
    margin-top: 2px;
}

.umfn-online-advisors-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 2px;
}

.umfn-online-advisor-item {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 4px 6px;
    border-radius: 7px;
    background: rgba(248, 250, 252, 0.9);
    color: var(--umfn-gray-700);
    font-size: 0.64rem;
}

.umfn-online-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
}

.umfn-online-advisor-username {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.umfn-online-advisor-you {
    flex-shrink: 0;
    padding: 2px 6px;
    border-radius: 999px;
    background: #fff0f7;
    color: #ff1493;
    font-size: 0.54rem;
    font-weight: 700;
}

.umfn-online-advisors-empty,
.umfn-online-advisors-more {
    color: var(--umfn-gray-500);
    font-size: 0.62rem;
    line-height: 1.35;
    padding: 6px 2px 2px;
}

.umfn-online-advisors-more {
    text-align: center;
    font-weight: 600;
    color: var(--umfn-hotpink);
}

/* Unread Callback Notification Indicator */
.umfn-unread-indicator {
    width: 8px;
    height: 8px;
    background-color: #ff1493;
    border-radius: 50%;
    flex-shrink: 0;
    display: block;
    box-shadow: 0 0 8px rgba(255, 20, 147, 0.8), 0 0 12px rgba(255, 20, 147, 0.6);
    animation: umfn-unread-pulse 2s infinite;
}

@keyframes umfn-unread-pulse {
    0% {
        box-shadow: 0 0 8px rgba(255, 20, 147, 0.8), 0 0 12px rgba(255, 20, 147, 0.6);
    }
    50% {
        box-shadow: 0 0 12px rgba(255, 20, 147, 1), 0 0 16px rgba(255, 20, 147, 0.8);
    }
    100% {
        box-shadow: 0 0 8px rgba(255, 20, 147, 0.8), 0 0 12px rgba(255, 20, 147, 0.6);
    }
}

/* No Results */
.umfn-no-results {
    text-align: center;
    padding: 12px 8px;
    color: var(--umfn-gray-500);
    font-size: 0.65rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.umfn-no-results i {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--umfn-gray-400);
}

/* Main Content Area */
.umfn-content {
    flex: 1;
    width: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

.umfn-content-header {
    padding: 8px 12px;
    background: #ffffff;
    border-bottom: 1px solid var(--umfn-border);
    min-height: 48px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}

.umfn-content-title {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--umfn-gray-900);
    display: flex;
    align-items: center;
    gap: 6px;
}

.umfn-content-title i {
    color: var(--umfn-hotpink);
    font-size: 0.8rem;
}

.umfn-content-mini-tabs {
    flex: 1;
    max-width: 820px;
    margin-left: auto;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 8px;
}

.umfn-content-mini-tabs .umfn-overview-tab {
    min-height: 34px;
    padding: 6px 8px;
    border-radius: 12px;
    gap: 7px;
}

.umfn-content-mini-tabs .umfn-overview-tab::before {
    height: 2px;
}

.umfn-content-mini-tabs .umfn-overview-tab i {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    font-size: 0.72rem;
}

.umfn-content-mini-tabs .umfn-overview-tab span {
    font-size: 0.74rem;
}

.umfn-content-mini-tabs .umfn-overview-tab strong {
    min-width: 22px;
    height: 20px;
    font-size: 0.66rem;
}

.umfn-content-mini-tabs .umfn-overview-tab:hover,
.umfn-content-mini-tabs .umfn-overview-tab:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

.umfn-content-body {
    flex: 1;
    padding: clamp(16px, 2vw, 24px);
    overflow-y: auto;
    background: #ffffff;
    scrollbar-width: thin;
    scrollbar-color: var(--umfn-gray-300) var(--umfn-gray-100);
    min-height: 0;
}

.umfn-overview-tabs {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.umfn-overview-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: clamp(18px, 2.8vw, 30px);
    border: 1px solid rgba(255, 105, 180, 0.18);
    border-radius: 24px;
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 105, 180, 0.22), transparent 28%),
        radial-gradient(circle at 92% 8%, rgba(168, 85, 247, 0.18), transparent 26%),
        linear-gradient(135deg, #fff7fb 0%, #ffffff 48%, #f8fbff 100%);
    box-shadow: 0 18px 45px rgba(255, 105, 180, 0.12);
}

.umfn-overview-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    color: #ff1493;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.umfn-overview-hero h3 {
    margin: 0;
    color: var(--umfn-gray-900);
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    line-height: 1.15;
}

.umfn-overview-hero p {
    max-width: 620px;
    margin: 8px 0 0;
    color: var(--umfn-gray-600);
    font-size: 0.92rem;
}

.umfn-overview-sparkle {
    width: clamp(56px, 7vw, 82px);
    height: clamp(56px, 7vw, 82px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 24px;
    background: linear-gradient(135deg, #ff69b4, #a855f7);
    color: #ffffff;
    box-shadow: 0 16px 35px rgba(168, 85, 247, 0.28);
}

.umfn-overview-sparkle i {
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.umfn-overview-tab-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.umfn-overview-tab {
    position: relative;
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid var(--umfn-border);
    border-radius: 18px;
    background: #ffffff;
    color: var(--umfn-gray-700);
    cursor: pointer;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.umfn-overview-tab::before {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 4px;
    background: linear-gradient(90deg, #ff69b4, #a855f7, #38bdf8);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.umfn-overview-tab i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 14px;
    background: #fff0f7;
    color: #ff1493;
    font-size: 1rem;
}

.umfn-overview-tab span {
    flex: 1;
    min-width: 0;
    font-size: 0.95rem;
    font-weight: 800;
}

.umfn-overview-tab strong {
    min-width: 30px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--umfn-gray-100);
    color: var(--umfn-gray-700);
    font-size: 0.78rem;
}

.umfn-overview-tab:hover,
.umfn-overview-tab:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 105, 180, 0.35);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    outline: none;
}

.umfn-overview-tab.active {
    border-color: rgba(255, 105, 180, 0.48);
    background: linear-gradient(135deg, #fff0f7, #ffffff);
    color: #db2777;
    box-shadow: 0 16px 34px rgba(255, 105, 180, 0.16);
}

.umfn-overview-tab.active::before {
    opacity: 1;
}

.umfn-overview-tab.active i {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: #ffffff;
}

.umfn-overview-tab.active strong {
    background: #ff69b4;
    color: #ffffff;
}

.umfn-overview-panel {
    display: none;
    flex: 1;
    min-height: 0;
    border: 1px solid var(--umfn-border);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff, #fff9fc);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.umfn-overview-panel.active {
    display: flex;
    flex-direction: column;
}

.umfn-overview-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    background: rgba(255, 255, 255, 0.76);
}

.umfn-overview-panel-heading h4 {
    margin: 0;
    color: var(--umfn-gray-900);
    font-size: 1rem;
    font-weight: 800;
}

.umfn-overview-panel-heading p {
    margin: 3px 0 0;
    color: var(--umfn-gray-500);
    font-size: 0.82rem;
}

.umfn-overview-content-board {
    flex: 1;
    min-height: 0;
    padding: 18px;
    overflow: auto;
}

.umfn-overview-grid {
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.umfn-overview-grid .umfn-advisor-album-card,
.umfn-overview-grid .umfn-advisor-story-card {
    width: min(260px, 100%);
}

.umfn-public-photos-heading {
    align-items: center;
}

.umfn-public-photos-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #fff0f7;
    color: #db2777;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 6px 10px;
}

.umfn-public-photos-board {
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 105, 180, 0.08), transparent 26%),
        linear-gradient(180deg, #ffffff, #fff9fc);
}

.umfn-dashboard-public-photos {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.umfn-advisor-public-photos-below {
    margin-top: 18px;
    border: 1px solid var(--umfn-border);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff, #fff9fc);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.umfn-public-photos-explainer {
    display: grid;
    gap: 5px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 105, 180, 0.18);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff7fb, #ffffff);
    box-shadow: 0 10px 24px rgba(255, 105, 180, 0.08);
}

.umfn-public-photos-explainer span {
    color: #ff1493;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.umfn-public-photos-explainer strong {
    color: var(--umfn-gray-900);
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.25;
}

.umfn-public-photos-explainer p {
    margin: 0;
    color: var(--umfn-gray-500);
    font-size: 0.86rem;
    line-height: 1.55;
}

.umfn-public-photos-content-board {
    position: relative;
    min-height: 180px;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 20px;
    background: #ffffff;
    overflow: hidden;
}

.umfn-public-photos-content-board .smd-public-photos-uploader {
    margin-bottom: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.umfn-public-photos-content-board .smd-public-photos-album {
    padding: 14px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #fff9fc);
}

.umfn-public-photos-content-board .smd-public-photos-album h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.98rem;
}

.umfn-public-photos-content-board .smd-public-photos-album h3::before {
    content: '\f03e';
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
    color: #ff1493;
}

.umfn-public-photos-content-board .smd-public-photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}

.umfn-public-photos-content-board .smd-public-photo-card {
    border: 1px solid rgba(255, 105, 180, 0.08);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.umfn-public-photos-loader {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.84);
    color: #db2777;
    font-size: 0.9rem;
    font-weight: 800;
    backdrop-filter: blur(3px);
}

.umfn-public-photos-content-board.is-loading .umfn-public-photos-loader {
    display: flex;
}

.umfn-public-photos-content-board .smd-public-photos.is-uploading {
    position: relative;
}

.umfn-recent-contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 360px));
    align-items: start;
    justify-content: start;
    gap: 16px;
    padding: 18px;
}

.umfn-recent-contact-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-areas: "avatar main action";
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 0;
    height: auto;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    box-sizing: border-box;
}

.umfn-recent-contact-avatar {
    grid-area: avatar;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 16px;
    background: linear-gradient(135deg, #ff69b4, #a855f7);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
}

.umfn-recent-contact-main {
    grid-area: main;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.umfn-recent-contact-main h5 {
    margin: 0;
    width: 100%;
    color: var(--umfn-gray-900);
    font-size: 0.98rem;
    line-height: 1.25;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.umfn-recent-contact-meta {
    margin-top: 6px;
    color: var(--umfn-gray-500);
    font-size: 0.72rem;
    line-height: 1.35;
}

.umfn-recent-contact-meta span,
.umfn-recent-contact-badges span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.umfn-recent-contact-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.umfn-recent-contact-badges span {
    padding: 3px 8px;
    border-radius: 999px;
    background: #fff0f7;
    color: #db2777;
    font-size: 0.68rem;
    font-weight: 700;
}

.umfn-recent-contact-message {
    grid-area: action;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: #ffffff;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 9px 12px;
    box-shadow: 0 10px 22px rgba(255, 105, 180, 0.22);
    white-space: nowrap;
}

.umfn-recent-contact-message:hover,
.umfn-recent-contact-message:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.umfn-overview-empty {
    margin: 18px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 34px;
    text-align: center;
    border: 1px dashed rgba(255, 105, 180, 0.35);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff7fb, #f8fafc);
}

.umfn-overview-empty i {
    margin-bottom: 12px;
    color: #ff69b4;
    font-size: 2.2rem;
}

.umfn-overview-empty h4 {
    margin: 0 0 6px;
    color: var(--umfn-gray-900);
    font-size: 1rem;
}

.umfn-overview-empty p {
    max-width: 420px;
    margin: 0;
    color: var(--umfn-gray-500);
    font-size: 0.85rem;
}

@media (max-width: 1100px) and (min-width: 769px) {
    .umfn-container {
        grid-template-columns: minmax(0, var(--umfn-sidebar-width-tablet)) minmax(0, 1fr);
    }

    .umfn-sidebar-header {
        padding: 8px;
    }

    .umfn-sidebar-header h3 {
        font-size: 0.62rem;
        gap: 4px;
    }

    .umfn-search-container {
        padding: 7px;
    }

    .umfn-feature-tabs {
        padding: 7px 7px 4px;
        gap: 3px;
    }

    .umfn-feature-tab {
        font-size: 0.58rem;
        gap: 3px;
        padding: 6px 2px;
    }

    .umfn-feature-tab .umfn-tab-count {
        padding: 2px 4px;
        font-size: 0.5rem;
    }

    .umfn-feature-item {
        padding: 5px;
        gap: 5px;
        font-size: 0.62rem;
    }

    .umfn-feature-icon {
        width: 12px;
        font-size: 0.62rem;
    }

    .umfn-content-header {
        padding: 10px 14px;
    }

    .umfn-overview-tab-bar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .umfn-overview-hero {
        align-items: flex-start;
        padding: 18px;
    }

    .umfn-overview-sparkle {
        display: none;
    }

    .umfn-overview-tab-bar {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .umfn-overview-tab {
        min-height: 62px;
        padding: 12px;
    }

    .umfn-overview-panel-heading {
        display: block;
        padding: 15px;
    }

    .umfn-overview-content-board,
    .umfn-recent-contacts-grid {
        padding: 14px;
    }

    .umfn-recent-contact-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .umfn-recent-contact-message {
        width: 100%;
    }
}

.umfn-content-body::-webkit-scrollbar {
    width: 6px;
}

.umfn-content-body::-webkit-scrollbar-track {
    background: var(--umfn-gray-100);
    border-radius: 3px;
}

.umfn-content-body::-webkit-scrollbar-thumb {
    background: var(--umfn-gray-300);
    border-radius: 3px;
}

.umfn-content-body::-webkit-scrollbar-thumb:hover {
    background: var(--umfn-hotpink);
}

/* Loading State */
.umfn-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 100px;
    color: var(--umfn-gray-500);
}

.umfn-loading i {
    font-size: 1rem;
    color: var(--umfn-hotpink);
    margin-bottom: 6px;
    animation: umfnSpin 1s linear infinite;
}

/* Tips Section */
.umfn-tips-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 20, 147, 0.16), transparent 28%),
        radial-gradient(circle at 88% 20%, rgba(139, 92, 246, 0.16), transparent 30%),
        linear-gradient(135deg, #fff5fb 0%, #ffffff 48%, #f5f3ff 100%);
    border: 1px solid rgba(255, 20, 147, 0.16);
    border-radius: 18px;
    padding: 18px;
    margin: 18px 0 22px 0;
    box-shadow: 0 18px 45px rgba(236, 72, 153, 0.14);
}

.umfn-tips-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.65), transparent 38%, rgba(255, 255, 255, 0.45));
}

.umfn-tips-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 20, 147, 0.14);
}

.umfn-tips-header i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #ffffff;
    font-size: 0.8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff1493, #8b5cf6);
    box-shadow: 0 8px 18px rgba(255, 20, 147, 0.28);
}

.umfn-tips-header h3 {
    margin: 0;
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #1e1b4b;
}

.umfn-tips-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.umfn-tip-link {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 56px;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 14px;
    text-decoration: none;
    color: #312e81;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.25;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.11);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.umfn-tip-link::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.18), rgba(139, 92, 246, 0.18));
    transition: opacity 0.2s ease;
}

.umfn-tip-link:hover,
.umfn-tip-link:focus-visible {
    border-color: rgba(255, 20, 147, 0.36);
    color: #be185d;
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(236, 72, 153, 0.18);
    outline: none;
}

.umfn-tip-link:hover::before,
.umfn-tip-link:focus-visible::before {
    opacity: 1;
}

.umfn-tip-link i {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #ffffff;
    font-size: 0.72rem;
    width: 26px;
    height: 26px;
    text-align: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    box-shadow: 0 8px 16px rgba(236, 72, 153, 0.24);
}

.umfn-tip-link > span:not(.umfn-tooltip) {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.umfn-tip-link .fa-arrow-right {
    margin-left: auto;
    width: 24px;
    height: 24px;
    color: #be185d;
    font-size: 0.6rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: none;
    transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.umfn-tip-link:hover .fa-arrow-right,
.umfn-tip-link:focus-visible .fa-arrow-right {
    color: #ffffff;
    background: linear-gradient(135deg, #ff1493, #8b5cf6);
    transform: translateX(3px);
}

@media (max-width: 640px) {
    .umfn-tips-section {
        border-radius: 16px;
        padding: 14px;
    }

    .umfn-tips-grid {
        grid-template-columns: 1fr;
    }

    .umfn-tip-link {
        min-height: 52px;
        font-size: 0.8rem;
    }
}

/* ====================================
   CUSTOMERS LIST STYLES
   ==================================== */

.cl-customer-search-feature {
    all: revert;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 12px 0 10px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.cl-customer-search-feature *,
.cl-customer-search-feature *::before,
.cl-customer-search-feature *::after {
    box-sizing: border-box;
}

.cl-customer-search-label {
    flex: 0 0 auto;
    margin: 0;
    color: #1e293b;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
}

.cl-customer-search-box {
    position: relative;
    flex: 1 1 260px;
    max-width: 420px;
    min-width: 180px;
}

.cl-customer-search-box > .fa-magnifying-glass {
    position: absolute;
    left: 14px;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.82rem;
    pointer-events: none;
}

.cl-customer-search-box .cl-search-input {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0 42px 0 38px;
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.86rem;
    line-height: 40px;
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cl-customer-search-box .cl-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.cl-search-clear {
    position: absolute;
    right: 7px;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, color 0.2s ease;
}

.cl-search-clear:hover,
.cl-search-clear:focus-visible {
    background: #e0f2fe;
    color: #0369a1;
    outline: none;
}

.cl-customers-section {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin-top: 0;
    box-shadow: none;
}

.cl-count {
    background: #f1f4f9;
    color: #475569;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.cl-customers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 600px;
    overflow-y: auto;
    padding: 4px 2px;
}

.cl-customers-list-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cl-customer-row-hidden {
    display: none !important;
}

.cl-view-more-wrap {
    display: flex;
    justify-content: center;
    padding: 12px 0 4px;
}

.cl-view-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 999px;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
    color: #2563eb;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cl-view-more-btn strong {
    display: none;
}

.cl-view-more-btn:hover,
.cl-view-more-btn:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.38);
    box-shadow: 0 12px 26px rgba(59, 130, 246, 0.14);
    outline: none;
}

.cl-customers-list::-webkit-scrollbar {
    width: 4px;
}

.cl-customers-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.cl-customers-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.cl-customers-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.cl-customer-row {
    display: grid;
    grid-template-columns: 40px 1.2fr 0.8fr 1.8fr 1.8fr 50px;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.cl-customer-row:hover {
    background: #f8fafc;
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

.cl-customer-row:active {
    transform: translateY(0);
}

.cl-row-avatar {
    width: 32px;
    height: 32px;
    background: #3b82f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cl-row-avatar i {
    font-size: 1rem;
    color: white;
}

.cl-row-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cl-row-gender {
    color: #475569;
    font-size: 0.85rem;
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cl-row-last-login,
.cl-row-joined {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.8rem;
}

.cl-row-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #64748b;
}

.cl-row-value {
    color: #334155;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cl-row-actions {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cl-message-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    padding: 0;
}

.cl-message-btn:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

.cl-message-btn:active {
    transform: scale(0.95);
}

.cl-no-customers {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 16px;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 1px dashed #cbd5e1;
}

.cl-no-customers i {
    font-size: 3rem;
    color: #94a3b8;
}

.cl-loading,
.cl-error {
    text-align: center;
    padding: 40px;
    color: #3b82f6;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.cl-loading i {
    color: #3b82f6;
    animation: spin 1s linear infinite;
}

.cl-error i {
    color: #ef4444;
}

/* Message Coming Soon Modal */
.cl-message-modal {
    display: none;
    position: fixed;
    z-index: 100002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.cl-message-modal.show {
    display: flex;
    animation: clFadeIn 0.2s ease;
}

.cl-message-modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 380px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: clSlideUp 0.3s ease;
    border: 1px solid #e2e8f0;
}

.cl-message-modal-header {
    padding: 20px 20px 10px 20px;
    text-align: center;
}

.cl-message-modal-header i {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: 10px;
}

.cl-message-modal-header h3 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
}

.cl-message-modal-body {
    padding: 0 20px 20px 20px;
    text-align: center;
}

.cl-message-modal-body p {
    margin: 0 0 20px 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cl-message-modal-close {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.cl-message-modal-close:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Profile Modal */
.cl-modal {
    display: none;
    position: fixed;
    z-index: 100001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.cl-modal.show {
    display: flex;
    animation: clFadeIn 0.2s ease;
}

@keyframes clFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cl-modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    animation: clSlideUp 0.3s ease;
    border: 1px solid #e2e8f0;
}

@keyframes clSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cl-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #ffffff;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
}

.cl-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e293b;
}

.cl-modal-header h3 i {
    font-size: 1rem;
    color: #3b82f6;
}

.cl-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cl-modal-close:hover {
    background: #f1f5f9;
    color: #ef4444;
}

.cl-modal-body {
    padding: 20px;
    max-height: calc(85vh - 70px);
    overflow-y: auto;
    background: #f8fafc;
}

.cl-profile-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    text-align: center;
}

.cl-profile-loading i {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 16px;
    animation: spin 1s linear infinite;
}

.cl-profile-loading p {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

/* ====================================
   CUSTOMER DASHBOARD - SIMPLIFIED WELCOME SECTION
   ==================================== */

.umfn-customer-wrapper {
    display: flex;
    flex-direction: column;
    margin: 10px 0;
}

/* Welcome Section - Simplified, minimal */
.umfn-customer-welcome {
    display: inline-block;
    margin-bottom: 20px;
    padding: 6px 16px;
    background: white;
    border: 1px solid var(--umfn-hotpink);
    border-radius: 30px;
    box-shadow: none;
}

.umfn-welcome-icon {
    display: none;
}

.umfn-welcome-text {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
}

.umfn-welcome-greeting {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--umfn-gray-600);
    letter-spacing: normal;
}

.umfn-welcome-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--umfn-hotpink);
    text-shadow: none;
}

/* Purchased Goodies Section */
.umfn-customer-goodies {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--umfn-border);
}

.umfn-goodies-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--umfn-gray-800);
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--umfn-gray-100);
    display: flex;
    align-items: center;
    gap: 8px;
}

.umfn-goodies-title i {
    color: var(--umfn-hotpink);
    font-size: 1rem;
}

/* Goodie Rows */
.umfn-goodie-row {
    margin-bottom: 20px;
    background: var(--umfn-gray-50);
    border-radius: 16px;
    padding: 15px;
    transition: all 0.3s ease;
    border: 1px solid var(--umfn-gray-100);
}

.umfn-goodie-row:hover {
    box-shadow: var(--umfn-shadow-sm);
    border-color: var(--umfn-gray-200);
}

.umfn-goodie-row-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--umfn-gray-200);
}

.umfn-goodie-row-header i {
    font-size: 1rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    box-shadow: var(--umfn-shadow-sm);
}

.umfn-goodie-row-header h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--umfn-gray-700);
}

.umfn-goodie-row-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.umfn-no-items {
    color: var(--umfn-gray-400);
    font-size: 0.8rem;
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px dashed var(--umfn-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.umfn-no-items i {
    font-size: 0.9rem;
}

/* ====================================
   RESPONSIVE STYLES
   ==================================== */

@media (max-width: 900px) {
    .cl-customer-row {
        grid-template-columns: 40px 1.2fr 0.8fr 1.5fr 1.5fr 40px;
        gap: 12px;
        padding: 10px 14px;
    }
    
    .cl-row-last-login,
    .cl-row-joined {
        font-size: 0.75rem;
    }
}

@media (max-width: 640px) {
    .cl-customer-search-feature {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }

    .cl-customer-search-box {
        flex-basis: auto;
        max-width: none;
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .umfn-container {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: min(78vh, 620px);
        position: relative;
        grid-template-columns: none;
        border-radius: 10px;
    }
    
    /* Hide sidebar on mobile */
    .umfn-sidebar {
        display: none !important;
    }
    
    /* Show mobile header */
    .umfn-mobile-header {
        display: flex;
        padding: 12px 14px;
        gap: 10px;
        position: sticky;
        top: 0;
    }
    
    /* Content area full width on mobile */
    .umfn-content {
        width: 100%;
        height: auto;
        min-height: 420px;
        display: flex;
        flex-direction: column;
    }
    
    .umfn-content-header {
        padding: 10px 14px;
        height: auto;
    }
    
    .umfn-content-title {
        font-size: 0.9rem;
    }
    
    .umfn-content-body {
        min-height: 360px;
        padding: 14px;
        flex: 1;
    }
    
    .cl-customers-section {
        padding: 16px;
    }
    
    .cl-section-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cl-title-wrapper {
        justify-content: flex-start;
    }
    
    .cl-search-wrapper {
        width: 100%;
    }
    
    .cl-count {
        align-self: flex-start;
    }
    
    .cl-customer-row {
        grid-template-columns: 32px 1fr 32px;
        gap: 10px;
        padding: 12px 14px;
    }
    
    .cl-row-avatar {
        width: 28px;
        height: 28px;
    }
    
    .cl-row-avatar i {
        font-size: 0.9rem;
    }
    
    .cl-row-gender,
    .cl-row-last-login,
    .cl-row-joined {
        display: none;
    }
    
    .cl-row-name {
        font-size: 0.9rem;
    }
    
    .cl-message-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .cl-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .cl-modal-header {
        padding: 14px 16px;
    }
    
    .cl-modal-body {
        padding: 16px;
    }
    
    /* Customer dashboard responsive */
    .umfn-customer-welcome {
        margin-bottom: 15px;
        padding: 4px 12px;
    }
    
    .umfn-welcome-name {
        font-size: 0.85rem;
    }
    
    .umfn-welcome-greeting {
        font-size: 0.8rem;
    }
    
    .umfn-customer-goodies {
        padding: 15px;
    }
    
    .umfn-goodie-row-content {
        grid-template-columns: 1fr;
    }
    
    .umfn-goodie-row {
        padding: 12px;
    }
    
    .umfn-tips-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .umfn-tip-link {
        padding: 8px 12px;
    }
    
    .umfn-tip-link span {
        font-size: 0.75rem;
    }
    
    /* Fix for body scroll when panel is open */
    body.panel-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .umfn-mobile-header {
        padding: 10px 12px;
    }
    
    .umfn-menu-toggle {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .umfn-mobile-header h2 {
        font-size: 0.85rem;
    }
    
    .umfn-content-body {
        padding: 12px;
        min-height: 320px;
    }
    
    .umfn-mobile-panel {
        width: min(86vw, 300px);
        left: min(-86vw, -300px);
    }
    
    .umfn-panel-feature-item {
        padding: 10px 12px;
    }
    
    .umfn-panel-feature-title {
        font-size: 0.8rem;
    }
    
    .cl-customer-row {
        padding: 10px 12px;
    }
    
    .cl-row-name {
        font-size: 0.85rem;
    }
    
    .cl-message-btn {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
    
    .cl-message-modal-content {
        width: 90%;
        max-width: 320px;
    }
    
    .cl-message-modal-header i {
        font-size: 2.5rem;
    }
    
    .cl-message-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .cl-message-modal-body p {
        font-size: 0.85rem;
    }
    
    .cl-profile-loading {
        padding: 40px;
    }
    
    .cl-profile-loading i {
        font-size: 2rem;
    }
    
    .cl-profile-loading p {
        font-size: 0.9rem;
    }
    
    .umfn-goodie-row-header i {
        width: 24px;
        height: 24px;
        font-size: 0.85rem;
    }
    
    .umfn-goodie-row-header h4 {
        font-size: 0.85rem;
    }
}

/* Animations */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes umfnSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ====================================
   REMOVE DUPLICATE MENU ELEMENTS ON MOBILE
   ==================================== */

/* Hide the original sidebar search and tabs on mobile since they're in the panel */
@media (max-width: 768px) {
    /* Hide sidebar completely - already hidden */
    .umfn-sidebar {
        display: none !important;
    }
    
    /* Ensure no other duplicate menus appear */
    .umfn-feature-tabs,
    .umfn-search-container,
    .umfn-sidebar-header,
    .umfn-features-list {
        display: none !important;
    }
    
    /* Make sure the mobile header is the only visible menu */
    .umfn-mobile-header {
        display: flex !important;
        position: relative;
        z-index: 102;
    }
    
    /* Remove any potential margin/padding that might create space for hidden elements */
    .umfn-container {
        padding: 0;
        margin: 0;
    }
    
    /* Ensure content area starts right after mobile header */
    .umfn-content {
        margin-top: 0;
        padding-top: 0;
    }
    
    /* Hide any other potential duplicate menu elements */
    .umfn-mobile-panel .umfn-feature-tabs,
    .umfn-mobile-panel .umfn-search-container {
        display: flex !important; /* Keep these visible inside the panel */
    }
    
    /* Remove the original search container that appears in the sidebar area */
    .umfn-wrapper .umfn-search-container:not(.umfn-panel-search) {
        display: none !important;
    }
    
    /* Remove any stray feature tabs outside the panel */
    .umfn-wrapper .umfn-feature-tabs:not(.umfn-panel-tabs) {
        display: none !important;
    }
    
    /* Hide the original features list */
    .umfn-wrapper .umfn-features-list:not(.umfn-panel-features-list) {
        display: none !important;
    }
    
    /* Hide sidebar header */
    .umfn-sidebar-header {
        display: none !important;
    }
    
    /* Ensure no white space where sidebar used to be */
    .umfn-container {
        position: relative;
    }
    
    /* Remove any border or background artifacts */
    .umfn-container {
        border: 1px solid var(--umfn-border);
    }
}

/* Also hide on smaller tablets */
@media (max-width: 992px) and (min-width: 769px) {
    /* Keep sidebar visible on tablets, but ensure no duplicates */
    .umfn-sidebar {
        display: flex !important;
    }
    
    .umfn-mobile-header {
        display: none !important;
    }
}

/* ====================================
   REMOVE DUPLICATE MOBILE HEADERS
   ==================================== */

/* Hide any duplicate mobile headers (keep only the first one) */
.umfn-mobile-header + .umfn-mobile-header {
    display: none !important;
}

/* Ensure only one mobile header is visible */
.umfn-mobile-header:not(:first-of-type) {
    display: none !important;
}

/* Also remove any potential duplicate from the sidebar area */
.umfn-sidebar .umfn-mobile-header {
    display: none !important;
}

/* ====================================
   ADVISOR ALBUMS - MATCH FG PUBLIC ALBUMS STYLE
   ==================================== */

/* Advisor Albums Container */
.umfn-albums-container {
    padding: 0;
}

/* Stats Row */
.fg-stats-row {
    margin-bottom: 20px;
}

.fg-stat-card {
    background: linear-gradient(135deg, #ff1493, #6a0dad);
    border-radius: 12px;
    padding: 15px 25px;
    text-align: center;
    display: inline-block;
    min-width: 150px;
}

.fg-stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
}

.fg-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Control Bar */
.fg-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
    flex-wrap: wrap;
}

.fg-search-box {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.fg-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff1493;
    font-size: 0.85rem;
}

.fg-search-input {
    width: 100%;
    padding: 10px 12px 10px 35px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    font-size: 0.85rem;
    color: #1e293b;
    transition: all 0.3s ease;
}

.fg-search-input:focus {
    outline: none;
    border-color: #ff1493;
    box-shadow: 0 0 0 2px rgba(255, 20, 147, 0.1);
}

.fg-sort-select {
    padding: 10px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    font-size: 0.85rem;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fg-sort-select:focus {
    outline: none;
    border-color: #ff1493;
}

/* Album Grid - Match FG Style */
.fg-albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Album Card */
.fg-album-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
    will-change: transform;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.fg-album-card:hover {
    transform: translateY(-4px);
}

/* Album Image */
.fg-album-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #1a1a1a;
}

.fg-album-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fg-album-card:hover .fg-album-image img {
    transform: scale(1.05);
}

/* Image Overlay */
.fg-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fg-album-card:hover .fg-image-overlay {
    opacity: 1;
}

.fg-play-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 20, 147, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
}

.fg-play-icon i {
    color: white;
    font-size: 1.2rem;
    margin-left: 3px;
}

.fg-play-icon:hover {
    transform: scale(1.1);
    background: #ff1493;
}

/* Badge */
.fg-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}

.fg-badge-new {
    background: #ff1493;
    color: white;
}

/* Album Info */
.fg-album-info {
    padding: 15px;
}

.fg-album-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px;
}

.fg-album-name span {
    font-size: 0.7rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: normal;
}

/* Advisor Name */
.fg-advisor-name {
    font-size: 0.75rem;
    color: #ff1493;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.fg-advisor-name i {
    font-size: 0.7rem;
}

.fg-advisor-name a {
    color: #ff1493;
    text-decoration: none;
}

.fg-advisor-name a:hover {
    text-decoration: underline;
}

/* Categories */
.fg-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.fg-category {
    background: rgba(255, 20, 147, 0.1);
    color: #ff1493;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.fg-category:hover {
    background: rgba(255, 20, 147, 0.2);
    text-decoration: none;
    transform: translateY(-1px);
}

/* Rating */
.fg-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.fg-stars i {
    color: #fbbf24;
    font-size: 0.8rem;
}

.fg-rating-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.85rem;
}

.fg-rating-count {
    color: #64748b;
    font-size: 0.7rem;
}

/* Price */
.fg-price {
    margin-bottom: 15px;
}

.fg-price-current {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff1493;
}

/* Buttons */
.fg-btn-group {
    display: flex;
    gap: 10px;
}

.fg-btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.fg-btn-primary {
    background: linear-gradient(135deg, #ff1493, #6a0dad);
    color: white;
}

.fg-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.3);
}

.fg-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.fg-btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.fg-btn-success {
    background: #10b981;
    color: white;
    cursor: default;
    opacity: 0.8;
}

.fg-btn-danger {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.fg-btn-danger:hover {
    background: #fecaca;
    transform: translateY(-2px);
}

/* Advisor Actions */
.fg-advisor-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* No Albums */
.fg-no-albums {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 12px;
    color: #64748b;
    border: 1px dashed #cbd5e1;
}

.fg-no-albums i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
    color: #94a3b8;
}

.fg-no-albums p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .fg-albums-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .fg-control-bar {
        flex-direction: column;
    }
    
    .fg-search-box {
        max-width: 100%;
        width: 100%;
    }
    
    .fg-sort-select {
        width: 100%;
    }
    
    .fg-btn-group,
    .fg-advisor-actions {
        flex-direction: column;
    }
    
    .fg-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .fg-album-image {
        height: 180px;
    }
    
    .fg-album-info {
        padding: 12px;
    }
    
    .fg-album-name {
        font-size: 0.9rem;
    }
}

/* Add to umfn-styles.css - Customer Dashboard Tabbed Interface */

/* Tabbed Interface Styles */
.umfn-goodies-tabs {
    margin-bottom: 25px;
    border-bottom: 2px solid var(--umfn-border);
}

.umfn-tab-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.umfn-tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--umfn-gray-600);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.umfn-tab-btn i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.umfn-tab-btn:hover {
    color: var(--umfn-hotpink);
    background: rgba(255, 105, 180, 0.05);
}

.umfn-tab-btn.active {
    color: var(--umfn-hotpink);
    border-bottom-color: var(--umfn-hotpink);
}

.umfn-tab-count {
    background: var(--umfn-gray-200);
    color: var(--umfn-gray-600);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 6px;
}

.umfn-tab-btn.active .umfn-tab-count {
    background: var(--umfn-hotpink);
    color: white;
}

.umfn-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.umfn-tab-content.active {
    display: block;
}

.umfn-content-board {
    position: relative;
    border: 1px solid var(--umfn-border);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fdf2f8 100%);
    padding: 12px;
    min-height: 220px;
}

.umfn-content-board::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 20, 147, 0.08);
}

.umfn-content-board-track,
.umfn-content-board-track.umfn-albums-grid,
.umfn-content-board-track.umfn-stories-grid,
#umfn-purchased-albums-container.umfn-content-board-track,
#umfn-purchased-stories-container.umfn-content-board-track {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    align-items: stretch;
    justify-items: stretch;
    max-height: min(72vh, 760px);
    overflow: auto;
    padding: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(236, 72, 153, 0.4) rgba(241, 245, 249, 0.9);
}

.umfn-content-board-track::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.umfn-content-board-track::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(236, 72, 153, 0.65), rgba(219, 39, 119, 0.65));
    border-radius: 999px;
}

.umfn-content-board-track::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.85);
    border-radius: 999px;
}

.umfn-content-board-track > * {
    min-width: 0;
    width: 100%;
}

.umfn-content-board-track > .umfn-empty-state,
.umfn-content-board-track > .fg-no-albums,
.umfn-content-board-track > .umfn-no-items {
    grid-column: 1 / -1;
    min-width: 100%;
}

.umfn-content-board-track .umfn-goodie-card {
    min-width: 0;
    margin-bottom: 0;
    height: 100%;
}

/* Story density control: cleaner scan pattern for long lists */
#umfn-stories-container.umfn-content-board-track,
#umfn-purchased-stories-container.umfn-content-board-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.umfn-content-board.is-scrollable::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 12px;
    width: 10px;
    height: calc(100% - 24px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9));
    pointer-events: none;
    border-radius: 8px;
    opacity: 0.6;
}

.umfn-content-board-track.is-loading {
    opacity: 0.7;
}

@media (max-width: 900px) {
    .umfn-content-board {
        padding: 10px;
    }

    .umfn-content-board-track,
    .umfn-content-board-track.umfn-albums-grid,
    .umfn-content-board-track.umfn-stories-grid,
    #umfn-purchased-albums-container.umfn-content-board-track,
    #umfn-purchased-stories-container.umfn-content-board-track {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        max-height: 68vh;
        gap: 12px;
    }

    #umfn-stories-container.umfn-content-board-track,
    #umfn-purchased-stories-container.umfn-content-board-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    #umfn-stories-container.umfn-content-board-track,
    #umfn-purchased-stories-container.umfn-content-board-track {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Goodie Card Styles - Enhanced for tabular view */
.umfn-goodie-card {
    background: #2a2a2a;
    border-radius: 14px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.18);
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s, transform 0.3s;
    overflow: hidden;
    position: relative;
    padding: 0;
    min-width: 260px;
    max-width: 320px;
    width: 100%;
}

.umfn-goodie-card:hover {
    box-shadow: 0 8px 32px rgba(255, 20, 147, 0.18);
    transform: translateY(-4px) scale(1.03);
}

.umfn-goodie-card-content {
    padding: 0 0 12px 0;
    display: block;
}

.umfn-goodie-image {
    width: 100%;
    height: 160px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-radius: 0;
}

.umfn-goodie-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.umfn-goodie-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 2rem;
}

.umfn-goodie-details {
    flex: 1;
    min-width: 200px;
}

.umfn-goodie-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--umfn-gray-800);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.umfn-goodie-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.umfn-goodie-title a:hover {
    color: var(--umfn-hotpink);
}

.umfn-goodie-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.umfn-goodie-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--umfn-gray-500);
}

.umfn-goodie-meta-item i {
    color: var(--umfn-hotpink);
    font-size: 0.75rem;
}

.umfn-goodie-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.umfn-goodie-stars {
    display: flex;
    gap: 2px;
}

.umfn-goodie-stars .star-filled {
    color: #ffc107;
}

.umfn-goodie-stars .star-empty {
    color: var(--umfn-gray-300);
}

.umfn-goodie-rating-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--umfn-gray-700);
}

.umfn-goodie-rating-count {
    font-size: 0.75rem;
    color: var(--umfn-gray-500);
}

.umfn-goodie-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--umfn-hotpink);
    margin-bottom: 12px;
}

.umfn-goodie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.umfn-view-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--umfn-hotpink), #ff1493);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.umfn-view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.3);
    color: white;
    text-decoration: none;
}

.umfn-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--umfn-gray-50);
    border-radius: 16px;
    border: 1px dashed var(--umfn-border);
}

.edit-story-class{
    display: flex;
    flex-direction: column;
}

#umfn-edit-story-form,
.edit-story-class,
.edit-story-class .umfn-form-group,
.edit-story-class .umfn-upload-area,
.edit-story-class .umfn-story-image-preview-container,
.edit-story-class #current-story-image-preview {
    display: flex;
    flex-direction: column;
}

.edit-story-class {
    gap: 14px;
}

.edit-story-class .umfn-form-group {
    gap: 8px;
}

.edit-story-class #edit-story-categories-grid {
    max-height: 220px;
    overflow: auto;
    padding-right: 4px;
}

.umfn-empty-state i {
    font-size: 3rem;
    color: var(--umfn-gray-400);
    margin-bottom: 15px;
    display: block;
}

.umfn-empty-state p {
    margin: 0;
    color: var(--umfn-gray-500);
    font-size: 0.95rem;
}



.umfn-story-content-preview {
    font-size: 0.85rem;
    color: var(--umfn-gray-600);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .umfn-tab-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .umfn-goodie-card-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .umfn-goodie-image {
        width: 100%;
        max-width: 200px;
        height: auto;
        aspect-ratio: 1;
    }
    
    .umfn-goodie-meta {
        justify-content: center;
    }
    
    .umfn-goodie-rating {
        justify-content: center;
    }
    
    .umfn-goodie-actions {
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .umfn-mobile-header {
        padding: 9px 10px;
        gap: 8px;
    }

    .umfn-menu-toggle {
        padding: 6px 8px;
        gap: 6px;
    }

    .umfn-mobile-header h2 {
        font-size: 0.8rem;
    }

    .umfn-content-header {
        padding: 10px 12px;
    }

    .umfn-content-title {
        font-size: 0.82rem;
    }

    .umfn-content-body {
        padding: 10px;
    }
}
/* Blocking system compact layout overrides */
.umfn-content-body .umfn-vb-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
}

.umfn-content-body .umfn-vb-section {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
}

.umfn-content-body .umfn-vb-section-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
}

.umfn-content-body .umfn-vb-section-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    max-height: 56vh;
}

.umfn-content-body .umfn-vb-table-wrapper {
    display: flex;
    flex-direction: column;
    overflow-x: auto;
}

.umfn-vb-section {
    display: flex;
    flex-direction: column;
}

.umfn-vb-section-header {
    display: flex;
    flex-direction: column;
}

.umfn-vb-section-content {
    display: flex;
    flex-direction: column;
}

.umfn-vb-table-wrapper {
    display: flex;
    flex-direction: column;
}

.umfn-content-body .umfn-vb-blocked-table {
    width: 100%;
    min-width: 0;
}

.umfn-content-body .umfn-vb-blocked-table thead {
    display: none;
}

.umfn-content-body .umfn-vb-blocked-table tbody {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.umfn-content-body .umfn-vb-blocked-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--umfn-gray-200);
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}

.umfn-content-body .umfn-vb-blocked-row td {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 0;
    padding: 0;
}

.umfn-content-body .umfn-vb-blocked-row td:last-child {
    align-items: flex-start;
}

.umfn-content-body .umfn-vb-blocked-row .umfn-unblock-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 120px;
}

@media (min-width: 992px) {
    .umfn-content-body .umfn-vb-blocked-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .umfn-content-body .umfn-vb-blocked-row td {
        width: auto;
    }

    .umfn-content-body .umfn-vb-blocked-row td:last-child {
        align-items: flex-end;
    }
}

/* Mobile-first safeguards for the advisor overview home tabs. */
@media (max-width: 768px) {
    .umfn-wrapper {
        width: 100%;
        max-width: 100%;
        margin: 0;
        gap: 12px;
        overflow-x: hidden;
    }

    .umfn-wrapper .umfn-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        min-height: 0;
        overflow: visible;
        border-radius: 16px;
    }

    .umfn-wrapper .umfn-mobile-header {
        display: flex;
        min-height: 52px;
        padding: 10px 12px;
    }

    .umfn-wrapper .umfn-sidebar {
        display: none;
    }

    .umfn-wrapper .umfn-content {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .umfn-wrapper .umfn-content-header {
        min-height: 44px;
        height: auto;
        padding: 10px 12px;
    }

    .umfn-wrapper .umfn-content-body {
        padding: 12px;
        overflow: visible;
    }

    .umfn-overview-tabs {
        gap: 12px;
        min-height: 0;
    }

    .umfn-overview-hero {
        border-radius: 18px;
        padding: 16px;
        box-shadow: 0 10px 24px rgba(255, 105, 180, 0.1);
    }

    .umfn-overview-kicker {
        font-size: 0.65rem;
        letter-spacing: 0.06em;
    }

    .umfn-overview-hero h3 {
        font-size: 1.22rem;
        line-height: 1.2;
    }

    .umfn-overview-hero p,
    .umfn-overview-panel-heading p {
        font-size: 0.8rem;
        line-height: 1.45;
    }

    .umfn-overview-tab-bar {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .umfn-overview-tab {
        min-height: 58px;
        padding: 11px 12px;
        border-radius: 16px;
        gap: 10px;
        touch-action: manipulation;
    }

    .umfn-overview-tab i {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .umfn-overview-tab span {
        font-size: 0.88rem;
    }

    .umfn-overview-tab strong {
        min-width: 28px;
        height: 24px;
    }

    .umfn-overview-panel {
        border-radius: 18px;
        overflow: visible;
    }

    .umfn-overview-panel-heading {
        padding: 14px;
    }

    .umfn-overview-content-board {
        padding: 12px;
        overflow: visible;
    }

    .umfn-overview-grid,
    .umfn-overview-content-board .umfn-albums-grid,
    .umfn-overview-content-board .umfn-stories-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        width: 100%;
        align-items: stretch;
        justify-content: stretch;
    }

    .umfn-overview-grid .umfn-advisor-album-card,
    .umfn-overview-grid .umfn-advisor-story-card,
    .umfn-overview-content-board .umfn-advisor-album-card,
    .umfn-overview-content-board .umfn-advisor-story-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .umfn-overview-content-board .umfn-advisor-album-image {
        height: clamp(190px, 56vw, 280px);
    }

    .umfn-overview-content-board .umfn-advisor-story-image {
        height: clamp(210px, 60vw, 320px);
    }

    .umfn-recent-contacts-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }

    .umfn-recent-contact-card {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        grid-template-areas:
            "avatar main"
            "action action";
        align-items: start;
        gap: 10px 12px;
        padding: 13px;
        border-radius: 16px;
    }

    .umfn-recent-contact-avatar {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .umfn-recent-contact-message {
        grid-area: action;
        grid-column: 1 / -1;
        width: 100%;
        min-height: 42px;
        margin-top: 2px;
    }

    .umfn-overview-empty {
        min-height: 220px;
        margin: 12px;
        padding: 28px 16px;
    }
}

@media (max-width: 480px) {
    .umfn-wrapper .umfn-content-body {
        padding: 10px;
    }

    .umfn-overview-hero {
        padding: 14px;
        border-radius: 16px;
    }

    .umfn-overview-hero h3 {
        font-size: 1.08rem;
    }

    .umfn-overview-tab {
        min-height: 54px;
        padding: 10px;
    }

    .umfn-overview-tab i {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    .umfn-overview-panel-heading h4 {
        font-size: 0.95rem;
    }

    .umfn-overview-content-board {
        padding: 10px;
    }

    .umfn-overview-content-board .umfn-advisor-album-image {
        height: clamp(180px, 68vw, 260px);
    }

    .umfn-overview-content-board .umfn-advisor-story-image {
        height: clamp(190px, 72vw, 280px);
        padding: 6px;
    }

    .umfn-recent-contacts-grid {
        padding: 10px;
    }

    .umfn-recent-contact-card {
        padding: 12px;
    }

    .umfn-recent-contact-badges span {
        font-size: 0.64rem;
    }
}

@media (max-width: 768px) {
    .umfn-content-header {
        align-items: stretch;
        flex-direction: column;
    }

    .umfn-content-mini-tabs {
        width: 100%;
        max-width: none;
        margin-left: 0;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .umfn-content-mini-tabs .umfn-overview-tab {
        min-height: 48px;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        padding: 8px 5px;
        text-align: center;
    }

    .umfn-content-mini-tabs .umfn-overview-tab span {
        font-size: 0.66rem;
        line-height: 1.1;
    }

    .umfn-content-mini-tabs .umfn-overview-tab strong {
        position: absolute;
        top: 5px;
        right: 5px;
    }
}
