/*
 * NIBWOZ Client Area Theme
 * Parent: Nexus (WHMCS 9.0.6)
 *
 * Keep structural overrides small. Most visual decisions live here so that
 * future Nexus updates can continue to flow through the child theme.
 */

@font-face {
    font-family: "Nibwoz Manrope";
    src: url("../fonts/manrope-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

@font-face {
    font-family: "Nibwoz Lora";
    src: url("../fonts/lora-italic-latin.woff2") format("woff2");
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
}

:root {
    --white: #ffffff;

    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f2742;
    --neutral-950: #081a2e;

    --primary-50: #eff7ff;
    --primary-100: #dcedff;
    --primary-200: #b9dcff;
    --primary-300: #86c3ff;
    --primary-400: #4aa2ff;
    --primary-500: #167eea;
    --primary-600: #0865ca;
    --primary-700: #004fac;
    --primary-800: #064487;
    --primary-900: #0b396d;
    --primary-950: #072445;

    --primary: #004fac;
    --primary-lifted: #00428f;
    --primary-accented: #003674;

    --secondary: #64748b;
    --secondary-lifted: #475569;
    --secondary-accented: #334155;

    --success: #3a9544;
    --success-lifted: #2f7f38;
    --success-accented: #286b31;

    --info: #167eea;
    --info-lifted: #0865ca;
    --info-accented: #004fac;

    --notice: #7c5ce7;
    --notice-lifted: #6949d5;
    --notice-accented: #5637b9;

    --warning: #e87817;
    --warning-lifted: #c7610e;
    --warning-accented: #a54e0c;

    --error: #d83a45;
    --error-lifted: #b92d37;
    --error-accented: #99262f;

    --grayscale: #0f2742;
    --grayscale-lifted: #1e3a56;
    --grayscale-accented: #2f4d69;

    --neutral: #64748b;
    --neutral-lifted: #475569;
    --neutral-accented: #334155;

    --text-inverted: #ffffff;
    --text-muted: #94a3b8;
    --text-lifted: #64748b;
    --text-accented: #475569;
    --text: #0f2742;

    --border-muted: #e8edf3;
    --border: #dce4ed;
    --border-lifted: #cbd5e1;
    --border-accented: #94a3b8;

    --bg: #ffffff;
    --bg-muted: #f8fafc;
    --bg-lifted: #f1f5f9;
    --bg-accented: #e2e8f0;
    --bg-inverted: #0f2742;

    --rounding-sm: 0.375rem;
    --rounding-md: 0.625rem;
    --rounding-lg: 0.875rem;

    --nibwoz-navy: #0f2742;
    --nibwoz-blue: #004fac;
    --nibwoz-blue-dark: #003674;
    --nibwoz-green: #3a9544;
    --nibwoz-surface: #f7f9fc;
    --nibwoz-shadow-sm: 0 8px 24px rgba(15, 39, 66, 0.06);
    --nibwoz-shadow-md: 0 18px 50px rgba(15, 39, 66, 0.1);
    --nibwoz-font-sans: "Nibwoz Manrope", Arial, sans-serif;
    --nibwoz-font-serif: "Nibwoz Lora", Georgia, serif;
    --nibwoz-text-xs: 11px;
    --nibwoz-text-sm: 12px;
    --nibwoz-text-md: 13px;
    --nibwoz-text-base: 14px;
    --nibwoz-text-lg: 16px;
    --nibwoz-text-title: 18px;
    --nibwoz-control-height: 42px;
    --nibwoz-control-compact-height: 36px;
    --nibwoz-control-radius: 9px;
}

html {
    scroll-behavior: smooth;
}

body.nibwoz-client-area {
    color: var(--nibwoz-navy);
    background: var(--nibwoz-surface);
    font-family: var(--nibwoz-font-sans);
    font-size: var(--nibwoz-text-base);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.nibwoz-client-area button,
body.nibwoz-client-area input,
body.nibwoz-client-area select,
body.nibwoz-client-area textarea {
    font-family: var(--nibwoz-font-sans);
}

/*
 * Font Awesome is supplied by WHMCS, not bundled with this child theme.
 * Reassert its families after the NIBWOZ typography layer so icons inherited
 * from Nexus, modules and order forms never fall back to the text font.
 */
.fa,
.fas,
.fa-solid,
.far,
.fa-regular,
.fal,
.fa-light {
    font-family: var(--fa-style-family-classic, "Font Awesome 6 Pro") !important;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
}

.fa,
.fas,
.fa-solid {
    font-weight: 900 !important;
}

.far,
.fa-regular {
    font-weight: 400 !important;
}

.fal,
.fa-light {
    font-weight: 300 !important;
}

.fad,
.fa-duotone {
    font-family: var(--fa-style-family-duotone, "Font Awesome 6 Duotone") !important;
    font-style: normal;
    font-weight: 900 !important;
    font-variant: normal;
    text-rendering: auto;
}

.fab,
.fa-brands {
    font-family: var(--fa-style-family-brands, "Font Awesome 6 Brands") !important;
    font-style: normal;
    font-weight: 400 !important;
    font-variant: normal;
    text-rendering: auto;
}

a {
    color: var(--nibwoz-blue);
}

a:hover,
a:focus {
    color: var(--nibwoz-blue-dark);
}

:focus-visible {
    outline: 3px solid rgba(0, 79, 172, 0.3);
    outline-offset: 2px;
}

/* Header: one brand/utility level plus one operational navigation level. */
header.header.nibwoz-header {
    background: #ffffff;
    border-bottom: 0;
    box-shadow: 0 1px 0 rgba(15, 39, 66, 0.08);
}

header.header .nibwoz-brandbar {
    min-height: 82px;
    padding: 0;
    background: #ffffff;
}

header.header .nibwoz-brandbar > .container {
    min-height: 82px;
    gap: 1rem;
    flex-wrap: nowrap;
}

header.header .nibwoz-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

header.header .nibwoz-brand .logo-img {
    width: 142px;
    max-height: 42px;
    object-fit: contain;
}

.nibwoz-brand-context {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    margin-top: 4px;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    color: var(--neutral-500);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.15em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.nibwoz-utility-links {
    align-items: center;
    align-self: center;
    gap: 1.1rem;
    height: 42px;
    margin-left: 2rem;
}

.nibwoz-utility-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    height: 42px;
    color: var(--neutral-600);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.nibwoz-utility-links i,
.nibwoz-utility-links .nibwoz-status-dot {
    flex: 0 0 auto;
}

.nibwoz-utility-links i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    line-height: 1;
}

.nibwoz-utility-links a:hover {
    color: var(--nibwoz-blue);
    text-decoration: none;
}

@media (min-width: 1200px) {
    .nibwoz-utility-links .nibwoz-primary-site-link {
        transform: translateY(5px);
    }
}

.nibwoz-status-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--nibwoz-green);
    box-shadow: 0 0 0 4px rgba(58, 149, 68, 0.12);
}

.nibwoz-header-search {
    flex: 0 1 230px;
    min-width: 190px;
    margin-left: auto !important;
    margin-right: 0.65rem;
}

header.header .nibwoz-header-search .input-group.search {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

header.header .nibwoz-header-search .input-group.search:focus-within {
    border: 0;
    box-shadow: none;
}

header.header .nibwoz-header-search .form-control,
header.header .nibwoz-header-search .btn {
    height: 44px;
    border-color: var(--border-muted);
    background: var(--neutral-50);
}

header.header .nibwoz-header-search .btn {
    border-right: 0;
    border-radius: 0.625rem 0 0 0.625rem;
    color: var(--neutral-500);
}

header.header .nibwoz-header-search .form-control {
    width: 100%;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 10px !important;
    background: #ffffff;
    color: var(--nibwoz-navy);
    font-size: 13px;
    font-weight: 400 !important;
}

header.header .nibwoz-header-search .form-control:focus {
    border-color: var(--primary-400);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 79, 172, 0.12);
}

header.header .nibwoz-header-search .form-control::placeholder {
    color: var(--neutral-400);
    opacity: 1;
}

.nibwoz-toolbar {
    flex: 0 0 auto;
    gap: 2px;
    margin-left: 0;
    padding: 4px;
    border: 1px solid var(--border-muted);
    border-radius: 12px;
    background: var(--neutral-50);
}

header.header .nibwoz-toolbar .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--nibwoz-navy);
}

header.header .nibwoz-toolbar .nav-link:hover,
header.header .nibwoz-toolbar .nav-link:focus {
    background: var(--primary-50);
    color: var(--nibwoz-blue);
}

.nibwoz-active-client {
    align-items: stretch;
}

header.header .nibwoz-active-client .nav-link:first-child {
    max-width: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.nibwoz-active-client .nav-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

header.header .nibwoz-active-client .nibwoz-switch-account {
    min-width: 38px;
    margin-left: 0;
    border-radius: 8px;
}

.nibwoz-notifications .badge,
.nibwoz-toolbar .cart-btn .badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    min-width: 1.15rem;
    padding: 0.25rem 0.35rem;
    border: 2px solid #ffffff;
    font-size: 0.62rem;
}

header.header .nibwoz-notifications:has(.badge) #accountNotifications {
    border: 1px solid rgba(200, 61, 77, 0.22);
    background: #fff0f2;
    color: #c83d4d;
}

header.header .nibwoz-notifications:has(.badge) #accountNotifications:hover,
header.header .nibwoz-notifications:has(.badge) #accountNotifications:focus,
header.header .nibwoz-notifications:has(.badge) #accountNotifications[aria-describedby] {
    border-color: rgba(200, 61, 77, 0.4);
    background: #fde3e6;
    color: #a92737;
    box-shadow: 0 7px 18px rgba(200, 61, 77, 0.16);
}

body .popover:has(.client-alerts) {
    overflow: hidden;
    max-width: 390px;
    border: 1px solid rgba(200, 61, 77, 0.22);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(6, 22, 47, 0.14);
}

body .popover:has(.client-alerts) .popover-body {
    padding: 0;
}

body .popover .client-alerts {
    margin: 0;
    padding: 8px;
    list-style: none;
}

