/* ==========================================================================
   mCloud — Site-wide design system
   Loaded on every page (see includes/head.tpl). Scoped under body.mc.
   Homepage-only sections live in landing.css.
   ========================================================================== */

.mc {
    --bg: #ffffff;
    --bg-2: #f5f7fa;
    --fg: #0b1220;
    --fg-2: #3b4558;
    --fg-3: #677185;
    --line: #e4e7ec;
    --line-2: #d0d5dd;

    --brand: #0e6fb5;
    --brand-strong: #0a5a94;
    --brand-bright: #29a9e1;
    --brand-tint: #eaf4fb;
    --on-brand: #ffffff;

    --inv-bg: #0b1220;
    --inv-bg-2: #121b2d;
    --inv-fg: #f3f5f8;
    --inv-fg-2: #a3acbc;
    --inv-line: rgba(255, 255, 255, .1);

    --ok: #12805c;
    --ok-tint: #e7f6ef;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow-lg: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 24px -6px rgba(16, 24, 40, .08), 0 32px 64px -12px rgba(16, 24, 40, .12);

    --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --section: clamp(72px, 9vw, 120px);
}

[data-bs-theme="dark"] .mc {
    --bg: #0a0f1a;
    --bg-2: #0f1626;
    --fg: #eef1f6;
    --fg-2: #b4bccb;
    --fg-3: #8a93a6;
    --line: #1e2738;
    --line-2: #2a3549;

    --brand: #4cb8ec;
    --brand-strong: #7acbf2;
    --brand-tint: rgba(76, 184, 236, .12);
    --on-brand: #04121f;

    --inv-bg: #111a2c;
    --inv-bg-2: #172238;

    --ok: #3bd08f;
    --ok-tint: rgba(59, 208, 143, .12);

    --shadow-sm: none;
    --shadow-lg: 0 0 0 1px rgba(255, 255, 255, .04), 0 24px 48px -12px rgba(0, 0, 0, .6);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

body.mc {
    /* The theme sets body { height: 100% }, which would release the sticky header after one screen. */
    height: auto;
    min-height: 100%;
    background: var(--bg);
    color: var(--fg-2);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.mc h1, .mc h2, .mc h3, .mc h4 {
    font-family: var(--font);
    color: var(--fg);
}

.mc ::selection { background: var(--brand); color: var(--on-brand); }

.mc :focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}

.lp-skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--fg);
    color: var(--bg) !important;
    font-weight: 500;
}
.lp-skip:focus { top: 12px; }

.lp-container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.lp-eyebrow {
    margin: 0 0 16px;
    font-family: var(--mono);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brand);
}

.lp-h2 {
    margin: 0;
    font-size: clamp(1.875rem, 1.35rem + 1.9vw, 2.875rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.03em;
    text-wrap: balance;
}

.lp-lead {
    margin: 20px 0 0;
    max-width: 60ch;
    font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
    line-height: 1.6;
    color: var(--fg-3);
    text-wrap: pretty;
}

.lp-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 56px); }
.lp-head--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    max-width: none;
}

.lp-section { padding: var(--section) 0; background: var(--bg); }
.lp-section--tint { background: var(--bg-2); }

/* Links & buttons ---------------------------------------------------------- */

.lp-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
    color: var(--brand) !important;
    text-decoration: none !important;
}
.lp-link span { transition: transform .2s ease; }
.lp-link:hover span { transform: translateX(3px); }
.lp-link--muted { color: var(--fg-3) !important; }
.lp-link--muted:hover { color: var(--fg) !important; }

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.005em;
    white-space: nowrap;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.lp-btn--block { width: 100%; }

.lp-btn--primary { background: var(--brand); color: var(--on-brand) !important; }
.lp-btn--primary:hover { background: var(--brand-strong); }

.lp-btn--outline { background: var(--bg); border-color: var(--line-2); color: var(--fg) !important; box-shadow: var(--shadow-sm); }
.lp-btn--outline:hover { border-color: var(--fg-3); }

