/* ============================================================================
   UBS customer portal — Maxi visual system
   This stylesheet is loaded after the legacy frontend bundle. Everything is
   scoped to .ubs-theme so the admin area and other selectable themes remain
   untouched.
   ========================================================================== */

:root {
    --ubs-red: #e60000;
    --ubs-red-dark: #ad0008;
    --ubs-red-soft: #fff0f0;
    --ubs-ink: #111820;
    --ubs-sidebar: #11191f;
    --ubs-sidebar-active: #273037;
    --ubs-bg: #f4f5f6;
    --ubs-panel: #ffffff;
    --ubs-panel-alt: #fafafa;
    --ubs-text: #15191d;
    --ubs-muted: #667085;
    --ubs-subtle: #98a2b3;
    --ubs-border: #e2e5e9;
    --ubs-border-strong: #d4d8dd;
    --ubs-green: #14804a;
    --ubs-green-soft: #eaf7ef;
    --ubs-amber: #a86d00;
    --ubs-amber-soft: #fff6df;
    --ubs-blue: #2f5faf;
    --ubs-blue-soft: #edf3ff;
    --ubs-purple: #6c4ea1;
    --ubs-purple-soft: #f2edfb;
    --ubs-teal: #267d7a;
    --ubs-teal-soft: #e8f7f6;
    --ubs-radius: 4px;
    --ubs-radius-lg: 6px;
    --ubs-shadow: 0 1px 2px rgba(16, 24, 40, 0.035);
    --ubs-sidebar-width: 224px;
    --ubs-header-height: 72px;
    --ubs-transition: 180ms ease;
}

/* Base and typography ------------------------------------------------------- */
body.ubs-theme {
    background: var(--ubs-bg);
    color: var(--ubs-text);
    font-family: Inter, Poppins, Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

body.ubs-theme *,
body.ubs-theme *::before,
body.ubs-theme *::after {
    box-sizing: border-box;
}

body.ubs-theme a {
    color: var(--ubs-red-dark);
    transition: color var(--ubs-transition), background-color var(--ubs-transition), border-color var(--ubs-transition);
}

body.ubs-theme a:hover {
    color: var(--ubs-red);
}

body.ubs-theme h1,
body.ubs-theme h2,
body.ubs-theme h3,
body.ubs-theme h4,
body.ubs-theme h5,
body.ubs-theme h6 {
    color: var(--ubs-text);
    font-family: inherit;
    letter-spacing: -0.02em;
}

body.ubs-theme ::selection {
    background: rgba(230, 0, 0, 0.16);
    color: var(--ubs-text);
}

body.ubs-theme :focus-visible {
    outline: 2px solid var(--ubs-red);
    outline-offset: 2px;
}

/* Keep Secure Connection provider notices from covering authenticated controls. */
body.ubs-theme iframe#urban-app-iframe,
body.ubs-theme iframe#consent-reminder-iframe,
body.ubs-theme iframe#price-check-notification-iframe,
body.ubs-theme iframe#safesearch-notification-iframe,
body.ubs-theme iframe#terminated-connection-notification-iframe {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

/* Reference icon system: consistent line weight and optical sizing. */
body.ubs-theme svg.lucide {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

body.ubs-theme .site-btn svg,
body.ubs-theme .site-btn-sm svg,
body.ubs-theme .icon-btn svg,
body.ubs-theme .card-header-link svg,
body.ubs-theme .ubs-panel-link svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.7;
}

body.ubs-theme .main-user-dahboard,
body.ubs-theme .main-user-dahboard .page-content,
body.ubs-theme .main-user-dahboard .page-content .main-content {
    min-height: 100vh;
    height: auto;
    background: var(--ubs-bg);
}

/* Customer portal shell ----------------------------------------------------- */
body.ubs-theme .main-user-dahboard .user-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1035;
    display: flex;
    flex-direction: column;
    width: var(--ubs-sidebar-width);
    height: 100vh;
    overflow: hidden;
    border: 0;
    background: var(--ubs-sidebar);
    box-shadow: none;
    transition: left var(--ubs-transition), transform var(--ubs-transition);
}

body.ubs-theme .main-user-dahboard .user-sidebar .site-logo {
    position: static;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 var(--ubs-header-height);
    width: 100%;
    height: var(--ubs-header-height);
    padding: 14px 18px;
    border: 0;
    border-bottom: 1px solid var(--ubs-border);
    background: #fff;
}

body.ubs-theme .main-user-dahboard .user-sidebar .site-logo .logo {
    display: inline-flex;
    align-items: center;
    max-width: 166px;
    color: var(--ubs-text);
}

body.ubs-theme .main-user-dahboard .user-sidebar .site-logo .logo img {
    max-width: 166px !important;
    max-height: 38px;
    object-fit: contain;
}

body.ubs-theme .ubs-sidebar-close {
    display: none;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ubs-text);
}

body.ubs-theme .ubs-sidebar-close svg {
    width: 20px;
    height: 20px;
}

body.ubs-theme .ubs-sidebar-welcome {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    gap: 2px;
    padding: 18px 20px 14px;
    color: #fff;
}

body.ubs-theme .ubs-sidebar-welcome span {
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
}

body.ubs-theme .ubs-sidebar-welcome strong {
    overflow: hidden;
    color: #fff;
    font-size: 16px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ubs-theme .ubs-sidebar-welcome small {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 10px;
    line-height: 1.35;
}

body.ubs-theme .main-user-dahboard .user-sidebar .user-nav {
    position: static;
    top: auto;
    flex: 1 1 auto;
    min-height: 0;
    padding: 4px 0 12px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

body.ubs-theme .main-user-dahboard .user-sidebar .user-nav::-webkit-scrollbar {
    width: 4px;
}

body.ubs-theme .main-user-dahboard .user-sidebar .user-nav::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.16);
}

body.ubs-theme .main-user-dahboard .user-sidebar .user-nav ul li,
body.ubs-theme .main-user-dahboard .user-sidebar .user-nav ul li:last-child {
    position: relative;
    display: block;
    margin: 0;
}

body.ubs-theme .main-user-dahboard .user-sidebar .user-nav ul li a,
body.ubs-theme .main-user-dahboard .user-sidebar .user-nav li:nth-of-type(n) a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 43px;
    padding: 9px 16px 9px 21px;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    font-weight: 520;
    line-height: 1.2;
}

body.ubs-theme .main-user-dahboard .user-sidebar .user-nav ul li a::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: transparent;
    content: '';
}

body.ubs-theme .main-user-dahboard .user-sidebar .user-nav ul li a svg {
    top: 0;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 0 13px 0 0;
    color: rgba(255, 255, 255, 0.9);
    stroke-width: 1.8;
}

body.ubs-theme .main-user-dahboard .user-sidebar .user-nav ul li a span {
    overflow: hidden;
    color: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ubs-theme .main-user-dahboard .user-sidebar .user-nav ul li a:hover,
body.ubs-theme .main-user-dahboard .user-sidebar .user-nav li:nth-of-type(n) a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

body.ubs-theme .main-user-dahboard .user-sidebar .user-nav ul li.active a,
body.ubs-theme .main-user-dahboard .user-sidebar .user-nav li:nth-of-type(n).active a {
    background: var(--ubs-sidebar-active);
    color: #fff;
    box-shadow: none;
}

body.ubs-theme .main-user-dahboard .user-sidebar .user-nav ul li.active a::before {
    background: var(--ubs-red);
}

body.ubs-theme .main-user-dahboard .user-sidebar .user-nav ul li.active a span,
body.ubs-theme .main-user-dahboard .user-sidebar .user-nav ul li.active a svg {
    color: #fff;
}

body.ubs-theme .main-user-dahboard .user-sidebar .user-nav ul li a .count-number {
    min-width: 20px;
    margin: 0 0 0 auto;
    padding: 3px 6px;
    border-radius: 10px;
    background: var(--ubs-red);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

body.ubs-theme .main-user-dahboard .user-sidebar .user-nav ul li.logout a {
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
}

body.ubs-theme .main-user-dahboard .user-sidebar .user-nav ul li.logout a:hover {
    background: rgba(230, 0, 0, 0.18);
    color: #fff;
}

body.ubs-theme .ubs-sidebar-support {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 8px;
    padding: 16px 20px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}

body.ubs-theme .ubs-sidebar-support span {
    color: rgba(255, 255, 255, 0.64);
    font-size: 11px;
}

body.ubs-theme .ubs-sidebar-support a {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 12px;
}

body.ubs-theme .ubs-sidebar-support a:hover {
    color: #fff;
}

body.ubs-theme .ubs-sidebar-support a svg {
    width: 16px;
    height: 16px;
}

body.ubs-theme .ubs-sidebar-support small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 10px;
}

body.ubs-theme .main-user-dahboard .page-content {
    min-height: 100vh;
    padding-left: var(--ubs-sidebar-width);
    transition: padding-left var(--ubs-transition);
}

body.ubs-theme .main-user-dahboard .page-content .main-content .user-part-header {
    position: fixed;
    inset: 0 0 auto var(--ubs-sidebar-width);
    z-index: 1020;
    width: auto;
    height: var(--ubs-header-height);
    padding: 0 18px;
    border: 0;
    border-bottom: 1px solid var(--ubs-border);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--ubs-shadow);
    backdrop-filter: blur(12px);
}

