/*
 * Webberdoo WHMCS Theme — Phase 1 Foundation
 * Based on WHMCS Twenty-One. Keep Twenty-One untouched and select this theme in WHMCS.
 */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&display=swap');

:root {
    /* QUICK EDIT CONTROLS */
    --wd-font-family: 'Be Vietnam Pro', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --wd-font-body: 14px;
    --wd-font-nav: 14px;
    --wd-font-button: 14px;
    --wd-font-form: 14px;
    --wd-font-footer: 14px;
    --wd-font-meta: 14px;

    --wd-primary: #2036bd;
    --wd-primary-hover: #172a9d;
    --wd-primary-soft: #eef1ff;
    --wd-tertiary: #6f45c8;
    --wd-ink: #171923;
    --wd-muted: #626779;
    --wd-border: #e3e5ee;
    --wd-surface: #f9f9fb;
    --wd-surface-2: #f3f3f7;
    --wd-white: #ffffff;
    --wd-footer: #232527;

    --wd-radius-sm: 10px;
    --wd-radius: 14px;
    --wd-radius-lg: 22px;
    --wd-shadow: 0 14px 36px rgba(34, 42, 75, .08);
    --wd-content-width: 1280px;
}

html { font-size: 100%; }
body,
body.primary-bg-color {
    font-family: var(--wd-font-family);
    font-size: var(--wd-font-body);
    line-height: 1.65;
    color: var(--wd-ink);
    background: var(--wd-surface);
}

body p,
body li,
body td,
body th,
body label,
body input,
body select,
body textarea,
body .form-control,
body .dropdown-item,
body .list-group-item,
body .alert,
body .nav-link,
body .btn {
    font-size: 14px;
}

a { color: var(--wd-primary); }
a:hover { color: var(--wd-primary-hover); }

.container { max-width: var(--wd-content-width); }

/* Header */
.header {
    background: rgba(255,255,255,.96);
    box-shadow: 0 1px 12px rgba(20, 27, 60, .06);
    position: relative;
    z-index: 30;
}
.header .topbar {
    background: var(--wd-surface-2);
    border-bottom: 1px solid var(--wd-border);
}
.header .topbar .btn,
.header .topbar .input-group-text { font-size: var(--wd-font-nav); }
.header .navbar-light {
    min-height: 78px;
    background: var(--wd-white);
    border-bottom: 1px solid rgba(227,229,238,.75);
}
.header .navbar-brand {
    color: var(--wd-primary) !important;
    font-weight: 700;
    letter-spacing: -.02em;
    font-size: 24px;
}
.header .navbar-brand .logo-img { max-height: 38px; width: auto; }
.header .main-navbar-wrapper {
    background: var(--wd-white);
    border-bottom: 1px solid var(--wd-border);
}
.header .main-navbar-wrapper .nav-link,
.header .toolbar .nav-link {
    color: #4c5263;
    font-size: var(--wd-font-nav);
    font-weight: 600;
}
.header .main-navbar-wrapper .nav-link:hover,
.header .main-navbar-wrapper .active > .nav-link { color: var(--wd-primary); }
.header .cart-btn {
    border-radius: var(--wd-radius-sm);
    background: var(--wd-primary-soft);
    color: var(--wd-primary) !important;
}
.header .badge-info { background: var(--wd-primary); }

/* Main page frame */
section#main-body,
.main-content { background: transparent; }
section#main-body { padding-top: 42px; padding-bottom: 80px; }
.main-content > .container { max-width: var(--wd-content-width); }

/* Typography */
h1,h2,h3,h4,h5,h6,
.h1,.h2,.h3,.h4,.h5,.h6 {
    font-family: var(--wd-font-family);
    color: var(--wd-ink);
    letter-spacing: -.02em;
}
h1,.h1 { font-weight: 700; }
h2,.h2,h3,.h3 { font-weight: 600; }
.page-header h1 { font-weight: 700; }
.text-muted { color: var(--wd-muted) !important; }