body .popover .client-alerts li {
    margin: 0;
    border-bottom: 1px solid #f0d8dc;
}

body .popover .client-alerts li:last-child {
    border-bottom: 0;
}

body .popover .client-alerts li a {
    display: flex;
    min-height: 76px;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    border-radius: 9px;
    background: #fff7f8;
    color: #475569;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

body .popover .client-alerts li a:hover,
body .popover .client-alerts li a:focus {
    background: #fde8eb;
    color: #334155;
    box-shadow: inset 3px 0 0 #c83d4d;
}

body .popover .client-alerts li a > i {
    flex: 0 0 20px;
    margin-top: 0;
    color: #c83d4d;
    font-size: 18px;
    text-align: center;
}

body .popover .client-alerts .message {
    flex: 1 1 auto;
    margin: 0 !important;
    padding: 0 !important;
}

header.header .main-navbar-wrapper {
    min-height: 54px;
    padding: 0;
    border-top: 1px solid var(--border-muted);
    border-bottom: 1px solid var(--border-muted);
    background: #ffffff;
}

header.header .main-navbar-wrapper.navbar {
    min-height: 54px;
}

header.header .main-navbar-wrapper .navbar-collapse {
    min-height: 53px;
}

header.header .main-navbar-wrapper .navbar-nav {
    align-items: stretch;
    margin-top: 0;
    margin-bottom: 0;
}

header.header .main-navbar-wrapper #nav {
    gap: 5px;
}

header.header .main-navbar-wrapper .navbar-nav > li > a {
    display: flex;
    align-items: center;
    min-height: 53px;
    padding: 0 10px;
    border-bottom: 2px solid transparent;
    color: var(--nibwoz-navy);
    font-size: 13px;
    font-weight: 700;
}

.nibwoz-nav-link {
    gap: 7px;
}

.nibwoz-nav-icon {
    display: inline-flex;
    flex: 0 0 16px;
    align-items: center;
    justify-content: center;
    width: 16px;
    color: var(--nibwoz-blue);
    font-size: 14px;
}

.nibwoz-nav-label {
    white-space: nowrap;
}

header.header .main-navbar-wrapper .navbar-nav > li > a:hover,
header.header .main-navbar-wrapper .navbar-nav > li > a:focus,
header.header .main-navbar-wrapper .navbar-nav > li.active > a {
    border-bottom-color: var(--nibwoz-blue);
    background: transparent;
    color: var(--nibwoz-blue);
    text-decoration: none;
}

header.header .main-navbar-wrapper .dropdown-menu {
    min-width: 320px;
    margin-top: 0;
    padding: 0.55rem;
    border: 1px solid var(--border-muted);
    border-radius: 0.75rem;
    box-shadow: var(--nibwoz-shadow-md);
}

header.header .main-navbar-wrapper .dropdown-item,
header.header .main-navbar-wrapper .dropdown-item a {
    border-radius: 0.5rem;
    color: var(--neutral-700);
    font-size: 0.8rem;
}

header.header .main-navbar-wrapper li.dropdown-item {
    padding: 0;
    background: transparent;
}

header.header .main-navbar-wrapper .nibwoz-dropdown-link {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 6px 8px;
}

.nibwoz-dropdown-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--primary-100);
    border-radius: 8px;
    background: var(--primary-50);
    color: var(--nibwoz-blue);
    font-size: 14px;
}

.nibwoz-dropdown-label {
    min-width: 0;
    white-space: normal;
}

/*
 * Nexus exposes the responsive "More" container before it moves an item
 * into the submenu. Keep it out of the layout while it has no real entries.
 */
header.header .main-navbar-wrapper .collapsable-dropdown:not(:has(> .collapsable-dropdown-menu > li)) {
    display: none !important;
}

header.header .main-navbar-wrapper .collapsable-dropdown-menu > li {
    display: block !important;
    width: 100%;
    padding: 0;
}

header.header .main-navbar-wrapper .collapsable-dropdown-menu > li > .nibwoz-nav-link {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 6px 8px;
    border: 0;
    border-radius: 8px;
    color: var(--neutral-700);
    font-size: 13px;
    font-weight: 400;
}

header.header .main-navbar-wrapper .collapsable-dropdown-menu > li > .nibwoz-nav-link:hover,
header.header .main-navbar-wrapper .collapsable-dropdown-menu > li > .nibwoz-nav-link:focus {
    background: var(--primary-50);
    color: var(--nibwoz-blue);
}

header.header .main-navbar-wrapper .collapsable-dropdown-menu .nibwoz-nav-icon {
    width: 34px;
    height: 34px;
    border: 1px solid var(--primary-100);
    border-radius: 8px;
    background: var(--primary-50);
}

header.header .main-navbar-wrapper .dropdown-item:hover,
header.header .main-navbar-wrapper .dropdown-item:focus,
header.header .main-navbar-wrapper .dropdown-item:hover a,
header.header .main-navbar-wrapper .dropdown-item:focus a {
    background: var(--primary-50);
    color: var(--nibwoz-blue);
    text-decoration: none;
}

/* Breadcrumb and main workspace. */
.master-breadcrumb {
    border-bottom: 1px solid var(--border-muted);
    background: #ffffff;
}

.master-breadcrumb .breadcrumb {
    min-height: 46px;
    margin: 0;
    padding: 0.75rem 0;
    background: transparent;
    font-size: 0.75rem;
}

#main-body {
    min-height: 56vh;
    padding-top: 2.25rem;
    padding-bottom: 4rem;
}

.header-lined {
    margin-bottom: 1.5rem;
    border-bottom-color: var(--border-muted);
}

.header-lined h1,
.header-lined .h1,
.primary-content h1,
.primary-content .h1 {
    color: var(--nibwoz-navy);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

/* Cards, sidebars and tables. */
body .primary-content .card,
body .primary-content .mc-promo-manage,
body .primary-content .mc-promo-login,
.sidebar .card-sidebar {
    overflow: hidden;
    border: 1px solid var(--border-muted);
    border-radius: 0.875rem;
    background: #ffffff;
    box-shadow: var(--nibwoz-shadow-sm);
}

.sidebar .card-sidebar {
    margin-bottom: 18px;
}

body .primary-content .card .card-header,
.sidebar .card-header {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 0 18px;
    border-bottom: 1px solid var(--border-muted);
    background: #ffffff;
    color: var(--nibwoz-navy);
}

body #main-body .primary-content .card-title,
.sidebar .card-title {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 0;
    color: var(--nibwoz-navy);
    font-size: var(--nibwoz-text-base);
    font-weight: 700;
    line-height: 1.25;
}

/* Keep body-level block headings aligned with the registration sections. */
body #main-body .primary-content .card-body > h1:first-child,
body #main-body .primary-content .card-body > h2:first-child,
body #main-body .primary-content .card-body > h3:first-child,
body #main-body .primary-content .card-body > h4:first-child,
body #main-body .primary-content .card-body > h5:first-child,
body #main-body .primary-content .card-body > .card-title:first-child {
    margin-top: 0;
    margin-bottom: 1rem;
    padding: 0;
    color: var(--nibwoz-navy);
    line-height: 1.25;
}

body #main-body .primary-content .card-body > h1:first-child:has(+ p),
body #main-body .primary-content .card-body > h2:first-child:has(+ p),
body #main-body .primary-content .card-body > h3:first-child:has(+ p),
body #main-body .primary-content .card-body > h4:first-child:has(+ p),
body #main-body .primary-content .card-body > h5:first-child:has(+ p),
body #main-body .primary-content .card-body > .card-title:first-child:has(+ p) {
    margin-bottom: 0.25rem;
}

body #main-body .primary-content .card-body > h1:first-child + p,
body #main-body .primary-content .card-body > h2:first-child + p,
body #main-body .primary-content .card-body > h3:first-child + p,
body #main-body .primary-content .card-body > h4:first-child + p,
body #main-body .primary-content .card-body > h5:first-child + p,
body #main-body .primary-content .card-body > .card-title:first-child + p {
    margin-top: 0;
}

.sidebar .card-minimise {
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--neutral-500);
    font-size: 12px;
    float: none !important;
}

.sidebar .card-header:has(+ .collapsable-card-body[style*="display: none"]) {
    border-bottom: 0;
    border-radius: 0.875rem;
}

body #main-body .primary-content .card-body,
body #main-body .primary-content .list-group-item,
.sidebar .card-body,
.sidebar .list-group-item {
    font-size: var(--nibwoz-text-md);
    line-height: 1.55;
}

body .primary-content .card .card-footer,
.sidebar .card-footer {
    border-top: 1px solid var(--border-muted);
    background: var(--neutral-50);
    font-size: var(--nibwoz-text-sm);
}

.sidebar .card-sidebar .card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 48px;
    padding: 6px 16px;
}

.sidebar .card-sidebar .card-footer::after {
    display: none;
}

.sidebar .card-sidebar .card-footer > .btn,
.sidebar .card-sidebar .card-footer > a,
.sidebar .card-sidebar .card-footer > button,
.sidebar .card-sidebar .card-footer > form {
    float: none !important;
    width: auto;
    margin: 0 !important;
}

.sidebar .card-sidebar .card-footer .btn {
    min-height: 36px;
    padding: 0.45rem 0.7rem;
    font-size: var(--nibwoz-text-sm);
}

.sidebar .list-group-item {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 0 18px;
    border: 0;
    border-bottom: 1px solid var(--border-muted);
    border-radius: 0;
    color: var(--neutral-700);
    font-weight: 700;
    line-height: 1.35;
}

.sidebar .list-group-item:last-child {
    border-bottom: 0;
}