.lp-btn--ghost { background: transparent; color: var(--fg-2) !important; }
.lp-btn--ghost:hover { background: var(--bg-2); color: var(--fg) !important; }

.lp-btn--light { background: #fff; color: #0b1220 !important; }
.lp-btn--light:hover { background: #e8eef5; }

.lp-btn--ghost-light { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff !important; }
.lp-btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }

.lp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.lp-pill {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
}
.lp-pill--ok { background: var(--ok-tint); color: var(--ok); }
.lp-pill--brand { background: var(--brand-tint); color: var(--brand); }

/* --------------------------------------------------------------------------
   Header (restyles the shared tt-single-navbar markup on the homepage only)
   -------------------------------------------------------------------------- */

.mc .tt-header,
.mc .tt-header.affix {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 0 !important;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: none;
    animation: none;
}
/* Translucent header only on desktop: backdrop-filter would trap the
   fixed-position offcanvas menu used below 1200px. */
@media (min-width: 1200px) {
    .mc .tt-header,
    .mc .tt-header.affix {
        background: color-mix(in srgb, var(--bg) 88%, transparent);
        -webkit-backdrop-filter: saturate(180%) blur(12px);
        backdrop-filter: saturate(180%) blur(12px);
    }
}
.mc .tt-header .navbar:not(.offcanvas-collapse) { padding: 0; min-height: 68px; background: transparent !important; }
.mc .tt-header .navbar > .container {
    max-width: calc(var(--container) + var(--gutter) * 2);
    padding: 0 var(--gutter);
}
.mc .tt-header .navbar-brand { margin: 0 24px 0 -18px; padding: 0; }
.mc .tt-header .logo-img { top: 0; height: 62px; width: auto; max-width: none; margin: -4px 0; }
/* The uploaded logo has an opaque white background; use the cut-out version on dark. */
[data-bs-theme="dark"] .mc .tt-header .logo-img {
    content: url("../img/logo-mcloud-white.png");
    height: 30px;
    margin: 0 0 0 18px;
}

.mc .tt-header .tt-main-header ul li a {
    font-family: var(--font);
    font-size: 14.5px;
    font-weight: 500;
    color: var(--fg-2);
    transition: color .15s ease;
}
.mc .tt-header .tt-main-header ul li a:hover,
.mc .tt-header .tt-main-header ul li a[aria-expanded="true"] { color: var(--fg); }
.mc .tt-header .tt-main-header ul li a.pr-4 { padding-right: 22px; }

.mc .tt-main-header .dropdown-menu {
    top: 44px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: var(--shadow-lg);
}
.mc .tt-main-header .dropdown-menu .dropdown-item { background: transparent; }
.mc .tt-main-header .dropdown-menu a.dropdown-item {
    display: block;
    padding: 8px 10px !important;
    border-radius: 6px;
    font-size: 14px;
}
.mc .tt-main-header .dropdown-menu a.dropdown-item:hover { background: var(--bg-2); color: var(--fg); }

.mc .tt-toolbar-wrap .navbar-nav { align-items: center; gap: 4px; }
.mc .tt-toolbar-wrap .nav-item > a,
.mc .tt-toolbar-wrap .dropdown > a { color: var(--fg-2); }
.mc .tt-toolbar-wrap a.btn-sm {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-weight: 500;
}
.mc .tt-toolbar-wrap a.btn-sm i { display: none; }
.mc .tt-toolbar-wrap a.btn-sm span { margin: 0 !important; }
.mc .tt-toolbar-wrap a.btn-sm[href$="clientarea.php"] {
    background: var(--fg);
    color: var(--bg) !important;
}
.mc .tt-toolbar-wrap a.btn-sm[href$="clientarea.php"]:hover { background: var(--fg-2); }
.mc .tt-cart-badge { background: var(--brand); color: var(--on-brand); }

@media (max-width: 1199.98px) {
    .mc .tt-header .offcanvas-collapse {
        background: var(--bg) !important;
        border-right: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
    }
    .mc .tt-header .offcanvas-collapse #mainNavbar { padding: 24px 20px !important; }
    .mc .tt-header .offcanvas-collapse .navbar-nav > li > a { padding: 12px 0 !important; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--fg); }
    .mc .tt-header .offcanvas-collapse .dropdown-menu { box-shadow: none; border: 0; padding: 4px 0 8px 12px; background: transparent; }
    .mc .tt-header .navbar > .container { flex-wrap: nowrap; }
}
@media (max-width: 575.98px) {
    .mc .tt-header .logo-img { height: 44px; }
    .mc .tt-toolbar-wrap a.btn-sm[href$="register.php"] { display: none; }
}

