:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #141829;
    --bg-card: #1a1f3a;
    --bg-card-hover: #202544;
    --text-primary: #ffffff;
    --text-secondary: #a8b2d1;
    --accent-cyan: #00d4ff;
    --accent-green: #00ff88;
    --border-color: #2a2f4a;
}

body {
    background: #0a0e27 !important;
    color: var(--text-primary) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    position: relative;
}

body .container,
body .container-sm,
body .container-md,
body .container-lg,
body .container-xl {
    max-width: 1400px !important;
    padding-right: 40px !important;
    padding-left: 40px !important;
    margin: 0 auto !important;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://i.pinimg.com/originals/66/3a/46/663a4639787891da6037588879e36176.gif') center top / cover no-repeat fixed;
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.88);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1;
    pointer-events: none;
}

/* Mobile Sidebar Toggles */
.btn-sidebar-toggle {
    display: inline-flex !important;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

@media (max-width: 991.98px) {
    .btn-sidebar-toggle {
        width: 100%;
        justify-content: center;
    }

    #sidebarCollapse.collapse.show {
        display: block !important;
    }
}

.wisehosting-navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5px 0;
    position: fixed !important;
    top: 0;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
}

.wisehosting-navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 14, 39, 0.95) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.wisehosting-navbar .nav-link {
    position: relative;
}

.btn-under-attack {
    background: linear-gradient(45deg, #ff416c, #ff4b2b) !important;
    color: #fff !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    margin-right: 15px;
    box-shadow: 0 0 15px rgba(255, 75, 43, 0.4);
    animation: pulse-red 2s infinite;
    border: none !important;
    padding: 8px 20px !important;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-under-attack:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 75, 43, 0.6);
    color: #fff !important;
}

.btn-under-attack i {
    font-size: 1.1rem;
}

@keyframes pulse-red {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 75, 43, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 75, 43, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 75, 43, 0); }
}

.wisehosting-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.wisehosting-navbar .nav-link:hover::after {
    width: 20px;
}

.card, .package-card, .glass-card {
    background: rgba(26, 31, 58, 0.4) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover, .package-card:hover, .glass-card:hover {
    background: rgba(32, 37, 68, 0.6) !important;
    border-color: var(--accent-cyan) !important;
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.15);
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#header,
#header .navbar,
.header,
.header .navbar,
.topbar {
    position: relative;
    z-index: 1030;
    background: transparent !important;
    background-color: transparent !important;
}

.topbar {
    display: none !important;
}

.topbar .btn, .topbar .btn-group a {
    color: #8b93a7 !important;
    background: transparent !important;
    border: none !important;
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
    transition: all 0.3s ease;
    cursor: pointer !important;
    pointer-events: auto !important;
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 10000 !important;
}

.topbar .btn:hover, .topbar .btn-group a:hover {
    color: #00d4ff !important;
}

.topbar .btn-group {
    pointer-events: auto !important;
    position: relative;
    z-index: 10000 !important;
}

.topbar .container {
    position: relative;
    z-index: 10000 !important;
}

.topbar .btn:hover {
    color: #00d4ff !important;
}

.popover {
    background: #1a1f3a !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.popover-body {
    padding: 0 !important;
}

.client-alerts {
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 250px;
}

.client-alerts li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #ffffff !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.client-alerts li a:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff !important;
}

.client-alerts li:last-child a {
    border-bottom: none;
}

.client-alerts .message {
    font-size: 0.85rem;
    margin-left: 10px;
    color: #ffffff !important;
}

.popover-header {
    background: rgba(0, 212, 255, 0.1) !important;
    color: #00d4ff !important;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2) !important;
    font-weight: 600 !important;
}

#main-body,
.footer {
    position: relative;
    z-index: 2;
}

.topbar {
    display: none !important;
}

.wisehosting-navbar {
    background: rgba(10, 14, 39, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0 !important;
    position: absolute !important;
    top: 0;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
}

#main-body {
    padding-top: 100px !important;
}

.wisehosting-navbar .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.wisehosting-navbar .navbar-brand {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.wisehosting-navbar .navbar-brand {
    color: var(--text-primary) !important;
    font-size: 1.5rem;
    font-weight: 700;
}

.wisehosting-navbar .navbar-brand i {
    color: var(--accent-cyan);
    margin-right: 8px;
}

.wisehosting-navbar .logo-img {
    max-height: 40px;
}

.wisehosting-navbar .navbar-nav.mr-auto {
    margin-right: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 50px;
    padding: 5px 25px;
    border: none !important;
    display: flex;
    align-items: center;
    box-shadow: none !important;
}

.wisehosting-navbar .navbar-collapse {
    justify-content: center;
}

.wisehosting-navbar .nav-link {
    color: var(--text-secondary) !important;
    padding: 8px 15px !important;
    transition: color 0.3s ease;
}

.wisehosting-navbar .nav-link:hover {
    color: var(--accent-cyan) !important;
}

.wisehosting-navbar .dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 0;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.wisehosting-navbar .dropdown-item {
    color: var(--text-secondary) !important;
    padding: 10px 20px;
}

.wisehosting-navbar .dropdown-item:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan) !important;
}

.wisehosting-navbar .btn-primary-wh {
    background: rgba(0, 212, 255, 0.9);
    color: #000 !important;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.wisehosting-navbar .btn-primary-wh:hover {
    background: rgba(0, 212, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.wisehosting-navbar .btn-outline-light {
    border: 1px solid var(--border-color);
    color: var(--text-primary) !important;
    padding: 8px 20px;
    border-radius: 6px;
}

.wisehosting-navbar .btn-outline-light:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-cyan);
}