body.ubs-theme .main-user-dahboard .page-content .main-content .user-part-header .container-fluid,
body.ubs-theme .main-user-dahboard .page-content .main-content .user-part-header .row,
body.ubs-theme .main-user-dahboard .page-content .main-content .user-part-header .col {
    height: 100%;
}

body.ubs-theme .main-user-dahboard .page-content .main-content .user-part-header .nav-wrap {
    height: var(--ubs-header-height);
    gap: 20px;
}

body.ubs-theme .user-part-header .nav-left {
    flex: 0 0 auto;
}

body.ubs-theme .user-part-header .nav-left .single-left .site-sidebar-toggle {
    display: none;
    margin: 0 12px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ubs-text);
    cursor: pointer;
}

body.ubs-theme .user-part-header .nav-left .single-left .site-sidebar-toggle svg {
    width: 22px;
    height: 22px;
}

body.ubs-theme .user-part-header .nav-left .single-left .salutation {
    display: none;
    color: var(--ubs-text);
    font-size: 13px;
}

body.ubs-theme .ubs-global-search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 560px;
    max-width: 590px;
    min-width: 260px;
    margin: 0 auto;
}

body.ubs-theme .ubs-global-search > svg {
    position: absolute;
    left: 13px;
    z-index: 1;
    width: 17px;
    height: 17px;
    color: var(--ubs-muted);
    pointer-events: none;
}

body.ubs-theme .ubs-global-search input {
    width: 100%;
    height: 38px;
    padding: 0 14px 0 40px;
    border: 1px solid var(--ubs-border);
    border-radius: var(--ubs-radius);
    outline: 0;
    background: #f8f9fa;
    color: var(--ubs-text);
    font-size: 12px;
}

body.ubs-theme .ubs-global-search input::placeholder {
    color: var(--ubs-subtle);
}

body.ubs-theme .ubs-global-search input:focus {
    border-color: var(--ubs-border-strong);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.06);
}

body.ubs-theme .ubs-global-search-results {
    position: absolute;
    inset: calc(100% + 8px) 0 auto;
    z-index: 1200;
    display: none;
    overflow: hidden;
    padding: 5px;
    border: 1px solid var(--ubs-border);
    border-radius: var(--ubs-radius-lg);
    background: #fff;
    box-shadow: 0 14px 36px rgba(16, 24, 40, 0.14);
}

body.ubs-theme .ubs-global-search-results.show {
    display: block;
}

body.ubs-theme .ubs-global-search-results a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 3px;
    color: var(--ubs-text);
    font-size: 12px;
}

body.ubs-theme .ubs-global-search-results a:hover {
    background: var(--ubs-bg);
    color: var(--ubs-text);
}

body.ubs-theme .ubs-global-search-results a svg {
    width: 16px;
    height: 16px;
    color: var(--ubs-muted);
}

body.ubs-theme .ubs-global-search-results a svg:last-child {
    margin-left: auto;
    color: var(--ubs-red);
}

body.ubs-theme .user-part-header .nav-right {
    flex: 0 0 auto;
}

body.ubs-theme .main-user-dahboard .page-content .main-content .user-part-header .nav-wrap .nav-right .single-right {
    margin-left: 14px;
}

body.ubs-theme .user-part-header .user-header-btn a {
    min-height: 32px;
    padding: 7px 12px;
    border: 1px solid var(--ubs-border);
    border-radius: var(--ubs-radius);
    background: #fff;
    color: var(--ubs-text);
    font-size: 11px;
    font-weight: 600;
}

body.ubs-theme .user-part-header .user-header-btn a:hover {
    border-color: var(--ubs-red);
    color: var(--ubs-red);
}

body.ubs-theme .user-part-header .help-support a,
body.ubs-theme .user-part-header .site-sidebar-toggle {
    color: var(--ubs-text);
}

body.ubs-theme .user-part-header .help-support a svg {
    width: 20px !important;
    height: 20px !important;
    stroke-width: 1.7;
}

body.ubs-theme .user-part-header .user-notifications button svg,
body.ubs-theme .user-part-header .user-notifications .item svg {
    width: 20px;
    height: 20px;
    color: var(--ubs-text);
    stroke-width: 1.7;
}

body.ubs-theme .user-part-header .color-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--ubs-border);
    border-radius: 50%;
    background: #fff;
}

body.ubs-theme .user-part-header .color-switcher svg {
    width: 18px;
    height: 18px;
    color: var(--ubs-text);
    stroke-width: 1.7;
}

body.ubs-theme .user-part-header .language-switcher .langu-swit,
body.ubs-theme .user-part-header .language-switcher .langu-swit.nice-select {
    height: 34px;
    min-width: 72px;
    padding: 0 26px 0 10px;
    border: 1px solid var(--ubs-border);
    border-radius: var(--ubs-radius);
    background: #fff;
    color: var(--ubs-text);
    font-size: 10px;
    line-height: 32px;
}

body.ubs-theme .user-part-header .user-head-drop .dropdown .user-head-drop-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 2px 18px 2px 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ubs-text);
}

body.ubs-theme .user-part-header .user-head-drop .dropdown .user-head-drop-btn .user-icon {
    width: 32px;
    height: 32px;
    border: 1px solid var(--ubs-border);
    border-radius: 50%;
    object-fit: cover;
}

body.ubs-theme .ubs-header-user-meta {
    display: flex;
    flex-direction: column;
    max-width: 150px;
    text-align: left;
}

body.ubs-theme .ubs-header-user-meta strong,
body.ubs-theme .ubs-header-user-meta small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ubs-theme .ubs-header-user-meta strong {
    color: var(--ubs-text);
    font-size: 10px;
    font-weight: 620;
}

body.ubs-theme .ubs-header-user-meta small {
    color: var(--ubs-muted);
    font-size: 8px;
}

body.ubs-theme .user-part-header .user-head-drop .dropdown .dropdown-menu,
body.ubs-theme .user-part-header .notification-pop {
    overflow: hidden;
    border: 1px solid var(--ubs-border);
    border-radius: var(--ubs-radius-lg);
    box-shadow: 0 16px 42px rgba(16, 24, 40, 0.15);
}

body.ubs-theme .ubs-session-timer {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 6px 9px;
    border: 1px solid #f5c8c8;
    border-radius: 16px;
    background: var(--ubs-red-soft);
    color: var(--ubs-red-dark);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    font-weight: 650;
    white-space: nowrap;
}

body.ubs-theme .ubs-session-timer svg {
    width: 14px;
    height: 14px;
}

body.ubs-theme .main-user-dahboard .page-content .main-content .page-gap {
    position: relative;
    padding: calc(var(--ubs-header-height) + 22px) 20px 32px;
}

body.ubs-theme .main-user-dahboard .page-content .main-content .page-gap > .container-fluid {
    max-width: 1540px;
    padding-right: 0;
    padding-left: 0;
}

body.ubs-theme .ubs-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 18px;
}

body.ubs-theme .ubs-page-heading h1 {
    margin: 0;
    color: var(--ubs-text);
    font-size: clamp(23px, 2vw, 30px);
    font-weight: 680;
    line-height: 1.2;
}

body.ubs-theme .ubs-page-heading p {
    margin: 5px 0 0;
    color: var(--ubs-muted);
    font-size: 12px;
}

body.ubs-theme .ubs-page-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.ubs-theme .ubs-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1030;
    display: none;
    border: 0;
    background: rgba(10, 17, 22, 0.56);
    backdrop-filter: blur(2px);
}

/* Shared panels, tables, forms and controls -------------------------------- */
body.ubs-theme .site-card,
body.ubs-theme .main-user-dahboard .page-gap .single-spec-stat,
body.ubs-theme .main-user-dahboard .page-gap .single-user-stat-card,
body.ubs-theme .main-user-dahboard .page-gap .user-referral-card,
body.ubs-theme .main-user-dahboard .page-gap .referral-card,
body.ubs-theme .main-user-dahboard .page-gap .plan-card-box,
body.ubs-theme .main-user-dahboard .page-gap .single-badge,
body.ubs-theme .main-user-dahboard .page-gap .support-ticket-single-message,
body.ubs-theme .main-user-dahboard .page-gap .notification-list .single-list {
    border: 1px solid var(--ubs-border);
    border-radius: var(--ubs-radius);
    background: var(--ubs-panel);
    box-shadow: var(--ubs-shadow);
}

body.ubs-theme .site-card {
    margin-bottom: 18px;
}

body.ubs-theme .site-card .site-card-header {
    min-height: 50px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--ubs-border);
    background: #fff;
}

body.ubs-theme .site-card .site-card-header .title,
body.ubs-theme .site-card .site-card-header .title-small {
    margin: 0;
    color: var(--ubs-text);
    font-size: 14px;
    font-weight: 650;
    letter-spacing: -0.01em;
}

body.ubs-theme .site-card .site-card-header .card-header-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.ubs-theme .site-card .site-card-header .card-header-links .card-header-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    margin: 0;
    padding: 4px 7px;
    border: 0;
    border-radius: 2px;
    background: transparent;
    color: var(--ubs-red-dark);
    font-size: 10px;
    font-weight: 600;
}

body.ubs-theme .site-card .site-card-header .card-header-links .card-header-link:hover {
    background: var(--ubs-red-soft);
    color: var(--ubs-red);
}