/* Theme switch: quieter, bottom-right */
.mc .tt-color-switch {
    top: auto;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    line-height: 1;
    background: transparent;
}
.mc .tt-color-switch .tt-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--bg);
    color: var(--fg-2);
    box-shadow: var(--shadow-lg);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.lp-footer {
    padding: clamp(56px, 7vw, 88px) 0 32px;
    border-top: 1px solid var(--line);
    background: var(--bg);
    color: var(--fg-3);
    font-size: 15px;
}
.lp-footer a { color: var(--fg-2); text-decoration: none; transition: color .15s ease; }
.lp-footer a:hover { color: var(--brand); }
.lp-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
    gap: 48px;
}
.lp-footer__logo { display: inline-block; }
.lp-footer__logo img { display: block; width: auto; }
.lp-footer__logo-light { height: 53px; margin: -10px 0 -10px -24px; }
.lp-footer__logo-dark { display: none !important; height: 32px; }
[data-bs-theme="dark"] .mc .lp-footer__logo-light { display: none !important; }
[data-bs-theme="dark"] .mc .lp-footer__logo-dark { display: block !important; }
.lp-footer__brand p { max-width: 36ch; margin: 12px 0 24px; line-height: 1.6; }
.lp-footer address { margin: 0; font-style: normal; line-height: 1.75; }
.lp-footer address a { color: var(--fg); font-weight: 500; }
.lp-footer__social { display: flex; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.lp-footer__social li { margin: 0 !important; }
.lp-footer__social a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--fg-2);
}
.lp-footer__social a.btn:hover { border-color: var(--brand); color: var(--brand); }
.lp-footer__col h2 {
    margin: 0 0 20px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--fg) !important;
}
.lp-footer__col ul { margin: 0; padding: 0; list-style: none; }
.lp-footer__col li + li { margin-top: 12px; }
.lp-footer__pay {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    margin-top: 56px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.lp-footer__pay > span { font-size: 14px; }
.lp-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 24px;
    font-size: 14px;
}
.lp-footer__bottom p { margin: 0; }
.lp-footer__locale {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: transparent;
    font-family: var(--font);
    font-size: 14px;
    color: var(--fg-2);
    cursor: pointer;
}
.lp-footer__locale:hover { color: var(--fg); border-color: var(--line-2); }
.lp-footer__locale svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }

@media (prefers-reduced-motion: reduce) {
    .mc *, .mc *::before, .mc *::after { transition: none !important; animation: none !important; }
}

/* --------------------------------------------------------------------------
   Payment logos (hero strip + footer)
   -------------------------------------------------------------------------- */

.lp-paylogos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lp-paylogos li {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}
.lp-paylogos img { display: block; width: auto; height: 22px; }
.lp-paylogos li.lp-paylogos__icon { min-width: 0; width: 48px; padding: 0; overflow: hidden; border: 0; }
.lp-paylogos__icon img { width: 100%; height: 100% !important; }
.lp-paylogos__square img { height: 32px !important; }
.lp-paylogos li:nth-child(4) img { height: 18px; }
.lp-paylogos li:nth-child(5) img { height: 26px; }
.lp-trust__list.lp-paylogos { justify-content: flex-end; gap: 12px; }
[data-bs-theme="dark"] .mc .lp-paylogos li { border-color: transparent; }

