/* 
 * Premium Gulf Identity Transformation for "Hossting"
 * Custom CSS for WHMCS Twenty-One Theme
 */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Hossting Modern */
    --primary-teal: #004D40;
    --accent-gold: #C5A059;
    --tech-cyan: #00BFFF;
    --tech-magenta: #FF00FF;
    --bg-light: #F8F9FA;
    --bg-dark: #0B132B;
    --text-main: #1A2A44;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-premium: 0 10px 30px rgba(0,0,0,0.08);
}

body {
    font-family: 'Cairo', 'IBM Plex Sans Arabic', sans-serif;
    color: var(--text-main);
    background-color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Full Width Layout */
.container-full {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
    margin-right: auto;
    margin-left: auto;
}

/* Sahara-Inspired Sticky Header */
/* --- TOPBAR --- */
.topbar {
    background: #050a18;
    color: #cbd5e1;
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 2px solid;
    border-image: linear-gradient(to right, var(--tech-cyan), var(--tech-magenta)) 1;
}
.topbar-left span, .topbar-right a {
    transition: color 0.3s;
}
.topbar-right a:hover {
    color: var(--tech-cyan) !important;
    text-decoration: none;
}

/* --- HEADER & NAVBAR --- */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 15px 40px rgba(11, 19, 43, 0.06);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.navbar {
    padding: 15px 0;
}
/* Header logo — responsive (mobile / tablet / desktop). The old
   transform: scale(1.65) / scale(2.0) hack upscaled the raster logo
   (blurry) and overflowed past the hamburger on phones — removed. */
header.header .navbar-brand {
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}
header.header .logo-img {
    max-height: 58px;          /* desktop */
    max-width: 240px;
    width: auto;
    height: auto;
    object-fit: contain;
    transform: none;
    transition: opacity 0.2s ease;
}
@media (max-width: 991.98px) {          /* tablet / collapsed navbar */
    header.header .logo-img { max-height: 48px; max-width: 200px; }
}
@media (max-width: 767px) {             /* phones */
    header.header .navbar-brand { margin-right: 0.5rem; }
    header.header .logo-img {
        max-height: 40px;
        max-width: 55vw;       /* never collide with the hamburger */
        transform: none;
    }
}
@media (max-width: 380px) {             /* small phones */
    header.header .logo-img { max-height: 34px; max-width: 50vw; }
}
[dir="rtl"] header.header .navbar-brand {
    margin-right: 0;
    margin-left: 0.5rem;
}
header.header .navbar-brand:hover .logo-img {
    opacity: 0.85;
    transform: none;
}

/* --- NAV LINKS --- */
.navbar-nav .nav-item {
    margin: 0 4px;
}
.navbar-nav .nav-link {
    color: var(--text-main) !important;
    font-weight: 800;
    font-size: 1rem;
    position: relative;
    padding: 10px 22px !important;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.navbar-nav .nav-link:hover {
    color: var(--tech-cyan) !important;
    background: rgba(0, 191, 255, 0.05);
}
.navbar-nav .nav-item.active .nav-link {
    color: #fff !important;
    background: linear-gradient(135deg, var(--tech-cyan), var(--tech-magenta));
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.3);
}

/* --- SHOP BUTTON --- */
.btn-shop {
    background: linear-gradient(135deg, var(--tech-cyan), var(--tech-magenta));
    color: #fff !important;
    border-radius: 50px;
    padding: 12px 32px !important;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 10px 20px rgba(0, 191, 255, 0.25);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-shop:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 0, 255, 0.3);
    background: linear-gradient(135deg, var(--tech-magenta), var(--tech-cyan));
    color: #fff !important;
}

/* Custom Hero Section */
.hossting-hero {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(0, 77, 64, 0.9), rgba(11, 19, 43, 0.8)), url('../img/hero.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    border-bottom: 5px solid var(--accent-gold);
}

.hossting-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--tech-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hossting-hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* Service Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: #fff;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-title {
    color: var(--primary-teal);
    font-weight: 600;
}

.btn-outline-primary {
    border-color: var(--primary-teal);
    color: var(--primary-teal);
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--primary-teal);
    border-color: var(--primary-teal);
    color: #fff;
}

/* New Pricing Styles - Hossting Launch & Pro */
.hossting-plan-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    background: #fff;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.hossting-plan-card.launch {
    border-right: 5px solid #667eea;
}

.hossting-plan-card.pro {
    border-right: 5px solid #00b4db;
    transform: scale(1.05);
    z-index: 2;
}

