/* =====================================================
   Hosting Front Website UI - Compact Attractive Theme
   Same colors + same shadow feeling, but smaller font,
   reduced spacing, less padding and more balanced layout
   ===================================================== */

:root {
    --primary-color: #2A3A8D;
    --primary-dark: #18245f;
    --accent-color: #F47C20;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e5e7eb;
    --soft: #f8fafc;
    --card: #ffffff;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #f59e0b;
    --radius: 14px;
    --shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #fff;
    font-size: 14px;
    line-height: 1.52;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Header */
.front-topbar {
    background: var(--soft);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.front-topbar a {
    color: var(--muted);
    font-weight: 600;
}

.front-navbar {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.brand-mark-text {
    color: var(--ink);
    font-size: 15px;
    font-weight: 850;
    line-height: 1;
}

.brand-mark-text small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
}

.navbar .nav-link {
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 10px !important;
    border-radius: 9px;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary-color);
    background: rgba(42, 58, 141, .07);
}

.dropdown-menu {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 6px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 600;
}

.dropdown-item:hover {
    background: rgba(42, 58, 141, .07);
    color: var(--primary-color);
}

/* Buttons and Forms */
.btn {
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 14px;
}

.btn-lg {
    padding: 10px 18px;
    font-size: 14px;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 8px 18px rgba(42, 58, 141, .14);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 10px 22px rgba(42, 58, 141, .18);
}

.btn-warning {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 8px 18px rgba(244, 124, 32, .15);
}

.btn-warning:hover,
.btn-warning:focus {
    background: #dc6714;
    border-color: #dc6714;
    color: #fff;
    box-shadow: 0 10px 22px rgba(244, 124, 32, .18);
}

.btn-outline-primary {
    --bs-btn-color: var(--primary-color);
    --bs-btn-border-color: rgba(42, 58, 141, .55);
    --bs-btn-hover-bg: var(--primary-color);
    --bs-btn-hover-border-color: var(--primary-color);
}

.btn-call {
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

.btn-call:hover {
    background: #d1fae5;
    color: #065f46;
}

.form-control,
.form-select {
    min-height: 42px;
    border-radius: 10px;
    border-color: #dbe3ef;
    font-size: 13px;
    font-weight: 600;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 .18rem rgba(244, 124, 32, .14);
}

/* Layout */
.section {
    padding: 46px 0;
}

.soft {
    background: var(--soft);
}

.section-title {
    color: var(--ink);
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 10px;
}

.eyebrow {
    margin-bottom: 6px;
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.text-gradient {
    color: #fff;
}

/* Hero */
.hero {
    position: relative;
    padding: 58px 0;
    color: #fff;
    background: linear-gradient(135deg, #0b1220 0%, #172554 55%, #0f172a 100%);
    overflow: hidden;
}

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

.hero h1 {
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 950;
    letter-spacing: -.04em;
    line-height: 1.08;
}

.hero p {
    color: rgba(255, 255, 255, .78);
    font-size: 15px;
}

.hero-card {
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.hero-card .price-chip {
    padding: 9px 11px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 10px;
}

/* Domain Search */
.domain-search-shell {
    max-width: 790px;
    margin: 0 auto;
}

.domain-box,
.domain-input-group,
.content-card,
.checkout-card,
.result-card,
.tld-card,
.plan-card,
.metric,
.feature-card,
.business-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.domain-box {
    padding: 12px;
}

.domain-input-group {
    display: flex;
    gap: 7px;
    padding: 7px;
    box-shadow: none;
}

.domain-input-group .form-control {
    min-height: 48px;
    border: 0;
    font-size: 15px;
    box-shadow: none !important;
}

.domain-input-group .btn {
    min-width: 130px;
}

.tld-card {
    padding: 14px;
    box-shadow: none;
    transition: .16s ease;
}

.tld-card:hover {
    border-color: rgba(42, 58, 141, .45);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.tld-ext {
    color: var(--primary-color);
    font-size: 17px;
    font-weight: 900;
}

/* Cards */
.content-card,
.checkout-card {
    padding: 18px;
}

.metric,
.feature-card {
    height: 100%;
    padding: 18px;
    box-shadow: none;
    transition: .16s ease;
}

.metric:hover,
.feature-card:hover,
.plan-card:hover,
.result-card:hover,
.business-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.icon-box {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background: rgba(42, 58, 141, .08);
    border-radius: 12px;
    font-size: 17px;
}

.icon-box.orange {
    color: var(--accent-color);
    background: rgba(244, 124, 32, .10);
}

/* Plans */
.plan-card {
    position: relative;
    height: 100%;
    padding: 20px;
    overflow: hidden;
    transition: .16s ease;
}

.plan-card.featured {
    border-color: rgba(244, 124, 32, .55);
}

.plan-card.featured::after {
    content: "Recommended";
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--accent-color);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.plan-type-badge,
.smart-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(42, 58, 141, .08);
    color: var(--primary-color);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.smart-badge.success {
    background: rgba(22, 163, 74, .10);
    color: var(--success);
}

.smart-badge.orange {
    background: rgba(244, 124, 32, .12);
    color: var(--accent-color);
}

.smart-badge.danger {
    background: rgba(220, 38, 38, .10);
    color: var(--danger);
}

.price {
    color: var(--ink);
    font-size: 31px;
    font-weight: 950;
    letter-spacing: -.04em;
}

.price small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.feature-list li {
    margin-bottom: 6px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}

.feature-list i {
    width: 18px;
    color: var(--success);
}

.result-card {
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: none;
}

/* Business Cards */
.business-card {
    height: 100%;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    box-shadow: none;
    transition: .16s ease;
}

.business-card i {
    color: var(--primary-color);
    font-size: 22px;
}

.business-card p {
    margin-bottom: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.business-card.selected {
    border-color: var(--primary-color);
    background: rgba(42, 58, 141, .06);
}

.business-card.selected i,
.business-card.selected p {
    color: var(--primary-color);
}

/* Tables, Cart, Checkout */
.table-clean {
    --bs-table-bg: transparent;
}

.table-clean th {
    background: var(--soft);
    color: #334155;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.cart-item,
.payment-option {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.cart-item {
    padding: 13px;
    margin-bottom: 9px;
}

.checkout-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.checkout-step .step-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #64748b;
    font-size: 12px;
}

.checkout-step.active {
    color: var(--primary-color);
}

.checkout-step.active .step-dot {
    background: var(--primary-color);
    color: #fff;
}

.payment-option {
    display: block;
    padding: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.payment-option:hover {
    border-color: var(--primary-color);
}

.payment-option input {
    margin-right: 7px;
}

/* CTA and Footer */
.dark-cta {
    color: #fff;
    background: linear-gradient(135deg, #0b1220, #172554);
}

.footer {
    padding: 46px 0 24px;
    color: #cbd5e1;
    background: #07111f;
}

.footer h5,
.footer h6 {
    color: #fff;
    font-size: 14px;
}

.footer a {
    display: inline-block;
    margin-bottom: 6px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
}

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

.footer-contact-card {
    padding: 12px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: var(--radius);
}

/* Utilities */
.bg-primary-light {
    background: rgba(42, 58, 141, .08);
}

.bg-warning-light {
    background: rgba(244, 124, 32, .10);
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-warning {
    color: var(--accent-color) !important;
}

.rounded-4 {
    border-radius: var(--radius) !important;
}

.shadow-soft,
.shadow-smart {
    box-shadow: var(--shadow) !important;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero {
        padding: 50px 0;
    }

    .navbar .nav-link {
        padding: 8px 10px !important;
    }

    .front-navbar .d-flex.align-items-center.gap-2 {
        align-items: stretch !important;
        flex-direction: column;
        margin-top: 10px;
    }

    .front-navbar .btn,
    .btn-call {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 13px;
    }

    .section {
        padding: 36px 0;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 14px;
    }

    .domain-input-group {
        display: block;
    }

    .domain-input-group .form-control {
        width: 100%;
        margin-bottom: 7px;
    }

    .domain-input-group .btn {
        width: 100%;
    }

    .price {
        font-size: 26px;
    }
}

/* =====================================================
   MOBILE HEADER + SIDEBAR FIX PATCH ONLY
   Previous styles stay unchanged. This block only overrides
   mobile header/sidebar behavior.
===================================================== */

.front-mobile-brand,
.front-mobile-drawer-head,
.front-mobile-backdrop,
.front-mobile-action-text {
    display: none;
}

@media (max-width: 991.98px) {
    body.front-nav-open {
        overflow: hidden;
    }

    .front-topbar {
        display: none !important;
    }

    .front-navbar {
        min-height: 66px;
        padding: 0 !important;
        background: #ffffff !important;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 10px 26px rgba(15, 23, 42, .045);
        z-index: 3000 !important;
    }

    .front-navbar .container {
        min-height: 66px;
        display: flex;
        align-items: center;
        justify-content: space-between !important;
        padding-left: 16px;
        padding-right: 16px;
    }

    .front-navbar .navbar-brand {
        display: none !important;
    }

    .front-mobile-brand {
        display: flex !important;
        align-items: center;
        gap: 10px;
        min-width: 0;
        max-width: calc(100% - 58px);
        color: var(--ink);
        text-decoration: none;
    }

    .front-mobile-brand-logo {
        width: 40px;
        height: 40px;
        border-radius: 13px;
        object-fit: contain;
        background: #f8fafc;
        border: 1px solid #e5eaf3;
        padding: 5px;
        flex: 0 0 auto;
    }

    .front-mobile-brand-icon {
        width: 40px;
        height: 40px;
        border-radius: 13px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--primary-color);
        color: #ffffff;
        font-weight: 950;
        flex: 0 0 auto;
    }

    .front-mobile-brand-text {
        display: flex;
        flex-direction: column;
        min-width: 0;
        line-height: 1.05;
    }

    .front-mobile-brand-text strong {
        color: var(--primary-color);
        font-size: 15px;
        font-weight: 950;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .front-mobile-brand-text small {
        margin-top: 3px;
        color: var(--muted);
        font-size: 10.5px;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .front-navbar .navbar-toggler {
        width: 44px;
        height: 44px;
        margin-left: auto;
        padding: 0;
        border: 1px solid #e2e8f0 !important;
        border-radius: 14px;
        background: #ffffff !important;
        box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        z-index: 3010;
        flex: 0 0 auto;
    }

    .front-navbar .navbar-toggler:focus {
        box-shadow: 0 0 0 .18rem rgba(42, 58, 141, .12);
    }

    .front-navbar .navbar-toggler-icon {
        width: 20px;
        height: 20px;
    }

    #frontNav {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 305px;
        max-width: 86vw;
        height: 100vh;
        height: 100dvh;
        padding: 18px 14px 22px;
        background: #ffffff !important;
        transform: translateX(-105%);
        transition: transform .25s ease;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 3020 !important;
        box-shadow: 28px 0 60px rgba(15, 23, 42, .26);
        opacity: 1 !important;
        visibility: visible !important;
        filter: none !important;
        backdrop-filter: none !important;
    }

    #frontNav.show {
        transform: translateX(0);
    }

    .front-mobile-backdrop {
        position: fixed;
        inset: 0;
        display: none;
        background: rgba(15, 23, 42, .52);
        z-index: 2990 !important;
        backdrop-filter: none !important;
        filter: none !important;
    }

    .front-mobile-backdrop.show {
        display: block;
    }

    .front-mobile-drawer-head {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 2px 2px 15px;
        margin-bottom: 12px;
        border-bottom: 1px solid #edf2f7;
    }

    .front-mobile-title {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--ink);
        min-width: 0;
    }

    .front-mobile-title-icon {
        width: 38px;
        height: 38px;
        border-radius: 13px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        background: var(--primary-color);
        flex: 0 0 auto;
    }

    .front-mobile-title strong {
        display: block;
        font-size: 15px;
        font-weight: 950;
        line-height: 1;
        color: var(--ink);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .front-mobile-title small {
        display: block;
        margin-top: 4px;
        color: var(--muted);
        font-size: 11px;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .front-mobile-close {
        width: 38px;
        height: 38px;
        border: 1px solid #e5eaf3;
        border-radius: 13px;
        background: #f8fafc;
        color: var(--ink);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }

    #frontNav .navbar-nav {
        width: 100%;
        gap: 7px !important;
        margin: 0 !important;
    }

    #frontNav .nav-item {
        width: 100%;
    }

    #frontNav .nav-link {
        min-height: 47px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 14px !important;
        border-radius: 15px;
        color: #334155;
        background: #f8fafc;
        border: 1px solid #edf2f7;
        font-size: 14px;
        font-weight: 850;
    }

    #frontNav .nav-link:hover,
    #frontNav .nav-link.active {
        color: var(--primary-color);
        background: #eef2ff;
        border-color: rgba(42, 58, 141, .18);
    }

    #frontNav .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        margin: 6px 0 8px;
        padding: 8px;
        border: 1px solid #edf2f7;
        border-radius: 15px;
        background: #ffffff;
        box-shadow: none;
    }

    #frontNav .dropdown-item {
        min-height: 40px;
        display: flex;
        align-items: center;
        padding: 9px 10px;
        border-radius: 12px;
        color: #475569;
        font-size: 13px;
        font-weight: 800;
    }

    #frontNav .dropdown-item:hover {
        color: var(--primary-color);
        background: #eef2ff;
    }

    #frontNav .nav-actions,
    #frontNav > .d-flex.align-items-center.gap-2 {
        width: 100%;
        flex-direction: column;
        align-items: stretch !important;
        gap: 9px !important;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid #edf2f7;
    }

    #frontNav .nav-actions .btn,
    #frontNav > .d-flex.align-items-center.gap-2 .btn,
    #frontNav .btn-call {
        width: 100%;
        min-height: 44px;
        border-radius: 14px;
        font-weight: 900;
    }

    #frontNav .btn-warning {
        color: #ffffff;
        background: var(--accent-color);
        border-color: var(--accent-color);
    }

    .front-mobile-action-text {
        display: inline !important;
    }

    .hero {
        padding-top: 48px;
    }
}

@media (min-width: 992px) {
    .front-mobile-brand,
    .front-mobile-drawer-head,
    .front-mobile-backdrop,
    .front-mobile-action-text {
        display: none !important;
    }
}