/* Buttons */
.btn {
    min-height: 42px;
    border-radius: var(--wd-radius-sm);
    font-family: var(--wd-font-family);
    font-size: var(--wd-font-button);
    font-weight: 600;
    padding: .65rem 1rem;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary,
.btn-success,
.bg-color-blue {
    background-color: var(--wd-primary) !important;
    border-color: var(--wd-primary) !important;
}
.btn-primary:hover,
.btn-success:hover {
    background-color: var(--wd-primary-hover) !important;
    border-color: var(--wd-primary-hover) !important;
    box-shadow: 0 10px 24px rgba(32,54,189,.18);
}
.btn-outline-primary { color: var(--wd-primary); border-color: var(--wd-primary); }
.btn-outline-primary:hover { background: var(--wd-primary); border-color: var(--wd-primary); }
.btn-default,
.btn-light { background: var(--wd-white); border-color: var(--wd-border); color: var(--wd-ink); }

/* Forms */
.form-control,
.custom-select,
.input-group-text,
select.form-control {
    min-height: 44px;
    border-radius: var(--wd-radius-sm);
    border-color: var(--wd-border);
    background: var(--wd-white);
    font-size: var(--wd-font-form);
}
.form-control:focus,
.custom-select:focus {
    border-color: rgba(32,54,189,.65);
    box-shadow: 0 0 0 .2rem rgba(32,54,189,.1);
}

/* Cards and panels */
.card,
.panel,
.tile,
.client-home-cards .card,
.sidebar .panel,
.list-group {
    border: 1px solid var(--wd-border);
    border-radius: var(--wd-radius);
    box-shadow: 0 8px 24px rgba(34,42,75,.05);
    overflow: hidden;
    background: var(--wd-white);
}
.card-header,
.card-footer {
    background: var(--wd-white);
    border-color: var(--wd-border);
}
.card-title { font-weight: 600; }
.list-group-item { border-color: var(--wd-border); }
.list-group-item.active {
    background: var(--wd-primary);
    border-color: var(--wd-primary);
}

/* Client-area tiles */
.tiles .tile {
    margin: 6px;
    min-height: 155px;
    background: var(--wd-white);
}
.tiles .tile:hover { box-shadow: var(--wd-shadow); }
.tiles .tile .stat { color: var(--wd-primary); font-weight: 700; }
.tiles .tile .title { color: var(--wd-muted); font-size: 14px; }
.tiles .tile i { color: var(--wd-primary); }
.tiles .tile .highlight { height: 4px; }

/* Sidebars */
.sidebar .list-group-item,
.sidebar .panel-sidebar a { font-size: 14px; }
.sidebar .list-group-item.active,
.sidebar .panel-sidebar .list-group-item.active {
    color: var(--wd-white);
    background: var(--wd-primary);
}

/* Tables */
.table { background: var(--wd-white); }
.table thead th {
    border-bottom: 1px solid var(--wd-border);
    color: #4a5061;
    font-weight: 600;
}
.table td,.table th { border-top-color: var(--wd-border); vertical-align: middle; }

/* Alerts */
.alert { border-radius: var(--wd-radius-sm); border-width: 1px; }

/* Login/auth */
.logincontainer { max-width: 520px; }
.logincontainer .card,
.card-body.login-card-body {
    border-radius: var(--wd-radius-lg);
    box-shadow: var(--wd-shadow);
}

/* Footer */
.footer {
    background: var(--wd-footer) !important;
    color: rgba(255,255,255,.72);
    padding: 56px 0 34px;
    border-top: 0;
}
.footer .nav-link,
.footer .copyright,
.footer .btn {
    color: rgba(255,255,255,.72) !important;
    font-size: var(--wd-font-footer);
}
.footer .nav-link:hover { color: #fff !important; }
.footer .btn { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); }

/* Modals */
.modal-content { border: 0; border-radius: var(--wd-radius); box-shadow: var(--wd-shadow); }

/* Pagination */
.page-link { color: var(--wd-primary); border-color: var(--wd-border); font-size: 14px; }
.page-item.active .page-link { background: var(--wd-primary); border-color: var(--wd-primary); }

/* Responsive */
@media (max-width: 1199.98px) {
    .header .main-navbar-wrapper { box-shadow: none; }
    section#main-body { padding-top: 28px; }
}
@media (max-width: 767.98px) {
    :root { --wd-font-body: 14px; }
    .header .navbar-light { min-height: 68px; }
    .header .navbar-brand { font-size: 21px; }
    section#main-body { padding-top: 22px; padding-bottom: 54px; }
    .btn { width: auto; }
}

/* =====================================================
   Webberdoo WHMCS — Phase 1.1 Foundation Corrections
   ===================================================== */
:root {
    --wd-font-small: 14px;
    --wd-header-height: 72px;
    --wd-order-width: 1180px;
}

/* Tighter, storefront-like header */
.header .navbar-light {
    min-height: var(--wd-header-height);
}
.header .navbar-brand .logo-img {
    max-height: 34px;
}
.header .main-navbar-wrapper {
    box-shadow: 0 1px 0 rgba(20,27,60,.05);
}
.header .main-navbar-wrapper .container {
    min-height: 50px;
}
.header .main-navbar-wrapper .nav-link,
.header .toolbar .nav-link,
.header .form-control,
.header .btn {
    font-size: 14px !important;
}
.header .search .form-control {
    min-width: 250px;
}
.master-breadcrumb {
    background: #f4f5f8;
    border-bottom: 1px solid var(--wd-border);
}
.master-breadcrumb .breadcrumb {
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 0;
}

/* Prevent inherited shopping-cart structures from appearing unstyled. */
.webberdoo-cart #main-body > .container,
.webberdoo-cart #main-body .primary-content {
    max-width: var(--wd-order-width);
    margin-left: auto;
    margin-right: auto;
}
.webberdoo-cart #main-body {
    background: #f9f9fb;
}
.webberdoo-cart .primary-content {
    width: 100%;
}

/* Standard Cart parent templates: these pages are inherited by the Webberdoo
   order form, so they need Webberdoo styling too. */
#order-standard_cart {
    font-family: var(--wd-font-family);
    color: var(--wd-ink);
    font-size: 14px;
}
#order-standard_cart p,
#order-standard_cart li,
#order-standard_cart td,
#order-standard_cart th,
#order-standard_cart label,
#order-standard_cart input,
#order-standard_cart select,
#order-standard_cart textarea,
#order-standard_cart .form-control,
#order-standard_cart .btn,
#order-standard_cart a,
#order-standard_cart small {
    font-size: 14px;
}
#order-standard_cart h1,
#order-standard_cart h2,
#order-standard_cart h3,
#order-standard_cart h4 {
    font-family: var(--wd-font-family);
    color: var(--wd-ink);
    letter-spacing: -.02em;
}
#order-standard_cart .cart-sidebar .panel,
#order-standard_cart .cart-sidebar .card,
#order-standard_cart .panel,
#order-standard_cart .card,
#order-standard_cart .view-cart-items,
#order-standard_cart .order-summary,
#order-standard_cart .product-info,
#order-standard_cart .product-configurable-options,
#order-standard_cart .sub-heading {
    border-color: var(--wd-border);
    border-radius: 14px;
    box-shadow: 0 8px 26px rgba(34,42,75,.05);
}
#order-standard_cart .panel-heading,
#order-standard_cart .card-header,
#order-standard_cart .order-summary h2,
#order-standard_cart .order-summary .summary-container {
    border-color: var(--wd-border);
}
#order-standard_cart .order-summary h2 {
    background: var(--wd-primary);
    color: #fff;
    border-radius: 14px 14px 0 0;
    font-size: 18px;
    font-weight: 600;
}
#order-standard_cart .btn-primary,
#order-standard_cart .btn-success,
#order-standard_cart .checkout-btn,
#order-standard_cart #btnCompleteOrder {
    background: var(--wd-primary) !important;
    border-color: var(--wd-primary) !important;
    color: #fff !important;
    border-radius: 10px;
    min-height: 44px;
    font-weight: 600;
}
#order-standard_cart .btn-primary:hover,
#order-standard_cart .btn-success:hover,
#order-standard_cart .checkout-btn:hover,
#order-standard_cart #btnCompleteOrder:hover {
    background: var(--wd-primary-hover) !important;
    border-color: var(--wd-primary-hover) !important;
}
#order-standard_cart .form-control,
#order-standard_cart .custom-select,
#order-standard_cart select,
#order-standard_cart input[type="text"],
#order-standard_cart input[type="email"],
#order-standard_cart input[type="password"] {
    min-height: 44px;
    border-color: var(--wd-border);
    border-radius: 10px;
}
#order-standard_cart .cart-sidebar .panel-heading,
#order-standard_cart .cart-sidebar .card-header {
    font-size: 16px;
    font-weight: 600;
    background: #fff;
}
#order-standard_cart .cart-sidebar .list-group-item.active,
#order-standard_cart .cart-sidebar a.active {
    background: var(--wd-primary);
    border-color: var(--wd-primary);
    color: #fff;
}
#order-standard_cart .alert-warning {
    border: 1px solid #f2dda1;
    background: #fff8dc;
    color: #725815;
    border-radius: 10px;
}