/* Registration sidebar prose is content, not a navigation action. */
body:has(#registration) .sidebar .card-sidebar .card-body > p,
body:has(#registration) .sidebar .card-sidebar .list-group-item:not(a):not(button) {
    display: block;
    min-height: 0;
    margin: 0;
    padding: 16px 22px;
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.6;
}

body:has(#registration) .sidebar .card-sidebar .list-group-item:not(a):not(button) > :first-child {
    margin-top: 0;
}

body:has(#registration) .sidebar .card-sidebar .list-group-item:not(a):not(button) > :last-child {
    margin-bottom: 0;
}

/* Bootstrap rounds the first flush-list item with a more specific selector. */
.sidebar .card-sidebar .collapsable-card-body > .list-group:first-child > .list-group-item:first-child,
.sidebar .card-sidebar .list-group-flush > .list-group-item:first-child {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.sidebar .list-group-item.active,
.sidebar .list-group-item.active:hover,
.sidebar .list-group-item.active:focus {
    border-color: var(--primary-100);
    background: #e7f1fc;
    color: var(--nibwoz-blue);
    box-shadow: inset 3px 0 0 var(--nibwoz-blue);
}

.sidebar .list-group-item-action:not(.disabled) {
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.sidebar .list-group-item-action:not(.disabled):hover,
.sidebar .list-group-item-action:not(.disabled):focus {
    border-color: var(--border-muted);
    background: var(--primary-50);
    color: var(--nibwoz-blue);
    text-decoration: none;
}

.sidebar .list-group-item-action:not(.disabled):hover i,
.sidebar .list-group-item-action:not(.disabled):focus i {
    color: var(--nibwoz-blue);
}

.sidebar .sidebar-menu-item-wrapper {
    display: flex;
    width: 100%;
    align-items: center;
}

.sidebar .sidebar-menu-item-icon-wrapper {
    display: inline-flex;
    width: 20px;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    margin-right: 9px;
    color: var(--neutral-500);
}

.sidebar .sidebar-menu-item-label {
    min-width: 0;
    flex: 1 1 auto;
}

.sidebar .sidebar-menu-item-badge {
    flex: 0 0 auto;
    margin-left: auto;
}

.table {
    color: var(--neutral-700);
    font-size: var(--nibwoz-text-md);
}

.table thead th {
    border-bottom-color: var(--border-muted);
    background: var(--neutral-50);
    color: var(--neutral-600);
    font-size: var(--nibwoz-text-xs);
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.table td,
.table th {
    border-top-color: var(--border-muted);
}

.alert,
.pagination,
.modal-content,
.dropdown-menu:not(.collapsable-dropdown-menu) {
    font-size: var(--nibwoz-text-md);
}

.modal-title {
    font-size: var(--nibwoz-text-lg);
    font-weight: 700;
}

.pagination .page-link,
.text-muted.small,
small,
.small {
    font-size: var(--nibwoz-text-xs);
}

.badge {
    font-size: var(--nibwoz-text-xs);
    font-weight: 700;
}

/* Forms and actions. */
.form-control,
.custom-select {
    min-height: 44px;
    border-color: var(--border);
    border-radius: 9px;
    color: var(--nibwoz-navy);
    font-size: 13px;
    font-weight: 400;
}

.form-control:focus,
.custom-select:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(0, 79, 172, 0.12);
}

.btn {
    min-height: var(--nibwoz-control-height);
    padding: 0.55rem 1rem;
    border-radius: var(--nibwoz-control-radius);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.btn-lg,
.btn-group-lg > .btn {
    min-height: 50px;
    padding-right: 22px;
    padding-left: 22px;
    font-size: 14px;
}

.btn-sm,
.btn-group-sm > .btn {
    min-height: var(--nibwoz-control-compact-height);
    padding: 0.4rem 0.75rem;
    border-radius: var(--nibwoz-control-radius);
    font-size: var(--nibwoz-text-sm);
}

.btn-xs,
.btn-group-xs > .btn {
    min-height: var(--nibwoz-control-compact-height);
    padding: 0.4rem 0.75rem;
    border-radius: var(--nibwoz-control-radius);
    font-size: var(--nibwoz-text-sm);
    line-height: 1.2;
}

.btn-default,
body #main-body .btn-default {
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--nibwoz-navy);
    box-shadow: none;
}

.btn-default:hover,
.btn-default:focus,
body #main-body .btn-default:hover,
body #main-body .btn-default:focus {
    border-color: var(--primary-200);
    background: var(--primary-50);
    color: var(--nibwoz-blue);
    box-shadow: none;
}

.btn-group > .btn {
    box-shadow: none;
}

a.btn,
button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    vertical-align: middle;
    text-align: center;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn.text-left,
.btn-link.text-left {
    justify-content: flex-start;
    text-align: left;
}

.btn > i,
.btn > .fas,
.btn > .far,
.btn > .fal,
.btn > .fad,
.btn > .fab {
    flex: 0 0 auto;
    margin: 0;
    line-height: 1;
}

.btn-link {
    border-color: transparent;
    background: transparent;
    color: var(--nibwoz-blue);
    box-shadow: none;
}

.btn.close,
button.btn.close {
    width: auto;
    height: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.btn-group {
    align-items: stretch;
    vertical-align: middle;
}

.btn-secondary,
body #main-body .btn-secondary {
    border-color: var(--nibwoz-navy);
    background: var(--nibwoz-navy);
    color: #ffffff;
    box-shadow: none;
}

.btn-secondary:hover,
.btn-secondary:focus,
body #main-body .btn-secondary:hover,
body #main-body .btn-secondary:focus {
    border-color: var(--nibwoz-blue-dark);
    background: var(--nibwoz-blue-dark);
    color: #ffffff;
}

.btn-outline-secondary,
body #main-body .btn-outline-secondary {
    border-color: var(--border);
    background: #ffffff;
    color: var(--nibwoz-navy);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
body #main-body .btn-outline-secondary:hover,
body #main-body .btn-outline-secondary:focus {
    border-color: var(--primary-200);
    background: var(--primary-50);
    color: var(--nibwoz-blue);
}

.alert > .btn,
.alert > a.btn,
.alert form .btn {
    position: static !important;
    transform: none !important;
}

#alertOverdueInvoice,
#alertUnpaidInvoice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    min-height: 58px;
    padding: 10px 16px;
}

#alertOverdueInvoice::after,
#alertUnpaidInvoice::after {
    display: none;
}

#alertOverdueInvoice > .float-right,
#alertUnpaidInvoice > .float-right {
    order: 2;
    float: none !important;
    margin: 0 0 0 auto;
}

#alertOverdueInvoice .btn,
#alertUnpaidInvoice .btn {
    min-height: var(--nibwoz-control-compact-height);
    height: var(--nibwoz-control-compact-height);
    margin: 0;
}

body #main-body .input-group > .input-group-prepend > .btn,
body #main-body .input-group > .input-group-append > .btn {
    min-height: 44px;
    height: 44px;
}

.invoice-container .payment-btn-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 12px;
}

.invoice-container .payment-btn-container form,
.invoice-container .payment-btn-container table,
.invoice-container .payment-btn-container .btn {
    position: static !important;
    margin: 0 auto !important;
    transform: none !important;
}

.btn-primary,
body #main-body .btn-primary {
    border-color: var(--nibwoz-blue);
    background: var(--nibwoz-blue);
    box-shadow: 0 8px 20px rgba(0, 79, 172, 0.18);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
body #main-body .btn-primary:hover,
body #main-body .btn-primary:focus,
body #main-body .btn-primary:active {
    border-color: var(--nibwoz-blue-dark);
    background: var(--nibwoz-blue-dark);
}

.btn-success {
    border-color: var(--nibwoz-green);
    background: var(--nibwoz-green);
}

body #main-body .btn-outline-primary {
    border-color: var(--primary-200);
    color: var(--nibwoz-blue);
}

body #main-body .btn-outline-primary:hover {
    border-color: var(--nibwoz-blue);
    background: var(--nibwoz-blue);
    color: #ffffff;
}

/* Authentication and customer dashboard. */
.login-form .card {
    margin-right: auto;
    margin-left: auto;
}

.login-form .card-body {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.login-form .card-body::before {
    display: block;
    width: 42px;
    height: 4px;
    margin-bottom: 1.25rem;
    border-radius: 999px;
    background: var(--nibwoz-blue);
    content: "";
}

.login-form .h3 {
    color: var(--nibwoz-navy);
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.login-form .text-muted {
    font-size: 13px;
    line-height: 1.7;
}

/* Match login fields to the registration field component. */
.login-form .input-group.input-group-merge {
    position: relative;
    display: block;
}

.login-form .input-group.input-group-merge > .form-control {
    width: 100%;
    height: 44px;
    min-height: 44px;
    padding: 6px 52px 6px 56px;
    border: 1px solid var(--border);
    border-radius: 10px !important;
    background: #ffffff;
    color: var(--nibwoz-navy);
    font-size: 13px;
    font-weight: 400;
}

.login-form .input-group.input-group-merge > .form-control:focus {
    z-index: 2;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(0, 79, 172, 0.12);
}

.login-form .input-group.input-group-merge > .input-group-prepend,
.login-form .input-group.input-group-merge > .input-group-append {
    position: absolute;
    top: 0;
    z-index: 4;
    display: flex;
    height: 44px;
    margin: 0;
}

.login-form .input-group.input-group-merge > .input-group-prepend {
    left: 0;
    pointer-events: none;
}

.login-form .input-group.input-group-merge > .input-group-append {
    right: 0;
}

.login-form .input-group.input-group-merge .input-group-text,
.login-form .input-group.input-group-merge .btn-reveal-pw {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--neutral-400);
    box-shadow: none;
}

.login-form .input-group.input-group-merge .btn-reveal-pw:hover,
.login-form .input-group.input-group-merge .btn-reveal-pw:focus {
    color: var(--nibwoz-blue);
}

/* Some WHMCS login views omit input-group-merge from the password wrapper. */
.login-form .input-group:has(.btn-reveal-pw) {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}

.login-form .input-group:has(.btn-reveal-pw) > .form-control {
    width: 100%;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    padding-right: 52px;
    border: 1px solid var(--border);
    border-radius: 10px !important;
}

.login-form .input-group:has(.btn-reveal-pw) > .input-group-append {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 4;
    display: flex;
    width: 46px;
    height: 44px;
    margin: 0;
}

.login-form .input-group:has(.btn-reveal-pw) .btn-reveal-pw {
    display: inline-flex;
    width: 46px;
    height: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0 10px 10px 0;
    background: transparent;
    color: var(--neutral-500);
    font-size: 14px;
    line-height: 1;
    box-shadow: none;
}

.login-form .input-group:has(.btn-reveal-pw) .btn-reveal-pw:hover,
.login-form .input-group:has(.btn-reveal-pw) .btn-reveal-pw:focus {
    background: var(--primary-50);
    color: var(--nibwoz-blue);
    box-shadow: none;
}

.login-form .card-body > .float-left {
    display: flex;
    align-items: center;
    min-height: 48px;
}

.login-form .card-body > .text-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 48px;
}

