/* ============================================================
   D11HOST Theme CSS
   Light + Blue modern hosting theme for WHMCS
   ============================================================ */

:root {
    --d11-primary: #2563eb;
    --d11-primary-dark: #1d4ed8;
    --d11-primary-light: #dbeafe;
    --d11-accent: #0ea5e9;
    --d11-cta-bg: #2563eb;
    --d11-heading: #0f172a;
    --d11-text: #334155;
    --d11-muted: #64748b;
    --d11-bg: #f8fafc;
    --d11-card: #ffffff;
    --d11-border: #e2e8f0;
    --d11-radius: 12px;
    --d11-success: #16a34a;
    --d11-danger: #dc2626;
    --d11-warning: #d97706;
    --d11-info: #0ea5e9;
    --d11-shadow: 0 4px 24px rgba(15, 23, 42, .06);
    --d11-shadow-lg: 0 12px 40px rgba(15, 23, 42, .10);
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--d11-bg);
    color: var(--d11-text);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    color: var(--d11-heading);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 .5rem;
}

a { color: var(--d11-primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--d11-primary-dark); text-decoration: none; }

img { max-width: 100%; }

.d11-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.d11-muted { color: var(--d11-muted); }
.d11-link { color: var(--d11-primary); font-weight: 600; }
.d11-ta-center { text-align: center; }
.d11-ta-right { text-align: right; }

/* ============================================================
   Buttons
   ============================================================ */
.d11-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .18s ease;
    text-decoration: none !important;
    white-space: nowrap;
}

.d11-btn-primary {
    background: var(--d11-primary);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, .28);
}
.d11-btn-primary:hover {
    background: var(--d11-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, .35);
}

.d11-btn-outline {
    background: transparent;
    color: var(--d11-primary) !important;
    border-color: var(--d11-primary);
}
.d11-btn-outline:hover { background: var(--d11-primary-light); }

.d11-btn-ghost {
    background: transparent;
    color: var(--d11-text) !important;
    border-color: transparent;
}
.d11-btn-ghost:hover { background: var(--d11-primary-light); color: var(--d11-primary) !important; }

.d11-btn-light {
    background: #fff;
    color: var(--d11-primary) !important;
}
.d11-btn-light:hover { background: #eef2ff; }

.d11-btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 12px; }
.d11-btn-xs { padding: 5px 12px; font-size: 12.5px; border-radius: 8px; }
.d11-btn-block { width: 100%; }

/* ============================================================
   Marketing Header
   ============================================================ */
.d11-header {
    background: #fff;
    border-bottom: 1px solid var(--d11-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 10px rgba(15, 23, 42, .04);
}

.d11-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

.d11-logo { display: inline-flex; align-items: center; text-decoration: none !important; }
.d11-logo-text {
    font-weight: 900;
    font-size: 26px;
    letter-spacing: -.5px;
    color: var(--d11-heading);
}
.d11-logo-highlight { color: var(--d11-primary); }
.d11-logo-img { max-height: 40px; width: auto; }

.d11-nav-list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.d11-nav-item { position: relative; }
.d11-nav-item > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--d11-text);
    font-weight: 600;
    font-size: 14.5px;
}
.d11-nav-item > a:hover { background: #f1f5f9; color: var(--d11-primary); }
.d11-nav-item.active > a { color: var(--d11-primary); }
.d11-caret { font-size: 10px; opacity: .6; }

.d11-dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    min-width: 210px;
    background: #fff;
    border: 1px solid var(--d11-border);
    border-radius: 12px;
    box-shadow: var(--d11-shadow-lg);
    padding: 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .18s ease;
    z-index: 50;
}
.d11-nav-item.has-dropdown:hover .d11-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.d11-dropdown li a {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--d11-text);
    font-weight: 500;
    font-size: 14px;
}
.d11-dropdown li a:hover { background: var(--d11-primary-light); color: var(--d11-primary); }

.d11-dropdown > li { position: relative; }
.d11-dropdown-nested {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 6px;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--d11-border);
    border-radius: 12px;
    box-shadow: var(--d11-shadow-lg);
    padding: 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: all .18s ease;
    z-index: 50;
}
.d11-dropdown li:hover > .d11-dropdown-nested { opacity: 1; visibility: visible; transform: translateX(0); }

.d11-domain-alt { margin-top: 14px; font-size: 13.5px; color: var(--d11-muted); }
.d11-domain-alt a { color: var(--d11-primary); font-weight: 600; }

.d11-header-actions { display: flex; align-items: center; gap: 10px; }

/* Compact Login link (menu style) in header actions (desktop) */
.d11-hdr-login {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--d11-text);
    text-decoration: none;
    white-space: nowrap;
}
.d11-hdr-login:hover { background: #f1f5f9; color: var(--d11-primary); }

.d11-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}
.d11-nav-toggle span { width: 24px; height: 2.5px; background: var(--d11-heading); border-radius: 2px; }

/* Theme (light/dark) toggle button */
.d11-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1.5px solid var(--d11-border);
    background: #fff;
    color: var(--d11-heading);
    cursor: pointer;
    font-size: 15px;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.d11-theme-toggle:hover { border-color: var(--d11-primary); color: var(--d11-primary); }
.d11-theme-toggle .d11-theme-icon-sun { display: none; }
.d11-theme-toggle .d11-theme-icon-moon { display: inline-block; }
html[data-theme="dark"] .d11-theme-toggle { background: #1e293b; border-color: #334155; color: #facc15; }
html[data-theme="dark"] .d11-theme-toggle .d11-theme-icon-moon { display: none; }
html[data-theme="dark"] .d11-theme-toggle .d11-theme-icon-sun { display: inline-block; }

/* User menu + cart */
.d11-user-menu { position: relative; }
.d11-user-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d11-user-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--d11-border);
    border-radius: 12px;
    box-shadow: var(--d11-shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .18s ease;
    z-index: 60;
}
.d11-user-menu:hover .d11-user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.d11-user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--d11-text);
    font-weight: 500;
    font-size: 14px;
}
.d11-user-dropdown a:hover { background: var(--d11-primary-light); color: var(--d11-primary); }
.d11-dropdown-sep { height: 1px; background: var(--d11-border); margin: 6px 0; }

