/* *****************************************************

    ** Custom Stylesheet **

    Any custom styling you want to apply should be
    defined here.

***************************************************** */

/* Custom CSS for Nexus Cart
 *
 * This block allows you to customize theme colors and styles for the entire Nexus Cart template.
 *
 * To customize colors:
 * - Replace the var() references with your own hex colors or other CSS values.
 * - For example, instead of --primary: #4b5563; use --primary: #your-color;
 * - You can also override any CSS properties here.
 */

html {
    font-size: 14px;
}

:root {
    --white: #fff;

    /* Neutral shades */
    --neutral-50: #fbf9fa;
    --neutral-100: #f4f5f7;
    --neutral-200: #e4e4e7;
    --neutral-300: #d0d5dd;
    --neutral-400: #9ca3af;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: #111827;
    --neutral-950: #030712;

    /* Neutral shades */
    /* define own pallet with brand colors */
    --primary-50: var(--neutral-50);
    --primary-100: var(--neutral-100);
    --primary-200: var(--neutral-200);
    --primary-300: var(--neutral-300);
    --primary-400: var(--neutral-400);
    --primary-500: var(--neutral-500);
    --primary-600: var(--neutral-600);
    --primary-700: var(--neutral-700);
    --primary-800: var(--neutral-800);
    --primary-900: var(--neutral-900);
    --primary-950: var(--neutral-900);

    /* Primary colors */
    /* Use shades from comments if `primary` colors use other colors, then neutral */
    --primary: var(--neutral-900);          /* var(--primary-600) */
    --primary-lifted: var(--neutral-800);   /* var(--primary-700) */
    --primary-accented: var(--neutral-700); /* var(--primary-800) */

    /* Secondary colors */
    --secondary: var(--neutral-500);
    --secondary-lifted: var(--neutral-600);
    --secondary-accented: var(--neutral-700);

    /* Success colors */
    --success: #00a63e;
    --success-lifted: #008236;
    --success-accented: #016630;

    /* Info colors */
    --info: #155dfc;
    --info-lifted: #1447e6;
    --info-accented: #193cb8;

    /* Notice colors */
    --notice: #7f22fe;
    --notice-lifted: #7008e7;
    --notice-accented: #5d0ec0;

    /* Warning colors */
    --warning: #f54a00;
    --warning-lifted: #ca3500;
    --warning-accented: #9f2d00;

    /* Error colors */
    --error: #e7000b;
    --error-lifted: #c10007;
    --error-accented: #9f0712;

    /* Grayscale colors */
    --grayscale: var(--neutral-900);
    --grayscale-lifted: var(--neutral-800);
    --grayscale-accented: var(--neutral-700);

    /* Neutral colors */
    --neutral: var(--neutral-500);
    --neutral-lifted: var(--neutral-600);
    --neutral-accented: var(--neutral-700);

    /* Text neutral colors */
    --text-inverted: var(--white);
    --text-muted: var(--neutral-400);
    --text-lifted: var(--neutral-500);
    --text-accented: var(--neutral-600);
    --text: var(--neutral-900);

    /* Border neutral colors */
    --border-muted: var(--neutral-200);
    --border: var(--neutral-300);
    --border-lifted: var(--neutral-400);
    --border-accented: var(--neutral-600);

    /* Background neutral colors */
    --bg: var(--white);
    --bg-muted: var(--neutral-50);
    --bg-lifted: var(--neutral-100);
    --bg-accented: var(--neutral-200);
    --bg-inverted: var(--neutral-900);

    /* Additional colors */
    --yellow-200: #fff085;
    --yellow-300: #ffdf20;
    --teal-300: #46edd5;
    --teal-400: #00d5be;
    --emerald-300: #5ee9b5;
    --pink-400: #fb64b6;

    /* Additional custom properties */
    /* Font sizes */
    --text-xs: 0.625rem;
    --text-sm: 0.75rem;
    --text-md: 0.875rem;
    --text-lg: 1rem;

    /* Spacing */
    --outline-sm: 1px;
    --outline-md: 2px;
    --outline-lg: 3px;

    /* Rounding */
    --rounding-sm: 0.25rem;
    --rounding-md: 0.5rem;
    --rounding-lg: 0.75rem;

    /* Other */
    --letter-spacing: 0em;
    --disabled-opacity: 25%;
}