.login-form .card-body > .float-left #login {
    min-height: 48px;
    margin: 0;
}

.login-form .card-body > .text-right label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

.login-form .card-body > .text-right .form-check-input {
    position: static;
    flex: 0 0 auto;
    margin: 0;
}

#registration {
    max-width: 980px;
    margin-right: auto;
    margin-left: auto;
}

/* O seletor internacional e renderizado dentro do card. A classe host e
   aplicada apenas aos cards que realmente contem telefone internacional. */
body .primary-content .card.nibwoz-phone-dropdown-host,
body .primary-content .card.nibwoz-phone-dropdown-host .card-body {
    overflow: visible;
}

body .primary-content .card.nibwoz-phone-dropdown-host {
    position: relative;
}

body .primary-content .card.nibwoz-phone-dropdown-open {
    z-index: 1070;
}

body .primary-content .card.nibwoz-phone-dropdown-host .intl-tel-input .country-list {
    z-index: 1080;
}

#registration .card-title {
    margin-bottom: 1.5rem;
    color: var(--nibwoz-navy);
    font-size: var(--nibwoz-text-title);
    font-weight: 700;
}

#registration .prepend-icon .field-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--neutral-400);
    line-height: 1;
}

#registration .prepend-icon .field,
#registration .form-control {
    min-height: 44px;
    border-color: var(--border);
    border-radius: 10px;
    font-size: 13px;
}

#registration .prepend-icon .field {
    height: 44px;
    padding: 6px 12px 6px 56px;
}

#registration textarea.field {
    height: auto;
    min-height: 110px;
}

#registration .prepend-icon .field:focus,
#registration .form-control:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(0, 79, 172, 0.12);
}

body.nibwoz-client-area select.form-control,
body.nibwoz-client-area select.field,
body.nibwoz-client-area .custom-select {
    min-height: 44px;
    padding-right: 38px;
    border-color: var(--border);
    border-radius: 10px;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.25 6 6.25 11 1.25' fill='none' stroke='%2360708a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    color: var(--nibwoz-navy);
    font-size: 13px;
    font-weight: 400;
    appearance: none;
}

#registration .prepend-icon select.field {
    padding-right: 38px;
    padding-left: 56px;
}

body.nibwoz-client-area select.form-control:focus,
body.nibwoz-client-area select.field:focus,
body.nibwoz-client-area .custom-select:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(0, 79, 172, 0.12);
}

body.nibwoz-client-area select option {
    background: #ffffff;
    color: var(--nibwoz-navy);
    font-family: var(--nibwoz-font-sans);
    font-size: 13px;
}

.tiles .tile,
.tiles .nibwoz-summary-tile {
    overflow: hidden;
    min-height: 138px;
    border: 1px solid var(--border-muted);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 39, 66, 0.04);
    transition: background-color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.tiles .tile:hover,
.tiles .nibwoz-summary-tile:hover {
    z-index: 2;
    transform: translateY(-2px);
}

.tiles .row.no-gutters {
    margin-right: -6px;
    margin-left: -6px;
}

.tiles .row.no-gutters > [class*="col-"] {
    padding: 6px;
}

.tiles .row.no-gutters > [class*="col-"] > .tile {
    border: 1px solid var(--border-muted);
}

.tiles .nibwoz-summary-services {
    border-color: rgba(0, 79, 172, 0.14) !important;
    background: #eff7ff;
    color: var(--nibwoz-blue);
}

.tiles .nibwoz-summary-domains {
    border-color: rgba(58, 149, 68, 0.16) !important;
    background: #f1f8f2;
    color: var(--nibwoz-green);
}

.tiles .nibwoz-summary-tickets {
    border-color: rgba(216, 58, 69, 0.14) !important;
    background: #fff3f4;
    color: var(--error);
}

.tiles .nibwoz-summary-invoices {
    border-color: rgba(232, 120, 23, 0.16) !important;
    background: #fff7ee;
    color: var(--warning);
}

.tiles .nibwoz-summary-services:hover {
    border-color: rgba(0, 79, 172, 0.25) !important;
    background: #e3f1ff;
    box-shadow: 0 12px 28px rgba(0, 79, 172, 0.13);
}

.tiles .nibwoz-summary-domains:hover {
    border-color: rgba(58, 149, 68, 0.27) !important;
    background: #e6f4e8;
    box-shadow: 0 12px 28px rgba(58, 149, 68, 0.13);
}

.tiles .nibwoz-summary-tickets:hover {
    border-color: rgba(216, 58, 69, 0.25) !important;
    background: #ffe8ea;
    box-shadow: 0 12px 28px rgba(216, 58, 69, 0.12);
}

.tiles .nibwoz-summary-invoices:hover {
    border-color: rgba(232, 120, 23, 0.27) !important;
    background: #ffedda;
    box-shadow: 0 12px 28px rgba(232, 120, 23, 0.13);
}

.tiles .nibwoz-summary-tile i {
    color: currentColor;
    opacity: 0.2;
}

.tiles .nibwoz-summary-tile:hover i {
    color: currentColor;
    font-size: 57px;
    opacity: 0.34;
}

.tiles .tile .stat,
.tiles .tile .title {
    color: var(--nibwoz-navy);
}

.tiles .nibwoz-summary-services .highlight {
    background: var(--nibwoz-blue) !important;
}

.tiles .nibwoz-summary-domains .highlight {
    background: var(--nibwoz-green) !important;
}

.tiles .nibwoz-summary-tickets .highlight {
    background: var(--error) !important;
}

.tiles .nibwoz-summary-invoices .highlight {
    background: var(--warning) !important;
}

.client-home-cards .card {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 1.25rem;
}

.client-home-cards .row > [class*="col-"] > .card {
    flex: 1 1 auto;
}

.client-home-cards .card-header {
    flex: 0 0 auto;
}

.client-home-cards .card-body,
.client-home-cards .list-group {
    flex: 1 1 auto;
}

.client-home-cards .card-footer {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    min-height: 48px;
    padding: 6px 16px;
}

.client-home-cards .nibwoz-panel-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.client-home-cards .nibwoz-panel-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.client-home-cards .nibwoz-panel-title > i {
    display: inline-flex;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    width: 18px;
    margin: 0;
    font-size: 14px;
    line-height: 1;
}

.client-home-cards .nibwoz-panel-label {
    line-height: 1.25;
}

.client-home-cards .nibwoz-panel-action {
    flex: 0 0 auto;
    margin-left: auto;
}

.client-home-cards .card-header .btn,
.client-home-cards .card-footer .btn,
.sidebar .card-footer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.2;
    text-align: center;
}

.client-home-cards .card-header .btn,
.client-home-cards .card-footer .btn,
.client-home-cards .card-footer a,
.client-home-cards .div-service-buttons .btn,
.client-home-cards #sitejetSsoButton {
    min-height: var(--nibwoz-control-compact-height);
    height: var(--nibwoz-control-compact-height);
    padding: 0 12px;
    border-radius: var(--nibwoz-control-radius) !important;
    font-size: var(--nibwoz-text-sm);
    font-weight: 700;
    line-height: 1.2;
}

.client-home-cards .card-footer a:not(.btn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--nibwoz-navy);
    text-decoration: none;
}

.client-home-cards .card-footer a:not(.btn):hover,
.client-home-cards .card-footer a:not(.btn):focus {
    border-color: var(--primary-200);
    background: var(--primary-50);
    color: var(--nibwoz-blue);
}

.client-home-cards .card-header .btn i,
.client-home-cards .card-footer .btn i,
.sidebar .card-footer .btn i {
    margin: 0;
    line-height: 1;
}

.client-home-cards .div-service-item {
    min-height: 62px;
    padding: 8px 14px;
}

.client-home-cards .div-service-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.client-home-cards .div-service-buttons .btn-group {
    align-items: stretch;
    margin: 0;
}

.client-home-cards .div-service-buttons .btn,
.client-home-cards .div-service-buttons .btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--nibwoz-control-compact-height);
    height: var(--nibwoz-control-compact-height);
    margin: 0;
    font-size: var(--nibwoz-text-sm);
    line-height: 1.2;
}

.client-home-cards #sitejetServiceSelect,
.client-home-cards #sitejetSsoButton {
    height: var(--nibwoz-control-height);
    min-height: var(--nibwoz-control-height);
}

.client-home-cards #sitejetSsoButton {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

/* Client dashboard: full-width domain search using the NIBWOZ control system. */
.client-home-cards .nibwoz-domain-panel .card-body {
    display: flex;
    min-height: 0;
    align-items: center;
    padding: 16px 20px;
}

.client-home-cards .nibwoz-domain-panel form {
    width: 100%;
    margin: 0;
}

