/* =========================================================
   ZINFRANET | ULTIMATE BLUEHOST THEME + LAMASET GAMAL
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --zn-blue: #196BDE;
    --zn-blue-dark: #0050D5;
    --zn-blue-light: #EBF2FE;
    --zn-navy: #111827;
    --zn-ink: #1F2937;
    --zn-muted: #4B5563;
    --zn-line: #E5E7EB;
    --zn-bg: #F9FAFB;
    --zn-green: #059669;
    --zn-radius: 12px;
}

/* ==========================================
   1. GLOBAL STYLES
   ========================================== */
body, html {
    background: linear-gradient(180deg, #F0F4FF 0%, #F8FAFC 40%, #ffffff 100%) !important;
    color: var(--zn-ink) !important;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-size: 15px;
    line-height: 1.6;
}

body #header, 
body .navbar-light,
body .main-navbar-wrapper {
    background: #ffffff !important;
}

body #main-body {
    background: transparent !important;
    margin-top: 0 !important;
    padding-top: 30px !important;
    padding-bottom: 50px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--zn-navy) !important;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -.02em;
}

.container {
    max-width: 1200px !important;
}

/* ==========================================
   2. HEADER & NAVBAR
   ========================================== */
body #header, 
body #header *, 
body #header .nav-link, 
body #header .form-control,
body #header .btn {
    font-family: 'Poppins', sans-serif !important;
}

body #header, .navbar-light {
    background: #ffffff !important;
    border-bottom: 1px solid var(--zn-line) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02) !important;
}

body #header .navbar-nav .nav-link {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    padding: 10px 15px !important;
    transition: color 0.2s ease !important;
}

body #header .navbar-nav .nav-link:hover {
    color: var(--zn-blue) !important;
}

/* ==========================================
   3. KNOWLEDGEBASE SEARCH
   ========================================== */
body #header .search {
    border: 1px solid var(--zn-line) !important;
    border-radius: 8px !important;
    height: 38px !important;
    overflow: hidden !important;
    margin-top: 2px !important;
}

body #header .search .btn-default,
body #header .search .form-control {
    background: var(--zn-bg) !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--zn-navy) !important;
    font-size: 13.5px !important;
}

body #header .search .form-control::placeholder {
    color: #9CA3AF !important;
}

/* ==========================================
   4. SHOPPING CART BUTTON & BADGE
   ========================================== */
body #header .navbar-nav .cart-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 4px 12px !important;
    border: 1px solid #D1D5DB !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    height: 36px !important;
    margin-top: 3px !important;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
    transition: all 0.2s ease !important;
}

body #header .navbar-nav .cart-btn:hover {
    background: #F3F4F6 !important;
    border-color: #9CA3AF !important;
}

body #header .navbar-nav .cart-btn i {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-size: 14px !important;
    color: #374151 !important;
    display: inline-block !important;
    margin: 0 !important;
}

body #header .navbar-nav .cart-btn i::before {
    content: "\f07a" !important;
}

body #header #cartItemCount {
    background-color: var(--zn-blue) !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    padding: 3px 7px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
}

/* ==========================================
   5. HERO SECTION
   ========================================== */
.mh-hero {
    margin: 20px 0 40px;
    padding: 60px 40px;
    color: #fff;
    background: linear-gradient(120deg, #071a37 0%, #0c2e64 60%, var(--zn-blue) 100%);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(7, 26, 55, .15);
}

.mh-hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: #fff !important;
    line-height: 1.15;
    margin-bottom: 20px;
}

.mh-hero h1 span {
    color: #93c5fd;
}

.mh-hero-description {
    font-size: 17px;
    color: #dbeafe !important;
    max-width: 650px;
    margin-bottom: 25px;
}

.mh-hero .btn-primary {
    background-color: #ffffff !important;
    color: var(--zn-blue) !important;
    border: none !important;
    font-weight: 700 !important;
}

.mh-hero .btn-primary:hover {
    background-color: var(--zn-blue-light) !important;
}

.mh-hero .btn-secondary {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    font-weight: 700 !important;
}

.mh-trust-row {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    font-size: 13.5px;
    font-weight: 500;
    color: #e2edff;
}

.mh-trust-row i {
    color: #34d399;
    margin-right: 6px;
}

/* ==========================================
   6. DOMAIN SEARCH CAPSULE
   ========================================== */
.bh-domain-wrapper {
    max-width: 860px;
    margin: 0 auto;
}

.bh-input-capsule {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #D1D5DB;
    border-radius: 999px;
    padding: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
}

