/*
 * HostPanel Public Apex
 * Premium public website design layer for hosting pages.
 */

:root {
    --web-bg: #f7fafc;
    --web-paper: #ffffff;
    --web-ink: #0f172a;
    --web-muted: #64748b;
    --web-line: #dbe5f0;
    --web-blue: #155eef;
    --web-cyan: #0891b2;
    --web-green: #047857;
    --web-navy: #07111f;
    --web-navy-2: #0b1220;
    --web-amber: #f59e0b;
    --web-radius: 10px;
    --web-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 18px 48px rgba(15, 23, 42, .1);
    --web-shadow-soft: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px rgba(15, 23, 42, .07);
}

html,
body {
    color: var(--web-ink);
    background: var(--web-bg);
    font-family: Inter, "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    letter-spacing: 0;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--web-ink);
    letter-spacing: 0;
}

p {
    color: var(--web-muted);
}

/* Premium public navbar */
.navbar,
.hp-navbar {
    background: rgba(7, 17, 31, .86) !important;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 18px 46px rgba(7, 17, 31, .14);
}

.navbar.scrolled,
.hp-navbar.scrolled {
    background: rgba(255, 255, 255, .94) !important;
    border-bottom: 1px solid var(--web-line);
    box-shadow: 0 10px 34px rgba(15, 23, 42, .08);
}

.navbar-brand,
.hp-navbar .navbar-brand {
    color: #fff !important;
    font-weight: 850 !important;
    -webkit-text-fill-color: currentColor !important;
    background: none !important;
}

.navbar.scrolled .navbar-brand,
.hp-navbar.scrolled .navbar-brand {
    color: var(--web-ink) !important;
}

.navbar-brand i,
.hp-navbar .brand-icon,
.hp-navbar .navbar-brand .brand-icon {
    color: #60a5fa !important;
}

.navbar .nav-link,
.hp-nav-links a {
    color: rgba(255, 255, 255, .78) !important;
    border-radius: 8px;
    font-weight: 700 !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active,
.hp-nav-links a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .08);
}

.navbar.scrolled .nav-link,
.hp-navbar.scrolled .hp-nav-links a {
    color: #334155 !important;
}

.navbar.scrolled .nav-link:hover,
.hp-navbar.scrolled .hp-nav-links a:hover {
    color: var(--web-blue) !important;
    background: #eef5ff;
}

.dropdown-menu {
    border: 1px solid var(--web-line) !important;
    border-radius: var(--web-radius) !important;
    box-shadow: var(--web-shadow) !important;
    padding: .45rem !important;
}

.dropdown-item {
    border-radius: 7px;
    font-weight: 700;
}

.dropdown-item:hover {
    background: #eef5ff;
    color: var(--web-blue);
}

/* Hero and page headers */
.hero,
.page-header,
.hp-hero {
    position: relative;
    isolation: isolate;
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,.035) 1px, transparent 1px),
        radial-gradient(circle at 76% 22%, rgba(8, 145, 178, .34), transparent 26%),
        radial-gradient(circle at 16% 16%, rgba(21, 94, 239, .42), transparent 30%),
        linear-gradient(135deg, #07111f 0%, #0f172a 52%, #111827 100%) !important;
    background-size: 34px 34px, 34px 34px, auto, auto, auto !important;
    color: #fff !important;
    padding: 140px 0 90px !important;
}

.hero::before,
.page-header::before,
.hp-hero::before {
    content: "";
    position: absolute;
    inset: auto 8% 8% auto;
    width: min(44vw, 560px);
    aspect-ratio: 1.35;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.035)),
        linear-gradient(90deg, rgba(96,165,250,.18), rgba(34,211,238,.12));
    box-shadow: 0 36px 120px rgba(0,0,0,.28);
    transform: perspective(900px) rotateY(-14deg) rotateX(8deg);
    z-index: -1;
}

