/* =====================================================================
   Tema InovHost - inovhost.css
   Identidade visual do site www.inovhost.com aplicada ao WHMCS.
   Carregado depois do theme.min.css (Twenty-One), então sobrescreve ele.
   Para ajustes rápidos, mude as variáveis em :root.
   ===================================================================== */

:root {
    --ih-blue: #1699e5;        /* azul principal do site */
    --ih-blue-dark: #0f7dc2;   /* hover / ativo */
    --ih-blue-soft: #eaf4fc;   /* fundos suaves */
    --ih-blue-line: #e2ecf5;   /* bordas */
    --ih-ink: #2f373d;         /* texto e títulos */
    --ih-navy: #071b2b;        /* barra superior / rodapé inferior */
    --ih-muted: #7a828a;       /* texto secundário */
    --ih-bg: #f4f8fc;          /* fundo da página */
    --ih-radius: 12px;
    --ih-shadow: 0 6px 24px rgba(23, 45, 70, 0.08);
    --ih-shadow-lg: 0 16px 40px rgba(23, 45, 70, 0.16);
    --ih-font-head: 'Hind Vadodara', 'Open Sans', sans-serif;
    --ih-font-body: 'Open Sans', sans-serif;
}

/* ---------- Base ---------- */
html { background: var(--ih-navy); }
body.ih-body {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100vh;
}
body.ih-body > #main-body { flex: 1 0 auto; }
body.ih-body,
.primary-bg-color {
    background-color: var(--ih-bg);
    color: var(--ih-ink);
    font-family: var(--ih-font-body);
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.card-title {
    font-family: var(--ih-font-head);
    color: var(--ih-ink);
    font-weight: 600;
}
a { color: var(--ih-blue); }
a:hover { color: var(--ih-blue-dark); }

/* ---------- Topbar (cliente logado) ---------- */
header.header .topbar {
    background-color: var(--ih-navy);
    padding: 4px 0;
    font-size: 13px;
}

/* ---------- Barra azul principal ---------- */
header.ih-header { background: transparent; }

.ih-mainbar {
    background-color: var(--ih-blue);
    padding: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1030;
}
.ih-mainbar > .container { flex-wrap: wrap; position: relative; }
.ih-brand { padding: 14px 0; margin-right: 1rem; }
.ih-brand img { height: 48px; width: auto; display: block; }

.ih-site-menu .nav-link {
    font-family: var(--ih-font-head);
    color: #fff !important;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 26px 16px !important;
    position: relative;
    transition: opacity 0.25s;
}
.ih-site-menu .nav-link:hover { opacity: 0.85; }
.ih-site-menu .nav-link::after { border: 0; }
.ih-site-menu > .nav-item > .nav-link::before {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 18px;
    height: 2px;
    background: #fff;
    transform: scaleX(0);
    transition: transform 0.25s;
}
.ih-site-menu > .nav-item > .nav-link:hover::before,
.ih-site-menu > .nav-item.show > .nav-link::before { transform: scaleX(1); }
.ih-site-menu .dropdown-toggle::after {
    display: inline-block;
    border: 0;
    content: "\f107";
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 12px;
    vertical-align: 1px;
    margin-left: 6px;
}

/* Botões da direita: carrinho, conta, menu */
.ih-toolbar { flex-direction: row; align-items: center; gap: 10px; }
.ih-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: transparent;
    color: #fff !important;
    font-size: 17px;
    transition: background 0.2s, border-color 0.2s;
}
.ih-icon-btn:hover,
.ih-icon-btn:focus { background: rgba(255, 255, 255, 0.15); border-color: #fff; outline: 0; text-decoration: none; }
.ih-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: #fff;
    color: var(--ih-blue);
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}
.ih-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    background: #fff;
    color: var(--ih-blue) !important;
    font-family: var(--ih-font-head);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: 2px solid #fff;
    transition: background 0.2s, color 0.2s;
}
.ih-account-btn:hover { background: transparent; color: #fff !important; text-decoration: none; }

/* ---------- Mega-menu de produtos ---------- */
.ih-mega { position: static; }
.ih-mega-menu {
    border: 0;
    border-top: 3px solid var(--ih-blue);
    border-radius: 0 0 var(--ih-radius) var(--ih-radius);
    box-shadow: var(--ih-shadow-lg);
    padding: 20px;
    margin-top: 0;
    left: 15px;
    right: 15px;
    gap: 20px;
}
.ih-mega-menu.show { display: flex; }
.ih-mega-grid {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}
.ih-mega-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 10px;
    color: var(--ih-muted) !important;
    font-size: 14px;
    line-height: 1.4;
    transition: background 0.2s;
}
.ih-mega-item img {
    flex: 0 0 52px;
    width: 52px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s;
}
.ih-mega-item strong {
    display: block;
    font-family: var(--ih-font-head);
    font-size: 18px;
    font-weight: 600;
    color: var(--ih-navy);
    text-transform: uppercase;
    margin-bottom: 2px;
    transition: color 0.2s;
}
.ih-mega-item:hover { background: var(--ih-blue-soft); text-decoration: none; }
.ih-mega-item:hover img { filter: none; opacity: 1; }
.ih-mega-item:hover strong { color: var(--ih-blue); }
.ih-mega-banner {
    flex: 0 0 300px;
    min-height: 170px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    align-items: flex-end;
    padding: 18px;
    color: #fff !important;
    font-family: var(--ih-font-head);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
}
.ih-mega-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 27, 43, 0) 30%, rgba(7, 27, 43, 0.85) 100%);
}
.ih-mega-banner span { position: relative; }
.ih-mega-banner small { font-size: 14px; font-weight: 500; color: #90cdf4; }
.ih-mega-banner:hover { text-decoration: none; }

/* ---------- Barra branca: menu WHMCS ---------- */
header.header .ih-subbar {
    background: #fff;
    border-bottom: 1px solid var(--ih-blue-line);
    padding: 0;
}
header.header .ih-subbar .navbar-collapse { padding: 0; }
header.header .ih-subbar .navbar-nav > li > a,
header.header .ih-subbar .navbar-nav > li > .nav-link {
    color: var(--ih-ink);
    font-family: var(--ih-font-head);
    font-weight: 500;
    font-size: 15px;
    padding: 14px 14px;
    position: relative;
}
header.header .ih-subbar .navbar-nav > li > a:hover,
header.header .ih-subbar .navbar-nav > li.active > a { color: var(--ih-blue); }
header.header .ih-subbar .navbar-nav > li.active > a::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--ih-blue);
}
header.header .dropdown-menu {
    border: 0;
    border-radius: 10px;
    box-shadow: var(--ih-shadow-lg);
    padding: 8px;
}
header.header .dropdown-item { border-radius: 6px; padding: 8px 14px; }
header.header .dropdown-item:hover { background: var(--ih-blue-soft); color: var(--ih-blue); }
header.header .dropdown-item.active,
header.header .dropdown-item:active { background: var(--ih-blue); color: #fff; }

.ih-search { position: relative; margin: 8px 12px; }
.ih-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ih-muted);
    font-size: 13px;
}
.ih-search .form-control {
    width: 190px;
    height: 36px;
    padding-left: 34px;
    border-radius: 18px;
    border: 1px solid var(--ih-blue-line);
    background: var(--ih-bg);
    font-size: 13px;
}
.ih-search .form-control:focus {
    border-color: var(--ih-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(22, 153, 229, 0.15);
}

/* ---------- Botões em destaque: Indique um Amigo / Afiliados ---------- */
header.header .ih-subbar .navbar-nav > li.ih-cta { align-self: center; margin-left: 6px; }
header.header .ih-subbar .navbar-nav > li.ih-cta > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: background .15s, color .15s, box-shadow .15s, transform .15s;
}
header.header .ih-subbar .navbar-nav > li.ih-cta-primary > a {
    background: var(--ih-blue);
    color: #fff;
    box-shadow: 0 6px 14px rgba(22, 153, 229, .30);
}
header.header .ih-subbar .navbar-nav > li.ih-cta-primary > a:hover { background: #0f7dc2; color: #fff; transform: translateY(-1px); }
header.header .ih-subbar .navbar-nav > li.ih-cta-outline > a {
    background: #fff;
    color: var(--ih-blue);
    border: 1.5px solid var(--ih-blue);
}
header.header .ih-subbar .navbar-nav > li.ih-cta-outline > a:hover { background: var(--ih-blue); color: #fff; }
@media (max-width: 1199.98px) {
    header.header .ih-subbar .navbar-nav > li.ih-cta { margin: 6px 0; }
    header.header .ih-subbar .navbar-nav > li.ih-cta > a { padding: 10px 16px; }
}

/* rodapé dos cartões da barra lateral (ex.: Pagar Todos / Adicionar fundos) */
.sidebar .card-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; }
.sidebar .card-footer::after { display: none; }
.sidebar .card-footer > form { display: contents; margin: 0; }
.sidebar .card-footer .btn { float: none !important; margin: 0 !important; flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }

/* barra de menu enxuta no desktop: nada quebra linha e a busca vira ícone que expande */
@media (min-width: 1200px) {
    header.header .ih-subbar .navbar-nav > li > a { white-space: nowrap; padding-left: 12px; padding-right: 12px; }
    header.header .ih-subbar .navbar-nav > li.ih-cta > a { padding: 8px 14px; font-size: 13.5px; }
    .ih-search { position: relative; width: 38px; height: 36px; margin: 8px 6px 8px 10px; flex: none; }
    .ih-search i { z-index: 2; left: 13px; pointer-events: none; }
    .ih-search .form-control {
        position: absolute; right: 0; top: 0;
        width: 38px; padding-right: 0; cursor: pointer;
        color: transparent; transition: width .2s ease, box-shadow .2s;
    }
    .ih-search .form-control::placeholder { color: transparent; }
    .ih-search .form-control:focus {
        width: 260px; z-index: 5; cursor: text; color: var(--ih-ink); padding-right: 12px;
    }
    .ih-search .form-control:focus::placeholder { color: var(--ih-muted); }
}

/* ---------- Breadcrumb ---------- */
.master-breadcrumb { background: transparent; }
.master-breadcrumb .breadcrumb { padding: 14px 0 0; font-size: 13px; background: transparent; }
.master-breadcrumb .breadcrumb-item a { color: var(--ih-muted); }
.master-breadcrumb .breadcrumb-item.active { color: var(--ih-ink); }

/* ---------- Componentes ---------- */
.card,
.primary-content .card,
.sidebar .card {
    border: 1px solid var(--ih-blue-line);
    border-radius: var(--ih-radius);
    box-shadow: var(--ih-shadow);
}
.card-header {
    background: #fff;
    border-bottom: 1px solid var(--ih-blue-line);
    border-radius: var(--ih-radius) var(--ih-radius) 0 0 !important;
}
.card-header .card-title { font-size: 17px; }
.sidebar .list-group-item { border-color: var(--ih-blue-line); }
.sidebar .list-group-item.active,
.list-group-item.active {
    background-color: var(--ih-blue);
    border-color: var(--ih-blue);
}

.btn { border-radius: 8px; font-weight: 600; }
.btn-primary,
.btn-success.btn-checkout,
.btn-info {
    background-color: var(--ih-blue);
    border-color: var(--ih-blue);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-info:hover {
    background-color: var(--ih-blue-dark);
    border-color: var(--ih-blue-dark);
}
.btn-outline-primary { color: var(--ih-blue); border-color: var(--ih-blue); }
.btn-outline-primary:hover { background: var(--ih-blue); border-color: var(--ih-blue); }

.form-control { border-radius: 8px; border-color: #d4e3f5; }
.form-control:focus {
    border-color: var(--ih-blue);
    box-shadow: 0 0 0 3px rgba(22, 153, 229, 0.15);
}
.page-item.active .page-link { background-color: var(--ih-blue); border-color: var(--ih-blue); }
.badge-info, .bg-primary { background-color: var(--ih-blue) !important; }

/* ---------- Rodapé ---------- */
footer.footer.ih-footer {
    background: #fff;
    border-top: 1px solid var(--ih-blue-line);
    padding: 70px 0 0;
    margin-top: 40px;
    color: var(--ih-muted);
    font-size: 14px;
}
.ih-footer h4 {
    font-family: var(--ih-font-head);
    font-size: 18px;
    font-weight: 600;
    color: var(--ih-ink);
    margin-bottom: 20px;
}
.ih-footer-brand img { height: 52px; width: auto; margin-bottom: 20px; }
.ih-footer-brand p { margin-bottom: 14px; }
.ih-footer-links { list-style: none; padding: 0; margin: 0 0 30px; }
.ih-footer-links li { line-height: 32px; font-weight: 600; }
.ih-footer-links a { color: var(--ih-blue); transition: color 0.2s; }
.ih-footer-links a:hover { color: var(--ih-ink); text-decoration: none; }
.ih-footer-contact a { color: var(--ih-muted); }

.ih-social { list-style: none; padding: 0; margin: 0 0 30px; display: flex; gap: 8px; }
.ih-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #dbdbdb;
    color: var(--ih-ink);
    transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
}
.ih-social a:hover {
    background: var(--ih-blue);
    border-color: var(--ih-blue);
    color: #fff;
    transform: translateY(-2px);
}

footer.footer .ih-btn-cta {
    background: var(--ih-blue);
    border: 2px solid var(--ih-blue);
    color: #fff !important;
    text-transform: uppercase;
    font-size: 13px;
    padding: 10px 18px;
    margin-bottom: 30px;
}
footer.footer .ih-btn-cta:hover { background: transparent; color: var(--ih-blue) !important; }

footer.footer .ih-footer-bottom {
    background: var(--ih-navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 16px 0;
    font-size: 13px;
}
.ih-footer-bottom .copyright { color: rgba(255, 255, 255, 0.7); }
.ih-locale-btn {
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
}
.ih-locale-btn:hover { color: #fff; border-color: #fff; }
.ih-locale-btn .iti-flag { display: inline-block; vertical-align: middle; margin-right: 4px; }

/* WhatsApp flutuante (mesma posição do site) */
.ih-whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #fff !important;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.2s;
}
.ih-whatsapp-float:hover { transform: scale(1.06); text-decoration: none; }

/* ---------- Desktop: mega-menu abre no hover ---------- */
@media (min-width: 1200px) {
    .ih-mega:hover > .ih-mega-menu { display: flex; }
    .ih-mega > .ih-mega-menu { top: 100%; }
}

/* ---------- Mobile / tablet ---------- */
@media (max-width: 1199.98px) {
    .ih-mainbar > .container,
    header.header .ih-subbar > .container { padding-left: 15px; padding-right: 15px; }
    .ih-brand img { height: 40px; }
    .ih-toolbar { margin-left: auto; }
    .ih-nav-collapse { width: 100%; }
    .ih-site-menu { padding: 8px 0 16px; }
    .ih-site-menu .nav-link { padding: 12px 4px !important; }
    .ih-site-menu > .nav-item > .nav-link::before { display: none; }
    .ih-mega-menu { position: static !important; box-shadow: none; border-radius: 10px; padding: 8px; margin-bottom: 8px; }
    .ih-mega-menu.show { display: block; }
    .ih-mega-grid { grid-template-columns: 1fr; }
    .ih-mega-item { padding: 12px; }
    .ih-mega-item strong { font-size: 15px; }
    header.header .ih-subbar .navbar-collapse { padding: 8px 0 12px; }
    header.header .ih-subbar .navbar-nav > li > a,
    header.header .ih-subbar .navbar-nav > li > .nav-link { padding: 10px 0; display: block; }
    header.header .ih-subbar .dropdown-menu { box-shadow: none; background: var(--ih-bg); }
    header.header .ih-subbar .navbar-nav > li.active > a::before { display: none; }
    .ih-search { margin: 8px 0; }
    .ih-search .form-control { width: 100%; }
}
@media (max-width: 575.98px) {
    .ih-brand img { height: 34px; }
    .ih-footer { padding-top: 50px; }
    .ih-whatsapp-float { width: 52px; height: 52px; font-size: 26px; right: 16px; bottom: 80px; }
}

/* ---------- Páginas personalizadas ---------- */
.ih-ticket-notice { border-radius: var(--ih-radius); border: 0; border-left: 4px solid #f0ad4e; }
.ih-ticket-notice a { color: inherit; text-decoration: underline; }
.ih-affcoupon { border-left: 4px solid var(--ih-blue) !important; }
.ih-thankyou-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--ih-blue-soft);
    color: var(--ih-blue);
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Retirada de comissões (afiliados) */
.ih-withdraw .card { border-top: 3px solid var(--ih-blue); }
.ih-withdraw-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--ih-blue-soft);
    color: var(--ih-blue);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