.wisehosting-navbar .badge {
    background: var(--accent-cyan);
    color: #000;
    margin-left: 5px;
}

/* ========================================
   PAGE HEADER / TITLE STYLING
   ======================================== */

/* Main page headers with blue line */
.header-lined,
.page-header,
h1.header-lined {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 184, 212, 0.15)) !important;
    border: none !important;
    border-bottom: 3px solid #00d4ff !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 25px 30px !important;
    margin-bottom: 30px !important;
    min-height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.header-lined h1,
.page-header h1,
h1.header-lined {
    color: #ffffff !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    line-height: 1.4 !important;
}

/* Checkout page headers */
#order-standard_cart .header-lined {
    min-height: 85px !important;
    padding: 28px 30px !important;
}

#order-standard_cart .header-lined h1 {
    font-size: 32px !important;
}

.hero-section {
    background: transparent;
    padding: 100px 0 80px;
    position: relative;
    overflow: visible;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.btn-primary-custom {
    background: var(--accent-cyan);
    color: #000;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: none;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background: #00b8e6;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

.category-tabs {
    display: flex;
    gap: 12px;
    margin: 40px 0 30px;
    flex-wrap: wrap;
}

.category-tab {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-tab:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.1);
}

.category-tab.active {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: #000;
}

.package-card {
    background: rgba(18, 28, 46, 0.98) !important;
    border: 1px solid rgba(71, 85, 105, 0.3) !important;
    border-radius: 16px !important;
    padding: 24px 20px 20px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.package-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
}

.package-card:hover::before {
    opacity: 1;
}

.popular-badge {
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

.package-icon {
    width: 64px;
    height: 64px;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    transition: all 0.3s ease;
}

.package-card:hover .package-icon {
    transform: scale(1.1) rotate(-5deg);
    border-color: var(--accent-cyan);
}

.package-icon i {
    font-size: 32px;
    color: var(--accent-cyan);
}

.package-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-align: center;
}

.package-ram {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.package-ram span {
    color: var(--text-primary);
}

.package-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    min-height: 60px;
    line-height: 1.6;
    text-align: center;
}

.package-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-green);
    margin: 25px 0;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.package-price span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-order {
    background: transparent;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-order:hover {
    background: var(--accent-cyan);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
    text-decoration: none;
}

/* Enhanced Animations */
@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(0, 212, 255, 0.2); }
    50% { box-shadow: 0 0 25px rgba(0, 212, 255, 0.5); }
    100% { box-shadow: 0 0 5px rgba(0, 212, 255, 0.2); }
}

.floating-feature {
    animation: floating 4s ease-in-out infinite;
}

.glow-on-hover:hover {
    animation: glowPulse 2s infinite;
}

.animate-on-hover:hover {
    transform: translateY(-10px) scale(1.02);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card {
    background: rgba(26, 31, 58, 0.4) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 212, 255, 0.1) !important;
}

.text-gradient {
    background: linear-gradient(90deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#back-to-categories:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

.testimonial-section {
    background: var(--bg-secondary);
    padding: 80px 0;
    margin-top: 80px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin: 15px;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 700;
    margin-right: 15px;
}

.testimonial-info h4 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.1rem;
}

.testimonial-info p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.testimonial-rating {
    color: #ffd700;
    margin-bottom: 10px;
}

.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    color: var(--accent-cyan);
    font-size: 20px;
}

.feature-text {
    color: var(--text-secondary);
}

.master-breadcrumb {
    display: none !important;
}

#main-body {
    background: transparent !important;
    position: relative;
    z-index: 2;
    padding-top: 100px !important;
}

.primary-bg-color {
    background: transparent !important;
}

/* ========================================
   CANCELLATION REQUEST PAGE STYLING
   ======================================== */

/* Cancellation Card Styling */
.wh-cancel-card {
    background: rgba(26, 31, 58, 0.8) !important;
    border: 1px solid rgba(71, 85, 105, 0.4) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
    overflow: hidden;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

.wh-cancel-card .card-body {
    padding: 35px !important;
    position: relative;
    z-index: 10;
}

/* Cancellation Form Elements */
.wh-cancel-card .form-group label {
    font-weight: 600;
    color: #8b93a7 !important;
    margin-bottom: 10px;
    display: block;
}

.wh-cancel-card textarea.form-control {
    background: rgba(15, 18, 35, 0.8) !important;
    border: 2px solid rgba(71, 85, 105, 0.5) !important;
    border-radius: 8px !important;
    padding: 15px !important;
    font-size: 15px !important;
    color: #ffffff !important;
    transition: border-color 0.3s ease;
}

.wh-cancel-card textarea.form-control:focus {
    background: rgba(15, 18, 35, 1) !important;
    border-color: #00d4ff !important;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1) !important;
    outline: none;
}

.wh-cancel-card textarea.form-control::placeholder {
    color: #6c7b95 !important;
}

.wh-cancel-card select.form-control {
    background: rgba(15, 18, 35, 0.8) !important;
    border: 2px solid rgba(71, 85, 105, 0.5) !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    min-width: 320px;
    min-height: 50px !important;
    height: auto !important;
    line-height: 1.6 !important;
    color: #ffffff !important;
    transition: border-color 0.3s ease;
    cursor: pointer !important;
    vertical-align: middle !important;
    appearance: menulist !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
}

.wh-cancel-card select.form-control:focus {
    background: rgba(15, 18, 35, 1) !important;
    border-color: #00d4ff !important;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1) !important;
    outline: none;
}

.wh-cancel-card select.form-control option {
    background: #1a1f3a !important;
    color: #ffffff !important;
}

/* Cancellation Buttons */
.wh-cancel-card .btn-danger {
    background: linear-gradient(135deg, #ff4d4d, #dc3545) !important;
    border: none !important;
    color: #fff !important;
    padding: 14px 40px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 77, 77, 0.3);
}

.wh-cancel-card .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 77, 77, 0.4) !important;
    color: #fff !important;
    background: linear-gradient(135deg, #dc3545, #bd2130) !important;
}

