/*
 * Digit 9.0.8 - YCW Portal UI
 * Complete visual layer for the WHMCS client area.
 * The underlying WHMCS/Digit functionality is intentionally left intact.
 */

:root {
    --main-gradient-color: #ff5900;
    --secondary-gradient-color: #ff7a33;
    --ycw-primary: #ff5900;
    --ycw-primary-dark: #dc4d00;
    --ycw-primary-soft: #fff1e9;
    --ycw-primary-softer: #fff8f4;
    --ycw-ink: #0d1b2f;
    --ycw-ink-2: #24344d;
    --ycw-muted: #6f7b8f;
    --ycw-muted-2: #9aa4b2;
    --ycw-line: #e6e9ef;
    --ycw-line-2: #eef0f4;
    --ycw-bg: #f5f6f8;
    --ycw-card: #ffffff;
    --ycw-success: #1fa764;
    --ycw-success-soft: #eaf8f1;
    --ycw-warning: #e88b19;
    --ycw-warning-soft: #fff4e6;
    --ycw-danger: #dc3e4d;
    --ycw-danger-soft: #fff0f1;
    --ycw-info: #3973e6;
    --ycw-info-soft: #edf3ff;
    --ycw-radius: 14px;
    --ycw-radius-sm: 10px;
    --ycw-shadow: 0 7px 22px rgba(14, 27, 47, .075);
    --ycw-shadow-hover: 0 12px 30px rgba(14, 27, 47, .12);
    --ycw-sidebar: 270px;
    --ycw-context: 255px;
}

html,
body {
    min-height: 100%;
    background: var(--ycw-bg) !important;
}

body.body,
body.ycw-portal {
    margin: 0;
    color: var(--ycw-ink-2) !important;
    background: var(--ycw-bg) !important;
    font-family: "Poppins", "Open Sans", Arial, sans-serif !important;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.ycw-portal * {
    box-sizing: border-box;
}

body.ycw-portal h1,
body.ycw-portal h2,
body.ycw-portal h3,
body.ycw-portal h4,
body.ycw-portal h5,
body.ycw-portal h6 {
    color: var(--ycw-ink) !important;
    font-family: "Poppins", "Open Sans", Arial, sans-serif !important;
    font-weight: 700;
    letter-spacing: -.02em;
}

body.ycw-portal p,
body.ycw-portal label,
body.ycw-portal input,
body.ycw-portal select,
body.ycw-portal textarea,
body.ycw-portal button,
body.ycw-portal a,
body.ycw-portal table {
    font-family: "Poppins", "Open Sans", Arial, sans-serif !important;
}

body.ycw-portal a {
    color: var(--ycw-primary);
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.ycw-portal a:hover,
body.ycw-portal a:focus {
    color: var(--ycw-primary-dark);
    text-decoration: none;
}

::selection {
    color: #fff;
    background: var(--ycw-primary);
}

/* App shell */
.wdes-wrapper {
    display: flex !important;
    min-height: 100vh;
    background: var(--ycw-bg) !important;
    align-items: stretch;
}

.wdes-sidebar {
    position: sticky;
    top: 0;
    z-index: 1030;
    order: 1 !important;
    flex: 0 0 var(--ycw-sidebar) !important;
    width: var(--ycw-sidebar) !important;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 !important;
    background: #fff !important;
    border-right: 1px solid var(--ycw-line) !important;
    box-shadow: none !important;
}

.wdes-sidebar::-webkit-scrollbar {
    width: 6px;
}

.wdes-sidebar::-webkit-scrollbar-thumb {
    background: #d9dde4;
    border-radius: 8px;
}

.wdes-content {
    order: 3 !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0;
    background: var(--ycw-bg) !important;
}

.whm-sidebar {
    position: relative;
    z-index: 5;
    order: 2 !important;
    flex: 0 0 var(--ycw-context) !important;
    width: var(--ycw-context) !important;
    padding: 96px 14px 28px !important;
    background: var(--ycw-bg) !important;
    border: 0 !important;
}

.container {
    width: 100% !important;
    max-width: 1520px;
}

/* Sidebar brand */
#main-menu,
.wdes-nav-side.navbar,
.wdes-nav-side.navbar-default,
.wdes-nav-side.navbar-main {
    min-height: 100%;
    margin: 0 !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.ycw-brand {
    display: flex;
    align-items: center;
    min-height: 82px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--ycw-line-2);
}

.ycw-brand .logo-mob,
.ycw-brand .logo-text {
    display: inline-flex !important;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--ycw-ink) !important;
    font-size: 18px !important;
    font-weight: 700;
    text-decoration: none;
}

.ycw-brand .logo-mob img {
    display: block;
    width: auto;
    max-width: 164px;
    max-height: 40px;
}

.wdes-sidebar .navbar-header {
    display: none;
}

.wdes-sidebar .navbar-collapse {
    display: block !important;
    height: auto !important;
    margin: 0 !important;
    padding: 18px 16px 24px !important;
    border: 0 !important;
    box-shadow: none !important;
}

.ycw-welcome-card {
    position: relative;
    margin: 0 0 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--ycw-line);
    border-radius: var(--ycw-radius);
    box-shadow: 0 3px 12px rgba(14, 27, 47, .045);
}

.ycw-welcome-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wdes-profile-pic,
.ycw-profile-fallback {
    flex: 0 0 44px;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    object-fit: cover;
    background: var(--ycw-primary-soft) !important;
    box-shadow: none !important;
}

.ycw-profile-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ycw-primary);
    font-size: 18px;
}

.ycw-welcome-copy {
    min-width: 0;
}

.ycw-welcome-eyebrow {
    display: block;
    margin-bottom: 1px;
    color: var(--ycw-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.ycw-welcome-name {
    display: block;
    overflow: hidden;
    color: var(--ycw-ink);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.wdes-sidebar .wdes-user-area-nav .panel {
    margin: 12px 0 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.wdes-sidebar .wdes-user-area-nav .panel > a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px !important;
    color: var(--ycw-ink-2) !important;
    background: #f8f9fb !important;
    border: 1px solid var(--ycw-line-2);
    border-radius: 9px;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-align: left !important;
}

.wdes-sidebar .wdes-user-area-nav .wdes-collapse-bg ul {
    margin: 6px 0 0 !important;
    padding: 4px !important;
    background: #f8f9fb !important;
    border-radius: 9px;
}

.wdes-sidebar .wdes-user-area-nav .wdes-collapse-bg ul li a {
    padding: 8px 10px !important;
    color: var(--ycw-muted) !important;
    border-radius: 7px;
    font-size: 12px !important;
}

.wdes-sidebar .wdes-user-area-nav .wdes-collapse-bg ul li a:hover {
    color: var(--ycw-primary) !important;
    background: #fff !important;
}

.ycw-sidebar-label {
    margin: 22px 10px 8px;
    color: var(--ycw-muted-2);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .11em;
}

.shortcuts {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.shortcuts li {
    display: block !important;
    min-width: 0;
    margin: 0 !important;
    background: #f8f9fb !important;
    border: 1px solid var(--ycw-line-2);
    border-radius: 10px !important;
}

.shortcuts li:hover {
    background: var(--ycw-primary-soft) !important;
    border-color: #ffd7c3;
}

.shortcuts li a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0 !important;
    min-height: 42px;
    padding: 8px !important;
    color: var(--ycw-ink-2) !important;
    font-size: 15px;
}

.shortcuts li:hover a {
    color: var(--ycw-primary) !important;
}

.wdes-notification-alert {
    top: 3px !important;
    right: 3px !important;
    min-width: 8px;
    height: 8px;
    padding: 0 !important;
    overflow: hidden;
    color: transparent !important;
    background: var(--ycw-danger) !important;
    border: 2px solid #fff;
    border-radius: 50% !important;
    transform: none !important;
}

#main-menu .wdes-custom-nav {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

#main-menu .wdes-custom-nav > .panel {
    width: 100%;
    margin: 3px 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

#main-menu .wdes-custom-nav > .panel > a {
    position: relative;
    display: flex !important;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px !important;
    color: #3b485c !important;
    background: transparent !important;
    border-radius: 10px;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35;
}

#main-menu .wdes-custom-nav > .panel > a > i:first-child {
    width: 22px;
    margin-right: 8px;
    color: #798497;
    font-size: 15px;
    text-align: center;
}

#main-menu .wdes-custom-nav > .panel > a .fa-angle-down {
    margin: 0 0 0 auto !important;
    color: #a4acb8;
}

#main-menu .wdes-custom-nav > .panel > a:hover,
#main-menu .wdes-custom-nav > .panel > a[aria-expanded="true"],
#main-menu .wdes-custom-nav > .panel.active > a {
    color: var(--ycw-primary) !important;
    background: var(--ycw-primary-soft) !important;
}

#main-menu .wdes-custom-nav > .panel > a:hover > i:first-child,
#main-menu .wdes-custom-nav > .panel > a[aria-expanded="true"] > i:first-child {
    color: var(--ycw-primary) !important;
}

#main-menu .wdes-custom-nav .badge {
    margin-left: auto;
    padding: 3px 6px;
    color: #fff;
    background: var(--ycw-primary) !important;
    border-radius: 6px;
    font-size: 10px;
}

.wdes-collapse-bg {
    margin: 4px 0 6px !important;
}

.wdes-collapse-bg ul {
    margin: 0 !important;
    padding: 5px 5px 5px 33px !important;
    list-style: none;
    background: transparent !important;
}

.wdes-collapse-bg ul li {
    margin: 1px 0;
}

.wdes-collapse-bg ul li a {
    display: block !important;
    padding: 8px 10px !important;
    color: var(--ycw-muted) !important;
    border-radius: 8px;
    font-size: 12px !important;
    font-weight: 500;
}

.wdes-collapse-bg ul li a:hover {
    color: var(--ycw-primary) !important;
    background: #f8f9fb !important;
}

.ycw-help-card {
    margin-top: 24px;
    padding: 14px;
    background: #f8f9fb;
    border: 1px solid var(--ycw-line-2);
    border-radius: 12px;
}

.ycw-help-card strong {
    display: block;
    margin-bottom: 3px;
    color: var(--ycw-ink);
    font-size: 12px;
}

.ycw-help-card p {
    margin: 0 0 10px;
    color: var(--ycw-muted);
    font-size: 11px;
    line-height: 1.5;
}