.bh-input-capsule .form-control {
    border: none !important;
    box-shadow: none !important;
    font-size: 16px;
    padding: 12px 18px;
    color: var(--zn-navy);
}

.bh-input-capsule .btn-search {
    background: var(--zn-blue);
    color: #fff;
    border-radius: 999px;
    padding: 12px 30px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    transition: all .2s ease;
}

.bh-input-capsule .btn-search:hover {
    background: var(--zn-blue-dark);
}

.bh-input-capsule .btn-transfer {
    background: var(--zn-blue-light);
    color: var(--zn-blue);
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    margin-left: 6px;
    transition: all .2s ease;
}

.bh-input-capsule .btn-transfer:hover {
    background: #d8e7fd;
}

/* ==========================================
   7. DYNAMIC TABS (HOMEPAGE)
   ========================================== */
.bh-pricing-tabs-container {
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 40px !important;
}

.bh-pricing-tabs {
    display: inline-flex !important;
    background: #ffffff !important;
    border: 1px solid var(--zn-blue) !important;
    border-radius: 999px !important;
    padding: 6px !important;
    gap: 5px !important;
    margin: 0 auto !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

.bh-pricing-tabs .nav-link {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: var(--zn-ink) !important;
    border-radius: 999px !important;
    padding: 8px 24px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    background: transparent !important;
}

.bh-pricing-tabs .nav-link.active {
    background-color: var(--zn-blue) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(25, 107, 222, 0.2) !important;
}

.bh-pricing-tabs .nav-link:not(.active):hover {
    background-color: var(--zn-blue-light) !important;
    color: var(--zn-blue) !important;
}

.badge-pricing {
    background-color: #374151 !important;
    color: #ffffff !important;
    padding: 6px 14px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    letter-spacing: 1px !important;
    font-weight: 700 !important;
}

/* ==========================================
   8. PRICING CARDS GRID & LAMASET GAMAL
   ========================================== */
.plancard__grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 30px !important;
    margin: 0 auto 40px auto !important;
    width: 100% !important;
}

.plancard__grid__item {
    position: relative !important;
    background-color: #ffffff !important;
    border: 1px solid var(--zn-line) !important;
    border-top: 4px solid #E5E7EB !important;
    border-radius: var(--zn-radius) !important;
    padding: 35px 25px !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    margin-bottom: 0 !important;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease !important;
}

.plancard__grid__item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 16px 36px rgba(25, 107, 222, .10) !important;
    border-color: #BFDBFE !important;
    border-top-color: #196BDE !important;
}

.plancard__grid__item.recommended__item {
    border: 2px solid var(--zn-blue) !important;
    border-top: 4px solid #196BDE !important;
    background: linear-gradient(180deg, #F4F8FF 0%, #ffffff 15%) !important;
    box-shadow: 0 12px 35px rgba(25, 107, 222, 0.12) !important;
}

.recommendedContainer {
    position: absolute !important;
    top: -14px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: var(--zn-blue) !important;
    color: #ffffff !important;
    padding: 4px 18px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
    white-space: nowrap !important;
    z-index: 2 !important;
}

.card__name__text {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--zn-navy) !important;
    margin-bottom: 4px !important;
}

.plancard__grid__item.recommended__item .card__name__text {
    color: #196BDE !important;
}

.card__description__text {
    font-size: 14px !important;
    color: var(--zn-muted) !important;
    min-height: 42px !important;
}

.card__priceContainer {
    margin: 20px 0 !important;
}

.card__pricing {
    font-size: 42px !important;
    font-weight: 700 !important;
    color: var(--zn-navy) !important;
    line-height: 1 !important;
    margin: 15px 0 5px !important;
}

.card__pricing .recurrence {
    font-size: 16px !important;
    color: var(--zn-muted) !important;
    font-weight: 500 !important;
}

.save__banner__text {
    display: inline-block !important;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.25) !important;
}

.plancard__grid__item .btn-choose {
    display: block !important;
    width: 100% !important;
    border-radius: 6px !important;
    padding: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-decoration: none !important;
    margin: 15px 0 !important;
    transition: all .2s ease !important;
}

.plancard__grid__item:not(.recommended__item) .btn-choose {
    background-color: #ffffff !important;
    color: var(--zn-blue) !important;
    border: 1.5px solid var(--zn-blue) !important;
}

.plancard__grid__item:not(.recommended__item) .btn-choose:hover {
    background-color: var(--zn-blue-light) !important;
}