.client-home-cards .nibwoz-domain-panel .input-group {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: stretch;
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(6, 22, 47, 0.06);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.client-home-cards .nibwoz-domain-panel .input-group:focus-within {
    border-color: var(--primary-300);
    box-shadow: 0 0 0 3px rgba(0, 79, 172, 0.1), 0 8px 22px rgba(6, 22, 47, 0.06);
}

.client-home-cards .nibwoz-domain-panel .input-group > .form-control,
.client-home-cards .nibwoz-domain-panel input[name="domain"] {
    height: 42px;
    min-height: 42px;
    padding: 0 15px;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent;
    color: var(--text);
    font-size: var(--nibwoz-text-md);
    font-weight: 400;
    box-shadow: none !important;
}

.client-home-cards .nibwoz-domain-panel input[name="domain"]:focus {
    outline: 0 !important;
    box-shadow: none !important;
}

.client-home-cards .nibwoz-domain-panel .input-group-append,
.client-home-cards .nibwoz-domain-panel .input-group-btn {
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;
    gap: 8px;
    margin-left: 8px;
}

.client-home-cards .nibwoz-domain-panel .input-group .btn,
.client-home-cards .nibwoz-domain-panel .input-group button,
.client-home-cards .nibwoz-domain-panel .input-group input[type="submit"],
.client-home-cards .nibwoz-domain-panel .input-group a {
    display: inline-flex;
    height: 42px !important;
    min-height: 42px !important;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 9px !important;
    background: #ffffff;
    color: var(--nibwoz-navy);
    font-size: var(--nibwoz-text-sm);
    font-weight: 700;
    line-height: 1.2;
    box-shadow: none;
}

.client-home-cards .nibwoz-domain-panel .input-group .btn:first-child,
.client-home-cards .nibwoz-domain-panel .input-group .btn-primary,
.client-home-cards .nibwoz-domain-panel .input-group .btn-success {
    border-color: var(--nibwoz-blue);
    background: var(--nibwoz-blue);
    color: #ffffff;
    box-shadow: 0 7px 16px rgba(0, 79, 172, 0.14);
}

.client-home-cards .nibwoz-domain-panel .input-group .btn:hover,
.client-home-cards .nibwoz-domain-panel .input-group .btn:focus {
    border-color: var(--primary-200);
    background: var(--primary-50);
    color: var(--nibwoz-blue);
}

.client-home-cards .nibwoz-domain-panel .input-group .btn:first-child:hover,
.client-home-cards .nibwoz-domain-panel .input-group .btn:first-child:focus,
.client-home-cards .nibwoz-domain-panel .input-group .btn-primary:hover,
.client-home-cards .nibwoz-domain-panel .input-group .btn-primary:focus,
.client-home-cards .nibwoz-domain-panel .input-group .btn-success:hover,
.client-home-cards .nibwoz-domain-panel .input-group .btn-success:focus {
    border-color: #003f8a;
    background: #003f8a;
    color: #ffffff;
}

.client-home-cards .nibwoz-news-panel .card-body:empty {
    display: none;
}

/* Invoice list: typography, status language and action hierarchy. */
.nibwoz-invoices-table #tableInvoicesList {
    color: #334155;
    font-family: "Manrope", sans-serif;
}

.nibwoz-invoices-table #tableInvoicesList thead th {
    padding-top: 13px;
    padding-bottom: 13px;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.025em;
    line-height: 1.25;
}

.nibwoz-invoices-table #tableInvoicesList tbody td {
    padding-top: 13px;
    padding-bottom: 13px;
    color: #334155;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    vertical-align: middle;
}

.nibwoz-invoices-table #tableInvoicesList tbody td:first-child {
    color: var(--nibwoz-blue);
    font-weight: 700;
}

.nibwoz-invoices-table #tableInvoicesList tbody tr {
    transition: background-color 150ms ease;
}

.nibwoz-invoices-table #tableInvoicesList tbody tr:hover td {
    background: #f3f7fc;
}

.nibwoz-invoices-table #tableInvoicesList .status {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.nibwoz-invoices-table #tableInvoicesList .status-paid {
    background: #e8f5ea;
    color: #2d7736;
}

.nibwoz-invoices-table #tableInvoicesList .status-unpaid,
.nibwoz-invoices-table #tableInvoicesList .status-overdue {
    background: #fff0f2;
    color: #c83d4d;
}

.nibwoz-invoices-table #tableInvoicesList .status-payment-pending {
    background: #fff7e6;
    color: #b45309;
}

.nibwoz-invoices-table #tableInvoicesList .status-cancelled {
    background: #eef1f2;
    color: #647172;
}

.nibwoz-invoices-table #tableInvoicesList .status-refunded {
    background: #eaf4ff;
    color: #0e5ea9;
}

.nibwoz-invoices-table #tableInvoicesList .status-collections {
    background: #fff1e8;
    color: #c65f15;
}

.sidebar [menuItemName="Status"] [menuItemName="Paid"] .sidebar-menu-item-icon,
.sidebar [menuItemName="Status"] [menuItemName="Paga"] .sidebar-menu-item-icon,
.sidebar [menuItemName="Status"] [menuItemName="Paid"] .sidebar-menu-item-badge,
.sidebar [menuItemName="Status"] [menuItemName="Paga"] .sidebar-menu-item-badge {
    color: #3a9544;
}

.sidebar [menuItemName="Status"] [menuItemName="Unpaid"] .sidebar-menu-item-icon,
.sidebar [menuItemName="Status"] [menuItemName="Em aberto"] .sidebar-menu-item-icon,
.sidebar [menuItemName="Status"] [menuItemName="Unpaid"] .sidebar-menu-item-badge,
.sidebar [menuItemName="Status"] [menuItemName="Em aberto"] .sidebar-menu-item-badge {
    color: #c83d4d;
}

.sidebar [menuItemName="Status"] [menuItemName="Cancelled"] .sidebar-menu-item-icon,
.sidebar [menuItemName="Status"] [menuItemName="Cancelada"] .sidebar-menu-item-icon,
.sidebar [menuItemName="Status"] [menuItemName="Cancelled"] .sidebar-menu-item-badge,
.sidebar [menuItemName="Status"] [menuItemName="Cancelada"] .sidebar-menu-item-badge {
    color: #7f8c8d;
}

.sidebar [menuItemName="Status"] [menuItemName="Refunded"] .sidebar-menu-item-icon,
.sidebar [menuItemName="Status"] [menuItemName="Reembolsada"] .sidebar-menu-item-icon,
.sidebar [menuItemName="Status"] [menuItemName="Refunded"] .sidebar-menu-item-badge,
.sidebar [menuItemName="Status"] [menuItemName="Reembolsada"] .sidebar-menu-item-badge {
    color: #1677d2;
}

.sidebar .card-footer a[href*="masspay"] {
    border-color: #3a9544 !important;
    background: #3a9544 !important;
    color: #ffffff !important;
    box-shadow: 0 7px 16px rgba(58, 149, 68, 0.17);
}

.sidebar .card-footer a[href*="masspay"]:hover,
.sidebar .card-footer a[href*="masspay"]:focus {
    border-color: #2d7736 !important;
    background: #2d7736 !important;
    color: #ffffff !important;
}

.sidebar .card-footer a[href*="addfunds"] {
    border-color: var(--nibwoz-blue) !important;
    background: var(--nibwoz-blue) !important;
    color: #ffffff !important;
    box-shadow: 0 7px 16px rgba(0, 79, 172, 0.16);
}

.sidebar .card-footer a[href*="addfunds"]:hover,
.sidebar .card-footer a[href*="addfunds"]:focus {
    border-color: #003f8a !important;
    background: #003f8a !important;
    color: #ffffff !important;
}

.sidebar .list-group a[href*="masspay"],
.sidebar .list-group a[href*="addfunds"] {
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    color: var(--nibwoz-navy) !important;
    box-shadow: none !important;
}

.sidebar .list-group a[href*="masspay"]:hover,
.sidebar .list-group a[href*="masspay"]:focus,
.sidebar .list-group a[href*="addfunds"]:hover,
.sidebar .list-group a[href*="addfunds"]:focus {
    background: var(--primary-50) !important;
    color: var(--nibwoz-blue) !important;
}

.sidebar .list-group a[href*="masspay"].active,
.sidebar .list-group a[href*="addfunds"].active {
    background: #e7f1fc !important;
    color: var(--nibwoz-blue) !important;
    box-shadow: inset 3px 0 0 var(--nibwoz-blue) !important;
}

/* Support tickets: keep the native Bootstrap file control and action aligned. */
body .primary-content .attachment-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
}

body .primary-content .attachment-group .custom-file,
body .primary-content .attachment-group .custom-file-input,
body .primary-content .attachment-group .custom-file-label {
    height: var(--nibwoz-control-height);
    min-height: var(--nibwoz-control-height);
}

body .primary-content .attachment-group .custom-file {
    min-width: 0;
    flex: 1 1 auto;
}

body .primary-content .attachment-group .custom-file-label {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0 112px 0 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--nibwoz-control-radius) !important;
    background: #ffffff;
    color: var(--text);
    font-size: var(--nibwoz-text-md);
    line-height: 1.2;
    box-shadow: none;
}

body .primary-content .attachment-group .custom-file-label::after {
    display: flex;
    width: 104px;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-left: 1px solid var(--border);
    border-radius: 0 var(--nibwoz-control-radius) var(--nibwoz-control-radius) 0;
    background: var(--bg-muted);
    color: var(--nibwoz-navy);
    content: "Selecionar";
    font-size: var(--nibwoz-text-sm);
    font-weight: 700;
    line-height: 1.2;
}

body .primary-content .attachment-group .custom-file-input:focus ~ .custom-file-label {
    border-color: var(--primary-300);
    box-shadow: 0 0 0 3px rgba(0, 79, 172, 0.1);
}

body .primary-content .attachment-group .input-group-append {
    display: flex;
    flex: 0 0 auto;
    margin: 0;
}

body .primary-content .attachment-group .input-group-append .btn {
    display: inline-flex;
    height: var(--nibwoz-control-height);
    min-height: var(--nibwoz-control-height);
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--nibwoz-control-radius) !important;
    background: #ffffff;
    color: var(--nibwoz-navy);
    font-size: var(--nibwoz-text-sm);
    font-weight: 700;
    line-height: 1.2;
}

body .primary-content .attachment-group .input-group-append .btn:hover,
body .primary-content .attachment-group .input-group-append .btn:focus {
    border-color: var(--primary-200);
    background: var(--primary-50);
    color: var(--nibwoz-blue);
}

body #order-standard_cart #nexus-root[data-app="domain-module"] {
    display: block;
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .client-home-cards .nibwoz-domain-panel .input-group {
        flex-wrap: wrap;
        gap: 8px;
    }

    .client-home-cards .nibwoz-domain-panel .input-group > .form-control,
    .client-home-cards .nibwoz-domain-panel input[name="domain"] {
        flex: 1 1 100%;
    }

    .client-home-cards .nibwoz-domain-panel .input-group-append,
    .client-home-cards .nibwoz-domain-panel .input-group-btn {
        width: 100%;
        margin-left: 0;
    }

    .client-home-cards .nibwoz-domain-panel .input-group .btn {
        flex: 1 1 0;
    }

    body .primary-content .attachment-group {
        flex-wrap: wrap;
    }

    body .primary-content .attachment-group .custom-file,
    body .primary-content .attachment-group .input-group-append,
    body .primary-content .attachment-group .input-group-append .btn {
        width: 100%;
    }
}

