/* Unified final design layer for all WHMCS pages. */
:root {
    --simple-accent-final: #67d4ff;
    --simple-accent-hover-final: #8ee2ff;
    --simple-bg-final: #0d1426;
    --simple-bg-alt-final: #111a2e;
    --simple-panel-final: #151f35;
    --simple-panel-hover-final: #19243b;
    --simple-line-final: rgba(255,255,255,.10);
    --simple-text-final: #f3f6f4;
    --simple-copy-final: #a6b0ac;
}

/* Hero contrast and the remaining translated eyebrow labels. */
.simple-home .simple-hero h1,
.simple-home .simple-hero h1 * { color: var(--simple-text-final) !important; }
.simple-home .simple-eyebrow,
.simple-home .simple-eyebrow * { color: var(--simple-accent-final) !important; }
.simple-home .simple-eyebrow i { background: var(--simple-accent-final) !important; }

/* Deliberate alternating homepage rhythm. */
.simple-home .simple-products { background: var(--simple-bg-final) !important; }
.simple-home .simple-features { background: var(--simple-bg-alt-final) !important; }
.simple-home .simple-security { background: var(--simple-bg-final) !important; }
.simple-home .simple-location { background: var(--simple-bg-alt-final) !important; }
.simple-home .home-domain-search { background: var(--simple-bg-final) !important; }
.simple-home .simple-reviews { background: var(--simple-bg-alt-final) !important; }
.simple-home .simple-help { background: var(--simple-bg-final) !important; }

/* Contact strip immediately above the footer. */
.simple-help { background: var(--simple-bg-final) !important; border-color: var(--simple-line-final) !important; }
.simple-help .simple-kicker,
.simple-help .simple-kicker * { color: var(--simple-accent-final) !important; }
.simple-help .simple-kicker:before,
.simple-help .simple-kicker:after { background-color: var(--simple-accent-final) !important; border-color: var(--simple-accent-final) !important; }
.simple-help h2 { color: var(--simple-text-final) !important; }
.simple-help p { color: var(--simple-copy-final) !important; }
.simple-help .simple-text-link { color: var(--simple-accent-final) !important; }

.simple-reviews,
section.simple-reviews {
    background-color: var(--simple-bg-alt-final) !important;
    background-image: none !important;
    border-color: var(--simple-line-final) !important;
    color: var(--simple-copy-final) !important;
}
.simple-reviews:before,.simple-reviews:after { content: none !important; display: none !important; }
.simple-reviews .simple-section-heading h2 { color: var(--simple-text-final) !important; }
.simple-reviews .simple-section-heading p { color: var(--simple-copy-final) !important; }
.simple-reviews .simple-kicker { color: var(--simple-accent-final) !important; }
.simple-reviews .simple-review-card {
    background: var(--simple-panel-final) !important;
    border-color: var(--simple-line-final) !important;
}

/* Shared portal foundation, overriding old per-page themes. */
.portal-page:not(.simple-home) #main-body {
    background: var(--simple-bg-final) !important;
    color: var(--simple-copy-final) !important;
}
.portal-page:not(.simple-home) .tt-page-header {
    background: var(--simple-bg-alt-final) !important;
    border-bottom: 1px solid var(--simple-line-final) !important;
    box-shadow: none !important;
}
.portal-page:not(.simple-home) .tt-page-header:before,
.portal-page:not(.simple-home) .tt-page-header:after { content: none !important; display: none !important; }
.portal-page:not(.simple-home) .tt-page-header h1 { color: var(--simple-text-final) !important; font-family: inherit !important; }
.portal-page:not(.simple-home) .tt-page-header p,
.portal-page:not(.simple-home) .breadcrumb-item { color: var(--simple-copy-final) !important; }