.d11-cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    color: var(--d11-text);
    background: #f1f5f9;
}
.d11-cart-icon:hover { background: var(--d11-primary-light); color: var(--d11-primary); }
.d11-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: var(--d11-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ============================================================
   Hero + Homepage
   ============================================================ */
.d11-hero {
    background:
        radial-gradient(720px 420px at 85% -10%, rgba(14, 165, 233, .18), transparent 60%),
        radial-gradient(640px 420px at -5% 10%, rgba(37, 99, 235, .16), transparent 55%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 84px 0 120px;
    position: relative;
    overflow: hidden;
}
.d11-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 90"><path fill="%23ffffff" d="M0,64L60,58.7C120,53,240,43,360,48C480,53,600,75,720,80C840,85,960,75,1080,64C1200,53,1320,43,1380,37.3L1440,32L1440,90L1380,90C1320,90,1200,90,1080,90C960,90,840,90,720,90C600,90,480,90,360,90C240,90,120,90,60,90L0,90Z"/></svg>');
    background-size: cover;
}

.d11-hero-inner { display: flex; align-items: center; gap: 60px; }
.d11-hero-content { flex: 1 1 55%; }
.d11-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 165, 233, .15);
    border: 1px solid rgba(14, 165, 233, .35);
    color: #7dd3fc;
    padding: 7px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 22px;
}
.d11-hero-title { color: #fff; font-size: 48px; font-weight: 800; letter-spacing: -.75px; line-height: 1.12; }
.d11-text-accent { color: #60a5fa; }
.d11-hero-subtitle { color: #cbd5e1; font-size: 18px; margin: 18px 0 30px; max-width: 540px; }
.d11-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.d11-hero-cta .d11-btn-outline {
    color: #fff !important;
    border-color: rgba(255, 255, 255, .4);
}
.d11-hero-cta .d11-btn-outline:hover { background: rgba(255, 255, 255, .1); color: #fff !important; }

.d11-hero-art { flex: 1 1 45%; display: flex; justify-content: center; }
.d11-hero-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    backdrop-filter: blur(6px);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.d11-hero-card-top {
    display: flex;
    gap: 7px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, .05);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.d11-hero-dot { width: 10px; height: 10px; border-radius: 50%; background: #475569; }
.d11-hero-dot:first-child { background: #f87171; }
.d11-hero-dot:nth-child(2) { background: #fbbf24; }
.d11-hero-dot:nth-child(3) { background: #34d399; }
.d11-hero-card-body { padding: 22px 26px; color: #e2e8f0; }
.d11-hero-perf { display: flex; align-items: center; gap: 10px; font-size: 15px; margin-bottom: 10px; }
.d11-hero-perf i { color: #38bdf8; width: 22px; }
.d11-hero-perf strong { color: #fff; font-size: 20px; margin-right: 4px; }
.d11-hero-bar {
    height: 8px;
    border-radius: 4px;
    background: #334155;
    margin: 14px 0 22px;
    overflow: hidden;
    position: relative;
}
.d11-hero-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 88%;
    background: linear-gradient(90deg, #2563eb, #0ea5e9);
    border-radius: 4px;
    animation: d11-grow 1.6s ease;
}
@keyframes d11-grow { from { width: 0; } to { width: 88%; } }

/* Domain search */
.d11-domain-section { margin-top: -52px; position: relative; z-index: 5; }
.d11-domain-search {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--d11-shadow-lg);
    padding: 28px 32px;
    border: 1px solid var(--d11-border);
}
.d11-domain-search h3 { font-size: 20px; margin-bottom: 16px; }
.d11-domain-input {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: #f8fafc;
    border: 2px solid var(--d11-border);
    border-radius: 12px;
    padding: 8px 12px;
}
.d11-domain-input:focus-within { border-color: var(--d11-primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.d11-domain-input i { color: var(--d11-muted); flex: 0 0 auto; }
.d11-domain-input input {
    flex: 1 1 0;
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 16px;
    color: var(--d11-heading);
    padding: 8px 4px;
}
.d11-domain-input button { flex: 0 0 auto; }
@media (max-width: 560px) {
    .d11-domain-input { row-gap: 10px; }
    .d11-domain-input input { order: 1; flex: 1 1 0; }
    .d11-domain-input button {
        order: 2;
        flex: 1 1 100%;
        justify-content: center;
    }
}
.d11-domain-search { position: relative; }
#d11-domain-result {
    text-align: center;
    background: #fff;
    border: 1px solid var(--d11-border);
    border-radius: var(--d11-radius);
    padding: 24px;
    margin-top: 18px;
    box-shadow: var(--d11-shadow);
}
#d11-domain-result:empty { display: none; }
.d11-domain-status-name {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--d11-heading);
    margin-bottom: 6px;
}
.d11-domain-status-name i { margin-right: 8px; }
.d11-domain-status.is-avail .d11-domain-status-name i { color: #16a34a; }
.d11-domain-status.is-taken .d11-domain-status-name i { color: #dc2626; }
.d11-domain-status.is-invalid .d11-domain-status-name i { color: #f59e0b; }
.d11-domain-status-price { color: var(--d11-muted); margin: 0 0 16px; }
.d11-domain-status-price strong { color: var(--d11-primary-dark); }
.d11-domain-status.is-loading { color: var(--d11-muted); font-weight: 500; }
.d11-domain-status.is-loading strong { color: var(--d11-heading); }
.d11-domain-status.d11-xs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #f8fafc;
    text-align: left;
}
.d11-domain-status.d11-xs .d11-domain-status-name { font-size: 14.5px; margin: 0; }
.d11-domain-status.d11-xs .d11-domain-status-name em { font-style: normal; font-weight: 600; color: var(--d11-muted); margin-left: 6px; }
.d11-domain-status.d11-xs .d11-domain-status-price { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--d11-primary-dark); white-space: nowrap; }
.d11-domain-status.d11-xs.is-avail { background: #f0fdf4; border: 1px solid #bbf7d0; }
.d11-domain-status.d11-xs.is-taken { background: #fef2f2; border: 1px solid #fecaca; }
.d11-domain-status.d11-xs.is-invalid { background: #fffbeb; border: 1px solid #fde68a; }
.d11-domain-more { margin-top: 14px; }
.d11-domain-more > .d11-btn { margin: 4px 6px 0 0; }
.d11-domain-status-alt { color: var(--d11-muted); font-size: 14px; margin: 0 0 12px; }
.d11-domain-alts { margin-top: 12px; text-align: left; }
.d11-domain-tlds { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.d11-domain-tlds span {
    background: var(--d11-primary-light);
    color: var(--d11-primary);
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
}

/* Verdict card (exact searched domain) */
#d11-domain-result { text-align: left; }
.d11-domain-verdict {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border-radius: var(--d11-radius);
    padding: 14px 18px;
    margin-bottom: 18px;
    background: #f8fafc;
    border: 1px solid var(--d11-border);
}
.d11-domain-verdict.is-avail { background: #f0fdf4; border-color: #bbf7d0; }
.d11-domain-verdict.is-taken { background: #fef2f2; border-color: #fecaca; }
.d11-domain-verdict.is-unk   { background: #fffbeb; border-color: #fde68a; }
.d11-dv-main { display: flex; align-items: center; gap: 12px; }
.d11-dv-main > i { font-size: 22px; }
.d11-domain-verdict.is-avail .d11-dv-main > i { color: #16a34a; }
.d11-domain-verdict.is-taken .d11-dv-main > i { color: #dc2626; }
.d11-domain-verdict.is-unk   .d11-dv-main > i { color: #f59e0b; }
.d11-dv-main span { display: block; }
.d11-dv-main strong { display: block; font-size: 17px; color: var(--d11-heading); }
.d11-dv-main em { font-style: normal; font-size: 14px; color: var(--d11-muted); }
.d11-dv-side { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.d11-dv-price { display: block; text-align: right; font-size: 20px; font-weight: 800; color: var(--d11-primary-dark); }
.d11-dv-price em { display: block; font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--d11-muted); }

/* All-extensions table (live from WHMCS suggestions API) */
.d11-domain-all { margin-top: 4px; }
.d11-domain-all h4 { font-size: 15px; color: var(--d11-heading); margin: 0 0 10px; font-weight: 700; }
.d11-domain-all h4 span { font-weight: 500; color: var(--d11-muted); }
.d11-domain-all-note { font-size: 12.5px; color: var(--d11-muted); margin: 10px 0 0; }
.d11-domain-all-note a { color: var(--d11-primary); font-weight: 600; }
.d11-domain-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border: 1px solid var(--d11-border);
    border-bottom: none;
    background: #fff;
}
.d11-domain-row:last-child { border-bottom: 1px solid var(--d11-border); border-radius: 0 0 8px 8px; }
.d11-domain-row:first-child { border-radius: 8px 8px 0 0; }
.d11-domain-row.is-avail { background: #fbfefb; }
.d11-domain-row.is-taken { background: #fefbfb; }
.d11-dr-name strong { font-size: 14.5px; color: var(--d11-heading); }
.d11-dr-price { text-align: right; }
.d11-dr-price strong { font-size: 15px; color: var(--d11-primary-dark); font-weight: 800; white-space: nowrap; }
.d11-dr-price span { display: block; font-size: 11.5px; color: var(--d11-muted); }
.d11-row-na { color: var(--d11-muted); font-size: 13px; }
h4 + .d11-domain-row { border-top: 1px solid var(--d11-border); }
.d11-prd-note { grid-column: 1 / -1; }

/* Status badges */
.d11-badge {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    margin-left: 8px;
    vertical-align: middle;
}
.d11-badge.is-avail { background: #dcfce7; color: #15803d; }
.d11-badge.is-taken { background: #fee2e2; color: #b91c1c; }
.d11-badge.is-unk   { background: #fef3c7; color: #b45309; }

/* Add to cart button + success state */
.d11-add-cart { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; padding: 7px 15px; }
.d11-add-cart i.loading { margin: 0; }
.d11-add-cart.is-added { background: #16a34a; border-color: #16a34a; cursor: default; }
.d11-transfer { font-size: 13px; padding: 7px 15px; }
.d11-added-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #16a34a;
}

@media (max-width: 640px) {
    .d11-domain-row { grid-template-columns: 1fr auto; gap: 8px; }
    .d11-dr-price, .d11-dr-action { grid-column: 1 / -1; }
    .d11-dr-price { text-align: left; }
    .d11-dv-side { width: 100%; justify-content: space-between; }
}

/* Trust bar */
.d11-trust-bar { background: #fff; border-bottom: 1px solid var(--d11-border); }
.d11-trust-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 34px 0;
}
.d11-trust-item { display: flex; align-items: center; gap: 14px; }
.d11-trust-item i {
    font-size: 26px;
    color: var(--d11-primary);
    background: var(--d11-primary-light);
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.d11-trust-item strong { display: block; color: var(--d11-heading); font-size: 15px; }
.d11-trust-item span { color: var(--d11-muted); font-size: 13px; }

/* Sections */
.d11-section { padding: 84px 0; }
.d11-section-alt { background: #fff; }
.d11-section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.d11-section-head h2 { font-size: 34px; }
.d11-section-head p { color: var(--d11-muted); font-size: 16px; margin-top: 12px; }
.d11-eyebrow {
    display: inline-block;
    background: var(--d11-primary-light);
    color: var(--d11-primary);
    font-weight: 700;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 14px;
}
.d11-eyebrow-alt { background: #eef2ff; color: #4338ca; }

/* Pricing */
.d11-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.d11-pricing-card {
    background: #fff;
    border: 1px solid var(--d11-border);
    border-radius: var(--d11-radius);
    padding: 34px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.d11-pricing-card:hover { transform: translateY(-4px); box-shadow: var(--d11-shadow-lg); }
.d11-pricing-card-featured {
    border: 2px solid var(--d11-primary);
    box-shadow: var(--d11-shadow);
    transform: scale(1.03);
}
.d11-pricing-card-featured:hover { transform: scale(1.03) translateY(-4px); }
.d11-pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--d11-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 20px;
    white-space: nowrap;
}
.d11-pricing-card h3 { font-size: 22px; margin-bottom: 4px; }
.d11-pricing-desc { color: var(--d11-muted); font-size: 13.5px; min-height: 40px; }
.d11-pricing-price { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 20px; }
.d11-price-symbol { font-size: 20px; font-weight: 700; color: var(--d11-heading); }
.d11-price-amount { font-size: 46px; font-weight: 800; color: var(--d11-heading); letter-spacing: -1px; }
.d11-price-period { color: var(--d11-muted); font-size: 14px; }
.d11-pricing-features { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.d11-pricing-features li {
    padding: 8px 0;
    color: var(--d11-text);
    border-bottom: 1px dashed var(--d11-border);
    font-size: 14px;
}
.d11-pricing-features li:last-child { border-bottom: 0; }
.d11-pricing-features i { color: var(--d11-primary); margin-right: 10px; }

/* VPS */
.d11-vps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.d11-vps-card {
    background: var(--d11-bg);
    border: 1px solid var(--d11-border);
    border-radius: var(--d11-radius);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.d11-vps-card:hover { transform: translateY(-4px); box-shadow: var(--d11-shadow-lg); }
.d11-vps-card-featured { background: #fff; border: 2px solid var(--d11-primary); }
.d11-vps-label {
    display: inline-block;
    background: #e2e8f0;
    color: var(--d11-heading);
    font-weight: 700;
    font-size: 13px;
    padding: 5px 14px;
    border-radius: 20px;
    align-self: flex-start;
    margin-bottom: 16px;
}
.d11-vps-label-featured { background: var(--d11-primary); color: #fff; }
.d11-price-lg { font-size: 40px; font-weight: 800; color: var(--d11-heading); margin-bottom: 18px; }
.d11-price-lg span { font-size: 15px; font-weight: 500; color: var(--d11-muted); }
.d11-vps-card ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.d11-vps-card ul li { padding: 7px 0; border-bottom: 1px dashed var(--d11-border); font-size: 14px; }
.d11-vps-card ul li:last-child { border-bottom: 0; }
.d11-vps-card ul strong { color: var(--d11-primary); }

/* Live product catalogs (auto-pulled from WHMCS) */
.d11-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.d11-cat-card {
    background: #fff;
    border: 1px solid var(--d11-border);
    border-radius: var(--d11-radius);
    padding: 26px;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.d11-cat-card:hover { transform: translateY(-4px); box-shadow: var(--d11-shadow-lg); }
.d11-cat-card-featured { border: 2px solid var(--d11-primary); }
.d11-cat-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.d11-cat-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--d11-primary-light);
    color: var(--d11-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}
.d11-cat-card-featured .d11-cat-icon { background: var(--d11-primary); color: #fff; }
.d11-cat-head h3 { font-size: 17px; margin: 0 0 3px; color: var(--d11-heading); }
.d11-cat-tagline { color: var(--d11-muted); font-size: 13px; margin: 0; line-height: 1.45; }
.d11-cat-products { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.d11-cat-product { border-bottom: 1px dashed var(--d11-border); }
.d11-cat-product:last-child { border-bottom: 0; }
.d11-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 2px;
    color: var(--d11-text);
    transition: color .15s ease;
}
.d11-cat-link:hover { color: var(--d11-primary); }
.d11-cat-pname { font-size: 14px; font-weight: 600; }
.d11-cat-star { color: #f59e0b; margin-right: 6px; font-size: 11px; }
.d11-cat-price {
    flex: 0 0 auto;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--d11-primary);
    background: var(--d11-primary-light);
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.d11-cat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 2px;
}
.d11-cat-l { flex: 1 1 auto; min-width: 0; }
.d11-cat-l .d11-cat-pname { display: inline-block; font-size: 14px; font-weight: 700; color: var(--d11-heading); }
.d11-cat-l .d11-cat-pname:hover { color: var(--d11-primary); }
.d11-cat-desc { margin: 3px 0 0; font-size: 12.5px; color: var(--d11-muted); line-height: 1.45; }
.d11-cat-r { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.d11-cat-order { font-size: 12.5px; padding: 6px 14px; white-space: nowrap; }
@media (max-width: 560px) {
    .d11-cat-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .d11-cat-r { width: 100%; justify-content: space-between; }
}
.d11-empty {
    text-align: center;
    padding: 46px 20px;
    color: var(--d11-muted);
    background: #fff;
    border: 1px dashed var(--d11-border);
    border-radius: var(--d11-radius);
}
.d11-empty i { font-size: 38px; color: #cbd5e1; display: block; margin-bottom: 14px; }
.d11-empty p { font-size: 15px; margin: 0; }

/* Domains + SSL boxes */
.d11-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.d11-col-box {
    border-radius: var(--d11-radius);
    padding: 34px;
}
.d11-col-box-blue {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #e0e7ff;
}
.d11-col-box-blue h3 { color: #fff; }
.d11-col-box-light { background: #fff; border: 1px solid var(--d11-border); }
.d11-col-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
}
.d11-col-box-blue .d11-col-icon { background: rgba(255, 255, 255, .15); color: #fff; }
.d11-col-box-light .d11-col-icon { background: var(--d11-primary-light); color: var(--d11-primary); }
.d11-col-list { list-style: none; padding: 0; margin: 16px 0 24px; }
.d11-col-list li { padding: 5px 0; font-size: 14.5px; }
.d11-col-box-blue .d11-col-list i { color: #93c5fd; margin-right: 8px; }
.d11-col-box-light .d11-col-list i { color: var(--d11-primary); margin-right: 8px; }
.d11-col-box-blue .d11-btn-outline { color: #fff !important; border-color: rgba(255, 255, 255, .5); }
.d11-col-box-blue .d11-btn-outline:hover { background: rgba(255, 255, 255, .12); }

/* Features */
.d11-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.d11-feature-card {
    background: #fff;
    border: 1px solid var(--d11-border);
    border-radius: var(--d11-radius);
    padding: 30px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.d11-feature-card:hover { transform: translateY(-4px); box-shadow: var(--d11-shadow); }
.d11-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: var(--d11-primary-light);
    color: var(--d11-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}
.d11-feature-card h4 { font-size: 17px; margin-bottom: 8px; }
.d11-feature-card p { color: var(--d11-muted); font-size: 14px; margin: 0; }

/* CTA */
.d11-cta {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #fff;
    text-align: center;
    padding: 84px 24px;
}
.d11-cta h2 { color: #fff; font-size: 36px; margin-bottom: 12px; }
.d11-cta p { color: #cbd5e1; font-size: 17px; margin-bottom: 28px; }

/* Static product page hero */
.d11-static-hero {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #fff;
    padding: 60px 0 70px;
}
.d11-static-hero h1 { color: #fff; font-size: 38px; margin-bottom: 8px; }
.d11-static-hero p { color: #cbd5e1; font-size: 17px; margin: 0; }

/* Static page extras */
.d11-static-page .d11-container > .d11-domain-search { margin-top: 12px; }
.d11-cta-static { padding: 64px 24px; border-radius: 0; }
.d11-legal-card {
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--d11-border);
    border-radius: var(--d11-radius);
    box-shadow: var(--d11-shadow);
    padding: 44px 50px;
    font-size: 15px;
    line-height: 1.75;
}
.d11-legal-card h2 { margin-bottom: 18px; }
.d11-legal-card h3 { font-size: 17px; margin: 26px 0 8px; }
.d11-legal-card p { color: var(--d11-text); }

/* ============================================================
   Footer
   ============================================================ */
.d11-footer { background: #0f172a; color: #94a3b8; padding: 60px 0 0; font-size: 14px; }
.d11-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 44px;
}
.d11-footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.d11-footer-col ul { list-style: none; padding: 0; margin: 0; }
.d11-footer-col ul li { padding: 6px 0; }
.d11-footer-col ul a { color: #94a3b8; }
.d11-footer-col ul a:hover { color: #60a5fa; }
.d11-footer-tagline { line-height: 1.7; margin: 16px 0; }
.d11-footer-social { display: flex; gap: 10px; }
.d11-footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.d11-footer-social a:hover { background: var(--d11-primary); color: #fff; }
.d11-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 13px;
    color: #64748b;
}
.d11-footer-bottom p { margin: 0; }
.d11-footer-pay { display: flex; align-items: center; gap: 12px; }
.d11-footer-pay i { font-size: 22px; color: #64748b; }

/* ============================================================
   Client header (topbar + navbar + main nav)
   ============================================================ */
.d11-client-header { background: #fff; border-bottom: 1px solid var(--d11-border); }
.d11-topbar { background: var(--d11-heading); color: #cbd5e1; font-size: 13px; }
.d11-topbar .d11-container { display: flex; justify-content: space-between; align-items: center; min-height: 40px; }
.d11-topbar-left, .d11-topbar-right { display: flex; align-items: center; gap: 14px; }
.d11-alert-btn {
    background: none;
    border: 0;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    padding: 4px;
}
.d11-alert-btn:hover { color: #fff; }
.d11-alert-count {
    background: var(--d11-danger);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.d11-loggedin-as { color: #64748b; }
.d11-btn-group { display: flex; align-items: center; gap: 4px; }
.d11-active-client { color: #fff; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.d11-active-client:hover { color: #60a5fa; }
.d11-topbar-icon { color: #cbd5e1; padding: 4px 8px; }
.d11-topbar-icon:hover { color: #fff; }

.d11-client-navbar { border-bottom: 1px solid var(--d11-border); }
.d11-client-navbar .d11-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 64px;
}
.d11-kb-search { flex: 1; max-width: 420px; }
.d11-kb-search-input { display: flex; align-items: center; background: #f1f5f9; border-radius: 10px; overflow: hidden; }
.d11-kb-search-btn { background: none; border: 0; padding: 0 12px; color: var(--d11-muted); cursor: pointer; }
.d11-kb-search-field { flex: 1; border: 0; background: transparent; outline: none; padding: 10px 4px; font-size: 14px; }
.d11-navbar-tools { display: flex; align-items: center; gap: 8px; }
.d11-kb-search-mobile { display: none; padding: 12px 0; }

.d11-client-mainnav { background: #fff; }
.d11-mainnav-collapse { padding: 0; }
.d11-mainnav-collapse ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.d11-mainnav-collapse .nav-item { position: relative; }
.d11-mainnav-collapse .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    color: var(--d11-text);
    font-weight: 600;
    font-size: 14px;
    border-bottom: 3px solid transparent;
}
.d11-mainnav-collapse .nav-link:hover { color: var(--d11-primary); }
.d11-mainnav-collapse .nav-item.active > .nav-link,
.d11-mainnav-collapse .nav-link.active { color: var(--d11-primary); border-bottom-color: var(--d11-primary); }
.d11-mainnav-collapse .dropdown-menu { min-width: 220px; }
.d11-mainnav-collapse .dropdown-item { font-size: 14px; padding: 8px 16px; }
.d11-nav-list-right { margin-left: auto; }

/* Breadcrumb */
.master-breadcrumb { background: #fff; border-bottom: 1px solid var(--d11-border); padding: 12px 0; }
.master-breadcrumb .breadcrumb { background: none; padding: 0; margin: 0; font-size: 13px; }
.master-breadcrumb .breadcrumb-item a { color: var(--d11-muted); }
.master-breadcrumb .breadcrumb-item.active { color: var(--d11-heading); font-weight: 600; }
.master-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--d11-muted); }

/* ============================================================
   Client area layout
   ============================================================ */
#main-body { padding: 34px 0 60px; min-height: 60vh; }

.d11-row { display: flex; gap: 28px; align-items: flex-start; }
.d11-side-col { flex: 0 0 280px; }
.primary-content { flex: 1; min-width: 0; }

/* Sidebar (WHMCS panel, styled in uppercase card look) */
.d11-side-col .panel {
    background: #fff;
    border: 1px solid var(--d11-border);
    border-radius: var(--d11-radius);
    overflow: hidden;
    margin-bottom: 22px;
    box-shadow: var(--d11-shadow);
}
.d11-side-col .panel-heading {
    background: #f8fafc;
    border-bottom: 1px solid var(--d11-border);
    padding: 14px 18px;
}
.d11-side-col .panel-title { color: var(--d11-heading); font-size: 15px; font-weight: 700; margin: 0; }
.d11-side-col .panel-body { padding: 8px; }
.d11-side-col .nav-pills { list-style: none; margin: 0; padding: 0; }
.d11-side-col .nav-pills .nav-item { margin: 0; }
.d11-side-col .nav-pills .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--d11-text);
    font-weight: 500;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 8px;
}
.d11-side-col .nav-pills .nav-link:hover { background: #f1f5f9; color: var(--d11-primary); }
.d11-side-col .nav-pills .nav-item.active .nav-link,
.d11-side-col .nav-pills .nav-link.active {
    background: var(--d11-primary-light);
    color: var(--d11-primary);
    font-weight: 600;
}

/* ============================================================
   Client area content components
   ============================================================ */
.d11-dash-head,
.d11-panel-head-page {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.d11-h2 { font-size: 26px; margin-bottom: 4px; }
.d11-panel-head-page .d11-muted { margin: 0; }
.d11-dash-head p { margin: 0; }

.d11-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 26px;
}
.d11-stat-card {
    background: #fff;
    border: 1px solid var(--d11-border);
    border-radius: var(--d11-radius);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform .18s ease, box-shadow .18s ease;
    text-decoration: none !important;
}
.d11-stat-card:hover { transform: translateY(-3px); box-shadow: var(--d11-shadow-lg); }
.d11-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--d11-primary-light);
    color: var(--d11-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 10px;
}
.d11-stat-count { font-size: 30px; font-weight: 800; color: var(--d11-heading); }
.d11-stat-label { color: var(--d11-muted); font-size: 13.5px; font-weight: 500; }

.d11-panel {
    background: #fff;
    border: 1px solid var(--d11-border);
    border-radius: var(--d11-radius);
    margin-bottom: 24px;
    box-shadow: var(--d11-shadow);
    overflow: hidden;
}
.d11-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--d11-border);
    flex-wrap: wrap;
}
.d11-panel-head h3 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 9px; }
.d11-panel-head h3 i { color: var(--d11-primary); }
.d11-panel-body { padding: 8px 10px; }
.d11-panel-link { color: var(--d11-primary); font-weight: 600; font-size: 13.5px; }
.d11-panel-foot { background: #f8fafc; border-top: 1px solid var(--d11-border); padding: 12px 22px; }
.d11-panel-addon { padding: 20px 22px; }

.d11-table-wrap { overflow-x: auto; }
.d11-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.d11-table th {
    text-align: left;
    padding: 12px 16px;
    color: var(--d11-muted);
    font-weight: 600;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .6px;
    border-bottom: 1px solid var(--d11-border);
    background: #f8fafc;
}
.d11-table td { padding: 13px 16px; border-bottom: 1px solid var(--d11-border); vertical-align: middle; }
.d11-table tr:last-child td { border-bottom: 0; }
.d11-table tbody tr { transition: background .12s ease; }
.d11-table tbody tr:hover { background: #f8fafc; }
.d11-table a { font-weight: 600; }
.d11-unread { background: #f0f9ff; }
.d11-unread strong a { color: var(--d11-heading); }

.d11-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    background: #f1f5f9;
    color: var(--d11-muted);
}
.d11-status-active, .d11-status-paid { background: #dcfce7; color: #15803d; }
.d11-status-pending, .d11-status-unpaid, .d11-status-overdue { background: #fee2e2; color: #b91c1c; }
.d11-status-suspended, .d11-status-cancelled, .d11-status-terminated { background: #f1f5f9; color: var(--d11-muted); }
.d11-status-inprogress { background: #e0f2fe; color: #0369a1; }
.d11-status-inactive, .d11-status-refunded { background: #fef3c7; color: #b45309; }

.d11-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 18px 0 8px; color: var(--d11-muted); font-size: 13.5px; }

.d11-empty-state { text-align: center; padding: 60px 20px; color: var(--d11-muted); }
.d11-empty-state i { font-size: 44px; color: #cbd5e1; display: block; margin-bottom: 16px; }
.d11-empty-state p { font-size: 16px; margin-bottom: 18px; }

.d11-two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.d11-dashboard-panels .d11-panel + .d11-panel { margin-top: 24px; }
.d11-dashboard-panels .card { border: 0; }

/* Alerts */
.d11-alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin: 0 0 20px;
    font-size: 14px;
    border: 1px solid transparent;
}
.d11-alert-danger { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.d11-alert-warning { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.d11-alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.d11-alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }

/* Dashboard panels from WHMCS ($panels) */
.d11-panel .card-title { display: flex; align-items: center; gap: 4px; font-size: 15px; }
.d11-panel .list-group { border-radius: 0; }
.d11-panel .list-group-item {
    border: 0;
    border-top: 1px solid var(--d11-border);
    padding: 12px 22px;
    font-size: 14px;
    color: var(--d11-text);
}
.d11-panel .list-group-item:first-child { border-top: 0; }
.d11-panel .list-group-item.active { background: var(--d11-primary-light); color: var(--d11-primary); font-weight: 600; }
.d11-panel .badge { background: var(--d11-primary); color: #fff; }

/* Selects + form inputs */
.d11-select, .d11-input {
    padding: 10px 14px;
    border: 1.5px solid var(--d11-border);
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    color: var(--d11-heading);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.d11-select:focus, .d11-input:focus { border-color: var(--d11-primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .1); }
.d11-inline-form { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }

/* ============================================================
   Auth pages (login)
   ============================================================ */
.d11-auth-wrap { display: flex; justify-content: center; padding: 40px 0 20px; }
.d11-auth-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 1px solid var(--d11-border);
    border-radius: 16px;
    box-shadow: var(--d11-shadow-lg);
    padding: 36px 40px;
}
.d11-auth-head { margin-bottom: 24px; }
.d11-auth-head h2 { font-size: 26px; }
.d11-auth-head p { color: var(--d11-muted); margin: 0; }
.d11-auth-card .form-group { margin-bottom: 20px; }
.d11-auth-card label { display: block; font-weight: 600; color: var(--d11-heading); font-size: 13.5px; margin-bottom: 7px; }
.d11-password-row { display: flex; justify-content: space-between; align-items: center; }
.d11-input-group { display: flex; align-items: center; position: relative; }
.d11-input-icon {
    position: absolute;
    left: 13px;
    color: var(--d11-muted);
    font-size: 14px;
    z-index: 2;
}
.d11-input-group .d11-input { flex: 1; padding-left: 40px; }
.d11-input-append { position: absolute; right: 7px; }
.d11-input-btn {
    background: none;
    border: 0;
    color: var(--d11-muted);
    cursor: pointer;
    padding: 8px;
}
.d11-input-btn:hover { color: var(--d11-primary); }
.d11-auth-actions { margin-top: 24px; }
.d11-check { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--d11-muted); font-size: 13.5px; margin-top: 14px; cursor: pointer; }
.d11-auth-foot {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--d11-border);
    text-align: center;
    color: var(--d11-muted);
    font-size: 14px;
}
.d11-auth-note { max-width: 520px; margin: 20px auto 0; }

/* Restyle parent-Twenty-One form fields so register & others match */
.card { border: 1px solid var(--d11-border); border-radius: var(--d11-radius); box-shadow: var(--d11-shadow); }
.card .card-header { background: #f8fafc; border-bottom: 1px solid var(--d11-border); }
.card .card-body { color: var(--d11-text); }
.form-control, .form-select {
    border: 1.5px solid var(--d11-border);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
}
.form-control:focus { border-color: var(--d11-primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .1); }
/* Selects (incl. submit-ticket Department/Priority) — consistent D11 height + visible native arrow */
select.form-control, .form-control select, .form-group select {
    height: 46px;
    padding: 0 38px 0 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--d11-heading);
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.41 0 6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
select.form-control:focus, .form-group select:focus { outline: 0; border-color: var(--d11-primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .1); }
.input-group-text { background: #f8fafc; border: 1.5px solid var(--d11-border); color: var(--d11-muted); }
.btn-primary { background: var(--d11-primary); border-color: var(--d11-primary); }
.btn-primary:hover { background: var(--d11-primary-dark); border-color: var(--d11-primary-dark); }
.btn-default { background: #f1f5f9; border-color: var(--d11-border); color: var(--d11-text); }
.btn-default:hover { background: #e2e8f0; }
.btn-outline { border: 1.5px solid var(--d11-primary); color: var(--d11-primary); }
.btn-outline:hover { background: var(--d11-primary-light); color: var(--d11-primary); }

/* Admin-style WHMCS tables on non-overridden pages */
.table { color: var(--d11-text); }
.table thead th { color: var(--d11-muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; }
.table-hover tbody tr:hover { background: #f8fafc; }

/* ============================================================
   Invoice page (viewinvoice.tpl - standalone document)
   ============================================================ */
.d11-invoice-body { background: #f1f5f9; padding: 30px 0; }
.d11-invoice-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--d11-shadow-lg);
    padding: 40px 44px;
    max-width: 980px;
}
.d11-invoice-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.d11-invoice-logo { max-height: 56px; }
.d11-invoice-title { font-size: 26px; margin: 10px 0 0; }
.d11-invoice-status {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    background: #f1f5f9;
    color: var(--d11-muted);
}
.d11-invoice-status-unpaid { background: #fee2e2; color: #b91c1c; }
.d11-invoice-status-paid, .d11-invoice-status-payment-pending { background: #dcfce7; color: #15803d; }
.d11-invoice-status-draft, .d11-invoice-status-collections { background: #fef3c7; color: #b45309; }
.d11-invoice-status-cancelled { background: #f1f5f9; color: #64748b; }
.d11-invoice-duedate { margin-top: 12px; color: var(--d11-muted); }
.d11-invoice-alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; }
.d11-invoice-alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.d11-invoice-alert-danger { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.d11-invoice-alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }
.d11-invoice-alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #b45309; }

.d11-invoice-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 18px 0;
    border-top: 1px solid var(--d11-border);
    border-bottom: 1px solid var(--d11-border);
    margin-bottom: 20px;
}
.d11-invoice-party address { margin: 6px 0 0; font-style: normal; line-height: 1.7; }
.d11-invoice-party-right { text-align: right; }

.d11-invoice-meta { margin-bottom: 22px; }
.d11-gateway-switch { margin-top: 8px; }

.d11-paynow {
    background: linear-gradient(135deg, #f8fafc, #eff6ff);
    border: 1.5px solid var(--d11-primary-light);
    border-radius: 14px;
    padding: 22px 26px;
    margin-bottom: 24px;
    text-align: center;
}
.d11-paynow h3 { font-size: 18px; margin-bottom: 16px; color: var(--d11-primary); }
.d11-paynow-button .btn, .d11-paynow-button a { min-width: 200px; }
.d11-paynow-button { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.d11-invoice-qr { display: flex; justify-content: center; margin: 24px 0; }

.d11-total-row td { background: #f8fafc; }
.d11-total-grand td { background: #eff6ff; color: var(--d11-primary); }
.d11-total-grand strong { color: var(--d11-heading); }
.d11-invoice-actions { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }

/* ============================================================
   Checkout / Standard Cart restyle
   ============================================================ */
#order-standard_cart { color: var(--d11-text); }

#order-standard_cart .order-navigation {
    background: #fff;
    border: 1px solid var(--d11-border);
    border-radius: var(--d11-radius);
    padding: 14px 18px;
    margin-bottom: 24px;
    box-shadow: var(--d11-shadow);
}
#order-standard_cart .order-navigation .nav-link {
    color: var(--d11-muted);
    font-weight: 600;
    font-size: 14px;
    opacity: 1;
}
#order-standard_cart .order-navigation .nav-link.active { color: var(--d11-primary); }

#order-standard_cart .cart-sidebar {
    background: #fff;
    border: 1px solid var(--d11-border);
    border-radius: var(--d11-radius);
    box-shadow: var(--d11-shadow);
    padding: 18px;
    margin-bottom: 24px;
}
#order-standard_cart .cart-sidebar h3 { font-size: 16px; margin-bottom: 12px; }
#order-standard_cart .cart-sidebar .btn {
    width: 100%;
    background: var(--d11-primary-light);
    color: var(--d11-primary);
    border: 0;
    font-weight: 600;
}
#order-standard_cart .cart-sidebar .btn:hover { background: var(--d11-primary); color: #fff; }

#order-standard_cart .products .product {
    background: #fff;
    border: 1px solid var(--d11-border);
    border-radius: var(--d11-radius);
    margin: 0 0 18px;
    padding: 26px;
    transition: box-shadow .2s ease;
    min-height: 100%;
}
#order-standard_cart .products .product:hover { box-shadow: var(--d11-shadow-lg); }
#order-standard_cart .products .header h3, #order-standard_cart .products .pricing {
    color: var(--d11-heading);
}
#order-standard_cart .products .pricing { font-weight: 800; }
#order-standard_cart .products .product .btn {
    background: var(--d11-primary);
    border-color: var(--d11-primary);
}
#order-standard_cart .products .product .btn:hover { background: var(--d11-primary-dark); }

#order-standard_cart .view-cart-table thead th, #order-standard_cart .view-cart-table .subtotal {
    color: var(--d11-muted);
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
#order-standard_cart .view-cart-table .subtotal { font-weight: 700; }
#order-standard_cart .view-cart-table .cart-product-description { color: var(--d11-text); }
#order-standard_cart .view-cart-table .total-due-td { background: var(--d11-primary-light); color: var(--d11-primary); }
#order-standard_cart .view-cart-table .total-due-td a { color: var(--d11-primary-dark); font-weight: 700; }

#order-standard_cart .checkout-success-feedback { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
#order-standard_cart .alert-danger { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }

#order-standard_cart .form-group .field-group, #order-standard_cart .form-group .sts-field-group { margin-bottom: 0; }
#order-standard_cart .btn-primary { background: var(--d11-primary); border-color: var(--d11-primary); }
#order-standard_cart .btn-primary:hover { background: var(--d11-primary-dark); }

/* Product group (/store/...) pages - full D11 adoption */
#order-standard_cart .header-lined h1 {
    font-family: "Inter", sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--d11-heading);
    border-bottom: 2px solid var(--d11-primary);
    padding-bottom: 14px;
}
#order-standard_cart .header-lined p {
    color: var(--d11-muted);
    font-size: 15px;
}

/* Neutralise the standard_cart product card layout (gray band + 60/40 floats) */
#order-standard_cart .products .product header {
    position: static;
    background: transparent;
    border-radius: 0;
    padding: 0 0 8px;
    margin: 0;
}
#order-standard_cart .products .product div.product-desc {
    float: none;
    width: 100%;
    padding: 8px 0 0;
    font-size: 13.5px;
}
#order-standard_cart .products .product div.product-pricing {
    margin: 14px 0 12px;
}
#order-standard_cart .products .product footer {
    float: none;
    width: 100%;
    margin: 0;
    padding-top: 16px;
    border-top: 1px dashed var(--d11-border);
    font-size: 13px;
    text-align: left;
}
#order-standard_cart .products .product .btn-order-now { width: 100%; }

#order-standard_cart .cart-sidebar .panel {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}
#order-standard_cart .cart-sidebar .panel-heading {
    background: transparent;
    border: 0;
    padding: 0 0 10px;
}
#order-standard_cart .cart-sidebar .panel-title {
    color: var(--d11-heading);
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 14px;
}
#order-standard_cart .cart-sidebar .list-group {
    border: 0;
}
#order-standard_cart .cart-sidebar .list-group-item {
    background: transparent;
    border: 0;
    border-radius: var(--d11-radius);
    color: var(--d11-text);
    padding: 9px 10px;
    font-size: 14px;
}
#order-standard_cart .cart-sidebar .list-group-item:hover,
#order-standard_cart .cart-sidebar .list-group-item.active {
    background: var(--d11-primary-light);
    color: var(--d11-primary);
    font-weight: 600;
}
#order-standard_cart .cart-sidebar .card {
    background: #fff;
    border: 1px solid var(--d11-border);
    border-radius: var(--d11-radius);
    box-shadow: var(--d11-shadow);
    padding: 16px;
}
#order-standard_cart .products .product header span {
    color: var(--d11-heading);
    font-family: "Inter", sans-serif;
    font-weight: 800;
    font-size: 20px;
}
#order-standard_cart .products .product-desc p {
    color: var(--d11-muted);
    font-size: 13.5px;
    line-height: 1.6;
}
#order-standard_cart .products .product .btn-order-now {
    background: var(--d11-primary) !important;
    border-color: var(--d11-primary) !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 16px;
}
#order-standard_cart .products .product .btn-order-now:hover {
    background: var(--d11-primary-dark) !important;
    border-color: var(--d11-primary-dark) !important;
}
#order-standard_cart .products .price {
    color: var(--d11-primary);
    font-weight: 800;
    font-size: 17px;
}
#order-standard_cart .setup-fee {
    color: var(--d11-muted);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
    .d11-side-col { flex-basis: 240px; }
    .d11-feature-grid, .d11-pricing-grid, .d11-vps-grid, .d11-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .d11-trust-items { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .d11-pricing-card-featured { transform: none; }
    .d11-pricing-card-featured:hover { transform: translateY(-4px); }
}

/* Homepage mobile menu wrapper - hidden on desktop, only shown <=860px */
.d11-home-mobile-nav { display: none; }


@media (max-width: 860px) {
    .d11-header-inner { flex-wrap: wrap; height: auto; padding: 14px 24px; gap: 8px; }

    .d11-nav-toggle { display: flex; order: 3; margin-left: 0; }

    .d11-nav {
        display: none;
        width: 100%;
        order: 4;
    }
    .d11-nav.open { display: block; }
    .d11-nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
    .d11-dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 16px; }
    .d11-dropdown-nested { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 16px; margin-left: 0; }
    .d11-nav-item.has-dropdown:hover .d11-dropdown { transform: none; }

    /* Homepage mobile nav wrapper - full-width white bg like .d11-client-mainnav.
       #mainNavbar inside a d11-container (0 24px padding), so content aligns at
       24px exactly like other pages. */
    .d11-home-mobile-nav {
        display: block;
        background: #fff;
        border-top: 1px solid var(--d11-border);
        padding: 12px 0 16px;
    }

    .d11-header-actions { order: 1; margin-left: auto; gap: 8px; }

    .d11-hero-inner { flex-direction: column; gap: 36px; }
    .d11-hero-title { font-size: 36px; }
    .d11-hero { padding: 60px 0 110px; }

    .d11-two-up, .d11-two-col, .d11-invoice-parties { grid-template-columns: 1fr; }
    .d11-invoice-party-right { text-align: left; }
    .d11-stats-grid { grid-template-columns: repeat(2, 1fr); }

.d11-row { flex-direction: column; }
    .d11-side-col { flex: 1 1 auto; width: 100%; }
    .d11-nav-list-right { margin-left: 0; }
    .d11-kb-search { display: none; }
    .d11-kb-search-mobile { display: block; }

    /* ============================================================
       Mobile: client-area menu (WHMCS navbar.tpl output inside
       #mainNavbar) styled to match the homepage d11-nav menu.
       ============================================================ */
    #mainNavbar .d11-nav-list,
    #mainNavbar .d11-nav-list-right {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }
    #mainNavbar .d11-nav-list {
        border-bottom: 1px solid var(--d11-border);
        padding-bottom: 6px;
    }

    /* Top-level items: full-width blocks */
    #mainNavbar .d11-nav-list > li,
    #mainNavbar .d11-nav-list-right > li {
        width: 100%;
    }

    /* Top-level links styled like homepage menu links */
    #mainNavbar .d11-nav-list > li > a,
    #mainNavbar .d11-nav-list-right > li > a {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        justify-content: flex-start;
        padding: 11px 14px !important;
        margin: 0 !important;
        border-radius: 8px;
        border-bottom: 0;
        font-size: 14.5px;
        font-weight: 600;
        color: var(--d11-text);
        background: transparent;
        text-decoration: none;
        white-space: normal;
    }
    #mainNavbar .d11-nav-list > li > a:hover,
    #mainNavbar .d11-nav-list-right > li > a:hover { background: #f1f5f9 !important; color: var(--d11-primary); }
    #mainNavbar .d11-nav-list > li.active > a,
    #mainNavbar .d11-nav-list-right > li.active > a { color: var(--d11-primary); background: var(--d11-primary-light); }
    /* move the Bootstrap caret to the right */
    #mainNavbar .dropdown-toggle::after {
        margin-left: auto;
        float: none;
        vertical-align: middle;
    }

    /* Submenus: hidden by default, flattened/indented when opened via the
       accordion toggle (tap). Bootstrap adds .show on tap (data-toggle=dropdown). */
    #mainNavbar .dropdown-menu { display: none !important; }
    #mainNavbar .dropdown-menu.show,
    #mainNavbar .dropdown-menu.in {
        display: block !important;
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border: 0 !important;
        background: transparent;
        min-width: 0;
        margin: 0 !important;
        padding: 2px 0 6px 18px;
        float: none;
    }
    #mainNavbar .dropdown-menu .dropdown-divider { display: none; }
    #mainNavbar .dropdown-menu .dropdown-item {
        padding: 0 !important;
        background: transparent !important;
        width: 100%;
    }
    #mainNavbar .dropdown-menu .dropdown-item > a {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 9px 12px !important;
        margin: 0 !important;
        border-radius: 8px;
        font-weight: 500;
        font-size: 14px;
        color: var(--d11-text);
        white-space: normal;
        text-decoration: none;
    }
    #mainNavbar .dropdown-menu .dropdown-item > a:hover { background: var(--d11-primary-light); color: var(--d11-primary); }
    #mainNavbar .dropdown-menu .dropdown-item.active > a,
    #mainNavbar .dropdown-menu .dropdown-item > a.active { background: var(--d11-primary-light); color: var(--d11-primary); font-weight: 600; }

    /* Secondary (Account / login) block separated like a distinct group */
    #mainNavbar .d11-nav-list-right {
        border-top: 1px solid var(--d11-border);
        margin-top: 6px;
        padding-top: 8px;
    }

    /* Mobile search field */
    #mainNavbar .d11-kb-search-input { margin-bottom: 12px; }
    #mainNavbar .d11-kb-search-field { font-size: 14px; }


    .d11-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
    .d11-feature-grid, .d11-pricing-grid, .d11-vps-grid, .d11-cat-grid, .d11-trust-items { grid-template-columns: 1fr; }
    .d11-footer-grid { grid-template-columns: 1fr; }
    .d11-hero-title { font-size: 30px; }
    .d11-section { padding: 56px 0; }
    .d11-cta h2 { font-size: 28px; }
    .d11-invoice-container { padding: 24px 18px; }
    .d11-auth-card { padding: 26px 22px; }
    .d11-dash-head, .d11-panel-head-page { flex-direction: column; align-items: flex-start; }
}

/* Print-friendly invoice */
@media print {
    .d11-invoice-actions, .d11-paynow, .d11-gateway-switch { display: none !important; }
    body { background: #fff; }
    .d11-invoice-container { box-shadow: none; border: 0; padding: 0; }
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--d11-primary);
    color: #fff;
    padding: 10px 16px;
    z-index: 9999;
}
.skip-link:focus { left: 0; }
/* ===================== Floating WhatsApp button ===================== */
.d11-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    padding: 13px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14.5px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.d11-whatsapp i {
    font-size: 24px;
    line-height: 1;
}
.d11-whatsapp:hover,
.d11-whatsapp:focus {
    background: #1ebe57;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.55);
}
@media (max-width: 600px) {
    .d11-whatsapp {
        right: 14px;
        bottom: 14px;
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* ===================== Sidebar accordions ===================== */
/* Always show every collapsible sidebar accordion (knowledgebase categories,
   tag cloud, support links, register/login panels, store sidebars, etc.) */
.sidebar .card-sidebar .collapsable-card-body,
.card-sidebar .collapsable-card-body,
.panel-sidebar .collapsable-card-body {
    display: block !important;
}
.sidebar .card-minimise,
.card-sidebar .card-minimise,
.panel-sidebar .card-minimise {
    display: none !important;
}
