/*
 * Tenda Web — Twenty-X Home Refresh v1.1
 * Camada visual não destrutiva: mantém Bootstrap/WHMCS e as rotas/variáveis Smarty.
 */

:root {
    --tw-navy: #071b35;
    --tw-navy-2: #0b2b50;
    --tw-blue: #1466d8;
    --tw-green: #28b67a;
    --tw-bg: #f5f8fc;
    --tw-text: #17263a;
    --tw-muted: #66758a;
    --tw-border: #e3eaf3;
    --tw-white: #fff;
    --tw-radius: 18px;
    --tw-shadow: 0 18px 50px rgba(7, 27, 53, .10);
}

body {
    color: var(--tw-text);
    background: var(--tw-bg);
}

header.header {
    box-shadow: 0 8px 30px rgba(7, 27, 53, .08);
}

header.header .navbar-brand .logo-img {
    max-height: 54px;
}

header.header .navbar-nav .nav-link {
    font-weight: 600;
}

.login-btn-20i,
.register-btn-20i,
.get-strated-btn {
    border-radius: 10px !important;
    font-weight: 700 !important;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.login-btn-20i:hover,
.register-btn-20i:hover,
.get-strated-btn:hover {
    transform: translateY(-2px);
}

/* HERO */
.tw-home-hero {
    position: relative;
    overflow: hidden;
    padding: 78px 0 72px;
    background:
        radial-gradient(circle at 88% 18%, rgba(40, 182, 122, .15), transparent 30%),
        radial-gradient(circle at 10% 10%, rgba(20, 102, 216, .13), transparent 34%),
        linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
}

.tw-home-hero:after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    right: -170px;
    bottom: -200px;
    border: 60px solid rgba(20, 102, 216, .05);
}

.tw-hero-content {
    position: relative;
    z-index: 2;
}

.tw-eyebrow,
.tw-section-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--tw-blue);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.tw-home-hero .fast-hosting-theme-title {
    max-width: 650px;
    margin: 0 0 20px;
    color: var(--tw-navy);
    font-size: clamp(36px, 4.4vw, 58px);
    line-height: 1.04;
    letter-spacing: -.035em;
    font-weight: 800;
}

.tw-home-hero .fast-hosting-theme-text {
    max-width: 590px;
    margin-bottom: 24px;
    color: var(--tw-muted);
    font-size: 18px;
    line-height: 1.7;
}

.tw-feature-list {
    display: grid;
    gap: 10px;
    margin: 0 0 24px;
}

.tw-feature-list > div {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #30445f;
    font-size: 14px;
    line-height: 1.5;
}

.tw-feature-list i {
    margin-top: 3px;
    color: var(--tw-green);
}

.tw-stream-card {
    max-width: 590px;
    padding: 15px 16px;
    margin: 0 0 24px;
    border: 1px solid rgba(20, 102, 216, .13);
    border-radius: 14px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 10px 28px rgba(7, 27, 53, .06);
    backdrop-filter: blur(8px);
}

.tw-stream-copy {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.tw-stream-copy > i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    color: #fff;
    background: var(--tw-blue);
}

.tw-stream-copy strong,
.tw-stream-copy span {
    display: block;
}

.tw-stream-copy strong {
    color: var(--tw-navy);
}

.tw-stream-copy span {
    color: var(--tw-muted);
    font-size: 13px;
}

.tw-stream-card audio {
    width: 100%;
    height: 38px;
    margin-bottom: 8px;
}

.tw-stream-card > a {
    color: var(--tw-blue);
    font-size: 13px;
    font-weight: 700;
}

.tw-hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.tw-hero-actions .get-strated-btn {
    padding: 13px 24px !important;
    border: 0 !important;
    color: #fff !important;
    background: var(--tw-green) !important;
    box-shadow: 0 10px 24px rgba(40, 182, 122, .25);
}

.tw-secondary-action {
    color: var(--tw-navy);
    font-weight: 700;
}

.tw-hero-image {
    position: relative;
    z-index: 1;
    padding: 28px;
}

.tw-hero-image img {
    width: 100%;
    filter: drop-shadow(0 24px 30px rgba(7, 27, 53, .16));
}

/* SECTION HEADERS */
.tw-section-intro {
    max-width: 720px;
    margin: 0 auto 30px;
}

.tw-section-intro h2 {
    margin: 0 0 8px;
    color: var(--tw-navy);
    font-size: 30px;
    font-weight: 800;
}

.tw-section-intro p {
    margin: 0;
    color: var(--tw-muted);
}

/* QUICK LINKS */
.tw-quick-links {
    padding: 58px 0 48px;
    background: #fff;
}

