:root {
    --h-primary: #072673; /* Navy Blue Accent */
    --h-primary-hover: #051d5a;
    --h-primary-active: #041440;
    --h-button-bg: var(--hbtc-primary, var(--h-primary));
    --h-button-bg-hover: var(--hbtc-button-hover, var(--h-primary-hover));
    --h-button-text: var(--hbtc-button-readable-text, var(--hbtc-button-text, #ffffff));
    --h-button-text-hover: var(--hbtc-button-hover-readable-text, var(--h-button-text));
    --h-button-border: var(--h-button-bg);
    --h-button-focus: color-mix(in srgb, var(--h-button-bg) 20%, transparent);
    --h-secondary: #2f1c6a;
    --h-bg: #f5f5f9;
    --h-sidebar-bg: #fff;
    --h-text: #2d2d2d;
    --h-text-light: #727586;
    --h-border: #e4e5e7;
    --h-success: #072673;
    --h-font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Hostbility-like Variables */
    --h-radius: 8px;
    --h-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --h-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --h-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --h-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing */
    --h-spacer: 1rem;
    
    /* Promo Colors */
    --h-promo-bg: #ffffff;
    --h-promo-accent: #072673; /* Hostbility Purple */
    /* Keep hover consistent with Hostbility accent (avoid purple drift). */
    --h-promo-accent-hover: var(--h-primary-hover);

    /* Reference Typography + Components (Domain Details is the source of truth)
       Used to standardize newly created pages to match:
       /clientarea.php?action=domaindetails&id=2&view=nameservers */
    --hb-ref-font-family: var(--h-font-family);
    --hb-ref-text: #1f2937;
    --hb-ref-heading: #111827;
    --hb-ref-muted: #6b7280;
    --hb-ref-border: #e5e7eb;
    --hb-ref-border-soft: #eef2f7;

    --hb-ref-page-title-size: 1.5rem;
    --hb-ref-page-title-weight: 700;
    --hb-ref-page-title-line: 1.2;

    --hb-ref-page-subtitle-size: 0.93rem;
    --hb-ref-page-subtitle-line: 1.65;

    --hb-ref-card-radius: 18px;
    --hb-ref-card-shadow: 0 18px 44px rgba(15, 23, 42, 0.05);

    --hb-ref-card-header-pad-y: 24px;
    --hb-ref-card-header-pad-x: 28px;
    --hb-ref-card-body-pad: 28px;

    --hb-ref-card-title-size: 1.06rem;
    --hb-ref-card-title-weight: 700;
    --hb-ref-card-subtitle-size: 0.88rem;
    --hb-ref-card-subtitle-line: 1.6;

    --hb-ref-btn-radius: 12px;
    --hb-ref-btn-min-h: 42px;
    --hb-ref-btn-pad-y: 10px;
    --hb-ref-btn-pad-x: 18px;
    --hb-ref-btn-font-size: 0.86rem;
    --hb-ref-btn-weight: 700;
    --hb-ref-transition: all 0.2s ease;

    /* Reference Links */
    --hb-ref-link: #072673;
    --hb-ref-link-hover: #0b3ba8;

    /* Reference Tables */
    --hb-ref-table-th-bg: #f9fafb;
    --hb-ref-table-th-border: #eef2f7;
    --hb-ref-table-th-color: #6b7280;
    --hb-ref-table-th-font-size: 0.7rem;
    --hb-ref-table-th-font-weight: 700;
    --hb-ref-table-th-letter-spacing: 0.05em;
    --hb-ref-table-th-pad-y: 16px;
    --hb-ref-table-th-pad-x: 18px;

    --hb-ref-table-td-border: #f1f5f9;
    --hb-ref-table-td-color: #374151;
    --hb-ref-table-td-font-size: 0.92rem;
    --hb-ref-table-td-pad: 18px;

    /* Reference Forms */
    --hb-ref-form-min-h: 46px;
    --hb-ref-form-radius: 10px;
    --hb-ref-form-border: #dbe3ef;
    --hb-ref-form-font-size: 0.92rem;
    --hb-ref-form-pad-y: 12px;
    --hb-ref-form-pad-x: 14px;
    --hb-ref-form-label-size: 0.84rem;
    --hb-ref-form-label-weight: 700;

    /* Reference Alerts/Overlays */
    --hb-ref-alert-radius: 14px;
    --hb-ref-overlay-z: 1100;
}

/* Feather icon font (used across hostbility_theme + hostbility_cart templates)
   main.css ships the glyph map, but the @font-face is commented out there. */
@font-face {
    font-family: "feather";
    src: url("../fonts/feather/feather.eot?t=1501841394106");
    src: url("../fonts/feather/feather.eot?t=1501841394106#iefix") format("embedded-opentype"),
         url("../fonts/feather/feather.woff?t=1501841394106") format("woff"),
         url("../fonts/feather/feather.ttf?t=1501841394106") format("truetype"),
         url("../fonts/feather/feather.svg?t=1501841394106#feather") format("svg");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: var(--h-font-family);
    background-color: var(--h-bg);
    color: var(--h-text);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

/* Typography consistency across all Hostbility pages (forms + buttons inherit Montserrat) */
button,
input,
select,
textarea,
.btn,
.form-control,
.custom-select,
.nice-select {
    font-family: var(--h-font-family);
}

/* Hostbility primary button color system
   Uses Layout & Branding runtime variables while enforcing a readable foreground. */
:where(.btn-primary,
    .h-admin-btn,
    .h-btn-primary,
    .h-btn-purple,
    .h-ad-btn-primary,
    .h-domain-btn-primary,
    .h-support-btn-primary,
    .h-billing-btn-primary,
    .hb-btn-primary) {
    background-color: var(--h-button-bg, #072673) !important;
    border-color: var(--h-button-border, #072673) !important;
    color: var(--h-button-text, #ffffff) !important;
}

:where(.btn-primary,
    .h-admin-btn,
    .h-btn-primary,
    .h-btn-purple,
    .h-ad-btn-primary,
    .h-domain-btn-primary,
    .h-support-btn-primary,
    .h-billing-btn-primary,
    .hb-btn-primary):hover,
:where(.btn-primary,
    .h-admin-btn,
    .h-btn-primary,
    .h-btn-purple,
    .h-ad-btn-primary,
    .h-domain-btn-primary,
    .h-support-btn-primary,
    .h-billing-btn-primary,
    .hb-btn-primary):focus {
    background-color: var(--h-button-bg-hover, #051d5a) !important;
    border-color: var(--h-button-bg-hover, #051d5a) !important;
    color: var(--h-button-text-hover, var(--h-button-text, #ffffff)) !important;
    text-decoration: none !important;
}

:where(.btn-primary,
    .h-admin-btn,
    .h-btn-primary,
    .h-btn-purple,
    .h-ad-btn-primary,
    .h-domain-btn-primary,
    .h-support-btn-primary,
    .h-billing-btn-primary,
    .hb-btn-primary):focus-visible {
    box-shadow: 0 0 0 3px var(--h-button-focus, rgba(7, 38, 115, 0.18)) !important;
}

/* Accent consistency for Bootstrap primary variants */
.btn-outline-primary {
    color: var(--h-primary);
    border-color: var(--h-primary);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #ffffff;
    background-color: var(--h-primary);
    border-color: var(--h-primary);
    box-shadow: 0 0 0 3px rgba(7, 38, 115, 0.12);
}
.btn-outline-primary:active {
    background-color: var(--h-primary-active);
    border-color: var(--h-primary-active);
}

.badge-primary,
.bg-primary,
.text-primary {
    /* Ensure all "primary" utilities align with Hostbility accent. */
    --bs-primary: var(--h-primary);
}

/* Layout */
.h-layout-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation (Global) */
.h-sidebar {
    width: 300px; /* Default Full Width */
    background: var(--h-sidebar-bg);
    border-right: 1px solid var(--h-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1050; /* Bootstrap modal level */
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--h-shadow-sm);
}

.h-sidebar-header {
    height: 72px; /* Slightly taller for better spacing */
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid transparent; /* Cleaner look */
}

/* Desktop Logo Styling */
.h-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--h-primary); /* Use primary brand color */
    gap: 12px;
    width: 100%;
    transition: var(--h-transition);
}
.h-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}
.h-logo-full {
    height: 36px; /* Slightly larger */
    width: auto;
    display: block;
}
.h-logo-icon {
    height: 32px;
    width: auto;
    display: none;
}
.h-logo-text {
    font-weight: 600; /* Bolder geometric font style */
    font-size: 20px;
    white-space: nowrap;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.h-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px; /* Inner padding for floating menu feel */
    scrollbar-width: none;
    scrollbar-color: #cbd5e1 transparent;
}
.h-sidebar-nav::-webkit-scrollbar { width: 4px; }
.h-sidebar-nav::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 4px; }

.h-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Default Menu Item (Full Width) */
.h-menu > li {
    width: 100%;
    display: block;
    padding: 0;
}

.h-menu > li > a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 12px 16px; /* Balanced padding */
    color: var(--h-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    gap: 12px;
    border-radius: var(--h-radius);
    transition: var(--h-transition);
    text-align: left;
    line-height: 1.5;
    position: relative;
}

.h-menu .icon {
    font-size: 18px;
    color: var(--h-text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    transition: var(--h-transition);
}
.h-menu .text {
    color: var(--h-text);
    font-size: 15px;
    font-weight: 700 !important;
    font-family: Montserrat;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.2s;
}

.h-menu > li > a:hover {
    background-color: #f0f4ff; /* Light primary tint */
    color: var(--h-primary);
}
.h-menu > li > a:hover .icon {
    color: var(--h-primary);
}

/* Active State for Full Sidebar */
.h-menu > li.active > a {
    background-color: #eef2ff;
    color: var(--h-primary);
    font-weight: 600;
}
.h-menu > li.active > a .icon {
    color: var(--h-primary);
}

/* Sidebar Footer */
.h-sidebar-footer {
    padding: 16px 24px;
    display: flex;
    justify-content: flex-start;
    border-top: 1px solid var(--h-border);
}
.h-sidebar-footer a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    color: var(--h-text-light);
    text-decoration: none;
    font-size: 14px;
    gap: 12px;
    text-align: left;
    width: 100%;
    padding: 8px 0;
    transition: var(--h-transition);
}
.h-sidebar-footer a:hover {
    color: var(--h-primary);
}
.h-sidebar-footer .icon {
    font-size: 18px;
    color: inherit;
    width: 24px;
}

/* =========================================
   Collapsed State (Rail)
   ========================================= */
.h-sidebar.h-sidebar-collapsed {
    width: 80px;
}

/* Logo handling in collapsed state */
.h-sidebar.h-sidebar-collapsed .h-logo {
    justify-content: center;
    padding: 0;
}
.h-sidebar.h-sidebar-collapsed .h-logo-full {
    display: none;
}
.h-sidebar.h-sidebar-collapsed .h-logo-icon {
    display: block;
}
.h-sidebar.h-sidebar-collapsed .h-logo-text {
    display: none;
    opacity: 0;
    width: 0;
}
.h-sidebar.h-sidebar-collapsed .h-sidebar-header {
    justify-content: center;
    padding: 0;
}

/* Centered Items in Rail */
.h-sidebar.h-sidebar-collapsed .h-menu {
    align-items: center;
    padding: 16px 8px;
}
.h-sidebar.h-sidebar-collapsed .h-menu > li {
    width: 100%;
    display: flex;
    justify-content: center;
}
.h-sidebar.h-sidebar-collapsed .h-menu > li > a {
    flex-direction: column; /* Stacked */
    justify-content: center;
    padding: 8px;
    width: auto;
    gap: 8px;
    font-size: 11px;
    text-align: center;
    border-radius: var(--h-radius);
    height: auto;
}
.h-sidebar.h-sidebar-collapsed .h-menu .icon {
    font-size: 25px;
    margin: 0;
    width: auto;
    height: auto;
}
.h-sidebar.h-sidebar-collapsed .h-menu .text {
    font-size: 10px;
    white-space: normal;
    line-height: 1.5;
    display: block; /* Ensure text shows underneath */
    text-align: center;
    width: 100%;
}

/* Active State in Rail */
.h-sidebar.h-sidebar-collapsed .h-menu > li.active > a {
    background-color: #eef2ff;
    color: var(--h-primary);
    width: auto; 
    padding: 8px;
}

/* Footer in Rail */
.h-sidebar.h-sidebar-collapsed .h-sidebar-footer {
    justify-content: center;
    padding: 0px 0;
}
.h-sidebar.h-sidebar-collapsed .h-sidebar-footer a {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 6px;
    font-size: 10px;
    width: 64px;
    padding: 8px 0;
    border-radius: var(--h-radius);
}
.h-sidebar.h-sidebar-collapsed .h-sidebar-footer a:hover {
    background: #f4f5f7;
    width: auto;
    padding: 8px;
}

/* Secondary Sidebar Panel */
.h-sidebar-secondary {
    width: 280px;
    background: #fff;
    border-right: 1px solid var(--h-border);
    position: fixed;
    left: 80px; /* Width of collapsed sidebar */
    top: 0;
    bottom: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: var(--h-shadow-sm);
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.2s ease;
}

.h-sidebar-secondary:hover,
.h-sidebar-secondary:focus-within {
    scrollbar-color: #cfd5df transparent;
}

.h-sidebar-secondary::-webkit-scrollbar {
    width: 5px;
}

.h-sidebar-secondary::-webkit-scrollbar-track {
    background: transparent;
}

.h-sidebar-secondary::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 999px;
    border: 1px solid transparent;
    background-clip: padding-box;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.h-sidebar-secondary:hover::-webkit-scrollbar-thumb,
.h-sidebar-secondary:focus-within::-webkit-scrollbar-thumb {
    background-color: #cfd5df;
    border-color: rgba(255, 255, 255, 0.55);
}

.h-secondary-header {
    padding: 24px;
    border-bottom: none;
}

.h-secondary-menu {
    list-style: none;
    padding: 0 16px 16px 16px;
    margin: 0;
}

.h-secondary-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: var(--h-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 4px;
}
.h-secondary-menu li a:hover {
    background: #f4f5f7;
}
.h-secondary-menu li.active a {
    color: var(--h-text);
    background: #f4f5f7;
    font-weight: 600;
}

.h-secondary-menu .badge {
    background: var(--h-border);
    color: var(--h-text);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Dropdown in Secondary Header */
.h-service-dropdown {
    position: relative;
    margin-bottom: 12px;
}
.h-service-select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--h-border);
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Submenu Styles */
.h-menu .submenu, 
.h-secondary-menu .submenu {
    background-color: #f8fafc; /* Slightly darker than sidebar */
    margin: 4px 0;
    border-radius: var(--h-radius);
    list-style: none;
    padding: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.h-menu .has-submenu.expanded .submenu,
.h-secondary-menu .has-submenu.expanded .submenu {
    max-height: 500px;
}
.h-sidebar.h-sidebar-collapsed .h-menu .submenu {
    display: none !important;
}
.h-sidebar.h-sidebar-collapsed .h-menu .arrow {
    display: none;
}

.h-menu .submenu li a,
.h-secondary-menu .submenu li a {
    display: block;
    padding: 10px 24px 10px 52px;
    font-size: 13px;
    color: var(--h-text-light);
    text-decoration: none;
    transition: color 0.2s;
}
.h-menu .submenu li.active a,
.h-secondary-menu .submenu li.active a {
    color: var(--h-primary);
    font-weight: 600;
    background: transparent;
}
.h-menu .submenu li a:hover,
.h-secondary-menu .submenu li a:hover {
    color: var(--h-primary);
}

/* Arrow Rotation */
.h-menu .arrow i, .h-secondary-menu .arrow {
    transition: transform 0.3s ease;
}
.h-menu .has-submenu.expanded .arrow i, .h-secondary-menu .has-submenu.expanded .arrow {
    transform: rotate(180deg);
}

/* Adjust Main Content */
.h-main-content {
    margin-left: 300px; /* Default Full Sidebar */
    flex: 1;
    min-width: 0;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--h-bg);
}

/* Full Width Content (No Sidebar) */
.h-main-content.h-content-full {
    margin-left: 0;
}

/* When Dual Sidebar is Active */
.h-main-content.h-content-pushed {
    margin-left: 360px; 
}

/* Topbar */
.h-topbar {
    height: 72px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--h-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 1030; /* Sticky top */
    overflow: visible !important;
}

.hb-pagehead {
    padding: 22px 0 18px;
    border-bottom: 1px solid rgba(219, 227, 239, 0.9);
    margin-bottom: 18px;
}

.hb-pagehead__crumbnav {
    margin-bottom: 20px;
}

.hb-pagehead__crumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 600;
    overflow: hidden;
}

.hb-pagehead__crumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.hb-pagehead__home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(7, 38, 115, 0.06);
    color: #072673;
    flex: 0 0 auto;
}

.hb-pagehead__link {
    color: #6b7280;
    text-decoration: none;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hb-pagehead__link:hover,
.hb-pagehead__link:focus {
    color: #072673;
    text-decoration: none;
}

.hb-pagehead__current {
    color: #111827;
    font-weight: 700;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hb-pagehead__sep {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(17, 24, 39, 0.35);
    font-size: 0.75rem;
    flex: 0 0 auto;
}

.hb-pagehead__title {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #111827;
    font-family: var(--h-font-family, 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
}

@media (max-width: 768px) {
    .hb-pagehead {
        padding: 18px 0 14px;
    }
    .hb-pagehead__crumbs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        white-space: nowrap;
        padding-bottom: 2px;
    }
    .hb-pagehead__crumbs::-webkit-scrollbar { display: none; }
    .hb-pagehead__link,
    .hb-pagehead__current {
        max-width: 210px;
    }
    .hb-pagehead__title {        font-weight: 600;
        font-size: 1.5rem;
    }
}

.h-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.h-website-selector {
    position: relative;
    width: 400px;
}
.h-website-selector input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 1px solid var(--h-border);
    border-radius: var(--h-radius);
    font-size: 14px;
    background: #f9fafb;
    transition: var(--h-transition);
}
.h-website-selector input:focus {
    background: #fff;
    border-color: var(--h-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(7, 38, 115, 0.1);
}
.h-website-selector i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--h-text-light);
}
.h-website-selector .shortcut {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid var(--h-border);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--h-text-light);
    font-weight: 600;
}

/* Global search: mobile icon + overlay input */
.h-website-selector .h-search-mobile-toggle {
    display: none;
    margin-left: auto;
}

.h-search-mobile-bar {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--h-border);
    position: sticky;
    top: 0;
    z-index: 2;
}

.h-search-mobile-bar input {
    flex: 1;
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid var(--h-border);
    padding: 10px 12px;
    font-size: 14px;
    background: #f9fafb;
    box-shadow: none;
}

.h-search-mobile-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--h-border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--h-text);
}

