/* ********************************************************
    Devsouls brand for the WHMCS Nexus theme
    (custom.css is preserved by WHMCS updates)
***************************************************** */

@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@300;400;500;600;700&display=swap');

:root {
    --white: #fff;

    /* Cool ink neutrals */
    --neutral-50: #f7f9fa;
    --neutral-100: #f1f4f5;
    --neutral-200: #e3e8ea;
    --neutral-300: #cfd7da;
    --neutral-400: #94a3a8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1b2535;
    --neutral-900: #0b1220;
    --neutral-950: #050914;

    /* Devsouls mint / teal ramp (logo mint #03DFAC) */
    --primary-50: #ecfdf7;
    --primary-100: #d1faec;
    --primary-200: #a6f4da;
    --primary-300: #6be9c4;
    --primary-400: #1cf2b9;
    --primary-500: #03c99a;
    --primary-600: #04a27e;
    --primary-700: #087a63;
    --primary-800: #0b5f4f;
    --primary-900: #0c4e42;
    --primary-950: #052e27;

    --primary: var(--primary-700);
    --primary-lifted: var(--primary-800);
    --primary-accented: var(--primary-900);

    --secondary: var(--neutral-600);
    --secondary-lifted: var(--neutral-700);
    --secondary-accented: var(--neutral-800);

    --success: #059669;
    --success-lifted: #047857;
    --success-accented: #065f46;

    --info: #0e7490;
    --info-lifted: #155e75;
    --info-accented: #164e63;

    --notice: #6d28d9;
    --notice-lifted: #5b21b6;
    --notice-accented: #4c1d95;

    --warning: #d97706;
    --warning-lifted: #b45309;
    --warning-accented: #92400e;

    --error: #dc2626;
    --error-lifted: #b91c1c;
    --error-accented: #991b1b;

    --grayscale: var(--neutral-900);
    --grayscale-lifted: var(--neutral-800);
    --grayscale-accented: var(--neutral-700);

    --neutral: var(--neutral-500);
    --neutral-lifted: var(--neutral-600);
    --neutral-accented: var(--neutral-700);

    --text-inverted: var(--white);
    --text-muted: var(--neutral-400);
    --text-lifted: var(--neutral-500);
    --text-accented: var(--neutral-600);
    --text: var(--neutral-900);

    --border-muted: var(--neutral-200);
    --border: var(--neutral-300);
    --border-lifted: var(--neutral-400);
    --border-accented: var(--neutral-600);

    --bg: var(--white);
    --bg-muted: var(--neutral-50);
    --bg-lifted: var(--neutral-100);
    --bg-accented: var(--neutral-200);
    --bg-inverted: var(--neutral-900);

    --yellow-200: #fff085;
    --yellow-300: #ffdf20;
    --teal-300: #6be9c4;
    --teal-400: #1cf2b9;
    --emerald-300: #5ee9b5;
    --pink-400: #fb64b6;

    --text-xs: 0.6875rem;
    --text-sm: 0.8125rem;
    --text-md: 0.9375rem;
    --text-lg: 1.0625rem;

    --outline-sm: 1px;
    --outline-md: 2px;
    --outline-lg: 3px;

    --rounding-sm: 0.375rem;
    --rounding-md: 0.625rem;
    --rounding-lg: 0.875rem;

    --letter-spacing: -0.005em;
    --disabled-opacity: 35%;

    --ds-shadow-sm: 0 1px 2px rgba(11, 18, 32, .06);
    --ds-shadow-md: 0 1px 2px rgba(11, 18, 32, .05), 0 8px 24px -8px rgba(11, 18, 32, .12);
    --ds-mint: #03dfac;
}

/* ---------- Type ---------- */
body,
button,
input,
select,
textarea,
.btn {
    font-family: 'Geologica', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
body {
    color: var(--text);
    background: var(--bg-muted);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--neutral-900);
}
.price, .amt, .total-due-today, [class*="price"] {
    font-variant-numeric: tabular-nums;
}
a { color: var(--primary-700); }
a:hover { color: var(--primary-900); }