.plancard__grid__item.recommended__item .btn-choose {
    background: linear-gradient(135deg, #196BDE 0%, #0050D5 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 5px 15px rgba(25, 107, 222, 0.3) !important;
}

.plancard__grid__item.recommended__item .btn-choose:hover {
    background: linear-gradient(135deg, #0050D5 0%, #003a9e 100%) !important;
    box-shadow: 0 8px 25px rgba(25, 107, 222, 0.45) !important;
    transform: translateY(-2px) !important;
}

ul.bh-features {
    list-style: none !important;
    padding: 0 !important;
    margin: 20px 0 0 0 !important;
    border-top: 1px solid var(--zn-line) !important;
    padding-top: 18px !important;
    flex-grow: 1 !important;
}

ul.bh-features li {
    padding: 10px 0 !important;
    border-bottom: 1px solid var(--zn-bg) !important;
    font-size: 14px !important;
    color: var(--zn-ink) !important;
    display: flex !important;
    align-items: center !important;
}

ul.bh-features li i.check, 
ul.bh-features li i.fa-check {
    background-color: #EBF2FE !important;
    color: #196BDE !important;
    width: 20px !important;
    height: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    font-size: 10px !important;
    margin-right: 12px !important;
    margin-top: 0 !important;
}

ul.bh-features li i.cross,
ul.bh-features li i.fa-times {
    background-color: #F3F4F6 !important;
    color: #9CA3AF !important;
    width: 20px !important;
    height: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    font-size: 10px !important;
    margin-right: 12px !important;
    margin-top: 0 !important;
}

/* ==========================================
   9. WHMCS STORE / CART PAGES & TABLE FIXES
   ========================================== */
#order-standard_cart h3, 
.store-wrapper h3, 
.store-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    color: var(--zn-navy) !important;
    margin-bottom: 30px !important;
}

.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 25px !important;
    margin-bottom: 30px !important;
}

.products .product {
    background-color: #ffffff !important;
    border: 1px solid var(--zn-line) !important;
    border-radius: var(--zn-radius) !important;
    padding: 30px 25px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    margin-bottom: 0 !important; 
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.products .product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 16px 36px rgba(25, 107, 222, .10) !important;
    border-color: #BFDBFE !important;
}

.products .product header {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 10px !important;
}

.products .product header span {
    font-family: 'Poppins', sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--zn-navy) !important;
}

.products .product .product-pricing {
    background: transparent !important;
    border: none !important;
    padding: 15px 0 5px 0 !important;
    margin: 0 !important;
    font-size: 15px !important;
    color: var(--zn-muted) !important;
    font-weight: 500 !important;
}

.products .product .product-pricing .price {
    font-family: 'Poppins', sans-serif !important;
    font-size: 36px !important;
    font-weight: 700 !important;
    color: var(--zn-navy) !important;
    line-height: 1 !important;
    display: block !important;
    margin-bottom: 5px !important;
}

.products .product .btn-order-now {
    display: block !important;
    width: 100% !important;
    background-color: #ffffff !important;
    color: var(--zn-blue) !important;
    border: 1.5px solid var(--zn-blue) !important;
    border-radius: 6px !important;
    padding: 12px !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    transition: all .2s ease !important;
    margin-top: 15px !important;
}

.products .product .btn-order-now:hover {
    background-color: var(--zn-blue-light) !important;
    color: var(--zn-blue) !important;
}

.products .product .product-desc {
    text-align: left !important;
    font-size: 14px !important;
    color: var(--zn-ink) !important;
    margin-top: 20px !important;
    border-top: 1px solid var(--zn-line) !important;
    padding-top: 15px !important;
    line-height: 1.8 !important;
    flex-grow: 1 !important; 
}