.h-search-mobile-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--h-border);
    border-radius: 10px;
    background: #ffffff;
    color: #6b7280;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.h-search-mobile-clear.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.h-search-mobile-clear:hover,
.h-search-mobile-clear:focus {
    color: #072673;
    background: rgba(7, 38, 115, 0.04);
    outline: none;
}

.h-topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Mobile/tablet header alignment + touch targets */
@media (max-width: 1023px) {
    .h-topbar {
        padding-left: 16px;
        padding-right: 16px;
        gap: 12px;
    }

    .h-topbar-left {
        gap: 10px;
    }

    .h-topbar-right {
        gap: 12px;
    }

    .h-topbar-right .h-icon-btn,
    .h-topbar-left .h-mobile-toggle {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .h-topbar-left .h-mobile-toggle {
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 12px;
    }

    .h-topbar,
    .h-topbar-left,
    .h-topbar-right {
        flex-wrap: nowrap;
    }
}

.h-cart-btn {
    position: relative;
}

.h-icon-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--h-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(7, 38, 115, 0.24);
}

.h-btn-refer {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    color: #92400e;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #fcd34d;
    transition: transform 0.2s;
}
.h-btn-refer:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(252, 211, 77, 0.3);
}

.h-icon-btn {
  font-size: 20px;
  color: var(--h-text);
  text-decoration: none !important;
}

/* ==========================================================
   Homepage/Global Overflow Guard
   - Prevent horizontal scrollbar from breakout sections (100vw bands)
   - Keep internal horizontal scrollers working (they manage their own overflow)
   ========================================================== */
html,
body{
  overflow-x:hidden;
  max-width:100%;
}

img,
video,
canvas,
svg,
iframe{
  max-width:100%;
}

/* Avoid long strings/URLs forcing overflow */
.hb-home *,
.hb-bh-hero *{
  overflow-wrap:anywhere;
}
.h-icon-btn:hover {
    background-color: #f4f5f7;
    color: var(--h-primary);
}

/* Dashboard Content */
.h-content-body {
    padding: 32px;
    flex: 1;
}

.h-content-body a:not(.btn):not([class*="h-btn"]):not(.h-service-action):not(.dropdown-item) {
    background: transparent;
    color: var(--h-promo-accent, var(--h-primary, #072673));
}

.h-content-body a:not(.btn):not([class*="h-btn"]):not(.h-service-action):not(.dropdown-item):hover,
.h-content-body a:not(.btn):not([class*="h-btn"]):not(.h-service-action):not(.dropdown-item):focus {
    background: transparent;
    color: var(--h-promo-accent-hover, #061f5f);
    text-decoration: underline;
}

/* Buttons */
.h-btn {
    font-size: 12px;
    padding: 5px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    border: none;
    transition: var(--h-transition);
}

.h-btn-primary { 
    background: var(--h-primary); 
    color: #fff; 
}
.h-btn-primary:hover, .h-btn-primary:focus, .h-btn-primary:active { 
    background: var(--h-primary-hover); 
    color: #fff; 
    box-shadow: 0 4px 12px rgba(7, 38, 115, 0.2);
}

.h-btn-primary-small {
    background: var(--h-primary); 
    color: #fff;
    padding: 6px 16px;
    font-size: 14px;
    border-radius: 4px;
}

.h-btn-secondary {
    background: #ebeef5;
    color: var(--h-secondary);
}

.h-btn-outline {
    background: transparent;
    border: 1px solid var(--h-border);
    color: var(--h-primary);
}
.h-btn-outline:hover {
    background: #f4f5f7;
    color: var(--h-primary-hover);
    border-color: var(--h-border);
}

/* Dashboard Grid Layouts */
.h-dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.h-dashboard-header-card {
    background: #fff;
    border-radius: 16px; /* Modern large radius */
    border: 1px solid var(--h-border);
    box-shadow: var(--h-shadow-sm); 
    margin-bottom: 32px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--h-transition);
}
.h-dashboard-header-card:hover {
    box-shadow: var(--h-shadow-md);
    border-color: #cbd5e1;
}

/* Header Row */
.h-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 32px;
    gap: 32px;
    flex-wrap: wrap;
    background: #fff;
    border-bottom: 1px solid var(--h-border);
}

.h-header-left {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex: 1;
    min-width: 300px;
}

.h-avatar-hex {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    /* Hexagon clip path if image is square, or just style container */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: #2d2d2d; /* Fallback */
}
.h-avatar-hex img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.h-profile-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Greeting & Badge */
.h-profile-greeting {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.h-profile-greeting h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--h-text);
    margin: 0;
}
.h-status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}
.h-status-badge.active {
    background-color: #dee7fe;
    color: var(--h-success);
}
.h-status-badge.inactive {
    background-color: #fff5f5;
    color: var(--h-alert-red);
}

/* Contact Info */
.h-profile-details {
    display: flex;
    flex-direction: column; /* Stacked per visual */
    gap: 4px;
    margin-bottom: 24px;
}
.h-detail-item {
    font-size: 13px;
    color: var(--h-text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}
.h-detail-item i {
    width: 16px;
    text-align: center;
}

/* Widgets */
.h-summary-widgets {
    display: flex;
    gap: 24px;
    margin-top: 0;
}

.h-widget-card {
    background: #fff;
    border: 1px solid #e4e5e7;
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.h-widget-card--due {
    background: #dee7fe; /* Tint for Total Due */
    border-color: #dee7fe;
}

.h-widget-card--due:hover {
    box-shadow: 0 0 10px #dddddd;
}

.h-widget-content {
    display: flex;
    flex-direction: column;
}

.h-amount {
    font-size: 20px;
    font-weight: 600;
    color: var(--h-text);
}

.h-label {
    font-size: 12px;
    color: var(--h-text-light);
}

.h-mini-btn-add {
    width: 24px;
    height: 24px;
    background: #dee7fe;
    color: var(--h-success);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: var(--h-transition);
}
.h-mini-btn-add:hover {
    background: var(--h-success);
    color: #fff;
}

.h-mini-btn-pay {
    background: #072673 !important;
    color: #ffffff !important;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}
.h-mini-btn-pay:hover {
    background: #000000;
    color: #fff;
}

.h-mini-btn-support {
    background: #ffffff;
    border: 1px solid rgba(7, 38, 115, 0.25);
    color: #072673 !important;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.h-mini-btn-support:hover {
    background: #072673;
    color: #ffffff !important;
    border-color: #072673;
}

.h-widget-card--supportpin .h-amount {
    max-width: 155px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.h-widget-card--supportpin {
    /* Ensure no overflow/splitting even in tight flex rows. */
    min-width: 0;
}

.h-widget-card--supportpin .h-widget-content {
    min-width: 0;
}

.h-widget-card--supportpin .hb-supportpin-exp {
    font-weight: 600;
    color: var(--h-text-light);
    margin-left: 6px;
}

/* Sidebar Support PIN (supportprioritypin) */
.h-sidebar-supportpin {
    padding: 10px 14px 0;
}
.h-sidebar-supportpin__inner {
    border: 1px solid rgba(228,229,231,.9);
    border-radius: 16px;
    background: #ffffff;
    padding: 12px 12px;
    box-shadow: 0 14px 34px rgba(15,23,42,.05);
}
.h-sidebar-supportpin__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.h-sidebar-supportpin__label {
    font-size: 12px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -.01em;
    text-transform: uppercase;
    opacity: .9;
}
.h-sidebar-supportpin__exp {
    font-size: 11px;
    font-weight: 600;
    color: rgba(17,24,39,.55);
    white-space: nowrap;
}
.h-sidebar-supportpin__pin {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .12em;
    color: #072673;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.h-sidebar-supportpin__pin-compact {
    display: none;
}
.h-sidebar-supportpin__hint {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(17,24,39,.65);
    line-height: 1.25;
}

/* Collapsed (rail) mode: show compact badge-style pin */
.h-sidebar.h-sidebar-collapsed .h-sidebar-supportpin {
    padding: 10px 10px 0;
}
.h-sidebar.h-sidebar-collapsed .h-sidebar-supportpin__inner {
    padding: 10px 8px;
    border-radius: 14px;
    text-align: center;
}
.h-sidebar.h-sidebar-collapsed .h-sidebar-supportpin__top,
.h-sidebar.h-sidebar-collapsed .h-sidebar-supportpin__hint,
.h-sidebar.h-sidebar-collapsed .h-sidebar-supportpin__pin-full {
    display: none;
}
.h-sidebar.h-sidebar-collapsed .h-sidebar-supportpin__pin-compact {
    display: inline-block;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .12em;
    color: #072673;
    line-height: 1.1;
}

/* Support Ticket Form: Support PIN field */
.h-supportpin-group .hb-supportpin-field {
    position: relative;
}
.h-supportpin-group .hb-supportpin-valid {
    display: none;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(5,150,105,.12);
    color: #059669;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
}
.h-supportpin-group .hb-supportpin-inline-notice {
    display: none;
    margin-top: 8px;
    color: #b45309;
    font-weight: 700;
    font-size: 12px;
}

/* Header Actions */
.h-header-actions {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.h-btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f4f5f7;
    border: none;
    color: var(--h-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--h-transition);
}
.h-btn-icon:hover {
    background: #e4e5e7;
    color: var(--h-text);
}

/* Bottom Navigation */
.h-header-card-bottom {
    padding: 0 32px;
}

.h-secondary-nav {
    width: 100%;
}
.h-nav-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; /* Prevent overflow by wrapping if needed, though single line preferred */
    gap: 20px; /* Equal generous spacing */
    border-bottom: none;
}
.h-nav-tabs li {
    display: flex;
    align-items: center;
}
.h-nav-tabs li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 0; /* Vertical padding */
    color: var(--h-text-light); /* Medium gray #727586 */
    text-decoration: none;
    font-weight: 500;
    font-size: 15px; /* ~14-15px */
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-bottom-color 0.2s;
    white-space: nowrap;
    position: relative;
    margin: 0;
}
.h-nav-tabs li.active a {
    color: #072673; /* Teal/Cyan Active */
    border-bottom-color: #072673;
    font-weight: 600;
}
.h-nav-tabs li a:hover {
    color: #072673;
    background: transparent;
}

/* Badges in Nav */
.h-badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    padding: 0 6px;
    border-radius: 9px; /* Pill */
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}
.h-badge-count.success {
    background-color: #e6fcf5;
    color: #072673; /* Mint/Green */
}
.h-badge-count.warning {
    background-color: #fff8e6;
    color: #f59e0b; /* Orange/Yellow */
}

/* Responsive Navigation */
@media (max-width: 992px) {
    .h-nav-tabs {
        gap: 24px;
        flex-wrap: nowrap; /* Force single line with scroll on tablet/mobile */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px; /* Space for scrollbar or active border */
        scrollbar-width: none; /* Hide scrollbar Firefox */
    }
    .h-nav-tabs::-webkit-scrollbar {
        display: none; /* Hide scrollbar Chrome/Safari */
    }
    .h-nav-tabs li a {
        padding: 16px 0;
        margin-right: 0;
    }
}

/* Stat Cards */
.h-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.h-stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    transition: var(--h-transition);
    box-shadow: var(--h-shadow-sm);
    border: 1px solid var(--h-border);
}
.h-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--h-shadow-lg);
    border-color: #cbd5e1;
}

.h-stat-icon {
    font-size: 28px;
    color: var(--h-primary);
    margin-bottom: 20px;
    background: #eef2ff;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}
.h-stat-value {
    font-size: 36px;
    font-weight: 600;
    color: var(--h-text);
    margin-bottom: 8px;
}

/* Status Cards Row */
.h-status-cards-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.h-status-card {
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-decoration: none;
    color: var(--h-text);
    border-right: 1px solid #e4e5e7;
    transition: background 0.2s;
    position: relative;
}
.h-status-card:last-child {
    border-right: none;
}
.h-status-card:hover {
    background: #f9f9fa;
}

/* Hot Deals Section */
.h-hot-deals-section {
    margin-bottom: 32px;
}

/* =========================================
   NEW HOSTBILITY STYLE DEALS SECTION
   ========================================= */

.h-promo-container {
    background: var(--h-promo-bg);
    border-radius: 16px;
    padding: 24px 32px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(103, 61, 230, 0.1); /* Subtle purple border */
}

/* Header */
.h-promo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0; /* Managed by grid wrapper */
    background: transparent !important;
}

.h-promo-title-group h3 {
    font-size: 30px !important;
    font-weight: 600;
    color: var(--h-text);
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    color: #072673 !important;
}

.h-promo-title-group p {    font-weight: 600;
    font-size: 16px !important;
    color: var(--h-text-light) !important;
    margin: 0;
}

/* Header Actions */
.h-promo-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Tilted Purple Icon */
.h-promo-icon-box {
    width: 48px;
    height: 48px;
    background-color: var(--h-promo-accent) !important;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transform: rotate(10deg);
    box-shadow: 0 4px 12px rgba(103, 61, 230, 0.3);
    position: relative;
}
/* Pixel decoration mockup */
.h-promo-icon-box::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 12px;
    height: 12px;
    background: rgba(103, 61, 230, 0.2);
    z-index: -1;
}

/* Toggle Button */
.h-promo-toggle {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--h-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--h-shadow-sm);
    transition: all 0.2s;
    color: var(--h-text);
}
.h-promo-toggle:hover {
    box-shadow: var(--h-shadow-md);
    transform: translateY(-1px);
}
.h-promo-toggle i {
    transition: transform 0.3s ease;
}

/* Collapsible Wrapper */
.h-promo-wrapper {
    max-height: 1000px; /* Arbitrary large height for animation */
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 1;
    background: transparent !important;
}

/* Collapsed State Class */
.h-promo-container.collapsed .h-promo-wrapper {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}
.h-promo-container.collapsed .h-promo-toggle i {
    transform: rotate(180deg);
}

/* Grid Layout */
.h-promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

/* Deal Card */
.h-promo-card {
    background: rgba(222,231,254,0.8);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    border: 1px solid transparent;
    transition: var(--h-transition);
}
.h-promo-card:hover {
    box-shadow: var(--h-shadow-lg);
    transform: translateY(-4px);
}

.h-card-top {
    margin-bottom: 24px;
}

.h-promo-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--h-text);
    margin: 0 0 8px 0;
}

.h-card-desc {
    font-size: 14px;
    color: var(--h-text-light);
    line-height: 1.5;
    margin: 0;
    min-height: 42px; /* Approx 2 lines */
}

/* Pricing Section */
.h-card-pricing {
    margin-bottom: 24px;
    margin-top: auto; /* Push to bottom if desc is short */
}

.h-price-row-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.h-old-price {
    text-decoration: line-through;
    color: var(--h-text-light);
    font-size: 13px;
    font-weight: 500;
}

