/* =====================================================
   MN HOST — Custom WHMCS Theme CSS
   Brand: Navy #0a1a3a · Sky #00a8e8 · Green #16c46c
   Fonts: Hind Siliguri (Bengali) + Inter (English)
   Lightweight: single stylesheet, no external frameworks
   ===================================================== */

:root {
    --white: #ffffff;
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;

    /* MN HOST navy (primary) */
    --primary-50: #eef4fb;
    --primary-100: #d9e7f6;
    --primary-200: #b3cdec;
    --primary-300: #7fa9dd;
    --primary-400: #4a83cc;
    --primary-500: #1f5fa8;
    --primary-600: #0a2e6b;
    --primary-700: #0a1a3a;
    --primary-800: #081430;
    --primary-900: #060f24;
    --primary: var(--primary-700);

    /* MN HOST sky (secondary / CTA) */
    --secondary: #00a8e8;
    --secondary-lifted: #0091c9;
    --secondary-accented: #0078a8;

    /* MN HOST green (success) */
    --success: #16c46c;
    --success-lifted: #0fae5e;

    --warning: #f59e0b;
    --error: #dc2626;
    --info: #155dfc;

    --text: var(--neutral-900);
    --text-muted: var(--neutral-500);
    --border: var(--neutral-200);
    --bg-muted: var(--neutral-50);
}