.wh-cancel-card .btn-default {
    background: rgba(42, 47, 74, 0.8) !important;
    border: 2px solid rgba(71, 85, 105, 0.5) !important;
    color: #ffffff !important;
    padding: 14px 40px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease;
}

.wh-cancel-card .btn-default:hover {
    background: rgba(42, 47, 74, 1) !important;
    border-color: #00d4ff !important;
    color: #00d4ff !important;
    transform: translateY(-2px);
}

/* Alert Warning Box for Domain Cancellation */
.wh-cancel-card .alert-warning {
    background: rgba(255, 193, 7, 0.1) !important;
    border: 1px solid rgba(255, 193, 7, 0.3) !important;
    border-left: 4px solid #ffc107 !important;
    padding: 20px !important;
    border-radius: 8px !important;
    margin-bottom: 25px;
    color: #ffffff !important;
}

.wh-cancel-card .alert-warning strong {
    color: #ffc107 !important;
}

.wh-cancel-card .alert-warning p {
    color: #ffffff !important;
    margin: 8px 0;
}

.wh-cancel-card .form-check-input {
    accent-color: #00d4ff;
}

/* Info Alert Styling for Cancellation Page */
body[class*="cancel"] .alert-info,
.alert-info {
    background: rgba(0, 212, 255, 0.1) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    border-left: 4px solid #00d4ff !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 20px !important;
}

body[class*="cancel"] .alert-info strong,
.alert-info strong {
    color: #00d4ff !important;
}

/* Success Alert for Cancellation Confirmation */
body[class*="cancel"] .alert-success,
.alert-success {
    background: rgba(0, 255, 136, 0.1) !important;
    border: 1px solid rgba(0, 255, 136, 0.3) !important;
    border-left: 4px solid #00ff88 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 20px !important;
}

body[class*="cancel"] .alert-success strong {
    color: #00ff88 !important;
}

/* Error Alert for Cancellation Page */
body[class*="cancel"] .alert-error,
.alert-error {
    background: rgba(255, 77, 77, 0.1) !important;
    border: 1px solid rgba(255, 77, 77, 0.3) !important;
    border-left: 4px solid #ff6b6b !important;
    color: #ff6b6b !important;
    border-radius: 8px !important;
    padding: 20px !important;
}

.clientarea #main-body,
.clientarea .container,
.clientarea .primary-content,
.clientarea .primary-content > .container,
body.clientarea #main-body,
body.clientarea .container,
body.clientarea .primary-content {
    position: relative;
    z-index: 10 !important;
}

/* Ensure all client area content is visible */
.clientarea .container > div,
.clientarea .row,
body.clientarea .primary-content,
body.clientarea main {
    position: relative;
    z-index: 5;
}

/* Client area cards and panels visibility */
.clientarea .card,
.clientarea .panel,
.clientarea .alert,
body.clientarea .card,
body.clientarea .panel,
body.clientarea .alert {
    position: relative;
    z-index: 5;
}