.h-discount-badge {
    background: #072673 !important; /* Purple */
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.h-price-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.h-price-label {
    font-size: 12px;
    color: var(--h-text-light);
    margin-bottom: -4px;
}
.h-price-value {
    color: var(--h-text);
    font-size: 32px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.h-price-value strong {
    font-weight: 500; /* Looks cleaner */
}
.h-period {
    font-size: 16px;
    color: var(--h-text-light);
    font-weight: 400;
}

.h-price-subtext {
    font-size: 12px;
    color: var(--h-text-light);
    margin: 4px 0 0 0;
}

/* Button */
.h-btn-outline-primary {
    display: block;
    width: 100%;
    text-align: center;
    border: 1px solid var(--h-promo-accent) !important;
    color: var(--h-promo-accent) !important;
    background: #fff !important;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none !important;
}
.h-btn-outline-primary:hover {
    background: var(--h-promo-accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(103, 61, 230, 0.2);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .h-promo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .h-promo-grid {
        grid-template-columns: 1fr;
    }
    .h-promo-header {
        flex-direction: row; /* Keep toggle accessible */
        align-items: flex-start;
    }
    .h-promo-title-group {        font-weight: 600;
        padding-right: 16px;
    }
    .h-promo-title-group h3 {        font-weight: 600;
        font-size: 18px;
    }
}

/* User Dropdown */
.h-user-profile {
    position: relative;
}
.h-user-profile .dropdown-toggle::after {
    display: none !important;
}

.h-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: #fff;
    border: 1px solid var(--h-border);
    border-radius: 16px;
    box-shadow: var(--h-shadow-lg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0.3s;
    display: flex;
    flex-direction: column;
    margin-top: 16px;
    padding: 0;
    overflow: hidden;
}
.h-user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.h-user-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--h-border);
    background: #f8fafc;
}
.h-user-menu-items {
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.h-user-dropdown .dropdown-item {
    padding: 12px 24px;
    display: flex;
    align-items: center;
    color: #2d2d2d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: background 0.2s;
    background: transparent;
    width: 100%;
    text-align: left;
    gap: 16px;
}
.h-user-dropdown .dropdown-item:hover,
.h-user-dropdown .dropdown-item:focus {
    background-color: #f8f9fa;
    color: #2d2d2d;
    outline: none;
}
.h-user-footer {
    padding: 16px 24px;
    border-top: 1px solid #eee;
}
.h-btn-logout {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 48px;
    background: #fff;
    border: 1px solid var(--h-border);
    border-radius: 12px;
    color: var(--h-primary);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}
.h-btn-logout:hover {
    background: #eef2ff;
    border-color: var(--h-primary);
    color: var(--h-primary);
}

/* =========================================
   RESPONSIVE & MOBILE FIRST STYLES
   ========================================= */

/* Large Desktop (1200px and down) */
@media (max-width: 1200px) {
    .h-dashboard-container { 
        padding: 24px; 
        max-width: 100%;
    }
    .h-stats-grid { 
        grid-template-columns: repeat(3, 1fr); 
    }
}

/* Mobile Toggle Styling */
.h-mobile-toggle {
    display: none; /* Hidden by default (Desktop) */
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    color: var(--h-text-light);
    cursor: pointer;
    transition: var(--h-transition);
}
.h-mobile-toggle:hover, .h-mobile-toggle:focus {
    color: var(--h-primary);
    outline: none;
}

/* Mobile Logo Styling */
.h-mobile-logo {
    display: none; /* Hidden by default */
    align-items: center;
    padding: 0;
}
.h-mobile-logo img {
    height: auto;
    max-height: 40px; /* Prevent distortion */
    max-width: 40px; /* Mobile: compact icon logo */
    width: 40px;
    object-fit: contain;
    display: block;
    transition: width 0.2s ease, max-width 0.2s ease, transform 0.2s ease;
}

/* Desktop/Tablet Landscape (992px and down) */
@media (max-width: 992px) {
    /* Sidebar Mobile State */
    .h-sidebar {
        transform: translateX(-100%);
        width: 80%; /* Cover 80% of screen */
        max-width: 320px; /* Limit max width */
        z-index: 1050; /* Ensure on top */
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .h-sidebar.open {
        transform: translateX(0);
        box-shadow: var(--h-shadow-lg);
    }

    /* Secondary Sidebar Mobile State */
    .h-sidebar-secondary {
        transform: translateX(-100%);
        left: 0;
        width: 80%;
        max-width: 320px;
        z-index: 1049; /* Just below main sidebar or same level? If main is open, secondary might overlay it or be hidden. */
        /* If we want both to open, they might overlap. Usually secondary replaces primary or sits next to it.
           If synchronized closing is requested, assume they might be open together or one replaces other.
           Let's set it to slide in too. */
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .h-sidebar-secondary.open {
        transform: translateX(0);
        box-shadow: var(--h-shadow-lg);
        z-index: 1051;
        left: 75px;
        width: 40%;
    }

    /* Mobile Logo Visibility */
    .h-mobile-logo {
        display: flex;
    }
    
    /* Hide Desktop Logo in Sidebar on Mobile to avoid duplicate */
    .h-sidebar .h-logo {
        display: none;
    }
    
    .h-main-content, 
    .h-main-content.h-content-pushed {
        margin-left: 0;
    }
    
    /* Toggle Button Visibility handled by d-lg-none, but ensure flex layout */
    .h-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .h-sidebar-overlay {
        z-index: 1040; /* Below sidebar, above content */
        background: rgba(0,0,0,0.5); /* Semi-transparent */
    }
    
    .h-sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Grid Adjustments */
    .h-stats-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .h-header-row { 
        padding: 24px; 
    }
    
    .h-status-cards-row { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .h-status-card { 
        border-right: 1px solid #e4e5e7; 
        border-bottom: 1px solid #e4e5e7; 
    }
    .h-status-card:nth-child(2n) {
        border-right: none;
    }
    .h-status-card:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

/* Tablet Portrait (768px and down) */
@media (max-width: 768px) {
    .h-header-left { 
        flex-direction: column; 
        align-items: flex-start; 
        min-width: 100%;
    }
    
    .h-profile-content {
        width: 100%;
    }
    
    .h-summary-widgets {
        flex-wrap: wrap;
        width: 100%;
    }
    
    .h-widget-card { 
        width: 100%; 
        flex: 1 1 auto;
    }
    
    .h-nav-tabs { 
        gap: 16px; 
    }
    
    .h-website-selector {
        width: 100%;
        max-width: 520px;
    }
    
    /* Improve touch targets for links */
    .h-nav-tabs li a {
        padding: 16px 12px;
    }
}

/* Large Mobile (576px and down) */
@media (max-width: 576px) {
    .h-stats-grid { 
        grid-template-columns: 1fr; 
    }
    
    .h-status-cards-row { 
        grid-template-columns: 1fr; 
    }
    
    .h-status-card { 
        border-right: none;
        border-bottom: 1px solid #e4e5e7; 
    }
    .h-status-card:last-child { 
        border-bottom: none; 
    }
    
    .h-content-body {
        padding: 16px;
    }
    
    .h-topbar {
        padding: 0 16px;
        gap: 12px;
        flex-wrap: nowrap;
        transition: padding 0.2s ease;
    }
    
    .h-website-selector {
        /* display: none; Hide search on small screens or use icon only - ENABLED NOW */
        display: block;
        width: auto;
        max-width: none;
    }
    
    .h-topbar-left {
        width: auto;
        flex: 1;
        min-width: 0;
        padding-right: 0; /* Prevent pushing icons off-screen */
    }

    .h-topbar-right {
        gap: 10px;
        flex-shrink: 0;
    }

    .h-search-shortcuts {
        display: none;
    }

    .h-website-selector input {
        padding-right: 12px;
    }

    .h-icon-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .h-icon-badge {
        top: 0px;
        right: 0px;
        min-width: 16px;
        height: 16px;
        font-size: 10px;
    }
    
    /* Typography Scaling */
    .h-profile-greeting h2 {
        font-size: 24px;
    }
    .h-stat-value {
        font-size: 28px;
    }
    
    /* Touch Targets: Min 48px */
    .h-btn, 
    .h-icon-btn, 
    .h-menu a, 
    .h-secondary-menu a,
    .dropdown-item,
    .h-btn-logout {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
}

/* Small Mobile (320px and down) */
@media (max-width: 320px) {
    .h-header-row { 
        padding: 16px; 
    }
    
    h1, .h-profile-greeting h2 { 
        font-size: 20px; 
    }
    
    .h-stat-card {
        padding: 16px;
    }
}

/* Overlay */
.h-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
.h-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   WORDPRESS SECURITY PAGE STYLES
   ========================================= */

/* Status Card */
.h-status-card {
    border-radius: 8px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.h-status-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
}
.h-status-icon {
    font-size: 24px;
    color: #16a34a;
}
.h-status-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--h-text);
}
.h-status-text {
    color: var(--h-text-light);
    margin: 0;
    font-size: 14px;
}

/* Auto Update Cards */
.h-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--h-text);
    margin-bottom: 16px;
}
.h-autoupdate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.h-autoupdate-card {
    background: #fff;
    border: 1px solid var(--h-border);
    border-radius: 8px;
    padding: 24px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    display: flex;
    gap: 12px;
}
.h-autoupdate-card input[type="radio"] {
    margin-top: 4px;
}
.h-autoupdate-card.selected {
    border-color: var(--h-promo-accent);
    box-shadow: 0 0 0 1px var(--h-promo-accent);
}
.h-card-content {
    flex: 1;
}
.h-card-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--h-text);
}
.h-badge-rec {
    background: #f4f5ff;
    color: var(--h-promo-accent);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.h-card-desc {
    color: var(--h-text-light);
    font-size: 14px;
    margin: 8px 0 0 0;
    line-height: 1.5;
}

/* Tables */
.h-table-container {
    background: #fff;
    border: 1px solid var(--h-border);
    border-radius: 8px;
    overflow: hidden;
}
.h-table-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--h-border);
}
.h-search-wrapper {
    position: relative;
    max-width: 100%;
}
.h-search-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--h-text-light);
}
.h-search-input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid var(--h-border);
    border-radius: 4px;
    font-size: 14px;
}
.h-modern-table {
    width: 100%;
    border-collapse: collapse;
}
.h-modern-table th {
    padding: 12px 24px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: var(--h-text);
    border-bottom: 1px solid var(--h-border);
    background: #fcfcfc;
}
.h-modern-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--h-border);
    vertical-align: middle;
}
.h-modern-table tr:last-child td {
    border-bottom: none;
}

/* Security Status */
.h-security-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.h-security-status.secure {
    color: #16a34a;
}
.h-security-status.vulnerable {
    color: #ef4444;
}
.h-badge-active {
    background: #e6fcf5;
    color: #072673;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 8px;
    text-transform: uppercase;
}

/* Actions */
.h-btn-icon-trash {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.h-btn-icon-trash:hover {
    opacity: 1;
}

/* Small Switch */
.h-switch-sm {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    margin-bottom: 0;
}
.h-switch-sm input {
    opacity: 0;
    width: 0;
    height: 0;
}
.h-slider-sm {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}
.h-slider-sm:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
}
input:checked + .h-slider-sm {
    background-color: var(--h-promo-accent);
}
input:checked + .h-slider-sm:before {
    transform: translateX(16px);
}
.h-slider-sm.round {
    border-radius: 20px;
}
.h-slider-sm.round:before {
    border-radius: 50%;
}

/* Table Footer */
.h-table-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--h-border);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    font-size: 13px;
}
.h-page-select {
    border: 1px solid var(--h-border);
    border-radius: 4px;
    padding: 4px 8px;
}
.h-pagination-controls {
    display: flex;
    gap: 8px;
}
.h-page-btn {
    background: #fff;
    border: 1px solid var(--h-border);
    border-radius: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--h-text);
}
.h-page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9fafb;
}

/* Responsive */
@media (max-width: 768px) {
    .h-autoupdate-grid {
        grid-template-columns: 1fr;
    }
    .h-table-responsive {
        overflow-x: auto;
    }
    .h-modern-table th, .h-modern-table td {
        white-space: nowrap;
    }
}

.h-wordpress-grid {
	    display: grid;
	    grid-template-columns: 1fr 1fr;
	    gap: 32px;
}

/* Page Speed (PageSpeed Insights) */
#hbPageSpeedRoot .h-panel-card {
    border-radius: 16px;
}

#hbPageSpeedRoot .h-panel-header {
    font-weight: 600;
}

#hbPageSpeedRoot .h-panel-body p {
    line-height: 1.5;
}

#hbPageSpeedRoot .hb-ps-device-controls .custom-control-label {
    font-weight: 600;
}

#hbPageSpeedRoot .hb-ps-form {
    width: 100%;
    margin: 0 auto;
}

#hbPageSpeedRoot .hb-ps-actions {
    width: 100%;
    justify-content: center;
}

#hbPageSpeedRoot .hb-ps-actions .btn {
    border-radius: 12px;
}

#hbPageSpeedRoot .hb-ps-actions .btn.disabled,
#hbPageSpeedRoot .hb-ps-actions a[aria-disabled="true"] {
    pointer-events: none;
}

@media (max-width: 575px) {
    #hbPageSpeedRoot .hb-ps-actions .btn,
    #hbPageSpeedRoot .hb-ps-actions a.btn {
        flex: 1 1 auto;
        min-width: 140px;
    }
}

/* WordPress Overview (Hostbility-like) */
.h-wp-topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 8px;
}
.h-wp-update-btn {
    border: none;
    background: transparent;
    color: var(--h-promo-accent);
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    cursor: pointer;
}
.h-wp-update-btn:hover {
    color: var(--h-promo-accent-hover);
}
.h-wp-update-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.h-wp-site-card {
    background: #fff;
    border: 1px solid var(--h-border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--h-shadow-sm);
}
select.h-wp-site-select {
    width: 100%;
    border: 1px solid var(--h-border);
    border-radius: 12px;
    padding: 16px 48px 16px 18px;
    font-size: 16px;
    font-weight: 600;
    color: var(--h-text);
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20'%3E%3Cpath fill='%236b7280' d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px 14px;
    outline: none;
    cursor: pointer;
}
select.h-wp-site-select:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    background-color: #f9fafb;
}
select.h-wp-site-select:focus {
    border-color: rgba(7, 38, 115, 0.35);
    box-shadow: 0 0 0 3px rgba(7, 38, 115, 0.12);
}

/* jQuery Nice Select wrapper (used on logged-in pages via templates/hostbility_theme/js/custom.js) */
.nice-select.h-wp-site-select {
    width: 100%;
    float: none;
    display: block;
    background-color: #fff;
    border: 1px solid var(--h-border);
    border-radius: 12px;
    padding: 16px 48px 16px 18px;
    height: auto;
    line-height: 1.2;
    font-size: 16px;
    font-weight: 600;
    color: var(--h-text);
    white-space: nowrap;
    background-image: none;
}
.nice-select.h-wp-site-select .current {
    display: flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    min-height: inherit;
    height: 100%;
}
.nice-select {
    display: flex;
    align-items: center;
}
.nice-select .current {
  display: flex;
  align-items: center;
  height: 100%;
  line-height: 1.35;
}

.hb-product-card__cta:hover {
  background: aliceblue;
}

.h-domain-page .h-domain-btn-primary,
.h-domain-page .h-domain-btn-primary:hover,
.h-domain-page .h-domain-btn-primary:focus {
  border: 0;
  background: #072673;
  color: #ffffff !important;
  box-shadow: 0 14px 28px rgba(7, 38, 115, 0.18);
  text-decoration: none;
}
.nice-select.open {
    z-index: 1110;
}
.nice-select .list {
    z-index: 1111 !important;
}
.hb-upgrade-page .nice-select .list {
    z-index: 9 !important;
}
.nice-select.h-wp-site-select:after {
    right: 18px;
    border-color: #6b7280;
}
.nice-select.h-wp-site-select .list {
    width: 100%;
    max-height: 280px;
    overflow-y: auto;
    border-radius: 12px;
    z-index: 1000;
}
.dropdown.show,
.dropup.show,
.dropright.show,
.dropleft.show,
.btn-group.show,
.show > .dropdown-toggle,
.h-service-select-wrapper.open {
    z-index: 1110;
}
.dropdown-menu,
.h-dropdown-menu,
.h-service-dropdown-menu {
    z-index: 1111 !important;
}
.select2-container--open,
.select2-dropdown,
.bootstrap-select .dropdown-menu,
.choices__list--dropdown,
.choices__list[aria-expanded="true"] {
    z-index: 1111 !important;
}
.h-billing-card,
.h-account-card,
.h-support-card,
.h-domain-card,
.h-modern-card,
.h-panel-card {
    overflow: visible !important;
}
.h-billing-card,
.h-account-card,
.h-support-card,
.h-domain-card,
.h-modern-card,
.h-panel-card,
.dropdown,
.dropup,
.dropright,
.dropleft,
.btn-group,
.nice-select,
.h-service-select-wrapper {
    position: relative;
}
@media (max-width: 768px) {
    .h-modern-table tbody tr,
    .cpanel-zone-table tbody tr,
    .h-subdomain-container .h-sd-table tbody tr,
    .h-ssl-table tbody tr {
        overflow: visible !important;
    }
}
.nice-select.h-wp-site-select .option {
    list-style: none;
    padding-left: 18px;
    padding-right: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Selector Card */
.h-website-selector-card {
    background: #fff;
    border: 1px solid var(--h-border);
    border-radius: 8px;
    padding: 12px;
}
.h-form-select {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: var(--h-text);
    outline: none;
    cursor: pointer;
}

/* Panel Lists */
.h-panel-body-list {
    padding: 0;
}
.h-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--h-border);
}
.h-list-item:last-child {
    border-bottom: none;
}

.h-item-title {
    font-weight: 600;
    color: var(--h-text);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.h-item-desc {
    font-size: 13px;
    color: var(--h-text-light);
}

/* Toggles */
.h-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.h-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.h-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}
.h-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}
input:checked + .h-slider {
    background-color: var(--h-promo-accent);
}
input:checked + .h-slider:before {
    transform: translateX(20px);
}
.h-slider.round {
    border-radius: 24px;
}
.h-slider.round:before {
    border-radius: 50%;
}