body.ubs-theme .site-card .site-card-header .card-header-links .card-header-link svg {
    width: 13px;
    height: 13px;
    margin: 0;
}

body.ubs-theme .site-card .site-card-body {
    padding: 16px;
}

body.ubs-theme .site-custom-table {
    color: var(--ubs-text);
}

body.ubs-theme .main-user-dahboard .page-content .main-content .page-gap .site-custom-table .contents {
    color: var(--ubs-text);
    font-size: 11px;
}

body.ubs-theme .main-user-dahboard .page-content .main-content .page-gap .site-custom-table .contents .site-table-list .site-table-col {
    padding: 12px 12px;
    border-bottom: 1px solid var(--ubs-border);
    color: var(--ubs-text);
    font-size: 11px;
    vertical-align: middle;
}

body.ubs-theme .main-user-dahboard .page-content .main-content .page-gap .site-custom-table .contents .site-table-head {
    background: #f7f8f9;
}

body.ubs-theme .main-user-dahboard .page-content .main-content .page-gap .site-custom-table .contents .site-table-head .site-table-col {
    color: var(--ubs-muted);
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

body.ubs-theme .main-user-dahboard .page-content .main-content .page-gap .site-custom-table .contents .site-table-list:not(.site-table-head):hover {
    background: #fcfcfd;
}

body.ubs-theme .main-user-dahboard .page-content .main-content .page-gap .site-custom-table .contents .site-table-list .site-table-col .description .event-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ubs-blue-soft);
    color: var(--ubs-blue);
}

body.ubs-theme .main-user-dahboard .page-content .main-content .page-gap .site-custom-table .contents .site-table-list .site-table-col .description .event-icon svg {
    width: 16px;
    height: 16px;
}

body.ubs-theme .main-user-dahboard .page-content .main-content .page-gap .site-custom-table .contents .site-table-list .site-table-col .description .content .title {
    color: var(--ubs-text);
    font-size: 11px;
    font-weight: 600;
}

body.ubs-theme .main-user-dahboard .page-content .main-content .page-gap .site-custom-table .contents .site-table-list .site-table-col .description .content .date {
    color: var(--ubs-muted);
    font-size: 9px;
}

body.ubs-theme .site-custom-table .no-data-found {
    padding: 36px 18px !important;
    color: var(--ubs-muted) !important;
    font-size: 12px !important;
    text-align: center;
}

body.ubs-theme .site-badge,
body.ubs-theme .single-badge {
    border-radius: 10px;
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 0.01em;
    text-transform: capitalize;
}

body.ubs-theme .site-badge.badge-primary {
    background: var(--ubs-blue-soft);
    color: var(--ubs-blue);
}

body.ubs-theme .site-badge.badge-success {
    background: var(--ubs-green-soft);
    color: var(--ubs-green);
}

body.ubs-theme .site-badge.badge-pending {
    background: var(--ubs-amber-soft);
    color: var(--ubs-amber);
}

body.ubs-theme .site-badge.badge-failed {
    background: var(--ubs-red-soft);
    color: var(--ubs-red-dark);
}

body.ubs-theme .green-color {
    color: var(--ubs-green) !important;
}

body.ubs-theme .red-color {
    color: var(--ubs-red-dark) !important;
}

body.ubs-theme .form-control,
body.ubs-theme .box-input,
body.ubs-theme .box-textarea,
body.ubs-theme .nice-select,
body.ubs-theme select,
body.ubs-theme input[type='text'],
body.ubs-theme input[type='email'],
body.ubs-theme input[type='password'],
body.ubs-theme input[type='number'],
body.ubs-theme input[type='date'],
body.ubs-theme input[type='search'],
body.ubs-theme textarea,
body.ubs-theme .select2-container--default .select2-selection--single {
    border-color: var(--ubs-border-strong) !important;
    border-radius: var(--ubs-radius) !important;
    background-color: #fff;
    color: var(--ubs-text);
    box-shadow: none;
}

body.ubs-theme .form-control,
body.ubs-theme .box-input,
body.ubs-theme .nice-select,
body.ubs-theme select,
body.ubs-theme input[type='text'],
body.ubs-theme input[type='email'],
body.ubs-theme input[type='password'],
body.ubs-theme input[type='number'],
body.ubs-theme input[type='date'] {
    min-height: 42px;
    font-size: 12px;
}

body.ubs-theme .form-control:focus,
body.ubs-theme .box-input:focus,
body.ubs-theme .box-textarea:focus,
body.ubs-theme .nice-select:focus,
body.ubs-theme select:focus,
body.ubs-theme input:focus,
body.ubs-theme textarea:focus {
    border-color: var(--ubs-red) !important;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.08) !important;
}

body.ubs-theme label,
body.ubs-theme .form-label,
body.ubs-theme .input-label {
    color: var(--ubs-text);
    font-size: 11px;
    font-weight: 600;
}

body.ubs-theme .input-info-text,
body.ubs-theme .min-max {
    color: var(--ubs-muted);
    font-size: 10px;
}

body.ubs-theme input[type='checkbox'],
body.ubs-theme input[type='radio'] {
    accent-color: var(--ubs-red);
}

body.ubs-theme .gradient-btn,
body.ubs-theme .primary-btn,
body.ubs-theme .site-btn,
body.ubs-theme .site-btn-sm,
body.ubs-theme .apply-btn,
body.ubs-theme .grad-btn,
body.ubs-theme .ubs-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 9px 15px;
    border: 1px solid var(--ubs-ink);
    border-radius: var(--ubs-radius);
    background: var(--ubs-ink);
    color: #fff;
    font-size: 11px;
    font-weight: 620;
    box-shadow: none;
}

body.ubs-theme .gradient-btn:hover,
body.ubs-theme .primary-btn:hover,
body.ubs-theme .site-btn:hover,
body.ubs-theme .site-btn-sm:hover,
body.ubs-theme .apply-btn:hover,
body.ubs-theme .grad-btn:hover,
body.ubs-theme .ubs-primary-action:hover {
    border-color: #000;
    background: #000;
    color: #fff;
}

body.ubs-theme .site-btn-sm {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 10px;
}

body.ubs-theme .red-btn {
    border: 1px solid #f0b9b9;
    border-radius: var(--ubs-radius);
    background: #fff;
    color: var(--ubs-red-dark);
}

body.ubs-theme .red-btn:hover {
    border-color: var(--ubs-red);
    background: var(--ubs-red);
    color: #fff;
}

body.ubs-theme .blue-btn,
body.ubs-theme .polis-btn {
    border: 1px solid var(--ubs-ink);
    border-radius: var(--ubs-radius);
    background: var(--ubs-ink);
    color: #fff;
}

body.ubs-theme .blue-btn:hover,
body.ubs-theme .polis-btn:hover {
    background: #000;
    color: #fff;
}

body.ubs-theme .main-user-dahboard .page-gap .table-filter {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid var(--ubs-border);
    border-radius: var(--ubs-radius);
    background: #fff;
}

body.ubs-theme .main-user-dahboard .page-gap .table-filter .filter {
    gap: 10px;
}

body.ubs-theme .main-user-dahboard .page-gap .table-filter .filter .single-f-box {
    width: min(220px, 100%);
    margin: 0;
}

body.ubs-theme .identity-alert {
    margin-bottom: 16px !important;
    padding: 13px 15px !important;
    border: 1px solid #f0d79b !important;
    border-radius: var(--ubs-radius) !important;
    background: var(--ubs-amber-soft);
}

body.ubs-theme .identity-alert .icon {
    min-width: 38px !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
}

body.ubs-theme .modal-content,
body.ubs-theme .site-table-modal .modal-content {
    overflow: hidden;
    border: 1px solid var(--ubs-border);
    border-radius: var(--ubs-radius-lg);
    box-shadow: 0 24px 70px rgba(16, 24, 40, 0.22);
}

body.ubs-theme .modal-btn-close {
    border-radius: 50%;
    background: var(--ubs-bg);
    color: var(--ubs-text);
}

body.ubs-theme .site-pagination .page-item .page-link {
    border-color: var(--ubs-border);
    background: #fff;
    color: var(--ubs-text);
}

body.ubs-theme .site-pagination .page-item.active .page-link,
body.ubs-theme .site-pagination .page-item .page-link:hover {
    border-color: var(--ubs-ink);
    background: var(--ubs-ink);
    color: #fff;
}

/* Existing product cards ---------------------------------------------------- */
body.ubs-theme .main-user-dahboard .page-gap .user-profile-card {
    overflow: hidden;
    min-height: 220px;
    border: 1px solid #202a31;
    border-radius: var(--ubs-radius);
    background: var(--ubs-sidebar);
    color: #fff;
    box-shadow: none;
}

body.ubs-theme .user-profile-card .title,
body.ubs-theme .user-profile-card .acc-balance,
body.ubs-theme .user-profile-card .acc-num,
body.ubs-theme .user-profile-card .acc-num strong {
    color: #fff !important;
}

body.ubs-theme .user-profile-card .acc-num {
    background: rgba(255, 255, 255, 0.1) !important;
}

body.ubs-theme .user-profile-card .last-login {
    color: rgba(255, 255, 255, 0.6);
}