.ycw-help-card .btn {
    width: 100%;
}

/* Context sidebar */
.whm-sidebar .panel-sidebar {
    margin: 0 0 14px !important;
    padding: 0 !important;
    overflow: hidden;
    background: #fff !important;
    border: 1px solid var(--ycw-line) !important;
    border-radius: var(--ycw-radius) !important;
    box-shadow: 0 3px 14px rgba(14, 27, 47, .045) !important;
}

.whm-sidebar .panel-sidebar > .panel-heading {
    padding: 14px 16px !important;
    background: #fff !important;
    border-bottom: 1px solid var(--ycw-line-2) !important;
}

.whm-sidebar .panel-sidebar > .panel-heading .panel-title {
    display: flex;
    align-items: center;
    color: var(--ycw-ink) !important;
    font-size: 12px !important;
    font-weight: 700;
}

.whm-sidebar .panel-sidebar > .panel-heading .panel-title .wdes-sidebar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-right: 8px;
    padding: 0 !important;
    color: var(--ycw-primary) !important;
    background: var(--ycw-primary-soft) !important;
    border-radius: 8px !important;
}

.whm-sidebar .panel-body {
    padding: 13px 16px !important;
    color: var(--ycw-muted) !important;
    background: #fff !important;
    font-size: 12px !important;
    line-height: 1.7 !important;
}

.whm-sidebar .list-group {
    margin: 0 !important;
    padding: 7px !important;
}

.whm-sidebar .list-group .list-group-item {
    margin: 2px 0 !important;
    padding: 9px 10px !important;
    color: var(--ycw-muted) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 8px !important;
    font-size: 11px !important;
}

.whm-sidebar .list-group .list-group-item:hover,
.whm-sidebar .panel-sidebar a.list-group-item.active,
.whm-sidebar .panel-sidebar a.list-group-item.active:focus,
.whm-sidebar .panel-sidebar a.list-group-item.active:hover {
    color: var(--ycw-primary) !important;
    background: var(--ycw-primary-soft) !important;
}

.whm-sidebar .panel-sidebar > .panel-footer {
    padding: 10px 14px 14px !important;
    background: #fff !important;
    border-top: 1px solid var(--ycw-line-2) !important;
}

/* Top bar */
section#header {
    position: sticky;
    top: 0;
    z-index: 1020;
    min-height: 72px;
    padding: 0 !important;
    background: rgba(255, 255, 255, .97) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ycw-line) !important;
    border-radius: 0 !important;
    backdrop-filter: blur(12px);
}

section#header > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
    padding: 0 32px;
}

.ycw-topbar-left,
.ycw-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ycw-topbar-left {
    min-width: 0;
}

.ycw-topbar-title {
    overflow: hidden;
    color: var(--ycw-ink);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ycw-mobile-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: var(--ycw-ink);
    background: #fff;
    border: 1px solid var(--ycw-line);
    border-radius: 10px;
}

section#header ul.top-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

form.header-search-frame {
    margin: 0 !important;
}

form.header-search-frame .home-kb-search {
    position: relative;
    width: min(310px, 28vw);
}

form.header-search-frame .form-control {
    height: 40px !important;
    padding: 8px 40px 8px 14px !important;
    color: var(--ycw-ink-2) !important;
    background: #f7f8fa !important;
    border: 1px solid var(--ycw-line-2) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    font-size: 12px !important;
}

form.header-search-frame .form-control::placeholder {
    color: #9aa4b2 !important;
}

form.header-search-frame .home-kb-search i {
    position: absolute;
    top: 50%;
    right: 14px;
    float: none !important;
    margin: 0 !important;
    color: #9aa4b2 !important;
    transform: translateY(-50%);
}

section#header .choose-language {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--ycw-ink-2) !important;
    background: #f7f8fa;
    border: 1px solid var(--ycw-line-2);
    border-radius: 10px;
}

section#header .logo,
section#header .logo-text {
    display: none !important;
}

/* Main body */
section#main-body {
    padding: 30px 32px 42px !important;
    background: var(--ycw-bg) !important;
}

section#main-body > .container,
section#main-body > .container-fluid {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.main-content {
    min-height: calc(100vh - 150px) !important;
    margin: 0 !important;
}

.header-lined {
    margin: 0 0 22px !important;
    padding: 0 !important;
    border: 0 !important;
}

.header-lined h1,
.page-header h1 {
    margin: 0 0 6px !important;
    color: var(--ycw-ink) !important;
    font-size: clamp(24px, 2.2vw, 34px) !important;
    font-weight: 700 !important;
}

.header-lined p,
.page-header p {
    margin: 0 !important;
    color: var(--ycw-muted) !important;
}

.breadcrumb {
    margin: 0 0 20px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: 11px;
}

ol.breadcrumb::before {
    color: var(--ycw-muted-2) !important;
}

.breadcrumb > li,
.breadcrumb > li > a {
    color: var(--ycw-muted) !important;
}

.breadcrumb > .active {
    color: var(--ycw-ink-2) !important;
}

/* Dashboard */
.ycw-dashboard {
    max-width: 1280px;
    margin: 0 auto;
}

.ycw-dashboard-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.ycw-dashboard-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--ycw-primary);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .11em;
}

.ycw-dashboard-head h1 {
    margin: 0 0 4px !important;
    font-size: clamp(25px, 2.4vw, 36px) !important;
}

.ycw-dashboard-head p {
    margin: 0;
    color: var(--ycw-muted);
    font-size: 13px;
}

.ycw-dashboard-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 9px 12px;
    color: #18754b;
    background: var(--ycw-success-soft);
    border: 1px solid #cdebdc;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.ycw-dashboard-status i {
    color: var(--ycw-success);
}

.ycw-domain-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--ycw-line);
    border-radius: var(--ycw-radius);
    box-shadow: var(--ycw-shadow);
}

.ycw-domain-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    color: var(--ycw-primary);
    background: var(--ycw-primary-soft);
    border-radius: 11px;
    font-size: 17px;
}

.ycw-domain-search .form-control {
    height: 44px !important;
    padding: 8px 4px !important;
    color: var(--ycw-ink) !important;
    background: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
    font-size: 13px !important;
}

.ycw-domain-search .btn {
    min-width: 130px;
    height: 44px;
}

.tiles {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 22px !important;
}

.tiles .tile,
.tiles .tile:nth-child(2),
.tiles .tile:nth-child(4) {
    position: relative;
    float: none !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: #fff !important;
    border: 1px solid var(--ycw-line) !important;
    border-radius: var(--ycw-radius) !important;
    box-shadow: var(--ycw-shadow) !important;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tiles .tile:hover {
    background: #fff !important;
    border-color: #ffd3bc !important;
    box-shadow: var(--ycw-shadow-hover) !important;
    transform: translateY(-2px);
}

.tiles .tile > a {
    display: flex !important;
    align-items: center;
    gap: 14px;
    min-height: 112px;
    padding: 18px !important;
    color: var(--ycw-ink) !important;
    text-decoration: none !important;
}

.tiles .tile .icon {
    position: static !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    color: var(--ycw-primary) !important;
    background: var(--ycw-primary-soft);
    border-radius: 14px;
    font-size: 19px !important;
    opacity: 1 !important;
}

.tiles .tile:nth-child(2) .icon {
    color: var(--ycw-info) !important;
    background: var(--ycw-info-soft);
}

.tiles .tile:nth-child(3) .icon {
    color: var(--ycw-warning) !important;
    background: var(--ycw-warning-soft);
}

.tiles .tile:nth-child(4) .icon {
    color: var(--ycw-success) !important;
    background: var(--ycw-success-soft);
}

.tiles .tile .information {
    min-width: 0;
    margin: 0 !important;
}

.tiles .tile .information .stat,
.tile .stat {
    margin: 0 0 4px !important;
    color: var(--ycw-ink) !important;
    font-size: 25px !important;
    font-weight: 700;
    line-height: 1 !important;
    opacity: 1 !important;
}

.tiles .tile .information .title,
.tile .title {
    overflow: hidden;
    color: var(--ycw-muted) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    white-space: nowrap;
    text-overflow: ellipsis;
    opacity: 1 !important;
}

.ycw-dashboard-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
}

.ycw-dashboard-section-title h2 {
    margin: 0 !important;
    font-size: 15px !important;
}

.ycw-dashboard-section-title span {
    color: var(--ycw-muted);
    font-size: 11px;
}

.client-home-panels > .row {
    margin-right: -7px;
    margin-left: -7px;
}

.client-home-panels [class*="col-"] {
    padding-right: 7px;
    padding-left: 7px;
}

.wdes-clientarea-panel-block,
.client-home-panels .panel {
    margin-bottom: 14px !important;
    overflow: hidden;
    background: #fff !important;
    border: 1px solid var(--ycw-line) !important;
    border-radius: var(--ycw-radius) !important;
    box-shadow: var(--ycw-shadow) !important;
}

.wdes-clientarea-panel-block > .panel-heading,
.client-home-panels .panel > .panel-heading {
    padding: 15px 18px !important;
    color: var(--ycw-ink) !important;
    background: #fff !important;
    border-bottom: 1px solid var(--ycw-line-2) !important;
}

.wdes-clientarea-panel-block .panel-title,
.client-home-panels .panel-title {
    display: flex;
    align-items: center;
    min-height: 26px;
    margin: 0;
    color: var(--ycw-ink) !important;
    font-size: 12px !important;
    font-weight: 700;
}

.wdes-clientarea-panel-block .panel-title > i,
.client-home-panels .panel-title > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-right: 8px;
    color: var(--ycw-primary) !important;
    background: var(--ycw-primary-soft);
    border-radius: 8px;
}

.wdes-clientarea-panel-block .panel-title .pull-right,
.client-home-panels .panel-title .pull-right {
    margin-left: auto;
}

.wdes-clientarea-panel-block .panel-body,
.client-home-panels .panel-body {
    padding: 17px 18px !important;
    color: var(--ycw-muted) !important;
    background: #fff !important;
}

.wdes-clientarea-panel-block .list-group,
.client-home-panels .list-group {
    margin: 0;
}

.wdes-clientarea-panel-block .list-group-item,
.client-home-panels .list-group-item {
    padding: 12px 18px !important;
    color: var(--ycw-ink-2) !important;
    background: #fff !important;
    border-color: var(--ycw-line-2) !important;
    font-size: 11px;
}