.tw-quick-links .action-icon-btns {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.tw-quick-links .action-icon-btns a,
.tw-account-section .action-icon-btns a {
    height: 100%;
    min-height: 138px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 12px;
    border: 1px solid var(--tw-border) !important;
    border-radius: var(--tw-radius);
    background: #fff !important;
    color: var(--tw-navy) !important;
    box-shadow: 0 8px 25px rgba(7, 27, 53, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tw-quick-links .action-icon-btns a:hover,
.tw-account-section .action-icon-btns a:hover {
    transform: translateY(-5px);
    border-color: rgba(20, 102, 216, .28) !important;
    box-shadow: var(--tw-shadow);
    text-decoration: none;
}

.tw-quick-links .ico-container,
.tw-account-section .ico-container {
    margin-bottom: 4px;
}

.tw-quick-links .ico-container i,
.tw-account-section .ico-container i {
    color: var(--tw-blue) !important;
    font-size: 28px;
}

/* DOMAIN */
.tw-domain-search {
    background: var(--tw-navy);
}

.tw-domain-search h2,
.tw-domain-search h3,
.tw-domain-search p {
    color: #fff;
}

/* PRODUCTS */
.tw-products-section {
    padding-top: 65px;
    padding-bottom: 65px;
}

.tw-products-section > h2,
.tw-products-section .Myhomepage {
    color: var(--tw-navy);
    font-weight: 800;
}

.tw-product-grid .card {
    overflow: hidden;
    border: 1px solid var(--tw-border);
    border-radius: var(--tw-radius);
    box-shadow: 0 10px 32px rgba(7, 27, 53, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.tw-product-grid .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--tw-shadow);
}

.tw-product-grid .card-title {
    color: var(--tw-navy);
    font-weight: 800;
}

.tw-product-grid .card p {
    color: var(--tw-muted);
}

.tw-product-grid .home-icon-fa .ico-container i {
    color: var(--tw-blue);
}

.tw-product-grid .btn-outline-primary {
    border-radius: 10px;
    font-weight: 700;
}

/* ACCOUNT */
.tw-account-section {
    padding: 58px 0 70px;
    background: #fff;
}

.tw-account-section h2 {
    color: var(--tw-navy);
    font-weight: 800;
}

.tw-account-section .action-icon-btns {
    margin-top: 28px !important;
    margin-bottom: 0 !important;
}

/* FOOTER */
#footer.footer {
    padding-top: 48px;
    padding-bottom: 38px;
    background: var(--tw-navy);
}

#footer.footer,
#footer.footer p,
#footer.footer a {
    color: rgba(255,255,255,.82);
}

#footer.footer a:hover {
    color: #fff;
}

/* COOKIE */
.cookie-popup {
    display: none;
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 9999;
    width: calc(100% - 32px);
    max-width: 760px;
    transform: translateX(-50%);
    padding: 16px 18px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    color: #fff;
    background: rgba(7,27,53,.97);
    box-shadow: 0 18px 55px rgba(0,0,0,.25);
}

.cookie-popup__content {
    display: flex;
    align-items: center;
    gap: 18px;
}

.cookie-popup strong {
    display: block;
    margin-bottom: 3px;
}

.cookie-popup p {
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 13px;
    line-height: 1.5;
}

.cookie-popup a {
    color: #8fc4ff;
}

.cookie-popup button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 9px;
    padding: 10px 18px;
    color: #fff;
    background: var(--tw-green);
    font-weight: 700;
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 991.98px) {
    .tw-home-hero {
        padding: 58px 0;
    }

    .tw-home-hero .fast-hosting-theme-title {
        font-size: 42px;
    }

    .tw-hero-image {
        padding: 10px 0 0 20px;
    }
}

@media (max-width: 767.98px) {
    .tw-home-hero {
        padding: 46px 0 38px;
        text-align: left;
    }

    .tw-home-hero .fast-hosting-theme-title {
        font-size: 36px;
    }

    .tw-home-hero .fast-hosting-theme-text {
        font-size: 16px;
    }

    .tw-hero-image {
        max-width: 520px;
        margin: 30px auto 0;
        padding: 0;
    }

    .tw-quick-links .action-icon-btns > div,
    .tw-account-section .action-icon-btns > div {
        margin-bottom: 15px;
    }

    .cookie-popup__content {
        align-items: stretch;
        flex-direction: column;
    }

    .cookie-popup button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .tw-home-hero .fast-hosting-theme-title {
        font-size: 32px;
    }

    .tw-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .tw-hero-actions .btn,
    .tw-secondary-action {
        width: 100%;
        text-align: center;
    }
}


