/* SiteGo V3 - WHMCS child theme (parent: six) */
:root {
    --sg-primary: #0788ff;
    --sg-primary-dark: #055aa8;
    --sg-navy: #032f57;
    --sg-navy-deep: #021a30;
    --sg-accent: #ff6a00;
    --sg-bg: #f5f8fc;
    --sg-surface: #ffffff;
    --sg-text: #12263a;
    --sg-muted: #66788a;
    --sg-border: #e3eaf2;
    --sg-success: #12a66a;
    --sg-danger: #e74b4b;
    --sg-radius: 16px;
    --sg-shadow: 0 12px 34px rgba(3, 47, 87, .08);
    --sg-shadow-lg: 0 22px 60px rgba(3, 47, 87, .15);
}

html { font-size: 14px; }
body {
    background: var(--sg-bg);
    color: var(--sg-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--sg-primary); transition: color .18s ease, opacity .18s ease; }
a:hover, a:focus { color: var(--sg-primary-dark); text-decoration: none; }
h1,h2,h3,h4,h5,h6 { color: var(--sg-navy-deep); font-weight: 700; letter-spacing: -.015em; }

/* Brand header */
section#header {
    min-height: 76px;
    padding: 10px 0;
    background:
        radial-gradient(circle at 78% 0, rgba(7,136,255,.20), transparent 30%),
        linear-gradient(120deg, #020b14 0%, #032845 55%, #064d83 100%);
    border: 0;
    box-shadow: 0 1px 0 rgba(255,255,255,.05);
}
section#header .container { min-height: 56px; }
section#header .logo {
    display: inline-block;
    width: 230px;
    height: 54px;
    margin: 0;
    overflow: hidden;
    background: url('../img/sitego-logo.png') left center / contain no-repeat;
}
section#header .logo img { width: 100%; height: 100%; opacity: 0; }
section#header .logo.logo-text { color: transparent !important; font-size: 0; }
ul.top-nav { margin-top: 12px; }
ul.top-nav > li > a { color: #dce9f5; font-weight: 600; }
ul.top-nav > li > a:hover, ul.top-nav > li > a:focus { color: #fff; }
ul.top-nav > li.primary-action > a.btn {
    color: #fff;
    background: linear-gradient(135deg, var(--sg-primary), #0b6ed5);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    box-shadow: 0 9px 24px rgba(7,136,255,.22);
}

/* Navigation */
.navbar-main {
    min-height: 50px;
    margin-bottom: 0;
    background: rgba(255,255,255,.98);
    border: 0;
    border-bottom: 1px solid var(--sg-border);
    box-shadow: 0 8px 26px rgba(3,47,87,.05);
}
.navbar-main .navbar-nav > li > a {
    padding-top: 15px;
    padding-bottom: 15px;
    color: #314c66;
    font-weight: 600;
}
.navbar-main .navbar-nav > li > a:hover,
.navbar-main .navbar-nav > li > a:focus,
.navbar-main .navbar-nav > .active > a,
.navbar-main .navbar-nav > .active > a:hover,
.navbar-main .navbar-nav > .open > a {
    color: var(--sg-primary);
    background: #f3f8fe;
}
.navbar-main .dropdown-menu {
    padding: 8px;
    border: 1px solid var(--sg-border);
    border-radius: 12px;
    box-shadow: var(--sg-shadow-lg);
}
.navbar-main .dropdown-menu > li > a { padding: 9px 12px; border-radius: 8px; }
.navbar-main .dropdown-menu > li > a:hover { background: #f1f7fd; color: var(--sg-primary-dark); }
.navbar-main .navbar-toggle { border-color: var(--sg-border); border-radius: 9px; }
.navbar-main .navbar-toggle .icon-bar { background: var(--sg-navy); }

/* Homepage hero */
section#home-banner {
    position: relative;
    overflow: hidden;
    padding: 70px 0 76px;
    background:
        radial-gradient(circle at 85% 20%, rgba(7,136,255,.30), transparent 32%),
        radial-gradient(circle at 12% 95%, rgba(255,106,0,.13), transparent 28%),
        linear-gradient(125deg, #021522 0%, #06345d 58%, #086db8 100%);
}
section#home-banner:after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255,255,255,.05), transparent 40%);
}
section#home-banner .container { position: relative; z-index: 1; }
section#home-banner h2 { margin-bottom: 20px; color: #fff; font-size: 35px; font-weight: 800; }
section#home-banner .input-group { filter: drop-shadow(0 18px 34px rgba(0,0,0,.18)); }
section#home-banner .form-control,
section#home-banner textarea#message {
    min-height: 56px;
    padding: 14px 18px;
    color: var(--sg-text);
    background: #fff;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 13px 0 0 13px;
    font-size: 15px;
}
section#home-banner .btn { min-height: 56px; padding: 0 22px; border: 0; font-weight: 700; }
section#home-banner .btn.search { background: linear-gradient(135deg, var(--sg-primary), #0b6ed5); }
section#home-banner .btn.transfer { background: var(--sg-accent); }

.home-shortcuts {
    background: #fff;
    color: var(--sg-text);
    border-bottom: 1px solid var(--sg-border);
    box-shadow: 0 8px 22px rgba(3,47,87,.04);
}
.home-shortcuts .lead { color: var(--sg-navy); font-weight: 700; }
.home-shortcuts li, .home-shortcuts li:first-child { border-color: var(--sg-border); }
.home-shortcuts li a { color: #3d5871; }
.home-shortcuts li i { color: var(--sg-primary); }
.home-shortcuts li:hover { background: #f5f9fe; }

/* Main layout */
section#main-body { padding-top: 34px; background: var(--sg-bg); }
.main-content { min-height: 390px; }
div.header-lined h1 {
    margin-bottom: 24px;
    padding: 2px 0 15px;
    color: var(--sg-navy-deep);
    border-bottom: 1px solid var(--sg-border);
    font-weight: 800;
}
div.header-lined h1:after {
    content: "";
    display: block;
    width: 58px;
    height: 3px;
    margin-top: 14px;
    background: linear-gradient(90deg, var(--sg-primary), var(--sg-accent));
    border-radius: 999px;
}

/* Cards / panels */
.panel, .well, .list-group, .modal-content, .card {
    border-color: var(--sg-border);
    border-radius: var(--sg-radius);
    box-shadow: var(--sg-shadow);
}
.panel { overflow: hidden; }
.panel-default > .panel-heading,
.client-home-panels .panel > .panel-heading {
    padding: 15px 18px;
    color: var(--sg-navy-deep);
    background: #fff;
    border-bottom: 1px solid var(--sg-border);
}
.panel-title { font-weight: 700; }
.client-home-panels .panel > .panel-body { background: #fff; }
.client-home-panels .panel > .panel-footer { background: #fbfdff; border-color: var(--sg-border); }
.panel-sidebar > .panel-heading { background: linear-gradient(135deg,#fafcff,#f3f8fd); }
.panel-sidebar .list-group-item { border-color: #edf2f7; }
.panel-sidebar .list-group-item:hover, .panel-sidebar .list-group-item.active { background: #f3f8fe; color: var(--sg-primary-dark); }

/* Dashboard tiles */
.tiles .tile, .tile, .client-home-panels .panel {
    transition: transform .18s ease, box-shadow .18s ease;
}
.tiles .tile:hover, .tile:hover, .client-home-panels .panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(3,47,87,.11);
}
.tiles .tile .icon, .tiles .tile .stat { color: var(--sg-primary); }

/* Forms */
.form-control, select.form-control, textarea.form-control, .input-group-addon {
    min-height: 44px;
    color: var(--sg-text);
    background: #fff;
    border-color: #d9e3ed;
    border-radius: 10px;
    box-shadow: none;
}
textarea.form-control { min-height: 110px; }
.form-control:focus {
    border-color: rgba(7,136,255,.72);
    box-shadow: 0 0 0 3px rgba(7,136,255,.11);
}
.input-group .form-control:first-child { border-radius: 10px 0 0 10px; }
.input-group-btn:last-child > .btn { border-radius: 0 10px 10px 0; }
label { color: #324b63; font-weight: 600; }

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 700;
    transition: transform .17s ease, box-shadow .17s ease, opacity .17s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary, .btn-info {
    color: #fff;
    background: linear-gradient(135deg, var(--sg-primary), #086dcc);
    border-color: #086dcc;
    box-shadow: 0 7px 18px rgba(7,136,255,.18);
}
.btn-primary:hover, .btn-primary:focus, .btn-info:hover, .btn-info:focus { background: linear-gradient(135deg,#0079e8,#055cae); border-color: #055cae; }
.btn-success { background: var(--sg-success); border-color: var(--sg-success); }
.btn-warning { color: #fff; background: var(--sg-accent); border-color: var(--sg-accent); }
.btn-danger { background: var(--sg-danger); border-color: var(--sg-danger); }
.btn-default { color: #304a63; background: #fff; border-color: #d8e2ec; }

/* Tables */
.table-responsive { border: 0; }
.table { background: #fff; }
.table > thead > tr > th {
    color: #29445d;
    background: #f5f8fc;
    border-bottom: 1px solid var(--sg-border);
    font-weight: 700;
}
.table > tbody > tr > td { border-top-color: #edf2f7; vertical-align: middle; }
.table > tbody > tr:hover { background: #fbfdff; }
.dataTables_wrapper .dataTables_filter input { border-radius: 9px; border: 1px solid #d8e2ec; }
.pagination > li > a, .pagination > li > span { color: var(--sg-primary-dark); border-color: var(--sg-border); }
.pagination > .active > a, .pagination > .active > span { background: var(--sg-primary); border-color: var(--sg-primary); }

/* Status / labels / alerts */
.label { border-radius: 999px; padding: .35em .7em; font-weight: 700; }
.label-success { background: var(--sg-success); }
.label-info, .label-primary { background: var(--sg-primary); }
.label-warning { background: var(--sg-accent); }
.alert { border: 0; border-radius: 12px; box-shadow: 0 7px 20px rgba(3,47,87,.05); }
.alert-info { color: #075b9c; background: #eaf6ff; }
.alert-success { color: #087047; background: #eaf9f2; }
.alert-warning { color: #8a4a00; background: #fff5e8; }
.alert-danger { color: #9f2f2f; background: #fff0f0; }

/* Login / register / password pages */
.logincontainer, .providerLinkingFeedback, .providerPreLinking {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: 18px;
    box-shadow: var(--sg-shadow-lg);
}
.logincontainer h2 { font-weight: 800; }
.logincontainer .btn-primary { min-height: 44px; }

/* Tickets */
.ticket-reply, .ticket-reply.staff, .ticket-reply.client {
    overflow: hidden;
    border: 1px solid var(--sg-border);
    border-radius: 14px;
    box-shadow: var(--sg-shadow);
}
.ticket-reply .date { color: var(--sg-muted); }
.ticket-reply.staff .user { background: #edf7ff; }
.ticket-reply.client .user { background: #f7f9fc; }

/* Services / domains */
.product-details, .domain-details, .service-details, .metric, .usage-meter {
    border-color: var(--sg-border) !important;
    border-radius: 14px !important;
}
.product-details .product-icon, .domain-details .domain-icon { color: var(--sg-primary); }

/* Invoice list and web invoice helpers */
.invoice-status span { border-radius: 999px; font-weight: 800; letter-spacing: .02em; }
.invoice-status .paid { background: var(--sg-success) !important; }
.invoice-status .unpaid { background: var(--sg-accent) !important; }
.invoice-status .refunded { background: var(--sg-primary) !important; }

/* Modal */
.modal-content { overflow: hidden; border: 0; }
.modal-header { border-bottom-color: var(--sg-border); }
.modal-footer { border-top-color: var(--sg-border); background: #fbfdff; }

/* Footer */
section#footer {
    margin-top: 42px;
    padding: 28px 0;
    color: #a8bed1;
    background: linear-gradient(120deg, #020b14, #032b4c);
    border: 0;
}
section#footer p { margin: 0; color: #a8bed1; }
section#footer a { color: #d9ebfa; }
section#footer .back-to-top { color: #fff; background: rgba(255,255,255,.08); border-radius: 10px; }

/* Responsive */
@media (max-width: 991px) {
    section#header .logo { width: 205px; height: 48px; }
    section#home-banner { padding: 56px 0 62px; }
    section#home-banner h2 { font-size: 30px; }
}

@media (max-width: 767px) {
    body { font-size: 13px; }
    section#header { min-height: 66px; padding: 8px 0; }
    section#header .container { min-height: 48px; }
    section#header .logo { width: 168px; height: 44px; }
    ul.top-nav { margin-top: 7px; }
    ul.top-nav > li:not(.primary-action) { display: none; }
    ul.top-nav > li.primary-action > a.btn { padding: 8px 10px; }
    .navbar-main .navbar-collapse { border-top: 1px solid var(--sg-border); box-shadow: none; }
    .navbar-main .navbar-nav { margin-top: 4px; margin-bottom: 4px; }
    .navbar-main .navbar-nav > li > a { padding: 11px 14px; border-radius: 8px; }
    section#home-banner { padding: 42px 0 48px; }
    section#home-banner h2 { font-size: 25px; line-height: 1.3; }
    section#home-banner .input-group { display: block; filter: none; }
    section#home-banner .form-control,
    section#home-banner textarea#message { width: 100%; border-radius: 11px; }
    section#home-banner .input-group-btn { display: flex; width: 100%; margin-top: 9px; gap: 8px; }
    section#home-banner .input-group-btn .btn { width: 50%; border-radius: 10px !important; }
    section#main-body { padding-top: 22px; }
    div.header-lined h1 { font-size: 25px; }
    .panel, .well, .logincontainer { border-radius: 13px; }
    .logincontainer { padding: 20px; }
    .btn-lg { width: 100%; }
    .table-responsive { margin-bottom: 12px; }
    .main-content { min-height: 300px; }
    section#footer { margin-top: 28px; padding: 22px 0; }
}

@media (max-width: 420px) {
    section#header .logo { width: 145px; height: 40px; }
    ul.top-nav > li.primary-action > a.btn { font-size: 11px; }
    section#home-banner h2 { font-size: 22px; }
}

/* ==========================================================
   SiteGo V3 production polish - cards, logo contrast, mobile
   ========================================================== */

/* Header kept bright so the dark-blue SiteGo wordmark stays readable. */
section#header {
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--sg-border);
    box-shadow: 0 8px 28px rgba(3,47,87,.06);
}
section#header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
section#header .logo {
    order: 1;
    flex: 0 0 auto;
    width: 230px;
    height: 54px;
    background-position: left center;
}
ul.top-nav {
    order: 2;
    flex: 0 0 auto;
}
ul.top-nav > li > a { color: #29465f; }
ul.top-nav > li > a:hover,
ul.top-nav > li > a:focus { color: var(--sg-primary); }
ul.top-nav > li.primary-action > a.btn,
ul.top-nav > li.primary-action > a.btn:hover,
ul.top-nav > li.primary-action > a.btn:focus { color: #fff; }

/* Premium dashboard cards */
.tiles {
    margin: 0 -8px 24px;
}
.tiles > .row { margin-left: 0; margin-right: 0; }
.tiles .tile,
.tiles .tile:last-child,
.tiles .tile:nth-child(1),
.tiles .tile:nth-child(2) {
    padding: 8px;
    background: transparent;
    border: 0;
}
.tiles .tile > a {
    position: relative;
    display: block;
    min-height: 132px;
    padding: 20px;
    overflow: hidden;
    color: var(--sg-text);
    background:
        radial-gradient(circle at 90% 8%, rgba(7,136,255,.10), transparent 34%),
        #fff;
    border: 1px solid var(--sg-border);
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(3,47,87,.07);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tiles .tile:hover { background: transparent; }
.tiles .tile:hover > a {
    transform: translateY(-3px);
    border-color: #c8dff2;
    box-shadow: 0 20px 48px rgba(3,47,87,.12);
}
.tiles .tile .icon {
    top: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--sg-primary);
    background: #eef7ff;
    border-radius: 14px;
    font-size: 22px;
}
.tiles .tile .stat {
    margin-top: 6px;
    color: var(--sg-navy-deep);
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -.04em;
}
.tiles .tile .title {
    margin-top: 8px;
    color: var(--sg-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .055em;
}
.tiles .tile .highlight {
    position: absolute;
    right: 20px;
    bottom: 16px;
    left: 20px;
    height: 3px;
    margin: 0;
    opacity: .9;
    border-radius: 999px;
}
.tiles .tile:nth-child(2) .icon { color: #0f9d68; background: #ebf8f2; }
.tiles .tile:nth-child(3) .icon { color: #e35454; background: #fff0f0; }
.tiles .tile:nth-child(4) .icon { color: #e48a11; background: #fff6e8; }

/* Client homepage panels are true cards, not flat Bootstrap panels. */
.client-home-panels { margin-top: 8px; }
.client-home-panels .panel {
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid var(--sg-border);
    border-top-width: 3px;
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(3,47,87,.07);
}
.client-home-panels .panel > .panel-heading {
    padding: 16px 18px 14px;
    background: linear-gradient(180deg,#fff,#fbfdff);
}
.client-home-panels .panel > .panel-heading .panel-title {
    color: var(--sg-navy-deep);
    font-size: 15px;
    line-height: 1.5;
}
.client-home-panels .panel > .panel-heading .panel-title > i {
    color: var(--sg-primary);
}
.client-home-panels .panel > .panel-body { padding: 14px 18px; }
.client-home-panels .panel > .panel-body p { padding: 0; }
.client-home-panels .panel > .list-group {
    max-height: 230px;
    border-color: var(--sg-border);
}
.client-home-panels .panel > .list-group .list-group-item {
    padding: 11px 15px;
    color: #3a5269;
    border-color: #edf2f7;
}
.client-home-panels .panel > .list-group .list-group-item:hover {
    color: var(--sg-primary-dark);
    background: #f6faff;
}
.client-home-panels .panel > .panel-footer {
    min-height: 12px;
    padding: 10px 18px;
    background: #fbfdff;
    border-top: 1px solid #edf2f7;
}
.client-home-panels .panel-accent-blue { border-top-color: var(--sg-primary); }
.client-home-panels .panel-accent-green,
.client-home-panels .panel-accent-emerald,
.client-home-panels .panel-accent-turquoise { border-top-color: var(--sg-success); }
.client-home-panels .panel-accent-gold,
.client-home-panels .panel-accent-orange,
.client-home-panels .panel-accent-sun-flower { border-top-color: var(--sg-accent); }
.client-home-panels .panel-accent-red,
.client-home-panels .panel-accent-pomegranate { border-top-color: var(--sg-danger); }
.client-home-panels .panel-accent-purple,
.client-home-panels .panel-accent-amethyst,
.client-home-panels .panel-accent-magenta,
.client-home-panels .panel-accent-pink { border-top-color: #7655d9; }

/* KB search gets the same card language. */
.home-kb-search .form-control {
    height: 52px;
    padding-left: 50px;
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: 14px;
    box-shadow: 0 9px 26px rgba(3,47,87,.05);
}
.home-kb-search i { margin-top: -34px; color: var(--sg-primary); }

/* Better shortcut strip and no color collision. */
.home-shortcuts { padding: 8px 0; }
.home-shortcuts li,
.home-shortcuts li:first-child,
.home-shortcuts li:last-child { border: 0; }
.home-shortcuts li a {
    margin: 4px;
    padding: 9px 8px;
    border-radius: 12px;
}
.home-shortcuts li a:hover { background: #f1f7fd; }

/* Tables and common content cards */
.panel-default,
.well,
.modal-content { background-color: #fff; }
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Avoid forcing every large button full-width on phones (can break inline actions). */
@media (max-width: 767px) {
    section#header .container { min-height: 48px; }
    section#header .logo { width: 162px; height: 42px; }
    ul.top-nav { margin: 0; }
    ul.top-nav > li.primary-action > a.btn { margin-top: 2px; }

    .tiles { margin-left: -5px; margin-right: -5px; }
    .tiles .tile,
    .tiles .tile:last-child,
    .tiles .tile:nth-child(1),
    .tiles .tile:nth-child(2) { padding: 5px; }
    .tiles .tile > a { min-height: 118px; padding: 15px; border-radius: 15px; }
    .tiles .tile .icon { top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 12px; font-size: 18px; }
    .tiles .tile .stat { margin-top: 5px; font-size: 31px; }
    .tiles .tile .title { max-width: calc(100% - 42px); font-size: 10px; }
    .tiles .tile .highlight { right: 15px; bottom: 13px; left: 15px; }

    .client-home-panels .panel { margin-bottom: 14px; border-radius: 15px; }
    .client-home-panels .panel > .panel-heading { padding: 14px 15px 12px; }
    .client-home-panels .panel > .panel-body { padding: 13px 15px; }
    .client-home-panels .panel > .list-group .list-group-item { padding: 10px 13px; }

    /* Cancel the older broad rule. Only obvious form CTAs become full width. */
    .btn-lg { width: auto; }
    .logincontainer .btn-lg,
    .logincontainer .btn-primary,
    .form-actions .btn-lg { width: 100%; }

    .home-shortcuts { padding: 7px 0; }
    .home-shortcuts li { float: left; width: 50%; padding: 3px; }
    .home-shortcuts li a { min-height: 70px; padding: 10px 6px; background: #fff; border: 1px solid var(--sg-border); }
    .home-shortcuts li i { font-size: 20px; }
    .home-shortcuts li p { white-space: normal; font-size: 10px; line-height: 1.35; }
}

@media (max-width: 420px) {
    section#header .logo { width: 146px; height: 38px; }
    .tiles .tile > a { min-height: 112px; padding: 13px; }
    .tiles .tile .icon { top: 12px; right: 12px; width: 36px; height: 36px; font-size: 16px; }
    .tiles .tile .stat { font-size: 28px; }
    .tiles .tile .title { max-width: calc(100% - 34px); }
}

/* SiteGo V3 standalone logo safety */
section#header .logo {
    background-image: url('../img/sitego-logo.png') !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: contain !important;
}
section#header .logo img {
    opacity: 0 !important;
}

/* Extra standalone responsive guards */
img, svg, video, canvas { max-width: 100%; }
pre, code { overflow-wrap: anywhere; }
.table-responsive { width: 100%; }
.main-content, .sidebar { min-width: 0; }
@media (max-width: 767px) {
    .row > [class*="col-"] { min-width: 0; }
    .modal-dialog { margin: 12px; }
    .modal-content { max-width: 100%; }
    .input-group { max-width: 100%; }
    .panel-body { overflow-wrap: anywhere; }
}

/* ==========================================================
   SiteGo V3.2 production fixes
   - clean header/navigation contrast
   - sidebar active state
   - responsive safety
   ========================================================== */

/* Header: clean white premium surface, always readable */
section#header {
    min-height: 72px !important;
    padding: 9px 0 !important;
    background: #ffffff !important;
    border-bottom: 1px solid var(--sg-border) !important;
    box-shadow: 0 5px 20px rgba(3,47,87,.05) !important;
}
section#header .container {
    min-height: 54px !important;
    position: relative;
}
section#header .logo {
    width: auto !important;
    height: 54px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    overflow: visible !important;
    display: inline-flex !important;
    align-items: center;
}
section#header .logo img {
    width: auto !important;
    height: auto !important;
    max-width: 220px !important;
    max-height: 50px !important;
    opacity: 1 !important;
    display: block;
}
ul.top-nav { margin-top: 9px !important; }
ul.top-nav > li > a {
    color: #27445f !important;
    border-radius: 9px;
}
ul.top-nav > li > a:hover,
ul.top-nav > li > a:focus { color: var(--sg-primary-dark) !important; background: #f2f7fc; }
ul.top-nav > li.primary-action > a.btn {
    color: #fff !important;
    background: linear-gradient(135deg,var(--sg-primary),#0870d5) !important;
    border-color: #0870d5 !important;
    box-shadow: 0 7px 18px rgba(7,136,255,.18) !important;
}

/* Main nav: remove the dark active block seen on account menu */
.navbar-main .navbar-nav > li > a {
    color: #284761 !important;
    background: transparent !important;
}
.navbar-main .navbar-nav > li > a:hover,
.navbar-main .navbar-nav > li > a:focus,
.navbar-main .navbar-nav > .active > a,
.navbar-main .navbar-nav > .active > a:hover,
.navbar-main .navbar-nav > .active > a:focus,
.navbar-main .navbar-nav > .open > a,
.navbar-main .navbar-nav > .open > a:hover,
.navbar-main .navbar-nav > .open > a:focus {
    color: #075fa8 !important;
    background: #eaf4ff !important;
    box-shadow: inset 0 -2px 0 var(--sg-primary) !important;
}
.navbar-main .navbar-nav.navbar-right > li > a {
    margin: 5px 0;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    border-radius: 10px 10px 0 0;
}
.navbar-main .dropdown-menu > li > a,
.navbar-main .navbar-nav .dropdown-menu > li > a {
    color: #29455f !important;
    background: #fff !important;
}
.navbar-main .dropdown-menu > li > a:hover,
.navbar-main .dropdown-menu > li > a:focus,
.navbar-main .navbar-nav .dropdown-menu > li > a:hover,
.navbar-main .navbar-nav .dropdown-menu > li > a:focus {
    color: #075fa8 !important;
    background: #eef6ff !important;
}

/* Sidebar: active item must not become charcoal with blue text */
.panel-sidebar a.list-group-item.active,
.panel-sidebar a.list-group-item.active:focus,
.panel-sidebar a.list-group-item.active:hover,
a.list-group-item.active,
a.list-group-item.active:hover,
a.list-group-item.active:focus {
    color: #075fa8 !important;
    background: #eaf4ff !important;
    border-color: #d8eaff !important;
    box-shadow: inset 3px 0 0 var(--sg-primary) !important;
}
.panel-sidebar a.list-group-item.active i,
.panel-sidebar a.list-group-item.active:focus i,
.panel-sidebar a.list-group-item.active:hover i {
    color: var(--sg-primary) !important;
}

/* Email verification bar */
.alert.alert-warning .btn,
.email-verification .btn {
    color: #fff !important;
    background: linear-gradient(135deg,var(--sg-primary),#0870d5) !important;
    border-color: #0870d5 !important;
    border-radius: 9px !important;
}

/* Mobile / tablet safety */
@media (max-width: 991px) {
    section#header { min-height: 66px !important; }
    section#header .logo { height: 48px !important; }
    section#header .logo img { max-width: 180px !important; max-height: 44px !important; }
    .navbar-main .navbar-header { float: none !important; }
    .navbar-main .navbar-toggle { display: block !important; margin-right: 15px; }
    .navbar-main .navbar-collapse.collapse { display: none !important; }
    .navbar-main .navbar-collapse.collapse.in { display: block !important; }
    .navbar-main .navbar-nav,
    .navbar-main .navbar-nav.navbar-right { float: none !important; margin: 7px 0 !important; }
    .navbar-main .navbar-nav > li { float: none !important; }
    .navbar-main .navbar-nav > li > a,
    .navbar-main .navbar-nav.navbar-right > li > a {
        margin: 2px 0 !important;
        padding: 10px 14px !important;
        border-radius: 9px !important;
        box-shadow: none !important;
    }
    .main-content,
    .sidebar { min-width: 0; }
}

@media (max-width: 767px) {
    section#header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    section#header .logo { flex: 0 1 auto; }
    section#header .logo img { max-width: 155px !important; max-height: 40px !important; }
    ul.top-nav {
        float: none !important;
        flex: 0 0 auto;
        margin: 0 !important;
        display: flex;
        align-items: center;
        gap: 3px;
    }
    ul.top-nav > li { margin: 0 !important; }
    ul.top-nav > li > a { padding: 7px 8px !important; font-size: 12px; }
    section#main-body { padding-top: 22px; }
    .panel, .well, .modal-content, .logincontainer { border-radius: 13px; }
    .table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .btn { max-width: 100%; }
}

@media (max-width: 480px) {
    section#header .logo img { max-width: 130px !important; }
    ul.top-nav > li:not(.primary-action) > a { padding-left: 5px !important; padding-right: 5px !important; }
}

/* ==========================================================
   SiteGo V3.3 - real WHMCS Six selector fixes
   ========================================================== */

/* WHMCS Six paints the LI.account itself dark, not only its <a>. */
.navbar-main li.account,
.navbar-main .navbar-nav > li.account,
#Secondary_Navbar-Account {
    background: transparent !important;
}

/* Account menu: premium light pill in every state. */
.navbar-main li.account > a,
.navbar-main li.account > a:link,
.navbar-main li.account > a:visited,
#Secondary_Navbar-Account > a,
#Secondary_Navbar-Account > a:link,
#Secondary_Navbar-Account > a:visited {
    color: #083f6e !important;
    background: #f1f7fd !important;
    border: 1px solid #dbeaf7 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}
.navbar-main li.account > a:hover,
.navbar-main li.account > a:focus,
.navbar-main li.account.open > a,
.navbar-main li.account.open > a:hover,
.navbar-main li.account.open > a:focus,
#Secondary_Navbar-Account > a:hover,
#Secondary_Navbar-Account > a:focus,
#Secondary_Navbar-Account.open > a,
#Secondary_Navbar-Account.open > a:hover,
#Secondary_Navbar-Account.open > a:focus {
    color: #0568bd !important;
    background: #e8f4ff !important;
    border-color: #cfe6fa !important;
    box-shadow: 0 6px 18px rgba(7,136,255,.10) !important;
}
.navbar-main li.account > a .caret,
#Secondary_Navbar-Account > a .caret {
    border-top-color: currentColor !important;
    border-bottom-color: currentColor !important;
}

/* Sidebar: cover both anchor and non-anchor active items. */
.panel-sidebar .list-group-item.active,
.panel-sidebar .list-group-item.active:hover,
.panel-sidebar .list-group-item.active:focus,
.panel-sidebar a.list-group-item.active,
.panel-sidebar a.list-group-item.active:hover,
.panel-sidebar a.list-group-item.active:focus {
    color: #075fa8 !important;
    background: #eaf4ff !important;
    border-color: #d8eaff !important;
    box-shadow: inset 3px 0 0 #0788ff !important;
}
.panel-sidebar .list-group-item.active i,
.panel-sidebar .list-group-item.active:hover i,
.panel-sidebar .list-group-item.active:focus i {
    color: #0788ff !important;
}

/* Keep the main menu white even if Six overrides are cached. */
#main-menu .navbar-main,
nav#nav.navbar-main {
    background: #ffffff !important;
    border-bottom: 1px solid #e3eaf2 !important;
}

@media (max-width: 991px) {
    .navbar-main li.account,
    #Secondary_Navbar-Account { background: transparent !important; }
    .navbar-main li.account > a,
    #Secondary_Navbar-Account > a {
        margin: 3px 0 !important;
        border-radius: 9px !important;
    }
}