/* Badges & Buttons */
.h-badge-pill-green {
    background: #e6fcf5;
    color: #072673;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.h-badge-pill-red {
    background: #fff5f5;
    color: #ef4444;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.h-badge-pill-purple-light {
    background: #f4f5ff;
    color: var(--h-promo-accent);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.h-btn-pill-purple {
    background: var(--h-promo-accent);
    color: #fff;
    border: none;
    padding: 6px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: background 0.2s;
}
.h-btn-pill-purple:hover {
    background: var(--h-promo-accent-hover);
    color: #fff;
}
.h-btn-pill-purple:disabled {
    background: #e4e5e7;
    color: var(--h-text-light);
    cursor: not-allowed;
}

.h-link-purple {
    color: var(--h-promo-accent);
    font-weight: 600;
    text-decoration: none;
}
button.h-link-purple {
    background: transparent;
    border: 0;
    padding: 0;
    font: inherit;
    line-height: inherit;
}
button.h-link-purple:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(7, 38, 115, 0.12);
    border-radius: 8px;
}
button.h-link-purple:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    text-decoration: none;
}
.h-link-db {
    color: var(--h-promo-accent);
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
}

/* Responsive WP Grid */
@media (max-width: 992px) {
    .h-wordpress-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    select.h-wp-site-select,
    .nice-select.h-wp-site-select {
        font-size: 15px;
        padding: 14px 44px 14px 16px;
    }
}

/* Main Grid Layout */
.h-product-details-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Top Card Header Section */
.h-product-header {
    background: #fff;
    border: 1px solid var(--h-border);
    border-radius: 16px;
    box-shadow: var(--h-shadow-sm);
    overflow: hidden;
}

.h-product-header-top {
    padding: 24px;
    background: #f5f6fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--h-border);
    flex-wrap: wrap;
    gap: 16px;
}

.h-header-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.h-service-logo {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.h-service-details h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.h-service-details .created-date {
    font-size: 12px;
    color: var(--h-text-light);
    margin-top: 4px;
    display: block;
}

.h-admin-btn {
    background: var(--h-button-bg, var(--h-primary));
    color: var(--h-button-text, #fff);
    border: 1px solid var(--h-button-border, var(--h-primary));
    padding: 10px 20px;
    border-radius: var(--hbtc-button-radius, 8px);
    text-decoration: none;
    font-weight: var(--hbtc-button-weight, 600);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: var(--hbtc-button-min-height, 42px);
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.h-admin-btn:hover {
    background: var(--h-button-bg-hover, var(--h-primary-hover));
    border-color: var(--h-button-bg-hover, var(--h-primary-hover));
    color: var(--h-button-text-hover, var(--h-button-text, #fff));
    transform: translateY(-1px);
}

.h-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 24px;
    gap: 24px;
}

.h-product-card {
    border: 1px solid var(--h-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 120px;
    transition: var(--h-transition);
}
.h-product-card:hover {
    box-shadow: var(--h-shadow-md);
    transform: translateY(-2px);
}

.h-card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.h-card-icon {
    font-size: 20px;
    color: var(--h-text);
}
.h-card-chevron {
    color: var(--h-text);
    font-size: 14px;
}

.h-card-title {
    font-weight: 600;
    font-size: 14px;
    margin-top: 12px;
}
.h-card-status {
    font-size: 12px;
    color: var(--h-text-light);
    margin-top: 4px;
}

/* Two Column Layout */
.h-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.h-panel-card {
    background: #fff;
    border: 1px solid var(--h-border);
    border-radius: 16px;
    box-shadow: var(--h-shadow-sm);
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.h-panel-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--h-border);
    font-weight: 700;
    font-size: 16px;
    background: #fff;
    border-radius: 16px 16px 0 0;
}

.h-panel-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Package Domain Specifics */
.h-package-subtitle {    font-weight: 600;
    font-style: italic;
    color: var(--h-text-light);
    font-size: 14px;
    margin-bottom: 8px;
}
.h-package-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--h-text);
}
.h-package-link {
    color: #0070ba; /* Blue link */
    text-decoration: underline;
    font-size: 14px;
    margin-bottom: 24px;
}
.h-btn-visit {
    border: 1px solid var(--h-border);
    background: #fff;
    color: var(--h-text);
    padding: 8px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.h-btn-visit:hover {
    background: #f4f5f7;
}

/* Usage Stats */
.h-usage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 24px;
}
.h-usage-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.h-usage-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 16px;
}
.h-gauge {
    width: 120px;
    height: 60px; /* Semi-circle */
    background: #f0f0f0;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
}
.h-gauge-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #e4e5e7; /* Default empty */
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    transform-origin: bottom center;
    transform: rotate(0deg); /* Rotate to fill */
    transition: transform 0.7s ease, background-color 0.2s ease;
}
.h-gauge-value {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    font-weight: 700;
    font-size: 20px;
    color: var(--h-text);
    transition: color 0.2s ease;
}
.h-usage-caption {
    font-size: 12px;
    color: var(--h-text-light);
}

/* Quick Shortcuts */
.h-shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 24px;
}
.h-shortcut-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    font-weight: 600;
    font-family: Montserrat;
    color: var(--h-text);
    transition: transform 0.2s;
    border: 1px solid #EEEEEE;
    padding: 10px;
    border-radius: 10px;
}
.h-shortcut-item:hover {
    transform: translateY(-2px);
    color: var(--h-primary);
}
.h-shortcut-icon {
    width: 48px;
    height: 48px;
    /* Use background image or font icon */
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.h-shortcut-label {
    font-size: 13px;
    text-align: center;
}

/* Quick Create Email */
.h-email-form {
    display: flex;
    gap: 12px;
    width: 100%;
    align-items: center;
    flex-wrap: wrap;
}
.h-input-group {
    display: flex;
    flex: 1;
    min-width: 200px;
}
.h-input-group input {
    flex: 1;
    border: 1px solid var(--h-border);
    border-right: none;
    border-radius: 4px 0 0 4px;
    padding: 10px 12px;
    background: #f0f4ff; /* Light blue focus bg per image */
}
.h-input-group .h-badge {
    background: #e4e5e7;
    border: 1px solid var(--h-border);
    border-left: none;
    padding: 8px 12px;
    border-radius: 0 4px 4px 0;
    color: var(--h-text-light);
    font-size: 13px;
}
.h-password-input {
    flex: 1;
    min-width: 150px;
    border: 1px solid var(--h-border);
    border-radius: 4px;
    padding: 10px 12px;
    background: #f0f4ff;
}
.h-btn-create {
    background: #3b6d9f; /* Muted blue per image */
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

/* Billing Overview */
.h-billing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    width: 100%;
}
.h-billing-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}
.h-billing-row:last-child {
    border-bottom: none;
}
.h-billing-label {
    font-weight: 500;
    color: var(--h-text);
}
.h-billing-value {
    color: var(--h-text-light);
    text-align: right;
}