.wdes-clientarea-panel-block a.list-group-item:hover,
.client-home-panels a.list-group-item:hover {
    color: var(--ycw-primary) !important;
    background: var(--ycw-primary-softer) !important;
}

.wdes-clientarea-panel-block .panel-footer,
.client-home-panels .panel-footer {
    min-height: 0;
    padding: 0 !important;
    background: #fff !important;
    border-top: 0 !important;
}

.wdes-addons {
    margin: 0 0 18px;
}

/* Generic cards and panels */
.panel,
.card,
.wdes-block,
.well,
.ticket-reply,
.ticket-reply.staff,
.domain-renewals,
.affiliate-stat,
.knowledgebase-cat-list {
    color: var(--ycw-ink-2);
    background: #fff !important;
    border-color: var(--ycw-line) !important;
}

.panel {
    border-radius: var(--ycw-radius) !important;
    box-shadow: 0 3px 14px rgba(14, 27, 47, .045) !important;
}

.panel-heading {
    color: var(--ycw-ink) !important;
    background: #fff !important;
    border-color: var(--ycw-line-2) !important;
    border-radius: var(--ycw-radius) var(--ycw-radius) 0 0 !important;
}

.panel-title {
    color: var(--ycw-ink) !important;
    font-weight: 700;
}

.panel-body {
    color: var(--ycw-ink-2) !important;
    background: #fff !important;
}

.panel-footer {
    background: #fafbfc !important;
    border-color: var(--ycw-line-2) !important;
    border-radius: 0 0 var(--ycw-radius) var(--ycw-radius) !important;
}

.well,
.wdes-block {
    padding: 20px !important;
    border: 1px solid var(--ycw-line) !important;
    border-radius: var(--ycw-radius) !important;
    box-shadow: var(--ycw-shadow) !important;
}

/* Forms */
.form-control,
body.ycw-portal input[type="text"],
body.ycw-portal input[type="email"],
body.ycw-portal input[type="password"],
body.ycw-portal input[type="tel"],
body.ycw-portal input[type="url"],
body.ycw-portal input[type="number"],
body.ycw-portal input[type="search"],
body.ycw-portal select,
body.ycw-portal textarea {
    min-height: 42px;
    color: var(--ycw-ink-2) !important;
    background: #fff !important;
    border: 1px solid #dfe3e9 !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    font-size: 12px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

body.ycw-portal textarea.form-control,
body.ycw-portal textarea {
    min-height: 110px;
}

.form-control:focus,
body.ycw-portal input:focus,
body.ycw-portal select:focus,
body.ycw-portal textarea:focus {
    border-color: #ffad80 !important;
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(255, 89, 0, .10) !important;
}

.form-control::placeholder,
body.ycw-portal input::placeholder,
body.ycw-portal textarea::placeholder {
    color: #a4adba !important;
}

body.ycw-portal label,
.wdes-label {
    margin-bottom: 6px;
    color: var(--ycw-ink-2) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

.input-group-addon {
    color: var(--ycw-muted) !important;
    background: #f7f8fa !important;
    border-color: #dfe3e9 !important;
}

.checkbox label,
.radio label {
    font-weight: 400 !important;
}

/* Buttons */
.btn,
.wdes-submit,
.wdes-2nd-btn {
    min-height: 40px;
    padding: 9px 15px;
    border-radius: 9px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.35;
    box-shadow: none !important;
}

.btn-primary,
.btn-success,
.wdes-submit,
.btn-info,
.input-group-btn .btn.search,
.input-group-btn .btn.transfer {
    color: #fff !important;
    background: var(--ycw-primary) !important;
    border-color: var(--ycw-primary) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus,
.wdes-submit:hover,
.wdes-submit:focus,
.btn-info:hover,
.btn-info:focus,
.input-group-btn .btn.search:hover,
.input-group-btn .btn.transfer:hover {
    color: #fff !important;
    background: var(--ycw-primary-dark) !important;
    border-color: var(--ycw-primary-dark) !important;
}

.btn-default,
.wdes-2nd-btn {
    color: var(--ycw-ink-2) !important;
    background: #fff !important;
    border: 1px solid var(--ycw-line) !important;
}

.btn-default:hover,
.wdes-2nd-btn:hover {
    color: var(--ycw-primary) !important;
    background: var(--ycw-primary-softer) !important;
    border-color: #ffd1b8 !important;
}

.btn-danger {
    color: #fff !important;
    background: var(--ycw-danger) !important;
    border-color: var(--ycw-danger) !important;
}

.btn-warning {
    color: #fff !important;
    background: var(--ycw-warning) !important;
    border-color: var(--ycw-warning) !important;
}

.btn-xs {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 10px !important;
}

.btn-lg {
    min-height: 46px;
    padding: 11px 18px;
    font-size: 12px !important;
}

/* Tables */
.table-responsive,
.dataTables_wrapper {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ycw-line);
    border-radius: var(--ycw-radius);
    box-shadow: 0 3px 14px rgba(14, 27, 47, .04);
}

.table-responsive .table,
.dataTables_wrapper .table {
    margin-bottom: 0 !important;
}

.table > thead > tr > th {
    padding: 12px 14px !important;
    color: #68758a !important;
    background: #f8f9fb !important;
    border-bottom: 1px solid var(--ycw-line) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.table > tbody > tr > td,
.table > tfoot > tr > td {
    padding: 13px 14px !important;
    color: var(--ycw-ink-2) !important;
    background: #fff !important;
    border-top: 1px solid var(--ycw-line-2) !important;
    vertical-align: middle;
    font-size: 11px;
}

.table-hover > tbody > tr:hover > td {
    background: #fffaf7 !important;
}

.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length {
    padding: 12px 14px 0;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    padding: 12px 14px !important;
}

.dataTables_wrapper .dataTables_filter label .form-control {
    min-height: 36px !important;
    padding-left: 34px !important;
    color: var(--ycw-ink-2) !important;
    background-color: #fff !important;
    border: 1px solid var(--ycw-line) !important;
}

/* Tabs, navs, pagination */
.nav-tabs {
    margin-bottom: 18px;
    border-bottom: 1px solid var(--ycw-line) !important;
}

.nav-tabs > li > a {
    margin-right: 4px;
    padding: 10px 13px;
    color: var(--ycw-muted) !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    font-size: 11px;
    font-weight: 600;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:focus,
.nav-tabs > li.active > a:hover,
.nav-tabs > li > a:hover {
    color: var(--ycw-primary) !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 2px solid var(--ycw-primary) !important;
}

.pagination > li > a,
.pagination > li > span {
    min-width: 34px;
    margin: 0 2px;
    color: var(--ycw-ink-2) !important;
    background: #fff !important;
    border: 1px solid var(--ycw-line) !important;
    border-radius: 8px !important;
    text-align: center;
}

.pagination > .active > a,
.pagination > .active > a:focus,
.pagination > .active > a:hover,
.pagination > .active > span,
.pagination > .active > span:focus,
.pagination > .active > span:hover {
    color: #fff !important;
    background: var(--ycw-primary) !important;
    border-color: var(--ycw-primary) !important;
}

/* Alerts and badges */
.alert {
    padding: 12px 14px !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-radius: 10px !important;
    font-size: 11px;
}

.alert-success {
    color: #176b45 !important;
    background: var(--ycw-success-soft) !important;
    border-color: #c8ead9 !important;
}

.alert-info {
    color: #2858aa !important;
    background: var(--ycw-info-soft) !important;
    border-color: #d4e1ff !important;
}

.alert-warning {
    color: #9a5b10 !important;
    background: var(--ycw-warning-soft) !important;
    border-color: #f6dfbf !important;
}

.alert-danger {
    color: #a92f3c !important;
    background: var(--ycw-danger-soft) !important;
    border-color: #f4cdd1 !important;
}

.badge,
.label {
    border-radius: 7px !important;
}

.badge {
    background: var(--ycw-primary) !important;
}

.label-success { background: var(--ycw-success) !important; }
.label-info { background: var(--ycw-info) !important; }
.label-warning { background: var(--ycw-warning) !important; }
.label-danger { background: var(--ycw-danger) !important; }

/* Modals, dropdowns, popovers */
.modal-content,
.dropdown-menu,
.popover {
    background: #fff !important;
    border: 1px solid var(--ycw-line) !important;
    border-radius: var(--ycw-radius) !important;
    box-shadow: 0 18px 50px rgba(14, 27, 47, .16) !important;
}

.modal-header,
.modal-footer {
    border-color: var(--ycw-line-2) !important;
}

.dropdown-menu > li > a {
    padding: 9px 13px;
    color: var(--ycw-ink-2) !important;
    font-size: 11px;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    color: var(--ycw-primary) !important;
    background: var(--ycw-primary-soft) !important;
}

.popover-title {
    color: var(--ycw-ink) !important;
    background: #f8f9fb !important;
    border-color: var(--ycw-line-2) !important;
}

.popover-content {
    color: var(--ycw-ink-2) !important;
}

/* Login / registration / password */
body.template-login .wdes-wrapper,
body.template-clientregister .wdes-wrapper {
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    background:
        radial-gradient(circle at 16% 12%, rgba(255, 89, 0, .11), transparent 30%),
        radial-gradient(circle at 82% 86%, rgba(255, 89, 0, .08), transparent 28%),
        #f6f7f9 !important;
}

body.template-login .wdes-content,
body.template-clientregister .wdes-content {
    max-width: 880px;
    background: transparent !important;
}

body.template-login section#header,
body.template-clientregister section#header {
    display: none;
}

body.template-login section#main-body,
body.template-clientregister section#main-body {
    padding: 0 !important;
}

.logincontainer {
    max-width: 760px !important;
    margin: 0 auto !important;
    padding: 34px !important;
    background: #fff;
    border: 1px solid var(--ycw-line);
    border-radius: 18px !important;
    box-shadow: 0 18px 55px rgba(14, 27, 47, .12) !important;
}

.logincontainer .header-lined h1 {
    font-size: 28px !important;
}

.logincontainer .wdes-block {
    margin: 20px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.login-form .wdes-new-account {
    display: block;
    margin-top: 18px;
    color: var(--ycw-muted) !important;
    text-align: center;
    font-size: 11px;
}

/* Public homepage */
.domain-bg {
    display: none !important;
}

section#home-banner {
    margin: 0 0 18px;
    padding: 48px 24px !important;
    background: #fff !important;
    border: 1px solid var(--ycw-line);
    border-radius: 18px;
    box-shadow: var(--ycw-shadow);
}

section#home-banner h2 {
    margin: 0 0 22px !important;
    font-size: clamp(26px, 3vw, 40px) !important;
}

section#home-banner .input-group {
    padding: 7px;
    background: #f7f8fa;
    border: 1px solid var(--ycw-line);
    border-radius: 12px;
}