/* FIXING TEXT WRAPPING & TABLE COLUMNS INSIDE CART & PRODUCTS */
.products .product .product-desc ul li,
.view-cart-items-table td, 
.pricing-features td, 
.pricing-features li,
.product-pricing-table td {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

.products .product footer {
    margin-top: auto !important;
}

.products .product .product-desc ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.products .product .product-desc ul li {
    padding: 8px 0 !important;
    border-bottom: 1px solid var(--zn-bg) !important;
    display: flex !important;
    align-items: flex-start !important;
}

.products .product .product-desc ul li::before {
    content: "\f00c" !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    color: var(--zn-blue) !important;
    margin-right: 10px !important;
    margin-top: 2px !important;
    font-size: 13px !important;
}

.products .product.is-featured {
    border: 2px solid var(--zn-blue) !important;
    box-shadow: 0 12px 35px rgba(25, 107, 222, 0.12) !important;
}

.products .product.is-featured::before {
    content: "MOST POPULAR" !important;
    position: absolute !important;
    top: -14px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: var(--zn-blue) !important;
    color: #ffffff !important;
    padding: 4px 18px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
    white-space: nowrap !important;
    z-index: 2 !important;
}

.products .product.is-featured .btn-order-now {
    background-color: var(--zn-blue) !important;
    color: #ffffff !important;
}

.products .product.is-featured .btn-order-now:hover {
    background-color: var(--zn-blue-dark) !important;
}

.cart-sidebar .panel {
    border: 1px solid var(--zn-line) !important;
    border-radius: var(--zn-radius) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
    overflow: hidden !important;
}

.cart-sidebar .panel-heading {
    background-color: var(--zn-bg) !important;
    color: var(--zn-navy) !important;
    font-weight: 700 !important;
    font-family: 'Poppins', sans-serif !important;
    border-bottom: 1px solid var(--zn-line) !important;
}

.cart-sidebar .list-group-item {
    border-color: var(--zn-line) !important;
    color: var(--zn-muted) !important;
    font-size: 14px !important;
}

.cart-sidebar .list-group-item.active {
    background-color: var(--zn-blue-light) !important;
    color: var(--zn-blue) !important;
    border-left: 3px solid var(--zn-blue) !important;
    font-weight: 600 !important;
}

/* ==========================================
   10. TOPBAR COLOR FIX (BLUE STYLE)
   ========================================== */
body #header .topbar {
    background: linear-gradient(135deg, #0b1b35 0%, #196BDE 100%) !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 6px 0 !important;
}

body #header .topbar,
body #header .topbar *,
body #header .topbar button,
body #header .topbar span,
body #header .topbar a {
    color: #ffffff !important;
}

body #header .topbar .btn,
body #header .topbar .input-group-text,
body #header .topbar .btn-active-client {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

body #header .topbar .btn:hover,
body #header .topbar a:hover {
    color: #dbeafe !important;
    opacity: 0.9;
}

/* ==========================================
   11. MEGA FOOTER (PROFESSIONAL DATA STYLES)
   ========================================== */
body footer#footer,
body .footer {
    background: linear-gradient(135deg, #0b1b35 0%, #0c2e64 100%) !important;
    color: #dbeafe !important;
    padding: 60px 0 40px !important;
    border-top: none !important;
    margin-top: 60px !important;
}

body footer#footer a,
body .footer a {
    color: #93c5fd !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
}

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

body footer#footer .footer-title,
body .footer .footer-title {
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    margin-bottom: 22px !important;
    letter-spacing: 0.5px !important;
}

body footer#footer .footer-links li,
body .footer .footer-links li {
    margin-bottom: 12px !important;
}

body footer#footer .footer-links a,
body .footer .footer-links a {
    color: #9CA3AF !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
}

body footer#footer .footer-links a:hover,
body .footer .footer-links a:hover {
    color: #ffffff !important;
    transform: translateX(5px) !important;
}

body footer#footer .footer-bottom,
body .footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    margin-top: 10px !important;
}

body footer#footer .copyright,
body .footer .copyright {
    color: #9CA3AF !important;
    font-size: 14px !important;
    margin-top: 30px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-top: 20px !important;
    font-family: 'Poppins', sans-serif !important;
}
/* ==========================================
   FIXING PRODUCT STORE & COMPARISON TABLES
   ========================================== */
.view-cart-table, 
.product-pricing-table, 
.pricing-features,
#order-standard_cart table {
    width: 100% !important;
    table-layout: auto !important;
}

/* إجبار خلايا الجدول على أخذ مساحة عرضية مريحة */
#order-standard_cart .pricing-features td,
#order-standard_cart .pricing-features th,
.view-cart-items-table td,
.view-cart-items-table th {
    white-space: nowrap !important;
    padding: 12px 15px !important;
    vertical-align: middle !important;
}

/* لو الباقات فيها تفاصيل طويلة، نخلي الجدول يتيح السكرول الأفقي السلس بدل ما يكسر الكلام تحت بعضه */
.table-responsive, 
#order-standard_cart .row {
    overflow-x: auto !important;
}

/* ضبط عرض الحاويات الخاصة بصفحة المنتجات لتأخذ مساحة الشاشة بالكامل بشكل متناسق */
#order-standard_cart .col-md-9,
#order-standard_cart .col-lg-9,
#order-standard_cart .primary-content {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}