/* Cadastro: a mesma ordem semantica da edicao de conta, mantendo os cards
   nativos de endereco e seguranca independentes. */
body #registration .nibwoz-registration-personal-grid,
body #registration .nibwoz-registration-security-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 2.25rem;
    width: 100%;
    padding: 0 15px;
}

body #registration .nibwoz-registration-billing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem 2.25rem;
    width: 100%;
    padding: 0 15px;
}

body #registration .nibwoz-registration-personal-grid .form-group,
body #registration .nibwoz-registration-billing-grid .form-group,
body #registration .nibwoz-registration-security-grid .form-group {
    min-width: 0;
    margin: 0;
}

body #registration .nibwoz-registration-personal-grid .nibwoz-registration-field-email {
    grid-column: 1 / -1;
    width: calc(50% - 1.125rem);
}

body #registration .nibwoz-registration-personal-grid .nibwoz-registration-field-contact-number {
    align-self: end;
}

body #registration .nibwoz-registration-personal-grid .control,
body #registration .nibwoz-registration-personal-grid .intl-tel-input {
    width: 100%;
}

body #registration .nibwoz-registration-span-6 {
    grid-column: span 2;
}

body #registration .nibwoz-registration-span-3 {
    grid-column: span 1;
}

body #registration .nibwoz-registration-span-full {
    grid-column: 1 / -1;
}

body #main-body .primary-content #registration .card-title {
    margin: 0 0 1rem !important;
    padding: 0;
}

body #main-body .primary-content #registration.nibwoz-registration-formatted .card-body {
    padding: 1.25rem !important;
}

body #registration.nibwoz-registration-formatted .nibwoz-registration-label {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding-top: calc(0.375rem + 1px);
    padding-bottom: calc(0.375rem + 1px);
    border: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.5;
}

body #registration.nibwoz-registration-formatted .form-group {
    position: relative;
}

body #registration.nibwoz-registration-formatted .form-control {
    min-height: 44px;
    border-radius: 9px;
    color: var(--nibwoz-navy);
    font-size: 13px;
    font-weight: 400;
}

body #registration.nibwoz-registration-formatted .card-body > .row {
    row-gap: 1.25rem;
}

body #registration.nibwoz-registration-formatted .card-body > .row > [class*="col-"] > .form-group {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    body #registration .nibwoz-registration-personal-grid,
    body #registration .nibwoz-registration-billing-grid,
    body #registration .nibwoz-registration-security-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
        padding: 0;
    }

    body #registration .nibwoz-registration-span-6,
    body #registration .nibwoz-registration-span-3,
    body #registration .nibwoz-registration-span-full {
        grid-column: auto;
    }

    body #registration .nibwoz-registration-personal-grid .nibwoz-registration-field-email {
        grid-column: auto;
        width: 100%;
    }
}

.action-icon-btns a .ico-container {
    border-color: var(--border-muted);
    background: #ffffff;
    box-shadow: var(--nibwoz-shadow-sm);
}

/* Public homepage: domain search hero. */
.nibwoz-domain-form {
    margin: 0;
}

.home-domain-search.nibwoz-domain-hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 3.75rem;
    background-color: #004fac !important;
    background-image:
        radial-gradient(circle at 88% 16%, rgba(74, 162, 255, 0.48) 0, rgba(74, 162, 255, 0) 32%),
        linear-gradient(118deg, #003d86 0%, #004fac 48%, #0865ca 100%) !important;
    color: #ffffff;
}

.home-domain-search.nibwoz-domain-hero::before,
.home-domain-search.nibwoz-domain-hero::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.home-domain-search.nibwoz-domain-hero::before {
    top: -190px;
    right: -110px;
    width: 470px;
    height: 470px;
}

.home-domain-search.nibwoz-domain-hero::after {
    bottom: -280px;
    left: -180px;
    width: 520px;
    height: 520px;
}

.nibwoz-domain-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
}

.nibwoz-section-heading {
    max-width: 680px;
    margin: 0 auto 2.4rem;
    text-align: center;
}

.nibwoz-section-heading .nibwoz-eyebrow,
.nibwoz-account-heading .nibwoz-eyebrow {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--nibwoz-blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nibwoz-section-heading h1,
.nibwoz-section-heading h2,
.nibwoz-account-heading h2 {
    margin: 0;
    color: var(--nibwoz-navy);
    font-weight: 700;
    letter-spacing: -0.055em;
}

.nibwoz-section-heading h1,
.nibwoz-section-heading h2 {
    font-size: clamp(34px, 3.4vw, 46px);
    line-height: 1.08;
}

.nibwoz-account-heading h2 {
    font-size: clamp(40px, 4vw, 58px);
    line-height: 1.05;
}

.nibwoz-section-heading p,
.nibwoz-account-heading p {
    margin: 0.9rem auto 0;
    color: var(--neutral-500);
    font-size: 15px;
    line-height: 1.75;
}

.nibwoz-section-heading em,
.nibwoz-account-heading em {
    font-family: var(--nibwoz-font-serif);
    font-weight: 400;
}

.nibwoz-section-heading-inverted .nibwoz-eyebrow {
    color: #b9dcff;
}

.nibwoz-section-heading-inverted h1,
.nibwoz-section-heading-inverted p {
    color: #ffffff !important;
}

.nibwoz-section-heading-inverted p {
    max-width: 590px;
    opacity: 0.82;
}

.nibwoz-domain-search-panel {
    padding: 5px 5px 5px 16px;
    border: 1px solid #cad8ea;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 24px 65px rgba(3, 29, 60, 0.28);
}

.nibwoz-domain-input-group {
    flex-wrap: nowrap;
}

.nibwoz-domain-input-group .input-group-text,
.nibwoz-domain-input-group .form-control,
.nibwoz-domain-input-group .btn {
    min-height: 44px;
    border: 0;
}

.nibwoz-domain-input-group .input-group-text {
    padding-right: 7px;
    padding-left: 0;
    background: #ffffff;
    color: var(--neutral-400);
    font-size: 13px;
}

.nibwoz-domain-input-group .form-control {
    min-width: 0;
    background: #ffffff;
    color: var(--nibwoz-navy);
    padding: 0 7px 0 2px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: none;
}

.nibwoz-domain-input-group .form-control::placeholder {
    color: var(--neutral-400);
    font-weight: 400;
}

.nibwoz-domain-input-group .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-width: 0;
    padding-right: 16px;
    padding-left: 16px;
    border-radius: 8px !important;
    font-size: 12px;
    font-weight: 700;
}

.nibwoz-domain-input-group .btn-success {
    margin-left: 0;
}

.nibwoz-domain-input-group .input-group-append {
    gap: 8px;
}

.nibwoz-domain-input-group .input-group-append .btn + .btn {
    margin-left: 0 !important;
}

.nibwoz-domain-mobile-actions {
    margin-top: 0.5rem;
}

.nibwoz-domain-mobile-actions > div:first-child {
    padding-right: 0.25rem;
}

.nibwoz-domain-mobile-actions > div:last-child {
    padding-left: 0.25rem;
}

.nibwoz-domain-mobile-actions .btn {
    min-height: 44px;
}

.nibwoz-domain-captcha {
    max-width: 100%;
    margin: 1.25rem auto 0;
}

.nibwoz-domain-captcha .row {
    margin-right: 0;
    margin-left: 0;
}

.nibwoz-domain-captcha .domainchecker-homepage-captcha {
    max-width: 100%;
    padding: 0.4rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
}

.nibwoz-tld-list,
body .home-domain-search .nibwoz-tld-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 760px;
    margin: 1.75rem auto 0;
    padding: 0;
    color: #ffffff !important;
    list-style: none;
}

.nibwoz-tld-list li,
body .home-domain-search .nibwoz-tld-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-width: 0;
    margin: 0;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.75rem;
    background: rgba(3, 36, 75, 0.23);
    color: #ffffff !important;
}

.nibwoz-tld-list img {
    max-width: 76px;
    max-height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.nibwoz-tld-list li span {
    color: #ffffff !important;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.nibwoz-domain-pricing-link {
    margin-top: 1.25rem;
    text-align: center;
}

.nibwoz-domain-pricing-link a {
    color: #ffffff !important;
    font-size: 0.78rem;
    font-weight: 700;
}

.nibwoz-domain-pricing-link a:hover,
.nibwoz-domain-pricing-link a:focus {
    text-decoration: underline;
}

.nibwoz-domain-pricing-link i,
.nibwoz-card-link i {
    margin-left: 0.35rem;
    transition: transform 0.2s ease;
}

.nibwoz-domain-pricing-link a:hover i,
.nibwoz-card-link:hover i {
    transform: translateX(3px);
}

/* Public homepage: solutions, support and account shortcuts. */
.nibwoz-home-section {
    padding: 2.75rem 0;
}

.nibwoz-home-section + .nibwoz-home-section {
    border-top: 1px solid var(--border-muted);
}

.nibwoz-product-grid,
.nibwoz-shortcut-grid {
    margin-bottom: -1.5rem;
}

.nibwoz-product-grid > div,
.nibwoz-shortcut-grid > div {
    margin-bottom: 1.5rem;
}

body .primary-content .nibwoz-product-card {
    position: relative;
    overflow: hidden;
    margin: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body .primary-content .nibwoz-product-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--nibwoz-blue);
    content: "";
    opacity: 0;
    transition: opacity 0.2s ease;
}

body .primary-content .nibwoz-product-card:hover {
    border-color: var(--primary-200);
    box-shadow: var(--nibwoz-shadow-md);
    transform: translateY(-4px);
}

body .primary-content .nibwoz-product-card:hover::before {
    opacity: 1;
}