section#home-banner .form-control {
    min-height: 48px !important;
    color: var(--ycw-ink) !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

section#home-banner .input-group-btn .btn {
    min-height: 48px;
    border-radius: 9px !important;
}

.home-shortcuts {
    margin: 0 0 18px;
}

.home-shortcuts ul {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 !important;
    padding: 0 !important;
}

.home-shortcuts ul li {
    width: auto !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid var(--ycw-line) !important;
    border-radius: var(--ycw-radius) !important;
    box-shadow: var(--ycw-shadow);
}

.home-shortcuts ul li a {
    display: flex !important;
    align-items: center;
    min-height: 105px;
    padding: 18px !important;
    color: var(--ycw-ink-2) !important;
    text-align: left !important;
}

.home-shortcuts ul li a > i {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    margin-right: 12px;
    color: var(--ycw-primary) !important;
    background: var(--ycw-primary-soft);
    border-radius: 12px;
    font-size: 18px !important;
}

.home-shortcuts ul li a p {
    margin: 0 !important;
    color: var(--ycw-ink-2) !important;
    font-size: 11px !important;
    font-weight: 600;
}

.wdes-announcement-hp {
    padding: 22px !important;
    color: var(--ycw-ink-2) !important;
    background: #fff !important;
    border: 1px solid var(--ycw-line);
    border-radius: var(--ycw-radius);
    box-shadow: var(--ycw-shadow);
}

/* Tickets, invoices and detail views */
.ticket-reply,
.ticket-reply.staff {
    margin-bottom: 14px !important;
    overflow: hidden;
    border: 1px solid var(--ycw-line) !important;
    border-radius: var(--ycw-radius) !important;
    box-shadow: 0 3px 14px rgba(14, 27, 47, .04) !important;
}

.ticket-reply .date,
.ticket-reply .user,
.ticket-reply .message {
    color: var(--ycw-ink-2) !important;
}

.invoice-container {
    background: #fff !important;
    border: 1px solid var(--ycw-line);
    border-radius: var(--ycw-radius);
    box-shadow: var(--ycw-shadow);
}

/* Knowledgebase / downloads */
.kb-article-item,
.kb-category,
.download-item {
    background: #fff !important;
    border-color: var(--ycw-line) !important;
    border-radius: 10px !important;
}

/* Footer */
section#footer {
    margin: 0 !important;
    padding: 18px 32px !important;
    color: var(--ycw-muted) !important;
    background: transparent !important;
    border-top: 0 !important;
}

section#footer .container {
    padding: 0;
}

section#footer p {
    margin: 0;
    color: var(--ycw-muted-2) !important;
    font-size: 10px;
    text-align: right;
}

.back-to-top {
    display: none !important;
}

/* Loader */
.wdes-loading {
    background: rgba(245, 246, 248, .92) !important;
}

.wdes-loader .line {
    background: var(--ycw-primary) !important;
}

/* Hide visual customizer from end users */
.wdes-customizer,
.customizer-toggle,
#wdes-customizer {
    display: none !important;
}

/* Responsive */
@media (max-width: 1280px) {
    :root {
        --ycw-sidebar: 245px;
        --ycw-context: 225px;
    }

    .tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-shortcuts ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1050px) {
    .whm-sidebar {
        display: none !important;
    }

    section#main-body {
        padding-right: 24px !important;
        padding-left: 24px !important;
    }
}

@media (max-width: 820px) {
    .wdes-wrapper {
        display: block !important;
    }

    .wdes-sidebar {
        position: relative;
        width: 100% !important;
        height: auto;
        min-height: 0;
        border-right: 0 !important;
        border-bottom: 1px solid var(--ycw-line) !important;
    }

    .ycw-brand {
        min-height: 66px;
        padding: 12px 18px;
    }

    .ycw-brand .logo-mob img {
        max-width: 138px;
        max-height: 34px;
    }

    .wdes-sidebar .navbar-collapse {
        display: none !important;
        padding: 14px 16px 20px !important;
    }

    .wdes-sidebar .navbar-collapse.in {
        display: block !important;
    }

    section#header {
        top: 0;
        min-height: 62px;
    }

    section#header > .container {
        min-height: 62px;
        padding: 0 18px;
    }

    .ycw-mobile-nav-toggle {
        display: inline-flex;
    }

    .ycw-topbar-title {
        display: none;
    }

    form.header-search-frame .home-kb-search {
        width: 42vw;
        min-width: 180px;
    }

    section#main-body {
        padding: 22px 18px 32px !important;
    }

    .ycw-dashboard-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .ycw-dashboard-status {
        align-self: stretch;
        justify-content: center;
    }
}

@media (max-width: 620px) {
    .tiles,
    .home-shortcuts ul {
        grid-template-columns: 1fr;
    }

    .ycw-domain-search {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .ycw-domain-search-icon {
        display: none;
    }

    .ycw-domain-search .form-control {
        flex: 1 1 100%;
        width: 100%;
        padding: 8px 10px !important;
        border: 1px solid var(--ycw-line-2) !important;
    }

    .ycw-domain-search .btn {
        width: 100%;
    }

    form.header-search-frame {
        display: none;
    }

    section#header .choose-language {
        width: 38px;
        height: 38px;
    }

    .client-home-panels .col-sm-6 {
        width: 100%;
    }

    .logincontainer {
        padding: 24px 18px !important;
        border-radius: 14px !important;
    }
}

/* Menu icons injected by the original Digit navigation helper */
#main-menu .wdes-custom-nav > .panel > a.menu-icon-new::before {
    flex: 0 0 22px;
    width: 22px;
    margin-right: 8px !important;
    color: #798497 !important;
    font-size: 15px;
    text-align: center;
}

#main-menu .wdes-custom-nav > .panel > a.menu-icon-new:hover::before,
#main-menu .wdes-custom-nav > .panel > a.menu-icon-new[aria-expanded="true"]::before {
    color: var(--ycw-primary) !important;
}


/* Final consistency layer for legacy WHMCS/Digit components */
body.ycw-portal .text-primary,
body.ycw-portal .text-info,
body.ycw-portal .text-success,
body.ycw-portal .link-color,
body.ycw-portal .fa-check-circle,
body.ycw-portal .fas.fa-check,
body.ycw-portal .far.fa-check {
    color: var(--ycw-primary) !important;
}

body.ycw-portal .bg-primary,
body.ycw-portal .progress-bar,
body.ycw-portal .list-group-item.active,
body.ycw-portal .list-group-item.active:hover,
body.ycw-portal .list-group-item.active:focus {
    color: #fff !important;
    background-color: var(--ycw-primary) !important;
    border-color: var(--ycw-primary) !important;
}

body.ycw-portal hr {
    border-color: var(--ycw-line-2) !important;
}

body.ycw-portal blockquote {
    color: var(--ycw-muted) !important;
    background: #fafbfc !important;
    border-left: 3px solid var(--ycw-primary) !important;
    border-radius: 0 9px 9px 0;
}

body.ycw-portal code,
body.ycw-portal pre {
    color: #4a3d36 !important;
    background: #fff8f4 !important;
    border-color: #ffe0cf !important;
}

body.ycw-portal .status,
body.ycw-portal .domain-status,
body.ycw-portal .label {
    font-weight: 600;
}

body.ycw-portal .panel-primary > .panel-heading,
body.ycw-portal .panel-info > .panel-heading,
body.ycw-portal .panel-success > .panel-heading,
body.ycw-portal .panel-warning > .panel-heading,
body.ycw-portal .panel-danger > .panel-heading {
    color: var(--ycw-ink) !important;
    background: #fff !important;
    border-color: var(--ycw-line-2) !important;
}


/* YCW professional refinement v2 */
body.ycw-portal {
    overflow-x: hidden;
}

.ycw-brand {
    justify-content: space-between;
    gap: 14px;
}

.ycw-brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 30px;
    padding: 7px 12px;
    color: var(--ycw-primary);
    background: var(--ycw-primary-soft);
    border: 1px solid #ffd9c6;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ycw-topbar-brand {
    display: none;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--ycw-ink) !important;
    text-decoration: none !important;
}