.hero::after,
.page-header::after,
.hp-hero::after {
    content: "";
    position: absolute;
    right: 12%;
    bottom: 13%;
    width: min(36vw, 460px);
    height: 220px;
    border-radius: 14px;
    background:
        linear-gradient(#ffffff18 1px, transparent 1px),
        linear-gradient(90deg, #ffffff18 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: -1;
}

.hero h1,
.page-header h1,
.hp-hero h1 {
    color: #fff !important;
    max-width: 760px;
    font-size: clamp(2.7rem, 5vw, 5.25rem) !important;
    line-height: .96 !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
}

.hero p,
.page-header p,
.hp-hero p {
    max-width: 650px;
    color: rgba(226, 232, 240, .78) !important;
    font-size: 1.08rem;
}

.hero .btn,
.hp-hero .btn,
.page-header .btn {
    min-height: 48px;
    padding-inline: 1.2rem;
}

/* Sections */
section {
    position: relative;
}

.section-title,
section h2 {
    font-weight: 900 !important;
    letter-spacing: 0 !important;
}

.card,
.pricing-card,
.feature-card,
.domain-card,
.service-card {
    border: 1px solid var(--web-line) !important;
    border-radius: var(--web-radius) !important;
    box-shadow: var(--web-shadow-soft) !important;
    background: rgba(255,255,255,.95) !important;
    overflow: hidden;
}

.pricing-card,
.feature-card,
.service-card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.pricing-card:hover,
.feature-card:hover,
.service-card:hover {
    transform: translateY(-4px) !important;
    border-color: #bfdbfe !important;
    box-shadow: var(--web-shadow) !important;
}

.pricing-card.featured {
    border-color: var(--web-blue) !important;
}

.pricing-card.featured::before {
    background: linear-gradient(180deg, var(--web-blue), #004ee4) !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 28px rgba(21, 94, 239, .22);
}

.feature-icon,
.icon-box {
    border-radius: 10px !important;
    background: #eef5ff !important;
    color: var(--web-blue) !important;
}

/* Buttons */
.btn {
    border-radius: 8px !important;
    font-weight: 800 !important;
    letter-spacing: 0;
}

.btn-primary,
.btn-hostie-primary,
.hp-btn-primary {
    color: #fff !important;
    background: linear-gradient(180deg, var(--web-blue), #004ee4) !important;
    border-color: #004ee4 !important;
    box-shadow: 0 12px 30px rgba(21, 94, 239, .22) !important;
}

.btn-primary:hover,
.btn-hostie-primary:hover,
.hp-btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(.96);
}

.btn-light {
    color: var(--web-ink) !important;
}

.btn-outline-light {
    border-color: rgba(255,255,255,.32) !important;
}

.btn-outline-primary {
    color: var(--web-blue) !important;
    border-color: #b8ccff !important;
    background: #fff !important;
}

.btn-outline-primary:hover {
    color: #004ee4 !important;
    background: #eef5ff !important;
}

/* Forms and search surfaces */
.form-control,
.form-select,
.input-group-text {
    min-height: 44px;
    border-color: #cfdae7 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--web-blue) !important;
    box-shadow: 0 0 0 .22rem rgba(21, 94, 239, .15) !important;
}

.domain-search,
.search-box,
.order-box {
    border: 1px solid var(--web-line);
    border-radius: 12px;
    box-shadow: var(--web-shadow);
    background: #fff;
}

/* Tables/badges */
.table thead th {
    color: #526176 !important;
    background: #f8fafc !important;
    border-bottom: 1px solid var(--web-line) !important;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.table tbody td {
    border-color: #edf2f7 !important;
    vertical-align: middle;
}

.badge {
    border-radius: 999px;
    font-weight: 800;
}

/* Newsletter/footer */
section[style*="linear-gradient(135deg, var(--ds-primary"],
.newsletter-section {
    background:
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(135deg, #0f172a, #155eef) !important;
    background-size: 28px 28px, 28px 28px, auto !important;
}

footer,
.footer {
    background: #07111f !important;
    border-top: 1px solid rgba(255,255,255,.08);
}

footer h4,
footer h5,
footer h6,
.footer h4,
.footer h5,
.footer h6 {
    color: #fff !important;
}

footer a,
.footer a {
    color: rgba(226,232,240,.62) !important;
}

footer a:hover,
.footer a:hover {
    color: #fff !important;
}

/* Legacy inline homepage rescue */
body > .navbar + .hero {
    margin-top: 0;
}

.bg-light {
    background-color: #f6f9fd !important;
}

@media (max-width: 991px) {
    .hero,
    .page-header,
    .hp-hero {
        min-height: auto;
        padding: 120px 0 70px !important;
    }

    .hero::before,
    .hero::after,
    .page-header::before,
    .page-header::after,
    .hp-hero::before,
    .hp-hero::after {
        display: none;
    }

    .hero h1,
    .page-header h1,
    .hp-hero h1 {
        font-size: clamp(2.2rem, 11vw, 3.35rem) !important;
    }
}