.plan-header {
    padding: 30px;
    color: #fff;
    text-align: center;
}

.plan-header.launch {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.plan-header.pro {
    background: linear-gradient(135deg, #00b4db, #00838f);
}

.plan-badge {
    position: absolute;
    top: 15px;
    left: -35px;
    background: #e17055;
    color: #fff;
    padding: 5px 40px;
    font-size: 11px;
    font-weight: bold;
    transform: rotate(-45deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 15px 0;
}

.plan-features {
    padding: 30px;
    background: #fff;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
    font-size: 0.95rem;
    color: #4a5568;
}

.plan-features li i {
    margin-left: 10px;
    width: 20px;
}

.feature-unavailable {
    color: #e53e3e !important;
    opacity: 0.7;
}

.btn-plan {
    margin-top: 25px;
    border-radius: 10px;
    padding: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.wave-divider .shape-fill {
    fill: #FFFFFF;
}

/* Premium Pricing Cards */
.pricing-card {
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fff;
}

.pricing-card:hover {
    border-color: var(--tech-cyan);
    box-shadow: var(--shadow-premium);
    transform: translateY(-5px);
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-teal);
    margin: 20px 0;
}

.pricing-card .price span {
    font-size: 1rem;
    color: #888;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.pricing-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f9f9f9;
    color: #555;
}

.pricing-card ul li i {
    color: var(--tech-cyan);
    margin-right: 10px;
}

/* Domain Search Bar */
.domain-search-wrapper {
    background: var(--bg-dark);
    padding: 40px;
    border-radius: 20px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
}

.domain-search-wrapper .form-control {
    height: 60px;
    border-radius: 30px;
    padding-left: 30px;
    font-size: 1.1rem;
}

.domain-search-wrapper .btn-primary {
    height: 60px;
    border-radius: 30px;
    padding: 0 40px;
    background: linear-gradient(to right, var(--tech-cyan), var(--tech-magenta));
    border: none;
    font-weight: 700;
    text-transform: uppercase;
}

/* Footer */
.footer {
    background: #050a18 !important;
    color: #fff !important;
    padding: 100px 0 40px;
    position: relative;
    border-top: none;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--tech-cyan), var(--tech-magenta), var(--accent-gold));
}

.footer h5 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--tech-cyan);
}