.portal-page:not(.simple-home) #main-body .card,
.portal-page:not(.simple-home) #main-body .panel,
.portal-page:not(.simple-home) #main-body .tt-custom-card,
.portal-page:not(.simple-home) #main-body .table-container,
.portal-page:not(.simple-home) #main-body .well,
.portal-page:not(.simple-home) #main-body .modal-content {
    background: var(--simple-panel-final) !important;
    border: 1px solid var(--simple-line-final) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    color: var(--simple-copy-final) !important;
}
.portal-page:not(.simple-home) #main-body .card-header,
.portal-page:not(.simple-home) #main-body .panel-heading,
.portal-page:not(.simple-home) #main-body .table thead th {
    background: var(--simple-panel-hover-final) !important;
    border-color: var(--simple-line-final) !important;
    color: var(--simple-text-final) !important;
}
.portal-page:not(.simple-home) #main-body .card-footer,
.portal-page:not(.simple-home) #main-body .panel-footer,
.portal-page:not(.simple-home) #main-body .list-group-item,
.portal-page:not(.simple-home) #main-body .table td {
    background: var(--simple-panel-final) !important;
    border-color: rgba(255,255,255,.08) !important;
    color: var(--simple-copy-final) !important;
}
.portal-page:not(.simple-home) #main-body .list-group-item:hover,
.portal-page:not(.simple-home) #main-body .table tbody tr:hover td { background: var(--simple-panel-hover-final) !important; }
.portal-page:not(.simple-home) #main-body h1,
.portal-page:not(.simple-home) #main-body h2,
.portal-page:not(.simple-home) #main-body h3,
.portal-page:not(.simple-home) #main-body h4,
.portal-page:not(.simple-home) #main-body h5,
.portal-page:not(.simple-home) #main-body h6 { color: var(--simple-text-final) !important; font-family: inherit !important; }
.portal-page:not(.simple-home) #main-body a:not(.btn) { color: var(--simple-accent-final) !important; }
.portal-page:not(.simple-home) #main-body .form-control,
.portal-page:not(.simple-home) #main-body .custom-select,
.portal-page:not(.simple-home) #main-body select,
.portal-page:not(.simple-home) #main-body textarea {
    background: #0f182b !important;
    border: 1px solid rgba(255,255,255,.13) !important;
    color: var(--simple-text-final) !important;
}
.portal-page:not(.simple-home) #main-body .form-control:focus,
.portal-page:not(.simple-home) #main-body select:focus,
.portal-page:not(.simple-home) #main-body textarea:focus {
    border-color: rgba(103,212,255,.55) !important;
    box-shadow: 0 0 0 3px rgba(103,212,255,.12) !important;
}
.portal-page:not(.simple-home) #main-body .btn-primary,
.portal-page:not(.simple-home) #main-body .btn-success {
    background: var(--simple-accent-final) !important;
    border-color: var(--simple-accent-final) !important;
    box-shadow: none !important;
    color: #07142e !important;
}
.portal-page:not(.simple-home) #main-body .btn-primary:hover,
.portal-page:not(.simple-home) #main-body .btn-success:hover {
    background: var(--simple-accent-hover-final) !important;
    border-color: var(--simple-accent-hover-final) !important;
}

/* News and knowledge base lose their legacy glass/gradient treatment. */
.fh-newsroom-intro,.fh-news-card,.fh-news-article-header,.fh-news-article-shell,
.fh-kb-hero,.fh-kb-category-card,.fh-kb-popular,.fh-kb-search-compact,
.fh-kb-document,.fh-kb-document-head,.fh-kb-document-layout,.fh-kb-helpful {
    background: var(--simple-panel-final) !important;
    border-color: var(--simple-line-final) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}
.fh-newsroom-intro:before,.fh-newsroom-intro:after,
.fh-news-card:before,.fh-news-card:after,
.fh-kb-hero:before,.fh-kb-hero:after { content: none !important; display: none !important; }
.fh-newsroom,.fh-news-article,.fh-kb-page { color: var(--simple-copy-final) !important; }
.fh-news-kicker,.fh-news-latest,.fh-news-card-action i,
.fh-kb-kicker,.fh-kb-category-arrow,.fh-kb-file-icon,.fh-kb-row-arrow,
.fh-kb-panel-status i { color: var(--simple-accent-final) !important; }

