/*
 * ProHost Portal Enhancement Layer
 * Front-end only overrides for the WHMCS client portal theme.
 * Safe to remove: delete this file and the include in includes/head.tpl.
 */
:root {
    --prohost-navy: #07111f;
    --prohost-slate: #0f1d33;
    --prohost-card: #ffffff;
    --prohost-card-soft: #f8fbff;
    --prohost-blue: #2563eb;
    --prohost-cyan: #06b6d4;
    --prohost-violet: #7c3aed;
    --prohost-green: #10b981;
    --prohost-text: #0f172a;
    --prohost-muted: #64748b;
    --prohost-border: rgba(15, 23, 42, .10);
    --prohost-shadow: 0 24px 70px rgba(15, 23, 42, .14);
    --prohost-radius: 22px;
}

html {
    scroll-behavior: smooth;
}

body.lagom {
    background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 42%, #f8fbff 100%);
    color: var(--prohost-text);
    font-feature-settings: "kern", "liga";
    text-rendering: optimizeLegibility;
}

body.lagom a,
body.lagom .btn {
    transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.lagom .btn:hover,
body.lagom .tile:hover,
body.lagom .panel:hover,
body.lagom .card:hover {
    transform: translateY(-1px);
}

body.lagom .btn-primary,
body.lagom .btn-primary:focus,
body.lagom .btn-primary:hover {
    background: linear-gradient(135deg, var(--prohost-blue), var(--prohost-cyan));
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(37, 99, 235, .25);
}

body.lagom .btn-primary-faded,
body.lagom .btn-default,
body.lagom .btn-light {
    border-color: rgba(37, 99, 235, .16);
    background: rgba(37, 99, 235, .08);
    color: #1d4ed8;
}

body.lagom .app-nav,
body.lagom .app-nav-header,
body.lagom .navbar-main,
body.lagom .site-navbar,
body.lagom .top-nav {
    backdrop-filter: saturate(160%) blur(18px);
}

body.lagom .app-nav,
body.lagom .app-nav-header {
    border-bottom: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 16px 44px rgba(15, 23, 42, .08);
}

body.lagom .main-banner.banner-home {
    position: relative;
    overflow: hidden;
    padding: 96px 0 112px;
    color: #fff;
    background:
        radial-gradient(circle at 18% 18%, rgba(6, 182, 212, .42), transparent 28%),
        radial-gradient(circle at 82% 26%, rgba(124, 58, 237, .34), transparent 28%),
        linear-gradient(135deg, #061120 0%, #0f2347 48%, #112f63 100%);
}

body.lagom .main-banner.banner-home:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.85), transparent 88%);
}

body.lagom .main-banner.banner-home .container,
body.lagom .main-banner.banner-home .banner-content {
    position: relative;
    z-index: 2;
}

body.lagom .main-banner.banner-home .banner-title {
    max-width: 920px;
    margin: 0 auto 26px;
    color: #fff;
    font-size: clamp(2.35rem, 5vw, 4.75rem);
    line-height: 1.02;
    letter-spacing: -.055em;
    font-weight: 800;
}

body.lagom .main-banner.banner-home .banner-title:after {
    content: "Reliable hosting, domains and support from one secure customer portal.";
    display: block;
    max-width: 760px;
    margin: 18px auto 0;
    color: rgba(226, 232, 240, .92);
    font-size: clamp(1.02rem, 1.7vw, 1.25rem);
    line-height: 1.7;
    letter-spacing: 0;
    font-weight: 450;
}

body.lagom .domain-search-input,
body.lagom .search-group.has-shadow {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 28px 80px rgba(2, 6, 23, .34);
}

body.lagom .domain-search-input .form-control {
    min-height: 64px;
    border: 0;
    font-size: 1.05rem;
}

body.lagom .main-body .section {
    margin-top: 42px;
    margin-bottom: 42px;
}

body.lagom .section-header .section-title,
body.lagom .main-content .main-title,
body.lagom h1,
body.lagom h2,
body.lagom h3 {
    letter-spacing: -.025em;
}

body.lagom .tile,
body.lagom .panel,
body.lagom .card,
body.lagom .list-group-item,
body.lagom .service-card {
    border: 1px solid var(--prohost-border);
    border-radius: var(--prohost-radius);
    box-shadow: 0 12px 38px rgba(15, 23, 42, .07);
}

body.lagom .tile-home {
    min-height: 178px;
    padding: 26px 20px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

body.lagom .tile-home .tile-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(6, 182, 212, .14));
}