body.ubs-theme .user-profile-card .buttons a {
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    border-radius: var(--ubs-radius) !important;
    background: transparent !important;
    color: #fff !important;
}

body.ubs-theme .user-profile-card .buttons a.add {
    border-color: #fff !important;
    background: #fff !important;
    color: var(--ubs-ink) !important;
}

body.ubs-theme .main-user-dahboard .page-gap .single-spec-stat,
body.ubs-theme .main-user-dahboard .page-gap .single-user-stat-card {
    margin-bottom: 18px;
    border-left: 1px solid var(--ubs-border);
    box-shadow: none;
}

body.ubs-theme .single-spec-stat .top .icon,
body.ubs-theme .single-user-stat-card .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ubs-blue-soft);
    color: var(--ubs-blue);
    box-shadow: none;
}

body.ubs-theme .single-spec-stat .top .icon {
    width: 38px;
    height: 38px;
}

body.ubs-theme .single-spec-stat .bottom .ex-link {
    background: transparent;
    color: var(--ubs-red-dark);
}

body.ubs-theme .single-user-stat-card::after {
    display: none;
}

body.ubs-theme .single-user-stat-card .number {
    color: var(--ubs-text);
    font-size: 19px;
}

body.ubs-theme .single-user-stat-card .title {
    color: var(--ubs-muted);
    font-size: 10px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

body.ubs-theme .plan-card-box,
body.ubs-theme .single-plan,
body.ubs-theme .referral-card,
body.ubs-theme .user-referral-card {
    box-shadow: none !important;
}

body.ubs-theme .section-title,
body.ubs-theme .body-title {
    color: var(--ubs-text);
}

/* New dashboard system ------------------------------------------------------ */
body.ubs-theme .ubs-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 16px;
}

body.ubs-theme .ubs-dashboard-main,
body.ubs-theme .ubs-dashboard-aside {
    min-width: 0;
}

body.ubs-theme .ubs-dashboard-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

body.ubs-theme .ubs-dashboard-heading h1 {
    margin: 0;
    font-size: clamp(24px, 2.1vw, 31px);
    font-weight: 680;
}

body.ubs-theme .ubs-dashboard-heading p {
    margin: 4px 0 0;
    color: var(--ubs-muted);
    font-size: 12px;
}

body.ubs-theme .ubs-dashboard-last-login {
    color: var(--ubs-muted);
    font-size: 10px;
    white-space: nowrap;
}

body.ubs-theme .ubs-panel {
    margin-bottom: 16px;
    border: 1px solid var(--ubs-border);
    border-radius: var(--ubs-radius);
    background: #fff;
    box-shadow: var(--ubs-shadow);
}

body.ubs-theme .ubs-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--ubs-border);
}

body.ubs-theme .ubs-panel-header h2,
body.ubs-theme .ubs-panel-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 650;
}

body.ubs-theme .ubs-panel-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ubs-red-dark);
    font-size: 10px;
    font-weight: 600;
}

body.ubs-theme .ubs-panel-link svg {
    width: 13px;
    height: 13px;
}

body.ubs-theme .ubs-panel-body {
    padding: 14px;
}

body.ubs-theme .ubs-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.ubs-theme .ubs-summary-item {
    min-width: 0;
    padding: 18px 20px;
    border-right: 1px solid var(--ubs-border);
}

body.ubs-theme .ubs-summary-item:last-child {
    border-right: 0;
}

body.ubs-theme .ubs-summary-item > span {
    display: block;
    margin-bottom: 7px;
    color: var(--ubs-muted);
    font-size: 11px;
}

body.ubs-theme .ubs-summary-value {
    display: block;
    overflow: hidden;
    margin-bottom: 5px;
    color: var(--ubs-text);
    font-size: clamp(18px, 1.6vw, 25px);
    font-weight: 620;
    letter-spacing: -0.03em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ubs-theme .ubs-summary-meta {
    color: var(--ubs-muted);
    font-size: 9.5px;
}

body.ubs-theme .ubs-summary-meta.positive {
    color: var(--ubs-green);
}

body.ubs-theme .ubs-account-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

body.ubs-theme .ubs-account-card {
    position: relative;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--ubs-border);
    border-radius: var(--ubs-radius);
    background: #fff;
}

body.ubs-theme .ubs-account-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

body.ubs-theme .ubs-account-icon,
body.ubs-theme .ubs-quick-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f1f2;
    color: var(--ubs-text);
}

body.ubs-theme .ubs-account-card:nth-child(3n + 2) .ubs-account-icon {
    background: #f0f1f2;
    color: var(--ubs-text);
}

body.ubs-theme .ubs-account-card:nth-child(3n + 3) .ubs-account-icon {
    background: #f0f1f2;
    color: var(--ubs-text);
}

body.ubs-theme .ubs-account-icon svg,
body.ubs-theme .ubs-quick-action-icon svg {
    width: 17px;
    height: 17px;
    stroke-width: 1.7;
}

body.ubs-theme .ubs-account-card h3 {
    overflow: hidden;
    margin: 0 0 2px;
    font-size: 12px;
    font-weight: 620;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ubs-theme .ubs-account-card small {
    display: block;
    overflow: hidden;
    color: var(--ubs-muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ubs-theme .ubs-account-amount {
    color: var(--ubs-text);
    font-size: 16px;
    font-weight: 620;
}

body.ubs-theme .ubs-account-label {
    margin-top: 3px;
    color: var(--ubs-muted);
    font-size: 9px;
}

body.ubs-theme .ubs-chart-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.4fr);
    gap: 12px;
}

body.ubs-theme .ubs-chart-card {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--ubs-border);
    border-radius: var(--ubs-radius);
    background: #fff;
}

body.ubs-theme .ubs-chart-card h3 {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 620;
}

body.ubs-theme .ubs-chart-card p {
    margin: 0;
    color: var(--ubs-muted);
    font-size: 10px;
}

body.ubs-theme .ubs-chart {
    min-height: 260px;
}

body.ubs-theme .ubs-chart-empty {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    color: var(--ubs-muted);
    font-size: 11px;
    text-align: center;
}

body.ubs-theme .ubs-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.ubs-theme .ubs-quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 12px;
    border-right: 1px solid var(--ubs-border);
    border-bottom: 1px solid var(--ubs-border);
    color: var(--ubs-text);
}

body.ubs-theme .ubs-quick-action:nth-child(2n) {
    border-right: 0;
}

body.ubs-theme .ubs-quick-action:nth-last-child(-n + 2) {
    border-bottom: 0;
}

body.ubs-theme .ubs-quick-action:hover {
    background: #fafafa;
    color: var(--ubs-text);
}

body.ubs-theme .ubs-quick-action:nth-child(2) .ubs-quick-action-icon {
    background: transparent;
    color: var(--ubs-text);
}

body.ubs-theme .ubs-quick-action:nth-child(3) .ubs-quick-action-icon {
    background: transparent;
    color: var(--ubs-text);
}

body.ubs-theme .ubs-quick-action:nth-child(4) .ubs-quick-action-icon {
    background: transparent;
    color: var(--ubs-text);
}

body.ubs-theme .ubs-quick-action .ubs-quick-action-icon {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
    border-radius: 0;
    background: transparent;
    color: var(--ubs-text);
}

body.ubs-theme .ubs-quick-action .ubs-quick-action-icon svg {
    width: 23px;
    height: 23px;
    stroke-width: 1.65;
}

body.ubs-theme .ubs-quick-action strong {
    display: block;
    margin-bottom: 2px;
    color: inherit;
    font-size: 11px;
    font-weight: 620;
}

body.ubs-theme .ubs-quick-action span {
    display: block;
    color: var(--ubs-muted);
    font-size: 9px;
}

body.ubs-theme .ubs-transaction-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.ubs-theme .ubs-transaction-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    min-height: 58px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--ubs-border);
}

body.ubs-theme .ubs-transaction-item:last-child {
    border-bottom: 0;
}

body.ubs-theme .ubs-transaction-activity {
    padding: 14px;
    border-top: 1px solid var(--ubs-border);
}

body.ubs-theme .ubs-transaction-activity-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

body.ubs-theme .ubs-transaction-activity-heading h3 {
    margin: 0;
    color: var(--ubs-text);
    font-size: 12px;
    font-weight: 650;
}

body.ubs-theme .ubs-transaction-activity-heading span {
    color: var(--ubs-muted);
    font-size: 9px;
    line-height: 1.35;
    text-align: right;
}

body.ubs-theme .ubs-transaction-category-chart {
    min-height: 170px;
}

body.ubs-theme .ubs-transaction-date {
    color: var(--ubs-muted);
    font-size: 9px;
    line-height: 1.35;
}