.ycw-topbar-brand img {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.ycw-topbar-brand-text {
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ycw-auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0 auto 24px;
    text-align: center;
}

.ycw-auth-brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.ycw-auth-brand-link img {
    display: block;
    width: auto;
    max-width: min(320px, 82vw);
    max-height: 58px;
}

.ycw-auth-brand-subtitle {
    color: var(--ycw-muted);
    font-size: 12px;
    font-weight: 500;
}

.ycw-mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(13, 27, 47, .48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}

body.ycw-nav-open .ycw-mobile-nav-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.table-responsive,
.dataTables_wrapper {
    overflow-x: auto;
}

body.ycw-portal .panel-title,
body.ycw-portal .wdes-clientarea-panel-block .panel-title {
    flex-wrap: wrap;
    gap: 8px;
}

body.ycw-portal .panel-title .pull-right,
body.ycw-portal .wdes-clientarea-panel-block .panel-title .pull-right {
    margin-left: auto;
}

body.ycw-portal .btn {
    white-space: nowrap;
}

body.ycw-portal .table > tbody > tr > td,
body.ycw-portal .table > tfoot > tr > td {
    word-break: break-word;
}

body.ycw-portal .popover,
body.ycw-portal .dropdown-menu {
    max-width: min(94vw, 360px);
}

@media (max-width: 1280px) {
    section#header > .container {
        padding: 0 24px;
    }

    section#main-body,
    section#footer {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

@media (max-width: 1050px) {
    .wdes-wrapper {
        display: block !important;
    }

    .wdes-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(340px, calc(100vw - 28px)) !important;
        height: 100vh;
        transform: translateX(calc(-100% - 20px));
        transition: transform .24s ease, box-shadow .24s ease;
        z-index: 1055;
        border-right: 1px solid var(--ycw-line) !important;
        box-shadow: 0 20px 55px rgba(13, 27, 47, .18) !important;
    }

    body.ycw-nav-open .wdes-sidebar {
        transform: translateX(0);
    }

    .wdes-sidebar .navbar-collapse,
    .wdes-sidebar .navbar-collapse.collapse,
    .wdes-sidebar .navbar-collapse.collapsing {
        display: block !important;
        height: auto !important;
        overflow-y: auto !important;
    }

    .whm-sidebar {
        display: none !important;
    }

    .wdes-content {
        width: 100% !important;
    }

    .ycw-mobile-nav-toggle {
        display: inline-flex;
    }

    .ycw-topbar-brand {
        display: inline-flex;
    }

    .ycw-topbar-title {
        max-width: min(38vw, 280px);
    }

    form.header-search-frame .home-kb-search {
        width: min(290px, 34vw);
        min-width: 170px;
    }

    .tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .ycw-brand {
        min-height: 72px;
        padding: 16px 18px;
    }

    .ycw-brand .logo-mob img {
        max-width: 180px;
        max-height: 42px;
    }

    .ycw-brand-badge {
        display: none;
    }

    section#header {
        min-height: 66px;
    }

    section#header > .container {
        min-height: 66px;
        gap: 14px;
        padding: 0 18px;
    }

    .ycw-topbar-title {
        display: none;
    }

    form.header-search-frame .home-kb-search {
        width: min(240px, 42vw);
        min-width: 140px;
    }

    .ycw-dashboard-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .ycw-dashboard-status {
        align-self: stretch;
        justify-content: center;
    }

    .tiles .tile > a {
        min-height: 98px;
        padding: 16px !important;
    }

    .home-shortcuts ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .ycw-topbar-brand-text {
        display: none;
    }

    section#header > .container {
        gap: 10px;
    }

    .ycw-topbar-right {
        margin-left: auto;
    }

    .tiles,
    .home-shortcuts ul {
        grid-template-columns: 1fr;
    }

    .shortcuts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ycw-domain-search {
        align-items: stretch;
        flex-wrap: wrap;
        padding: 10px;
    }

    .ycw-domain-search-icon {
        display: none;
    }

    .ycw-domain-search .form-control {
        flex: 1 1 100%;
        width: 100%;
        padding: 10px 12px !important;
        border: 1px solid var(--ycw-line-2) !important;
        border-radius: 10px !important;
    }

    .ycw-domain-search .btn {
        width: 100%;
    }

    .ycw-dashboard-section-title {
        flex-direction: column;
        align-items: flex-start;
    }

    form.header-search-frame {
        display: none;
    }

    .client-home-panels .col-sm-6 {
        width: 100%;
    }

    .logincontainer {
        padding: 22px 18px !important;
    }
}

@media (max-width: 420px) {
    .ycw-brand .logo-mob img {
        max-width: 155px;
    }

    .wdes-sidebar {
        width: calc(100vw - 14px) !important;
    }

    .tiles .tile > a {
        gap: 12px;
    }

    .tiles .tile .icon {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
    }
}
/* YCW portal redesign v3 */
:root {
    --ycw-sidebar: 286px;
    --ycw-context: 286px;
    --ycw-bg: #f3f5f8;
    --ycw-card: #ffffff;
    --ycw-line: #e3e8ef;
    --ycw-line-2: #edf0f4;
    --ycw-ink: #0b1930;
    --ycw-ink-2: #2a3950;
    --ycw-muted: #748196;
    --ycw-radius: 16px;
    --ycw-shadow: 0 10px 30px rgba(21, 35, 58, .075);
    --ycw-shadow-hover: 0 16px 42px rgba(21, 35, 58, .12);
}

body.ycw-portal {
    font-size: 15px;
    background: var(--ycw-bg) !important;
}

/* Core shell: primary navigation left, content center, contextual navigation right. */
.wdes-wrapper {
    align-items: stretch;
}

.wdes-sidebar {
    order: 1 !important;
    background: #fff !important;
    border-right: 1px solid var(--ycw-line) !important;
}

.wdes-content {
    order: 2 !important;
}

.whm-sidebar {
    order: 3 !important;
    padding: 96px 22px 32px 8px !important;
}

.ycw-context-label {
    margin: 0 8px 10px;
    color: #98a2b2;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* The home dashboard is intentionally full-width. The old WHMCS context sidebar
   made the dashboard unnecessarily narrow and caused the statistics to wrap. */
body.template-clientareahome .whm-sidebar {
    display: none !important;
}

body.template-clientareahome .wdes-content {
    flex: 1 1 calc(100% - var(--ycw-sidebar)) !important;
    width: calc(100% - var(--ycw-sidebar)) !important;
}

.container {
    max-width: 1680px;
}

section#header {
    min-height: 78px;
    background: rgba(255,255,255,.96) !important;
    box-shadow: 0 1px 0 rgba(13, 27, 47, .035);
}

section#header > .container {
    min-height: 78px;
    padding: 0 40px;
}

.ycw-topbar-title {
    font-size: 15px;
    font-weight: 700;
}

form.header-search-frame .home-kb-search {
    width: min(360px, 30vw);
}

form.header-search-frame .form-control {
    height: 44px !important;
    padding-left: 16px !important;
    background: #fff !important;
    border: 1px solid var(--ycw-line) !important;
    border-radius: 12px !important;
}

/* Sidebar branding and navigation */
.ycw-brand {
    min-height: 92px;
    padding: 20px 22px;
    background: linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
}

.ycw-brand .logo-mob img {
    max-width: 182px;
    max-height: 44px;
}

.ycw-brand-badge {
    padding: 6px 9px;
    font-size: 9px;
}

.wdes-sidebar .navbar-collapse {
    padding: 20px 18px 30px !important;
}

.ycw-welcome-card {
    margin-bottom: 18px;
    padding: 17px;
    border: 1px solid #e5e9ef;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(19, 33, 55, .055);
}

.ycw-welcome-row {
    gap: 13px;
}

.wdes-profile-pic,
.ycw-profile-fallback {
    flex-basis: 48px;
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
}

.ycw-welcome-name {
    font-size: 15px;
}

.shortcuts {
    gap: 9px;
}

.shortcuts li {
    background: #fff !important;
    border-color: #e5e9ef;
    box-shadow: 0 3px 10px rgba(18, 32, 52, .035);
}

.shortcuts li a {
    min-height: 46px;
}

.ycw-sidebar-label {
    margin-top: 24px;
    margin-bottom: 10px;
}

#main-menu .wdes-custom-nav > .panel {
    margin: 4px 0 !important;
}

#main-menu .wdes-custom-nav > .panel > a {
    min-height: 48px;
    padding: 11px 13px !important;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 13px !important;
}

#main-menu .wdes-custom-nav > .panel > a > i:first-child,
#main-menu .wdes-custom-nav > .panel > a.menu-icon-new::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin-right: 10px !important;
    color: #718096 !important;
    background: #f3f5f8;
    border-radius: 9px;
}

#main-menu .wdes-custom-nav > .panel > a:hover,
#main-menu .wdes-custom-nav > .panel > a[aria-expanded="true"],
#main-menu .wdes-custom-nav > .panel.active > a {
    color: var(--ycw-primary) !important;
    background: #fff6f1 !important;
    border-color: #ffe0cf;
}

#main-menu .wdes-custom-nav > .panel > a:hover > i:first-child,
#main-menu .wdes-custom-nav > .panel > a[aria-expanded="true"] > i:first-child,
#main-menu .wdes-custom-nav > .panel.active > a > i:first-child,
#main-menu .wdes-custom-nav > .panel > a.menu-icon-new:hover::before,
#main-menu .wdes-custom-nav > .panel > a.menu-icon-new[aria-expanded="true"]::before {
    color: var(--ycw-primary) !important;
    background: #ffeadd;
}

.ycw-help-card {
    padding: 16px;
    background: #f7f9fb;
    border-color: #e7ebf0;
}

/* Main page canvas */
section#main-body {
    padding: 34px 40px 52px !important;
}

.main-content {
    min-width: 0;
}

.header-lined {
    margin-bottom: 26px !important;
}

.header-lined h1,
.page-header h1 {
    font-size: clamp(28px, 2vw, 38px) !important;
}

/* New dashboard hero */
.ycw-dashboard {
    width: 100%;
    max-width: 1460px;
    margin: 0 auto;
}

.ycw-dashboard-hero {
    position: relative;
    margin: 0 0 26px;
    padding: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at 94% 8%, rgba(255, 89, 0, .09), transparent 25%),
        linear-gradient(180deg, #fff 0%, #fdfdfd 100%);
    border: 1px solid var(--ycw-line);
    border-radius: 20px;
    box-shadow: var(--ycw-shadow);
}

.ycw-dashboard-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28px;
    width: 70px;
    height: 4px;
    background: var(--ycw-primary);
    border-radius: 0 0 5px 5px;
}

.ycw-dashboard-head {
    align-items: center;
    margin-bottom: 24px;
}

.ycw-dashboard-copy {
    min-width: 0;
}

.ycw-dashboard-kicker {
    margin-bottom: 6px;
    font-size: 11px;
}

.ycw-dashboard-head h1 {
    margin-bottom: 6px !important;
    font-size: clamp(30px, 2.5vw, 44px) !important;
    line-height: 1.1;
}

.ycw-dashboard-head p {
    max-width: 740px;
    font-size: 14px;
}

.ycw-dashboard-head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

.ycw-dashboard-status {
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 12px;
}

.ycw-dashboard-support {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
}

.ycw-domain-search {
    margin: 0;
    padding: 8px;
    border: 1px solid #dfe5ec;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(19, 32, 53, .055);
}

.ycw-domain-search-icon {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.ycw-domain-search .form-control {
    height: 48px !important;
    padding: 8px 10px !important;
    font-size: 14px !important;
}

.ycw-domain-search .btn {
    min-width: 150px;
    height: 48px;
    border-radius: 11px !important;
}

.ycw-dashboard-section-title--metrics {
    margin-bottom: 14px;
}

.ycw-dashboard-section-title--metrics > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
}

.ycw-dashboard-section-title h2 {
    font-size: 17px !important;
}