.nibwoz-product-card .card-body {
    display: flex;
    flex-direction: column;
    min-height: 280px;
    padding: 2rem;
}

.nibwoz-card-icon,
.nibwoz-shortcut-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    background: var(--primary-50);
    color: var(--nibwoz-blue);
    font-size: 1.25rem;
}

.nibwoz-product-card h3 {
    margin: 1.35rem 0 0.75rem;
    color: var(--nibwoz-navy);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.nibwoz-product-card p {
    flex: 1 1 auto;
    margin-bottom: 1.5rem;
    color: var(--neutral-500);
    font-size: 13px;
    line-height: 1.7;
}

.nibwoz-card-link {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 700;
}

.nibwoz-card-link:hover {
    text-decoration: none;
}

.nibwoz-shortcut-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 155px;
    padding: 1.25rem 0.75rem;
    border: 1px solid var(--border-muted);
    border-radius: 0.875rem;
    background: #ffffff;
    color: var(--nibwoz-navy);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    box-shadow: var(--nibwoz-shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nibwoz-shortcut-card:hover,
.nibwoz-shortcut-card:focus {
    border-color: var(--primary-200);
    color: var(--nibwoz-blue);
    text-decoration: none;
    box-shadow: var(--nibwoz-shadow-md);
    transform: translateY(-3px);
}

.nibwoz-support-section .nibwoz-section-heading {
    max-width: 980px;
}

.nibwoz-support-section .nibwoz-section-heading h2 {
    letter-spacing: -0.045em;
    white-space: nowrap;
}

.nibwoz-shortcut-icon {
    margin-bottom: 1rem;
}

.nibwoz-shortcut-icon-success {
    background: rgba(58, 149, 68, 0.1);
    color: var(--nibwoz-green);
}

.nibwoz-account-section {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.6fr);
    gap: 3rem;
    align-items: center;
    margin-top: 2.75rem;
    padding: 3rem;
    border: 0 !important;
    border-radius: 1rem;
    background: var(--nibwoz-navy);
    color: #ffffff;
    box-shadow: var(--nibwoz-shadow-md);
}

.nibwoz-account-heading .nibwoz-eyebrow {
    color: var(--primary-300);
}

.nibwoz-account-heading h2,
.nibwoz-account-heading p {
    color: #ffffff;
}

.nibwoz-account-heading p {
    max-width: 390px;
    margin-left: 0;
    opacity: 0.72;
}

.nibwoz-account-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.nibwoz-account-links a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 58px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.nibwoz-account-links a:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 0.375rem);
}

.nibwoz-account-links a:hover,
.nibwoz-account-links a:focus {
    border-color: rgba(134, 195, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
}

.nibwoz-account-links i {
    width: 1.25rem;
    color: var(--primary-300);
    font-size: 1rem;
    text-align: center;
}

/* Footer: same visual system as the institutional website. */
footer#footer.nibwoz-footer {
    padding: 0 !important;
    background: #06162f;
    color: #ffffff;
}

.nibwoz-footer-main {
    align-items: flex-start;
    padding-top: 72px;
    padding-bottom: 58px;
}

.nibwoz-footer-brand {
    display: inline-block;
    margin-bottom: 22px;
}

.nibwoz-footer-brand img {
    width: 148px;
    height: auto;
    filter: brightness(0) invert(1);
}

.nibwoz-footer-intro {
    max-width: 315px;
    margin-bottom: 27px;
    color: #8fa3c2;
    font-size: 12px;
    line-height: 1.8;
}

.nibwoz-footer-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #a9bdd8;
    font-size: 10px;
    font-weight: 700;
}

.nibwoz-footer-status .nibwoz-status-dot {
    width: 6px;
    height: 6px;
    background: #20bd78;
    box-shadow: 0 0 0 3px rgba(32, 189, 120, 0.1);
}

.nibwoz-footer-status:hover {
    color: #ffffff;
    text-decoration: none;
}

.nibwoz-footer h2 {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nibwoz-footer ul:not(.list-inline) {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nibwoz-footer ul:not(.list-inline) li {
    margin-bottom: 13px;
}

.nibwoz-footer ul:not(.list-inline) a {
    display: inline-block;
    color: #8fa3c2;
    font-size: 12px;
    line-height: 1.5;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nibwoz-footer ul:not(.list-inline) a:hover {
    color: #ffffff;
    text-decoration: none;
    transform: translateX(3px);
}

.nibwoz-footer-trust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nibwoz-payment-methods {
    display: flex;
    align-items: center;
    gap: 9px;
}

.nibwoz-payment-methods span {
    margin-right: 7px;
    color: #7186a6;
    font-size: 9px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.nibwoz-payment-methods b {
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    color: #dce8fa;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.nibwoz-footer-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 24px 0 25px;
    color: #637797;
    font-size: 9px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nibwoz-footer .nibwoz-footer-bottom .copyright {
    margin: 0;
    color: #637797;
    font-size: 9px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: inherit;
    text-align: left;
    text-transform: inherit;
    white-space: nowrap;
}

.nibwoz-footer-signature {
    color: #7f93b0;
    text-align: center;
    white-space: nowrap;
}

.nibwoz-back-to-top {
    color: #7186a6;
    text-align: right;
    white-space: nowrap;
}

.nibwoz-back-to-top:hover,
.nibwoz-back-to-top:focus {
    color: #ffffff;
    text-decoration: none;
}

.nibwoz-footer-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.nibwoz-footer-tools .list-inline-item {
    margin: 0 !important;
}

.nibwoz-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #a9bdd8 !important;
    font-size: 14px;
    line-height: 1;
    box-shadow: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nibwoz-social-link:hover,
.nibwoz-social-link:focus {
    color: #ffffff !important;
    text-decoration: none;
    transform: translateY(-2px);
}

.nibwoz-social-link i,
.nibwoz-social-link i::before,
.nibwoz-social-link i::after {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
}

.nibwoz-language-item {
    margin-left: 5px !important;
}

.nibwoz-language-item .btn {
    min-height: 34px;
    padding: 0 14px;
    border-color: rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: transparent;
    color: #dce8fa;
    font-size: 10px;
    box-shadow: none;
}

.nibwoz-language-item .btn:hover,
.nibwoz-language-item .btn:focus {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

/* hCaptcha/compatible challenge sizing across login, forms and checkout. */
.h-captcha,
.recaptcha-container,
[data-hcaptcha-widget-id],
#google-recaptcha-domainchecker {
    display: flex;
    justify-content: center;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.h-captcha iframe,
.recaptcha-container iframe,
[data-hcaptcha-widget-id] iframe,
iframe[src*="hcaptcha.com"] {
    display: block;
    max-width: 100%;
}

.login-form .recaptcha-container,
#registration .recaptcha-container,
.nibwoz-domain-captcha .recaptcha-container {
    overflow: hidden;
    border-radius: 0.5rem;
}

/* Desktop hover enhances discovery; click behaviour remains available. */
@media (min-width: 1200px) {
    header.header .main-navbar-wrapper .dropdown:hover > .dropdown-menu {
        display: block;
    }
}

@media (max-width: 1199.98px) {
    header.header .nibwoz-brandbar,
    header.header .nibwoz-brandbar > .container {
        min-height: 70px;
    }

    header.header .main-navbar-wrapper {
        min-height: 0;
    }

    header.header .main-navbar-wrapper .container {
        display: block;
    }

    header.header .main-navbar-wrapper .navbar-collapse {
        padding: 1rem 0 1.25rem;
    }

    header.header .main-navbar-wrapper .navbar-nav > li > a {
        min-height: 44px;
        padding: 0.65rem 0.75rem;
        border-bottom: 0;
        border-radius: 0.5rem;
    }

    header.header .main-navbar-wrapper .navbar-nav > li > a:hover,
    header.header .main-navbar-wrapper .navbar-nav > li > a:focus {
        background: var(--primary-50);
    }

    header.header .main-navbar-wrapper .dropdown-menu {
        width: 100%;
        min-width: 0;
        margin: 0.25rem 0 0.75rem;
        border: 0;
        box-shadow: none;
    }

    .nibwoz-menu-toggle {
        display: inline-flex !important;
    }
}

@media (max-width: 991.98px) {
    .home-domain-search.nibwoz-domain-hero {
        padding-top: 4rem;
    }

    .nibwoz-account-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 767.98px) {
    #alertOverdueInvoice,
    #alertUnpaidInvoice {
        align-items: stretch;
    }

    #alertOverdueInvoice > .float-right,
    #alertUnpaidInvoice > .float-right {
        width: 100%;
        margin-left: 0;
    }

    #alertOverdueInvoice .btn,
    #alertUnpaidInvoice .btn {
        width: 100%;
    }

    header.header .nibwoz-brand .logo-img {
        width: 122px;
        max-height: 36px;
    }

    .nibwoz-brand-context {
        display: none;
    }

    .nibwoz-toolbar {
        margin-left: auto;
    }

    header.header .nibwoz-toolbar .nav-link {
        min-width: 39px;
        min-height: 42px;
        padding: 0.45rem 0.55rem;
    }

    #main-body {
        padding-top: 1.5rem;
        padding-bottom: 3rem;
    }

    .home-domain-search.nibwoz-domain-hero {
        padding: 3.5rem 0 2.75rem;
    }

    .nibwoz-section-heading {
        margin-bottom: 1.75rem;
    }

    .nibwoz-section-heading p,
    .nibwoz-account-heading p {
        font-size: 15px;
    }

    .client-home-cards .nibwoz-panel-heading {
        flex-wrap: wrap;
    }

    .client-home-cards .nibwoz-panel-action {
        width: 100%;
        margin-left: 0;
    }

    .client-home-cards .nibwoz-panel-action .btn {
        width: 100%;
    }

    .nibwoz-section-heading h1,
    .nibwoz-section-heading h2 {
        font-size: 34px;
    }

    .nibwoz-support-section .nibwoz-section-heading h2 {
        white-space: normal;
    }

    .nibwoz-tld-list,
    body .home-domain-search .nibwoz-tld-list {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    .nibwoz-home-section {
        padding: 2rem 0;
    }

    .nibwoz-product-card .card-body {
        min-height: 0;
        padding: 1.6rem;
    }

    .nibwoz-account-section {
        margin-top: 2rem;
        padding: 2rem;
    }

    .nibwoz-footer-main {
        padding-top: 3.25rem;
        padding-bottom: 2.5rem;
    }

    .nibwoz-footer-trust {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 20px 0;
    }

    .nibwoz-footer-tools {
        justify-content: flex-start;
        width: 100%;
    }

    .nibwoz-footer-bottom {
        grid-template-columns: 1fr;
        align-items: flex-start;
        gap: 10px;
    }

    .nibwoz-footer .nibwoz-footer-bottom .copyright,
    .nibwoz-footer-signature,
    .nibwoz-back-to-top {
        width: 100%;
        margin-left: 0;
        text-align: left;
        white-space: normal;
    }
}

@media (max-width: 420px) {
    header.header .nibwoz-brand .logo-img {
        width: 108px;
    }

    .nibwoz-toolbar {
        gap: 0.2rem;
    }

    .nibwoz-toolbar .nav-item.ml-2 {
        margin-left: 0 !important;
    }

    .nibwoz-domain-search-panel {
        padding: 7px;
    }

    .nibwoz-domain-input-group .form-control {
        min-height: 44px;
        padding-right: 0.75rem;
        padding-left: 0.75rem;
        font-size: 14px;
    }

    .nibwoz-account-section {
        padding: 1.5rem;
    }

    .nibwoz-section-heading h1,
    .nibwoz-section-heading h2 {
        font-size: 32px;
    }

    .nibwoz-account-links {
        grid-template-columns: 1fr;
    }

    .nibwoz-account-links a:last-child:nth-child(odd) {
        grid-column: auto;
        width: 100%;
    }

    .nibwoz-payment-methods {
        flex-wrap: wrap;
    }

    .nibwoz-payment-methods span {
        width: 100%;
    }

    .nibwoz-footer-tools {
        flex-wrap: wrap;
        gap: 14px;
    }

    .nibwoz-language-item {
        width: 100%;
        margin-left: 0 !important;
    }
}

@media (max-width: 359.98px) {
    .h-captcha,
    .recaptcha-container,
    [data-hcaptcha-widget-id],
    #google-recaptcha-domainchecker {
        width: 304px;
        height: 70px;
        margin-bottom: 0;
        padding-left: 0 !important;
        transform: scale(0.9);
        transform-origin: center top;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Nexus Cart integration outside the application's Shadow DOM. */
body #order-standard_cart {
    width: 100%;
    padding: 0;
    color: #334155;
    font-family: "Manrope", sans-serif;
    font-size: 13px;
}

body #order-standard_cart > .row {
    align-items: flex-start;
    margin-right: -12px;
    margin-left: -12px;
}

body #order-standard_cart .cart-sidebar,
body #order-standard_cart .cart-body {
    padding-right: 12px;
    padding-left: 12px;
}

body #order-standard_cart .cart-sidebar .panel,
body #order-standard_cart .cart-sidebar .card {
    overflow: hidden;
    border: 1px solid #e1e7ee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(6, 22, 47, 0.05);
}