body.ubs-theme .ubs-transaction-description {
    overflow: hidden;
    color: var(--ubs-text);
    font-size: 11px;
    font-weight: 590;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ubs-theme .ubs-transaction-type {
    display: block;
    margin-top: 2px;
    color: var(--ubs-muted);
    font-size: 9px;
    font-weight: 400;
}

body.ubs-theme .ubs-transaction-amount {
    color: var(--ubs-red-dark);
    font-size: 10px;
    font-weight: 650;
    text-align: right;
    white-space: nowrap;
}

body.ubs-theme .ubs-transaction-amount.positive {
    color: var(--ubs-green);
}

body.ubs-theme .ubs-empty-state {
    padding: 30px 16px;
    color: var(--ubs-muted);
    font-size: 11px;
    text-align: center;
}

body.ubs-theme .ubs-product-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

body.ubs-theme .ubs-product-card {
    padding: 13px;
    border: 1px solid var(--ubs-border);
    border-radius: var(--ubs-radius);
    background: #fff;
}

body.ubs-theme .ubs-product-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

body.ubs-theme .ubs-product-card h3 {
    margin: 0;
    font-size: 10px;
    font-weight: 620;
}

body.ubs-theme .ubs-product-card .value {
    color: var(--ubs-text);
    font-size: 15px;
    font-weight: 620;
}

body.ubs-theme .ubs-product-card .meta {
    margin-top: 3px;
    color: var(--ubs-muted);
    font-size: 8px;
}

body.ubs-theme .ubs-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ubs-green);
}

/* Authentication ----------------------------------------------------------- */
body.ubs-theme .ubs-login {
    min-height: 100vh;
    background: var(--ubs-bg);
}

body.ubs-theme .ubs-login-top {
    min-height: 72px;
    padding: 16px 34px;
    border-bottom: 1px solid var(--ubs-border);
    background: #fff;
}

body.ubs-theme .ubs-login-top .logo img {
    max-width: 190px;
    max-height: 38px;
}

body.ubs-theme .ubs-login-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: calc(100vh - 136px);
    padding: 42px 8%;
    overflow: hidden;
}

body.ubs-theme .ubs-login-card {
    position: relative;
    z-index: 2;
    width: min(100%, 590px);
    padding: 34px 38px;
    border: 1px solid var(--ubs-border);
    border-radius: var(--ubs-radius-lg);
    background: #fff;
    box-shadow: 0 18px 48px rgba(16, 24, 40, 0.08);
}

body.ubs-theme .ubs-login-card h3 {
    margin-bottom: 22px;
    color: var(--ubs-text);
    font-size: 25px;
    font-weight: 620;
}

body.ubs-theme .ubs-login-watermark {
    position: absolute;
    top: 50%;
    right: 5%;
    width: min(43vw, 630px);
    height: 630px;
    transform: translateY(-50%);
    display: block;
    object-fit: contain;
    object-position: center;
    opacity: 0.8;
    mix-blend-mode: multiply;
    pointer-events: none;
}

body.ubs-theme .ubs-field {
    margin-bottom: 16px;
}

body.ubs-theme .ubs-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--ubs-muted);
    font-size: 10px;
    font-weight: 550;
}

body.ubs-theme .ubs-field .required {
    color: var(--ubs-red);
}

body.ubs-theme .ubs-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.ubs-theme .ubs-signin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 43px;
    padding: 10px 24px;
    border: 1px solid var(--ubs-ink);
    border-radius: var(--ubs-radius);
    background: var(--ubs-ink);
    color: #fff;
    font-size: 12px;
    font-weight: 620;
}

body.ubs-theme .ubs-signin-btn:hover {
    background: #000;
    color: #fff;
}

body.ubs-theme .ubs-signin-btn.full {
    width: 100%;
}

body.ubs-theme .ubs-signin-tabs {
    display: flex;
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--ubs-border);
    border-radius: var(--ubs-radius);
}

body.ubs-theme .ubs-signin-tabs .tab {
    flex: 1;
    padding: 11px 14px;
    color: var(--ubs-muted);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

body.ubs-theme .ubs-signin-tabs .tab.active {
    background: var(--ubs-ink);
    color: #fff;
}

body.ubs-theme .ubs-login-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    min-height: 64px;
    padding: 15px 34px;
    border-top: 1px solid var(--ubs-border);
    color: var(--ubs-muted);
    font-size: 10px;
}

body.ubs-theme .ubs-login-footer .foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

body.ubs-theme .ubs-login .input-otp {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.ubs-theme .ubs-login .input-otp .inputotp {
    width: 52px;
    height: 52px;
    border: 1px solid var(--ubs-border-strong);
    border-radius: var(--ubs-radius);
    color: var(--ubs-text);
    font-size: 20px;
    font-weight: 650;
    text-align: center;
}

body.ubs-theme .ubs-login .ubs-finish {
    text-align: center;
}

body.ubs-theme .ubs-login .ubs-finish .success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--ubs-green-soft);
    color: var(--ubs-green);
}

/* Public site --------------------------------------------------------------- */
body.ubs-theme.body-landing-bg {
    background: #fff;
}

body.ubs-theme .header-area {
    border-bottom: 1px solid transparent;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: none;
    backdrop-filter: blur(12px);
}

body.ubs-theme .header-area.header-sticky {
    border-bottom-color: var(--ubs-border);
    box-shadow: var(--ubs-shadow);
}

body.ubs-theme .header-main {
    min-height: 76px;
}

body.ubs-theme .header-logo img {
    max-width: 190px;
    max-height: 42px;
}

body.ubs-theme .main-menu ul li a {
    color: var(--ubs-text);
    font-size: 12px;
    font-weight: 560;
}

body.ubs-theme .main-menu ul li.active > a,
body.ubs-theme .main-menu ul li:hover > a {
    color: var(--ubs-red);
}

body.ubs-theme .main-menu ul li.active > a::after {
    background: var(--ubs-red);
}

body.ubs-theme .td-primary-btn {
    border-color: var(--ubs-border-strong);
    border-radius: var(--ubs-radius);
    background: #fff;
    color: var(--ubs-text);
}

body.ubs-theme.body-landing-bg section,
body.ubs-theme.body-landing-bg [class*='section-space'] {
    position: relative;
}

body.ubs-theme.body-landing-bg .section-title {
    color: var(--ubs-text);
    font-weight: 650;
    letter-spacing: -0.035em;
}

body.ubs-theme.body-landing-bg .section-subtitle {
    color: var(--ubs-red-dark);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.ubs-theme .footer-area {
    background: var(--ubs-sidebar) !important;
    color: rgba(255, 255, 255, 0.72);
}

body.ubs-theme .footer-area h1,
body.ubs-theme .footer-area h2,
body.ubs-theme .footer-area h3,
body.ubs-theme .footer-area h4,
body.ubs-theme .footer-area h5,
body.ubs-theme .footer-area h6,
body.ubs-theme .footer-area a {
    color: #fff;
}

body.ubs-theme .footer-area a:hover {
    color: #ff8b8b;
}

body.ubs-theme .footer-newsletter-input input {
    border-color: rgba(255, 255, 255, 0.26) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
}

body.ubs-theme .footer-round-btn {
    border-radius: var(--ubs-radius);
    background: var(--ubs-red);
    color: #fff;
}

/* Session modal ------------------------------------------------------------- */
.ubs-session-modal {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 17, 22, 0.58);
    backdrop-filter: blur(3px);
}

.ubs-session-modal.show {
    display: flex;
}

.ubs-session-modal-box {
    width: 100%;
    max-width: 440px;
    padding: 30px 27px;
    border: 1px solid var(--ubs-border);
    border-radius: var(--ubs-radius-lg);
    background: #fff;
    box-shadow: 0 26px 70px rgba(10, 17, 22, 0.3);
    text-align: center;
}

.ubs-session-modal-box h3 {
    margin: 0 0 8px;
    color: var(--ubs-text);
    font-size: 22px;
    line-height: 1.25;
}

.ubs-session-modal-box > p {
    margin: 0;
    color: var(--ubs-muted);
    font-size: 13px;
    line-height: 1.55;
}

.ubs-session-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 17px;
    border-radius: 50%;
    background: var(--ubs-red-soft);
    color: var(--ubs-red);
}

.ubs-session-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    padding: 12px 14px;
    border: 1px solid var(--ubs-border);
    border-radius: var(--ubs-radius);
    background: var(--ubs-panel-alt);
    color: var(--ubs-muted);
    font-size: 12px;
    line-height: 1.35;
}

.ubs-session-countdown strong {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ubs-red);
    color: #fff;
    font-size: 20px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.ubs-session-modal-actions {
    display: flex;
    gap: 10px;
}

.ubs-session-modal-actions button {
    flex: 1;
    min-height: 40px;
    border: 1px solid var(--ubs-border-strong);
    border-radius: var(--ubs-radius);
    background: #fff;
    color: var(--ubs-text);
    font-size: 11px;
    font-weight: 620;
}

.ubs-session-modal-actions button:disabled {
    cursor: wait;
    opacity: 0.58;
}

.ubs-session-modal-actions .ubs-btn-stay {
    border-color: var(--ubs-ink);
    background: var(--ubs-ink);
    color: #fff;
}

body.ubs-session-warning-open {
    overflow: hidden;
}

/* Dark mode ---------------------------------------------------------------- */
body.ubs-theme.dark-theme {
    --ubs-bg: #0d1318;
    --ubs-panel: #151d23;
    --ubs-panel-alt: #192229;
    --ubs-text: #f2f4f5;
    --ubs-muted: #a6afb7;
    --ubs-subtle: #77838d;
    --ubs-border: #2a353d;
    --ubs-border-strong: #3a4650;
    background: var(--ubs-bg);
    color: var(--ubs-text);
}