/* ============================================================
   v1.1 — COMPATIBILIDADE COM O custom.css EXISTENTE DO TWENTY-X
   Este arquivo é carregado depois do CSS do tema e não o substitui.
   ============================================================ */

/* O custom.css original posiciona esta grade de forma absoluta/top:-175px.
   Na Home nova ela volta ao fluxo normal. */
body .tw-quick-links .action-icon-btns {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Neutraliza a forma decorativa antiga que avançava 100px sobre a seção anterior. */
body .tw-account-section::after {
    display: none !important;
    content: none !important;
}

body .tw-account-section {
    margin-bottom: 0 !important;
    background: #f5f8fc !important;
}

/* Evita que regras antigas de ícones/figures deformem os cards novos. */
body .tw-quick-links .action-icon-btns a .ico-container,
body .tw-account-section .action-icon-btns a .ico-container {
    position: relative !important;
    margin: 0 0 10px !important;
}

body .tw-quick-links .action-icon-btns a .ico-container::after {
    display: none !important;
    content: none !important;
}

body .tw-quick-links .action-icon-btns a .ico-container i,
body .tw-account-section .action-icon-btns a .ico-container i {
    width: auto !important;
    margin: 0 !important;
    font-size: 2rem !important;
    color: var(--tw-blue) !important;
}

/* O custom.css antigo usa padding muito grande nos cards da conta. */
body .tw-account-section .action-icon-btns a {
    padding: 22px 14px !important;
}

/* Garante que a Hero nova prevaleça sobre padding/background antigos. */
body .fast-hosting-theme-section.tw-home-hero {
    padding: 78px 0 72px !important;
    min-height: 0 !important;
    background:
        radial-gradient(circle at 88% 18%, rgba(40, 182, 122, .15), transparent 30%),
        radial-gradient(circle at 10% 10%, rgba(20, 102, 216, .13), transparent 34%),
        linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%) !important;
}

body .tw-home-hero .fast-hosting-theme-content {
    margin-bottom: 0 !important;
}

/* Produtos: mantém o grid do WHMCS, mas deixa a camada nova vencer o custom.css. */
body .primary-content .tw-products-section .card {
    border-radius: var(--tw-radius) !important;
    border-color: var(--tw-border) !important;
    overflow: hidden;
}

body .primary-content .tw-products-section .card:hover {
    border-color: transparent !important;
    box-shadow: var(--tw-shadow) !important;
}

/* Pesquisa de domínio sem interferir nas rotas/forms nativos. */
body .tw-domain-search .home-domain-search {
    margin: 0 !important;
}

/* Corrige regra antiga que colore parágrafos posteriores à área da conta como rodapé. */
body .tw-account-section ~ p {
    background: transparent !important;
    color: inherit !important;
    padding-bottom: 0 !important;
}

/* Responsividade compatível com as media queries antigas. */
@media (max-width: 991.98px) {
    body .fast-hosting-theme-section.tw-home-hero {
        padding: 58px 0 !important;
    }
}

@media (max-width: 767.98px) {
    body .fast-hosting-theme-section.tw-home-hero {
        padding: 46px 0 38px !important;
    }

    body .tw-quick-links .action-icon-btns {
        display: flex !important;
    }

    body .tw-quick-links .action-icon-btns > div,
    body .tw-account-section .action-icon-btns > div {
        margin-bottom: 15px !important;
    }
}

@media (max-width: 575.98px) {
    body .tw-quick-links .action-icon-btns > div,
    body .tw-account-section .action-icon-btns > div {
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}


/* ============================================================
   AJUSTE PONTUAL — BRANDING WHMCS
   Mantém o "Powered by" e torna o link WHMCompleteSolution
   visível sobre o fundo claro, sem alterar o restante da Home.
   ============================================================ */
body a[href*="whmcs.com"] {
    color: #334155 !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-decoration: none;
}

body a[href*="whmcs.com"]:hover {
    color: #0f172a !important;
    text-decoration: underline;
}


/* ============================================================
   AJUSTE MOBILE MÍNIMO — LEGIBILIDADE DO HERO
   Mantém integralmente o layout original da v1.1.
   ============================================================ */
@media (max-width: 767.98px) {
    body .tw-home-hero .fast-hosting-theme-text {
        font-size: 16.5px;
        line-height: 1.7;
    }

    body .tw-home-hero .tw-feature-list > div {
        font-size: 15px;
        line-height: 1.5;
    }

    body .tw-home-hero .tw-feature-list i {
        font-size: 14px;
    }
}