/* Fix: Bootstrap clearfix pseudo-elements became CSS-grid children. */
.tiles::before,
.tiles::after,
.tiles.clearfix::before,
.tiles.clearfix::after,
.ycw-metrics-grid::before,
.ycw-metrics-grid::after {
    display: none !important;
    content: none !important;
}

.tiles,
.ycw-metrics-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 28px !important;
}

.tiles .tile,
.tiles .tile:first-child,
.tiles .tile:nth-child(2),
.tiles .tile:nth-child(3),
.tiles .tile:nth-child(4) {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    min-height: 128px;
    border: 1px solid var(--ycw-line) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(19, 32, 53, .06) !important;
}

.tiles .tile > a {
    min-height: 126px;
    padding: 22px !important;
}

.tiles .tile .icon {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border-radius: 15px;
    font-size: 20px !important;
}

.tiles .tile .information .stat,
.tile .stat {
    margin-bottom: 6px !important;
    font-size: 29px !important;
}

.tiles .tile .information .title,
.tile .title {
    font-size: 12px !important;
}

/* Dashboard panels */
.client-home-panels > .row {
    margin-right: -8px;
    margin-left: -8px;
}

.client-home-panels [class*="col-"] {
    padding-right: 8px;
    padding-left: 8px;
}

.wdes-clientarea-panel-block,
.client-home-panels .panel {
    margin-bottom: 16px !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(19, 32, 53, .055) !important;
}

.wdes-clientarea-panel-block > .panel-heading,
.client-home-panels .panel > .panel-heading {
    min-height: 60px;
    padding: 15px 20px !important;
}

.wdes-clientarea-panel-block .panel-body,
.client-home-panels .panel-body {
    padding: 20px !important;
}

.wdes-clientarea-panel-block .list-group-item,
.client-home-panels .list-group-item {
    padding: 14px 20px !important;
    font-size: 12px;
}

/* Context sidebar now behaves as a clean supporting column on inner pages. */
.whm-sidebar .panel-sidebar {
    margin-bottom: 16px !important;
    border-radius: 15px !important;
    box-shadow: 0 6px 20px rgba(19, 32, 53, .045) !important;
}

.whm-sidebar .panel-sidebar > .panel-heading {
    padding: 15px 16px !important;
}

/* Generic UI gets more breathing room. */
.panel {
    border-radius: 16px !important;
}

.form-control,
body.ycw-portal input[type="text"],
body.ycw-portal input[type="email"],
body.ycw-portal input[type="password"],
body.ycw-portal input[type="tel"],
body.ycw-portal input[type="url"],
body.ycw-portal input[type="number"],
body.ycw-portal input[type="search"],
body.ycw-portal select,
body.ycw-portal textarea {
    min-height: 44px;
    border-radius: 10px !important;
    font-size: 13px;
}

.btn,
.wdes-submit,
.wdes-2nd-btn {
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 10px !important;
    font-size: 12px !important;
}

.table > thead > tr > th {
    padding: 14px 16px !important;
    font-size: 11px !important;
}

.table > tbody > tr > td,
.table > tfoot > tr > td {
    padding: 15px 16px !important;
    font-size: 12px;
}

/* Footer */
section#footer {
    padding: 20px 40px 30px !important;
}

/* Large laptops and smaller desktops */
@media (max-width: 1450px) {
    :root {
        --ycw-sidebar: 260px;
        --ycw-context: 250px;
    }

    section#header > .container,
    section#main-body,
    section#footer {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }

    .ycw-dashboard-hero {
        padding: 24px;
    }

    .tiles,
    .ycw-metrics-grid {
        grid-template-columns: repeat(4, minmax(170px, 1fr));
    }
}

@media (max-width: 1230px) {
    .whm-sidebar {
        display: none !important;
    }

    .tiles,
    .ycw-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ycw-dashboard-head-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Tablet switches to the off-canvas primary navigation. */
@media (max-width: 1050px) {
    body.template-clientareahome .wdes-content,
    .wdes-content {
        width: 100% !important;
        flex-basis: 100% !important;
    }

    section#main-body {
        padding-top: 26px !important;
    }

    .ycw-dashboard-hero {
        border-radius: 18px;
    }
}

@media (max-width: 820px) {
    section#header > .container {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    section#main-body,
    section#footer {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .ycw-dashboard-hero {
        padding: 22px 18px 18px;
    }

    .ycw-dashboard-head-actions {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .ycw-dashboard-status,
    .ycw-dashboard-support {
        flex: 1 1 auto;
        justify-content: center;
    }

    .ycw-dashboard-section-title--metrics > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 620px) {
    .ycw-dashboard-head h1 {
        font-size: 30px !important;
    }

    .ycw-dashboard-head p {
        font-size: 13px;
    }

    .ycw-dashboard-head-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .tiles,
    .ycw-metrics-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tiles .tile,
    .tiles .tile:first-child,
    .tiles .tile:nth-child(2),
    .tiles .tile:nth-child(3),
    .tiles .tile:nth-child(4) {
        min-height: 98px;
    }

    .tiles .tile > a {
        min-height: 96px;
        padding: 16px !important;
    }

    .ycw-domain-search {
        gap: 8px;
    }

    .ycw-domain-search .form-control {
        height: 44px !important;
    }
}


/* YCW portal refinement v4 */
.ycw-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ycw-brand-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ycw-mobile-nav-close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: var(--ycw-ink);
    background: #fff;
    border: 1px solid var(--ycw-line);
    border-radius: 12px;
}

#main-menu .wdes-custom-nav > .panel > a {
    gap: 10px;
}

#main-menu .wdes-custom-nav > .panel > a .ycw-nav-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: #7e8898;
    font-size: 15px;
    line-height: 1;
}

#main-menu .wdes-custom-nav > .panel > a .ycw-nav-icon i {
    margin: 0;
    font-size: 15px;
}

#main-menu .wdes-custom-nav > .panel > a .ycw-nav-label {
    flex: 1 1 auto;
    min-width: 0;
}

#main-menu .wdes-custom-nav > .panel > a .ycw-nav-icon:empty::before {
    font-family: 'Font Awesome 6 Pro';
    font-weight: 300;
}

#main-menu .panel[menuitemname*="Home"] > a .ycw-nav-icon:empty::before,
#main-menu .panel[menuitemname*="Client Area Home"] > a .ycw-nav-icon:empty::before { content: '\f015'; }
#main-menu .panel[menuitemname*="Services"] > a .ycw-nav-icon:empty::before { content: '\f1b2'; }
#main-menu .panel[menuitemname*="Domains"] > a .ycw-nav-icon:empty::before { content: '\f0ac'; }
#main-menu .panel[menuitemname*="Website Security"] > a .ycw-nav-icon:empty::before,
#main-menu .panel[menuitemname*="Security"] > a .ycw-nav-icon:empty::before { content: '\f023'; }
#main-menu .panel[menuitemname*="Billing"] > a .ycw-nav-icon:empty::before { content: '\f09d'; }
#main-menu .panel[menuitemname*="Support"] > a .ycw-nav-icon:empty::before { content: '\f1cd'; }
#main-menu .panel[menuitemname*="Open Ticket"] > a .ycw-nav-icon:empty::before { content: '\f145'; }
#main-menu .panel[menuitemname*="Store"] > a .ycw-nav-icon:empty::before { content: '\f07a'; }
#main-menu .panel[menuitemname*="Announcements"] > a .ycw-nav-icon:empty::before { content: '\f0a1'; }
#main-menu .panel[menuitemname*="Knowledgebase"] > a .ycw-nav-icon:empty::before { content: '\f02d'; }
#main-menu .panel[menuitemname*="Network Status"] > a .ycw-nav-icon:empty::before { content: '\f080'; }
#main-menu .panel[menuitemname*="Affiliates"] > a .ycw-nav-icon:empty::before { content: '\f53a'; }
#main-menu .panel[menuitemname*="Contact Us"] > a .ycw-nav-icon:empty::before { content: '\f0e0'; }

#main-menu .wdes-custom-nav > .panel > a:hover .ycw-nav-icon,
#main-menu .wdes-custom-nav > .panel > a[aria-expanded="true"] .ycw-nav-icon,
#main-menu .wdes-custom-nav > .panel.active > a .ycw-nav-icon {
    color: var(--ycw-primary) !important;
}

.ycw-subnav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    margin-right: 8px;
    color: #9aa4b2;
    font-size: 13px;
}

.shortcuts li a i,
.whm-sidebar .panel-title i,
.wdes-clientarea-panel-block .panel-title i,
.client-home-panels .panel-title i,
.ycw-domain-search-icon i,
.tiles .tile .icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.client-home-panels .panel-title,
.wdes-clientarea-panel-block .panel-title {
    gap: 8px;
}

.client-home-panels .panel-title > i,
.wdes-clientarea-panel-block .panel-title > i {
    flex: 0 0 30px;
    margin-right: 0;
}

.client-home-panels .panel-title .pull-right,
.wdes-clientarea-panel-block .panel-title .pull-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ycw-auth-shell {
    display: flex;
    min-height: 100vh;
    background: #f5f7fb;
}

.ycw-auth-visual {
    position: relative;
    flex: 0 0 46%;
    min-width: 420px;
    color: #fff;
    background: radial-gradient(circle at 30% 12%, rgba(255, 89, 0, .28), transparent 18%), radial-gradient(circle at 14% 86%, rgba(90, 118, 255, .35), transparent 22%), linear-gradient(180deg, #06145a 0%, #14236f 48%, #1b2c7f 100%);
    overflow: hidden;
}

.ycw-auth-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(255,255,255,.04), transparent 35%, transparent 65%, rgba(255,255,255,.02));
    pointer-events: none;
}

.ycw-auth-visual-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 42px 44px 46px;
}

.ycw-auth-visual-brand img {
    width: auto;
    max-width: 320px;
    max-height: 52px;
    filter: brightness(0) invert(1);
}

.ycw-auth-copy {
    margin: auto 0;
    max-width: 530px;
}

.ycw-auth-kicker {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 7px 11px;
    color: #ffb38a;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ycw-auth-copy h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(38px, 4vw, 64px);
    font-weight: 700;
    line-height: 1.04;
}

.ycw-auth-copy h1 span {
    color: #ff5900;
}