body.ubs-theme.dark-theme .main-user-dahboard .page-content .main-content .user-part-header,
body.ubs-theme.dark-theme .site-card,
body.ubs-theme.dark-theme .site-card .site-card-header,
body.ubs-theme.dark-theme .site-card .site-card-body,
body.ubs-theme.dark-theme .ubs-panel,
body.ubs-theme.dark-theme .ubs-chart-card,
body.ubs-theme.dark-theme .ubs-account-card,
body.ubs-theme.dark-theme .ubs-product-card,
body.ubs-theme.dark-theme .ubs-global-search-results,
body.ubs-theme.dark-theme .main-user-dahboard .page-gap .table-filter {
    border-color: var(--ubs-border);
    background: var(--ubs-panel);
    color: var(--ubs-text);
}

body.ubs-theme.dark-theme .ubs-global-search input,
body.ubs-theme.dark-theme .form-control,
body.ubs-theme.dark-theme .box-input,
body.ubs-theme.dark-theme .box-textarea,
body.ubs-theme.dark-theme .nice-select,
body.ubs-theme.dark-theme select,
body.ubs-theme.dark-theme input,
body.ubs-theme.dark-theme textarea {
    border-color: var(--ubs-border-strong) !important;
    background-color: var(--ubs-panel-alt) !important;
    color: var(--ubs-text) !important;
}

body.ubs-theme.dark-theme .site-custom-table .site-table-head,
body.ubs-theme.dark-theme .site-custom-table .site-table-list:not(.site-table-head):hover,
body.ubs-theme.dark-theme .ubs-quick-action:hover {
    background: var(--ubs-panel-alt) !important;
}

body.ubs-theme.dark-theme .user-part-header .color-switcher,
body.ubs-theme.dark-theme .user-part-header .user-head-drop .dropdown .user-head-drop-btn,
body.ubs-theme.dark-theme .user-part-header .language-switcher .langu-swit {
    border-color: var(--ubs-border);
    background: var(--ubs-panel);
    color: var(--ubs-text);
}

body.ubs-theme.dark-theme .ubs-login,
body.ubs-theme.dark-theme .ubs-login-main {
    background: var(--ubs-bg);
}

body.ubs-theme.dark-theme .ubs-login-top,
body.ubs-theme.dark-theme .ubs-login-card,
body.ubs-theme.dark-theme .ubs-session-modal-box {
    border-color: var(--ubs-border);
    background: var(--ubs-panel);
    color: var(--ubs-text);
}

/* RTL ----------------------------------------------------------------------- */
body.ubs-theme.rtl_mode .main-user-dahboard .user-sidebar {
    inset: 0 0 0 auto;
}

body.ubs-theme.rtl_mode .main-user-dahboard .page-content {
    padding-right: var(--ubs-sidebar-width);
    padding-left: 0;
}

body.ubs-theme.rtl_mode .main-user-dahboard .page-content .main-content .user-part-header {
    inset: 0 var(--ubs-sidebar-width) auto 0;
}

body.ubs-theme.rtl_mode .main-user-dahboard .user-sidebar .user-nav ul li a::before {
    right: 0;
    left: auto;
}

body.ubs-theme.rtl_mode .main-user-dahboard .user-sidebar .user-nav ul li a svg {
    margin-right: 0;
    margin-left: 12px;
}

body.ubs-theme.rtl_mode .ubs-global-search > svg {
    right: 13px;
    left: auto;
}

body.ubs-theme.rtl_mode .ubs-global-search input {
    padding-right: 40px;
    padding-left: 14px;
}

body.ubs-theme.rtl_mode .ubs-global-search-results a svg:last-child {
    margin-right: auto;
    margin-left: 0;
}

body.ubs-theme.rtl_mode .ubs-summary-item {
    border-right: 0;
    border-left: 1px solid var(--ubs-border);
}