.footer-link {
    color: rgba(255, 255, 255, 0.6) !important;
    display: block;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.footer-link:hover {
    color: #fff !important;
    padding-right: 10px;
}

.trust-badges {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    opacity: 0.6;
}

.trust-badges i {
    font-size: 1.8rem;
    transition: opacity 0.3s;
}

.trust-badges i:hover {
    opacity: 1;
}

/* RTL Adjustments */
[dir="rtl"] body {
    text-align: right;
}

[dir="rtl"] .section-title::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

/* Hero Carousel Slider */
.hossting-carousel .carousel-item {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hossting-carousel .carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 77, 64, 0.7), rgba(11, 19, 43, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 15px;
}

.hossting-carousel h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hossting-carousel p {
    font-size: 1.3rem;
    max-width: 850px;
    margin: 0 auto 2rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
    background-color: rgba(255,255,255,0.5);
    border: 2px solid transparent;
}

.carousel-indicators .active {
    background-color: var(--tech-cyan);
    transform: scale(1.2);
}

/* Encouragement Ticker (Running Slider) */
.ticker-wrapper {
    background: var(--accent-gold);
    color: var(--primary-teal);
    overflow: hidden;
    white-space: nowrap;
    padding: 12px 0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.ticker-content {
    display: inline-block;
    animation: ticker 30s linear infinite;
    padding-left: 100%;
}

.ticker-item {
    display: inline-block;
    padding: 0 50px;
}

.ticker-item i {
    margin-right: 10px;
    color: #fff;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

[dir="rtl"] .ticker-content {
    animation: ticker-rtl 30s linear infinite;
    padding-right: 100%;
    padding-left: 0;
}

@keyframes ticker-rtl {
    0% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

/* Mobile Adjustments for Slider */
@media (max-width: 768px) {
    .hossting-carousel .carousel-item {
        height: 450px;
    }
    .hossting-carousel h1 {
        font-size: 2rem;
    }
    .hossting-carousel p {
        font-size: 1rem;
    }
}

/* --- FULL WIDTH & STORE FIXES --- */

.hossting-carousel {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 0;
    overflow: hidden;
}

.hossting-carousel .carousel-item {
    height: 650px !important;
}

section#main-body > div.container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
}

.primary-content {
    padding: 0 !important;
}

/* Fix for raw code visibility in descriptions */
.product-description style, 
.product-description script,
.product-description code {
    display: none !important;
}

.product-description {
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* WHMCS Utility Classes */
.w-hidden {
    display: none !important;
}

/* --- GLOBAL PREMIUM SIDEBAR (Matches Lagom Pro & Homepage) --- */
.sidebar .card-sidebar {
    background: #ffffff;
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(11, 19, 43, 0.08);
    margin-bottom: 30px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.sidebar .card-sidebar:hover {
    box-shadow: 0 25px 60px rgba(11, 19, 43, 0.12);
    transform: translateY(-4px);
}
.sidebar .card-header {
    background: transparent;
    padding: 30px 24px 15px;
    border-bottom: none;
}
.sidebar .card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--bg-dark, #0B132B);
    margin: 0;
    display: flex;
    align-items: center;
    position: relative;
    padding-bottom: 15px;
}
.sidebar .card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold, #C5A059), var(--tech-cyan, #00BFFF));
    border-radius: 4px;
}
[dir="rtl"] .sidebar .card-title::after {
    left: auto;
    right: 0;
}
.sidebar .card-title i:not(.card-minimise) {
    color: var(--primary-teal, #004D40);
    margin-right: 14px;
    font-size: 1.3rem;
    background: rgba(0, 77, 64, 0.06);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}
[dir="rtl"] .sidebar .card-title i:not(.card-minimise) {
    margin-right: 0;
    margin-left: 14px;
}
.sidebar .card-title .card-minimise {
    color: #cbd5e1;
    font-size: 1rem;
    margin-top: 5px;
    margin-left: auto;
    cursor: pointer;
    transition: color 0.3s;
}
.sidebar .card-title .card-minimise:hover {
    color: var(--accent-gold, #C5A059);
}

.sidebar .list-group-flush {
    padding: 0 16px 20px;
}
.sidebar .list-group-flush .list-group-item {
    border: none;
    border-radius: 14px;
    padding: 14px 20px;
    margin-bottom: 8px;
    color: var(--text-main, #1A2A44);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: transparent;
}
.sidebar .list-group-flush .list-group-item:last-child {
    margin-bottom: 0;
}
.sidebar .list-group-flush .list-group-item i.sidebar-menu-item-icon,
.sidebar .list-group-flush .list-group-item > i:first-child {
    color: var(--accent-gold, #C5A059);
    font-size: 1.15rem;
    transition: all 0.3s ease;
    margin-right: 12px;
}
[dir="rtl"] .sidebar .list-group-flush .list-group-item i.sidebar-menu-item-icon,
[dir="rtl"] .sidebar .list-group-flush .list-group-item > i:first-child {
    margin-right: 0; margin-left: 12px;
}
.sidebar .list-group-flush .list-group-item:hover {
    background: rgba(0, 77, 64, 0.03);
    color: var(--primary-teal, #004D40);
    transform: translateX(6px);
    text-decoration: none;
}
[dir="rtl"] .sidebar .list-group-flush .list-group-item:hover {
    transform: translateX(-6px);
}
.sidebar .list-group-flush .list-group-item:hover i.sidebar-menu-item-icon,
.sidebar .list-group-flush .list-group-item:hover > i:first-child {
    color: var(--primary-teal, #004D40);
    transform: scale(1.1);
}
.sidebar .list-group-flush .list-group-item.active,
.sidebar .list-group-flush .list-group-item.active:hover {
    background: linear-gradient(135deg, var(--bg-dark, #0B132B), var(--primary-teal, #004D40));
    color: #fff;
    box-shadow: 0 8px 25px rgba(0, 77, 64, 0.3);
    transform: translateY(-2px);
}
.sidebar .list-group-flush .list-group-item.active i.sidebar-menu-item-icon,
.sidebar .list-group-flush .list-group-item.active > i:first-child {
    color: var(--accent-gold, #C5A059);
}

.sidebar .list-group-flush .list-group-item .badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 8px;
    padding: 6px 12px;
    font-weight: 800;
}
.sidebar .list-group-flush .list-group-item:not(.active) .badge {
    background: rgba(0, 77, 64, 0.08);
    color: var(--primary-teal, #004D40);
}

.sidebar-menu-item-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
}
.sidebar-menu-item-label {
    flex-grow: 1;
}
.sidebar-menu-item-badge {
    margin-left: auto;
}
[dir="rtl"] .sidebar-menu-item-badge {
    margin-left: 0; margin-right: auto;
}