/* Game, Minecraft and reseller landing pages use the same restrained system. */
.fh-game-page { --gp-blue: #67d4ff; --gp-cyan: #67d4ff; --gp-line: var(--simple-line-final); }
.fh-game-page__hero,.fh-game-page__intro,.fh-game-page__steps,.fh-game-page__guide,
.fh-game-page__faq,.fh-game-page__cta,.fh-minecraft-edition,
.fh-about-intro,.fh-about-story > div,.fh-reseller-hero,.fh-reseller-card {
    background: var(--simple-panel-final) !important;
    border-color: var(--simple-line-final) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}
.fh-game-page__hero:before,.fh-game-page__cta:before,
.fh-minecraft-edition:before,.fh-about-intro:before,.fh-about-intro:after { content: none !important; display: none !important; }
.fh-game-page__hero {
    min-height: 390px !important;
    overflow: hidden !important;
}
.fh-game-page__hero > img {
    filter: grayscale(.45) saturate(.55) !important;
    object-position: 78% center !important;
    opacity: .16 !important;
}
.fh-game-page__shade {
    background: linear-gradient(90deg,#151f35 0%,#151f35 54%,rgba(21,31,53,.82) 72%,rgba(21,31,53,.58) 100%) !important;
}
.fh-game-page__hero-content {
    max-width: 760px !important;
    padding: 52px 46px 66px !important;
}
.fh-game-page__hero h1 {
    color: var(--simple-text-final) !important;
    font-family: inherit !important;
    font-size: clamp(2.4rem,4.5vw,4rem) !important;
    letter-spacing: -.045em !important;
    line-height: 1.02 !important;
}
.fh-game-page__hero p { color: var(--simple-copy-final) !important; }
.fh-game-page__identity,
.fh-game-page__actions > span {
    background: rgba(255,255,255,.035) !important;
    border-color: var(--simple-line-final) !important;
    border-radius: 6px !important;
    color: #c5cdca !important;
}
.fh-game-page__kicker i,.fh-game-page__online i,
.fh-game-page__features i,.fh-minecraft-edition__status,
.fh-minecraft-edition__status i { background-color: transparent !important; color: var(--simple-accent-final) !important; box-shadow: none !important; }
.fh-game-page__kicker i,.fh-game-page__online i { background: var(--simple-accent-final) !important; }
.fh-game-page__features article,.fh-game-page__steps article,.fh-game-page__guide-grid article,
.fh-game-page__faq details {
    background: var(--simple-bg-alt-final) !important;
    border-color: var(--simple-line-final) !important;
    border-radius: 8px !important;
}

/* Minecraft and game-server packages. */
.fh-game-page__plans {
    background: var(--simple-panel-final) !important;
    border: 1px solid var(--simple-line-final) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    padding: 34px !important;
}
.fh-game-page__plans > header > span,
.fh-game-page__plan-head small { color: var(--simple-accent-final) !important; }
.fh-game-page__plans > header p { color: var(--simple-copy-final) !important; }
.fh-game-page__plan-grid { gap: 12px !important; }
.fh-game-page__plan {
    background: var(--simple-bg-alt-final) !important;
    border: 1px solid var(--simple-line-final) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    padding: 22px !important;
}
.fh-game-page__plan:hover {
    background: var(--simple-panel-hover-final) !important;
    border-color: rgba(103,212,255,.28) !important;
}
.fh-game-page__plan.is-featured {
    border-color: rgba(103,212,255,.42) !important;
    box-shadow: none !important;
}
.fh-game-page__popular {
    background: rgba(103,212,255,.12) !important;
    border: 1px solid rgba(103,212,255,.20) !important;
    border-radius: 5px !important;
    color: var(--simple-accent-hover-final) !important;
}
.fh-game-page__plan-head h3,
.fh-game-page__price strong { color: var(--simple-text-final) !important; }
.fh-game-page__price { border-color: var(--simple-line-final) !important; }
.fh-game-page__price span,.fh-game-page__plan li { color: var(--simple-copy-final) !important; }
.fh-game-page__plan li i { color: var(--simple-accent-final) !important; }
.fh-game-page__plan .btn {
    background: var(--simple-accent-final) !important;
    border: 1px solid var(--simple-accent-final) !important;
    border-radius: 7px !important;
    box-shadow: none !important;
    color: #07142e !important;
}
.fh-game-page__plan .btn:hover,
.fh-game-page__plan .btn:focus {
    background: var(--simple-accent-hover-final) !important;
    border-color: var(--simple-accent-hover-final) !important;
}

/* Complete cart and checkout reset. */
.simple-store #main-body,
.simple-store #order-standard_cart {
    background: var(--simple-bg-final) !important;
    color: var(--simple-copy-final) !important;
}
.simple-store #order-standard_cart .header-lined,
.simple-store #order-standard_cart .tt-single-product,
.simple-store #order-standard_cart .cart-sidebar .card-sidebar,
.simple-store #order-standard_cart .sidebar-collapsed,
.simple-store #order-standard_cart .summary-container,
.simple-store #order-standard_cart .order-summary,
.simple-store #order-standard_cart .view-cart-items,
.simple-store #order-standard_cart .product-info,
.simple-store #order-standard_cart .panel-addon,
.simple-store #order-standard_cart .addon-product,
.simple-store #order-standard_cart .field-container,
.simple-store #order-standard_cart .configurable-options,
.simple-store #order-standard_cart .addon-products,
.simple-store #order-standard_cart .metrics-container,
.simple-store #order-standard_cart .domain-selection-options .option {
    background: var(--simple-panel-final) !important;
    border: 1px solid var(--simple-line-final) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    color: var(--simple-copy-final) !important;
}
.simple-store #order-standard_cart .header-lined:before,
.simple-store #order-standard_cart .header-lined:after,
.simple-store #order-standard_cart .tt-single-product:before,
.simple-store #order-standard_cart .tt-single-product:after,
.simple-store #order-standard_cart .product-info:before,
.simple-store #order-standard_cart .product-info:after { content: none !important; display: none !important; }
.simple-store #order-standard_cart h1,
.simple-store #order-standard_cart h2,
.simple-store #order-standard_cart h3,
.simple-store #order-standard_cart h4,
.simple-store #order-standard_cart .product-title,
.simple-store #order-standard_cart .product-name,
.simple-store #order-standard_cart .price,
.simple-store #order-standard_cart .amt { color: var(--simple-text-final) !important; font-family: inherit !important; }
.simple-store #order-standard_cart p,
.simple-store #order-standard_cart li,
.simple-store #order-standard_cart small,
.simple-store #order-standard_cart .text-muted { color: var(--simple-copy-final) !important; }
.simple-store #order-standard_cart .cart-sidebar .card-header,
.simple-store #order-standard_cart .sidebar-collapsed .card-header,
.simple-store #order-standard_cart .view-cart-items-header,
.simple-store #order-standard_cart .order-summary > h2,
.simple-store #order-standard_cart .order-summary > h3 {
    background: var(--simple-panel-hover-final) !important;
    border-color: var(--simple-line-final) !important;
    color: var(--simple-text-final) !important;
}
.simple-store #order-standard_cart .list-group-item,
.simple-store #order-standard_cart .view-cart-item {
    background: var(--simple-panel-final) !important;
    border-color: rgba(255,255,255,.08) !important;
    color: var(--simple-copy-final) !important;
}
.simple-store #order-standard_cart .form-control,
.simple-store #order-standard_cart .field,
.simple-store #order-standard_cart select,
.simple-store #order-standard_cart textarea,
.simple-store #order-standard_cart input[type="text"],
.simple-store #order-standard_cart input[type="password"],
.simple-store #order-standard_cart input[type="number"],
.simple-store #order-standard_cart input[type="email"] {
    background: #0f182b !important;
    border: 1px solid rgba(255,255,255,.13) !important;
    color: var(--simple-text-final) !important;
}
.simple-store #order-standard_cart .btn-primary,
.simple-store #order-standard_cart .btn-success,
.simple-store #order-standard_cart button[type="submit"] {
    background: var(--simple-accent-final) !important;
    border-color: var(--simple-accent-final) !important;
    box-shadow: none !important;
    color: #07142e !important;
}
.simple-store #order-standard_cart .btn-default,
.simple-store #order-standard_cart .btn-secondary {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    box-shadow: none !important;
    color: #d9deea !important;
}