body.ubs-theme.rtl_mode .ubs-summary-item:last-child {
    border-left: 0;
}

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 1399px) {
    body.ubs-theme .ubs-header-user-meta {
        display: none;
    }

    body.ubs-theme .ubs-dashboard {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    body.ubs-theme .ubs-global-search {
        max-width: 470px;
    }

    body.ubs-theme .ubs-chart-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.ubs-theme .main-user-dahboard .page-content .main-content .user-part-header .nav-wrap .nav-right .single-right {
        margin-left: 10px;
    }

    body.ubs-theme .user-part-header .user-header-btn {
        display: none;
    }
}

@media (max-width: 1199px) {
    body.ubs-theme .main-user-dahboard .user-sidebar {
        left: calc(-1 * var(--ubs-sidebar-width) - 10px);
        width: var(--ubs-sidebar-width);
        box-shadow: 8px 0 28px rgba(10, 17, 22, 0.18);
    }

    body.ubs-theme .main-user-dahboard .user-sidebar.nav-unfolded {
        left: 0;
        z-index: 1035;
    }

    body.ubs-theme .ubs-sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body.ubs-theme.ubs-sidebar-open {
        overflow: hidden;
    }

    body.ubs-theme.ubs-sidebar-open .ubs-sidebar-backdrop {
        display: block;
    }

    body.ubs-theme .main-user-dahboard .page-content,
    body.ubs-theme.rtl_mode .main-user-dahboard .page-content {
        padding-right: 0;
        padding-left: 0;
    }

    body.ubs-theme .main-user-dahboard .page-content .main-content .user-part-header,
    body.ubs-theme.rtl_mode .main-user-dahboard .page-content .main-content .user-part-header {
        inset: 0 0 auto;
    }

    body.ubs-theme .user-part-header .nav-left .single-left .site-sidebar-toggle {
        display: inline-flex;
    }

    body.ubs-theme .user-part-header .nav-left .single-left .site-logo-inmobile {
        display: inline-block;
    }

    body.ubs-theme .ubs-dashboard {
        grid-template-columns: minmax(0, 1fr);
    }

    body.ubs-theme .ubs-dashboard-aside {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    body.ubs-theme .ubs-dashboard-aside .ubs-panel {
        margin-bottom: 0;
    }

    body.ubs-theme.rtl_mode .main-user-dahboard .user-sidebar {
        right: calc(-1 * var(--ubs-sidebar-width) - 10px);
        left: auto;
    }

    body.ubs-theme.rtl_mode .main-user-dahboard .user-sidebar.nav-unfolded {
        right: 0;
        left: auto;
    }
}

@media (max-width: 991px) {
    body.ubs-theme .ubs-global-search {
        display: none;
    }

    body.ubs-theme .user-part-header .nav-right {
        margin-left: auto;
    }

    body.ubs-theme .ubs-summary-grid,
    body.ubs-theme .ubs-account-grid,
    body.ubs-theme .ubs-product-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.ubs-theme .ubs-summary-item:nth-child(2) {
        border-right: 0;
    }

    body.ubs-theme .ubs-summary-item:last-child {
        grid-column: 1 / -1;
        border-top: 1px solid var(--ubs-border);
    }

    body.ubs-theme .ubs-chart-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.ubs-theme .ubs-login-main {
        justify-content: center;
        padding: 32px 20px;
    }

    body.ubs-theme .ubs-login-watermark {
        display: none;
    }
}

@media (max-width: 767px) {
    :root {
        --ubs-header-height: 64px;
    }

    body.ubs-theme .main-user-dahboard .page-content .main-content .user-part-header {
        padding: 0 10px;
    }

    body.ubs-theme .main-user-dahboard .page-content .main-content .page-gap {
        padding: calc(var(--ubs-header-height) + 16px) 12px 86px;
    }

    body.ubs-theme .user-part-header .nav-left .single-left .site-logo-inmobile {
        display: none;
    }

    body.ubs-theme .user-part-header .nav-left .single-left .site-logo-inmobile-icon {
        display: inline-block;
    }

    body.ubs-theme .user-part-header .nav-right .language-switcher,
    body.ubs-theme .user-part-header .nav-right .help-support,
    body.ubs-theme .user-part-header .nav-right .color-switcher {
        display: none;
    }

    body.ubs-theme .ubs-session-timer span {
        display: none;
    }

    body.ubs-theme .ubs-session-timer {
        padding: 7px;
    }

    body.ubs-theme .ubs-page-heading,
    body.ubs-theme .ubs-dashboard-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    body.ubs-theme .ubs-dashboard-last-login {
        white-space: normal;
    }

    body.ubs-theme .ubs-summary-grid,
    body.ubs-theme .ubs-account-grid,
    body.ubs-theme .ubs-product-list,
    body.ubs-theme .ubs-dashboard-aside {
        grid-template-columns: minmax(0, 1fr);
    }

    body.ubs-theme .ubs-summary-item,
    body.ubs-theme .ubs-summary-item:nth-child(2),
    body.ubs-theme .ubs-summary-item:last-child {
        grid-column: auto;
        border-top: 0;
        border-right: 0;
        border-bottom: 1px solid var(--ubs-border);
    }

    body.ubs-theme .ubs-summary-item:last-child {
        border-bottom: 0;
    }

    body.ubs-theme .ubs-panel,
    body.ubs-theme .site-card {
        margin-bottom: 13px;
    }

    body.ubs-theme .ubs-chart {
        min-height: 220px;
    }

    body.ubs-theme .ubs-transaction-item {
        grid-template-columns: 58px minmax(0, 1fr) auto;
        padding-right: 10px;
        padding-left: 10px;
    }

    body.ubs-theme .main-user-dahboard .page-content .main-content .page-gap .site-custom-table {
        min-width: 900px;
    }

    body.ubs-theme .ubs-bottom-nav {
        position: fixed;
        inset: auto 0 0;
        z-index: 1025;
        display: flex;
        height: 66px;
        border-top: 1px solid var(--ubs-border);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 -4px 18px rgba(16, 24, 40, 0.08);
        backdrop-filter: blur(12px);
    }

    body.ubs-theme .ubs-bottom-nav a,
    body.ubs-theme .ubs-bottom-nav button {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
        flex-direction: column;
        gap: 3px;
        border: 0;
        background: transparent;
        color: var(--ubs-muted);
        font-size: 9px;
        font-weight: 600;
    }

    body.ubs-theme .ubs-bottom-nav a svg,
    body.ubs-theme .ubs-bottom-nav button svg {
        width: 19px;
        height: 19px;
    }

    body.ubs-theme .ubs-bottom-nav a.active {
        color: var(--ubs-red);
    }

    body.ubs-theme.dark-theme .ubs-bottom-nav {
        border-color: var(--ubs-border);
        background: rgba(21, 29, 35, 0.98);
    }

    body.ubs-theme .ubs-login-top,
    body.ubs-theme .ubs-login-footer {
        padding-right: 18px;
        padding-left: 18px;
    }

    body.ubs-theme .ubs-login-card {
        padding: 27px 21px;
    }

    body.ubs-theme .ubs-login-footer {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    body.ubs-theme .user-part-header .nav-left .single-left .site-logo-inmobile-icon img {
        width: 28px;
        height: 28px;
        object-fit: contain;
    }

    body.ubs-theme .main-user-dahboard .page-content .main-content .user-part-header .nav-wrap .nav-right .single-right {
        margin-left: 8px;
    }

    body.ubs-theme .ubs-quick-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    body.ubs-theme .ubs-quick-action,
    body.ubs-theme .ubs-quick-action:nth-child(2n),
    body.ubs-theme .ubs-quick-action:nth-last-child(-n + 2) {
        min-height: 66px;
        border-right: 0;
        border-bottom: 1px solid var(--ubs-border);
    }

    body.ubs-theme .ubs-quick-action:last-child {
        border-bottom: 0;
    }

    body.ubs-theme .ubs-panel-header,
    body.ubs-theme .ubs-panel-body,
    body.ubs-theme .site-card .site-card-header,
    body.ubs-theme .site-card .site-card-body {
        padding-right: 12px;
        padding-left: 12px;
    }

    body.ubs-theme .ubs-transaction-item {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    body.ubs-theme .ubs-transaction-date {
        display: none;
    }

    .ubs-session-modal-actions {
        flex-direction: column;
    }
}

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

/* Original UBS authentication presentation --------------------------------
   Authentication is intentionally isolated from the Maxi dashboard refresh.
   These values restore the pre-redesign UBS login/register experience. */
body.ubs-theme .ubs-login,
body.ubs-theme.dark-theme .ubs-login {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f4f5f7;
    color: #0a1a38;
}

body.ubs-theme .ubs-login-top,
body.ubs-theme.dark-theme .ubs-login-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: auto;
    padding: 18px 40px;
    border-bottom: 1px solid #e7e9ee;
    background: #fff;
}

body.ubs-theme .ubs-login-top .logo img {
    width: auto;
    height: 34px;
    max-width: none;
    max-height: none;
}

body.ubs-theme .ubs-login-top .langu-swit {
    padding: 4px 8px;
    border: 1px solid #e7e9ee;
    border-radius: 6px;
}

body.ubs-theme .ubs-login-main,
body.ubs-theme.dark-theme .ubs-login-main {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 0;
    padding: 40px 20px 40px 10%;
    overflow: hidden;
    background: #f4f5f7;
}

body.ubs-theme .ubs-login-watermark {
    position: absolute;
    top: 50%;
    right: 5%;
    width: 640px;
    max-width: 46vw;
    height: 640px;
    transform: translateY(-50%);
    display: block;
    object-fit: contain;
    object-position: center;
    opacity: 0.85;
    mix-blend-mode: multiply;
    pointer-events: none;
    user-select: none;
}

body.ubs-theme .ubs-login-card,
body.ubs-theme.dark-theme .ubs-login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    padding: 38px 40px;
    border: 1px solid #eceef2;
    border-radius: 10px;
    background: #fff;
    color: #0a1a38;
    box-shadow: 0 10px 30px rgba(10, 26, 56, 0.06);
}

body.ubs-theme .ubs-login-card h3,
body.ubs-theme.dark-theme .ubs-login-card h3 {
    margin-bottom: 26px;
    color: #0a1a38;
    font-size: 26px;
    font-weight: 400;
}

body.ubs-theme .ubs-signin-tabs {
    display: flex;
    max-width: 100%;
    margin-bottom: 28px;
    overflow: hidden;
    border: 1px solid #e7e9ee;
    border-radius: 8px;
}

body.ubs-theme .ubs-signin-tabs .tab {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 8px;
    padding: 13px 16px;
    color: #0a1a38;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

body.ubs-theme .ubs-signin-tabs .tab.active {
    background: #1d1d1f;
    color: #fff;
}

body.ubs-theme .ubs-signin-tabs .tab svg {
    width: 16px;
    height: 16px;
}

body.ubs-theme .ubs-field {
    margin-bottom: 18px;
}

body.ubs-theme .ubs-field label {
    display: block;
    margin-bottom: 6px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 400;
}

body.ubs-theme .ubs-field .required {
    margin-left: 2px;
    color: #e4002b;
}

body.ubs-theme .ubs-login .ubs-field .box-input,
body.ubs-theme .ubs-login .ubs-field .box-textarea,
body.ubs-theme .ubs-login .ubs-field select,
body.ubs-theme .ubs-login .ubs-field .form-control,
body.ubs-theme.dark-theme .ubs-login .ubs-field .box-input,
body.ubs-theme.dark-theme .ubs-login .ubs-field .box-textarea,
body.ubs-theme.dark-theme .ubs-login .ubs-field select,
body.ubs-theme.dark-theme .ubs-login .ubs-field .form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid #d7dbe3 !important;
    border-radius: 6px;
    background: #fff !important;
    color: #0a1a38 !important;
    font-size: 15px;
}

body.ubs-theme .ubs-login .ubs-field .box-input:focus,
body.ubs-theme .ubs-login .ubs-field .box-textarea:focus,
body.ubs-theme .ubs-login .ubs-field select:focus,
body.ubs-theme .ubs-login .ubs-field .form-control:focus {
    border-color: #e4002b !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(228, 0, 43, 0.1);
}

body.ubs-theme .ubs-field .passo {
    position: relative;
}

body.ubs-theme .ubs-field .passo .passo-hide-show {
    position: absolute;
    top: 50%;
    right: 14px;
    height: 20px;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.6;
}

body.ubs-theme .ubs-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 22px;
    color: #0a1a38;
    font-size: 14px;
}

body.ubs-theme .ubs-remember input {
    width: 16px;
    height: 16px;
    accent-color: #e4002b;
}

body.ubs-theme .ubs-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

body.ubs-theme .ubs-actions .forgot {
    margin: 0;
    color: #0a1a38;
    font-size: 14px;
}

body.ubs-theme .ubs-actions .forgot a,
body.ubs-theme .ubs-brokercheck a,
body.ubs-theme .ubs-login-footer .foot-links a {
    color: #227c9d;
    text-decoration: none;
}

body.ubs-theme .ubs-signin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 0;
    padding: 14px 34px;
    border: 0;
    border-radius: 6px;
    background: #0a1a38;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

body.ubs-theme .ubs-signin-btn:hover {
    background: #0d2149;
    color: #fff;
}

body.ubs-theme .ubs-signin-btn.full {
    justify-content: center;
    width: 100%;
}

body.ubs-theme .ubs-register {
    margin-top: 22px;
    text-align: right;
}

body.ubs-theme .ubs-register a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0a1a38;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

body.ubs-theme .ubs-register a svg,
body.ubs-theme .ubs-register a:hover {
    color: #e4002b;
}

body.ubs-theme .ubs-brokercheck {
    width: 100%;
    max-width: 640px;
    margin-top: 18px;
    color: #6b7280;
    font-size: 14px;
    text-align: left;
}

body.ubs-theme .ubs-login-footer,
body.ubs-theme.dark-theme .ubs-login-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    min-height: auto;
    padding: 16px 40px;
    border-top: 1px solid #e7e9ee;
    background: transparent;
    color: #6b7280;
    font-size: 12px;
}

body.ubs-theme .ubs-login-footer .foot-links {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px 14px;
}

body.ubs-theme .ubs-login .input-otp .inputotp,
body.ubs-theme.dark-theme .ubs-login .input-otp .inputotp {
    width: 56px;
    height: 56px;
    border: 1px solid #d7dbe3 !important;
    border-radius: 8px;
    background: #fff !important;
    color: #0a1a38 !important;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

body.ubs-theme .ubs-login .success-message p {
    color: #0f9e5c;
}

body.ubs-theme .ubs-login .info-text,
body.ubs-theme .ubs-login .go-back a,
body.ubs-theme .ubs-login .otp-timer {
    color: #6b7280;
}

body.ubs-theme .ubs-login .ubs-finish .success-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 22px;
    background: rgba(18, 183, 106, 0.12);
    color: #12b76a;
}