/* ---------- Surfaces ---------- */
.card,
.panel,
.list-group,
.modal-content {
    border-color: var(--border-muted);
    border-radius: var(--rounding-lg);
    box-shadow: var(--ds-shadow-sm);
}
.card:hover { box-shadow: var(--ds-shadow-md); }
.card-header {
    background: var(--bg);
    border-bottom-color: var(--border-muted);
    font-weight: 600;
}

/* ---------- Header ---------- */
header.header,
#header,
.header {
    background: var(--bg);
    border-bottom: 1px solid var(--border-muted);
}
.header .logo img,
.navbar-brand img,
.logo-img {
    max-height: 40px;
    width: auto;
}

/* ---------- Buttons & focus ---------- */
.btn {
    border-radius: var(--rounding-md);
    font-weight: 500;
    transition: background-color .15s ease, box-shadow .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary,
.btn-success {
    background: var(--primary-700);
    border-color: var(--primary-700);
    color: #fff;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus {
    background: var(--primary-800);
    border-color: var(--primary-800);
    color: #fff;
}
.btn:focus,
.form-control:focus,
.custom-select:focus {
    box-shadow: 0 0 0 3px rgba(3, 223, 172, .35);
    border-color: var(--primary-500);
}
.badge-success,
.label-success { background: var(--primary-100); color: var(--primary-900); }

/* Mint accent line under the header */
.header::after,
#header::after {
    content: "";
    display: block;
    height: 2px;
    background: linear-gradient(90deg, var(--ds-mint), var(--primary-600));
    opacity: .9;
}

/* ---------- Forms ---------- */
.form-control,
.custom-select {
    border-radius: var(--rounding-md);
    border-color: var(--border);
    min-height: 44px;
}

/* ---------- Tables (client area lists) ---------- */
.table th {
    font-weight: 600;
    color: var(--text-accented);
    border-top: 0;
}
.table td, .table th { vertical-align: middle; }