.wisehosting-footer {
    background: rgba(26, 31, 58, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(42, 47, 74, 0.5);
    padding: 30px 0 20px;
    margin-top: 60px;
}

.footer-content {
    margin-bottom: 15px;
}

.footer-brand h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-brand h3 i {
    color: var(--accent-cyan);
    margin-right: 8px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social .list-inline {
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

.footer-social .list-inline-item {
    margin: 0;
}

.footer-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer-social a:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

.footer-heading {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-cyan);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(42, 47, 74, 0.3);
    padding-top: 12px;
}

.copyright,
.footer-registration {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Phone number dropdown fixes */
.intl-tel-input {
    width: 100%;
    display: block;
}

.intl-tel-input input,
.intl-tel-input input[type="tel"],
.intl-tel-input .selected-dial-code {
    background: rgba(10, 14, 39, 0.6) !important;
    color: #ffffff !important;
    border: 1px solid rgba(42, 47, 74, 0.8) !important;
}

.intl-tel-input input[type="tel"] {
    padding-left: 80px !important;
    width: 100% !important;
}

.intl-tel-input .flag-container {
    width: 70px !important;
}

.intl-tel-input .selected-flag {
    width: 70px !important;
    padding-left: 10px !important;
}

.intl-tel-input .selected-dial-code {
    margin-left: 8px !important;
}

.intl-tel-input input:focus {
    background: rgba(10, 14, 39, 0.8) !important;
    border-color: #00d4ff !important;
}

.intl-tel-input .country-list {
    background-color: rgba(26, 31, 58, 0.98) !important;
    border: 1px solid rgba(42, 47, 74, 0.8) !important;
    color: #ffffff !important;
    z-index: 9999 !important;
}

.intl-tel-input .country-list .country {
    color: #a8b2d1 !important;
    padding: 8px 12px;
}

.intl-tel-input .country-list .country.highlight,
.intl-tel-input .country-list .country:hover {
    background-color: rgba(0, 212, 255, 0.1) !important;
    color: #00d4ff !important;
}

.intl-tel-input .country-list .country .dial-code {
    color: #6c7b95 !important;
}

.intl-tel-input .selected-flag {
    background-color: transparent !important;
}

.intl-tel-input .flag-container {
    background-color: transparent !important;
}

/* Fix for checkout page phone input */
.wh-form-input[type="tel"] {
    width: 100%;
}

/* Hide default WHMCS panels from client area */
.client-home-panels,
.client-home-panels [menuItemName="Client Information"],
.client-home-panels [menuItemName="Your Info"],
.client-home-panels [menuItemName="Contacts"],
.client-home-panels [menuItemName="Shortcuts"],
.client-home-panels [menuItemName="Contact Information"],
.client-home-panels [menuItemName="Quick Shortcuts"],
div[menuitemname="Client Information"],
div[menuitemname="Your Info"],
div[menuitemname="Contacts"],
div[menuitemname="Shortcuts"],
div[menuitemname="Invoices Due"],
div[menuitemname="Status"],
div[menuitemname="Billing"],
div[menuitemname="View"],
div[menuitemname="Actions"],
.client-products-actions,
.client-invoices-panels,
.panel.panel-default.panel-invoice-status,
.panel.panel-default.panel-billing-info {
    display: none !important;
}

/* Hide ALL sidebar cards/panels in client area except on user accounts page */
.clientarea .card-sidebar,
.clientarea .sidebar,
.clientarea .sidebar-primary,
.clientarea .sidebar-secondary,
.clientarea .mb-3.card.card-sidebar,
body.clientarea .card-sidebar,
body.clientarea .sidebar {
    display: none !important;
}

/* Show and style sidebar on user accounts page - FORCE OVERRIDE */
body[class*="user-accounts"] .sidebar,
body[class*="user-accounts"] .card-sidebar,
body[class*="user-accounts"] .secondary-sidebar,
body[class*="user-accounts"] aside.sidebar,
body[class*="user-accounts"] .sidebar-primary,
.user-switch-snapgrids-wrapper ~ .sidebar,
.user-switch-snapgrids-wrapper ~ .secondary-sidebar {
    display: block !important;
}

/* User accounts sidebar dark theme - FORCE ALL SELECTORS */
body[class*="user-accounts"] .card,
body[class*="user-accounts"] .card-sidebar,
body[class*="user-accounts"] aside .card,
body[class*="user-accounts"] aside .card-sidebar,
body[class*="user-accounts"] .secondary-sidebar .card,
body[class*="user-accounts"] .secondary-sidebar .card-sidebar,
body[class*="user-accounts"] .sidebar .card,
body[class*="user-accounts"] .sidebar .card-sidebar,
.user-switch-snapgrids-wrapper ~ .sidebar .card,
.user-switch-snapgrids-wrapper ~ .sidebar .card-sidebar,
.user-switch-snapgrids-wrapper ~ .secondary-sidebar .card,
.user-switch-snapgrids-wrapper ~ .secondary-sidebar .card-sidebar {
    background: rgba(26, 31, 58, 0.6) !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
    border-radius: 12px !important;
}

body[class*="user-accounts"] .card-header,
body[class*="user-accounts"] .card-sidebar .card-header,
body[class*="user-accounts"] aside .card-header,
body[class*="user-accounts"] .secondary-sidebar .card-header,
body[class*="user-accounts"] .sidebar .card-header,
.user-switch-snapgrids-wrapper ~ .sidebar .card-header,
.user-switch-snapgrids-wrapper ~ .secondary-sidebar .card-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

body[class*="user-accounts"] .card-title,
body[class*="user-accounts"] .card-sidebar .card-title,
body[class*="user-accounts"] aside .card-title,
body[class*="user-accounts"] .secondary-sidebar .card-title,
body[class*="user-accounts"] .sidebar .card-title,
.user-switch-snapgrids-wrapper ~ .sidebar .card-title,
.user-switch-snapgrids-wrapper ~ .secondary-sidebar .card-title {
    color: #fff !important;
    font-weight: 600 !important;
}

body[class*="user-accounts"] .card-body,
body[class*="user-accounts"] .card-sidebar .card-body,
body[class*="user-accounts"] aside .card-body {
    padding: 0 !important;
}

body[class*="user-accounts"] .list-group-item,
body[class*="user-accounts"] .card-sidebar .list-group-item,
body[class*="user-accounts"] aside .list-group-item,
body[class*="user-accounts"] .secondary-sidebar .list-group-item,
body[class*="user-accounts"] .sidebar .list-group-item,
.user-switch-snapgrids-wrapper ~ .sidebar .list-group-item,
.user-switch-snapgrids-wrapper ~ .secondary-sidebar .list-group-item {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    color: #8b93a7 !important;
    transition: all 0.3s ease !important;
}

body[class*="user-accounts"] .list-group-item:hover,
body[class*="user-accounts"] .list-group-item.active,
body[class*="user-accounts"] .card-sidebar .list-group-item:hover,
body[class*="user-accounts"] .card-sidebar .list-group-item.active,
body[class*="user-accounts"] aside .list-group-item:hover,
body[class*="user-accounts"] aside .list-group-item.active,
.user-switch-snapgrids-wrapper ~ .sidebar .list-group-item:hover,
.user-switch-snapgrids-wrapper ~ .sidebar .list-group-item.active {
    background: rgba(0, 212, 255, 0.1) !important;
    color: #00d4ff !important;
    border-left: 3px solid #00d4ff !important;
    padding-left: 17px !important;
}

/* Knowledge base dark theme styling */
body[class*="knowledgebase"] .card,
body.knowledgebase .card {
    background: rgba(26, 31, 58, 0.8) !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
    border-radius: 12px !important;
    color: #fff !important;
}

body[class*="knowledgebase"] .card-body,
body.knowledgebase .card-body {
    background: rgba(26, 31, 58, 0.8) !important;
    color: #fff !important;
    padding: 20px !important;
}

body[class*="knowledgebase"] .card-header,
body.knowledgebase .card-header {
    background: rgba(20, 24, 41, 0.9) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

body[class*="knowledgebase"] .card-title,
body.knowledgebase .card-title {
    color: #fff !important;
    font-weight: 600 !important;
}

body[class*="knowledgebase"] h1,
body[class*="knowledgebase"] h2,
body[class*="knowledgebase"] h3,
body[class*="knowledgebase"] h4,
body.knowledgebase h1,
body.knowledgebase h2,
body.knowledgebase h3,
body.knowledgebase h4 {
    color: #fff !important;
}

body[class*="knowledgebase"] p,
body[class*="knowledgebase"] li,
body[class*="knowledgebase"] article,
body.knowledgebase p,
body.knowledgebase li,
body.knowledgebase article {
    color: #a8b2d1 !important;
}

body[class*="knowledgebase"] .list-group-item,
body.knowledgebase .list-group-item {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #a8b2d1 !important;
}

body[class*="knowledgebase"] .list-group-item:hover,
body.knowledgebase .list-group-item:hover {
    background: rgba(0, 212, 255, 0.1) !important;
    color: #00d4ff !important;
}

body[class*="knowledgebase"] .btn,
body.knowledgebase .btn {
    background: rgba(0, 212, 255, 0.1) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    color: #00d4ff !important;
}

body[class*="knowledgebase"] .btn:hover,
body.knowledgebase .btn:hover {
    background: rgba(0, 212, 255, 0.2) !important;
    border-color: rgba(0, 212, 255, 0.5) !important;
}

body[class*="knowledgebase"] .btn-primary,
body.knowledgebase .btn-primary {
    background: linear-gradient(135deg, #00d4ff, #00b8d4) !important;
    border: none !important;
    color: #0a0e27 !important;
}

body[class*="knowledgebase"] .btn-secondary,
body.knowledgebase .btn-secondary {
    background: rgba(139, 147, 167, 0.2) !important;
    border: 1px solid rgba(139, 147, 167, 0.3) !important;
    color: #8b93a7 !important;
}

body[class*="knowledgebase"] .badge,
body.knowledgebase .badge {
    background: rgba(0, 212, 255, 0.2) !important;
    color: #00d4ff !important;
}

body[class*="knowledgebase"] a,
body.knowledgebase a {
    color: #00d4ff !important;
}

body[class*="knowledgebase"] a:hover,
body.knowledgebase a:hover {
    color: #00b8d4 !important;
}

/* Knowledge base article content - comprehensive dark theme for HTML elements */
body[class*="knowledgebase"] .kb-article-content,
body.knowledgebase .kb-article-content {
    background-color: transparent !important;
    color: #a8b2d1 !important;
}

/* Target specific plain text elements only - exclude interactive components */
body[class*="knowledgebase"] .kb-article-content div:not([class]),
body[class*="knowledgebase"] .kb-article-content span:not([class]),
body.knowledgebase .kb-article-content div:not([class]),
body.knowledgebase .kb-article-content span:not([class]) {
    background-color: transparent !important;
    color: inherit !important;
}

body[class*="knowledgebase"] .kb-article-content p,
body[class*="knowledgebase"] .kb-article-content li,
body.knowledgebase .kb-article-content p,
body.knowledgebase .kb-article-content li {
    color: #a8b2d1 !important;
}

body[class*="knowledgebase"] .kb-article-content h1,
body[class*="knowledgebase"] .kb-article-content h2,
body[class*="knowledgebase"] .kb-article-content h3,
body[class*="knowledgebase"] .kb-article-content h4,
body[class*="knowledgebase"] .kb-article-content h5,
body[class*="knowledgebase"] .kb-article-content h6,
body.knowledgebase .kb-article-content h1,
body.knowledgebase .kb-article-content h2,
body.knowledgebase .kb-article-content h3,
body.knowledgebase .kb-article-content h4,
body.knowledgebase .kb-article-content h5,
body.knowledgebase .kb-article-content h6 {
    color: #fff !important;
    background-color: transparent !important;
}

body[class*="knowledgebase"] .kb-article-content strong,
body[class*="knowledgebase"] .kb-article-content b,
body.knowledgebase .kb-article-content strong,
body.knowledgebase .kb-article-content b {
    color: #00d4ff !important;
}

/* Ensure links maintain proper styling */
body[class*="knowledgebase"] .kb-article-content a,
body.knowledgebase .kb-article-content a {
    color: #00d4ff !important;
    text-decoration: underline !important;
}

body[class*="knowledgebase"] .kb-article-content a:hover,
body.knowledgebase .kb-article-content a:hover {
    color: #00b8d4 !important;
}

body[class*="knowledgebase"] .kb-article-content table,
body.knowledgebase .kb-article-content table {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-collapse: collapse !important;
}

body[class*="knowledgebase"] .kb-article-content table th,
body.knowledgebase .kb-article-content table th {
    background: rgba(0, 212, 255, 0.1) !important;
    color: #00d4ff !important;
    padding: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body[class*="knowledgebase"] .kb-article-content table td,
body.knowledgebase .kb-article-content table td {
    padding: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #a8b2d1 !important;
}

body[class*="knowledgebase"] .kb-article-content pre,
body[class*="knowledgebase"] .kb-article-content code,
body.knowledgebase .kb-article-content pre,
body.knowledgebase .kb-article-content code {
    background: rgba(10, 14, 39, 0.6) !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
    border-radius: 6px !important;
    padding: 10px !important;
    color: #00ff88 !important;
    font-family: 'Courier New', monospace !important;
}

body[class*="knowledgebase"] .kb-article-content blockquote,
body.knowledgebase .kb-article-content blockquote {
    background: rgba(0, 212, 255, 0.05) !important;
    border-left: 4px solid #00d4ff !important;
    padding: 15px 20px !important;
    margin: 15px 0 !important;
    color: #a8b2d1 !important;
}

body[class*="knowledgebase"] .kb-article-content ul,
body[class*="knowledgebase"] .kb-article-content ol,
body.knowledgebase .kb-article-content ul,
body.knowledgebase .kb-article-content ol {
    color: #a8b2d1 !important;
    padding-left: 25px !important;
}

body[class*="knowledgebase"] .kb-article-content img,
body.knowledgebase .kb-article-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body[class*="knowledgebase"] .kb-article-content hr,
body.knowledgebase .kb-article-content hr {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Reusable alert boxes for dark theme */
.snapgrids-alert-error,
.snapgrids-alert-danger {
    background: rgba(255, 77, 77, 0.1) !important;
    border: 1px solid rgba(255, 77, 77, 0.3) !important;
    border-radius: 8px !important;
    padding: 20px !important;
    text-align: center !important;
    color: #ff4d4d !important;
    margin-bottom: 20px !important;
}

.snapgrids-alert-warning {
    background: rgba(255, 193, 7, 0.1) !important;
    border: 1px solid rgba(255, 193, 7, 0.3) !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin-bottom: 20px !important;
    color: #ffc107 !important;
}

.snapgrids-alert-success {
    background: rgba(0, 255, 136, 0.1) !important;
    border: 1px solid rgba(0, 255, 136, 0.3) !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin-bottom: 20px !important;
    color: #00ff88 !important;
}

.snapgrids-alert-info {
    background: rgba(0, 212, 255, 0.1) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin-bottom: 20px !important;
    color: #00d4ff !important;
}

.snapgrids-alert-error h4,
.snapgrids-alert-danger h4,
.snapgrids-alert-warning h4,
.snapgrids-alert-success h4,
.snapgrids-alert-info h4 {
    margin: 0 0 10px 0 !important;
    font-weight: 600 !important;
}

.snapgrids-alert-error p,
.snapgrids-alert-danger p,
.snapgrids-alert-warning p,
.snapgrids-alert-success p,
.snapgrids-alert-info p {
    margin: 0 !important;
}

/* Hide footer on knowledge base pages */
body[class*="knowledgebase"] #footer,
body[class*="knowledgebase"] .footer,
body[class*="knowledgebase"] .wisehosting-footer,
body.knowledgebase #footer,
body.knowledgebase .footer,
body.knowledgebase .wisehosting-footer {
    display: none !important;
}

/* Hide footer in client area */
.clientarea #footer,
.clientarea .footer,
.clientarea .wisehosting-footer,
body.clientarea #footer,
body.clientarea .footer {
    display: none !important;
}

/* Store Page Styling */
.store-order-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
}

.store-order-container h2 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.store-order-container h4 {
    color: var(--accent-cyan);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.store-order-container p {
    color: var(--text-secondary);
}

.store-order-container .payment-term {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
}

.store-order-container select.form-control,
.store-order-container input.form-control {
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 12px 16px;
}

.store-order-container select.form-control:focus,
.store-order-container input.form-control:focus {
    background: rgba(10, 14, 39, 0.8);
    border-color: var(--accent-cyan);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.store-domain-tabs {
    border-bottom: 1px solid var(--border-color);
}

.store-domain-tabs .nav-link {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.store-domain-tabs .nav-link:hover {
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.05);
}

.store-domain-tabs .nav-link.active,
.store-domain-tabs .nav-item.active .nav-link {
    color: var(--accent-cyan);
    background: transparent;
    border-bottom-color: var(--accent-cyan);
}

.store-domain-tab-content {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 30px;
}

.domain-validation {
    color: var(--text-secondary);
}

.domain-validation.ok {
    color: var(--accent-green);
}

.store-order-container .btn-default {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.store-order-container .btn-default:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.store-order-container .btn-primary {
    background: var(--accent-cyan);
    border: none;
    color: #000;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.store-order-container .btn-primary:hover {
    background: #00b8e6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

.store-promoted-product {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.store-promoted-product h3 {
    color: var(--accent-cyan);
}

.store-promoted-product h4 {
    color: var(--text-primary);
}

.store-promoted-product p {
    color: var(--text-secondary);
}

.store-promoted-product .btn-success {
    background: var(--accent-green);
    border: none;
    color: #000;
    font-weight: 600;
}

.store-promoted-product .btn-success:hover {
    background: #00e67a;
}

/* Registration page info boxes and alerts - blend with site */
.wh-register-wrapper .alert,
.wh-register-wrapper .panel,
.wh-register-wrapper .card,
.wh-register-wrapper .well,
.wh-register-wrapper .panel-info,
.wh-register-wrapper .alert-info,
body .alert-info,
.clientarea .alert-info,
.already-registered-info,
.panel.panel-info,
.alert.alert-info,
.sub-heading,
.sub-heading-borderless,
.providerPreLinking,
.social-signin-btns {
    background: rgba(26, 31, 58, 0.95) !important;
    border: 1px solid rgba(42, 47, 74, 0.8) !important;
    border-radius: 12px !important;
    color: var(--text-secondary) !important;
}

.wh-register-wrapper .alert a,
.wh-register-wrapper .panel a,
.wh-register-wrapper .card a,
.sub-heading a,
.providerPreLinking a {
    color: var(--accent-cyan) !important;
}

.wh-register-wrapper .alert a:hover,
.wh-register-wrapper .panel a:hover,
.wh-register-wrapper .card a:hover,
.sub-heading a:hover,
.providerPreLinking a:hover {
    color: #00b8e6 !important;
}

.wh-register-wrapper .alert .btn,
.wh-register-wrapper .panel .btn,
.wh-register-wrapper .card .btn,
.sub-heading .btn,
.providerPreLinking .btn {
    background: var(--accent-cyan) !important;
    color: #000 !important;
    border: none !important;
}

.sub-heading span,
.sub-heading-borderless span {
    color: var(--text-primary) !important;
}

/* Hide ALL sidebars and Actions boxes globally across most pages */
.sidebar,
.card-sidebar,
.secondary-sidebar,
aside.sidebar,
div[menuitemname="Actions"],
div[menuitemname="View"],
div[menuitemname="Shortcuts"],
div[menuitemname="Quick Shortcuts"] {
    display: none !important;
}

/* Make content full-width when sidebar is hidden */
.primary-content,
.primary-content.col-md-9,
.content-area {
    max-width: 100% !important;
    flex: 0 0 100% !important;
    width: 100% !important;
}

/* EXCEPTION: Show sidebar ONLY on user accounts pages */
body[class*="user-accounts"] .sidebar,
body[class*="user-accounts"] .card-sidebar,
body[class*="user-accounts"] .secondary-sidebar,
body[class*="user-accounts"] aside.sidebar,
.user-switch-snapgrids-wrapper ~ .sidebar,
.user-switch-snapgrids-wrapper ~ .secondary-sidebar {
    display: block !important;
}

/* EXCEPTION: Show sidebar on product/service details page for actions */
body[class*="clientareaproductdetails"] .sidebar,
body[class*="clientareaproductdetails"] .card-sidebar,
body[class*="clientareaproductdetails"] div[menuitemname="Actions"] {
    display: block !important;
}

/* Ensure content is properly sized when sidebar appears on exceptions */
body[class*="user-accounts"] .primary-content,
body[class*="clientareaproductdetails"] .primary-content {
    max-width: 75% !important;
    flex: 0 0 75% !important;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .category-tabs {
        justify-content: center;
    }
    
    .footer-bottom .text-md-right {
        text-align: left !important;
        margin-top: 10px;
    }
    
    .store-order-container {
        padding: 20px;
    }
    
    body .container,
    body .container-sm,
    body .container-md,
    body .container-lg,
    body .container-xl {
        padding-right: 20px !important;
        padding-left: 20px !important;
    }
    
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .testimonial-section {
        padding: 50px 0;
        margin-top: 50px;
    }
    
    /* On mobile, always full width */
    body[class*="user-accounts"] .primary-content,
    body[class*="clientareaproductdetails"] .primary-content {
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
}

/* Fix footer positioning on store page - prevent levitating footer */
body.store {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.store #main-body {
    flex: 1 0 auto;
}

body.store .primary-content {
    min-height: calc(100vh - 400px);
    padding-bottom: 80px;
}

body.store .wisehosting-footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* ============================================
   WHMCS MODAL FIX - Ensure modals are clickable
   ============================================ */

.modal-backdrop {
    z-index: 99998 !important;
    pointer-events: auto !important;
    position: fixed !important;
}

.modal {
    z-index: 99999 !important;
    pointer-events: auto !important;
    position: fixed !important;
}

.modal-dialog {
    z-index: 100000 !important;
    pointer-events: auto !important;
    position: relative !important;
}

.modal-content {
    z-index: 100001 !important;
    pointer-events: auto !important;
    position: relative !important;
    background: rgba(26, 31, 58, 0.98) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
}

.modal-header,
.modal-body,
.modal-footer {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 100002 !important;
}

.modal-header .close,
.modal-footer button,
.modal-footer .btn,
.modal-body button,
.modal-body .btn,
.modal button,
.modal .btn,
.modal a,
.modal input,
.modal textarea,
.modal select {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 100005 !important;
}

.modal input:not([type="checkbox"]):not([type="radio"]),
.modal textarea,
.modal select {
    cursor: text !important;
}

.modal.show {
    display: block !important;
}

.modal.fade.show .modal-dialog {
    transform: none !important;
}

.modal-open {
    overflow: hidden !important;
}

.modal-open .modal {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body.modal-open {
    overflow: hidden !important;
}

/* Fix modal freeze issue - disable pointer events on background content when modal is open */
.modal-open .snapgrids-layout,
.modal-open .snapgrids-sidebar,
.modal-open .snapgrids-main,
.modal-open .snapgrids-content,
.modal-open .snapgrids-topbar,
.modal-open #main-body,
.modal-open .container,
.modal-open .primary-content {
    pointer-events: none !important;
}

/* Ensure modal and its backdrop remain interactive */
.modal-open .modal,
.modal-open .modal-backdrop,
.modal-open .modal *,
.modal-open .modal-dialog *,
.modal-open .modal-content *,
.modal-open .modal-header *,
.modal-open .modal-body *,
.modal-open .modal-footer * {
    pointer-events: auto !important;
}

body::before,
body::after,
html::before,
html::after {
    pointer-events: none !important;
    z-index: 0 !important;
}

/* Disable pointer events on Minecraft background when modal is open */
.modal-open .wh-minecraft-bg,
.modal-open body::before,
.modal-open body::after,
.modal-open #particles-js,
.modal-open canvas {
    pointer-events: none !important;
    z-index: 0 !important;
}

/* ========================================
   GLOBAL SELECT DROPDOWN FIX
   ======================================== */

/* Ensure all select elements are clickable and show full text */
select,
select.form-control {
    pointer-events: auto !important;
    -webkit-user-select: auto !important;
    user-select: auto !important;
    cursor: pointer !important;
    min-height: 46px !important;
    height: auto !important;
    line-height: 1.5 !important;
    padding: 12px 16px !important;
    vertical-align: middle !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

select option {
    color: #ffffff !important;
    background: #1a1f3a !important;
    padding: 10px !important;
}

/* Hide empty alert/info boxes globally */
.alert:empty,
.alert-info:empty,
.alert-warning:empty,
.alert-success:empty,
.alert-danger:empty,
div.alert:not(:has(*:not(:empty))),
div.alert-info:not(:has(*:not(:empty))),
.notification:empty,
.info-box:empty,
.message-box:empty,
div[class*="alert"]:empty,
div[class*="info"]:empty,
div[class*="notification"]:empty,
div[class*="message"]:empty {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

/* Modal input and button specific fixes */
.modal input[type="password"],
.modal input[type="text"],
.modal input[type="email"],
.modal textarea {
    background: rgba(15, 18, 35, 0.8) !important;
    border: 1px solid rgba(71, 85, 105, 0.5) !important;
    color: #ffffff !important;
    padding: 10px 15px !important;
    border-radius: 6px !important;
}

.modal input:focus,
.modal textarea:focus {
    background: rgba(15, 18, 35, 1) !important;
    border-color: #00d4ff !important;
    outline: none !important;
}

.modal .btn-primary {
    background: linear-gradient(135deg, #00d4ff, #00b8d4) !important;
    border: none !important;
    color: #0a0e27 !important;
    font-weight: 600 !important;
}

.modal .btn-default,
.modal .btn-secondary {
    background: rgba(42, 47, 74, 0.8) !important;
    border: 1px solid rgba(71, 85, 105, 0.5) !important;
    color: #ffffff !important;
}

/* Modal header styling */
.modal-header {
    background: rgba(15, 18, 35, 0.9) !important;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3) !important;
}

.modal-title {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.modal-header .close {
    color: #ffffff !important;
    opacity: 0.8 !important;
}

.modal-header .close:hover {
    opacity: 1 !important;
}

/* Modal body */
.modal-body {
    background: rgba(26, 31, 58, 0.98) !important;
    color: #ffffff !important;
}

.modal-body label {
    color: #8b93a7 !important;
}

/* Modal footer */
.modal-footer {
    background: rgba(15, 18, 35, 0.9) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.mce-content-body,
.mce-content-body p,
.mce-content-body div,
.mce-content-body span,
iframe[id*="ifr"] body,
iframe[id*="ifr"] body * {
    color: #000000 !important;
}

.mce-edit-area iframe {
    background: #ffffff !important;
}

textarea {
    color: #000000 !important;
    background: #ffffff !important;
}

.mce-panel {
    background: #f0f0f0 !important;
}

.mce-tinymce {
    border-color: rgba(42, 47, 74, 0.8) !important;
}

/* Hide w-hidden and empty password feedback elements */
.w-hidden,
#passwdFeedback.w-hidden,
#passwdFeedback:empty {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
}

/* ========================================
   FIX FROZEN MODAL - CHANGE PASSWORD
   ======================================== */

/* Force modal backdrop to stay behind */
.modal-backdrop {
    z-index: 999 !important;
    pointer-events: none !important;
}

/* Force modal to be on top of everything */
.modal {
    z-index: 9999 !important;
    pointer-events: auto !important;
}

.modal-dialog {
    z-index: 10000 !important;
    pointer-events: auto !important;
    position: relative !important;
}

.modal-content {
    pointer-events: auto !important;
    z-index: 10001 !important;
    position: relative !important;
    background: rgba(26, 31, 58, 0.98) !important;
}

/* Force all modal children to be clickable */
.modal *,
.modal input,
.modal button,
.modal select,
.modal textarea,
.modal .btn,
.modal label,
.modal .form-control,
.modal .form-group,
.modal .modal-header,
.modal .modal-body,
.modal .modal-footer {
    pointer-events: auto !important;
    cursor: auto !important;
    position: relative !important;
    z-index: auto !important;
}

/* Specific fixes for input fields */
.modal input[type="password"],
.modal input[type="text"] {
    cursor: text !important;
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
}

/* Specific fixes for buttons */
.modal button,
.modal .btn {
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* Disable pointer events on everything else when modal is open */
.modal-open body > *:not(.modal):not(.modal-backdrop) {
    pointer-events: none !important;
}

/* Re-enable pointer events only for modal */
.modal-open .modal,
.modal-open .modal * {
    pointer-events: auto !important;
}