body.lagom .tile-home:hover {
    border-color: rgba(37, 99, 235, .24);
    box-shadow: var(--prohost-shadow);
}

.prohost-trustbar {
    margin-top: -46px;
    position: relative;
    z-index: 5;
}

.prohost-trustbar__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 28px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 22px 70px rgba(15, 23, 42, .16);
    backdrop-filter: blur(20px);
}

.prohost-trust-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.prohost-trust-item__icon,
.prohost-action-card__icon,
.prohost-feature-card__icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--prohost-blue), var(--prohost-cyan));
    box-shadow: 0 14px 24px rgba(37, 99, 235, .22);
}

.prohost-trust-item strong,
.prohost-action-card strong,
.prohost-feature-card strong {
    display: block;
    color: var(--prohost-text);
    font-weight: 800;
}

.prohost-trust-item span,
.prohost-action-card span,
.prohost-feature-card p {
    color: var(--prohost-muted);
    font-size: .94rem;
}

.prohost-section {
    padding: 58px 0;
}

.prohost-section-header {
    max-width: 760px;
    margin: 0 auto 30px;
    text-align: center;
}

.prohost-eyebrow {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 7px 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(37, 99, 235, .16);
    border-radius: 999px;
    color: #1d4ed8;
    background: rgba(37, 99, 235, .08);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.prohost-grid-3,
.prohost-grid-4 {
    display: grid;
    gap: 18px;
}

.prohost-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prohost-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.prohost-feature-card,
.prohost-action-card,
.prohost-dashboard-card,
.prohost-testimonial,
.prohost-status-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    padding: 24px;
    border: 1px solid var(--prohost-border);
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 18px 54px rgba(15, 23, 42, .08);
}

.prohost-feature-card:after,
.prohost-dashboard-card:after {
    content: "";
    position: absolute;
    inset: auto -30px -50px auto;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .08);
}

.prohost-feature-card h3,
.prohost-dashboard-card h3 {
    margin-top: 16px;
    margin-bottom: 10px;
    font-weight: 800;
}

.prohost-status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, #ecfdf5, #eff6ff);
}

.prohost-status-dot {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 50%;
    background: var(--prohost-green);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, .12);
}

.prohost-cta-panel {
    padding: 42px;
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(circle at 15% 20%, rgba(6, 182, 212, .38), transparent 28%),
        linear-gradient(135deg, #07111f, #153b7a);
    box-shadow: 0 28px 84px rgba(15, 23, 42, .22);
}

.prohost-cta-panel h2,
.prohost-cta-panel p {
    color: #fff;
}

.prohost-client-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0 28px;
}

.prohost-action-card {
    text-decoration: none !important;
}

.prohost-action-card:hover {
    border-color: rgba(37, 99, 235, .28);
    box-shadow: var(--prohost-shadow);
}

.prohost-support-strip {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
    margin: 22px 0;
}

.prohost-floating-help {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 999;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 14px 18px;
    border-radius: 999px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--prohost-blue), var(--prohost-cyan));
    box-shadow: 0 18px 40px rgba(37, 99, 235, .34);
    font-weight: 800;
    text-decoration: none !important;
}

.prohost-satisfaction {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding: 18px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid var(--prohost-border);
}

.prohost-price-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: #edf4ff;
    border: 1px solid rgba(37, 99, 235, .14);
}

.prohost-price-toggle button {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    background: transparent;
    color: #1d4ed8;
    font-weight: 800;
}

.prohost-price-toggle button.is-active {
    background: #fff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, .14);
}

body.lagom .main-footer,
body.lagom .footer {
    border-top: 1px solid rgba(148, 163, 184, .22);
    background: linear-gradient(180deg, #f8fbff, #eef5ff);
}

body.lagom :focus-visible {
    outline: 3px solid rgba(37, 99, 235, .38);
    outline-offset: 3px;
}

@media (max-width: 991px) {
    body.lagom .main-banner.banner-home { padding: 74px 0 92px; }
    .prohost-trustbar__inner,
    .prohost-client-quick-actions,
    .prohost-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .prohost-grid-3,
    .prohost-support-strip { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
    body.lagom .main-banner.banner-home { padding: 58px 0 78px; }
    body.lagom .domain-search-input,
    body.lagom .search-group.has-shadow { border-radius: 24px; }
    .prohost-trustbar__inner,
    .prohost-client-quick-actions,
    .prohost-grid-4 { grid-template-columns: 1fr; }
    .prohost-cta-panel { padding: 28px; }
    .prohost-floating-help { right: 14px; bottom: 14px; padding: 12px 14px; }
}