/* Standard Cart ships desktop/mobile sidebar variants. If its parent CSS failed
   to load, both can become visible. These restore the expected responsive state. */
@media (min-width: 768px) {
    #order-standard_cart .cart-sidebar.mobile-sidebar,
    #order-standard_cart .sidebar-collapsed,
    #order-standard_cart .categories-collapsed {
        display: none !important;
    }
}
@media (max-width: 767.98px) {
    #order-standard_cart .cart-sidebar:not(.mobile-sidebar) {
        margin-bottom: 24px;
    }
}

/* Remove accidental duplicate sidebar blocks in Review & Checkout when the
   inherited template exposes both full and collapsed variants without parent CSS. */
#order-standard_cart .cart-sidebar + .cart-sidebar,
#order-standard_cart .sidebar-categories + .sidebar-categories,
#order-standard_cart .sidebar-actions + .sidebar-actions,
#order-standard_cart .sidebar-currency + .sidebar-currency {
    display: none !important;
}

/* Product descriptions can contain administrator-authored image markup. */
#order-modern .description img,
#order-standard_cart .product-desc img,
#order-standard_cart .product-info img {
    display: block;
    max-width: 100%;
    height: auto !important;
    margin: 14px 0;
    border-radius: 10px;
}

/* Client-area foundation cleanup */
.client-home-cards .card,
.client-home-cards .tile,
.client-home-panels .panel {
    border-radius: 14px;
}
.client-home-cards .card-header,
.client-home-panels .panel-heading {
    font-size: 16px;
    font-weight: 600;
}

/* Footer aligned to the Symfony Webberdoo visual language */
.wd-footer {
    margin-top: 0;
}
.wd-footer-grid {
    display: grid;
    grid-template-columns: 1.7fr repeat(4, 1fr);
    gap: 42px;
    align-items: start;
}
.wd-footer-grid h3 {
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    margin: 0 0 16px;
}
.wd-footer-grid a {
    color: rgba(255,255,255,.74);
    display: block;
    font-size: 14px;
    margin: 0 0 9px;
}
.wd-footer-grid a:hover {
    color: #fff;
    text-decoration: none;
}
.wd-footer-brand p {
    color: rgba(255,255,255,.67);
    max-width: 330px;
    margin-top: 16px;
    font-size: 14px;
}
.wd-footer-logo {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 700;
}
.wd-footer-logo img {
    max-height: 34px;
    width: auto;
    filter: brightness(0) invert(1);
}
.wd-footer-mark {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff;
    color: var(--wd-primary);
}
.wd-footer-bottom {
    margin-top: 42px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.wd-footer-tools .btn {
    min-height: 38px;
    padding: .45rem .7rem;
}

@media (max-width: 991.98px) {
    .wd-footer-grid { grid-template-columns: repeat(2, 1fr); }
    .wd-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
    .wd-footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .wd-footer-brand { grid-column: auto; }
    .wd-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ========================================================================
   PHASE 2 — FULL WEBBERDOO CLIENT AREA CONVERSION
   Keeps WHMCS functionality intact while presenting it as Webberdoo.
   ======================================================================== */

:root {
    --wd-account-bg: #f6f7fb;
    --wd-account-card: #ffffff;
    --wd-account-blue: #2036bd;
    --wd-account-purple: #6f45c8;
    --wd-account-text: #171923;
    --wd-account-muted: #646a7c;
    --wd-account-border: #e5e7f0;
    --wd-account-radius: 18px;
    --wd-account-radius-lg: 26px;
    --wd-account-shadow: 0 18px 48px rgba(33, 44, 93, .08);
}

.wd-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--wd-primary);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

/* Template-aware shell */
body.wd-logged-in:not(.webberdoo-cart) #main-body {
    background: var(--wd-account-bg);
    padding-top: 34px;
    padding-bottom: 70px;
}
body.wd-logged-in:not(.webberdoo-cart) .master-breadcrumb {
    background: var(--wd-account-bg);
    border-bottom: 0;
}
body.wd-logged-in:not(.webberdoo-cart) .master-breadcrumb .breadcrumb {
    padding-top: 18px;
    padding-bottom: 4px;
}
body.wd-logged-in:not(.webberdoo-cart) .primary-content > .page-header,
body.wd-logged-in:not(.webberdoo-cart) .primary-content > h1:first-child,
body.wd-logged-in:not(.webberdoo-cart) .primary-content > h2:first-child {
    margin-bottom: 24px;
}