/* SMWS homepage refresh */
.smws-homepage {
    padding-bottom: 2rem;
}

.smws-hero {
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    color: #fff;
    border-radius: 14px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.smws-eyebrow {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    opacity: 0.85;
}

.smws-hero h1 {
    margin: 0.5rem 0 1rem;
    font-size: 2rem;
    line-height: 1.2;
}

.smws-hero__lead {
    font-size: 1.05rem;
    max-width: 760px;
}

.smws-hero__actions {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.smws-hero__highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.smws-highlight-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 1rem;
}

.smws-highlight-card h3 {
    margin-top: 0;
    color: #fff;
    font-size: 1.1rem;
}

.smws-home-link {
    display: block;
    background: #fff;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    color: #1f2937;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.smws-home-link:hover,
.smws-home-link:focus {
    text-decoration: none;
    border-color: #1d4ed8;
    transform: translateY(-2px);
}

.smws-updates h2 {
    margin-top: 0.75rem;
    font-size: 1.6rem;
}

.smws-announcement {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 767px) {
    .smws-hero {
        padding: 1.25rem;
    }

    .smws-hero h1 {
        font-size: 1.55rem;
    }

    .smws-hero__highlights {
        grid-template-columns: 1fr;
    }
}

/* SMWS brand-forward layout refresh */
.smws-header {
    background: #f2f2f4;
    color: #020e2a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.smws-header__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.smws-logo img {
    max-height: 54px;
}

.smws-logo--text {
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.smws-branding__tagline {
    margin: 0.35rem 0 0;
    color: #020e2a;
    font-size: 0.92rem;
}

.smws-header__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.smws-utility-link {
    color: #d7e4ff;
    font-weight: 500;
}

.smws-utility-link:hover,
.smws-utility-link:focus {
    color: #fff;
    text-decoration: none;
}

.smws-navbar.navbar {
    margin-bottom: 1.25rem;
    border-radius: 0;
    border: 0;
    background: #111d33;
}

.smws-navbar .navbar-nav > li > a {
    color: #dce8ff;
    font-weight: 600;
}

.smws-navbar .navbar-nav > li > a:hover,
.smws-navbar .navbar-nav > li > a:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.smws-homepage {
    padding-bottom: 2.5rem;
}

.smws-hero {
    background: linear-gradient(130deg, #10213a, #1b4fb2);
    border-radius: 14px;
    color: #fff;
    padding: 2.2rem;
    margin-bottom: 1.75rem;
}

.smws-services {
    margin-bottom: 2rem;
}

.smws-section-heading h2 {
    margin: 0;
}

.smws-section-heading p {
    color: #4b5563;
    margin: 0.5rem 0 1rem;
}

.smws-service-card {
    display: block;
    min-height: 180px;
    background: #fff;
    border: 1px solid #dee5ef;
    border-radius: 12px;
    padding: 1rem;
    color: #1f2937;
    text-decoration: none;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.08);
    margin-bottom: 1rem;
}

.smws-service-card span {
    display: inline-block;
    margin-top: 0.8rem;
    color: #1d4ed8;
    font-weight: 600;
}

.smws-service-card:hover,
.smws-service-card:focus {
    border-color: #1d4ed8;
    transform: translateY(-2px);
    text-decoration: none;
}

.smws-announcement {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.smws-footer {
    background: #0c172a;
    color: #d8e3f8;
    margin-top: 2rem;
}

.smws-footer__inner {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 1rem;
    padding: 2rem 0;
}

.smws-footer h4 {
    margin: 0 0 0.5rem;
    color: #fff;
}

.smws-footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.smws-footer__links a {
    color: #d8e3f8;
}

.smws-footer__links a:hover {
    color: #fff;
    text-decoration: none;
}

.smws-footer__meta {
    display: flex;
    align-items: flex-end;
}

.smws-footer__meta p {
    margin: 0;
    color: #b1c2e1;
}

@media (max-width: 991px) {
    .smws-footer__inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .smws-header__inner {
        justify-content: center;
        align-items: flex-start;
        text-align: center;
    }

    .smws-branding {
        width: 100%;
    }

    .smws-header__actions {
        width: 100%;
        justify-content: center;
    }

    .smws-navbar .navbar-collapse {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .smws-hero {
        padding: 1.4rem;
    }
}

/* Phase 3: client area visual rebrand */
.smws-dashboard {
    margin-bottom: 1.5rem;
}

.smws-dashboard .col-sm-3,
.smws-dashboard .col-xs-6 {
    margin-bottom: 1rem;
}

.smws-dashboard-card {
    display: flex;
    flex-direction: column;
    min-height: 150px;
    background: #ffffff;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    padding: 1rem;
    text-decoration: none;
    color: #1f2937;
    box-shadow: 0 8px 20px rgba(10, 25, 47, 0.08);
}

.smws-dashboard-card:hover,
.smws-dashboard-card:focus {
    text-decoration: none;
    color: #111827;
    border-color: #8fb3f5;
    transform: translateY(-2px);
}

.smws-dashboard-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    font-size: 1.15rem;
    background: #dbeafe;
    color: #1d4ed8;
}

.smws-dashboard-card__stat {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.1;
}

.smws-dashboard-card__title {
    font-size: 0.92rem;
    color: #4b5563;
    margin-top: 0.45rem;
}

.smws-dashboard-card--support .smws-dashboard-card__icon {
    background: #fee2e2;
    color: #b91c1c;
}

.smws-dashboard-card--billing .smws-dashboard-card__icon {
    background: #fef3c7;
    color: #b45309;
}

.smws-dashboard-card--domains .smws-dashboard-card__icon {
    background: #dcfce7;
    color: #15803d;
}

.smws-home-search-row {
    margin-bottom: 1.2rem;
}

.smws-home-panels .panel {
    border-radius: 12px;
    border: 1px solid #dde4ef;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.smws-home-panels .panel-heading {
    background: #f8fafc;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.smws-section-shell {
    background: #ffffff;
    border: 1px solid #dce4ef;
    border-radius: 12px;
    padding: 0.35rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.smws-account-form {
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.smws-account-form .form-control {
    border-radius: 10px;
    min-height: 42px;
}

.smws-account-form__actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.smws-service-item {
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    padding: 0.75rem;
    margin-bottom: 0.65rem;
}

.smws-view-details {
    border-radius: 8px;
    font-weight: 600;
}

@media (max-width: 767px) {
    .smws-dashboard-card {
        min-height: 132px;
    }

    .smws-account-form {
        padding: 1rem;
    }
}

/* SMWS front-door refresh (homepage + client dashboard) */
.smws-frontdoor,
.smws-client-home {
    padding: 0.5rem 0 2.75rem;
}

.smws-frontdoor-hero,
.smws-client-welcome {
    background: #ffffff;
    border: 1px solid #d9e3f2;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
    margin-bottom: 1.5rem;
}

.smws-frontdoor-hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.25rem;
}

.smws-frontdoor-hero__eyebrow,
.smws-client-welcome__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.76rem;
    color: #31528e;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.smws-frontdoor-hero h1,
.smws-client-welcome h2 {
    margin: 0 0 0.85rem;
    color: #0f172a;
    font-size: 2.15rem;
    line-height: 1.2;
}

.smws-frontdoor-hero__lead,
.smws-client-welcome p {
    color: #475569;
    font-size: 1.04rem;
    max-width: 760px;
}

.smws-frontdoor-hero__actions,
.smws-client-welcome__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.2rem;
}

.smws-frontdoor-hero__trust {
    margin-top: 0.9rem;
    color: #31528e;
    font-weight: 600;
}

.smws-frontdoor-hero__highlights {
    display: grid;
    gap: 0.75rem;
}

.smws-highlight-panel {
    border: 1px solid #dce6f6;
    background: #f8fbff;
    border-radius: 12px;
    padding: 1rem;
}

.smws-highlight-panel h3 {
    margin-top: 0;
    color: #0f172a;
    font-size: 1.1rem;
}

.smws-frontdoor-section,
.smws-client-quick-actions,
.smws-client-kb-search {
    background: #ffffff;
    border: 1px solid #dde6f2;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.35rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.smws-frontdoor-section__heading h2,
.smws-client-quick-actions h3 {
    margin: 0;
    color: #0f172a;
}

.smws-frontdoor-section__heading p {
    margin: 0.45rem 0 1.15rem;
    color: #5b6b81;
}

.smws-offer-card,
.smws-plan-preview {
    display: block;
    height: 100%;
    border: 1px solid #dce5f2;
    border-radius: 14px;
    padding: 1rem;
    color: #1e293b;
    background: #ffffff;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.05);
    margin-bottom: 1rem;
}

.smws-offer-card:hover,
.smws-offer-card:focus {
    text-decoration: none;
    border-color: #93b4e6;
    transform: translateY(-2px);
}

.smws-offer-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e7f0ff;
    color: #1d4ed8;
    margin-bottom: 0.75rem;
}

.smws-offer-card__cta {
    margin-top: 0.7rem;
    display: inline-block;
    font-weight: 600;
    color: #1d4ed8;
}

.smws-plan-preview .btn {
    margin-top: 0.6rem;
}

.smws-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.smws-quick-action {
    border: 1px solid #d8e3f2;
    border-radius: 12px;
    min-height: 74px;
    display: flex;
    gap: 0.45rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-decoration: none;
    color: #0f172a;
    background: #f9fbff;
    text-align: center;
    padding: 0.8rem 0.65rem;
}

.smws-quick-action i {
    color: #1d4ed8;
}

.smws-quick-action:hover,
.smws-quick-action:focus {
    text-decoration: none;
    border-color: #90afe0;
    background: #f2f7ff;
}

.smws-frontdoor-trust {
    background: #f8fbff;
}

.smws-trust-chip {
    border: 1px solid #d6e2f2;
    border-radius: 999px;
    background: #ffffff;
    padding: 0.6rem 0.9rem;
    margin-bottom: 0.7rem;
    text-align: center;
    font-weight: 600;
    color: #314760;
}

.smws-domain-secondary {
    text-align: left;
    background: #fcfdff;
}

.smws-navbar__account-links > li > a {
    font-weight: 600;
}

.smws-client-welcome {
    display: flex;
    justify-content: space-between;
    gap: 1.1rem;
    align-items: center;
}

.smws-client-kb-search .home-kb-search {
    margin-bottom: 0;
}

.smws-footer__brand p,
.smws-footer__meta p {
    margin-bottom: 0;
}

.smws-footer__links h5 {
    color: #ffffff;
    margin: 0 0 0.65rem;
}

@media (max-width: 991px) {
    .smws-frontdoor-hero,
    .smws-client-welcome {
        grid-template-columns: 1fr;
        display: block;
    }

    .smws-quick-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .smws-frontdoor-hero,
    .smws-client-welcome,
    .smws-frontdoor-section,
    .smws-client-quick-actions,
    .smws-client-kb-search {
        padding: 1.1rem;
        border-radius: 14px;
    }

    .smws-frontdoor-hero h1,
    .smws-client-welcome h2 {
        font-size: 1.7rem;
    }

    .smws-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .smws-footer__meta {
        align-items: flex-start;
        gap: 0.7rem;
    }
}

/* SMWS infographic-inspired hosting presentation */
.smws-frontdoor-hero,
.smws-frontdoor-hosting-map,
.smws-frontdoor-hosting-pillars {
    border-color: rgba(120, 183, 255, 0.35);
    background: radial-gradient(circle at 82% 10%, rgba(47, 215, 255, 0.18), transparent 34%), linear-gradient(150deg, #041633 0%, #0a2e61 63%, #0d4a88 100%);
    color: #e8f3ff;
    box-shadow: 0 20px 40px rgba(2, 13, 36, 0.32);
}

.smws-frontdoor-hero h1,
.smws-frontdoor-hosting-map .smws-frontdoor-section__heading h2,
.smws-frontdoor-hosting-pillars .smws-frontdoor-section__heading h2 {
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.smws-frontdoor-hero__lead,
.smws-frontdoor-hosting-map .smws-frontdoor-section__heading p,
.smws-frontdoor-hosting-pillars .smws-frontdoor-section__heading p {
    color: #c5daf3;
}

.smws-frontdoor-hero__eyebrow {
    color: #82e9ff;
}

.smws-frontdoor-hero__trust {
    color: #98edff;
}

.smws-frontdoor-hero__actions .btn-primary {
    background: linear-gradient(125deg, #2ad8ff 0%, #1d8ee6 100%);
    border-color: #27aef2;
    color: #042b4f;
    font-weight: 700;
}

.smws-frontdoor-hero__actions .btn-default {
    background: rgba(4, 23, 53, 0.55);
    border-color: rgba(173, 214, 255, 0.5);
    color: #ecf6ff;
}

.smws-highlight-panel {
    border-color: rgba(165, 212, 255, 0.32);
    background: rgba(232, 245, 255, 0.94);
}

.smws-highlight-panel p {
    color: #1f3d5e;
}

.smws-plan-preview__banner {
    display: inline-block;
    border-radius: 999px;
    padding: 0.22rem 0.68rem;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.smws-frontdoor-hosting-map .smws-plan-preview {
    border: 1px solid rgba(165, 205, 255, 0.3);
    background: rgba(235, 246, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 15px 26px rgba(0, 16, 45, 0.25);
}

.smws-frontdoor-hosting-map .smws-plan-preview h3 {
    margin-top: 0;
    text-transform: uppercase;
    color: #0d2a50;
}

.smws-frontdoor-hosting-map .smws-plan-preview p {
    color: #37567d;
}

.smws-plan-preview--diy .smws-plan-preview__banner {
    background: #1c9855;
    color: #fff;
}

.smws-plan-preview--shared .smws-plan-preview__banner {
    background: #db9a00;
    color: #fff;
}

.smws-plan-preview--handsfree {
    border-color: rgba(53, 195, 255, 0.52);
    box-shadow: 0 18px 30px rgba(1, 24, 62, 0.34), 0 0 24px rgba(52, 198, 255, 0.24);
}

.smws-plan-preview--handsfree .smws-plan-preview__banner {
    background: #ef6d1f;
    color: #fff;
}

.smws-home-support-arc {
    margin-top: 0.75rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #1ea35b 0%, #db9a00 52%, #ef6d1f 100%);
    padding: 0.25rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
}

.smws-home-support-arc span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f2d52;
    text-align: center;
    font-size: 0.75rem;
    padding: 0.28rem 0.45rem;
    font-weight: 700;
    text-transform: uppercase;
}

.smws-frontdoor-hosting-pillars .smws-trust-chip {
    background: rgba(238, 247, 255, 0.95);
    border-color: rgba(170, 211, 255, 0.4);
    color: #15365d;
    border-radius: 12px;
}

@media (max-width: 767px) {
    .smws-frontdoor-hosting-map .smws-plan-preview,
    .smws-frontdoor-hosting-pillars .smws-trust-chip {
        margin-bottom: 0.75rem;
    }

    .smws-home-support-arc {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .smws-home-support-arc span {
        border-radius: 10px;
    }
}