/* Dynamic client-area panels and third-party dashboard widgets. */
.portal-page .fh-client-dashboard .fh-client-action-primary,
.portal-page .fh-client-dashboard .fh-client-action-primary:hover,
.portal-page .fh-client-dashboard .fh-client-action-primary:focus {
    background: var(--simple-accent-final) !important;
    border-color: var(--simple-accent-final) !important;
    color: #07142e !important;
}
.fh-client-dashboard .client-home-cards .card,
.fh-client-dashboard .tt-client-home-cards .card,
.fh-client-dashboard .fh-client-addons > div,
.fh-client-dashboard .panel,
.fh-client-dashboard .mc-promo-login,
.fh-client-dashboard .mc-promo-manage {
    background: var(--simple-panel-final) !important;
    border: 1px solid var(--simple-line-final) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    color: var(--simple-copy-final) !important;
}
.fh-client-dashboard .client-home-cards .card-header,
.fh-client-dashboard .tt-client-home-cards .card-header,
.fh-client-dashboard .panel .panel-heading {
    background: var(--simple-panel-hover-final) !important;
    border-color: var(--simple-line-final) !important;
    color: var(--simple-text-final) !important;
}
.fh-client-dashboard .client-home-cards .card-title,
.fh-client-dashboard .tt-client-home-cards .card-title,
.fh-client-dashboard .panel .panel-title { color: var(--simple-text-final) !important; font-family: inherit !important; }
.fh-client-dashboard .client-home-cards .list-group-item,
.fh-client-dashboard .tt-client-home-cards .list-group-item,
.fh-client-dashboard .panel .list-group-item,
.fh-client-dashboard .panel .panel-body,
.fh-client-dashboard .panel .panel-footer {
    background: var(--simple-panel-final) !important;
    border-color: rgba(255,255,255,.08) !important;
    color: var(--simple-copy-final) !important;
}
.fh-client-dashboard .client-home-cards a,
.fh-client-dashboard .tt-client-home-cards a { color: var(--simple-accent-final) !important; }
.fh-client-dashboard .client-home-cards .btn,
.fh-client-dashboard .tt-client-home-cards .btn { color: #d9deea !important; }

/* No non-semantic green remains in visible brand components. */
.simple-shell .text-success,
.simple-shell .strong-green,
.simple-shell .strong-green * { color: var(--simple-accent-final) !important; }
.simple-shell .badge-success,
.simple-shell .bg-success:not(.alert-success) { background-color: #43a8f7 !important; }

@media (max-width: 767.98px) {
    .fh-newsroom-intro,.fh-kb-hero,.fh-game-page__intro,.fh-game-page__steps,
    .fh-game-page__guide,.fh-game-page__faq,.fh-game-page__cta,.fh-minecraft-edition,
    .fh-game-page__plans { padding: 26px 20px !important; }
    .fh-game-page__hero { min-height: 480px !important; }
    .fh-game-page__hero-content { padding: 40px 22px 82px !important; }
    .fh-game-page__shade { background: rgba(21,31,53,.90) !important; }
}