.ycw-auth-copy p {
    max-width: 470px;
    margin: 0 0 30px;
    color: rgba(255,255,255,.84);
    font-size: 18px;
    line-height: 1.65;
}

.ycw-auth-feature-list {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ycw-auth-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: #fff;
    font-size: 17px;
    line-height: 1.5;
}

.ycw-auth-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    color: #ffb38a;
    background: rgba(255, 89, 0, .16);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
}

.ycw-auth-visual-footer {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 30px;
    color: rgba(255,255,255,.66);
    font-size: 14px;
}

.ycw-auth-visual-footer a {
    color: rgba(255,255,255,.88) !important;
}

.ycw-auth-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 34px 44px;
}

.ycw-auth-top-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.ycw-auth-top-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #657390 !important;
    background: #fff;
    border: 1px solid #dfe5ef;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(14, 27, 47, .04);
}

.ycw-auth-top-action:hover {
    color: var(--ycw-primary) !important;
    border-color: #ffc9a9;
    box-shadow: 0 10px 24px rgba(255, 89, 0, .12);
}

.ycw-auth-form-area {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
}

.ycw-auth-form-card {
    width: min(100%, 520px);
}

.ycw-auth-form-head {
    margin-bottom: 26px;
}

.ycw-auth-form-head h1 {
    margin: 0 0 8px;
    color: #0c1e58;
    font-size: clamp(34px, 3vw, 54px);
    font-weight: 700;
}

.ycw-auth-form-head p {
    margin: 0;
    color: #6d7893;
    font-size: 19px;
}

.ycw-auth-form .form-group {
    margin-bottom: 18px;
}

.ycw-auth-form .wdes-label {
    display: block;
    margin-bottom: 10px;
    color: #0e1f57 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

.ycw-auth-form .form-control {
    min-height: 54px;
    padding: 13px 16px;
    border: 1px solid #d9e1ee !important;
    border-radius: 14px !important;
    font-size: 17px !important;
}

.ycw-auth-form .form-control:focus {
    border-color: #ff955c !important;
    box-shadow: 0 0 0 4px rgba(255, 89, 0, .11) !important;
}

.ycw-password-field {
    position: relative;
}

.ycw-password-field .form-control {
    padding-right: 54px;
}

.ycw-password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    color: #97a0b7;
    background: transparent;
    border: 0;
    transform: translateY(-50%);
}

.ycw-auth-form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 8px 0 22px;
}

.ycw-auth-form-meta .checkbox {
    margin: 0;
}

.ycw-auth-form-meta .checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #4b5875 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

.ycw-auth-form-meta .checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.ycw-auth-forgot {
    color: var(--ycw-primary) !important;
    font-size: 16px;
    font-weight: 700;
}

.ycw-auth-submit .wdes-submit {
    width: 100%;
    min-height: 58px;
    border-radius: 16px !important;
    font-size: 21px !important;
    font-weight: 700 !important;
    box-shadow: 0 16px 34px rgba(255, 89, 0, .18) !important;
}

.ycw-auth-register-prompt {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 22px;
    color: #66748f;
    font-size: 16px;
}

.ycw-auth-register-prompt .wdes-new-account {
    margin: 0;
    color: var(--ycw-primary) !important;
    font-size: 16px;
    font-weight: 700;
}

.ycw-auth-register-prompt .wdes-new-account span {
    display: none;
}

.ycw-auth-bottom-note {
    margin-top: 26px;
    color: #6e7994;
    text-align: center;
    font-size: 16px;
}

.ycw-auth-linkedaccounts {
    padding-left: 18px;
}

@media (max-width: 1050px) {
    .ycw-mobile-nav-close {
        display: inline-flex;
    }

    .ycw-brand-badge {
        display: none;
    }

    .wdes-sidebar {
        width: min(360px, calc(100vw - 20px)) !important;
    }
}

@media (max-width: 980px) {
    .ycw-auth-shell {
        flex-direction: column;
    }

    .ycw-auth-visual {
        min-width: 0;
    }

    .ycw-auth-visual-inner {
        min-height: 0;
        padding: 30px 24px;
    }

    .ycw-auth-copy {
        margin: 34px 0 0;
    }

    .ycw-auth-copy h1 {
        font-size: 40px;
    }

    .ycw-auth-copy p,
    .ycw-auth-feature-list li {
        font-size: 16px;
    }

    .ycw-auth-main {
        padding: 24px 20px 32px;
    }

    .ycw-auth-form-area {
        padding-top: 14px;
    }
}

@media (max-width: 620px) {
    .ycw-auth-visual-inner {
        padding: 24px 18px;
    }

    .ycw-auth-main {
        padding: 18px 16px 28px;
    }

    .ycw-auth-top-actions {
        justify-content: flex-start;
    }

    .ycw-auth-form-head h1 {
        font-size: 34px;
    }

    .ycw-auth-form-head p {
        font-size: 16px;
    }

    .ycw-auth-form .wdes-label {
        font-size: 16px !important;
    }

    .ycw-auth-form .form-control {
        min-height: 50px;
        font-size: 15px !important;
    }

    .ycw-auth-form-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .ycw-auth-submit .wdes-submit {
        min-height: 54px;
        font-size: 18px !important;
    }

    .ycw-auth-register-prompt,
    .ycw-auth-bottom-note {
        font-size: 14px;
    }

    .ycw-auth-linkedaccounts {
        padding-left: 0;
        margin-top: 22px;
    }
}


/* YCW portal polish v5 */
body.ycw-portal .header-lined {
    margin-bottom: 22px !important;
    border-bottom: 0 !important;
}

body.ycw-portal .header-lined h1 {
    margin: 0 0 8px !important;
    color: var(--ycw-ink) !important;
    font-size: clamp(30px, 2.8vw, 42px) !important;
    line-height: 1.12 !important;
}

body.ycw-portal .header-lined p,
body.ycw-portal .header-lined small {
    color: var(--ycw-muted) !important;
    font-size: 14px !important;
}

body.ycw-portal .table-container {
    margin: 0 0 22px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ycw-line);
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(15, 29, 51, .05);
}

body.ycw-portal .table-container.clearfix::before,
body.ycw-portal .table-container.clearfix::after {
    display: none !important;
    content: none !important;
}

body.ycw-portal .dataTables_wrapper {
    padding: 0;
    background: transparent !important;
}

body.ycw-portal .dataTables_wrapper .row {
    margin-right: 0;
    margin-left: 0;
}

body.ycw-portal .dataTables_wrapper .listtable,
body.ycw-portal .dataTables_wrapper > .row:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: #fff !important;
    border-bottom: 1px solid var(--ycw-line);
}

body.ycw-portal .dataTables_wrapper .dataTables_length,
body.ycw-portal .dataTables_wrapper .dataTables_filter {
    float: none !important;
    margin: 0 !important;
}

body.ycw-portal .dataTables_wrapper .dataTables_length label,
body.ycw-portal .dataTables_wrapper .dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--ycw-muted) !important;
    font-size: 12px;
    font-weight: 600;
}

body.ycw-portal .dataTables_wrapper .dataTables_filter input,
body.ycw-portal .dataTables_wrapper .dataTables_length select {
    height: 42px;
    padding: 9px 14px;
    color: var(--ycw-ink) !important;
    background: #f8fafc !important;
    border: 1px solid var(--ycw-line) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

body.ycw-portal .dataTables_wrapper .dataTables_filter input {
    min-width: 240px;
}

body.ycw-portal .dataTables_wrapper .dataTables_filter input:focus,
body.ycw-portal .dataTables_wrapper .dataTables_length select:focus {
    border-color: #ffad80 !important;
    box-shadow: 0 0 0 4px rgba(255, 89, 0, .10) !important;
}

body.ycw-portal table.table-list {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
}

body.ycw-portal table.table-list > thead > tr > th {
    padding: 15px 18px !important;
    color: #70809a !important;
    background: #f8fafc !important;
    border-top: 0 !important;
    border-bottom: 1px solid var(--ycw-line) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .05em;
    text-transform: uppercase;
    vertical-align: middle;
}

body.ycw-portal table.table-list > tbody > tr > td {
    padding: 18px !important;
    color: var(--ycw-ink-2) !important;
    background: #fff !important;
    border-top: 0 !important;
    border-bottom: 1px solid #edf1f5 !important;
    vertical-align: middle !important;
    font-size: 14px !important;
}

body.ycw-portal table.table-list > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}

body.ycw-portal table.table-list > tbody > tr:hover > td {
    background: #fcfdff !important;
}

body.ycw-portal .table-list .status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0;
    border: 1px solid transparent;
}

body.ycw-portal .table-list .status.status-cancelled,
body.ycw-portal .table-list .status.status-cancelled,
body.ycw-portal .table-list .status.status-cancelled,
body.ycw-portal .table-list .status.status-Cancelled {
    color: #7a858f !important;
    background: #f5f7fa !important;
    border-color: #dbe3ec !important;
}

body.ycw-portal .table-list .status.status-unpaid,
body.ycw-portal .table-list .status.status-Unpaid {
    color: #b45309 !important;
    background: #fff7ed !important;
    border-color: #fed7aa !important;
}

body.ycw-portal .table-list .status.status-paid,
body.ycw-portal .table-list .status.status-Paid {
    color: #0f766e !important;
    background: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
}

body.ycw-portal .table-list .responsive-edit-button .btn {
    min-height: 38px;
    border-radius: 10px !important;
}

body.ycw-portal .dataTables_wrapper .dataTables_info,
body.ycw-portal .dataTables_wrapper .dataTables_paginate {
    float: none !important;
}

body.ycw-portal .dataTables_wrapper > .row:last-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px 18px;
    border-top: 1px solid var(--ycw-line);
    background: #fff !important;
}

body.ycw-portal .dataTables_wrapper .dataTables_info {
    padding-top: 0 !important;
    color: var(--ycw-muted) !important;
    font-size: 12px;
    font-weight: 500;
}

body.ycw-portal .dataTables_wrapper .pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