body #order-standard_cart .cart-sidebar .card-sidebar,
body #order-standard_cart .cart-sidebar .panel-sidebar {
    margin-bottom: 18px;
}

body #order-standard_cart .cart-sidebar .card-header,
body #order-standard_cart .cart-sidebar .panel-heading {
    display: flex;
    min-height: 54px;
    align-items: center;
    padding: 0 18px;
    border: 0;
    border-bottom: 1px solid #e5ebf1;
    border-radius: 12px 12px 0 0;
    background: #ffffff;
    color: var(--nibwoz-navy);
}

body #order-standard_cart .cart-sidebar .card-title,
body #order-standard_cart .cart-sidebar .panel-title {
    display: flex;
    width: 100%;
    align-items: center;
    margin: 0;
    color: var(--nibwoz-navy);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

body #order-standard_cart .cart-sidebar .card-minimise {
    flex: 0 0 auto;
    margin-left: auto;
    color: #64748b;
    font-size: 12px;
    float: none !important;
}

body #order-standard_cart .cart-sidebar .card-header:has(+ .collapsable-card-body[style*="display: none"]) {
    border-bottom: 0;
    border-radius: 12px;
}

body #order-standard_cart .cart-sidebar .list-group {
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0 0 12px 12px;
    background: #ffffff;
    box-shadow: none;
}

body #order-standard_cart .cart-sidebar .list-group-item,
body #order-standard_cart .cart-sidebar a.list-group-item,
body #order-standard_cart .cart-sidebar .panel-sidebar a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 0 18px;
    border: 0;
    border-bottom: 1px solid #edf1f5;
    border-radius: 0;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    transition: background-color 160ms ease, color 160ms ease, padding-left 160ms ease;
}

body #order-standard_cart .cart-sidebar .list-group-item:last-child,
body #order-standard_cart .cart-sidebar a.list-group-item:last-child,
body #order-standard_cart .cart-sidebar .panel-sidebar a:last-child {
    border-bottom: 0;
}

body #order-standard_cart .cart-sidebar .list-group-item:hover,
body #order-standard_cart .cart-sidebar .list-group-item:focus,
body #order-standard_cart .cart-sidebar a.list-group-item:hover,
body #order-standard_cart .cart-sidebar a.list-group-item:focus,
body #order-standard_cart .cart-sidebar .panel-sidebar a:hover,
body #order-standard_cart .cart-sidebar .panel-sidebar a:focus {
    padding-left: 18px;
    background: var(--primary-50);
    color: #004fac;
}

body #order-standard_cart .cart-sidebar .list-group-item.active,
body #order-standard_cart .cart-sidebar a.list-group-item.active,
body #order-standard_cart .cart-sidebar .panel-sidebar a.active {
    padding-left: 18px;
    background: #e7f1fc;
    color: #004fac;
    box-shadow: inset 3px 0 0 #004fac;
}

body #order-standard_cart .cart-sidebar .list-group-item.active:hover,
body #order-standard_cart .cart-sidebar a.list-group-item.active:hover,
body #order-standard_cart .cart-sidebar .panel-sidebar a.active:hover {
    padding-left: 18px;
    background: #dcedff;
    color: #003f8a;
}

body #order-standard_cart .cart-sidebar .sidebar-menu-item-wrapper {
    width: 100%;
    align-items: center;
}

body #order-standard_cart .cart-sidebar .sidebar-menu-item-icon-wrapper {
    display: inline-flex;
    width: 20px;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    margin-right: 9px;
    color: #64748b;
}

body #order-standard_cart .cart-sidebar .list-group-item.active .sidebar-menu-item-icon-wrapper,
body #order-standard_cart .cart-sidebar .list-group-item:hover .sidebar-menu-item-icon-wrapper,
body #order-standard_cart .cart-sidebar .list-group-item:focus .sidebar-menu-item-icon-wrapper {
    color: #004fac;
}

body #order-standard_cart .cart-sidebar .sidebar-menu-item-label {
    min-width: 0;
    flex: 1 1 auto;
}

body.in-shopping-cart .main-navbar-wrapper,
body.in-shopping-cart [data-target="#mainNavbar"] {
    visibility: visible;
}

body.in-shopping-cart .main-navbar-wrapper {
    display: flex !important;
}

body.in-shopping-cart section#main-body {
    --nibwoz-cart-container: 1140px;
    padding-top: 2rem;
    background: #f8fafc;
}

body.in-shopping-cart section#main-body > .container {
    max-width: var(--nibwoz-cart-container) !important;
}

body.in-shopping-cart section#main-body > div:first-child {
    width: 100%;
    max-width: var(--nibwoz-cart-container) !important;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

body.in-shopping-cart #order-standard_cart,
body.in-shopping-cart #nexus-root {
    width: 100%;
    max-width: var(--nibwoz-cart-container) !important;
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 1199.98px) {
    body.in-shopping-cart section#main-body {
        --nibwoz-cart-container: 960px;
    }
}

@media (max-width: 991.98px) {
    body.in-shopping-cart section#main-body {
        --nibwoz-cart-container: 720px;
    }

    body #order-standard_cart .cart-sidebar {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    body.in-shopping-cart section#main-body {
        --nibwoz-cart-container: 540px;
    }
}

@media (max-width: 575.98px) {
    body.in-shopping-cart section#main-body {
        --nibwoz-cart-container: 100%;
    }

    body.in-shopping-cart section#main-body > div:first-child {
        padding-right: 15px;
        padding-left: 15px;
    }
}

/* Telefone internacional: o campo personalizado "Celular" acompanha a
   configuracao nativa do WHMCS sem alterar a validacao do telefone principal. */
body .nibwoz-mobile-phone-control .intl-tel-input,
body .nibwoz-mobile-phone-control .intl-tel-input input {
    width: 100%;
}

body .nibwoz-mobile-phone-control .intl-tel-input.separate-dial-code input {
    min-height: 48px;
}

body .nibwoz-mobile-phone-control .intl-tel-input .selected-flag {
    border-radius: 11px 0 0 11px;
}

body .nibwoz-mobile-phone-control .intl-tel-input .country-list {
    z-index: 1060;
    font-family: var(--nibwoz-font-sans, "Manrope", sans-serif);
}

/* Ordem semantica dos dados da conta. Os campos sao movidos por seus IDs
   nativos, preservando inputs, eventos e validacoes do WHMCS. */
body .nibwoz-account-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 2.25rem;
    width: 100%;
    padding: 0 15px;
}

body .nibwoz-account-details-grid .form-group {
    min-width: 0;
    margin: 0;
}

body .nibwoz-account-details-grid .nibwoz-account-field-email {
    grid-column: 1 / -1;
    width: calc(50% - 1.125rem);
}

body .nibwoz-account-details-grid .nibwoz-account-field-contact-number {
    align-self: end;
}

@media (max-width: 767.98px) {
    body .nibwoz-account-details-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
        padding: 0;
    }

    body .nibwoz-account-details-grid .nibwoz-account-field-email {
        grid-column: auto;
        width: 100%;
    }
}
