/* ============================================================
   DPRIME H 1.11 — Child of Nexus
   dprimehosting.com · Dprime Solutions
   ============================================================ */

/* ─── 1. Nexus CSS Variable Remapping ───────────────────── */
:root {
    --white: #fff;

    /* Neutral → Dprime paper/line/muted/ink scale */
    --neutral-50:  #fbfcfe;
    --neutral-100: #F5F8FC;
    --neutral-200: #D9E2EE;
    --neutral-300: #bfcedd;
    --neutral-400: #9aabb8;
    --neutral-500: #66758B;
    --neutral-600: #566375;
    --neutral-700: #3d4f62;
    --neutral-800: #253a4f;
    --neutral-900: #172536;
    --neutral-950: #0d1825;

    /* Primary → Dprime Blue */
    --primary-50:  #f0f5fd;
    --primary-100: #dce8f9;
    --primary-200: #bad1f3;
    --primary-300: #8ab3e8;
    --primary-400: #5a90d7;
    --primary-500: #3571c4;
    --primary-600: #134E8E;
    --primary-700: #0F3D70;
    --primary-800: #0a2d54;
    --primary-900: #071d38;
    --primary-950: #040f1e;

    --primary:          #134E8E;
    --primary-lifted:   #0F3D70;
    --primary-accented: #0a2d54;

    /* Secondary → muted blue-grey */
    --secondary:          #566375;
    --secondary-lifted:   #3d4f62;
    --secondary-accented: #253a4f;

    /* Success */
    --success:          #16a34a;
    --success-lifted:   #15803d;
    --success-accented: #166534;

    /* Info */
    --info:          #2563eb;
    --info-lifted:   #1d4ed8;
    --info-accented: #1e40af;

    /* Warning → gold accent */
    --warning:          #d97706;
    --warning-lifted:   #b45309;
    --warning-accented: #92400e;

    /* Error */
    --error:          #dc2626;
    --error-lifted:   #b91c1c;
    --error-accented: #9f1239;

    /* Notice */
    --notice:          #7f22fe;
    --notice-lifted:   #7008e7;
    --notice-accented: #5d0ec0;

    /* Grayscale */
    --grayscale:          var(--neutral-900);
    --grayscale-lifted:   var(--neutral-800);
    --grayscale-accented: var(--neutral-700);

    /* Neutral semantic */
    --neutral:          var(--neutral-500);
    --neutral-lifted:   var(--neutral-600);
    --neutral-accented: var(--neutral-700);

    /* Text */
    --text-inverted: var(--white);
    --text-muted:    var(--neutral-400);
    --text-lifted:   var(--neutral-500);
    --text-accented: var(--neutral-600);
    --text:          var(--neutral-900);

    /* Borders */
    --border-muted:    var(--neutral-200);
    --border:          var(--neutral-300);
    --border-lifted:   var(--neutral-400);
    --border-accented: var(--neutral-600);

    /* Backgrounds */
    --bg:          var(--white);
    --bg-muted:    var(--neutral-100);
    --bg-lifted:   #eef2f8;
    --bg-accented: var(--neutral-200);
    --bg-inverted: var(--neutral-900);

    /* Additional */
    --yellow-200: #fff085;
    --yellow-300: #FFB33F;
    --teal-300:   #46edd5;
    --teal-400:   #00d5be;
    --emerald-300:#5ee9b5;
    --pink-400:   #fb64b6;

    /* Rounding — slightly more than Nexus default */
    --rounding-sm: 0.375rem;
    --rounding-md: 0.625rem;
    --rounding-lg: 0.875rem;

    /* Letter spacing */
    --letter-spacing: -0.015em;

    /* Dprime-only tokens */
    --dp-gold:  #FFB33F;
    --dp-ink:   #172536;
    --dp-paper: #F5F8FC;
    --dp-sh:    0 2px 16px rgba(19,40,72,.07);
    --dp-sh2:   0 8px 32px rgba(19,40,72,.13);

    --disabled-opacity: 25%;
    --outline-sm: 1px;
    --outline-md: 2px;
    --outline-lg: 3px;
    --text-xs: 0.625rem;
    --text-sm: 0.75rem;
    --text-md: 0.875rem;
    --text-lg: 1rem;
}