@media (max-width: 991px) {
    body.ubs-theme .ubs-login-main,
    body.ubs-theme.dark-theme .ubs-login-main {
        align-items: center;
        padding-right: 20px;
        padding-left: 20px;
    }

    body.ubs-theme .ubs-login-watermark {
        display: none;
    }
}

@media (max-width: 640px) {
    body.ubs-theme .ubs-login-top,
    body.ubs-theme .ubs-login-footer {
        padding-right: 20px;
        padding-left: 20px;
    }

    body.ubs-theme .ubs-login-card {
        padding: 26px 22px;
    }

    body.ubs-theme .ubs-login-footer {
        flex-direction: column;
    }

    body.ubs-theme .ubs-login-footer .foot-links {
        justify-content: flex-start;
    }

    body.ubs-theme .ubs-actions {
        justify-content: stretch;
    }

    body.ubs-theme .ubs-signin-btn {
        justify-content: center;
        width: 100%;
    }
}

/* Keep dashboard Quick Actions aligned with the Maxi reference icon treatment. */
body.ubs-theme .ubs-dashboard .ubs-quick-actions .ubs-quick-action .ubs-quick-action-icon,
body.ubs-theme .ubs-dashboard .ubs-quick-actions .ubs-quick-action:nth-child(n) .ubs-quick-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    min-width: 30px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    background-color: transparent !important;
    color: var(--ubs-text) !important;
    box-shadow: none !important;
}

body.ubs-theme .ubs-dashboard .ubs-quick-actions .ubs-quick-action .ubs-quick-action-icon svg {
    width: 23px;
    height: 23px;
    color: inherit;
    stroke-width: 1.65;
}

/* Resilient interactive layers --------------------------------------------- */
body.ubs-theme .dropdown-menu.show,
body.ubs-theme .notification-pop.show,
body.ubs-theme .user-head-drop .dropdown-menu.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 5200 !important;
}

body.ubs-theme .modal.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 5100 !important;
}

body.ubs-theme .modal-backdrop.show,
body.ubs-theme .ubs-native-modal-backdrop {
    display: block !important;
    visibility: visible !important;
    opacity: 0.5 !important;
    z-index: 5090 !important;
}

/* Server-rendered transaction dialogs can be opened and closed with their
   anchor target even when Bootstrap's optional modal script is filtered. */
body.ubs-theme .modal:target {
    display: block;
    visibility: visible;
    overflow: auto;
    opacity: 1;
    background: rgba(10, 17, 22, 0.58);
}

body.ubs-theme .modal:target .modal-dialog {
    transform: none;
}

body.ubs-theme .ubs-native-notification {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 5400;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Native chart fallback used only when the local ApexCharts asset is absent. */
body.ubs-theme .ubs-inline-icon {
    display: inline-block;
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 auto;
    vertical-align: -0.18em;
}

/* A final visible glyph for legacy pages that still use data-lucide when the
   optional icon runtime is filtered. Critical UBS navigation uses inline SVG. */
body.ubs-theme i[data-lucide]:empty {
    display: inline-grid;
    width: 1.05em;
    height: 1.05em;
    place-items: center;
    border: 1.7px solid currentColor;
    border-radius: 50%;
    vertical-align: -0.14em;
}

body.ubs-theme i[data-lucide]:empty::before {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    content: '';
}

body.ubs-theme .ubs-native-visual {
    width: 100%;
    min-height: 220px;
    color: var(--ubs-text);
}

body.ubs-theme .ubs-native-allocation {
    display: grid;
    grid-template-columns: minmax(145px, 0.8fr) minmax(150px, 1.2fr);
    align-items: center;
    gap: 18px;
    min-height: 250px;
}

body.ubs-theme .ubs-native-donut {
    position: relative;
    width: 168px;
    height: 168px;
    margin: auto;
    border-radius: 50%;
}

body.ubs-theme .ubs-native-donut::after {
    position: absolute;
    inset: 28px;
    border-radius: 50%;
    background: var(--ubs-panel);
    content: '';
}

body.ubs-theme .ubs-native-donut-label {
    position: absolute;
    inset: 42px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--ubs-muted);
    font-size: 10px;
    text-align: center;
}

body.ubs-theme .ubs-native-donut-label strong {
    margin-top: 3px;
    color: var(--ubs-text);
    font-size: 13px;
}

body.ubs-theme .ubs-native-legend {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.ubs-theme .ubs-native-legend li {
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    color: var(--ubs-muted);
    font-size: 10px;
}

body.ubs-theme .ubs-native-legend i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

body.ubs-theme .ubs-native-legend strong {
    color: var(--ubs-text);
    font-weight: 650;
}

body.ubs-theme .ubs-native-cashflow svg {
    display: block;
    width: 100%;
    min-height: 220px;
    overflow: visible;
}

body.ubs-theme .ubs-ssr-grid-line {
    stroke: var(--ubs-border);
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

body.ubs-theme .ubs-ssr-axis-label {
    fill: var(--ubs-muted);
    font-size: 9px;
}

body.ubs-theme .ubs-ssr-series {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.ubs-theme .ubs-ssr-series.inflow { stroke: #14804a; }
body.ubs-theme .ubs-ssr-series.outflow { stroke: #e60000; }

body.ubs-theme .ubs-ssr-point {
    stroke: var(--ubs-panel);
    stroke-width: 1.5;
}

body.ubs-theme .ubs-ssr-point.inflow { fill: #14804a; }
body.ubs-theme .ubs-ssr-point.outflow { fill: #e60000; }

body.ubs-theme .ubs-ssr-value {
    font-size: 8px;
    font-weight: 650;
}

body.ubs-theme .ubs-ssr-value.inflow { fill: #14804a; }
body.ubs-theme .ubs-ssr-value.outflow { fill: #e60000; }

body.ubs-theme .ubs-native-key {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 6px;
    color: var(--ubs-muted);
    font-size: 10px;
}

body.ubs-theme .ubs-native-key span::before {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--key-color);
    content: '';
}

body.ubs-theme .ubs-native-bars {
    display: grid;
    gap: 12px;
    padding: 14px 0 4px;
}

body.ubs-theme .ubs-native-bars > .ubs-ssr-chart {
    display: grid;
    gap: 12px;
}

/* Navigation and menus remain reachable even before JavaScript hydration. */
body.ubs-theme .user-head-drop .dropdown:focus-within > .dropdown-menu,
body.ubs-theme .single-right:focus-within > .dropdown-menu {
    display: block;
}

@media (max-width: 1199px) {
    body.ubs-theme .main-user-dahboard .user-sidebar:target {
        left: 0;
        z-index: 1035;
    }

    body.ubs-theme:has(.main-user-dahboard .user-sidebar:target) {
        overflow: hidden;
    }

    body.ubs-theme:has(.main-user-dahboard .user-sidebar:target) .ubs-sidebar-backdrop {
        display: block;
    }

    body.ubs-theme.rtl_mode .main-user-dahboard .user-sidebar:target {
        right: 0;
        left: auto;
    }
}

body.ubs-theme .ubs-native-bar-row {
    display: grid;
    grid-template-columns: minmax(86px, 0.8fr) minmax(120px, 1.6fr) auto;
    align-items: center;
    gap: 9px;
    font-size: 10px;
}

body.ubs-theme .ubs-native-bar-track {
    height: 22px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--ubs-panel-alt);
}

body.ubs-theme .ubs-native-bar-fill {
    display: block;
    height: 100%;
    min-width: 2px;
    border-radius: inherit;
    background: var(--ubs-red);
}

body.ubs-theme .ubs-native-bar-value {
    color: var(--ubs-text);
    font-weight: 650;
    white-space: nowrap;
}

@media (max-width: 560px) {
    body.ubs-theme .ubs-native-allocation {
        grid-template-columns: 1fr;
    }

    body.ubs-theme .ubs-native-bar-row {
        grid-template-columns: minmax(76px, 0.8fr) minmax(90px, 1.3fr);
    }

    body.ubs-theme .ubs-native-bar-value {
        grid-column: 2;
    }
}

/* Signup-bonus popup remains usable even if the legacy popup stylesheet or
   JavaScript is filtered by a browser extension. */
body.ubs-theme .auto-popup-section {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(10, 26, 56, 0.56);
}

body.ubs-theme .auto-popup-section.close,
body.ubs-theme .auto-popup-section[hidden] {
    display: none !important;
}

body.ubs-theme .auto-popup-dialog {
    position: relative;
    width: min(100%, 520px);
}

body.ubs-theme .auto-popup-dialog-inner {
    min-height: 280px;
    display: flex;
    align-items: center;
    padding: 42px;
    overflow: hidden;
    border-radius: 10px;
    color: #fff;
    box-shadow: 0 24px 70px rgba(10, 26, 56, 0.28);
}

body.ubs-theme .auto-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.34);
}

body.ubs-theme .auto-pop-content h2,
body.ubs-theme .auto-pop-content h3 {
    color: #fff;
}

body.ubs-theme .auto-pop-content h3 span {
    display: block;
    margin-top: 8px;
    color: #fff;
}

@media (max-width: 560px) {
    body.ubs-theme .auto-popup-dialog-inner {
        min-height: 240px;
        padding: 32px 24px;
    }
}