.lp-paylogos--sm li { min-width: 64px; height: 36px; padding: 0 10px; border-radius: 8px; }
.lp-paylogos--sm li.lp-paylogos__icon { width: 36px; }
.lp-paylogos--sm img { height: 16px; }
.lp-paylogos--sm .lp-paylogos__square img { height: 24px !important; }
.lp-paylogos--sm li:nth-child(4) img { height: 13px; }
.lp-paylogos--sm li:nth-child(5) img { height: 19px; }

/* --------------------------------------------------------------------------
   Back to top — blue fill shows how far down the page you are
   -------------------------------------------------------------------------- */

.lp-totop {
    --lp-progress: 0%;
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(to top, #29a9e1 var(--lp-progress), #1f2430 var(--lp-progress));
    color: #fff;
    box-shadow: 0 8px 24px -6px rgba(11, 18, 32, .45);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s, box-shadow .2s ease;
}
.lp-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.lp-totop:hover { box-shadow: 0 10px 28px -6px rgba(11, 18, 32, .6); }
.lp-totop:hover svg { transform: translateY(-2px); }
.lp-totop svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease;
}
[data-bs-theme="dark"] .mc .lp-totop { background: linear-gradient(to top, #29a9e1 var(--lp-progress), #2a3142 var(--lp-progress)); }
#lp-main:focus { outline: none; }

/* Theme switch moves up so the two round buttons stack */
.mc .tt-color-switch { bottom: 80px !important; }
@media (max-width: 639.98px) {
    .lp-totop { right: 16px; bottom: 16px; width: 44px; height: 44px; }
    .mc .tt-color-switch { right: 18px !important; bottom: 70px !important; }
}


@media (max-width: 1023.98px) {
    .lp-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lp-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 639.98px) {
    .lp-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
}

/* ==========================================================================
   Theme bridge — remap the Hostlar theme variables to the mCloud tokens so
   every legacy component picks up the new palette and type.
   ========================================================================== */

:root,
:root[data-bs-theme="light"] {
    --primary: #0e6fb5;
    --primary-dark: #0a5a94;
    --primary-darker: #0a5a94;
    --primary-light: #eaf4fb;
    --gray: #677185;
    --gray-light: #f5f7fa;
    --body-color: #3b4558;
    --heading-color: #0b1220;
    --border-color: #e4e7ec;
    --custom-radius: 12px;
    --font-family-sans-serif: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-family-monospace: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
:root[data-bs-theme="dark"] {
    --primary: #4cb8ec;
    --primary-dark: #7acbf2;
    --primary-darker: #0f1626;
    --primary-light: rgba(76, 184, 236, .12);
    --gray: #8a93a6;
    --gray-light: #0f1626;
    --dark: #0a0f1a;
    --body-color: #b4bccb;
    --heading-color: #eef1f6;
    --border-color: #1e2738;
    --custom-radius: 12px;
    --font-family-sans-serif: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-family-monospace: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.mc, .mc p, .mc li, .mc td, .mc th, .mc label, .mc input, .mc select, .mc textarea, .mc button, .mc .btn,
.mc .h1, .mc .h2, .mc .h3, .mc .h4, .mc .h5, .mc .h6, .mc h5, .mc h6 { font-family: var(--font); }
.mc h1, .mc h2, .mc h3, .mc h4, .mc h5, .mc h6,
.mc .h1, .mc .h2, .mc .h3, .mc .h4, .mc .h5, .mc .h6 { letter-spacing: -.015em; }
.mc h5, .mc h6, .mc .h5, .mc .h6 { color: var(--fg); }
.mc a { color: var(--brand); }
.mc a:hover { color: var(--brand-strong); }
.mc .text-muted { color: var(--fg-3) !important; }
.mc hr { border-color: var(--line); }

/* --------------------------------------------------------------------------
   Page header (inner pages)
   -------------------------------------------------------------------------- */

.mc .mc-pagehead {
    padding: clamp(32px, 5vw, 56px) 0 clamp(28px, 4vw, 40px);
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    background-image: none;
}
.mc .mc-pagehead::before, .mc .mc-pagehead::after { display: none; }
.mc .mc-pagehead .container,
.mc #main-body > .container,
.mc .tt-header .navbar > .container { max-width: calc(var(--container) + var(--gutter) * 2); padding-left: var(--gutter); padding-right: var(--gutter); }
.mc .mc-pagehead__title {
    margin: 0;
    font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.625rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -.03em;
    color: var(--fg) !important;
}
.mc .mc-pagehead__lead { max-width: 60ch; margin: 12px 0 0; font-size: 17px; color: var(--fg-3); }
.mc .mc-pagehead__crumbs { position: static; margin: 0 0 14px; padding: 0; background: none; }
.mc .mc-pagehead__crumbs .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    font-size: 13.5px;
}
.mc .mc-pagehead__crumbs .breadcrumb-item,
.mc .mc-pagehead__crumbs .breadcrumb-item a { color: var(--fg-3); text-decoration: none; }
.mc .mc-pagehead__crumbs .breadcrumb-item a:hover { color: var(--brand); }
.mc .mc-pagehead__crumbs .breadcrumb-item.active { color: var(--fg-2); }
.mc .mc-pagehead__crumbs .breadcrumb-item + .breadcrumb-item { padding-left: 4px; }
.mc .mc-pagehead__crumbs .breadcrumb-item + .breadcrumb-item::before { content: "/"; padding-right: 8px; color: var(--line-2); }

.mc:not(.lp-home) #main-body { padding: clamp(32px, 5vw, 56px) 0 clamp(64px, 8vw, 96px); background: var(--bg-2); }
.mc:not(.lp-home) #main-body.tt-auth-wrap { padding: clamp(32px, 6vw, 72px) 0; }

/* --------------------------------------------------------------------------
   Cards, sidebar, list groups
   -------------------------------------------------------------------------- */

.mc .card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: none;
}
.mc .card-header, .mc .card-footer { border-color: var(--line); background: transparent; }
.mc .card-title { color: var(--fg); font-weight: 600; letter-spacing: -.01em; }

.mc .card-sidebar { overflow: hidden; }
.mc .card-sidebar .card-header { padding: 14px 18px; background: transparent; }
.mc .card-sidebar .card-title {
    font-family: var(--mono);
    font-size: 12px !important;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--fg-3);
}
.mc .card-sidebar .card-title i { color: var(--fg-3); }
.mc .list-group-item {
    border-color: var(--line);
    background: transparent;
    color: var(--fg-2);
    font-size: 14.5px;
}
.mc .card-sidebar .list-group-item { padding: 10px 18px; border-left: 2px solid transparent; }
.mc .list-group-item-action:hover, .mc .list-group-item-action:focus { background: var(--bg-2); color: var(--fg); }
.mc .list-group-item.active,
.mc .card-sidebar .list-group-item.active {
    border-color: var(--line);
    border-left-color: var(--brand);
    background: var(--brand-tint);
    color: var(--brand);
    font-weight: 500;
}
.mc .list-group-item.active .badge { background: var(--brand); color: var(--on-brand); }
.mc .badge { border-radius: 999px; font-weight: 500; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.mc .btn {
    border-radius: var(--radius-sm);
    font-weight: 500;
    letter-spacing: -.005em;
    box-shadow: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.mc .btn:not(.btn-sm):not(.btn-xs):not(.btn-link):not(.nav-link):not(.btn-icon):not(.p-0) { min-height: 42px; padding-left: 18px; padding-right: 18px; }
.mc .btn-lg { min-height: 48px; }
.mc .btn-primary,
.mc .btn-primary:not(:disabled):not(.disabled):active {
    border-color: var(--brand);
    background: var(--brand);
    color: var(--on-brand) !important;
}
.mc .btn-primary:hover, .mc .btn-primary:focus { border-color: var(--brand-strong); background: var(--brand-strong); }
.mc .btn-default, .mc .btn-secondary, .mc .btn-outline-primary, .mc .btn-light {
    border: 1px solid var(--line-2);
    background: var(--bg);
    color: var(--fg) !important;
}
.mc .btn-default:hover, .mc .btn-secondary:hover, .mc .btn-outline-primary:hover, .mc .btn-light:hover {
    border-color: var(--fg-3);
    background: var(--bg);
}
.mc .btn-success { border-color: #12805c; background: #12805c; color: #fff !important; }
.mc .btn-success:hover { border-color: #0d6b4c; background: #0d6b4c; }
.mc .btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.mc .form-control,
.mc .custom-select,
.mc select.form-control {
    min-height: 44px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background-color: var(--bg);
    color: var(--fg);
    font-size: 15px;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.mc textarea.form-control { min-height: 120px; }
.mc .form-control::placeholder { color: var(--fg-3); opacity: .8; }
.mc .form-control:focus,
.mc .custom-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-tint);
    outline: 0;
}
.mc label, .mc .form-control-label, .mc .col-form-label { color: var(--fg); font-size: 14px; font-weight: 500; }
.mc .input-group-text { border-color: var(--line-2); background: var(--bg-2); color: var(--fg-3); }
.mc .input-group > .form-control:not(:first-child),
.mc .input-group-merge .form-control { border-left-color: var(--line-2); }
.mc .custom-control-input:checked ~ .custom-control-label::before { border-color: var(--brand); background-color: var(--brand); }
.mc .form-text, .mc small.text-muted { font-size: 13px; }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.mc .table { color: var(--fg-2); }
.mc .table th, .mc .table td { border-color: var(--line); vertical-align: middle; }
.mc .table thead th {
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--fg-3);
}
.mc .table-hover tbody tr:hover, .mc .table-list tbody tr:hover { background: var(--bg-2); }
.mc .dataTables_wrapper .pagination .page-link,
.mc .pagination .page-link { border-color: var(--line); background: var(--bg); color: var(--fg-2); }
.mc .pagination .page-item.active .page-link { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }

/* --------------------------------------------------------------------------
   Alerts, tabs, modals, dropdowns
   -------------------------------------------------------------------------- */

.mc .alert { border-radius: var(--radius); border-width: 1px; font-size: 15px; }
.mc .alert-info { border-color: #cfe6f6; background: #f0f8fd; color: #0a5a94; }
.mc .alert-success { border-color: #c7ead9; background: #effaf4; color: #0d6b4c; }
.mc .alert-warning { border-color: #f4e2b6; background: #fffaeb; color: #8a5a00; }
.mc .alert-danger { border-color: #f6cfcf; background: #fff3f3; color: #a42020; }
[data-bs-theme="dark"] .mc .alert-info { border-color: rgba(76, 184, 236, .3); background: rgba(76, 184, 236, .08); color: #9fd8f5; }
[data-bs-theme="dark"] .mc .alert-success { border-color: rgba(59, 208, 143, .3); background: rgba(59, 208, 143, .08); color: #8fe6bf; }
[data-bs-theme="dark"] .mc .alert-warning { border-color: rgba(245, 180, 60, .3); background: rgba(245, 180, 60, .08); color: #f5cf86; }
[data-bs-theme="dark"] .mc .alert-danger { border-color: rgba(240, 90, 90, .3); background: rgba(240, 90, 90, .08); color: #f5a3a3; }

.mc .nav-tabs { border-color: var(--line); }
.mc .nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--fg-3); font-weight: 500; }
.mc .nav-tabs .nav-link:hover { color: var(--fg); }
.mc .nav-tabs .nav-link.active { border-bottom-color: var(--brand); background: transparent; color: var(--fg); }

.mc .modal-content { border: 1px solid var(--line); border-radius: 16px; background: var(--bg); box-shadow: var(--shadow-lg); }
.mc .modal-header, .mc .modal-footer { border-color: var(--line); }
.mc .dropdown-menu { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); box-shadow: var(--shadow-lg); }
.mc .dropdown-item { color: var(--fg-2); }
.mc .dropdown-item:hover, .mc .dropdown-item:focus { background: var(--bg-2); color: var(--fg); }

/* --------------------------------------------------------------------------
   Auth pages (login, password reset, register)
   -------------------------------------------------------------------------- */

.mc .tt-form-wrap .tt-form-container {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--bg);
    box-shadow: var(--shadow-lg);
}
.mc .tt-form-wrap .tt-form-container .tt-form-content { padding: clamp(28px, 4vw, 48px); }
.mc .tt-form-content h3, .mc .tt-form-content .h4 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -.025em;
    color: var(--fg);
}
.mc .tt-form-content .form-group .form-control,
.mc .tt-form-content .input-group-text { min-height: 46px; border-color: var(--line-2); background: var(--bg); }
.mc .tt-form-content .input-group-text { border-right: 0; color: var(--fg-3); }
.mc .tt-form-content .btn-primary { min-height: 46px; padding-left: 28px; padding-right: 28px; }

.mc .mc-auth-aside {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 520px;
    overflow: hidden;
    background: #0b1220 !important;
    isolation: isolate;
}
.mc .mc-auth-aside__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.mc .mc-auth-aside::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(11, 18, 32, .1) 20%, rgba(11, 18, 32, .88) 100%);
}
.mc .mc-auth-aside__copy { padding: clamp(28px, 4vw, 48px); color: rgba(255, 255, 255, .85); }
.mc .mc-auth-aside__copy .lp-eyebrow { color: #8fd3f5; }
.mc .mc-auth-aside__copy h2 {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.03em;
    color: #fff !important;
}
.mc .mc-auth-aside__copy p:last-child { margin: 0; max-width: 40ch; font-size: 15.5px; line-height: 1.55; }
@media (max-width: 991.98px) {
    .mc .mc-auth-aside { display: none !important; }
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.mc .mc-contact { align-items: flex-start; }
.mc .mc-contact .tt-contact-form { padding: 0 !important; }
.mc .mc-contact-card {
    margin-top: 0;
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg);
}
.mc .mc-contact-card h2 { margin: 0 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -.015em; color: var(--fg); }
.mc .mc-contact-card ul { margin: 0; padding: 0; list-style: none; }
.mc .mc-contact-card li { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.mc .mc-contact-card li:last-child { border-bottom: 0; padding-bottom: 0; }
.mc .mc-contact-card svg {
    flex: none;
    width: 40px;
    height: 40px;
    padding: 10px;
    border-radius: 10px;
    background: var(--brand-tint);
    fill: none;
    stroke: var(--brand);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.mc .mc-contact-card b { display: block; font-size: 15px; font-weight: 600; color: var(--fg); }
.mc .mc-contact-card b a { color: var(--fg); }
.mc .mc-contact-card b a:hover { color: var(--brand); }
.mc .mc-contact-card li > div > a, .mc .mc-contact-card span { display: block; margin-top: 2px; font-size: 14.5px; line-height: 1.5; color: var(--fg-3); }
.mc .mc-contact-card li > div > a { color: var(--brand); font-weight: 500; }
@media (max-width: 991.98px) { .mc .mc-contact-card { margin-top: 32px; } }

/* --------------------------------------------------------------------------
   Store / order form (themetags_cart) — CSS only, the orderform templates
   are shared with the live theme
   -------------------------------------------------------------------------- */

.mc .tt-single-product {
    display: flex;
    flex-direction: column;
    height: calc(100% - 2rem);
    padding: 28px 24px !important;
    border: 1px solid var(--line);
    border-radius: 16px !important;
    background: var(--bg);
    box-shadow: none;
    text-align: left !important;
    transition: border-color .15s ease, box-shadow .2s ease;
}
.mc .tt-single-product:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.mc .tt-single-product .tt-product-name h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--fg);
}
.mc .tt-single-product .tt-product-price { margin-top: 18px !important; }
.mc .tt-single-product .tt-product-price .price {
    display: block;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -.03em;
    color: var(--fg) !important;
    font-variant-numeric: tabular-nums;
}
.mc .tt-single-product .tt-product-price br { display: none; }
.mc .tt-single-product .tt-cycle { font-size: 14px; color: var(--fg-3) !important; }
.mc .tt-single-product .tt-product-desc {
    flex: 1;
    margin-top: 20px;
    padding: 20px 0 !important;
    border-top: 1px solid var(--line);
    font-size: 14.5px;
    line-height: 1.9;
    color: var(--fg-2);
}
.mc .tt-single-product .tt-product-desc::before, .mc .tt-single-product .tt-product-desc::after { display: none; }
.mc .tt-single-product .btn-order-now {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--fg) !important;
    font-weight: 500;
}
.mc .tt-single-product .btn-order-now:hover { border-color: var(--brand); background: var(--brand); color: var(--on-brand) !important; }
.mc .tt-single-product .badge, .mc .tt-single-product .tt-popular-badge .badge { background: var(--brand-tint); color: var(--brand); }

/* Domain search box in the cart: drop the decorative globe, match the hero search */
.mc .domain-checker-bg {
    margin-bottom: 32px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg) !important;
    background-image: none !important;
}
.mc .domain-checker-bg .input-group { max-width: none; }
.mc .domain-checker-bg .form-control { border: 1px solid var(--line-2) !important; border-radius: var(--radius-sm) !important; }

/* --------------------------------------------------------------------------
   Login — full-screen split: form on the left, photo edge to edge on the right
   -------------------------------------------------------------------------- */

.mc-page-login #main-body.tt-auth-wrap {
    display: block;
    min-height: 0 !important;
    padding: 0 !important;
    background: var(--bg) !important;
}
.mc-page-login #main-body > .container { max-width: none; padding: 0; }
.mc-page-login #main-body .row { margin: 0; }
.mc-page-login #main-body .primary-content { flex: 0 0 100%; max-width: 100%; padding: 0; }
.mc-page-login .tt-form-wrap,
.mc-page-login .tt-form-wrap form { display: block; height: auto; margin: 0; }
.mc-page-login .tt-form-wrap .tt-form-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: calc(100vh - 69px);
    min-height: calc(100svh - 69px);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--bg);
}
.mc-page-login .tt-form-wrap .tt-form-container .tt-form-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 56px 32px !important;
}
.mc-page-login .mc-auth-aside { min-height: 100%; border-radius: 0; }
.mc-page-login .mc-auth-aside__copy { padding: clamp(32px, 5vw, 72px); }
.mc-page-login .mc-auth-aside__copy h2 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); }
@media (max-width: 991.98px) {
    .mc-page-login .tt-form-wrap .tt-form-container { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .mc-page-login .tt-form-wrap .tt-form-container .tt-form-content { padding: 40px 20px 56px !important; }
}

/* Systems development page: full-width sections like the homepage */
.mc-page-desenvolvimento #main-body { padding: 0 !important; background: var(--bg) !important; }
.mc-page-desenvolvimento #main-body > .container { max-width: none; margin: 0; padding: 0; }
.mc-page-desenvolvimento #main-body .primary-content { padding: 0; }
.mc-page-desenvolvimento #main-body > div > .row { margin: 0; }

.lp-footer__new { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); font-size: 11px; font-weight: 600; vertical-align: 1px; }
.mc .mc-navnew { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); font-size: 10.5px; font-weight: 700; line-height: 1.5; vertical-align: 2px; }
.mc #Primary_Navbar-Development a.active { color: var(--brand); }
@media (min-width: 1200px) { .mc .tt-header .tt-main-header ul li a.pr-4 { padding-right: 18px; } }
/* Keep the desktop header on one line: these two stay reachable via the "Entrar" button and the footer */
@media (min-width: 1200px) { .mc #Primary_Navbar-Home, .mc #Primary_Navbar-Affiliates { display: none !important; } }