/* Persistent Webberdoo account sidebar — no WHMCS features are removed. */
body.wd-logged-in:not(.webberdoo-cart) .sidebar .card-sidebar {
    overflow: hidden;
    border: 1px solid var(--wd-account-border);
    border-radius: var(--wd-account-radius);
    background: #fff;
    box-shadow: 0 10px 30px rgba(33, 44, 93, .05);
}
body.wd-logged-in:not(.webberdoo-cart) .sidebar .card-sidebar .card-header {
    padding: 18px 18px 12px;
    border: 0;
    background: #fff;
}
body.wd-logged-in:not(.webberdoo-cart) .sidebar .card-sidebar .card-title {
    color: var(--wd-account-text);
    font-size: 14px;
    font-weight: 700;
}
body.wd-logged-in:not(.webberdoo-cart) .sidebar .card-minimise { color: #a0a5b4; }
body.wd-logged-in:not(.webberdoo-cart) .sidebar .list-group {
    padding: 0 10px 10px;
}
body.wd-logged-in:not(.webberdoo-cart) .sidebar .list-group-item {
    min-height: 45px;
    margin: 2px 0;
    padding: 11px 12px;
    border: 0 !important;
    border-radius: 10px !important;
    color: #555d70;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    transition: .18s ease;
}
body.wd-logged-in:not(.webberdoo-cart) .sidebar .list-group-item:hover {
    color: var(--wd-primary);
    background: var(--wd-primary-soft);
}
body.wd-logged-in:not(.webberdoo-cart) .sidebar .list-group-item.active {
    color: #fff !important;
    background: linear-gradient(135deg, var(--wd-primary), #4357d9) !important;
    box-shadow: 0 8px 20px rgba(32, 54, 189, .18);
}
body.wd-logged-in:not(.webberdoo-cart) .sidebar .list-group-item i {
    width: 22px;
    text-align: center;
}
body.wd-logged-in:not(.webberdoo-cart) .sidebar .list-group-item .badge {
    background: #eef1ff;
    color: var(--wd-primary);
}
body.wd-logged-in:not(.webberdoo-cart) .sidebar .list-group-item.active .badge {
    background: rgba(255,255,255,.18);
    color: #fff;
}

/* Dashboard hero */
.wd-account-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 34px 38px;
    border-radius: var(--wd-account-radius-lg);
    color: #fff;
    background:
        radial-gradient(circle at 85% 10%, rgba(255,255,255,.16), transparent 28%),
        linear-gradient(135deg, #2036bd 0%, #3d4ed0 52%, #6f45c8 100%);
    box-shadow: 0 20px 48px rgba(32,54,189,.20);
}
.wd-account-hero:after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    right: -90px;
    bottom: -180px;
    border-radius: 50%;
    border: 44px solid rgba(255,255,255,.06);
}
.wd-account-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.wd-account-hero .wd-eyebrow { color: #dfe3ff; }
.wd-account-hero h1 {
    margin: 0 0 9px;
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -.035em;
    font-weight: 700;
}
.wd-account-hero p {
    max-width: 650px;
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: 14px;
}
.wd-account-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 0 0 auto;
}
.wd-hero-btn { min-height: 44px; padding: 11px 16px; border-radius: 11px; }

/* Dashboard metrics */
.wd-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 34px;
}
.wd-metric-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 104px;
    padding: 19px;
    color: var(--wd-account-text);
    border: 1px solid var(--wd-account-border);
    border-radius: var(--wd-account-radius);
    background: #fff;
    box-shadow: 0 8px 25px rgba(31,43,83,.045);
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.wd-metric-card:hover {
    color: var(--wd-account-text);
    transform: translateY(-3px);
    border-color: #d7dbec;
    box-shadow: var(--wd-account-shadow);
}
.wd-metric-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 13px;
    color: var(--wd-primary);
    background: var(--wd-primary-soft);
    font-size: 18px;
}
.wd-metric-copy { display: flex; min-width: 0; flex-direction: column; }
.wd-metric-copy strong { color: var(--wd-account-text); font-size: 23px; line-height: 1.1; }
.wd-metric-copy span { margin-top: 4px; color: var(--wd-account-muted); font-size: 14px; white-space: nowrap; }
.wd-metric-arrow { margin-left: auto; color: #b3b7c4; font-size: 13px; }

/* Dashboard content */
.wd-account-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 22px;
    align-items: start;
}
.wd-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}
.wd-section-heading h2 {
    margin: 0;
    color: var(--wd-account-text);
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -.025em;
}
.wd-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px;
}
.wd-quick-card {
    display: grid;
    grid-template-columns: 46px minmax(0,1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 19px;
    border: 1px solid var(--wd-account-border);
    border-radius: var(--wd-account-radius);
    color: var(--wd-account-text);
    background: #fff;
    text-decoration: none !important;
    transition: .18s ease;
}
.wd-quick-card:hover {
    color: var(--wd-account-text);
    transform: translateY(-2px);
    border-color: #d7dbec;
    box-shadow: 0 14px 34px rgba(31,43,83,.07);
}
.wd-quick-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    font-size: 18px;
}
.wd-quick-icon.wd-blue { color: var(--wd-primary); background: #eef1ff; }
.wd-quick-icon.wd-purple { color: var(--wd-tertiary); background: #f1ebff; }
.wd-quick-card h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.wd-quick-card p { margin: 0; color: var(--wd-account-muted); font-size: 14px; line-height: 1.55; }
.wd-quick-card > i { color: #b8bdca; font-size: 12px; }
.wd-side-feature,
.wd-side-links {
    padding: 22px;
    border: 1px solid var(--wd-account-border);
    border-radius: var(--wd-account-radius);
    background: #fff;
    box-shadow: 0 8px 25px rgba(31,43,83,.04);
}
.wd-side-feature {
    margin-bottom: 14px;
    background: linear-gradient(155deg,#fff 0%,#f3f5ff 100%);
}
.wd-side-feature h3,
.wd-side-links h3 { margin: 0 0 8px; color: var(--wd-account-text); font-size: 17px; font-weight: 700; }
.wd-side-feature p { margin: 0 0 17px; color: var(--wd-account-muted); font-size: 14px; }
.wd-side-links h3 { margin-bottom: 12px; }
.wd-side-links a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eef0f5;
    color: #555d70;
    font-size: 14px;
    text-decoration: none;
}
.wd-side-links a:last-child { border-bottom: 0; }
.wd-side-links a:hover { color: var(--wd-primary); }
.wd-side-links a span i { width: 24px; color: #9298aa; }
.wd-addon-output { margin: 28px 0; }
.wd-native-panels { margin-top: 34px; }
.wd-native-panel {
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid var(--wd-account-border);
    border-radius: var(--wd-account-radius);
    box-shadow: none;
}
.wd-native-panel .card-header { padding: 16px 18px; border-bottom: 1px solid var(--wd-account-border); background: #fff; }
.wd-native-panel .card-title { color: var(--wd-account-text); font-size: 15px; font-weight: 700; }
.wd-native-panel .card-body { padding: 18px; }
.wd-native-panel .list-group-item { padding: 13px 18px; font-size: 14px; }
.wd-native-panel .card-footer { border-top: 1px solid var(--wd-account-border); background: #fafbfe; }

/* AUTH — Stitch-inspired split screen */
body.wd-template-login .master-breadcrumb,
body[class*="wd-template-password-reset"] .master-breadcrumb,
body.wd-template-clientregister .master-breadcrumb { display: none; }
body.wd-template-login #main-body,
body[class*="wd-template-password-reset"] #main-body,
body.wd-template-clientregister #main-body {
    padding: 48px 0 70px;
    background:
        radial-gradient(circle at 15% 15%, rgba(32,54,189,.07), transparent 24%),
        radial-gradient(circle at 85% 15%, rgba(111,69,200,.07), transparent 24%),
        #f8f9fc;
}
body.wd-template-login #main-body > .container { max-width: 1180px; }
body.wd-template-login .primary-content { width: 100%; flex: 0 0 100%; max-width: 100%; }
.wd-auth-shell { max-width: 1120px; margin: 0 auto; }
.wd-auth-card {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    overflow: hidden;
    min-height: 650px;
    border: 1px solid var(--wd-account-border);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 28px 75px rgba(31,43,83,.11);
}
.wd-auth-form-panel { display: flex; flex-direction: column; justify-content: center; padding: 58px 58px 44px; }
.wd-auth-brand { display: inline-flex; align-items: center; gap: 9px; align-self: flex-start; margin-bottom: 50px; color: var(--wd-account-text); font-size: 19px; text-decoration: none; }
.wd-auth-brand:hover { color: var(--wd-account-text); text-decoration: none; }
.wd-auth-brand img { max-height: 34px; max-width: 180px; }
.wd-auth-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: #fff; background: var(--wd-primary); font-weight: 700; }
.wd-auth-copy { margin-bottom: 28px; }
.wd-auth-copy h1 { margin: 0 0 10px; color: var(--wd-account-text); font-size: 36px; line-height: 1.15; letter-spacing: -.035em; font-weight: 700; }
.wd-auth-copy p { margin: 0; color: var(--wd-account-muted); font-size: 14px; line-height: 1.65; }
.wd-auth-form .form-group { margin-bottom: 19px; }
.wd-auth-form label { margin-bottom: 8px; color: #343949; font-size: 14px; font-weight: 600; }
.wd-input-icon { position: relative; }
.wd-input-icon > i:first-child { position: absolute; z-index: 2; left: 15px; top: 50%; transform: translateY(-50%); color: #9ca1b2; font-size: 15px; }
.wd-input-icon .form-control { height: 50px; padding-left: 44px; border: 1px solid #dfe2eb; border-radius: 11px; background: #fff; font-size: 14px; }
.wd-input-icon .form-control:focus { border-color: #aab4ff; box-shadow: 0 0 0 3px rgba(32,54,189,.08); }
.wd-password-input .form-control { padding-right: 48px; }
.wd-password-input .btn-reveal-pw { position: absolute; z-index: 3; right: 6px; top: 6px; width: 38px; height: 38px; padding: 0; border: 0; color: #8c92a3; background: transparent; }
.wd-auth-small-link { color: var(--wd-primary); font-size: 14px; font-weight: 600; }
.wd-auth-options { display: flex; justify-content: space-between; margin: 2px 0 22px; }
.wd-check { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--wd-account-muted); font-size: 14px; }
.wd-check input { width: 16px; height: 16px; }
.wd-auth-submit { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; border-radius: 11px; font-size: 14px; }
.wd-auth-footer-copy { margin-top: 24px; color: var(--wd-account-muted); font-size: 14px; text-align: center; }
.wd-auth-footer-copy a { margin-left: 5px; font-weight: 700; }
.wd-auth-form-panel .providerLinkingFeedback + .login-form { margin: 0; }
.wd-auth-form-panel .social-signin-btns { margin-top: 22px; }

.wd-auth-visual {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 58px 48px;
    color: #fff;
    background: linear-gradient(145deg,#2036bd 0%,#3b4fd2 44%,#6f45c8 100%);
}
.wd-auth-glow { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.wd-auth-glow-one { width: 420px; height: 420px; right: -210px; top: -170px; background: rgba(255,255,255,.08); }
.wd-auth-glow-two { width: 300px; height: 300px; left: -180px; bottom: -110px; background: rgba(255,255,255,.05); }
.wd-auth-visual-copy { position: relative; z-index: 2; max-width: 470px; }
.wd-auth-kicker { display: block; margin-bottom: 13px; color: #d9ddff; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.wd-auth-visual h2 { margin: 0 0 12px; color: #fff; font-size: 32px; line-height: 1.22; letter-spacing: -.03em; }
.wd-auth-visual p { margin: 0; color: rgba(255,255,255,.76); font-size: 14px; }
.wd-auth-ui-stack { position: relative; z-index: 2; height: 310px; margin-top: 35px; }
.wd-auth-window { overflow: hidden; position: absolute; width: 88%; right: 0; bottom: 8px; border: 1px solid rgba(255,255,255,.22); border-radius: 16px; background: #f9faff; box-shadow: 0 35px 65px rgba(22,29,91,.30); transform: rotate(-2deg); }
.wd-auth-window-bar { display: flex; gap: 6px; height: 28px; align-items: center; padding: 0 12px; background: #edf0f7; }
.wd-auth-window-bar i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #c8ccda; }
.wd-auth-window-content { display: grid; grid-template-columns: 25% 1fr; height: 210px; }
.wd-mini-sidebar { background: #212d87; }
.wd-mini-content { padding: 22px; }
.wd-mini-content > span { display: block; width: 66%; height: 9px; margin-bottom: 12px; border-radius: 8px; background: #e3e6f0; }
.wd-mini-content > span:nth-child(2) { width: 85%; }
.wd-mini-content > span:nth-child(3) { width: 48%; }
.wd-mini-chart { height: 95px; margin-top: 24px; border-radius: 12px; background: linear-gradient(180deg,#e9ecff,#f7f8ff); position: relative; overflow: hidden; }
.wd-mini-chart:after { content:''; position:absolute; left:10%; right:8%; bottom:18%; height:45%; border-bottom:3px solid #5265d9; border-radius:50%; transform:skewY(-8deg); }
.wd-auth-float { position: absolute; display: flex; align-items: center; gap: 10px; min-width: 190px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.30); border-radius: 13px; color: #242a43; background: rgba(255,255,255,.95); box-shadow: 0 18px 40px rgba(21,29,92,.18); }
.wd-auth-float > i { display:grid; place-items:center; width:36px; height:36px; border-radius:10px; color:var(--wd-primary); background:#eef1ff; }
.wd-auth-float span { display:flex; flex-direction:column; }
.wd-auth-float strong { font-size:13px; }
.wd-auth-float small { color:#7c8292; font-size:11px; }
.wd-auth-float-top { left: 0; top: 75px; }
.wd-auth-float-bottom { left: 18px; bottom: 10px; }

/* Registration */
body.wd-template-clientregister #main-body > .container { max-width: 1100px; }
body.wd-template-clientregister .primary-content { width:100%; flex:0 0 100%; max-width:100%; }
.wd-register-intro { max-width: 780px; margin: 0 auto 30px; text-align: center; }
.wd-register-intro h1 { margin: 0 0 10px; color:var(--wd-account-text); font-size:38px; line-height:1.18; font-weight:700; letter-spacing:-.035em; }
.wd-register-intro > p { max-width: 690px; margin: 0 auto; color:var(--wd-account-muted); font-size:14px; }
.wd-register-benefits { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin-top:20px; }
.wd-register-benefits span { display:inline-flex; align-items:center; gap:7px; padding:8px 11px; border:1px solid #e1e4ee; border-radius:999px; color:#626879; background:#fff; font-size:14px; }
.wd-register-benefits i { color:var(--wd-primary); }
body.wd-template-clientregister #registration { max-width: 920px; margin: 0 auto; }
body.wd-template-clientregister #registration .card { overflow:hidden; border:1px solid var(--wd-account-border); border-radius:18px; box-shadow:0 10px 30px rgba(31,43,83,.045); }
body.wd-template-clientregister #registration .card-body { padding:28px !important; }
body.wd-template-clientregister #registration .card-title { margin-bottom:22px; color:var(--wd-account-text); font-size:18px; font-weight:700; }
body.wd-template-clientregister #registration .form-group { margin-bottom:16px; }
body.wd-template-clientregister #registration .field,
body.wd-template-clientregister #registration .form-control { min-height:48px; border:1px solid #dfe2eb; border-radius:10px; background:#fff; font-size:14px; }
body.wd-template-clientregister #registration .prepend-icon .field { padding-left:44px; }
body.wd-template-clientregister #registration .prepend-icon .field-icon { top:0; left:0; width:44px; height:48px; line-height:48px; color:#9aa0b2; }
body.wd-template-clientregister #registration .btn-lg.btn-primary { min-width:220px; min-height:50px; border-radius:11px; font-size:14px; }

/* Password recovery */
body[class*="wd-template-password-reset"] #main-body > .container { max-width: 720px; }
body[class*="wd-template-password-reset"] .primary-content { width:100%; flex:0 0 100%; max-width:100%; }
body[class*="wd-template-password-reset"] .card.mw-540 { overflow:hidden; width:100%; max-width:560px; border:1px solid var(--wd-account-border); border-radius:22px; box-shadow:0 22px 55px rgba(31,43,83,.09); }
body[class*="wd-template-password-reset"] .card.mw-540 .card-body { padding:42px !important; }
body[class*="wd-template-password-reset"] .h3 { color:var(--wd-account-text); font-size:28px; font-weight:700; letter-spacing:-.025em; }
body[class*="wd-template-password-reset"] .form-control { min-height:49px; border:1px solid #dfe2eb; border-radius:10px; font-size:14px; }
body[class*="wd-template-password-reset"] .input-group-text { border-color:#dfe2eb; background:#f8f9fc; }
body[class*="wd-template-password-reset"] .btn-primary { min-height:46px; padding:10px 22px; border-radius:10px; }

/* Account/profile/settings pages */
body.wd-logged-in:not(.webberdoo-cart) .primary-content > .card,
body.wd-logged-in:not(.webberdoo-cart) .primary-content > form > .card,
body.wd-logged-in:not(.webberdoo-cart) .primary-content .account-management .card {
    overflow: hidden;
    border: 1px solid var(--wd-account-border);
    border-radius: var(--wd-account-radius);
    background: #fff;
    box-shadow: 0 8px 25px rgba(31,43,83,.04);
}
body.wd-logged-in:not(.webberdoo-cart) .primary-content .card .card-header { border-color:var(--wd-account-border); background:#fff; }
body.wd-logged-in:not(.webberdoo-cart) .primary-content .card .card-body { padding:24px; }
body.wd-logged-in:not(.webberdoo-cart) .primary-content .card .card-title { color:var(--wd-account-text); font-size:18px; font-weight:700; }
body.wd-logged-in:not(.webberdoo-cart) .primary-content .form-control,
body.wd-logged-in:not(.webberdoo-cart) .primary-content .custom-select,
body.wd-logged-in:not(.webberdoo-cart) .primary-content input[type="text"],
body.wd-logged-in:not(.webberdoo-cart) .primary-content input[type="email"],
body.wd-logged-in:not(.webberdoo-cart) .primary-content input[type="password"],
body.wd-logged-in:not(.webberdoo-cart) .primary-content input[type="tel"],
body.wd-logged-in:not(.webberdoo-cart) .primary-content select,
body.wd-logged-in:not(.webberdoo-cart) .primary-content textarea {
    min-height:46px;
    border:1px solid #dfe2eb;
    border-radius:10px;
    background:#fff;
    font-size:14px;
}
body.wd-logged-in:not(.webberdoo-cart) .primary-content textarea { min-height:120px; }
body.wd-logged-in:not(.webberdoo-cart) .primary-content .form-control:focus,
body.wd-logged-in:not(.webberdoo-cart) .primary-content input:focus,
body.wd-logged-in:not(.webberdoo-cart) .primary-content select:focus,
body.wd-logged-in:not(.webberdoo-cart) .primary-content textarea:focus {
    border-color:#aab4ff;
    box-shadow:0 0 0 3px rgba(32,54,189,.08);
}
body.wd-logged-in:not(.webberdoo-cart) .primary-content label { color:#3d4354; font-size:14px; font-weight:600; }
body.wd-logged-in:not(.webberdoo-cart) .primary-content .btn { min-height:42px; border-radius:10px; font-size:14px; }
body.wd-logged-in:not(.webberdoo-cart) .primary-content .btn-sm { min-height:34px; }
body.wd-logged-in:not(.webberdoo-cart) .table-container,
body.wd-logged-in:not(.webberdoo-cart) .dataTables_wrapper {
    overflow:hidden;
    border:1px solid var(--wd-account-border);
    border-radius:var(--wd-account-radius);
    background:#fff;
}
body.wd-logged-in:not(.webberdoo-cart) table.table-list { margin-bottom:0; }
body.wd-logged-in:not(.webberdoo-cart) table.table-list thead th { padding:14px 16px; border-bottom:1px solid var(--wd-account-border); color:#6b7182; background:#fafbfe; font-size:14px; font-weight:700; }
body.wd-logged-in:not(.webberdoo-cart) table.table-list tbody td { padding:15px 16px; border-color:#eef0f5; vertical-align:middle; font-size:14px; }
body.wd-logged-in:not(.webberdoo-cart) .status { border-radius:999px; padding:5px 9px; font-size:12px; font-weight:700; }

/* Twenty-One user/account lists become cleaner product-style rows */
body.wd-logged-in .list-group-item { font-size:14px; }
body.wd-logged-in .card-footer { background:#fafbfe; }
body.wd-logged-in .alert { border-radius:12px; }

/* Responsive */
@media (max-width: 1199.98px) {
    .wd-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .wd-account-grid { grid-template-columns:1fr; }
    .wd-account-aside { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
    .wd-side-feature { margin-bottom:0; }
}
@media (max-width: 991.98px) {
    .wd-auth-card { grid-template-columns:1fr; }
    .wd-auth-visual { min-height:430px; }
    .wd-auth-form-panel { padding:44px; }
    .wd-auth-brand { margin-bottom:34px; }
}
@media (max-width: 767.98px) {
    body.wd-logged-in:not(.webberdoo-cart) #main-body { padding-top:22px; }
    .wd-account-hero { padding:28px 24px; border-radius:20px; }
    .wd-account-hero__content { align-items:flex-start; flex-direction:column; }
    .wd-metrics { grid-template-columns:1fr; }
    .wd-quick-grid { grid-template-columns:1fr; }
    .wd-account-aside { grid-template-columns:1fr; }
    .wd-auth-shell { padding:0 4px; }
    .wd-auth-card { min-height:auto; border-radius:20px; }
    .wd-auth-form-panel { padding:34px 24px 28px; }
    .wd-auth-copy h1 { font-size:30px; }
    .wd-auth-visual { min-height:390px; padding:35px 24px; }
    .wd-auth-visual h2 { font-size:27px; }
    .wd-auth-ui-stack { height:230px; }
    .wd-auth-window-content { height:160px; }
    .wd-auth-float { min-width:165px; padding:9px 10px; }
    .wd-register-intro h1 { font-size:31px; }
    body.wd-template-clientregister #registration .card-body { padding:20px !important; }
}
@media (max-width: 575.98px) {
    .wd-metric-card { min-height:92px; }
    .wd-account-hero__actions { width:100%; }
    .wd-account-hero__actions .btn { flex:1 1 100%; }
    .wd-auth-visual { display:none; }
    .wd-auth-card { display:block; }
    .wd-register-benefits { justify-content:flex-start; }
    .wd-register-benefits span { width:100%; border-radius:10px; }
}

/* =========================================================
   WEBBERDOO PHASE 2.1 — CLIENT AREA POLISH
   Keep every WHMCS feature; present native panels as Webberdoo UI.
   ========================================================= */

/* Registration: integrate the native WHMCS sidebar instead of leaving it
   floating separately from the account experience. */
.wd-template-clientregister #main-body > .container > .row {
    display: block;
}
.wd-template-clientregister #main-body > .container > .row > .col-lg-4,
.wd-template-clientregister #main-body > .container > .row > .col-xl-3 {
    width: 100%;
    max-width: 760px;
    flex: 0 0 100%;
    margin: 34px auto 0;
    padding: 0 15px;
}
.wd-template-clientregister #main-body > .container > .row > .primary-content {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}
.wd-template-clientregister .sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin: 0;
}
.wd-template-clientregister .sidebar .panel,
.wd-template-clientregister .sidebar .card,
.wd-template-clientregister .sidebar .panel-sidebar {
    margin: 0;
    border: 1px solid var(--wd-border);
    border-radius: var(--wd-radius);
    box-shadow: 0 8px 28px rgba(31, 40, 82, .06);
    background: rgba(255,255,255,.94);
    overflow: hidden;
}
.wd-template-clientregister .sidebar .panel-heading,
.wd-template-clientregister .sidebar .card-header {
    padding: 14px 16px;
    background: var(--wd-white);
    border-bottom: 1px solid var(--wd-border);
    font-size: 14px;
    font-weight: 700;
}
.wd-template-clientregister .sidebar .panel-body,
.wd-template-clientregister .sidebar .card-body,
.wd-template-clientregister .sidebar .list-group-item {
    font-size: 14px;
    line-height: 1.55;
}
.wd-template-clientregister .sidebar .list-group-item {
    padding: 10px 16px;
}

/* Registration form rhythm */
.wd-template-clientregister .wd-register-intro { margin-top: 18px; }
.wd-template-clientregister #registration .card {
    box-shadow: 0 12px 32px rgba(33, 42, 79, .055);
}
.wd-template-clientregister #registration .card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
}
.wd-template-clientregister #registration label,
.wd-template-clientregister #registration .form-control,
.wd-template-clientregister #registration .field,
.wd-template-clientregister #registration p,
.wd-template-clientregister #registration .btn {
    font-size: 14px;
}

/* Client dashboard: turn native Twenty-One sidebars into a Webberdoo account rail. */
.wd-template-clientareahome #main-body > .container > .row > .col-lg-4,
.wd-template-clientareahome #main-body > .container > .row > .col-xl-3 {
    padding-right: 14px;
}
.wd-template-clientareahome .sidebar {
    position: sticky;
    top: 22px;
}
.wd-template-clientareahome .sidebar .panel,
.wd-template-clientareahome .sidebar .card,
.wd-template-clientareahome .sidebar .panel-sidebar {
    border: 1px solid var(--wd-border);
    border-radius: 16px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 10px 30px rgba(29, 38, 76, .055);
    margin-bottom: 14px;
    overflow: hidden;
}
.wd-template-clientareahome .sidebar .panel-heading,
.wd-template-clientareahome .sidebar .card-header {
    background: #fff;
    border-bottom: 1px solid var(--wd-border);
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 700;
}
.wd-template-clientareahome .sidebar .panel-body,
.wd-template-clientareahome .sidebar .card-body {
    padding: 15px 16px;
    font-size: 14px;
    line-height: 1.55;
}
.wd-template-clientareahome .sidebar .list-group-item {
    border-color: var(--wd-border);
    padding: 11px 16px;
    color: var(--wd-ink);
    font-size: 14px;
    background: #fff;
}
.wd-template-clientareahome .sidebar .list-group-item:hover {
    background: var(--wd-primary-soft);
    color: var(--wd-primary);
}
.wd-template-clientareahome .sidebar .list-group-item.active {
    color: #fff;
    background: linear-gradient(135deg, var(--wd-primary), var(--wd-tertiary));
    border-color: transparent;
}
.wd-template-clientareahome .sidebar .btn-primary {
    width: calc(100% - 24px);
    margin: 0 12px 12px;
}

/* Native home widgets: retain WHMCS/add-on functionality, remove stock-panel feel. */
.wd-native-panels .row { margin-left: -8px; margin-right: -8px; }
.wd-native-panels .row > [class*="col-"] { padding-left: 8px; padding-right: 8px; margin-bottom: 16px; }
.wd-native-panel {
    height: 100%;
    border: 1px solid var(--wd-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 28px rgba(32, 41, 78, .055);
    overflow: hidden;
    background: #fff;
}
.wd-native-panel .card-header {
    background: #fff !important;
    border-bottom: 1px solid var(--wd-border) !important;
    padding: 15px 17px;
}
.wd-native-panel .card-title {
    font-size: 15px;
    font-weight: 700;
}
.wd-native-panel .card-body,
.wd-native-panel .list-group-item,
.wd-native-panel .card-footer {
    font-size: 14px;
}
.wd-native-panel .card-body { padding: 17px; }
.wd-native-panel .list-group-item { padding: 12px 17px; }
.wd-native-panel .card-footer {
    padding: 10px 17px;
    background: #fafaff;
    border-top: 1px solid var(--wd-border);
}
.wd-native-panel .badge-success { border-radius: 999px; padding: 5px 8px; }
.wd-native-panel .btn-sm { min-height: 34px; font-size: 14px; }

/* Add-on output gets a safe Webberdoo surface without altering addon content. */
.wd-addon-output:not(:empty) {
    margin: 18px 0;
    font-size: 14px;
}
.wd-addon-output .panel,
.wd-addon-output .card {
    border-radius: 16px;
    border-color: var(--wd-border);
    box-shadow: 0 8px 26px rgba(30, 39, 76, .05);
}

/* Global customer-facing readability guard for the converted account screens. */
.wd-template-clientareahome .primary-content p,
.wd-template-clientareahome .primary-content a,
.wd-template-clientareahome .primary-content button,
.wd-template-clientareahome .primary-content td,
.wd-template-clientareahome .primary-content th,
.wd-template-clientregister .primary-content p,
.wd-template-clientregister .primary-content a,
.wd-template-clientregister .primary-content button {
    font-size: max(14px, 1em);
}

@media (max-width: 991.98px) {
    .wd-template-clientareahome .sidebar { position: static; margin-bottom: 18px; }
    .wd-template-clientregister #main-body > .container > .row > .col-lg-4,
    .wd-template-clientregister #main-body > .container > .row > .col-xl-3 { margin-top: 18px; }
}


/* Phase 2.2 — registration hierarchy */
body[data-template="clientregister"] .wd-register-intro--page,
.wd-register-intro--page {
    max-width: 760px;
    margin: 34px auto 22px;
    text-align: center;
}

.wd-register-intro--page h1 {
    margin: 8px 0 8px;
}

.wd-register-intro--page > p {
    max-width: 700px;
    margin: 0 auto 16px;
    font-size: 14px;
    line-height: 1.65;
}

.wd-register-intro--page .wd-register-benefits {
    justify-content: center;
    margin-bottom: 0;
}

/* Keep the native “Already Registered?” feature, but make it a secondary step. */
body[data-template="clientregister"] #main-body .row > .col-lg-4,
body[data-template="clientregister"] #main-body .row > .col-xl-3 {
    align-self: flex-start;
}

@media (min-width: 992px) {
    body[data-template="clientregister"] #main-body > .container > .row {
        max-width: 980px;
        margin-left: auto;
        margin-right: auto;
    }
}