/* ---------- Responsive ---------- */
img, svg, video { max-width: 100%; height: auto; }
.table-responsive,
.dataTables_wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 767.98px) {
    .container, .container-fluid { padding-left: 16px; padding-right: 16px; }
    h1, .h1 { font-size: 1.6rem; }
    h2, .h2 { font-size: 1.35rem; }
    .btn { min-height: 44px; }
    .btn-block-mobile,
    .order-summary .btn,
    #btnCompleteOrder,
    .btn-checkout { width: 100%; }
    .card { border-radius: var(--rounding-md); }
    .table td, .table th { white-space: nowrap; }
    /* stack sidebars under content on phones */
    .sidebar, .col-lg-3.sidebar { margin-top: 16px; }
}
@media (max-width: 575.98px) {
    body { font-size: 15px; }
    .modal-dialog { margin: 8px; }
}
/* ---------- Plan feature lists (product descriptions) ---------- */
.product-desc ul.features { list-style: none; padding-left: 0; margin: 12px 0 0; }
.product-desc ul.features li { position: relative; padding: 5px 0 5px 26px; font-size: var(--text-md); color: var(--text-accented); line-height: 1.35; }
.product-desc ul.features li::before { position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.product-desc ul.features.included li::before { content: "\2713"; background: var(--primary-100); color: var(--primary-800); }
.product-desc ul.features.excluded li { color: var(--text-muted); }
.product-desc ul.features.excluded li::before { content: "\2715"; background: var(--bg-accented); color: var(--neutral-500); }
.product-desc ul.features.excluded { margin-top: 4px; }

/* Cart sidebars take less room on phones */
@media (max-width: 991.98px) {
    .cart-sidebar { display: none; }
}
/* Logo sizing (beats theme's 60px rule) */
header#header .navbar-brand img.logo-img { max-height: 40px; width: auto; max-width: 100%; }
@media (max-width: 575.98px) {
    header#header .navbar-brand { max-width: 58vw; margin-right: 8px; }
    header#header .navbar-brand img.logo-img { max-height: 30px; }
    header#header .container { flex-wrap: nowrap; }
}
/* Phones: hide the cart's category/action dropdown boxes (Store menu stays in the header) */
@media (max-width: 991.98px) {
    #order-standard_cart .sidebar-collapsed { display: none !important; }
}
/* sticky footer: footer always sits at the bottom on short pages */
html{height:100%}
body{min-height:100vh;display:flex;flex-direction:column}
body > #header, body > .master-breadcrumb, body > #footer{flex-shrink:0}
body > #main-body{flex:1 0 auto}
#footer{margin-top:auto}

/* ---- Mobile fixes (21 Nov 2026) ---- */
/* MarketConnect "Last Chance" upsell cards: brand button + stack on phones */
#order-standard_cart .mc-promos .mc-promo .header .btn-add{background:var(--primary-700);border-color:var(--primary-700);color:#fff}
#order-standard_cart .mc-promos .mc-promo .header .btn-add:hover,#order-standard_cart .mc-promos .mc-promo .header .btn-add:focus{background:var(--primary-800);border-color:var(--primary-800);color:#fff}
#order-standard_cart .mc-promos .mc-promo .header .btn-add .arrow{background:var(--primary-800)}
#order-standard_cart .mc-promos .mc-promo .header .price{color:var(--neutral-900)}
@media (max-width:575.98px){
  #order-standard_cart .mc-promos .mc-promo{height:auto}
  #order-standard_cart .mc-promos .mc-promo .header{height:auto;overflow:visible;display:flex;flex-wrap:wrap;align-items:center;padding:12px 12px 12px 4px}
  #order-standard_cart .mc-promos .mc-promo .header .expander{float:none;order:1;width:24px;height:auto;line-height:1}
  #order-standard_cart .mc-promos .mc-promo .header .icon{float:none;order:2;width:44px;height:auto;margin:0}
  #order-standard_cart .mc-promos .mc-promo .header .icon img{max-width:40px;max-height:40px}
  #order-standard_cart .mc-promos .mc-promo .header .content{order:3;flex:1 1 0;min-width:0;width:auto;height:auto;margin:0 0 0 8px;padding:0}
  #order-standard_cart .mc-promos .mc-promo .header .content .truncate{white-space:normal;overflow:visible;text-overflow:clip}
  #order-standard_cart .mc-promos .mc-promo .header .cta{float:none;order:4;flex:0 0 100%;display:flex;align-items:center;justify-content:space-between;height:auto;padding:10px 0 0 28px}
  #order-standard_cart .mc-promos .mc-promo .header .cta .price{margin:0}
}
/* Client-area lists: hide secondary columns on phones so key info fits */
@media (max-width:575.98px){
  #tableInvoicesList th:nth-child(2),#tableInvoicesList td:nth-child(2),
  #tableInvoicesList th:nth-child(5),#tableInvoicesList td:nth-child(5),
  #tableServicesList th:nth-child(3),#tableServicesList td:nth-child(3),
  #tableDomainsList th:nth-child(4),#tableDomainsList td:nth-child(4),
  #tableQuotesList th:nth-child(3),#tableQuotesList td:nth-child(3),
  #tableQuotesList th:nth-child(4),#tableQuotesList td:nth-child(4),
  #tableTicketsList th:nth-child(4),#tableTicketsList td:nth-child(4){display:none}
}
/* devsouls: MarketConnect landing-page patches (21 Nov 2026) */
/* 360 Monitoring: vendor "cost of downtime / 99.9% uptime" block */
.section-monitoring{display:none!important}
/* CodeGuard: vendor "every 0.65 seconds" stat strip */
#overview.image-standout{display:none!important}
/* Site Builder: dead demo template link */
.type-ecom:has(a[href*="grape-farm-ecommerce"]){display:none!important}