/* ─── 2. Fonts ───────────────────────────────────────────── */
body { font-family: 'Manrope', system-ui, sans-serif !important; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6 { font-family: 'Sora', sans-serif !important; }
.topbar, .navbar, label, .btn, .form-control, .nav-link, .breadcrumb-item,
.list-group-item, .card-title { font-family: 'Manrope', sans-serif !important; }
.tiles .tile .title { font-family: 'Barlow Condensed', sans-serif !important; text-transform: uppercase; letter-spacing: .1em; }

/* ─── 3. Tiles ───────────────────────────────────────────── */
.tiles .tile .stat { font-family: 'Sora', sans-serif !important; font-weight: 800 !important; font-size: 2rem !important; color: var(--primary) !important; }
.tiles .tile i { color: var(--primary) !important; font-size: 1.75rem !important; }

/* ─── 4. Navbar logo tweak ───────────────────────────────── */
.navbar-brand .logo-img { max-height: 34px; }

/* ─── 5. Domain Search Hero ─────────────────────────────── */
.dph-dom-hero { background: var(--primary); position: relative; overflow: hidden; }
.dph-dom-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px); background-size: 48px 48px; pointer-events: none; }
.dph-dom-inner { padding: 52px 0 40px; position: relative; z-index: 1; text-align: center; }
.dph-dom-kicker { font-family: 'Barlow Condensed',sans-serif; text-transform: uppercase; letter-spacing: .22rem; font-size: .76rem; font-weight: 700; color: rgba(255,255,255,.5); margin-bottom: 12px; }
.dph-dom-title { color: #fff !important; font-family: 'Sora',sans-serif !important; font-size: clamp(1.8rem,4vw,2.6rem) !important; font-weight: 800 !important; letter-spacing: -.03em !important; margin-bottom: 28px !important; }
.dph-dom-bar { display: flex; align-items: stretch; background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.25); border-radius: 10px; overflow: hidden; max-width: 620px; margin: 0 auto 24px; transition: border-color .18s, background .18s; }
.dph-dom-bar:focus-within { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.18); }
.dph-dom-input-wrap { flex: 1; display: flex; align-items: center; }
.dph-dom-input-wrap i { color: rgba(255,255,255,.55); padding: 0 12px 0 16px; font-size: 14px; flex-shrink: 0; }
.dph-dom-input-wrap .form-control { border: none !important; background: transparent !important; color: #fff !important; font-size: 15px; padding: 15px 12px 15px 0; box-shadow: none !important; outline: none; height: auto !important; }
.dph-dom-input-wrap .form-control::placeholder { color: rgba(255,255,255,.5) !important; }
.dph-dom-btns { display: flex; gap: 5px; padding: 5px; flex-shrink: 0; }
.dph-dom-search-btn { background: var(--dp-gold); border: none; color: var(--dp-ink); font-weight: 700; font-size: 14px; padding: 10px 22px; border-radius: 7px; cursor: pointer; white-space: nowrap; font-family: 'Manrope',sans-serif; transition: background .18s; }
.dph-dom-search-btn:hover { background: #ffc966; color: var(--dp-ink); }
.dph-dom-xfer-btn { background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.3); color: #fff; font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 7px; cursor: pointer; white-space: nowrap; font-family: 'Manrope',sans-serif; transition: background .18s; }
.dph-dom-xfer-btn:hover { background: rgba(255,255,255,.22); color: #fff; }
.dph-tlds { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 0; }
.dph-tld { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 7px 15px; color: #fff; font-family: 'Sora',sans-serif; font-weight: 700; font-size: .88rem; cursor: default; transition: background .18s; }
.dph-tld:hover { background: rgba(255,255,255,.2); }
.dph-dom-allpricing { display: block; text-align: center; margin-top: 18px; color: rgba(255,255,255,.5) !important; font-size: 12.5px; font-weight: 600; transition: color .18s; }
.dph-dom-allpricing:hover { color: rgba(255,255,255,.9) !important; }
/* Kill the old white bg-white wrapper that Nexus injects */
.home-domain-search.bg-white { background: transparent !important; }

/* ─── 6. Cart: Product Cards ─────────────────────────────── */
/* Flatten the floated two-column layout to stacked flex */
#order-standard_cart .products .product { display: flex; flex-direction: column; }
#order-standard_cart .products .product header { background: var(--primary) !important; color: #fff !important; padding: 16px 20px !important; font-family: 'Sora',sans-serif !important; font-weight: 700 !important; font-size: 1rem !important; float: none !important; width: 100% !important; border-radius: var(--rounding-lg) var(--rounding-lg) 0 0 !important; }
#order-standard_cart .products .product header * { color: #fff !important; background: transparent !important; float: none !important; }
#order-standard_cart .products .product .product-desc { flex: 1; padding: 0 !important; float: none !important; width: 100% !important; background: #fff !important; }
#order-standard_cart .products .product .product-desc p { margin: 0; }
#order-standard_cart .products .product .product-desc ul { list-style: none !important; padding: 0 20px !important; margin: 0 !important; }
#order-standard_cart .products .product .product-desc ul li { display: flex !important; align-items: flex-start !important; gap: 10px !important; padding: 10px 0 !important; border-bottom: 1px solid var(--border-muted) !important; color: var(--text-accented) !important; font-size: 13.5px !important; float: none !important; list-style: none !important; }
#order-standard_cart .products .product .product-desc ul li:last-child { border-bottom: none !important; }
#order-standard_cart .products .product .product-desc ul li::before { content: '✓' !important; flex-shrink: 0 !important; width: 18px !important; height: 18px !important; min-width: 18px !important; background: var(--primary) !important; color: #fff !important; font-size: 9px !important; font-weight: 700 !important; border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important; margin-top: 1px !important; }
#order-standard_cart .products .product .product-desc br { display: none !important; }
/* Footer: remove float/background box, use flex row */
#order-standard_cart .products .product footer { padding: 16px 20px !important; background: var(--bg-muted) !important; border-top: 1px solid var(--border-muted) !important; float: none !important; width: 100% !important; display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 12px !important; }
#order-standard_cart .products .product footer .product-pricing { float: none !important; background: transparent !important; border: none !important; padding: 0 !important; margin: 0 !important; width: auto !important; }
#order-standard_cart .products .product footer .product-pricing .price { font-family: 'Sora',sans-serif !important; font-size: 1.45rem !important; font-weight: 800 !important; color: var(--primary) !important; display: block !important; line-height: 1.1 !important; }
#order-standard_cart .products .product footer .product-pricing br { display: none !important; }
#order-standard_cart .products .product footer .btn-order-now,
#order-standard_cart .products .product footer .btn-success { background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; font-weight: 700 !important; float: none !important; white-space: nowrap !important; }
#order-standard_cart .products .product footer .btn:hover { background: var(--primary-lifted) !important; }
/* Equal height rows */
#order-standard_cart .row-eq-height { display: flex !important; flex-wrap: wrap !important; }
#order-standard_cart .row-eq-height > [class*="col"] { display: flex !important; flex-direction: column !important; margin-bottom: 20px !important; }
#order-standard_cart .row-eq-height > [class*="col"] > .product { flex: 1 !important; }

/* ─── 7. Upgrade Package Cards ───────────────────────────── */
.dph-pkg-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 20px; margin-top: 16px; }
.dph-pkg-card { background: #fff; border: 1px solid var(--border); border-radius: var(--rounding-lg); overflow: hidden; box-shadow: var(--dp-sh); display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; }
.dph-pkg-card:hover { box-shadow: var(--dp-sh2); border-color: var(--primary); }
.dph-pkg-hd { background: var(--primary); color: #fff; padding: 14px 18px; font-family: 'Sora',sans-serif; font-weight: 700; font-size: .95rem; line-height: 1.35; }
.dph-pkg-body { padding: 18px; flex: 1; }
.dph-pkg-desc { color: var(--text-accented); font-size: 13.5px; line-height: 1.7; margin-bottom: 12px; }
.dph-pkg-price { font-family: 'Sora',sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--primary); margin-bottom: 0; }
.dph-pkg-ft { padding: 14px 18px; border-top: 1px solid var(--border-muted); }

/* ─── 8. Footer ─────────────────────────────────────────── */
footer.footer.dph-footer {
    background-color: #172536;
    color: rgba(255,255,255,.6);
    padding: 56px 0 0;
    margin-top: 40px;
}

/* Brand logo */
.dph-footer-brand { display: inline-block; margin-bottom: 16px; opacity: .75; transition: opacity .18s; text-decoration: none !important; }
.dph-footer-brand:hover { opacity: 1; }
.dph-footer-brand svg { height: 20px; width: auto; fill: #fff; display: block; }
.dph-footer-tagline { color: rgba(255,255,255,.38); font-size: 13px; line-height: 1.6; margin: 0; }

/* Column headings */
.dph-footer-heading { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .18rem; font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.28); margin-bottom: 14px; }

/* Link lists */
.dph-footer-links { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.dph-footer-links li { margin-bottom: 9px; list-style: none !important; }
.dph-footer-links li::before, .dph-footer-links li::marker { display: none !important; content: none !important; }
.dph-footer-links a { color: rgba(255,255,255,.42) !important; font-size: 13.5px !important; text-decoration: none !important; transition: color .15s; display: block; }
.dph-footer-links a:hover { color: #fff !important; }

/* Bottom bar */
.dph-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 48px;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,.08);
}
.dph-footer-bottom .copyright {
    color: rgba(255,255,255,.28) !important;
    font-size: 12px !important;
    margin: 0 !important;
}
.dph-footer-bottom .copyright a { color: rgba(255,255,255,.5) !important; text-decoration: none !important; transition: color .15s; }
.dph-footer-bottom .copyright a:hover { color: #fff !important; }
.dph-footer-right { display: flex; align-items: center; gap: 12px; }
.dph-footer-right .nav-link { color: rgba(255,255,255,.35) !important; padding: 0 6px; font-size: 15px; }
.dph-footer-right .nav-link:hover { color: #fff !important; }
footer.footer.dph-footer .btn-outline-light {
    color: rgba(255,255,255,.6);
    border-color: rgba(255,255,255,.2);
    font-size: 12px;
    padding: 4px 12px;
}
footer.footer.dph-footer .btn-outline-light:hover {
    background-color: rgba(255,255,255,.1);
    color: #fff;
}

@media(max-width: 767px) {
    .dph-footer-bottom { flex-direction: column; text-align: center; }
    .dph-footer-right { justify-content: center; }
}

/* ─── 9. Powered By — hide ───────────────────────────────── */
p:has(a[href*="whmcs.com"]) { display: none !important; }

/* ─── 10. Phone number — intl-tel-input ─────────────────── */
.intl-tel-input .form-control,
.iti .form-control { padding-left: 52px !important; }

/* ─── 11. Flags ──────────────────────────────────────────── */
.dph-flag { display: inline-block !important; width: 20px !important; height: 14px !important; border-radius: 3px !important; margin-left: 6px !important; vertical-align: middle !important; background-size: cover !important; background-position: center !important; box-shadow: 0 1px 4px rgba(0,0,0,.2) !important; font-size: 0 !important; line-height: 0 !important; }
.dph-flag-au { background-image: url('../img/flag-au.svg') !important; }
.dph-flag-de { background-image: url('../img/flag-de.svg') !important; }


/* ─── DPRIME H 1.11 fixes ─────────────────────────────────── */

/* Logo inline SVG */
.dph-logo-svg { height: 28px; width: auto; display: block; fill: #134E8E; }
header.header .navbar-brand .dph-logo-svg { fill: #134E8E; }

.knowledgebasearticle .card-body h1,
.knowledgebasearticle h1,
.kb-article h1,
.card-body h1 { font-size: 1.5rem !important; font-weight: 700 !important; line-height: 1.3 !important; }

/* Also fix general h1 to be less massive */
.primary-content h1:not(.display-title) { font-size: 1.6rem !important; }


/* Footer locale label (flag + language text, not a button) */
.dph-footer-locale-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.5);
    font-size: 12px;
}
.dph-footer-locale-label .iti-flag {
    display: inline-block;
    vertical-align: middle;
}

/* ─── Phone: restore correct intl-tel-input padding per dial-code width ── */
/* Bootstrap .form-control sets padding:0.375rem 0.75rem which beats all.css */
.intl-tel-input.separate-dial-code.allow-dropdown.iti-sdc-2 input,
.intl-tel-input.separate-dial-code.allow-dropdown.iti-sdc-2 input[type=tel] { padding-left: 76px !important; }
.intl-tel-input.separate-dial-code.allow-dropdown.iti-sdc-3 input,
.intl-tel-input.separate-dial-code.allow-dropdown.iti-sdc-3 input[type=tel] { padding-left: 84px !important; }
.intl-tel-input.separate-dial-code.allow-dropdown.iti-sdc-4 input,
.intl-tel-input.separate-dial-code.allow-dropdown.iti-sdc-4 input[type=tel] { padding-left: 92px !important; }
.intl-tel-input.separate-dial-code.allow-dropdown.iti-sdc-5 input,
.intl-tel-input.separate-dial-code.allow-dropdown.iti-sdc-5 input[type=tel] { padding-left: 100px !important; }

/* ─── Product card: remove margin-bottom on pricing, keep footer flush ─── */
body #order-standard_cart .products .product footer .product-pricing { margin-bottom: 0 !important; }
body #order-standard_cart .products .product footer { align-items: flex-end !important; padding-bottom: 16px !important; }