body.ycw-portal .dataTables_wrapper .pagination > li > a,
body.ycw-portal .dataTables_wrapper .pagination > li > span {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    color: var(--ycw-ink-2) !important;
    background: #fff !important;
    border: 1px solid var(--ycw-line) !important;
    border-radius: 10px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.ycw-portal .dataTables_wrapper .pagination > .active > a,
body.ycw-portal .dataTables_wrapper .pagination > .active > span,
body.ycw-portal .dataTables_wrapper .pagination > li > a:hover,
body.ycw-portal .dataTables_wrapper .pagination > li > span:hover {
    color: #fff !important;
    background: var(--ycw-primary) !important;
    border-color: var(--ycw-primary) !important;
}

body.ycw-portal .whm-sidebar .panel,
body.ycw-portal .whm-sidebar .panel-sidebar {
    overflow: hidden;
    background: #fff !important;
    border: 1px solid var(--ycw-line) !important;
    border-radius: 16px !important;
    box-shadow: 0 7px 22px rgba(14, 27, 47, .05) !important;
}

body.ycw-portal .whm-sidebar .panel-heading {
    padding: 18px 18px 16px !important;
    background: #fff !important;
    border-bottom: 1px solid #eef2f7 !important;
}

body.ycw-portal .whm-sidebar .panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ycw-ink) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

body.ycw-portal .whm-sidebar .panel-body,
body.ycw-portal .whm-sidebar .list-group {
    padding: 12px 0 !important;
    background: #fff !important;
}

body.ycw-portal .whm-sidebar .list-group-item {
    margin: 0 12px 8px;
    padding: 12px 14px !important;
    color: var(--ycw-ink-2) !important;
    background: #fff !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    font-size: 14px !important;
}

body.ycw-portal .whm-sidebar .list-group-item:hover,
body.ycw-portal .whm-sidebar .list-group-item.active {
    color: var(--ycw-primary) !important;
    background: #fff5ef !important;
    border-color: #ffd6c1 !important;
}

body.ycw-portal .whm-sidebar .badge {
    color: #fff !important;
    background: var(--ycw-primary) !important;
}

body.ycw-portal .panel.panel-default,
body.ycw-portal .card,
body.ycw-portal .well {
    border-radius: 16px !important;
}

@media (max-width: 991px) {
    body.ycw-portal .dataTables_wrapper .listtable,
    body.ycw-portal .dataTables_wrapper > .row:first-child,
    body.ycw-portal .dataTables_wrapper > .row:last-child {
        flex-direction: column;
        align-items: stretch;
    }

    body.ycw-portal .dataTables_wrapper .dataTables_filter input {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 620px) {
    body.ycw-portal .table-container {
        border-radius: 14px;
    }

    body.ycw-portal table.table-list > thead > tr > th,
    body.ycw-portal table.table-list > tbody > tr > td {
        padding: 14px 12px !important;
        font-size: 13px !important;
    }

    body.ycw-portal .dataTables_wrapper .listtable,
    body.ycw-portal .dataTables_wrapper > .row:first-child,
    body.ycw-portal .dataTables_wrapper > .row:last-child {
        padding: 14px;
    }

    body.ycw-portal .dataTables_wrapper .pagination {
        flex-wrap: wrap;
    }
}


/* YCW portal polish v6 */
/* Login/register pages should use the full canvas and not sit boxed inside the generic content wrapper */
body.template-login .wdes-content,
body.template-clientregister .wdes-content {
    width: 100% !important;
    max-width: none !important;
    flex-basis: 100% !important;
    padding: 0 !important;
}

body.template-login .main-content,
body.template-clientregister .main-content {
    min-height: 100vh !important;
    padding: 0 !important;
}

body.template-login section#main-body > .container,
body.template-clientregister section#main-body > .container,
body.template-login section#main-body > .container-fluid,
body.template-clientregister section#main-body > .container-fluid {
    width: 100% !important;
    max-width: none !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

body.template-login .ycw-auth-shell,
body.template-clientregister .ycw-auth-shell {
    width: 100%;
}

body.template-login .ycw-auth-visual,
body.template-clientregister .ycw-auth-visual {
    flex: 0 0 44%;
    min-width: 500px;
}

body.template-login .ycw-auth-visual-inner,
body.template-clientregister .ycw-auth-visual-inner {
    padding: 52px 56px 50px;
}

body.template-login .ycw-auth-main,
body.template-clientregister .ycw-auth-main {
    padding: 34px 56px 42px;
}

body.template-login .ycw-auth-form-card,
body.template-clientregister .ycw-auth-form-card {
    width: min(100%, 560px);
}

/* Navigation icons: disable the legacy pseudo icon positioner and use the new inline icon blocks only */
#main-menu .wdes-custom-nav > .panel > a.menu-icon-new::before,
#main-menu .wdes-custom-nav > .panel > a::before {
    content: none !important;
    display: none !important;
}

#main-menu .wdes-custom-nav > .panel > a > i:first-child {
    display: none !important;
}

#main-menu .wdes-custom-nav > .panel > a {
    gap: 12px;
    padding: 10px 14px !important;
}

#main-menu .wdes-custom-nav > .panel > a .ycw-nav-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin: 0 !important;
    color: #718096 !important;
    background: #f3f5f8;
    border: 1px solid #e8edf3;
    border-radius: 9px;
}

#main-menu .wdes-custom-nav > .panel > a .ycw-nav-label {
    flex: 1 1 auto;
    min-width: 0;
}

#main-menu .wdes-custom-nav > .panel > a .fa-angle-down {
    flex: 0 0 auto;
    margin-left: auto !important;
}

#main-menu .wdes-custom-nav > .panel > a:hover .ycw-nav-icon,
#main-menu .wdes-custom-nav > .panel > a[aria-expanded="true"] .ycw-nav-icon,
#main-menu .wdes-custom-nav > .panel.active > a .ycw-nav-icon {
    color: var(--ycw-primary) !important;
    background: #ffeadd !important;
    border-color: #ffd5c0 !important;
}

#main-menu .wdes-custom-nav .ycw-subnav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    margin-right: 8px;
}

/* Breadcrumb cleanup: remove the legacy arrow-pill styling and use a clean inline breadcrumb */
.header-lined .breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 18px !important;
    padding: 0 !important;
}

.header-lined .breadcrumb > li {
    display: inline-flex;
    align-items: center;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--ycw-muted) !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.header-lined .breadcrumb > li::after {
    content: none !important;
    display: none !important;
}

.header-lined .breadcrumb > li + li::before {
    content: "/" !important;
    display: inline-block !important;
    padding: 0 10px;
    color: #b2bac7 !important;
    background: transparent !important;
}

.header-lined .breadcrumb > li > a {
    color: var(--ycw-muted) !important;
}

.header-lined .breadcrumb > .active,
.header-lined .breadcrumb > .active a {
    color: var(--ycw-ink-2) !important;
}

#active-link,
#active-link::before,
#active-link::after {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    content: none !important;
}

@media (max-width: 1280px) {
    body.template-login .ycw-auth-visual,
    body.template-clientregister .ycw-auth-visual {
        min-width: 430px;
    }

    body.template-login .ycw-auth-visual-inner,
    body.template-clientregister .ycw-auth-visual-inner {
        padding: 42px 36px 40px;
    }

    body.template-login .ycw-auth-main,
    body.template-clientregister .ycw-auth-main {
        padding: 28px 36px 36px;
    }
}

@media (max-width: 980px) {
    body.template-login .ycw-auth-visual,
    body.template-clientregister .ycw-auth-visual {
        min-width: 0;
    }
}


/* YCW portal polish v7 */
/* DataTables correction: keep the toolbar rows flex, but never the actual table element itself. */
body.ycw-portal .dataTables_wrapper .listtable,
body.ycw-portal table.listtable,
body.ycw-portal table.table-list {
    display: table !important;
    width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 0 !important;
}

body.ycw-portal .dataTables_wrapper > .row:first-child,
body.ycw-portal .dataTables_wrapper > .row:last-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

body.ycw-portal .dataTables_wrapper > .row:first-child {
    padding: 18px 20px;
    background: #fff !important;
    border-bottom: 1px solid var(--ycw-line);
}

body.ycw-portal .dataTables_wrapper > .row:last-child {
    padding: 16px 20px 18px;
    background: #fff !important;
    border-top: 1px solid var(--ycw-line);
}

body.ycw-portal .dataTables_wrapper > .row:first-child > [class*="col-"],
body.ycw-portal .dataTables_wrapper > .row:last-child > [class*="col-"],
body.ycw-portal .dataTables_wrapper > .row:first-child > div,
body.ycw-portal .dataTables_wrapper > .row:last-child > div {
    width: auto !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

body.ycw-portal .dataTables_wrapper .dataTables_filter {
    margin-left: auto !important;
    text-align: right !important;
}

body.ycw-portal .dataTables_wrapper .dataTables_length {
    text-align: left !important;
}

body.ycw-portal .dataTables_wrapper .dataTables_paginate {
    margin-left: auto !important;
    text-align: right !important;
}

body.ycw-portal .dataTables_wrapper .dataTables_info {
    text-align: left !important;
}

body.ycw-portal table.listtable > thead > tr > th,
body.ycw-portal table.table-list > thead > tr > th {
    padding: 16px 18px !important;
    color: #70809a !important;
    background: #f8fafc !important;
    border-top: 0 !important;
    border-bottom: 1px solid var(--ycw-line) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .05em;
    text-transform: uppercase;
    vertical-align: middle;
}

body.ycw-portal table.listtable > tbody > tr > td,
body.ycw-portal table.table-list > tbody > tr > td {
    padding: 18px !important;
    color: var(--ycw-ink-2) !important;
    background: #fff !important;
    border-top: 0 !important;
    border-bottom: 1px solid #edf1f5 !important;
    vertical-align: middle !important;
    font-size: 14px !important;
}

body.ycw-portal table.listtable > tbody > tr:last-child > td,
body.ycw-portal table.table-list > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}

body.ycw-portal table.listtable > tbody > tr:hover > td,
body.ycw-portal table.table-list > tbody > tr:hover > td {
    background: #fcfdff !important;
}

@media (max-width: 767px) {
    body.ycw-portal .dataTables_wrapper > .row:first-child,
    body.ycw-portal .dataTables_wrapper > .row:last-child {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    body.ycw-portal .dataTables_wrapper .dataTables_filter,
    body.ycw-portal .dataTables_wrapper .dataTables_paginate {
        margin-left: 0 !important;
        text-align: left !important;
    }

    body.ycw-portal .dataTables_wrapper .dataTables_filter input {
        min-width: 0;
        width: 100% !important;
    }
}