/* ---------- Fonts ---------- */
body {
    font-family: 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: var(--text);
    letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .card-title, .panel-title {
    font-family: 'Hind Siliguri', 'Inter', sans-serif !important;
}

/* ---------- Header / top contact bar ---------- */
.header {
    background: var(--primary-700);
    box-shadow: 0 2px 12px rgba(2, 8, 23, 0.35);
}

.mnhost-topbar {
    background: #060f24;
    color: #cbd5e1;
    font-size: 0.8rem;
    padding: 0.45rem 0;
}
.mnhost-topbar a { color: #e2e8f0; text-decoration: none; }
.mnhost-topbar a:hover { color: #00a8e8; }
.mnhost-topbar .topbar-sep { color: #334155; margin: 0 0.6rem; }
.mnhost-topbar .mnhost-flag {
    display: inline-block; width: 18px; height: 12px;
    border-radius: 2px; vertical-align: -1px; margin-right: 5px;
}

.header .navbar { background: var(--primary-700); padding-top: 0.6rem; padding-bottom: 0.6rem; }
.header .navbar-light .navbar-brand { color: #fff; font-weight: 700; }
.header .navbar-light .navbar-brand img.logo-img { max-height: 46px; }
.header .topbar {
    background: rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #cbd5e1;
}
.header .topbar .btn { color: #cbd5e1; }
.header .topbar .btn:hover { color: #fff; }

/* Main nav */
.main-navbar-wrapper {
    background: #0d1f47;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.main-navbar-wrapper .navbar-nav .nav-link {
    color: #e2e8f0 !important;
    font-weight: 500;
    padding: 0.8rem 1rem;
    transition: color 0.2s ease, background 0.2s ease;
}
.main-navbar-wrapper .navbar-nav .nav-link:hover,
.main-navbar-wrapper .navbar-nav .nav-link:focus { color: #00a8e8 !important; }
.main-navbar-wrapper .navbar-nav .nav-item.active > .nav-link { color: #00a8e8 !important; }
.main-navbar-wrapper .navbar-nav .nav-item .dropdown-menu {
    background: #0d1f47;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.5rem;
}
.main-navbar-wrapper .navbar-nav .nav-item .dropdown-menu .dropdown-item { color: #e2e8f0; }
.main-navbar-wrapper .navbar-nav .nav-item .dropdown-menu .dropdown-item:hover {
    background: rgba(0,168,232,0.15); color: #fff;
}
.main-navbar-wrapper .navbar-toggler { color: #fff; border-color: rgba(255,255,255,0.3); }

/* ---------- Buttons ---------- */
.btn-primary {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--secondary-lifted);
    border-color: var(--secondary-lifted);
    color: #fff;
}
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover { background: var(--success-lifted); border-color: var(--success-lifted); color: #fff; }
.btn-default, .btn-outline-primary {
    color: var(--primary-600);
    border-color: var(--primary-600);
    background: transparent;
}
.btn-default:hover, .btn-outline-primary:hover {
    background: var(--primary-600); color: #fff;
}

/* CTA buttons — sky blue, matches main site */
.btn-order-now {
    background: var(--secondary) !important;
    border-color: var(--secondary) !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 8px 22px;
    transition: all 0.2s ease;
}
.btn-order-now:hover, .btn-order-now:focus {
    background: var(--secondary-lifted) !important;
    border-color: var(--secondary-lifted) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0,168,232,0.35);
    transform: translateY(-1px);
}
.btn-add {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}
.btn-add:hover { background: var(--secondary-lifted); border-color: var(--secondary-lifted); color: #fff; }

/* ---------- Forms ---------- */
.form-control { border-radius: 0.45rem; border-color: var(--neutral-300); }
.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(0,168,232,0.18);
}

/* ---------- Cards / panels ---------- */
.panel, .card {
    border-radius: 0.75rem;
    border-color: var(--neutral-200);
    box-shadow: 0 1px 4px rgba(15,23,42,0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.panel:hover, .card:hover { box-shadow: 0 8px 24px rgba(10,26,58,0.12); }
.panel-default > .panel-heading, .card-header {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
    color: #fff;
    border-radius: 0.75rem 0.75rem 0 0 !important;
}
.card-header .card-title, .panel-title { color: #fff; }

/* ---------- Tables ---------- */
.table thead th {
    background: var(--primary-700);
    color: #fff;
    border: none;
    font-weight: 600;
}
.table-striped tbody tr:nth-of-type(odd) { background: #f8fafc; }

/* ---------- Alerts ---------- */
.alert-primary {
    background: #e8f4fd;
    border-color: #b9e2f8;
    color: #0a2e6b;
}

/* ---------- Breadcrumb ---------- */
.master-breadcrumb {
    background: var(--bg-muted);
    border-bottom: 1px solid var(--border);
}
.master-breadcrumb .breadcrumb { background: transparent; }
.breadcrumb-item a { color: var(--primary-600); }
.breadcrumb-item.active { color: var(--neutral-500); }

/* ---------- Footer ---------- */
.footer {
    background: var(--primary-700);
    color: #cbd5e1;
    padding: 2.2rem 0 1.6rem;
    margin-top: 3rem;
    border-top: 3px solid var(--secondary);
}
.footer a { color: #cbd5e1; text-decoration: none; transition: color 0.2s ease; }
.footer a:hover { color: #00a8e8; }
.footer .nav-link { color: #cbd5e1; }
.footer .nav-link:hover { color: #00a8e8; }
.footer .copyright { color: #94a3b8; }
.footer .btn-outline-light { color: #e2e8f0; border-color: #475569; }
.footer .btn-outline-light:hover { background: var(--secondary); border-color: var(--secondary); color: #fff; }

.mnhost-footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 1.1rem;
}
.mnhost-footer-brand img { max-height: 40px; }
.mnhost-footer-contact {
    font-size: 0.85rem;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 1rem;
}
.mnhost-footer-contact a { color: #00a8e8; }
.mnhost-pay-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 0.4rem;
}
.mnhost-pay-chip {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #e2e8f0;
    border-radius: 0.4rem;
    padding: 0.25rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
}
.mnhost-pay-chip i { color: #00a8e8; margin-right: 4px; }

/* ---------- Login / register ---------- */
.login-container .panel, .logincontainer .panel {
    border: none;
    box-shadow: 0 10px 40px rgba(10,26,58,0.15);
}
.logincontainer .panel-heading {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
}

/* ---------- Cart / order pages ---------- */
.cart-sidebar .panel-heading { background: var(--primary-700); }
.products .product .product-header {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
    border-radius: 0.75rem 0.75rem 0 0;
}
.products .product .product-header .product-title { color: #fff; }
.products .product:hover .product-header {
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-lifted));
}

/* ---------- Client dashboard ---------- */
.dashboard-panels .panel .panel-body .metric { color: var(--primary-700); }
.stat { color: var(--primary-600); }
.home-shortcuts .btn {
    border-radius: 0.6rem;
    border: 1px solid var(--neutral-200);
    transition: all 0.2s ease;
}
.home-shortcuts .btn:hover {
    border-color: var(--secondary);
    color: var(--secondary) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,168,232,0.15);
}

/* ---------- Support page phone card ---------- */
.mnhost-support-card {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
    color: #fff;
    border-radius: 0.75rem;
    padding: 1.4rem 1.6rem;
    margin-bottom: 1.25rem;
    text-align: center;
}
.mnhost-support-card a { color: #00a8e8; font-weight: 700; }
.mnhost-support-card a:hover { color: #7fd8f7; }

/* ---------- Misc ---------- */
a { color: var(--primary-600); }
a:hover { color: var(--secondary-lifted); }
.text-primary { color: var(--primary-600) !important; }
.bg-primary { background-color: var(--primary-700) !important; }
.btn-primary.focus, .btn-primary:focus { box-shadow: 0 0 0 0.2rem rgba(0,168,232,0.25); }
.nav-tabs .nav-link.active { color: var(--primary-700); border-color: var(--secondary); }
.pagination .page-item.active .page-link {
    background: var(--secondary);
    border-color: var(--secondary);
}
#main-body { min-height: 55vh; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .main-navbar-wrapper .navbar-nav .nav-link { padding: 0.6rem 0.8rem; }
    .header .topbar .d-none { display: none !important; }
    .mnhost-topbar .topbar-hide-sm { display: none; }
}


/* =====================================================
   MN HOST v2 — Enhanced design (store/product pages,
   tables, alerts, forms, dashboard, buttons)
   ===================================================== */

/* ---------- Store product cards (polished) ---------- */
.products .product {
    background: #fff;
    border: 1px solid var(--neutral-200);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(10, 26, 58, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.products .product:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(10, 26, 58, 0.16);
    border-color: rgba(0, 168, 232, 0.45);
}
.products .product header {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-500) 100%);
    padding: 1.1rem 1.25rem;
    border-radius: 14px 14px 0 0;
    position: relative;
    text-align: center;
}
.products .product header span {
    color: #fff;
    font-family: 'Hind Siliguri', 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}
.products .product header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px 3px 0 0;
}
.products .product .product-desc {
    padding: 1.1rem 1.25rem 0.6rem;
    flex: 1;
}
.products .product .product-desc p {
    color: var(--neutral-600);
    font-size: 0.9rem;
    line-height: 1.65;
    max-height: 6.6rem;
    overflow: hidden;
}
.products .product .product-desc ul {
    padding: 0.6rem 0 0 0;
    margin: 0;
    list-style: none;
    border-top: 1px dashed var(--neutral-200);
}
.products .product .product-desc ul li {
    padding: 0.3rem 0;
    font-size: 0.88rem;
    color: var(--neutral-700);
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}
.products .product footer {
    background: var(--neutral-50);
    border-top: 1px solid var(--neutral-200);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.products .product .product-pricing {
    text-align: left;
}
.products .product .product-pricing .price {
    font-family: 'Inter', 'Hind Siliguri', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--primary-700);
    line-height: 1.1;
}
.products .product .product-pricing br { display: none; }
.products .product .product-pricing {
    color: var(--neutral-500);
    font-size: 0.82rem;
}
.products .product .btn-order-now {
    border-radius: 10px;
    padding: 0.65rem 1.4rem;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0, 168, 232, 0.28);
}
.products .product .btn-order-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 168, 232, 0.4);
}

/* ---------- Tables / invoices (polished) ---------- */
.table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(10, 26, 58, 0.05);
    background: #fff;
}
.table thead th {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    padding: 0.8rem 0.9rem;
}
.table tbody tr { transition: background 0.15s ease; }
.table tbody tr:hover { background: rgba(0, 168, 232, 0.06); }
.table tbody td { padding: 0.75rem 0.9rem; border-top: 1px solid var(--neutral-100); vertical-align: middle; }
.table-striped tbody tr:nth-of-type(odd) { background: #f8fafc; }

/* Status badges — paid / unpaid / overdue */
.label, .badge { border-radius: 6px; font-weight: 600; padding: 0.35em 0.7em; }
.label-success, .badge-success, .label-paid { background: rgba(22, 196, 108, 0.12); color: #0fae5e; }
.label-danger, .badge-danger, .label-unpaid, .label-overdue { background: rgba(220, 38, 38, 0.1); color: #dc2626; }
.label-info, .badge-info, .label-pending { background: rgba(0, 168, 232, 0.12); color: #0091c9; }
.label-warning, .badge-warning, .label-cancelled { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.label-default, .badge-secondary { background: var(--neutral-100); color: var(--neutral-600); }

/* ---------- Alerts (polished) ---------- */
.alert {
    border-radius: 10px;
    border-left-width: 4px;
    padding: 0.9rem 1.1rem;
}
.alert-primary { background: #e8f4fd; border-color: #b9e2f8; border-left-color: var(--secondary); color: #0a2e6b; }
.alert-success { background: #e9faf1; border-color: #b8ecd2; border-left-color: var(--success); color: #0a5c38; }
.alert-danger { background: #fdeeee; border-color: #f6c6c6; border-left-color: var(--error); color: #7f1d1d; }
.alert-warning { background: #fef7e8; border-color: #f5d9a0; border-left-color: var(--warning); color: #78350f; }
.alert-info { background: #eaf2fe; border-color: #c3d9fb; border-left-color: var(--info); color: #1e3a8a; }

/* ---------- Forms (polished) ---------- */
.form-control {
    border-radius: 10px;
    border-color: var(--neutral-300);
    padding: 0.6rem 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.25rem rgba(0, 168, 232, 0.18);
}
select.form-control, .custom-select { border-radius: 10px; }
.input-group-text { border-radius: 10px 0 0 10px; border-color: var(--neutral-300); }
.input-group .form-control { border-radius: 0 10px 10px 0; }

/* ---------- Dashboard widgets (polished) ---------- */
.dashboard-panels .panel .panel-body {
    padding: 1.5rem;
}
.dashboard-panels .panel .panel-body .metric {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--primary-700);
}
.panel, .card {
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(10, 26, 58, 0.06);
}
.panel-default > .panel-heading, .card-header {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
    padding: 0.85rem 1.15rem;
}
.home-shortcuts .btn {
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-weight: 600;
}
.list-group-item { border-color: var(--neutral-100); }
.list-group-item-action:hover { background: rgba(0, 168, 232, 0.05); color: var(--primary-600); }

/* ---------- Buttons (unified hover/active) ---------- */
.btn {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-primary, .btn-success, .btn-danger, .btn-info {
    box-shadow: 0 4px 14px rgba(10, 26, 58, 0.12);
}
.btn-primary:hover, .btn-success:hover, .btn-danger:hover, .btn-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(10, 26, 58, 0.18);
}
.btn:active { transform: translateY(0); }

/* ---------- Cart / checkout (polished) ---------- */
#order-standard_cart .cart-sidebar .panel-heading {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
}
#order-standard_cart .cart-sidebar .list-group-item.active {
    background: var(--secondary);
    border-color: var(--secondary);
}
.cart-summary .product-name { font-weight: 700; color: var(--primary-700); }
.checkout-summary .sub-total, .checkout-summary .total-due-today { color: var(--primary-700); font-weight: 700; }
.viewcart-table .qty .btn { border-radius: 8px; }