/* Domain Transfer (Domain Details > Transfer view) */
.hb-domain-transfer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: 8px 0 28px;
    gap: 14px;
}
.hb-domain-transfer > .alert {
    width: 100%;
    margin: 0;
}
.hb-domain-transfer__card {
    width: 100%;
    max-width: 100%;
    border: 1px solid rgba(17, 24, 39, 0.10);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
    padding: 56px 20px;
    text-align: center;
}
.hb-domain-transfer__icon {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: #072673;
    background: rgba(7, 38, 115, 0.08);
}
.hb-domain-transfer__icon i {
    font-size: 34px;
}
.hb-domain-transfer__title {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111827;
    font-family: var(--h-font-family, 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
}
.hb-domain-transfer__sub {
    margin: 0 auto 22px;
    max-width: 62ch;
    color: rgba(17, 24, 39, 0.7);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 600;
}
.hb-domain-transfer__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.hb-domain-transfer__btn {
    min-height: 44px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    transition: all 0.25s ease-in-out;
    text-decoration: none !important;
}
.hb-domain-transfer__btn--primary {
    background: #072673 !important;
    color: #ffffff !important;
    border: 1px solid rgba(7, 38, 115, 0.25);
    box-shadow: 0 12px 26px rgba(7, 38, 115, 0.12);
}
.hb-domain-transfer__btn--primary:hover,
.hb-domain-transfer__btn--primary:focus {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(7, 38, 115, 0.16);
}
.hb-domain-transfer__form {
    margin: 0;
}
.hb-domain-transfer__btn--link {
    background: transparent;
    border: 0;
    color: #072673;
    padding: 0;
    min-height: auto;
    font-weight: 700;
}
.hb-domain-transfer__btn--link:hover,
.hb-domain-transfer__btn--link:focus {
    text-decoration: underline !important;
    text-underline-offset: 4px;
}
.hb-domain-transfer__hint {
    margin: 18px auto 0;
    max-width: 70ch;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(17, 24, 39, 0.55);
    font-weight: 600;
}
.hb-domain-transfer__steps {
    margin: 14px auto 18px;
    max-width: 70ch;
    padding-left: 0;
    list-style: none;
    color: rgba(17, 24, 39, 0.82);
    font-size: 13px;
    line-height: 1.6;
    font-weight: 600;
}
.hb-domain-transfer__steps li {
    margin: 6px 0;
}
.hb-transfer-wizard {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}
.hb-transfer-wizard li {
    position: relative;
    min-height: 104px;
    border: 1px solid rgba(7, 38, 115, 0.10);
    border-radius: 16px;
    background: #ffffff;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}
.hb-transfer-wizard li.is-active,
.hb-transfer-wizard li.is-complete {
    border-color: rgba(7, 38, 115, 0.32);
    background: linear-gradient(180deg, rgba(7, 38, 115, 0.06), #ffffff);
}
.hb-transfer-wizard span {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: rgba(7, 38, 115, 0.10);
    color: #072673;
    font-size: 13px;
    font-weight: 800;
}
.hb-transfer-wizard li.is-complete span {
    background: #0f9f6e;
    color: #ffffff;
}
.hb-transfer-wizard strong,
.hb-transfer-wizard small {
    display: block;
}
.hb-transfer-wizard strong {
    color: #111827;
    font-size: 14px;
    line-height: 1.25;
}
.hb-transfer-wizard small {
    margin-top: 5px;
    color: rgba(17, 24, 39, 0.62);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 600;
}
.hb-transfer-tabs {
    display: flex;
    gap: 10px;
    margin: 0 0 18px;
    flex-wrap: wrap;
}
.hb-transfer-tab {
    border: 1px solid rgba(7, 38, 115, 0.14);
    background: #ffffff;
    color: #10224d;
    border-radius: 8px;
    min-height: 44px;
    padding: 10px 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.hb-transfer-tab.is-active {
    background: #072673;
    border-color: #072673;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(7, 38, 115, 0.16);
}
.hb-transfer-panel[hidden] {
    display: none !important;
}
.hb-transfer-form {
    max-width: 760px;
    margin: 0 auto;
}
.hb-transfer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}
.hb-transfer-field {
    display: block;
    margin: 0;
    text-align: left;
}
.hb-transfer-field span {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #10224d;
}
.hb-transfer-field__feedback {
    display: block;
    margin-top: 6px;
    color: rgba(17, 24, 39, 0.56);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}
.hb-transfer-field.has-error .form-control {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.12rem rgba(220, 53, 69, 0.12);
}
.hb-transfer-field.has-error .hb-transfer-field__feedback {
    color: #b91c1c;
}
.hb-domain-transfer.is-loading .hb-domain-transfer__btn {
    pointer-events: none;
    opacity: 0.72;
}
.hb-domain-transfer.is-loading .hb-domain-transfer__btn[type="submit"]::after,
.hb-domain-transfer.is-loading button.hb-domain-transfer__btn::after {
    width: 14px;
    height: 14px;
    margin-left: 9px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    border-radius: 999px;
    content: "";
    animation: hb-transfer-spin 0.8s linear infinite;
}
@keyframes hb-transfer-spin {
    to {
        transform: rotate(360deg);
    }
}
@media (min-width: 768px) {
    .hb-domain-transfer__actions {
        flex-direction: column;
    }
}
@media (max-width: 768px) {
    .hb-transfer-wizard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 480px) {
    .hb-domain-transfer__card {
        padding: 44px 14px;
        border-radius: 16px;
    }
    .hb-domain-transfer__title {
        font-size: 22px;
    }
    .hb-domain-transfer__sub {
        font-size: 14px;
    }
    .hb-transfer-tabs,
    .hb-transfer-tab {
        width: 100%;
    }
    .hb-transfer-grid {
        grid-template-columns: 1fr;
    }
    .hb-transfer-wizard {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .h-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .h-shortcuts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .h-content-grid {
        grid-template-columns: 1fr;
    }
    .h-product-header-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .h-admin-btn {
        width: 100%;
        justify-content: center;
    }
    .h-email-form {
        flex-direction: column;
        align-items: stretch;
    }
    .h-billing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .h-product-grid {
        grid-template-columns: 1fr;
    }
    .h-shortcuts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   WEBSITES LIST PAGE STYLES
   ========================================= */

.h-websites-search-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.h-search-input-wrapper {
    position: relative;
    flex: 1;
}

.h-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #727586;
    font-size: 16px;
}

.h-search-field {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 1px solid var(--h-border);
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    transition: all 0.2s;
}
.h-search-field:focus {
    border-color: var(--h-primary);
    box-shadow: 0 0 0 3px rgba(7, 38, 115, 0.1);
    outline: none;
}

.h-search-actions {
    display: flex;
    gap: 8px;
}

.h-btn-icon-outline {
    width: 42px;
    height: 42px;
    background: #fff;
    border: 1px solid var(--h-border);
    border-radius: 8px;
    color: var(--h-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.h-btn-icon-outline:hover {
    background: #f9fafb;
    border-color: #cbd5e1;
}

.h-btn-purple-solid {
    background: var(--h-promo-accent);
    color: #FFFFFF !important;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}
.h-btn-purple-solid:hover {
    background: var(--h-promo-accent-hover);
    color: #fff;
}

.h-btn-icon-dots {
    background: transparent;
    border: none;
    color: #727586;
    font-size: 16px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.h-btn-icon-dots:hover {
    background: #f4f5f7;
    color: var(--h-text);
}

.h-website-list {
    display: flex;
    flex-direction: column;
}

.h-website-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--h-border);
    transition: background 0.2s;
}
.h-website-row:last-child {
    border-bottom: none;
}
.h-website-row:hover {
    background: #fcfcfc;
    z-index: 20; /* Ensure dropdown appears on top of other rows */
}

.h-row-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.h-row-details {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    justify-content: center;
}

.h-detail-item {
    display: inline-block;
    flex-direction: column;
    align-items: flex-start;
}

.h-detail-label {
    font-size: 11px;
    color: var(--h-text-light);
    text-transform: capitalize;
    font-weight: 700;
    margin-bottom: 2px;
}

.h-detail-value {
    font-size: 12px;
    font-weight: 600;
    color: #000000;
    color: var(--h-text);
}

.h-detail-cycle {
    font-size: 12px;
    color: var(--h-text-light);
}

.h-status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}
.h-status-badge.status-active {
    background: #e6fcf5;
    color: #072673;
}
.h-status-badge.status-pending {
    background: #fff8e6;
    color: #f59e0b;
}
.h-status-badge.status-suspended {
    background: #fff5f5;
    color: #ef4444;
}
.h-status-badge.status-terminated, 
.h-status-badge.status-cancelled {
    background: #e4e5e7;
    color: #727586;
}
.h-status-badge.status-inactive,
.h-status-badge.status-expired {
    background: #f3f4f6;
    color: #6b7280;
}
.h-status-badge.status-paid,
.h-status-badge.status-completed {
    background: #e7f8ef;
    color: #0f9f5f;
}
.h-status-badge.status-unpaid,
.h-status-badge.status-overdue,
.h-status-badge.status-due {
    background: #fff4e5;
    color: #f97316;
}
.h-status-badge.status-processing,
.h-status-badge.status-pending-setup,
.h-status-badge.status-pending-transfer {
    background: #eef2ff;
    color: #4f46e5;
}
.h-status-badge.status-grace-period {
    background: #fff8e6;
    color: #f59e0b; /* Same as pending/warning */
}
.h-status-badge.status-redemption-period {
    background: #fff5f5;
    color: #ef4444; /* Same as suspended/danger */
}

.h-wp-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid var(--h-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--h-text);
}

.h-domain-info {
    display: flex;
    flex-direction: column;
}

.h-domain-link {
    font-weight: 600;
    color: var(--h-text);
    font-size: 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.h-domain-link:hover {
    color: var(--h-promo-accent);
}

.h-row-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.h-btn-outline-pill {
    background: #fff;
    border: 1px solid var(--h-border);
    color: var(--h-text);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}
.h-btn-outline-pill:hover {
    border-color: #cbd5e1;
    background: #f9fafb;
    color: var(--h-text);
}

/* New Hostbility Tools Button */
.h-btn-tools {
    background: #fff;
    border: 1px solid #e4e5e7; /* Subtle light gray */
    color: var(--h-promo-accent); /* Purple */
    font-weight: 600; /* Medium weight */
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 50px; /* Pill shape */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    outline: none !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05); /* Subtle shadow */
}

/* Remove Bootstrap default caret */
.h-btn-tools::after {
    display: none !important;
}

/* Hover & Active States */
.h-btn-tools:hover, 
.h-btn-tools:focus,
.h-btn-tools[aria-expanded="true"] {
    border-color: #d5d7e6;
    background: #fff; /* Keep white as per image description */
    box-shadow: 0 0 0 2px rgba(103, 61, 230, 0.1); /* Subtle focus ring */
    color: var(--h-promo-accent);
}

/* Icon Animation */
.h-tools-caret {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.h-btn-tools[aria-expanded="true"] .h-tools-caret {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.h-tools-menu {
    background: #fff;
    border: 1px solid #f0f0f0; /* Very subtle border */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Stronger, softer shadow */
    padding: 8px;
    margin-top: 8px !important; /* Spacing from button */
    min-width: 220px;
    left: auto !important;
    right: 0 !important; /* Default align right */
    z-index: 10000 !important;
}

/* Specific alignment for Tools button dropdown (left aligned) */
.h-tools-dropdown-wrapper .h-tools-menu {
    right: auto !important;
    left: 0 !important;
}

/* Specific alignment for Dots dropdown (right aligned) */
.h-dots-dropdown-wrapper .h-tools-menu {
    right: 0 !important;
    left: auto !important;
    transform: none !important; /* Prevent Bootstrap from overriding with transform */
    top: 100% !important; /* Force it to sit directly below */
    margin-top: 8px !important;
}

/* Dropdown Items */
.h-tools-item {
    padding: 10px 16px; 
    color: var(--h-text);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.h-tools-item:last-child {
    margin-bottom: 0;
}

.h-item-icon {
    width: 20px;
    text-align: center;
    color: var(--h-text-light);
    font-size: 14px;
    transition: color 0.2s;
}

.h-tools-item:hover {
    background-color: var(--h-promo-bg); /* Light purple tint */
    color: var(--h-promo-accent);
    text-decoration: none;
}

.h-tools-item:hover .h-item-icon {
    color: var(--h-promo-accent);
}

.h-tools-item:active {
    background-color: #ebeeff;
}

.h-tools-item.text-danger:hover {
    background-color: #fff5f5;
    color: #dc3545;
}

.h-tools-item.text-danger:hover .h-item-icon {
    color: #dc3545;
}

.text-purple {
    color: var(--h-promo-accent);
}

/* Services management workspace */
.h-services-page {
    --hs-primary: var(--h-promo-accent, #072673);
    --hs-primary-soft: rgba(7, 38, 115, 0.08);
    --hs-ink: var(--h-text, #111827);
    --hs-muted: var(--h-text-light, #6b7280);
    --hs-border: var(--h-border, #e5e7eb);
    --hs-card: #ffffff;
    --hs-bg: #f7f8fb;
    color: var(--hs-ink);
    max-width: 100%;
}

.h-services-page * {
    box-sizing: border-box;
}

.h-services-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    padding: clamp(16px, 2.2vw, 24px);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(7, 38, 115, 0.10), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f6f8ff 100%);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.h-services-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--hs-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.h-services-title {
    margin: 0;
    color: var(--hs-ink);
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.h-services-subtitle {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--hs-muted);
    font-size: 13px;
    line-height: 1.55;
}

.h-services-hero-actions,
.h-services-toolbar-actions,
.h-services-bulk-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.h-services-mobile-filter,
.h-services-filter-close {
    display: none;
}

.h-services-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.h-services-summary-card {
    min-height: 78px;
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
}

.h-services-summary-card span {
    display: block;
    color: var(--hs-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.h-services-summary-card strong {
    display: block;
    margin-top: 6px;
    color: var(--hs-ink);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.h-services-shell {
    display: grid;
    grid-template-columns: minmax(205px, 238px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.h-services-filters {
    position: sticky;
    top: 18px;
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 16px;
    background: var(--hs-card);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.h-services-filter-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.h-services-filter-head h2 {
    margin: 0;
    color: var(--hs-ink);
    font-size: 15px;
    font-weight: 700;
}

.h-services-filter-head p {
    margin: 4px 0 0;
    color: var(--hs-muted);
    font-size: 12px;
}

.h-filter-group {
    padding: 11px 0;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.h-filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--hs-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.h-filter-label i {
    color: var(--hs-primary);
}

.h-filter-chip-grid {
    display: grid;
    gap: 6px;
}

.h-filter-chip,
.h-filter-reset,
.h-services-bulk-actions button,
.h-services-mobile-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    background: #fff;
    color: var(--hs-ink);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.h-filter-chip {
    width: 100%;
    justify-content: flex-start;
    padding: 7px 10px;
}

.h-filter-chip:hover,
.h-filter-chip.is-active,
.h-filter-reset:hover,
.h-services-mobile-filter:hover {
    border-color: color-mix(in srgb, var(--hs-primary) 35%, transparent);
    background: var(--hs-primary-soft);
    color: var(--hs-primary);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.h-filter-chip.is-active i,
.h-filter-chip:hover i {
    color: var(--hs-primary);
}

.h-filter-reset {
    width: 100%;
    margin-top: 8px;
    padding: 9px 12px;
}

.h-services-select {
    width: 100%;
    min-height: 36px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 10px;
    background: #fff;
    color: var(--hs-ink);
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
}

.h-services-main {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.h-services-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
}

.h-services-search {
    position: relative;
    flex: 1 1 auto;
    min-width: 220px;
}

.h-services-view-toggle {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(42px, 1fr));
    gap: 4px;
    padding: 4px;
    border-radius: 14px;
    background: #f3f4f6;
}

.h-services-view-toggle button {
    min-width: 42px;
    min-height: 38px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--hs-muted);
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.h-services-view-toggle button.is-active {
    background: #fff;
    color: var(--hs-primary);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.h-services-bulkbar,
.h-services-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #111827;
    color: #fff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

.h-services-bulkbar[hidden],
.h-services-notice[hidden] {
    display: none;
}

.h-services-bulk-actions button {
    min-height: 36px;
    border-color: rgba(255, 255, 255, 0.20);
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    padding: 8px 12px;
}

.h-services-bulk-actions button:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.h-services-notice {
    justify-content: flex-start;
    background: #eef6ff;
    color: #072673;
}

.h-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    max-width: 100%;
}

.h-services-grid.is-list {
    grid-template-columns: 1fr;
}

.h-service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.055);
    transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease;
    overflow: visible;
    z-index: 1;
}

.h-service-card:hover,
.h-service-card:focus-within {
    border-color: color-mix(in srgb, var(--hs-primary) 24%, rgba(15, 23, 42, 0.07));
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.09);
    transform: translateY(-2px);
    z-index: 20;
}

.h-services-grid.is-list .h-service-card {
    display: grid;
    grid-template-columns: minmax(230px, 1.05fr) minmax(250px, 0.95fr);
    gap: 12px;
    align-items: stretch;
    padding: 12px;
}

.h-service-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.h-service-select-check {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.h-service-select-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.h-service-select-check span {
    width: 20px;
    height: 20px;
    border: 1.5px solid rgba(15, 23, 42, 0.20);
    border-radius: 7px;
    background: #fff;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.h-service-select-check input:checked + span {
    border-color: var(--hs-primary);
    background: var(--hs-primary);
    box-shadow: inset 0 0 0 4px #fff;
}

.h-service-favorite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: #fff;
    color: #9ca3af;
    cursor: pointer;
    transition: transform 180ms ease, color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.h-service-favorite:hover,
.h-service-card.is-favorite .h-service-favorite {
    border-color: rgba(245, 158, 11, 0.35);
    background: #fff7ed;
    color: #f59e0b;
    transform: scale(1.05);
}

.h-service-card.is-favorite .h-service-favorite i {
    font-weight: 900;
}

.h-service-card-body {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.h-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--hs-primary-soft);
    color: var(--hs-primary);
    font-size: 15px;
}

.h-service-identity {
    min-width: 0;
}

.h-service-domain {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
}

.h-service-card .h-product-name {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: var(--hs-muted);
    font-size: 11px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.h-service-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 0;
}

.h-service-metrics div {
    min-width: 0;
    padding: 9px;
    border-radius: 11px;
    background: #f8fafc;
}

.h-service-metrics dt {
    margin: 0 0 5px;
    color: var(--hs-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.h-service-metrics dd {
    margin: 0;
    overflow: hidden;
    color: var(--hs-ink);
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.h-service-metrics small {
    display: block;
    margin-top: 3px;
    color: var(--hs-muted);
    font-size: 10px;
}

.h-service-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.h-service-action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    align-items: stretch;
    min-width: 0;
}

.h-service-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 34px;
    padding: 7px 8px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    background: #fff;
    color: var(--hs-ink);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.h-service-action i {
    flex: 0 0 auto;
    font-size: 0.95em;
}

.h-services-grid:not(.is-list) .h-service-action-row {
    grid-template-columns: 1fr;
    gap: 8px;
}

.h-services-grid:not(.is-list) .h-service-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.h-services-grid:not(.is-list) .h-service-action {
    gap: 7px;
    min-height: 40px;
    padding: 9px 12px;
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
}

.h-services-grid:not(.is-list) .h-service-action i {
    width: 14px;
    min-width: 14px;
    text-align: center;
}

.h-services-grid:not(.is-list) .h-service-more {
    justify-content: stretch;
}

.h-services-grid:not(.is-list) .h-service-more .h-btn-tools {
    width: 100%;
    max-width: none;
    min-height: 40px;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    font-size: 12px;
}

.h-service-action:hover,
.h-service-action:focus {
    border-color: color-mix(in srgb, var(--hs-primary) 34%, transparent);
    background: var(--hs-primary-soft);
    color: var(--hs-primary);
    text-decoration: none;
    transform: translateY(-1px);
}

.h-service-action--primary {
    border-color: var(--hs-primary);
    background: var(--hs-primary);
    color: #ffffff !important;
}

.h-service-action--primary:hover,
.h-service-action--primary:focus {
    background: color-mix(in srgb, var(--hs-primary) 88%, #000);
    color: #ffffff !important;
}

.h-service-action--primary i {
    color: currentColor;
}

.h-service-more {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
    position: relative;
    z-index: 30;
}

.h-service-more.show,
.h-service-more:focus-within,
.h-service-card:has(.h-service-more.show),
.h-service-card.is-dropdown-open {
    z-index: 10050;
}

.h-service-more .h-tools-menu {
    z-index: 10060 !important;
    max-width: min(280px, calc(100vw - 32px));
}

.h-service-more .h-btn-tools {
    min-height: 34px;
    max-width: 124px;
    padding: 7px 10px;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.h-services-grid.is-list .h-service-card-top {
    position: static;
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
    gap: 8px;
    align-self: start;
    padding-top: 2px;
}

.h-services-grid.is-list .h-service-card-body {
    grid-column: 1;
    grid-row: 1;
    padding-left: 58px;
    min-width: 0;
}

.h-services-grid.is-list .h-service-metrics {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.h-services-grid.is-list .h-service-action-row {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(104px, auto);
    gap: 8px;
    min-width: 0;
}

.h-services-grid.is-list .h-service-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-width: 0;
}

.h-services-grid.is-list .h-service-more {
    justify-content: flex-end;
    min-width: 0;
}

.h-services-grid.is-list .h-service-more .h-btn-tools {
    width: 100%;
    padding: 7px 10px;
    font-size: 11px;
    white-space: nowrap;
}

.h-services-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 34px;
    border: 1px dashed rgba(15, 23, 42, 0.12);
    border-radius: 22px;
    background: #fff;
    color: var(--hs-muted);
    text-align: center;
}

.h-services-empty i {
    margin-bottom: 16px;
    color: var(--hs-primary);
    font-size: 34px;
}

.h-services-empty h2 {
    margin: 0 0 8px;
    color: var(--hs-ink);
    font-size: 20px;
    font-weight: 700;
}

.h-services-empty p {
    max-width: 460px;
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.65;
}

.h-services-empty[hidden] {
    display: none;
}

.h-service-card.is-hidden {
    display: none !important;
}

.h-services-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.045);
}

.h-services-pagination[hidden] {
    display: none;
}

.h-services-page-btn,
.h-services-page-numbers button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 10px;
    background: #ffffff;
    color: var(--hs-ink);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.h-services-page-btn:hover,
.h-services-page-numbers button:hover,
.h-services-page-numbers button.is-active {
    border-color: color-mix(in srgb, var(--hs-primary) 35%, transparent);
    background: var(--hs-primary);
    color: #ffffff;
    transform: translateY(-1px);
}

.h-services-page-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
}

.h-services-page-status {
    color: var(--hs-muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.h-services-page-numbers {
    display: inline-flex;
    gap: 6px;
}

@media (max-width: 1199px) {
    .h-services-shell {
        grid-template-columns: 1fr;
    }

    .h-services-filters {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        max-width: 100%;
    }

    .h-services-filter-head,
    .h-filter-reset {
        grid-column: 1 / -1;
    }

    .h-filter-group {
        padding: 12px 0;
    }

    .h-services-grid.is-list .h-service-card {
        grid-template-columns: minmax(220px, 1fr) minmax(250px, 1fr);
        align-items: stretch;
    }

    .h-services-grid.is-list .h-service-card-top,
    .h-services-grid.is-list .h-service-card-body {
        grid-column: 1;
        grid-row: 1;
    }

    .h-services-grid.is-list .h-service-metrics {
        grid-column: 2;
        grid-row: 1;
    }

    .h-services-grid.is-list .h-service-action-row {
        grid-column: 1 / -1;
        grid-row: 2;
        grid-template-columns: minmax(0, 1fr) minmax(104px, auto);
    }

    .h-services-grid.is-list .h-service-actions {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .h-services-grid.is-list .h-service-more {
        justify-content: flex-end;
    }
}

@media (max-width: 1024px) {
    .h-services-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .h-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .h-services-grid.is-list .h-service-card {
        display: flex;
    }

    .h-services-grid.is-list .h-service-card-top {
        position: static;
    }

    .h-services-grid.is-list .h-service-card-body {
        padding-left: 0;
    }

    .h-services-grid.is-list .h-service-metrics,
    .h-services-grid.is-list .h-service-action-row,
    .h-services-grid.is-list .h-service-actions,
    .h-services-grid.is-list .h-service-more {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .h-service-action-row,
    .h-services-grid.is-list .h-service-action-row {
        grid-template-columns: 1fr;
    }

    .h-services-grid.is-list .h-service-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .h-services-grid.is-list .h-service-more {
        justify-content: stretch;
    }

    .h-services-grid.is-list .h-service-more .h-btn-tools {
        width: 100%;
        max-width: none;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .h-services-hero,
    .h-services-toolbar,
    .h-services-bulkbar {
        flex-direction: column;
        align-items: stretch;
    }

    .h-services-hero-actions,
    .h-services-toolbar-actions,
    .h-services-bulk-actions {
        width: 100%;
    }

    .h-services-hero-actions > *,
    .h-services-toolbar-actions > *,
    .h-services-bulk-actions > * {
        flex: 1 1 auto;
    }

    .h-services-mobile-filter {
        display: inline-flex;
        padding: 8px 14px;
    }

    .h-services-summary,
    .h-services-grid {
        grid-template-columns: 1fr;
    }

    .h-services-filters {
        position: fixed;
        inset: 0 0 0 auto;
        z-index: 10050;
        display: block;
        width: min(360px, 92vw);
        max-height: 100vh;
        overflow-y: auto;
        border-radius: 22px 0 0 22px;
        transform: translateX(110%);
        transition: transform 220ms ease;
    }

    .h-services-filters.is-open {
        transform: translateX(0);
    }

    .h-services-filter-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 999px;
        background: #fff;
        color: var(--hs-ink);
    }

    .h-services-toolbar .h-btn-icon-outline {
        min-width: 48px;
        height: 48px;
    }

    .h-services-view-toggle {
        flex: 1 1 auto;
    }

    .h-service-card-body {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .h-service-card-body .h-status-badge {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .h-service-metrics,
    .h-service-actions {
        grid-template-columns: 1fr;
    }

    .h-services-grid:not(.is-list) .h-service-actions {
        grid-template-columns: 1fr;
    }

    .h-services-pagination {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .h-services-page-status {
        order: -1;
        width: 100%;
        text-align: center;
    }

    .h-service-action,
    .h-filter-chip,
    .h-filter-reset {
        min-height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .h-services-page *,
    .h-services-page *::before,
    .h-services-page *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Plan Details Grid */
.h-plan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.h-plan-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.h-plan-card {
    background: #fff;
    border: 1px solid var(--h-border);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
}

.h-card-header {
    padding: 24px;
    background: #fff;
    border-bottom: 1px solid transparent; /* Header looks seamless in image */
}

.h-card-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--h-text);
    margin: 0;
}

.h-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.h-link-accent {
    color: var(--h-promo-accent);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}
.h-link-accent:hover {
    text-decoration: underline;
}

.h-card-body {
    padding: 0 24px 24px 24px;
}

.h-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.h-detail-row:last-child {
    border-bottom: none;
}

.h-detail-label {
    color: var(--h-text-light);
    font-size: 14px;
    font-weight: 400;
}

.h-detail-value {
    color: var(--h-text);
    font-size: 14px;
    font-weight: 400; /* Default weight */
    text-align: right;
}

.h-text-bold {
    font-weight: 700;
    color: #2d2d2d;
}

.h-link-purple {
    color: var(--h-promo-accent);
    text-decoration: none;
    font-weight: 500;
}
.h-link-purple:hover {
    text-decoration: underline;
}

.h-value-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.h-icon-action {
    color: #a0a4b8;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
}
.h-icon-action:hover {
    color: var(--h-promo-accent);
}

.h-label-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.h-icon-info {
    font-size: 12px;
    color: var(--h-text-light);
}

/* Info Box */
.h-info-box {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.h-info-header {
    font-weight: 600;
    font-size: 13px;
    color: var(--h-text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.h-ns-list {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 24px;
}

.h-ns-list li {
    font-size: 13px;
    color: #2d2d2d;
    font-weight: 600;
    margin-bottom: 4px;
    position: relative;
}

.h-ns-list li::before {
    content: "•";
    position: absolute;
    left: -16px;
    color: #2d2d2d;
}

/* Responsive Plan Grid */
@media (max-width: 992px) {
    .h-plan-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   RESOURCE USAGE PAGE STYLES
   ========================================= */

.h-usage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.h-usage-header--resource .h-page-title {
    /* Keep consistent with other pages' header scale */
    font-size: 20px;
    font-weight: 600;
    letter-spacing: normal;
}

.h-usage-header--resource .h-btn-recalc {
    color: var(--h-promo-accent);
    font-weight: 600;
    font-size: 14px;
    gap: 8px;
}

.h-usage-header--resource .h-btn-recalc i {
    color: var(--h-promo-accent);
    font-size: 16px;
}

.h-page-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--h-text);
    margin: 0;
}

.h-btn-recalc {
    color: var(--h-promo-accent);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}
.h-btn-recalc:hover {
    text-decoration: underline;
}

/* Top Donut Cards */
.h-usage-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
    /* Accent for the top usage section, aligned with the theme */
    --hb-usage-accent: var(--h-promo-accent);
    --hb-usage-accent-soft: #f0f1fa;
}

.h-usage-card {
    background: #fff;
    border: 1px solid var(--h-border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.h-card-title-row {    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}
.h-card-title-text {
    font-weight: 600;
    font-size: 16px;
    color: var(--h-text);
}

/* Hostbility-style top cards (Disk and Inodes) */
.h-usage-top-card {
    border-radius: 12px;
    padding: 24px;
    box-shadow: none;
}

.h-usage-top-card .h-card-title-row {    font-weight: 600;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.h-usage-top-card .h-card-title-text {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: normal;
}

.h-usage-top-card .h-icon-info {
    color: var(--h-text-light);
    font-size: 12px;
    margin-left: 6px;
}

.h-usage-top-card .h-header-metrics-group {
    gap: 18px;
}

.h-usage-top-card .h-header-metric .h-metric-val {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
}

.h-usage-top-card .h-header-metric .h-metric-val.purple {
    color: var(--hb-usage-accent);
}

.h-usage-top-card .h-header-metric .h-metric-lbl {
    font-size: 12px;
    color: var(--h-text-light);
    margin-top: 4px;
}

.h-usage-top-card .h-metric-divider {
    height: 38px;
    background: var(--h-border);
    opacity: 1;
}

.h-donut-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.h-usage-top-card .h-donut-layout {
    justify-content: flex-start;
    gap: 44px;
}

/* Hostbility-like animated SVG donut */
.h-hs-donut-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    flex: 0 0 auto;
    transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.h-hs-donut-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.h-hs-donut-track,
.h-hs-donut-progress {
    fill: none;
    stroke-width: 10;
    stroke-linecap: butt;
    transition: stroke-width 180ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.h-hs-donut-track {
    /* Fallbacks ensure the free-space ring is always the lighter tint on pages
       that don't define the resource-usage variables. */
    stroke: var(--hb-usage-accent-soft, #f0f1fa);
}

.h-hs-donut-progress {
    stroke: var(--hb-usage-accent, var(--h-primary, #072673));
    stroke-dasharray: 0 100;
    stroke-dashoffset: 0;
    animation: hb-donut-fill 1.15s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Hostbility-like hover lift + glow */
.h-hs-donut-wrapper:hover,
.h-usage-top-card:hover .h-hs-donut-wrapper {
    transform: translateY(-2px);
}

.h-hs-donut-wrapper:hover .h-hs-donut-track,
.h-hs-donut-wrapper:hover .h-hs-donut-progress,
.h-usage-top-card:hover .h-hs-donut-track,
.h-usage-top-card:hover .h-hs-donut-progress {
    stroke-width: 12;
}

.h-hs-donut-wrapper:hover .h-hs-donut-progress,
.h-usage-top-card:hover .h-hs-donut-progress {
    filter: drop-shadow(0 10px 18px rgba(7, 38, 115, 0.22));
}

.h-hs-donut-wrapper.hb-donut-js .h-hs-donut-progress {
    /* Unified behavior: smoothly transition when --p changes (Used/Total updates). */
    animation: none;
    stroke-dasharray: calc(var(--p) * 1) 100;
    transition: stroke-dasharray var(--hb-donut-duration, 1000ms) cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes hb-donut-fill {
    to { stroke-dasharray: calc(var(--p) * 1) 100; }
}

@media (prefers-reduced-motion: reduce) {
    .h-hs-donut-progress {
        animation: none;
        stroke-dasharray: calc(var(--p) * 1) 100;
    }
    .h-hs-donut-wrapper.hb-donut-js .h-hs-donut-progress {
        transition: none;
    }
}

.h-hs-donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.h-hs-donut-percent {
    font-size: 25px;
    font-weight: 600;
    color: var(--h-text);
    line-height: 1;
}

.h-hs-donut-label {
    font-size: 13px;
    color: var(--h-text-light);
    margin-top: 8px;
}

.h-usage-top-card .h-donut-legend {
    gap: 14px;
}

.h-usage-top-card .h-legend-item {
    font-size: 14px;
    color: var(--h-text);
}

.h-usage-top-card .h-dot {
    width: 12px;
    height: 12px;
}

.h-usage-top-card .h-dot.used { background-color: var(--hb-usage-accent); }
.h-usage-top-card .h-dot.free { background-color: var(--hb-usage-accent-soft); }

/* CSS Donut Chart */
.h-donut-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
}
.h-donut {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /* Default fallback gradient, will be set inline */
    background: conic-gradient(var(--h-promo-accent) 0%, #f4f5ff 0%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.h-donut-inner {
    width: 80%;
    height: 80%;
    background: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.h-donut-percent {
    font-size: 24px;
    font-weight: 700;
    color: var(--h-text);
    line-height: 1;
}
.h-donut-label {
    font-size: 12px;
    color: var(--h-text-light);
    margin-top: 4px;
}

.h-donut-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.h-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--h-text);
}
.h-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.h-dot.used { background-color: var(--h-promo-accent); }
.h-dot.free { background-color: #f4f5ff; }

.h-header-metrics-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.h-header-metric {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 84px;
}

.h-metric-divider {
    width: 1px;
    height: 32px;
    background: var(--h-border);
    opacity: 0.8;
}

.h-usage-metrics {
    display: flex;
    gap: 24px;
}
.h-metric-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.h-metric-val {
    font-size: 16px;
    font-weight: 700;
}
.h-metric-val.purple { color: var(--h-promo-accent); }
.h-metric-lbl {
    font-size: 12px;
    color: var(--h-text-light);
}

/* Time Tabs */
.h-section-header {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--h-text);
}

.h-time-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.h-time-tab {
    padding: 6px 16px;
    background: #fff;
    border: 1px solid var(--h-border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--h-text-light);
    text-decoration: none;
    transition: all 0.2s;
}
.h-time-tab:hover {
    background: #f4f5ff;
    color: var(--h-promo-accent);
    border-color: var(--h-promo-accent);
    text-decoration: none;
}
.h-time-tab.active {
    background: #f4f5ff;
    color: var(--h-promo-accent);
    border-color: var(--h-promo-accent);
    font-weight: 600;
}

/* Resource Cards Grid */
.h-resources-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.h-res-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}
.h-res-title {
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.h-res-stats {
    display: flex;
    gap: 16px;
    text-align: right;
}
.h-res-stat-block {
    display: flex;
    flex-direction: column;
}
.h-res-val {
    font-weight: 700;
    font-size: 14px;
}
.h-res-val.purple { color: var(--h-promo-accent); }
.h-res-lbl {
    font-size: 11px;
    color: var(--h-text-light);
}

/* Line Chart Mockup */
.h-chart-container {
    height: 180px; /* Taller for better visibility */
    position: relative;
    border-left: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin: 0 0 24px 30px; /* More space for Y axis labels */
}
.h-chart-y-labels {
    position: absolute;
    left: -35px; /* Moved further left */
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 10px;
    color: var(--h-text-light);
    text-align: right;
    width: 30px;
    padding-bottom: 6px; /* Align 0 with bottom line */
}
.h-chart-limit-line {
    position: absolute;
    top: 0; /* Limit is at the top */
    left: 0;
    right: 0;
    border-top: 1px dashed #ff6b6b;
    z-index: 1;
    opacity: 0.6;
}
.h-chart-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.h-chart-stroke {
    fill: none;
    stroke: var(--h-promo-accent);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 4px 6px rgba(103, 61, 230, 0.2)); /* Smooth shadow */
}

.h-chart-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 8px;
}
.h-legend-dot {
    width: 12px;
    height: 2px;
    background: var(--h-promo-accent);
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
}
.h-legend-dot.limit {
    background: transparent;
    border-top: 2px dashed #ff6b6b;
    height: 4px;
}

/* Responsive Resource Grid */
@media (max-width: 992px) {
    .h-usage-top-grid,
    .h-resources-grid {
        grid-template-columns: 1fr;
    }
    .h-donut-layout {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .h-usage-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .h-card-title-row {        font-weight: 600;
        flex-direction: column;
        align-items: flex-start;
    }
    .h-header-metrics-group {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }
    .h-header-metric {
        align-items: flex-start;
        min-width: 0;
    }
    .h-donut-layout {
        flex-direction: column;
        align-items: flex-start;
    }
    .h-hs-donut-wrapper {
        width: 170px;
        height: 170px;
    }
    .h-hs-donut-percent {
        font-size: 22px;
    }
    .h-res-header {
        flex-direction: column;
        gap: 12px;
    }
    .h-res-stats {
        text-align: left;
    }
}

/* =========================================
   ENHANCED SIDEBAR SELECTOR
   ========================================= */

.h-service-dropdown-container {
    margin-bottom: 12px;
    position: relative;
}

.h-dropdown-label {
    font-size: 13px;
    color: #6B7280; /* Medium gray */
    margin-bottom: 6px;
    display: block;
    font-weight: 500;
}

.h-service-select-wrapper {
    position: relative;
}

.h-service-select-btn {
    width: 100%;
    padding: 12px 16px; /* Generous padding */
    border: 1px solid #E5E7EB; /* Subtle light gray */
    border-radius: 10px; /* Large rounded corners */
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--h-transition);
}
.h-service-select-btn:hover {
    border-color: #D1D5DB;
}
.h-service-select-btn:focus {
    outline: none;
    border-color: var(--h-promo-accent);
    box-shadow: 0 0 0 3px rgba(103, 61, 230, 0.1);
}

.h-current-value {
    font-weight: 600;
    color: #1F2937; /* Darker gray */
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.h-dropdown-arrow {
    font-size: 12px;
    color: #9CA3AF;
    transition: transform 0.2s ease;
}

/* Dropdown Open State */
.h-service-select-wrapper.open .h-dropdown-arrow {
    transform: rotate(180deg);
}
.h-service-select-wrapper.open .h-service-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.h-service-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    box-shadow: var(--h-shadow-lg);
    margin-top: 8px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.h-dropdown-search-box {
    padding: 12px;
    border-bottom: 1px solid #E5E7EB;
    position: relative;
}
.h-dropdown-search-box i {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 14px;
}
.h-dropdown-search-box input {
    width: 100%;
    padding: 8px 8px 8px 36px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
    color: var(--h-text);
}
.h-dropdown-search-box input:focus {
    border-color: var(--h-promo-accent);
}

.h-service-list-scroll {
    max-height: 240px;
    overflow-y: auto;
    padding: 4px;
}
.h-service-list-scroll::-webkit-scrollbar { width: 4px; }
.h-service-list-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.h-service-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: background 0.2s;
    min-height: 48px; /* Ensure clickable area */
}
.h-service-option:hover {
    background: #F3F4F6;
    text-decoration: none;
    color: #111827;
}
.h-service-option.active {
    background: #F3F4F6;
    color: var(--h-promo-accent);
    font-weight: 600;
}
.h-check-icon {
    color: var(--h-promo-accent);
    font-size: 12px;
}

.h-no-results {
    padding: 16px;
    text-align: center;
    color: #6B7280;
    font-size: 13px;
    display: none;
}

/* Sidebar Menu Search */
.h-website-search-wrapper {
    position: relative;
    margin-bottom: 16px;
}
.h-search-icon {
    position: absolute;
    left: 16px; /* Inside padding */
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 16px;
}
.h-sidebar-search-input {
    width: 100%;
    padding: 12px 16px 12px 48px; /* Ample padding for icon */
    border: 1px solid #E5E7EB;
    border-radius: 10px; /* Large rounded corners */
    font-size: 14px;
    color: var(--h-text);
    transition: all 0.2s;
    background: #fff;
}
.h-sidebar-search-input:focus {
    border-color: var(--h-promo-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(103, 61, 230, 0.1);
}
.h-sidebar-search-input::placeholder {
    color: #9CA3AF;
}

/* SSL Page Specifics */
.h-ssl-search-container {
    position: relative;
    width: 100%;
}
.h-ssl-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    pointer-events: none;
}
.h-ssl-search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    background: #F9FAFB;
    font-size: 14px;
    color: var(--h-text);
    transition: all 0.2s;
}
.h-ssl-search-input:focus {
    background: #fff;
    border-color: var(--h-promo-accent);
    box-shadow: 0 0 0 3px rgba(103, 61, 230, 0.1);
    outline: none;
}

/* Table Enhancements */
.h-table-sort-icon {
    font-size: 10px;
    color: #9CA3AF;
    margin-left: 4px;
    cursor: pointer;
    transition: color 0.2s;
}
.h-table-sort-icon:hover {
    color: var(--h-text);
}

.h-status-icon-active {
    color: #10B981;
    font-size: 16px;
}
.h-status-text {
    color: #4B5563;
    font-weight: 500;
}
#order-standard_cart{
  margin: 0;
  padding: 20px !important;
  font-size: 14px;
  background: #fff;
  border-radius: 20px;
}

.text-dark{font-size: 12px !important;}

/* =========================================
   NOTIFICATION SIDEBAR
   ========================================= */
.h-notification-sidebar {
    width: 320px; /* Desktop Default (>=1024px) */
    background: #fff;
    position: fixed;
    top: 0;
    bottom: 0;
    right: -100%; /* Move completely off-screen */
    z-index: 1060; /* Above mobile overlay (1040) and sidebar (1050) */
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
    display: flex;
    flex-direction: column;
    visibility: hidden; /* Hide from screen readers/focus when closed */
}

.h-notification-sidebar.active {
    right: 0;
    visibility: visible;
}

.h-notification-header {
    background: var(--h-promo-accent); /* Hostbility Purple */
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Icons on right */
    height: 60px;
    flex-shrink: 0;
}

.h-notification-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.h-btn-icon-white {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 0.2s;
    min-width: 48px; /* Touch target */
    min-height: 48px;
}
.h-btn-icon-white:hover {
    opacity: 1;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.h-notification-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.h-notify-item {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    display: flex;
    flex-direction: column;
    gap: 16px; /* Increased vertical gap */
}
.h-notify-item:hover {
    background: #f9fafb;
}
.h-notify-item:active {
    background: #f0f4ff; /* Visual feedback for press */
}

.h-notify-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.h-notify-title {
    font-weight: 600;
    color: var(--h-text);
    font-size: 14px;
}

.h-notify-text {
    font-size: 14px;
    color: var(--h-text);
    line-height: 1.5;
}

.h-notify-meta {
    font-size: 11px;
    color: var(--h-text-light);
    margin-top: 4px;
}

.h-notify-link {
    color: var(--h-promo-accent);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
    padding: 8px 0; /* Increase tap area */
    display: inline-block;
}
.h-notify-link:hover {
    text-decoration: underline;
}

/* Empty State */
.h-notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 32px;
    text-align: center;
    height: 100%;
}

.h-empty-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 8px;
}

.h-empty-text {
    font-size: 14px;
    color: #727586;
    margin: 0;
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .h-notification-sidebar {
        width: 280px;
    }
    .h-notify-item {
        padding: 16px 20px;
    }
}

/* Mobile (<768px) */
@media (max-width: 767px) {
    .h-notification-sidebar {
        width: 90%; /* 90% Width */
        right: -100%; /* Keep hidden offscreen */
    }
    .h-notify-text {
        font-size: 15px; /* Slightly larger for readability */
    }
}

/* Search Input Container */
.h-website-selector {
    position: relative;
    width: min(470px, calc(100vw - 220px));
    max-width: 100%;
    transition: width 0.3s ease;
}

.h-website-selector input {
    width: 100%;
    height: 54px;
    padding: 12px 96px 12px 50px;
    border: 1px solid #dddfe8;
    border-radius: 18px;
    background: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #2F2F2F;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.h-website-selector input:focus {
    border-color: #673DE6;
    box-shadow: 0 0 0 3px rgba(103, 61, 230, 0.1);
    outline: none;
}

.h-website-selector input::placeholder {
    color: #8A8A8A;
    font-weight: 500;
}

/* Search Icon */
.h-website-selector .fa-search {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #727586;
    font-size: 18px;
    pointer-events: none;
}

/* Shortcut Chips */
.h-search-shortcuts {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}
.h-search-shortcut-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 12px;
    background: #f3f4f7;
    color: #4b5563;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Dropdown Container */
.h-search-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #dbe3ef;
    border-radius: 24px;
    box-shadow: 0 24px 56px rgba(7, 38, 115, 0.10), 0 8px 24px rgba(15, 23, 42, 0.06);
    z-index: 1300;
    display: none;
    overflow: hidden;
    padding: 20px 24px 18px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s cubic-bezier(0.2, 0, 0, 1), transform 0.2s cubic-bezier(0.2, 0, 0, 1);
}

/* Notifications dropdown: reuses the search dropdown primitives but anchors to the bell icon. */
.h-topbar-right {
    position: relative;
}

.h-notify-wrapper {
    position: relative;
    display: inline-flex;
}

.h-notify-wrapper .h-notify-dropdown {
    left: auto;
    right: 0;
    width: 520px;
    max-width: min(520px, calc(100vw - 32px));
}

.h-notify-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ef4444;
    border: 2px solid #ffffff;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.28);
    display: none;
    pointer-events: none;
}

.h-notify-indicator.is-active {
    display: block;
}

.h-notify-pill-count {
    margin-left: 8px;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(7, 38, 115, 0.10);
    color: #072673;
    font-size: 11px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.h-notify-pill-count.is-active {
    display: inline-flex;
}

@media (min-width: 1024px) {
    .h-search-dropdown {
        width: 860px;
        left: 0;
        max-width: min(860px, calc(100vw - 32px));
    }
}

.h-search-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Filter Pills */
.h-search-pills {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.h-search-pills::-webkit-scrollbar { display: none; }

.h-search-pill {
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid #dbe3ef;
    background: #f8fafc;
    color: #374151;
    line-height: 1;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.h-search-pill:hover {
    background: #eef4ff;
    border-color: rgba(7, 38, 115, 0.2);
    color: #072673;
}

.h-search-pill.active {
    background: #072673;
    color: #FFFFFF;
    border-color: #072673;
    box-shadow: 0 0 0 3px rgba(7, 38, 115, 0.12);
}

.h-search-content {
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

/* Section Label */
.h-section-label {
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
    padding-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Results List */
.h-search-results-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 500px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
}
.h-search-results-container::-webkit-scrollbar {
    width: 6px;
}
.h-search-results-container::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
}

/* Result Item */
.h-search-result-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 12px;
    padding: 14px 8px;
    border-radius: 16px;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
    cursor: pointer;
    min-height: 72px;
    width: 100%;
    box-sizing: border-box;
}

.h-search-result-item:hover, .h-search-result-item.focused {
    background: rgba(7, 38, 115, 0.04);
    text-decoration: none;
    transform: translateX(1px);
}

.h-search-result-item + .h-search-result-item {
    border-top: 1px solid #f3f4f6;
}

.h-result-icon {
    width: 46px;
    height: 46px;
    background: rgba(7, 38, 115, 0.08);
    border: 1px solid rgba(7, 38, 115, 0.10);
    border-radius: 14px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #072673;
    flex-shrink: 0;
    overflow: hidden;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.h-search-dropdown .h-result-icon > i,
.h-search-dropdown .h-result-chevron > i,
.h-search-loading > i,
.h-search-empty > i {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    line-height: 1;
    color: inherit;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none;
}

.h-search-dropdown .h-result-icon > i {
    font-size: 16px;
}

.h-search-dropdown .h-result-chevron > i {
    font-size: 14px;
}

.h-search-result-item:hover .h-result-icon {
    background: #ffffff;
    color: #072673;
    border-color: rgba(7, 38, 115, 0.18);
}

.h-result-icon--domain {
    background: rgba(7, 38, 115, 0.08);
    color: #072673;
}

.h-result-icon--hosting {
    background: rgba(8, 145, 178, 0.10);
    border-color: rgba(8, 145, 178, 0.16);
    color: #0f766e;
}

.h-result-icon--email {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.18);
    color: #b45309;
}

.h-result-icon--billing {
    background: rgba(22, 163, 74, 0.11);
    border-color: rgba(22, 163, 74, 0.18);
    color: #15803d;
}

.h-result-icon--security {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.18);
    color: #4f46e5;
}

.h-result-icon--dns {
    background: rgba(14, 116, 144, 0.12);
    border-color: rgba(14, 116, 144, 0.18);
    color: #0f766e;
}

.h-result-icon--support {
    background: rgba(217, 70, 239, 0.10);
    border-color: rgba(217, 70, 239, 0.16);
    color: #a21caf;
}

.h-result-icon--account {
    background: rgba(75, 85, 99, 0.10);
    border-color: rgba(75, 85, 99, 0.16);
    color: #374151;
}

.h-result-icon--misc {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.18);
    color: #475569;
}

.h-result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.h-result-title-row {    font-weight: 600;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-bottom: 2px;
}

.h-result-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.h-result-subtitle {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.h-result-chevron {
    color: #072673;
    font-size: 14px;
    margin-left: 4px;
    flex-shrink: 0;
    opacity: 0.8;
}

/* Footer */
.h-search-footer {
    margin-top: 14px;
    font-size: 12px;
    color: #6b7280;
    padding-left: 8px;
    line-height: 1.5;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.h-search-dropdown .h-status-badge {
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 9px;
    line-height: 1;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.h-search-more-row {
    padding: 18px 12px 4px;
    display: flex;
    justify-content: center;
}

.h-search-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    color: #072673;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.h-search-load-more:hover {
    background: #f8fbff;
    border-color: rgba(7, 38, 115, 0.20);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Mobile: collapse search to an icon, open a full overlay on tap */
    .h-website-selector {
        width: auto;
        max-width: none;
    }

    .h-website-selector > i.fa-search {
        display: none;
    }

    .h-website-selector #globalSearchInput,
    .h-website-selector .h-search-shortcuts {
        display: none;
    }

    .h-website-selector .h-search-mobile-toggle {
        display: inline-flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        border: 1px solid #ffffff;
        background: #ffffff;
        color: #072673;
    }

    .h-search-dropdown {
        position: fixed;
        top: 82px;
        left: 16px;
        right: 16px;
        width: auto;
        max-width: none;
        max-height: calc(100vh - 110px);
        border-radius: 20px;
        padding: 18px 16px;
    }

    body.h-mobile-search-open #globalSearchDropdown {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: none;
        border-radius: 0;
        padding: 0;
        z-index: 2000;
        box-shadow: 0 24px 56px rgba(7, 38, 115, 0.12), 0 8px 24px rgba(15, 23, 42, 0.08);
    }

    body.h-mobile-search-open {
        overflow: hidden;
    }

    body.h-mobile-search-open #globalSearchDropdown .h-search-mobile-bar {
        display: flex;
    }

    body.h-mobile-search-open #globalSearchDropdown .h-search-pills {
        margin: 0;
        padding: 14px 16px 10px;
        background: #ffffff;
        border-bottom: 1px solid rgba(219, 227, 239, 0.8);
        position: sticky;
        top: 72px;
        z-index: 1;
    }

    body.h-mobile-search-open #globalSearchDropdown .h-search-content {
        padding: 18px 16px;
    }

    body.h-mobile-search-open #globalSearchDropdown .h-search-footer {
        padding: 14px 16px 18px;
    }
    
    .h-search-pills {
        margin-bottom: 16px;
    }
    
    .h-search-result-item {
        grid-template-columns: 42px minmax(0, 1fr) 16px;
        gap: 10px;
        padding: 12px 4px;
        min-height: 64px;
    }

    .h-result-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 15px;
    }

    .h-result-title {
        font-size: 13px;
    }

    .h-result-subtitle {
        font-size: 11px;
    }

    .h-search-dropdown .h-status-badge {
        max-width: 92px;
    }
}

/* Loading & Empty States */
.h-search-loading, .h-search-empty {
    padding: 28px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.h-search-loading small, .h-search-empty small {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.5;
}

.h-search-loading i {
    font-size: 22px;
    color: #072673;
}

/* =======================================================
   LOGIN PAGE (Hostbility split layout with slider)
   Scoped to body.login-page to avoid affecting other pages.
   ======================================================= */
body.login-page {
    background: #ffffff;
}

.h-login-split {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    grid-template-areas: "left right";
    min-height: 100vh;
    width: 100%;
}

.h-login-left {
    grid-area: left;
    background: #f5f6fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 56px 44px;
    position: relative;
    overflow: hidden;
}

.h-login-left::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(103, 61, 230, 0.12) 0 2px, transparent 3px) 0 0 / 14px 14px,
        radial-gradient(circle at 84% 82%, rgba(103, 61, 230, 0.10) 0 2px, transparent 3px) 0 0 / 16px 16px;
    pointer-events: none;
    opacity: 0.9;
}

.h-login-left-inner {
    position: relative;
    width: min(720px, 100%);
}

.h-login-slider-card {
    background: #ffffff;
    border: 1px solid #d7dbe7;
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 18px 50px rgba(17, 24, 39, 0.10);
}

.h-login-slider-card .carousel-inner {
    border-radius: 14px;
    overflow: hidden;
}

.h-login-slider-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Hide default dots to match screenshot */
.h-login-slider-card .carousel-indicators {
    display: none;
}

.h-login-carousel-control {
    width: 52px;
    opacity: 1;
}

.h-login-carousel-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 24, 39, 0.10);
    color: rgba(17, 24, 39, 0.70);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
}

.h-login-carousel-control:hover .h-login-carousel-btn {
    background: #ffffff;
    color: rgba(17, 24, 39, 0.85);
}

.h-login-support {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 26px;
}

.h-login-support-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(103, 61, 230, 0.10);
    color: #673DE6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.h-login-support-title {
    font-weight: 600;
    color: #111827;
    font-size: 16px;
    margin-bottom: 2px;
}

.h-login-support-desc {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.45;
}

.h-login-right {
    grid-area: right;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 46px;
}

.h-login-form-wrap {
    width: min(520px, 100%);
}

.h-login-logo img {
    max-height: 56px;
    width: auto;
    display: block;
    margin-bottom: 22px;
}

.h-login-subtitle {    font-weight: 600;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 22px;
}

.h-login-label {
    font-weight: 700;
    font-size: 14px;
    color: #111827;
    margin-bottom: 10px;
}

.h-login-input {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    height: auto;
    font-size: 14px;
}

.h-login-input:focus {
    border-color: rgba(7, 38, 115, 0.35);
    box-shadow: 0 0 0 3px rgba(7, 38, 115, 0.12);
}

.h-login-forgot {
    font-weight: 600;
    color: #072673;
    text-decoration: none;
    font-size: 14px;
}
.h-login-forgot:hover {
    text-decoration: underline;
}

.h-login-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 18px;
    color: #6b7280;
    font-size: 13px;
}
.h-login-or::before,
.h-login-or::after {
    content: "";
    height: 1px;
    background: #e5e7eb;
    flex: 1 1 auto;
}

.h-login-remember .custom-control-label {
    color: #111827;
    font-size: 14px;
}

.h-login-btn {
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 15px;
    background: #072673;
    border-color: #072673;
}
.h-login-btn:hover {
    background: #051d5a;
    border-color: #051d5a;
}

.h-login-bottom {
    margin-top: 18px;
    text-align: center;
    color: #111827;
    font-size: 16px;
}
.h-login-bottom a {
    color: #072673;
    text-decoration: none;
    font-weight: 700;
}
.h-login-bottom a:hover {
    text-decoration: underline;
}

/* Responsive: stack (form first), keep slider visible below */
@media (max-width: 992px) {
    .h-login-split {
        grid-template-columns: 1fr;
        grid-template-areas:
            "right"
            "left";
    }
    .h-login-left {
        padding: 28px 20px 30px;
    }
    .h-login-right {
        padding: 38px 20px 24px;
    }
    .h-login-left-inner {
        width: min(640px, 100%);
    }
}

@media (max-width: 576px) {
    .h-login-left {
        padding: 22px 16px 26px;
    }
    .h-login-right {
        padding: 30px 16px 20px;
    }
    .h-login-carousel-control {
        width: 44px;
    }
    .h-login-carousel-btn {
        width: 38px;
        height: 38px;
    }
    .h-login-support {
        margin-top: 18px;
    }
    .h-login-bottom {
        font-size: 14px;
    }
}

/* Store product group pages (e.g. /store/shared-hosting)
   WHMCS uses the Dynamic Store layout (.dynamic-landing-page) for many store slugs.
   Force a clean 3-column card grid to match Hostbility deal-card density and keep it responsive. */
.h-store-dynamic-shell {
    background: var(--h-bg);
    padding: 24px 0;
}

.h-store-dynamic-shell .dynamic-landing-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.dynamic-landing-page {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.dynamic-landing-page .pricing-container {
    max-width: 1200px;
}

/* Match Hot Deals card spacing */
.dynamic-landing-page .pricing-grid {
    gap: 24px !important;
}

/* Desktop: 3 columns */
@media (min-width: 992px) {
    .dynamic-landing-page .pricing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Tablet: 2 columns */
@media (min-width: 576px) and (max-width: 991.98px) {
    .dynamic-landing-page .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Mobile: 1 column */
@media (max-width: 575.98px) {
    .dynamic-landing-page .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
}

/* Card density + typography to blend with hostbility_theme */
.dynamic-landing-page .pricing-card {
    background: rgba(222,231,254,0.8) !important; /* match .h-promo-card */
    border-radius: 12px !important;
    padding: 24px !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
    border: 1px solid transparent !important;
    transition: var(--h-transition);
}

.dynamic-landing-page .pricing-card:hover {
    box-shadow: var(--h-shadow-lg) !important;
    transform: translateY(-4px) !important;
}

.dynamic-landing-page .plan-name {
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: 0;
    color: var(--h-text) !important;
}

.dynamic-landing-page .price-amount {
    font-size: 32px !important;
    font-weight: 500 !important;
    color: var(--h-text) !important;
}

.dynamic-landing-page .plan-description,
.dynamic-landing-page .pricing-subtitle,
.dynamic-landing-page .feature-item {    font-weight: 600;
    font-size: 14px !important;
    line-height: 1.5;
    color: var(--h-text-light) !important;
}

.dynamic-landing-page .plan-button {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    border: 1px solid var(--h-promo-accent) !important;
    color: var(--h-promo-accent) !important;
    background: #fff !important;
    padding: 10px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.dynamic-landing-page .plan-button:hover {
    background: var(--h-promo-accent) !important;
    color: #fff !important;
    transform: none !important;
    box-shadow: 0 4px 12px rgba(103, 61, 230, 0.2) !important;
}

/* Dynamic store product detail pages (e.g. /store/shared-hosting/wp-shared)
   Tighten the Twenty-One dynamic store layout to match hostbility_theme cards,
   typography and spacing in the client dashboard area. */
.h-store-dynamic-shell .dynamic-landing-page {
    font-family: var(--h-font-family, 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif) !important;
    overflow-x: visible;
}

.h-store-dynamic-shell .dynamic-landing-page *,
.h-store-dynamic-shell .dynamic-landing-page *::before,
.h-store-dynamic-shell .dynamic-landing-page *::after {
    box-sizing: border-box !important;
}

.h-store-dynamic-shell .dynamic-landing-page img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Force core layout primitives (prevents class-name collisions with theme CSS) */
.h-store-dynamic-shell .hero-brand { display: flex !important; }
.h-store-dynamic-shell .hero-content { display: block !important; }
.h-store-dynamic-shell .showcase-container { display: grid !important; }
.h-store-dynamic-shell .pricing-grid { display: grid !important; }
.h-store-dynamic-shell .pricing-card { display: flex !important; flex-direction: column !important; }
.h-store-dynamic-shell .features-table-container,
.h-store-dynamic-shell .features-container,
.h-store-dynamic-shell .pricing-container,
.h-store-dynamic-shell .showcase-container,
.h-store-dynamic-shell .hero-content {
    width: 100% !important;
}

.h-store-dynamic-shell .hero-section {
    padding: 22px 0 18px !important;
}

.h-store-dynamic-shell .hero-section::before {
    display: none !important;
}

.h-store-dynamic-shell .hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.h-store-dynamic-shell .hero-brand {
    align-items: stretch !important;
    text-align: left !important;
    gap: 16px !important;
}

.h-store-dynamic-shell .hero-content .hero-text {
    background: #ffffff;
    border: 1px solid var(--h-border, #e4e5e7);
    border-radius: 16px;
    padding: 22px 22px;
    box-shadow: var(--h-shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05));
}

.h-store-dynamic-shell .hero-logo-container {
    margin: 0 0 12px 0 !important;
    padding: 12px 14px !important;
    background: #ffffff !important;
    border: 1px solid var(--h-border, #e4e5e7);
    border-radius: 14px !important;
    box-shadow: var(--h-shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05)) !important;
    max-width: 280px !important;
}

.h-store-dynamic-shell .hero-title {
    font-size: 28px !important;
    font-weight: 600 !important;
    color: var(--h-text, #111827) !important;
    -webkit-text-fill-color: unset !important;
    background: none !important;
}

.h-store-dynamic-shell .hero-subtitle {    font-weight: 600;
    font-size: 15px !important;
    color: var(--h-text-light, #6b7280) !important;
    margin-top: 8px !important;
}

.h-store-dynamic-shell .hero-description {
    font-size: 14px !important;
    color: var(--h-text-light, #6b7280) !important;
    margin-top: 8px !important;
    max-width: 72ch !important;
}

.h-store-dynamic-shell .hero-accent {
    width: 64px !important;
    height: 3px !important;
    margin: 14px 0 0 !important;
    background: var(--h-primary, #072673) !important;
}

.h-store-dynamic-shell .product-showcase {
    padding: 18px 0 22px !important;
}

.h-store-dynamic-shell .showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    gap: 24px !important;
    grid-template-columns: 1.05fr 0.95fr !important;
}

.h-store-dynamic-shell .showcase-title {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: var(--h-text, #111827) !important;
}

.h-store-dynamic-shell .showcase-subtitle,
.h-store-dynamic-shell .showcase-description {    font-weight: 600;
    font-size: 14px !important;
    color: var(--h-text-light, #6b7280) !important;
}

.h-store-dynamic-shell .showcase-image {
    transform: none !important;
    border-radius: 16px !important;
    border: 1px solid var(--h-border, #e4e5e7);
    box-shadow: var(--h-shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05)) !important;
    background: #ffffff !important;
}

.h-store-dynamic-shell .showcase-image:hover {
    transform: translateY(-2px) !important;
}

.h-store-dynamic-shell .features-section,
.h-store-dynamic-shell .features-table-section,
.h-store-dynamic-shell .pricing-section,
.h-store-dynamic-shell .faq-section,
.h-store-dynamic-shell .video-section {
    padding: 18px 0 22px !important;
}

.h-store-dynamic-shell .pricing-title,
.h-store-dynamic-shell .features-title,
.h-store-dynamic-shell .features-table-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: var(--h-text, #111827) !important;
}

.h-store-dynamic-shell .pricing-subtitle,
.h-store-dynamic-shell .features-subtitle,
.h-store-dynamic-shell .features-table-subtitle {    font-weight: 600;
    font-size: 14px !important;
    color: var(--h-text-light, #6b7280) !important;
}

/* CTA buttons inside dynamic store blocks */
.h-store-dynamic-shell .plan-button,
.h-store-dynamic-shell .table-cta-button {
    border-radius: 10px !important;
    border: 1px solid var(--h-primary, #072673) !important;
    color: var(--h-primary, #072673) !important;
    background: #ffffff !important;
    font-weight: 600 !important;
}

.h-store-dynamic-shell .plan-button:hover,
.h-store-dynamic-shell .table-cta-button:hover,
.h-store-dynamic-shell .plan-button:focus,
.h-store-dynamic-shell .table-cta-button:focus {
    background: var(--h-primary, #072673) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 28px rgba(7, 38, 115, 0.18) !important;
}

.h-store-dynamic-shell .pricing-container,
.h-store-dynamic-shell .features-container,
.h-store-dynamic-shell .features-table-container {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
}

/* Pricing grid: consistent card density */
.h-store-dynamic-shell .pricing-grid {
    gap: 24px !important;
    align-items: stretch !important;
    margin-top: 18px !important;
}

@media (min-width: 992px) {
    .h-store-dynamic-shell .pricing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .h-store-dynamic-shell .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 575.98px) {
    .h-store-dynamic-shell .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
}

/* Comparison table: keep readable in dashboard + mobile */
.h-store-dynamic-shell .table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

.h-store-dynamic-shell .comparison-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #ffffff !important;
    border: 1px solid var(--h-border, #e4e5e7) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

.h-store-dynamic-shell .comparison-table th,
.h-store-dynamic-shell .comparison-table td {
    padding: 14px 14px !important;
    border-bottom: 1px solid var(--h-border, #e4e5e7) !important;
    vertical-align: middle !important;
}

.h-store-dynamic-shell .comparison-table thead th {
    background: #f9fafb !important;
    color: #111827 !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
}

.h-store-dynamic-shell .comparison-table .feature-title,
.h-store-dynamic-shell .comparison-table .product-name {
    font-weight: 600 !important;
    color: #111827 !important;
}

.h-store-dynamic-shell .comparison-table .service-price {
    font-weight: 600 !important;
    color: #111827 !important;
}

.h-store-dynamic-shell .comparison-table tr:last-child td,
.h-store-dynamic-shell .comparison-table tr:last-child th {
    border-bottom: 0 !important;
}

@media (max-width: 991.98px) {
    .h-store-dynamic-shell .showcase-container {
        grid-template-columns: 1fr !important;
    }
    .h-store-dynamic-shell .hero-content .hero-text {
        padding: 18px 16px;
    }
}

/* Hostbility dynamic store: domain-register style purchase layout (hosting) */
.hb-store-purchase.h-domain-page {
    padding: 12px 0 26px;
}

.hb-store-purchase .hb-store-purchase-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.hb-store-purchase .hb-store-purchase-head {
    margin-bottom: 18px;
}

.hb-store-purchase .h-domain-title {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    color: var(--h-text, #111827);
}

.hb-store-purchase .h-domain-subtitle {    font-weight: 600;
    margin-top: 10px;
    color: var(--h-text-light, #6b7280);
    font-size: 14px;
    line-height: 1.6;
    max-width: 70ch;
}

.hb-store-purchase .hb-store-purchase-grid {
    margin-top: 4px;
}

.hb-store-purchase .hb-domain-choice {
    display: grid;
    gap: 14px;
}

.hb-store-purchase .hb-domain-choice-card {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 14px;
    padding: 16px 16px;
    border: 1px solid var(--h-border, #e4e5e7);
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
    transition: var(--h-transition, all 0.2s ease);
}

.hb-store-purchase .hb-domain-choice-card.is-active {
    border-color: rgba(7, 38, 115, 0.35);
    box-shadow: 0 14px 28px rgba(7, 38, 115, 0.10);
    transform: translateY(-1px);
}

.hb-store-purchase .hb-domain-choice-radio {
    margin-top: 3px;
}

.hb-store-purchase .hb-domain-choice-title {
    display: block;
    font-weight: 600;
    color: #111827;
    font-size: 15px;
}

.hb-store-purchase .hb-domain-choice-copy {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

.hb-store-purchase .hb-domain-choice-fields {
    display: block;
    margin-top: 12px;
}

.hb-store-purchase .hb-domain-input-group {
    display: grid;
    grid-template-columns: 56px 1fr 120px;
    gap: 10px;
    align-items: center;
}

.hb-store-purchase .hb-domain-input-prefix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    border-radius: 10px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-weight: 600;
    font-size: 13px;
}

.hb-store-purchase .h-domain-form-control {
    min-height: 46px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: none;
    color: #111827;
    font-size: 14px;
    padding: 10px 12px;
    background: #ffffff;
}

.hb-store-purchase .hb-domain-choice-card .hb-domain-input-group .hb-domain-full {
    grid-column: 2 / -1;
}

.hb-store-purchase .hb-store-domain-actions {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.hb-store-purchase .hb-store-domain-submit {
    border-radius: 12px;
    padding: 12px 16px;
    min-height: 46px;
    font-weight: 600;
}

.hb-store-purchase .hb-store-domain-note {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.6;
}

.hb-store-purchase .hb-store-plan-name {
    font-weight: 600;
    font-size: 16px;
    color: #111827;
}

.hb-store-purchase .hb-store-plan-price {
    margin-top: 10px;
    font-weight: 600;
    font-size: 22px;
    color: #072673;
}

.hb-store-purchase .hb-store-plan-desc {
    margin-top: 10px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

.hb-store-purchase .hb-store-plan-bullets {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.hb-store-purchase .hb-store-bullet {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #374151;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.6;
}

.hb-store-purchase .hb-store-bullet i {
    color: #10b981;
    margin-top: 2px;
}

.hb-store-purchase .hb-store-help {
    margin-top: 16px;
}

.hb-store-purchase .hb-store-help-card {
    background: rgba(222, 231, 254, 0.55);
    border: 1px solid rgba(7, 38, 115, 0.12);
    border-radius: 14px;
    padding: 16px 16px;
}

.hb-store-purchase .hb-store-help-title {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

.hb-store-purchase .hb-store-help-copy {
    margin-top: 8px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

.hb-store-purchase .hb-store-help-link {
    display: inline-flex;
    margin-top: 10px;
    font-weight: 600;
    color: #072673;
    text-decoration: none;
}

.hb-store-purchase .hb-store-help-link:hover {
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .hb-store-purchase .hb-domain-input-group {
        grid-template-columns: 56px 1fr;
    }
    .hb-store-purchase .hb-domain-input-group select.hb-domain-tld {
        grid-column: 1 / -1;
    }
}

/* Base domain card styles (used across hostbility_theme domain pages and store purchase flows) */
.h-domain-card {
    background: #ffffff;
    border: 1px solid var(--h-border, #e4e5e7);
    border-radius: 10px;
    box-shadow: var(--h-shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05));
}

.h-domain-card + .h-domain-card {
    margin-top: 0px;
}

.h-domain-card-header {
    padding: 16px 18px;
    border-bottom: 1px solid var(--h-border, #e4e5e7);
    background: #ffffff;
    border-radius: 10px 10px 0 0;
}

.h-domain-card-title {
    font-weight: 600;
    color: #111827;
    font-size: 0.95rem;
}

.h-domain-card-body {
    padding: 18px 18px;
}

/* Hostbility-style dual-tone donut + hover split tooltip (Resource Usage) */
.h-usage-top-grid {
    --hb-usage-accent: var(--h-primary, #072673);
    /* 40% lighter tint of the accent (fallback kept for older browsers) */
    --hb-usage-accent-soft: #f0f1fa;
}
@supports (color: color-mix(in srgb, #000 50%, #fff)) {
    .h-usage-top-grid {
        --hb-usage-accent-soft: color-mix(in srgb, var(--hb-usage-accent) 60%, #ffffff 40%);
    }
}

/* Only apply the split/tooltip interaction to donuts that opt-in via data-hb-donut-kind */
.h-hs-donut-wrapper[data-hb-donut-kind] {
    outline: none;
}

.h-hs-donut-wrapper[data-hb-donut-kind]:focus-visible {
    box-shadow: 0 0 0 3px rgba(7, 38, 115, 0.14);
    border-radius: 16px;
}

.h-hs-donut-wrapper[data-hb-donut-kind] .h-hs-donut-track,
.h-hs-donut-wrapper[data-hb-donut-kind] .h-hs-donut-progress {
    transition: opacity 180ms cubic-bezier(0.2, 0.8, 0.2, 1), stroke-width 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Mini split rings (hidden until hover/focus) */
.h-hs-donut-wrapper[data-hb-donut-kind] .h-hs-donut-mini-track,
.h-hs-donut-wrapper[data-hb-donut-kind] .h-hs-donut-mini-progress {
    fill: none;
    opacity: 0;
    stroke-linecap: butt;
    transition: opacity 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.h-hs-donut-wrapper[data-hb-donut-kind] .h-hs-donut-mini-track--outer {
    /* Fallbacks ensure the free-space ring is always the lighter tint on pages
       that don't define the resource-usage variables. */
    stroke: var(--hb-usage-accent-soft, #f0f1fa);
    stroke-width: 6;
    stroke-dasharray: 100;
}

.h-hs-donut-wrapper[data-hb-donut-kind] .h-hs-donut-mini-progress--outer {
    stroke: var(--hb-usage-accent, var(--h-primary, #072673));
    stroke-width: 6;
    stroke-dasharray: 0 100;
    stroke-dashoffset: 0;
}

.h-hs-donut-wrapper[data-hb-donut-kind] .h-hs-donut-mini-track--inner {
    stroke: color-mix(in srgb, var(--hb-usage-accent-soft) 82%, #ffffff 18%);
    stroke-width: 6;
    stroke-dasharray: 100;
}

.h-hs-donut-wrapper[data-hb-donut-kind] .h-hs-donut-mini-progress--inner {
    stroke: color-mix(in srgb, var(--hb-usage-accent) 78%, #ffffff 22%);
    stroke-width: 6;
    stroke-dasharray: 0 100;
    stroke-dashoffset: 0;
}

/* Keep stroke width stable on hover for the main ring (and fade it out) */
.h-hs-donut-wrapper[data-hb-donut-kind]:hover .h-hs-donut-track,
.h-hs-donut-wrapper[data-hb-donut-kind]:hover .h-hs-donut-progress,
.h-hs-donut-wrapper[data-hb-donut-kind]:focus-visible .h-hs-donut-track,
.h-hs-donut-wrapper[data-hb-donut-kind]:focus-visible .h-hs-donut-progress {
    stroke-width: 10;
    filter: none;
    opacity: 0;
}

.h-hs-donut-wrapper[data-hb-donut-kind]:hover .h-hs-donut-mini-track,
.h-hs-donut-wrapper[data-hb-donut-kind]:hover .h-hs-donut-mini-progress,
.h-hs-donut-wrapper[data-hb-donut-kind]:focus-visible .h-hs-donut-mini-track,
.h-hs-donut-wrapper[data-hb-donut-kind]:focus-visible .h-hs-donut-mini-progress {
    opacity: 1;
}

/* Sync mini progress fill with the same percentage as the main donut */
.h-hs-donut-wrapper[data-hb-donut-kind].hb-donut-js .h-hs-donut-mini-progress--outer,
.h-hs-donut-wrapper[data-hb-donut-kind].hb-donut-js .h-hs-donut-mini-progress--inner {
    stroke-dasharray: calc(var(--p) * 1) 100;
    transition: stroke-dasharray var(--hb-donut-duration, 1000ms) cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
    .h-hs-donut-wrapper[data-hb-donut-kind].hb-donut-js .h-hs-donut-mini-progress--outer,
    .h-hs-donut-wrapper[data-hb-donut-kind].hb-donut-js .h-hs-donut-mini-progress--inner {
        transition: none;
    }
}

/* Tooltip */
.h-hs-donut-wrapper[data-hb-donut-kind] .hb-hs-donut-tooltip {
    position: absolute;
    left: 14px;
    top: 14px;
    right: 14px;
    transform: scale(0.985);
    transform-origin: left top;
    opacity: 0;
    pointer-events: none;
    background: #ffffff;
    border: 1px solid rgba(7, 38, 115, 0.35);
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.10);
    z-index: 5;
    transition: opacity 160ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

/* Keep the tooltip contained within its card so it does not overlap other cards
   or extend beyond the card boundary. */
.h-usage-top-card {
    position: relative;
    overflow: hidden;
}



.h-hs-donut-wrapper[data-hb-donut-kind]:hover .hb-hs-donut-tooltip,
.h-hs-donut-wrapper[data-hb-donut-kind]:focus-visible .hb-hs-donut-tooltip {
    opacity: 1;
    transform: scale(1);
}

.h-hs-tip-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    font-weight: 500;
    font-size: 0.98rem;
    line-height: 1.25;
}

.hb-hs-tip-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--hb-usage-accent);
    flex: 0 0 auto;
}

.hb-hs-tip-value {
    margin-top: 10px;
    font-weight: 600;
    font-size: 1.25rem;
    color: #111827;
    letter-spacing: -0.01em;
}

@media (prefers-contrast: more) {
    .h-hs-donut-wrapper[data-hb-donut-kind] .hb-hs-donut-tooltip {
        border-color: #111827;
        box-shadow: none;
    }
}

@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
    .h-hs-donut-wrapper[data-hb-donut-kind] .h-hs-donut-mini-track--inner {
        /* Fallbacks ensure the free-space ring is always the lighter tint on pages
       that don't define the resource-usage variables. */
    stroke: var(--hb-usage-accent-soft, #f0f1fa);
    }
    .h-hs-donut-wrapper[data-hb-donut-kind] .h-hs-donut-mini-progress--inner {
        stroke: var(--hb-usage-accent, var(--h-primary, #072673));
        opacity: 0.78;
    }
}

/* Responsive donut sizing (Disk/Inodes cards) */
@media (max-width: 768px) {
    .h-usage-top-card .h-donut-layout {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
}

@media (max-width: 576px) {
    .h-usage-top-card .h-hs-donut-wrapper {
        width: 170px;
        height: 170px;
    }
    .h-hs-donut-percent {
        font-size: 22px;
    }
    .h-hs-donut-label {
        font-size: 12px;
    }
    .h-hs-donut-wrapper[data-hb-donut-kind] .hb-hs-donut-tooltip {
        left: 12px;
        right: 12px;
        top: 12px;
        padding: 12px 14px;
    }
    .hb-hs-tip-row {
        font-size: 0.92rem;
    }
    .hb-hs-tip-value {
        font-size: 1.15rem;
    }
}

/* Hostbility Currency Selector styles moved into:
   templates/hostbility_theme/css/hostbility_currency_selector.css
*/
.pt-33, .py-33 {
    padding-top: 3.5rem !important;
}

.pl-10, .px-10 {
    padding-left: 0rem !important;
}

.pr-10, .px-10 {
    padding-right: 0rem !important;
}

/* Safety-net: never render the legacy GDPR/cookie badge if it exists in any cached/legacy template. */
#popuppfirsttime { display: none !important; }
