:root {
    --bpw-primary: #0a2b5e;
    --bpw-secondary: #014e92;
    --bpw-accent: #ecf1f4;
    --bpw-text: #54595f;
    --bpw-white: #ffffff;
    --bpw-dark: #0b1f45;
}

body.bpw-whmcs-theme {
    font-family: 'Work Sans', sans-serif;
    color: var(--bpw-text);
    background: #f6f8fb;
}

.bpw-site-header {
    background: linear-gradient(135deg, var(--bpw-primary) 0%, var(--bpw-secondary) 100%);
    color: var(--bpw-white);
    position: sticky;
    top: 0;
    z-index: 1040;
    box-shadow: 0 8px 24px rgba(10, 43, 94, 0.2);
}

.bpw-header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.bpw-site-branding {
    flex: 0 0 auto;
}

.bpw-logo {
    width: 210px;
    max-width: 100%;
    height: auto;
}

.bpw-main-navigation {
    flex: 1 1 auto;
}

.bpw-main-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    margin: 0;
    padding: 0;
}

.bpw-main-menu a {
    color: var(--bpw-white);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.bpw-main-menu a:hover,
.bpw-main-menu a:focus {
    opacity: 1;
    text-decoration: none;
}

.bpw-header-cta {
    flex: 0 0 auto;
}

.bpw-contact-button {
    display: inline-block;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--bpw-white);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

.bpw-contact-button:hover,
.bpw-contact-button:focus {
    background: var(--bpw-white);
    color: var(--bpw-primary);
    text-decoration: none;
}

.bpw-mobile-menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 0.3rem;
    margin-left: auto;
}

.bpw-mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 1px;
    margin: 5px 0;
    background: var(--bpw-white);
}

.bpw-mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 24, 54, 0.8);
    z-index: 1050;
    padding: 1.5rem;
}

.bpw-mobile-menu-panel {
    max-width: 420px;
    margin-left: auto;
    background: linear-gradient(180deg, var(--bpw-primary) 0%, var(--bpw-secondary) 100%);
    border-radius: 14px;
    padding: 1.25rem;
    color: var(--bpw-white);
}

.bpw-mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.bpw-mobile-menu-close {
    border: 0;
    background: transparent;
    color: var(--bpw-white);
    font-size: 2rem;
    line-height: 1;
}

.bpw-mobile-menu-links {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.bpw-mobile-menu-links li {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.bpw-mobile-menu-links li:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.bpw-mobile-menu-links a {
    display: block;
    color: var(--bpw-white);
    text-decoration: none;
    padding: 0.8rem 0;
    font-weight: 600;
}

body.bpw-mobile-menu-open {
    overflow: hidden;
}

.bpw-whmcs-header {
    border-top: 4px solid rgba(255, 255, 255, 0.28);
}

header.header .topbar {
    background: #071a3d;
    color: #d9e3f5;
}

header.header .topbar .btn,
header.header .topbar .active-client .btn,
header.header .topbar .active-client .input-group-text {
    color: #d9e3f5;
}

.navbar-light,
.main-navbar-wrapper {
    background: var(--bpw-primary);
}

.navbar li a,
.navbar li a:link,
.navbar li a:active,
.navbar li a:visited,
.navbar-light a {
    color: var(--bpw-white);
}

.dropdown-item:focus, 
.dropdown-item:hover
 {
    background-color: var(--bpw-secondary);
}

.navbar li a:hover,
.navbar li a:focus {
    color: #bcd3ff;
    text-decoration: none;
}

.dropdown-menu {
    margin-top: 10px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(3, 14, 35, 0.16);
    background-color: var(--bpw-primary);
}

.dropdown-menu .dropdown-item {
    color: #173465;
}

.master-breadcrumb {
    background: #f1f5fb;
    border-top: 1px solid rgba(10, 43, 94, 0.08);
}

.card-header,
.client-home-cards .card-header,
.dataTables_wrapper table.table-list thead th.sorting_asc,
.dataTables_wrapper table.table-list thead th.sorting_desc,
table.table-list thead th,
.page-item.active .page-link,
.pagination>.active>a,
.pagination>.active>a:focus,
.pagination>.active>a:hover,
.pagination>.active>span,
.pagination>.active>span:focus,
.pagination>.active>span:hover {
    background-color: var(--bpw-secondary);
    border-color: var(--bpw-secondary);
    color: var(--bpw-white);
}

.sidebar .list-group-item.active,
.sidebar .list-group-item.active:focus,
.sidebar .list-group-item.active:hover {
    background-color: var(--bpw-primary);
    border-color: var(--bpw-primary);
}

footer.footer {
    background-color: transparent;
    color: var(--bpw-text);
}

footer.footer .btn {
    background-color: var(--bpw-secondary);
    color: var(--bpw-white);
}

.bpw-site-footer {
    background: linear-gradient(180deg, var(--bpw-primary) 0%, var(--bpw-dark) 100%);
    color: #dce7fb;
    margin-top: 2rem;
}

.bpw-footer-container {
    padding-top: 3rem;
    padding-bottom: 1.2rem;
}

.bpw-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
}

.bpw-footer-logo img {
    width: 220px;
    height: auto;
    margin-bottom: 1rem;
}

.bpw-footer-column h4 {
    color: var(--bpw-white);
    font-size: 1rem;
    margin-bottom: 0.9rem;
    font-weight: 700;
}

.bpw-footer-column p,
.bpw-footer-column li,
.bpw-footer-column a {
    color: #dce7fb;
    font-size: 0.95rem;
    line-height: 1.7;
    text-decoration: none;
}

.bpw-footer-column a:hover,
.bpw-footer-column a:focus {
    color: var(--bpw-white);
    text-decoration: none;
}

.bpw-footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bpw-footer-socials {
    margin-top: 1rem;
    display: flex;
    gap: 0.65rem;
}

.bpw-footer-socials a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(220, 231, 251, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bpw-footer-bottom {
    border-top: 1px solid rgba(220, 231, 251, 0.18);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    color: #adc4ea;
    font-size: 0.9rem;
}

@media (max-width: 1199px) {
    .bpw-main-navigation,
    .bpw-header-cta {
        display: none;
    }

    .bpw-mobile-menu-toggle {
        display: inline-block;
    }

    .bpw-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .bpw-header-inner {
        min-height: 76px;
    }

    .bpw-logo {
        width: 176px;
    }

    .bpw-footer-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .bpw-site-footer {
        margin-top: 1rem;
    }
}
