/* Maiya Intelligence theme.css */

:root {
    --bg: #070A12;
    --bg2: #060814;
    --card: rgba(14, 20, 38, .56);
    --card2: rgba(14, 20, 38, .34);
    --text: #EAF0FF;
    /* Increased contrast for glass UI */
    --muted: rgba(234, 240, 255, .88);
    --border: rgba(255, 255, 255, .12);
    --accent: #79C2FF;
    --accent2: #9B7CFF;
    --good: #7CFFB2;
    --warn: #FFD37C;
    --bad: #FF7C9C;
    --radius: 20px;
    --radius2: 14px;
    --shadow: 0 14px 50px rgba(0, 0, 0, .42);
}


/* Global readability boost (glass on busy backgrounds) */

.sub,
.help,
label,
small,
p,
li,
.pill,
.btn,
footer,
footer a {
    text-shadow: 0 1px 10px rgba(0, 0, 0, .28);
}


/* Inputs/labels/placeholder contrast */

input,
textarea,
select {
    color: var(--text);
}

input::placeholder,
textarea::placeholder {
    /* v9.8.6: lighten generic placeholder text for improved readability */
    color: rgba(220, 230, 255, .80);
}


/* Slightly larger body copy for readability */

p,
li,
.sub {
    font-size: 15px;
    line-height: 1.55;
}

.help {
    font-size: 14px;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    background: radial-gradient(1200px 700px at 18% 10%, rgba(121, 194, 255, .18), transparent 55%), radial-gradient(900px 600px at 82% 24%, rgba(155, 124, 255, .16), transparent 55%), radial-gradient(700px 420px at 50% 92%, rgba(124, 255, 178, .10), transparent 60%), linear-gradient(180deg, rgba(7, 10, 18, .10), rgba(7, 10, 18, .28)), none;
}

a {
    color: inherit;
    text-decoration: none
}

a.link {
    color: var(--accent)
}

a.link:hover {
    text-decoration: underline
}

.wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 26px
}

@media (max-width:720px) {
    .wrap {
        padding: 18px
    }
}

header {
    position: relative;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: linear-gradient(180deg, rgba(7, 10, 18, .92), rgba(7, 10, 18, .62));
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    margin: 10px;
    overflow: visible;
}

.headerInner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 26px;
    max-width: 1320px;
    margin: 0 auto
}

@media (max-width:720px) {
    .headerInner {
        padding: 12px 18px;
        flex-wrap: wrap
    }
}


/* Full-page animated background (injected by assets/site.mjs)
   - fills “blank sides” on wide screens
   - always behind the content */

#bgFX {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .45;
}


/* Background slideshow layers (global) */

#bgSlide {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .92;
}

#bgSlide .bgLayer {
    position: absolute;
    inset: 0;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: saturate(1.05) contrast(1.04);
    opacity: 0;
    transition: opacity 1200ms ease;
    will-change: opacity;
}

#bgSlide .bgLayer.isOn {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    #bgSlide .bgLayer {
        transition: none;
    }
}


/* BI tool: focus mode (background less visible) */

body[data-page="bi"] #bgSlide {
    opacity: .18;
}

body[data-page="bi"] #bgFX {
    opacity: .08;
}


/* Ensure content stays above background */

body> :not(#bgFX):not(#bgSlide) {
    position: relative;
    z-index: 2
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.logoimg {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    padding: 6px
}

.brand h1 {
    margin: 0;
    font-size: 18px;
    letter-spacing: .14em
}

.kicker {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: .22em;
    text-transform: uppercase
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center
}


/* Header search (desktop) */

.hdrSearch {
    display: none
}

.hdrSearchInput {
    width: 180px;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    outline: none;
}

.hdrSearchInput::placeholder {
    /* v9.8.5: lighten search placeholder for better contrast */
    color: rgba(200, 220, 255, .85)
}

@media (min-width: 980px) {
    .hdrSearch {
        display: block
    }
}

.pill {
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    font-weight: 700;
    font-size: 13px;
}

.pill:hover {
    border-color: rgba(121, 194, 255, .45)
}

.pill.active {
    border-color: rgba(121, 194, 255, .65);
    box-shadow: 0 0 0 4px rgba(121, 194, 255, .10)
}

.pill.btnLike {
    cursor: pointer
}


/* Make card-like tiles feel clickable (used on homepage service tiles) */

.clickable {
    cursor: pointer;
    transition: transform .12s ease, border-color .12s ease
}

.clickable:hover {
    transform: translateY(-1px);
    border-color: rgba(121, 194, 255, .35)
}

.clickable:active {
    transform: translateY(0)
}


/* Plan highlight when user clicks a service tile */

.plan.reco {
    border-color: rgba(124, 255, 178, .35);
    box-shadow: 0 0 0 4px rgba(124, 255, 178, .10), var(--shadow)
}

.bestTag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(124, 255, 178, .28);
    background: rgba(124, 255, 178, .10);
    color: rgba(124, 255, 178, .95);
    font-weight: 900;
    font-size: 12px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    font-weight: 800;
}

.btn:hover {
    border-color: rgba(121, 194, 255, .45);
    transform: translateY(-1px)
}

.btn:active {
    transform: translateY(0)
}

.btn.primary {
    background: linear-gradient(135deg, rgba(121, 194, 255, .25), rgba(155, 124, 255, .22));
    border-color: rgba(121, 194, 255, .45);
}

.btn.danger {
    border-color: rgba(255, 124, 156, .45);
    background: rgba(255, 124, 156, .08)
}

.btn.small {
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px
}

.btn[disabled] {
    opacity: .6;
    pointer-events: none
}


/* Form controls: keep <select> options readable on all browsers (fixes white-on-white dropdowns) */

input,
select,
textarea,
button {
    font: inherit
}

select {
    background: rgba(255, 255, 255, .92) !important;
    color: #111 !important;
}

select option {
    color: #111 !important
}

.card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.card.soft {
    background: var(--card2);
    box-shadow: none
}

@media (max-width:720px) {
    .card {
        padding: 16px
    }
}

.hero {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 18px;
    align-items: stretch
}

@media (max-width:920px) {
    .hero {
        grid-template-columns: 1fr
    }
}


/* Hero right column: stretch to match left card height (alignment fix) */

.heroSide {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100%;
}

.heroSide>.card:last-child {
    flex: 1;
}

.title {
    margin: 8px 0 0;
    font-size: 44px;
    line-height: 1.06
}

@media (max-width:720px) {
    .title {
        font-size: 34px
    }
}

.sub {
    color: var(--muted);
    line-height: 1.65;
    margin: 10px 0 0
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px
}

@media (max-width:520px) {
    .grid {
        grid-template-columns: 1fr
    }
}

.mini {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 16px;
    padding: 14px
}

.mini h3,
.mini h4 {
    margin: 0 0 6px
}

.mini p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5
}

.feat {
    margin: 0;
    padding-left: 0;
    list-style: none
}

.feat li {
    position: relative;
    padding: 7px 0 7px 26px;
    color: var(--text);
    line-height: 1.45;
}

.feat li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 7px;
    color: var(--good);
    font-weight: 900;
}

.feat.compact li {
    padding-top: 5px;
    padding-bottom: 5px
}

.feat.muted li {
    color: var(--muted)
}

.feat.dots li::before {
    content: "•";
    color: var(--accent);
    top: 6px
}

.plans {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px
}

@media (max-width:1040px) {
    .plans {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width:520px) {
    .plans {
        grid-template-columns: 1fr
    }
}

.plan h4 {
    font-size: 18px
}

.price {
    margin: 6px 0 0;
    font-size: 22px;
    font-weight: 900
}

.plan .cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px
}

.plan .cta .btn {
    flex: 1;
    min-width: 160px
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    font-weight: 800;
    font-size: 12px;
    color: var(--muted)
}

.badge.good {
    border-color: rgba(124, 255, 178, .32);
    color: rgba(124, 255, 178, .95)
}

.badge.warn {
    border-color: rgba(255, 211, 124, .32);
    color: rgba(255, 211, 124, .95)
}


/* Highlight recommended plan (added dynamically on homepage service clicks) */

.planHighlight {
    border-color: rgba(124, 255, 178, .45) !important;
    box-shadow: 0 0 0 4px rgba(124, 255, 178, .10), var(--shadow) !important;
    transform: translateY(-2px);
}

.badge.best {
    border-color: rgba(124, 255, 178, .55);
    color: rgba(124, 255, 178, .98)
}

.tableWrap {
    overflow: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .10)
}

table {
    width: 100%;
    border-collapse: collapse
}

th,
td {
    padding: 12px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 14px
}

th {
    color: var(--muted);
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase
}

tr:hover td {
    background: rgba(255, 255, 255, .03)
}

td.muted {
    color: var(--muted)
}

input,
textarea,
select {
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    outline: none;
}

textarea {
    min-height: 110px;
    resize: vertical
}

label {
    display: block;
    font-weight: 900;
    margin: 12px 0 6px
}

.help {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5
}

hr.sep {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, .10);
    margin: 18px 0
}

footer {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    color: rgba(234, 240, 255, .86);
    font-size: 13px
}

footer .icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center
}

footer .icons a {
    color: rgba(234, 240, 255, .86)
}

footer .icons a:hover {
    color: var(--accent)
}


/* Footer social icon buttons */

.footerSocial {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: 10px;
    /* v9.8.5: shift social icons slightly left to avoid chat overlay */
    margin-right: 120px;
}

.footerSocial a {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    border-radius: 8px;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.footerSocial a:hover {
    border-color: rgba(121, 194, 255, .38);
    background: rgba(255, 255, 255, .10);
    border-radius: 12px;
    transform: translateY(-1px);
}

.footerSocial svg {
    width: 16px;
    height: 16px;
    fill: rgba(234, 240, 255, .92);
}


/* Make hero tagline parts distribute across the row */

.taglineSplit {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.taglineSplit span {
    flex: 1;
    text-align: center;
}

.taglineSplit span:first-child {
    text-align: left;
}

.taglineSplit span:last-child {
    text-align: right;
}


/* Review stars row spacing to avoid overlap */

.review-form .starRating,
.review-form .stars,
.review-form .rating {
    min-height: 44px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    margin-top: 12px;
}

.dropdown {
    position: absolute;
    right: 0;
    margin-top: 8px;
    min-width: 200px;
    background: rgba(7, 10, 18, .96);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    padding: 8px;
    box-shadow: var(--shadow)
}

.dropdown a {
    display: block;
    padding: 10px 10px;
    border-radius: 12px;
    color: var(--text);
    font-weight: 800
}

.dropdown a:hover {
    background: rgba(255, 255, 255, .06)
}

details.acct {
    position: relative
}

details.acct summary::-webkit-details-marker {
    display: none
}

.notice {
    border: 1px solid rgba(121, 194, 255, .25);
    background: rgba(121, 194, 255, .08);
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--muted);
}


/* ----------------------------
   Light Theme (default)
   ---------------------------- */

html[data-theme="light"] {
    --bg: #F6F8FF;
    --bg2: #FFFFFF;
    --card: rgba(255, 255, 255, .82);
    --card2: rgba(255, 255, 255, .62);
    --text: #0B1220;
    --muted: #4B5B7A;
    --border: rgba(0, 0, 0, .10);
    --shadow: 0 14px 45px rgba(10, 20, 40, .12);
}

html[data-theme="light"] body {
    color: var(--text);
    background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .10)), none;
}

html[data-theme="light"] header {
    background: linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .72));
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

html[data-theme="light"] .pill,
html[data-theme="light"] .btn {
    border: 1px solid rgba(0, 0, 0, .10);
    background: rgba(255, 255, 255, .70);
    color: var(--text);
}

html[data-theme="light"] .pill:hover,
html[data-theme="light"] .btn:hover {
    border-color: rgba(43, 108, 255, .28)
}

html[data-theme="light"] .pill.active {
    border-color: rgba(43, 108, 255, .42);
    box-shadow: 0 0 0 4px rgba(43, 108, 255, .10)
}

html[data-theme="light"] .logoimg {
    border: 1px solid rgba(0, 0, 0, .10);
    background: rgba(255, 255, 255, .75)
}

html[data-theme="light"] .mini {
    background: rgba(255, 255, 255, .65);
    border: 1px solid rgba(0, 0, 0, .08)
}

html[data-theme="light"] .card {
    border: 1px solid rgba(0, 0, 0, .08)
}

html[data-theme="light"] .feat.muted li {
    color: rgba(75, 91, 122, .92)
}

html[data-theme="light"] .sub {
    color: rgba(75, 91, 122, .92)
}

html[data-theme="light"] footer {
    border-top: 1px solid rgba(0, 0, 0, .08)
}

html[data-theme="light"] footer .icons a {
    color: rgba(11, 18, 32, .85)
}


/* Chat widget (light) */

html[data-theme="light"] #maiyaChatFab {
    background: rgba(255, 255, 255, .75);
    border: 1px solid rgba(0, 0, 0, .10)
}

html[data-theme="light"] #maiyaChatPanel {
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(0, 0, 0, .10)
}

html[data-theme="light"] #maiyaChatLog {
    background: rgba(255, 255, 255, .70)
}


/* Dropdown fix for light theme (prevents black-on-black if a browser caches light) */

html[data-theme="light"] .dropdown {
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(0, 0, 0, .10);
}

html[data-theme="light"] .dropdown a {
    color: #0B1220
}

html[data-theme="light"] .dropdown a:hover {
    background: rgba(0, 0, 0, .04)
}


/* ===========================
   v8 overrides (add at end)
   =========================== */


/* 1) Corporate office background (behind everything) */

html,
body {
    height: 100%;
}

body {
    background: #0b0f1a;
    /* keep site dark */
    position: relative;
    overflow-x: hidden;
}


/* Fixed background image layer (works on mobile too) */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background: none;
    opacity: 0.55;
    /* ↑ increase visibility (was too washed out) */
    transform: translateZ(0);
}


/* Constant overlay (prevents “light/dark shifting” while scrolling) */

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(80% 60% at 20% 10%, rgba(20, 40, 80, .35), rgba(11, 15, 26, .75));
    opacity: 1;
    pointer-events: none;
}


/* 2) Make cards more “mirror” (show background more) */

.card,
.mini,
.panel,
.box,
.wrap .card {
    background: rgba(10, 14, 24, 0.42) !important;
    /* was too opaque */
    backdrop-filter: blur(3px) !important;
    /* reduce blur = more visible office */
    -webkit-backdrop-filter: blur(3px) !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
}


/* 3) Remove any section background blocks that cause color shifts */

section,
.section,
.band,
.stripe,
.bg,
.bg2 {
    background: transparent !important;
}


/* 4) Fix hero alignment (right column should stretch to match left) */

.heroGrid {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 16px;
    align-items: stretch;
    /* key */
}

.heroRight {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.heroRight .card {
    flex: 1 1 0;
    /* makes both cards stretch */
    min-height: 0;
}


/* Optional: make Core Focus slightly taller than Mission */

.heroRight .card.coreFocusCard {
    flex: 1.15 1 0;
}

.heroRight .card.missionCard {
    flex: 0.85 1 0;
}


/* 5) Fix My Account dropdown black-on-black */

.mi-menu,
.dropdown-menu,
.menu,
.accountMenu {
    position: absolute;
    z-index: 9999;
    background: rgba(10, 14, 24, .95) !important;
    border: 1px solid rgba(255, 255, 255, .14) !important;
}

.mi-menu a,
.dropdown-menu a,
.menu a,
.accountMenu a,
.mi-menu button,
.dropdown-menu button {
    color: rgba(255, 255, 255, .92) !important;
}

.mi-menu a:hover,
.dropdown-menu a:hover,
.menu a:hover,
.accountMenu a:hover {
    background: rgba(255, 255, 255, .08) !important;
}


/* Simple two-column grid helper */

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: stretch;
}

@media (max-width: 520px) {
    .grid2 {
        grid-template-columns: 1fr;
    }
}


/* 6) FAQ left + Reviews right with independent scrolling */

.faqReviews {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: stretch;
}

@media (max-width: 900px) {
    .faqReviews {
        grid-template-columns: 1fr;
    }
}

.faqCol,
.revCol {
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(10, 14, 24, 0.55);
    border-radius: 18px;
    padding: 14px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    min-height: 520px;
}

.faqList,
.reviewList {
    flex: 1;
    min-height: 260px;
    max-height: 360px;
    overflow: auto;
    overscroll-behavior: contain;
    padding-right: 6px;
    margin-top: 10px;
}

.faqItem summary {
    cursor: pointer;
}

.faqItem {
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
    margin: 10px 0;
    overflow: hidden;
}

.faqItem summary {
    padding: 10px 12px;
    font-weight: 800;
}

.faqItem .sub {
    padding: 0 12px 12px;
}

.reviewItem {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.reviewItem:last-child {
    border-bottom: 0;
}

.reviewStars {
    letter-spacing: 1px;
    margin-bottom: 6px;
}


/* Review stars row – match input height & spacing */

.review-form .rating,
.review-form .stars,
.review-form .starRow {
    min-height: 44px;
    /* match your input height */
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    margin-top: 12px;
    /* space from Email field */
}

.review-form input[name="company"],
.review-form input#company {
    margin-bottom: 12px;
}


/* If your stars are inside a bordered "field" box */

.review-form .ratingField,
.review-form .starsField {
    min-height: 44px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}


/* Star rating input (leave a review) */

.starRating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    min-height: 44px;
    box-sizing: border-box;
}

.starRating input {
    display: none;
}

.starRating label {
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: rgba(255, 255, 255, .32);
    transition: transform .12s ease, color .12s ease;
}

.starRating label:hover {
    transform: translateY(-1px);
}

.starRating input:checked~label,
.starRating label:hover,
.starRating label:hover~label {
    color: rgba(255, 215, 102, .95);
}


/* 7) Mobile: keep background + make text readable */

@media (max-width: 900px) {
    .heroGrid {
        grid-template-columns: 1fr;
    }
    body::before {
        opacity: 0.45;
    }
    .card,
    .mini {
        background: rgba(10, 14, 24, 0.55) !important;
    }
}


/* --------------------
   BI Tool (Power BI-style layout)
-------------------- */

.biShell {
    width: min(1600px, calc(100vw - 24px));
    margin: 14px auto 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.biTopBar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.biTopBar .pillSmall {
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    font-size: 13px;
    color: var(--text);
}

.biMain {
    display: grid;
    grid-template-columns: 1fr minmax(520px, 760px) 320px;
    gap: 12px;
    align-items: stretch;
    min-height: calc(100vh - 170px);
}

@media (max-width: 1200px) {
    .biMain {
        grid-template-columns: 1fr;
        min-height: auto;
    }
}

.biPane {
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(10, 14, 24, 0.78);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.biPaneHeader {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.biPaneHeader h3 {
    margin: 0;
    font-size: 14px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #cfe0ff;
}

.biPaneBody {
    padding: 12px 14px;
    overflow: auto;
}

.biVizCanvas {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .10);
}

.biGridWrap {
    overflow: auto;
    height: 100%;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.biGrid {
    border-collapse: collapse;
    width: max-content;
    min-width: 100%;
    font-size: 13px;
}

.biGrid th,
.biGrid td {
    border: 1px solid rgba(255, 255, 255, .08);
    padding: 6px 8px;
    min-width: 92px;
    max-width: 260px;
    background: rgba(255, 255, 255, .03);
}

.biGrid th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(10, 14, 24, 0.92);
    color: #cfe0ff;
    font-weight: 800;
}

.biGrid .rowHdr {
    position: sticky;
    left: 0;
    z-index: 3;
    background: rgba(10, 14, 24, 0.92);
    color: #cfe0ff;
    font-weight: 800;
}

.biGrid td {
    background: rgba(255, 255, 255, .02);
}

.biGrid td[contenteditable="true"]:focus {
    outline: 2px solid rgba(121, 194, 255, .30);
    background: rgba(121, 194, 255, .08);
}

.chartIcons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.chartBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .05);
    cursor: pointer;
    user-select: none;
    font-weight: 800;
    color: #cfe0ff;
}

.chartBtn:hover {
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .07);
}

.chartBtn.isActive {
    border-color: rgba(121, 194, 255, .38);
    background: rgba(121, 194, 255, .12);
}

.fieldList {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fieldList select,
.fieldList input {
    width: 100%;
}

.modalMask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.modalMask.isOn {
    display: flex;
}

.modalCard {
    width: min(520px, 100%);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(10, 14, 24, 0.96);
    padding: 16px;
}

.modalCard h3 {
    margin: 0 0 8px;
}

.modalCard .sub {
    margin: 0 0 14px;
}

.modalActions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}


/* FAQ/Review forms spacing */

.faqCol input,
.faqCol textarea,
.revCol input,
.revCol textarea {
    width: 100%;
    box-sizing: border-box;
}

.faqCol textarea,
.revCol textarea {
    resize: vertical;
}

.faqCol .btn,
.revCol .btn {
    width: 100%;
}


/* =========================
   Phase 1: Azure-style nav + theme + background
   ========================= */

:root {
    --mi-bg: #07101f;
    --mi-card: rgba(255, 255, 255, 0.10);
    --mi-text: rgba(255, 255, 255, 0.92);
    --mi-muted: rgba(255, 255, 255, 0.72);
    --mi-border: rgba(255, 255, 255, 0.16);
    --mi-accent: #4cc2ff;
    --mi-accent2: #ffcc66;
}

:root[data-theme="light"] {
    --mi-bg: #f5f8ff;
    --mi-card: rgba(255, 255, 255, 0.78);
    --mi-text: rgba(15, 20, 30, 0.92);
    --mi-muted: rgba(15, 20, 30, 0.68);
    --mi-border: rgba(15, 20, 30, 0.14);
    --mi-accent: #0078d4;
    --mi-accent2: #b57600;
}

body {
    color: var(--mi-text);
    background-color: var(--mi-bg);
}

#bgVisual {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: url("/assets/brand/bg_story.svg");
    background-size: cover;
    background-position: center;
    opacity: 0.55;
    pointer-events: none;
}

:root[data-theme="light"] #bgVisual {
    opacity: 0.35;
}

.miTopNav {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(10, 16, 26, 0.62);
    border-bottom: 1px solid var(--mi-border);
}

:root[data-theme="light"] .miTopNav {
    background: rgba(255, 255, 255, 0.72);
}

.miTopNavInner {
    /*
   * v9.8.1 patch: The top navigation should span the full width of the page
   * instead of being contained in a narrow card.  Remove the fixed
   * max‑width and centre margin so the navigation fits the full window width.
   */
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 10px 14px;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 12px;
    align-items: center;
}

.miBrand {
    display: flex;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.miBrandLogo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.miBrandName {
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1;
}

.miBrandSub {
    font-size: 12px;
    opacity: 0.9;
    letter-spacing: 2px;
    margin-top: 2px;
}

.miSearch {
    width: 100%;
}

.miSearchInput {
    width: 100%;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--mi-border);
    background: rgba(0, 0, 0, 0.20);
    color: var(--mi-text);
    padding: 0 12px;
}

:root[data-theme="light"] .miSearchInput {
    background: rgba(255, 255, 255, 0.85);
}

.miNavCenter {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.miNavItem {
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--mi-muted);
    border: 1px solid transparent;
    white-space: nowrap;
}

.miNavItem:hover {
    color: var(--mi-text);
    border-color: var(--mi-border);
    background: rgba(255, 255, 255, 0.06);
}

.miNavItem.isActive,
.miNavItem.isSectionActive {
    color: var(--mi-text);
    border-color: var(--mi-border);
    background: rgba(76, 194, 255, 0.10);
}

.miNavRight {
    display: flex;
    gap: 10px;
    align-items: center;
}

.miHamburger {
    display: none;
    height: 40px;
    width: 44px;
    border-radius: 12px;
    border: 1px solid var(--mi-border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--mi-text);
    cursor: pointer;
}

:root[data-theme="light"] .miHamburger {
    background: rgba(0, 0, 0, 0.04);
}

.miAuth {
    position: relative;
}

.miMenu {
    right: 0;
    top: 48px;
}

.miDrawerOverlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 10, 18, 0.55);
    backdrop-filter: blur(6px);
    z-index: 1100;
}

.miDrawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 92vw);
    height: 100vh;
    background: rgba(10, 16, 26, 0.96);
    border-left: 1px solid var(--mi-border);
    z-index: 1101;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

:root[data-theme="light"] .miDrawer {
    background: rgba(255, 255, 255, 0.96);
}

.miDrawerTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.miDrawerTitle {
    font-weight: 900;
    letter-spacing: 0.18em;
    font-size: 14px;
}

.miDrawerNav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 6px;
}

.miDrawerLink {
    text-decoration: none;
    color: var(--mi-text);
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
}

.miDrawerLink:hover {
    background: rgba(76, 194, 255, 0.10);
    border-color: var(--mi-border);
}

.miDrawerFoot {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.miNoScroll {
    overflow: hidden;
}

@media (max-width: 980px) {
    .miTopNavInner {
        grid-template-columns: auto auto 1fr auto;
    }
    .miSearch {
        display: none;
    }
    .miNavCenter {
        display: none;
    }
    .miHamburger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

.miPill {
    height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid var(--mi-border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--mi-text);
    cursor: pointer;
}

:root[data-theme="light"] .miPill {
    background: rgba(0, 0, 0, 0.04);
}

.miBtn {
    height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid var(--mi-border);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--mi-text);
    white-space: nowrap;
}

.miBtnGhost {
    background: transparent;
}

.miBtnPrimary {
    background: rgba(76, 194, 255, 0.16);
    border-color: rgba(76, 194, 255, 0.30);
}

.miIconBtn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--mi-border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--mi-text);
    cursor: pointer;
}

.miMenu {
    position: absolute;
    right: 14px;
    top: 58px;
    min-width: 220px;
    border: 1px solid var(--mi-border);
    border-radius: 14px;
    background: rgba(10, 16, 26, 0.92);
    backdrop-filter: blur(14px);
    padding: 8px;
    display: none;
}

.miMenu.open {
    display: block;
}

:root[data-theme="light"] .miMenu {
    background: rgba(255, 255, 255, 0.92);
}

.miMenu a,
.miMenu button {
    display: block;
    width: 100%;
    padding: 10px 10px;
    border-radius: 12px;
    border: 0;
    background: transparent;
    color: var(--mi-text);
    text-decoration: none;
    text-align: left;
    cursor: pointer;
}

.miMenu a:hover,
.miMenu button:hover {
    background: rgba(76, 194, 255, 0.10);
}

@media (max-width: 900px) {
    .miTopNavInner {
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
    }
    .miNavCenter {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}


/* ===== Settings (Phase 3) ===== */

.miContainer {
    margin: 0 auto;
    padding: 22px 14px
}

.miSettingsShell {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px;
    align-items: start
}

@media (max-width: 980px) {
    .miSettingsShell {
        grid-template-columns: 1fr
    }
    .miSideNav {
        position: sticky;
        top: 72px
    }
}

.miSideNav {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    padding: 12px;
    backdrop-filter: blur(10px)
}

.miSideTitle {
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .86;
    margin: 10px 10px 6px
}

.miSideDivider {
    height: 1px;
    background: rgba(255, 255, 255, .10);
    margin: 10px
}

.miSideItem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    opacity: .88
}

.miSideItem:hover {
    background: rgba(255, 255, 255, .08);
    opacity: 1
}

.miSideItem.active {
    background: rgba(121, 194, 255, .16);
    border: 1px solid rgba(121, 194, 255, .22);
    opacity: 1
}

.miMainPanel {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 16px;
    padding: 18px;
    backdrop-filter: blur(10px)
}

.miH1 {
    margin: 0 0 6px 0;
    font-size: 20px;
    letter-spacing: .01em
}

.miP {
    margin: 0 0 12px 0;
    opacity: .86;
    line-height: 1.6
}

.miActions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px
}


/* CRM iframe */

.miFrame {
    width: 100%;
    height: 72vh;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: transparent;
}

@media (max-width:900px) {
    .miFrame {
        height: 70vh;
    }
}


/* ===== My Account (v9.1.6.1) ===== */

.miAccountShell {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 16px;
    align-items: start
}

@media (max-width: 980px) {
    .miAccountShell {
        grid-template-columns: 1fr
    }
}

.miAccountNav {
    position: sticky;
    top: 72px;
    align-self: start;
    height: calc(100vh - 92px);
    overflow: auto;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(10px);
}

:root[data-theme="light"] .miAccountNav {
    border-color: rgba(0, 0, 0, .10);
    background: rgba(255, 255, 255, .72)
}

.miAccountNavTop {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px
}

.miAccountNavTitle {
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 12px;
    opacity: .9
}

.miAccountItem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    opacity: .90;
    border: 1px solid transparent;
}

.miAccountItem:hover {
    background: rgba(255, 255, 255, .08);
    opacity: 1;
    border-color: rgba(255, 255, 255, .10)
}

.miAccountItem.active {
    background: rgba(76, 194, 255, 0.16);
    border-color: rgba(76, 194, 255, 0.22);
    opacity: 1
}

.miAccountGroupBtn {
    width: 100%;
    text-align: left;
    margin-top: 10px;
    padding: 10px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .04);
    color: var(--mi-text);
    cursor: pointer;
    font-weight: 800;
}

:root[data-theme="light"] .miAccountGroupBtn {
    border-color: rgba(0, 0, 0, .10);
    background: rgba(0, 0, 0, .03)
}

.miAccountGroup {
    padding-left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px
}

.miAccountSignout {
    width: 100%;
    margin-top: 12px;
    padding: 10px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    color: var(--mi-text);
    cursor: pointer;
    font-weight: 900;
}

:root[data-theme="light"] .miAccountSignout {
    border-color: rgba(0, 0, 0, .10);
    background: rgba(0, 0, 0, .03)
}

.miAccountNav.isCollapsed {
    width: 74px;
    padding: 12px 10px
}

.miAccountNav.isCollapsed .miAccountNavTitle {
    display: none
}

.miAccountNav.isCollapsed .miAccountGroupBtn {
    display: none
}

.miAccountNav.isCollapsed .miAccountGroup {
    display: none
}

.miAccountNav.isCollapsed .miAccountItem {
    justify-content: center
}

.miAccountNav.isCollapsed .miAccountItem::after {
    content: ""
}

.miAccountMain {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(10px);
    padding: 18px
}

:root[data-theme="light"] .miAccountMain {
    border-color: rgba(0, 0, 0, .10);
    background: rgba(255, 255, 255, .72)
}

.miPanel {
    padding: 0
}

.miCard {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    padding: 14px;
    background: rgba(255, 255, 255, .05)
}

:root[data-theme="light"] .miCard {
    border-color: rgba(0, 0, 0, .10);
    background: rgba(0, 0, 0, .02)
}

.miDanger {
    border-color: rgba(255, 90, 90, .28)
}

.miH2 {
    margin: 0 0 8px 0;
    font-size: 16px
}

.miLabel {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    opacity: .88
}

.miInput,
.miSelect {
    width: 100%;
    margin-top: 6px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    color: var(--mi-text);
    padding: 0 12px
}

:root[data-theme="light"] .miInput,
:root[data-theme="light"] .miSelect {
    border-color: rgba(0, 0, 0, .12);
    background: rgba(255, 255, 255, .90)
}

.miTextarea {
    width: 100%;
    margin-top: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    color: var(--mi-text);
    padding: 10px 12px;
    resize: vertical
}

:root[data-theme="light"] .miTextarea {
    border-color: rgba(0, 0, 0, .12);
    background: rgba(255, 255, 255, .90)
}

.miNote {
    margin-top: 8px;
    opacity: .82;
    line-height: 1.5
}

.miGrid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

@media (max-width: 820px) {
    .miGrid2 {
        grid-template-columns: 1fr
    }
}

.miPhoneRow {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    align-items: center
}

.miAvatarBig {
    width: 74px;
    height: 74px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .14);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .06);
    overflow: hidden
}

.miAvatarBig img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.miProfileHeader {
    display: flex;
    gap: 14px;
    align-items: center;
    margin: 10px 0 8px
}

.miTableWrap {
    overflow: auto;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .10)
}

:root[data-theme="light"] .miTableWrap {
    border-color: rgba(0, 0, 0, .10)
}

.miTable {
    width: 100%;
    border-collapse: collapse
}

.miTable th,
.miTable td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    text-align: left;
    vertical-align: top
}

:root[data-theme="light"] .miTable th,
:root[data-theme="light"] .miTable td {
    border-bottom-color: rgba(0, 0, 0, .08)
}

.miTable th {
    font-size: 12px;
    opacity: .82;
    letter-spacing: .04em;
    text-transform: uppercase
}

.miMono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px
}

.miSmall {
    font-size: 12px;
    opacity: .9
}

.miTag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(76, 194, 255, .22);
    background: rgba(76, 194, 255, .10)
}

.miQr {
    margin-top: 10px;
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: flex-start
}

.miFaq {
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 14px;
    padding: 10px 12px;
    margin-top: 10px;
    background: rgba(255, 255, 255, .04)
}

:root[data-theme="light"] .miFaq {
    border-color: rgba(0, 0, 0, .10);
    background: rgba(0, 0, 0, .02)
}

.miFaq summary {
    cursor: pointer;
    font-weight: 800
}

.miFaqA {
    margin-top: 8px;
    opacity: .88;
    line-height: 1.6
}

.miReview {
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 14px;
    padding: 12px;
    margin-top: 10px;
    background: rgba(255, 255, 255, .04)
}

:root[data-theme="light"] .miReview {
    border-color: rgba(0, 0, 0, .10);
    background: rgba(0, 0, 0, .02)
}

.miReviewTop {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px
}

.miCrmTabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 12px
}

.miCrmTabs .miPill.active {
    border-color: rgba(76, 194, 255, .32);
    background: rgba(76, 194, 255, .10)
}


/* Modal */

.miModal {
    position: fixed;
    inset: 0;
    z-index: 1200
}

.miModalOverlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 10, 18, 0.55);
    backdrop-filter: blur(6px)
}

.miModalCard {
    position: relative;
    max-width: 1100px;
    margin: 48px auto;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(10, 16, 26, 0.96);
    height: calc(100vh - 96px);
    display: flex;
    flex-direction: column
}

:root[data-theme="light"] .miModalCard {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(0, 0, 0, .12)
}

.miModalTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 6px 10px
}

.miModalTitle {
    font-weight: 900
}

.miModalFrame {
    width: 100%;
    flex: 1;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: transparent
}

:root[data-theme="light"] .miModalFrame {
    border-color: rgba(0, 0, 0, .10)
}


/* v9.1.6.1 Patch 3 overrides */

[hidden] {
    display: none !important;
}

:root {
    --mi-bg: #f7fbff;
    --mi-panel: #ffffff;
    --mi-panel-2: rgba(255, 255, 255, .82);
    --mi-text: #122033;
    --mi-muted: #53657f;
    --mi-border: rgba(17, 44, 78, .12);
    --mi-accent: #0a66ff;
    --mi-accent-2: #6b5cff;
    --mi-bgfx: radial-gradient(1100px 680px at 12% 0%, rgba(89, 173, 255, .22), transparent 55%), radial-gradient(900px 560px at 88% 16%, rgba(114, 92, 255, .18), transparent 52%), radial-gradient(1200px 760px at 50% 100%, rgba(18, 33, 61, .10), transparent 60%), linear-gradient(180deg, #f8fbff 0%, #eef5ff 48%, #f8fbff 100%);
}

:root[data-theme="dark"] {
    --mi-bg: #08101c;
    --mi-panel: rgba(15, 23, 38, .92);
    --mi-panel-2: rgba(15, 23, 38, .82);
    --mi-text: #edf4ff;
    --mi-muted: #a5b6d1;
    --mi-border: rgba(255, 255, 255, .12);
    --mi-accent: #79c2ff;
    --mi-accent-2: #9b7cff;
    --mi-bgfx: radial-gradient(1100px 680px at 12% 0%, rgba(89, 173, 255, .18), transparent 55%), radial-gradient(900px 560px at 88% 16%, rgba(114, 92, 255, .16), transparent 52%), radial-gradient(1200px 760px at 50% 100%, rgba(14, 21, 35, .20), transparent 60%), linear-gradient(180deg, #070d17 0%, #0a1120 48%, #070d17 100%);
}

html,
body {
    background: var(--mi-bgfx) fixed !important;
    color: var(--mi-text)!important;
}

body {
    min-height: 100vh;
}

.miBtn,
.btn,
.pill,
.miPill,
button {
    color: var(--mi-text);
}

.miBtn,
.btn,
.miPill,
.pill {
    background: var(--mi-panel);
    border: 1px solid var(--mi-border);
}

.miBtnPrimary,
.btn.primary {
    background: linear-gradient(135deg, var(--mi-accent), var(--mi-accent-2)) !important;
    color: #fff !important;
    border: none !important;
}

.miBtnGhost {
    background: transparent !important;
    color: var(--mi-text)!important;
    border: 1px solid var(--mi-border)!important;
}

.miBtn:hover,
.btn:hover,
.miPill:hover,
.pill:hover {
    filter: brightness(1.02);
}

.miTopNav,
.miTopNavInner,
.miAccountNav,
.miAccountPanel,
.miPanel,
.miCard,
.mini,
.faqItem,
.reviewItem,
.miTableWrap,
.miModalCard,
.miDrawer {
    background: var(--mi-panel) !important;
    color: var(--mi-text)!important;
    border-color: var(--mi-border)!important;
}

.miP,
.miNote,
.sub,
.kicker,
.miLabel,
th,
.miSmall {
    color: var(--mi-muted)!important;
}

.miInput,
.miTextarea,
.miSelect,
input,
textarea,
select {
    background: var(--mi-panel-2)!important;
    color: var(--mi-text)!important;
    border: 1px solid var(--mi-border)!important;
}

.miFrame {
    background: transparent;
    border: 0;
    width: 100%;
    min-height: 72vh;
}

.miAccountGroupBtn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.miAccountGroupBtn::after {
    content: "▸";
    font-size: 14px;
    opacity: .8;
}

.miAccountGroupBtn[aria-expanded="true"]::after {
    content: "▾";
}

.miAccountGroup[hidden] {
    display: none !important;
}

.miAccountItem,
.miAccountGroupBtn,
.miAccountSignout {
    padding-left: 14px !important;
}

.miAccountItem,
.miAccountGroupBtn,
.miAccountSignout,
.miPill {
    cursor: pointer;
}

.miInvoiceActions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.miNoSelect,
.miNoSelect * {
    user-select: none;
    -webkit-user-select: none;
}

.miPageWide {
    max-width: min(1500px, 96vw);
    margin: 0 auto;
    padding: 18px 18px 32px;
}

.miHeroBanner {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--mi-border);
    box-shadow: 0 24px 70px rgba(20, 35, 70, .14);
}

.miHeroBanner img {
    width: 100%;
    display: block;
}

.miCarousel {
    margin-top: 18px;
    background: var(--mi-panel);
    border: 1px solid var(--mi-border);
    border-radius: 24px;
    padding: 18px;
}

.miCarouselStage {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 20px;
    align-items: center;
    min-height: 340px;
}

.miCarouselVisual {
    min-height: 240px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(8, 102, 255, .10), rgba(107, 92, 255, .10));
    border: 1px solid var(--mi-border);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.miCarouselText h2 {
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.05;
    margin: 0 0 12px;
    color: var(--mi-text);
}

.miCarouselText p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--mi-muted);
    margin: 0;
}

.miCarouselControls,
.miCarouselDots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.miCarouselRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.miDot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: rgba(120, 140, 180, .25);
    border: 1px solid var(--mi-border);
}

.miDot.active {
    background: var(--mi-accent);
}

.miHomeGrid {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 18px;
    margin-top: 18px;
}

.miServiceGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.miSectionCard {
    background: var(--mi-panel);
    border: 1px solid var(--mi-border);
    border-radius: 24px;
    padding: 20px;
}

.miSectionTitle {
    margin: 0 0 8px;
    font-size: 28px;
    color: var(--mi-text);
}

.miTrackWrap {
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid var(--mi-border);
    border-radius: 20px;
    background: var(--mi-panel);
}

.miTrack {
    display: flex;
    gap: 10px;
    white-space: nowrap;
    padding: 12px;
    animation: miTrack 24s linear infinite;
}

.miTrack span {
    display: inline-flex;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(8, 102, 255, .08);
    border: 1px solid var(--mi-border);
    font-weight: 700;
    color: var(--mi-text);
}

@keyframes miTrack {
    from {
        transform: translateX(0)
    }
    to {
        transform: translateX(-50%)
    }
}

.miPlanGrid,
.miFaqReviewGrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.miFaqReviewGrid {
    grid-template-columns: 1fr 1fr;
}

.miFooterWide {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px 0 8px;
    color: var(--mi-muted);
}

@media (max-width:980px) {
    .miCarouselStage,
    .miHomeGrid,
    .miFaqReviewGrid {
        grid-template-columns: 1fr
    }
    .miPlanGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .miServiceGrid {
        grid-template-columns: 1fr
    }
}

@media (max-width:640px) {
    .miPlanGrid {
        grid-template-columns: 1fr
    }
    .miPageWide {
        padding-inline: 12px
    }
}


/* Patch 4: global collage/background + persistent homepage layout */

html,
body {
    min-height: 100%;
}

body {
    position: relative;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
}

body::before {
    background: linear-gradient(135deg, rgba(8, 16, 30, .08), rgba(8, 16, 30, .02)), url('/assets/brand/maiya_banner.webp') center top / cover no-repeat;
    opacity: .18;
    transform: scale(1.03);
    filter: saturate(1.05) blur(2px);
}

body::after {
    z-index: -1;
    background: radial-gradient(900px 500px at 10% 0%, rgba(95, 165, 255, .20), transparent 55%), radial-gradient(700px 420px at 92% 10%, rgba(120, 100, 255, .16), transparent 52%), radial-gradient(1000px 650px at 50% 100%, rgba(40, 70, 120, .10), transparent 60%);
}

:root[data-theme="dark"] body::before {
    opacity: .12;
    filter: saturate(1.12) brightness(.72) blur(2px);
}

:root[data-theme="dark"] body::after {
    background: radial-gradient(900px 500px at 10% 0%, rgba(95, 165, 255, .18), transparent 55%), radial-gradient(700px 420px at 92% 10%, rgba(120, 100, 255, .16), transparent 52%), radial-gradient(1000px 650px at 50% 100%, rgba(18, 25, 40, .24), transparent 60%);
}

.miEmbed body::before,
.miEmbed body::after,
.miEmbed::before,
.miEmbed::after {
    display: none !important;
}

.miCarouselVisual svg {
    width: 100%;
    height: auto;
}

.miTopNav,
.miTopNavInner {
    backdrop-filter: blur(16px);
}

.miPageWide {
    width: min(1540px, 96vw);
}

.miSectionCard {
    box-shadow: 0 10px 32px rgba(12, 30, 70, .08);
}

:root[data-theme="dark"] .miSectionCard {
    box-shadow: 0 16px 38px rgba(0, 0, 0, .18);
}

.miHeroBanner {
    margin-top: 4px;
}

.miHeroBanner img {
    aspect-ratio: 16 / 5;
    object-fit: cover;
}

.miCarouselVisual {
    text-decoration: none;
}

.miCarouselVisual:hover {
    transform: translateY(-1px);
}


/* v9.7.1 homepage reset */

:root {
    --mi-home-max: min(1720px, calc(100vw - 24px));
    --mi-home-pad: clamp(16px, 3vw, 44px);
}

body::before {
    background: linear-gradient(135deg, rgba(7, 11, 20, .14), rgba(7, 11, 20, .04)), url('/assets/brand/maiya_banner.webp') center top / cover no-repeat !important;
    opacity: .28;
    filter: saturate(1.05) blur(1px);
}

:root[data-theme="dark"] body::before {
    opacity: .18;
    filter: saturate(1.08) brightness(.82) blur(1px);
}

.miTopNav {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding-top: 10px;
}

.miTopNavInner {
    width: var(--mi-home-max) !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 14px var(--mi-home-pad) !important;
    border-radius: 24px !important;
    background: linear-gradient(180deg, rgba(8, 16, 30, .80), rgba(8, 16, 30, .56)) !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    box-shadow: 0 20px 60px rgba(6, 16, 34, .22);
}

:root[data-theme="light"] .miTopNavInner {
    background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(247, 251, 255, .78)) !important;
}

.miBrand {
    justify-self: start;
    min-width: max-content;
}

.miBrandName,
.miBrandSub {
    letter-spacing: .18em;
}

.miNavCenter {
    justify-content: center;
}

.miSearch {
    justify-self: center;
    min-width: min(420px, 32vw);
}

.miNavRight {
    justify-self: end;
}

.miMenu {
    z-index: 99999 !important;
    min-width: 220px;
    box-shadow: 0 18px 50px rgba(6, 16, 34, .28);
}

.miMenu.open {
    display: block !important;
}

.miAuth {
    position: relative;
    z-index: 10041;
    isolation: isolate;
}

.miIconBtn {
    position: relative;
    z-index: 10042;
}

.miMenu {
    pointer-events: auto;
}

.miMenu a,
.miMenu button {
    position: relative;
    z-index: 10043;
}

.miHomePage {
    width: 100%;
    max-width: none;
    padding: 12px 0 36px;
}

.miHomeHero,
.miHomeSection,
.miTrackShell,
.miHomeFooter {
    width: var(--mi-home-max);
    margin: 0 auto;
    padding-inline: var(--mi-home-pad);
}

.miHomeHero {
    padding-top: 12px;
}

.miHeroCarousel {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    gap: clamp(20px, 3vw, 36px);
    align-items: center;
    min-height: min(70vh, 760px);
}

.miHeroVisual,
.miHeroCopy {
    min-width: 0;
}

.miHeroVisual {
    display: grid;
    align-items: stretch;
    min-height: clamp(360px, 54vw, 720px);
    border-radius: 0;
    background: transparent !important;
    border: none !important;
    overflow: hidden;
    text-decoration: none;
}

.miHeroVisual svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 24px 60px rgba(6, 16, 34, .18));
}

.miHeroCopy {
    display: grid;
    gap: 18px;
    align-content: center;
    padding: clamp(8px, 1.6vw, 18px) 0;
}

.miHeroCopy h2 {
    margin: 0;
    font-size: clamp(34px, 5vw, 68px);
    line-height: 1.02;
    color: var(--mi-text);
}

.miHeroCopy p {
    margin: 0;
    font-size: clamp(17px, 1.6vw, 21px);
    line-height: 1.7;
    color: var(--mi-muted);
    max-width: 62ch;
}

.miHeroMeta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.miHeroChip {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--mi-border);
    font-weight: 700;
    color: var(--mi-text);
}

.miHeroCarouselBar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.miCarouselCtl {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 18px;
    padding: 0;
}

.miCarouselDots {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.miDot {
    width: 12px;
    height: 12px;
}

.miSurfaceSection {
    padding-top: 16px;
}

.miSectionIntro {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 16px;
}

.miCenteredIntro {
    justify-content: center;
    text-align: center;
}

.miHomeTitle {
    margin: 4px 0 0;
    font-size: clamp(30px, 3.4vw, 48px);
    line-height: 1.06;
    color: var(--mi-text);
}

.miServicesLayout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    gap: 20px;
    align-items: start;
}

.miServicesWide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

body[data-page="home"] .mini.service,
body[data-page="home"] .faqCol,
body[data-page="home"] .revCol,
body[data-page="home"] .miNarrativeBlock,
body[data-page="home"] .miTrackShell {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 14px 36px rgba(6, 16, 34, .10);
    backdrop-filter: blur(10px);
}

:root[data-theme="light"] body[data-page="home"] .mini.service,
:root[data-theme="light"] body[data-page="home"] .faqCol,
:root[data-theme="light"] body[data-page="home"] .revCol,
:root[data-theme="light"] body[data-page="home"] .miNarrativeBlock,
:root[data-theme="light"] body[data-page="home"] .miTrackShell {
    background: rgba(255, 255, 255, .62);
    border-color: rgba(16, 44, 88, .10);
}

body[data-page="home"] .mini.service {
    border-radius: 26px;
}

.miNarrativeBlock {
    padding: 18px 18px 6px;
    border-radius: 24px;
}

.miTrackShell {
    margin-top: 18px;
    border-radius: 28px;
    overflow: hidden;
}

body[data-page="home"] .miTrackWrap {
    border: none;
    background: transparent;
}

body[data-page="home"] .miTrack {
    padding: 14px 16px;
}

.miPlansSection {
    padding-top: 24px;
}

.miPlanGridOriginal {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.miPlanGridOriginal .plan {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.miPlanGridOriginal .cta {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.miPlanCtasStack .btn {
    flex: 1 1 100%;
    text-align: center;
}

.miFaqArea {
    padding-top: 22px;
}

body[data-page="home"] .faqReviews {
    gap: 20px;
}

body[data-page="home"] .faqCol,
body[data-page="home"] .revCol {
    min-height: 560px;
    border-radius: 26px;
    padding: 18px;
}

.miHomeFooter {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 24px;
    padding-bottom: 10px;
    color: var(--mi-text);
}

.miFooterLeft,
.miFooterRight {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.miFooterRight {
    justify-content: flex-end;
}

.miFooterRight .icons a {
    color: var(--mi-text);
}

@media (max-width: 1180px) {
    .miHeroCarousel,
    .miServicesLayout {
        grid-template-columns: 1fr;
    }
    .miSearch {
        min-width: min(320px, 40vw);
    }
}

@media (max-width: 900px) {
    .miPlanGridOriginal,
    .miServicesWide,
    .faqReviews {
        grid-template-columns: 1fr !important;
    }
    .miTopNavInner {
        width: min(100vw - 12px, 100%) !important;
        padding: 12px 14px !important;
    }
}

@media (max-width: 640px) {
    .miHomeHero,
    .miHomeSection,
    .miTrackShell,
    .miHomeFooter {
        padding-inline: 14px;
    }
    .miHeroVisual {
        min-height: 280px;
    }
    .miHeroCopy h2 {
        font-size: clamp(30px, 10vw, 44px);
    }
    .miCarouselCtl {
        width: 40px;
        height: 40px;
    }
}


/* v9.7.2 signup/profile patch */

.miSignupBody {
    min-height: 100vh;
    background: var(--mi-bgfx, var(--bgfx));
}

.miSignupShell {
    width: min(1200px, calc(100vw - 24px));
    margin: 0 auto;
    padding: 18px 0 40px;
    display: grid;
    gap: 18px;
}

.miSignupTop {
    display: flex;
    justify-content: flex-start;
}

.miSignupHero,
.miSignupCard {
    background: var(--mi-panel, rgba(12, 18, 28, .78));
    border: 1px solid var(--mi-border);
    border-radius: 28px;
    padding: 22px;
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 48px rgba(6, 16, 34, .16);
}

:root[data-theme="light"] .miSignupHero,
:root[data-theme="light"] .miSignupCard {
    background: rgba(255, 255, 255, .82);
}

.miSignupHero {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 20px;
    align-items: center;
}

.miEyebrow {
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--mi-muted);
    font-weight: 800;
    margin: 0 0 8px;
}

.miSignupHero h1 {
    margin: 0 0 8px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.04;
}

.miSignupHero p {
    margin: 0;
    color: var(--mi-muted);
    line-height: 1.7;
}

.miSignupAuthChoices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-self: stretch;
}

.miSignupHeaderRow {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.miSignupStepMeta {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    color: var(--mi-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.miSignupProgress {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    overflow: hidden;
    margin: 14px 0 18px;
}

.miSignupProgress span {
    display: block;
    height: 100%;
    width: 10%;
    background: linear-gradient(90deg, var(--mi-accent), var(--mi-accent-2));
    border-radius: 999px;
    transition: width .28s ease;
}

.miSignupForm {
    display: grid;
    gap: 18px;
}

.miStepGrid {
    display: grid;
    gap: 14px;
}

.miStepGrid2,
.miGrid2Wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.miField {
    display: grid;
    gap: 8px;
    align-content: start;
}

.miSpan2 {
    grid-column: 1/-1;
}

.miLabel {
    font-weight: 700;
    color: var(--mi-text);
}

.miFieldHint {
    align-self: end;
}

.miHint,
.miNote {
    font-size: 13px;
    line-height: 1.55;
    color: var(--mi-muted);
}

.miPhoneRow {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 10px;
}

.miRadioRow {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.miRadio {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-weight: 600;
    color: var(--mi-text);
}

.miChoiceCard {
    border: 1px solid var(--mi-border);
    border-radius: 22px;
    padding: 18px;
    background: rgba(255, 255, 255, .03);
    display: grid;
    gap: 10px;
}

.miChoiceCard.isSelected {
    box-shadow: 0 0 0 2px rgba(76, 130, 255, .35) inset;
    background: rgba(76, 130, 255, .08);
}

.miAvatarChooser {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    border: 1px dashed var(--mi-border);
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .04);
    overflow: hidden;
    cursor: pointer;
}

.miAvatarChooserLarge {
    width: 120px;
    height: 120px;
}

.miAvatarChooser img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.miSignupAvatarWrap {
    display: grid;
    gap: 8px;
    justify-items: center;
    text-align: center;
}

.miSignupActions {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.miSignupActionsRight {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.req {
    color: #ff6b6b;
}

.miStrength {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    overflow: hidden;
}

.miStrength span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    transition: width .2s ease, background .2s ease;
}

.miProfilePanelWide .miProfileFormExt {
    display: grid;
    gap: 18px;
}

.miProfilePanelWide .miProfileSection {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--mi-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, .03);
}

:root[data-theme="light"] .miProfilePanelWide .miProfileSection {
    background: rgba(255, 255, 255, .55);
}

.miProfilePanelWide .miGrid2,
.miProfilePanelWide .miGrid2Wide {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.miProfileAvatarRow {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

#p_business_section[hidden],
#p_solo_section_wrap[hidden],
#p_solo_block[hidden],
#p_sole_address_block[hidden] {
    display: none !important;
}

@media (max-width:900px) {
    .miSignupHero {
        grid-template-columns: 1fr
    }
    .miSignupAuthChoices {
        grid-template-columns: 1fr
    }
    .miStepGrid2,
    .miGrid2Wide,
    .miProfilePanelWide .miGrid2,
    .miProfilePanelWide .miGrid2Wide,
    .miPhoneRow {
        grid-template-columns: 1fr
    }
    .miSignupShell {
        width: min(100vw - 16px, 100%);
    }
}


/* v9.7.3 billing/refunds patch */

.miSettingsPlanGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.miSettingsPlanGrid .plan {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.miSettingsPlanGrid .cta {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.miInvoiceActions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width:900px) {
    .miSettingsPlanGrid {
        grid-template-columns: 1fr;
    }
}


/* v9.7.4 account security polish */

.miActionsRight {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap
}

.miGrid2Wide .miSpan2 {
    grid-column: 1 / -1
}

.miQr {
    min-height: 220px;
    display: grid;
    place-items: center;
    border: 1px dashed var(--mi-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, .03);
    margin: 12px 0;
    padding: 12px
}

.miDeviceTable th:last-child,
.miDeviceTable td:last-child {
    text-align: right
}

.miDeviceCell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px
}

.miDeviceIcon {
    font-size: 22px;
    line-height: 1
}

.miAccountGroupBtn,
.miAccountItem,
.miAccountSignout {
    transition: background .18s ease, border-color .18s ease, transform .18s ease
}

.miAccountGroupBtn:hover,
.miAccountItem:hover,
.miAccountSignout:hover {
    transform: translateX(2px)
}

.miBtn[disabled] {
    opacity: .55;
    cursor: not-allowed
}

@media (max-width: 980px) {
    .miDeviceCell {
        min-width: unset
    }
    .miDeviceTable .miSmall {
        display: none
    }
}


/* v9.7.6 final background, search, and responsive polish */

body::before {
    background: linear-gradient(135deg, rgba(8, 14, 25, .16), rgba(8, 14, 25, .02)), url('/assets/brand/maiya_banner.webp') center top / cover no-repeat !important;
    opacity: .26;
    filter: saturate(1.06) blur(1px);
}

:root[data-theme="dark"] body::before {
    opacity: .22;
    filter: saturate(1.08) brightness(.92) blur(1px);
}

:root[data-theme="light"] body::before {
    opacity: .30;
    filter: saturate(1.02) brightness(1.04) blur(1px);
}

body {
    background-attachment: fixed;
}

.miSearchSuggest {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 9999;
    display: grid;
    gap: 6px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid var(--mi-border);
    background: rgba(10, 18, 32, .92);
    box-shadow: 0 22px 60px rgba(6, 16, 34, .24);
    backdrop-filter: blur(12px);
}

:root[data-theme="light"] .miSearchSuggest {
    background: rgba(255, 255, 255, .96);
}

.miSearchSuggestItem {
    appearance: none;
    border: none;
    background: rgba(255, 255, 255, .04);
    color: var(--mi-text);
    padding: 12px 14px;
    border-radius: 14px;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.miSearchSuggestItem:hover {
    background: rgba(121, 194, 255, .14)
}

.miSearchSuggestEmpty {
    padding: 10px 12px;
    color: var(--mi-muted)
}

@media (max-width: 980px) {
    .miTopNavInner {
        padding: 12px 14px !important;
        width: min(100vw - 12px, 100%) !important;
    }
    .miSearch {
        min-width: unset !important;
        width: 100% !important;
    }
    .miHomeHero,
    .miHomeSection,
    .miTrackShell,
    .miHomeFooter {
        padding-inline: 14px !important;
    }
    .miHeroCarousel {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        min-height: auto !important;
    }
    .miHeroVisual {
        min-height: 260px !important;
    }
}

@media (max-width: 640px) {
    .miTopNav {
        padding-top: 8px !important;
    }
    .miTopNavInner {
        border-radius: 18px !important;
    }
    .miHeroCopy h2 {
        font-size: clamp(28px, 11vw, 40px) !important;
    }
    .miHomeFooter {
        gap: 10px !important;
    }
}


/* v9.7.7 stabilization patch */

.miSearchSuggestItem.is-active {
    background: rgba(121, 194, 255, .18);
    outline: 1px solid rgba(121, 194, 255, .28);
}

.miTopNav,
.miTopNavInner,
.miHomeHero,
.miHomeSection,
.miTrackShell,
.miHomeFooter,
.miAccountShell,
.miAccountMain,
.miAccountContent {
    width: 100%;
    max-width: none;
}

.miTopNavInner {
    margin-inline: auto;
}

.miMenu,
.miProfileMenu,
[role="menu"] {
    z-index: 10040 !important;
}

.miDrawer,
.miAccountNav,
.miAccountContent,
.miCard,
.plan,
.review,
.faqItem {
    transition: transform .22s ease, opacity .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.miCard:hover,
.plan:hover,
.review:hover,
.faqItem:hover {
    transform: translateY(-2px);
}

@media (max-width: 1200px) {
    .miHomeHero,
    .miHomeSection,
    .miTrackShell,
    .miHomeFooter {
        padding-inline: 18px !important;
    }
}

@media (max-width: 760px) {
    .miSearchSuggest {
        left: 0;
        right: 0;
    }
    .miTopNavInner {
        padding-inline: 12px !important;
    }
}


/* v9.7.8 accessibility, focus, and reduced-motion polish */

:focus-visible {
    outline: 2px solid rgba(121, 194, 255, .9);
    outline-offset: 2px;
}

.miBtn:focus-visible,
.miIconBtn:focus-visible,
.miSearchSuggestItem:focus-visible,
.miAccountItem:focus-visible,
.miAccountGroupBtn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    box-shadow: 0 0 0 3px rgba(121, 194, 255, .18);
}

.miReduceMotion *,
.miReduceMotion *::before,
.miReduceMotion *::after {
    animation: none !important;
    transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto
    }
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }
}

.miSearchSuggestItem {
    min-height: 44px;
    display: flex;
    align-items: center
}

.miTopNavInner,
.miAccountNav,
.miPanel,
.miCard {
    backdrop-filter: saturate(1.04) blur(12px)
}

@media (max-width: 560px) {
    .miPanel,
    .miCard,
    .plan {
        border-radius: 18px !important
    }
    .miSearchSuggest {
        padding: 8px;
        gap: 4px
    }
}


/*
 * v9.8.1 override: ensure the top navigation always spans the full width
 * of the viewport on all breakpoints.  Without this override
 * earlier definitions may restrict the header to a fixed width and
 * centered layout.  We explicitly unset max-width and margin here.
 */

.miTopNavInner {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

/* v9.9.5 hard reset: plain white / plain dark theme + account/admin usability fixes */
:root[data-theme="light"] {
  --mi-bg: #ffffff !important;
  --mi-card: #ffffff !important;
  --mi-panel: #ffffff !important;
  --mi-panel-2: #ffffff !important;
  --mi-text: #111111 !important;
  --mi-muted: #4b5563 !important;
  --mi-border: rgba(17,17,17,.10) !important;
  --mi-bgfx: #ffffff !important;
}
:root[data-theme="dark"] {
  --mi-bg: #000000 !important;
  --mi-card: #000000 !important;
  --mi-panel: #0b0b0b !important;
  --mi-panel-2: #0b0b0b !important;
  --mi-text: #ffffff !important;
  --mi-muted: rgba(255,255,255,.72) !important;
  --mi-border: rgba(255,255,255,.16) !important;
  --mi-bgfx: #000000 !important;
}
html, body, .miPage, .miHomePage, .miSignupBody { background: var(--mi-bg) !important; }
body::before, body::after, #bgVisual, .miHeroVisual, .serviceMotion, .serviceMotion2, .serviceSide { display: none !important; content: none !important; background: none !important; }
.miTopNav { background: var(--mi-bg) !important; backdrop-filter: none !important; border-bottom: 1px solid var(--mi-border) !important; }
.miTopNavInner { max-width: none !important; width: 100% !important; margin: 0 !important; padding: 12px 16px !important; border-radius: 0 !important; }
.miBrand, .miTopNavInner > * { position: relative; z-index: 10061; }
.miBrand { margin-left: 0 !important; padding-left: 0 !important; }
.miAuth { position: relative !important; }
.miMenu { right: 0 !important; top: calc(100% + 8px) !important; z-index: 10080 !important; pointer-events: auto !important; background: var(--mi-bg) !important; box-shadow: 0 18px 40px rgba(0,0,0,.12) !important; }
.miMenu a, .miMenu button, .miAccountNav a, .miAccountNav button { pointer-events: auto !important; position: relative; z-index: 2; }
.miAccountShell, .miAccountMain, .miAccountPanel, .miPanel, .miTableWrap, .miFrame { overflow: visible !important; }
.miAccountShell { width: min(1400px, calc(100vw - 24px)) !important; max-width: none !important; }
.miAccountNav { position: sticky !important; top: 74px !important; align-self: start !important; z-index: 30 !important; background: var(--mi-bg) !important; }
.miAccountMain { background: transparent !important; border: none !important; box-shadow: none !important; padding: 0 !important; }
.miPanel, .miCard, .miMainPanel, .miProfilePanelWide .miProfileSection, .miSectionCard, .miNarrativeBlock, body[data-page="home"] .mini.service, body[data-page="home"] .faqCol, body[data-page="home"] .revCol, body[data-page="home"] .miTrackShell { background: var(--mi-bg) !important; border: 1px solid var(--mi-border) !important; box-shadow: none !important; backdrop-filter: none !important; }
.miPanel { padding: 18px !important; }
.miFrame { min-height: 74vh !important; background: var(--mi-bg) !important; }
.miHeroCarousel, .miServicesLayout { grid-template-columns: 1fr !important; min-height: auto !important; }
.miHomeHero, .miHomeSection, .miTrackShell, .miHomeFooter { width: min(1400px, calc(100vw - 24px)) !important; }
.miServicesWide { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 14px !important; }
body[data-page="home"] .mini.service { min-height: auto !important; padding: 16px !important; border-radius: 18px !important; }
.miNarrativeBlock { padding: 16px !important; border-radius: 18px !important; }
body[data-page="home"] .feat, body[data-page="home"] .feat li { margin-bottom: 6px !important; }
.miProfileHeader { align-items: center !important; }
#p_dob { max-width: 280px; }
.miFilters { margin-bottom: 12px; }
.miInvoiceActions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 980px) {
  .miServicesWide { grid-template-columns: 1fr !important; }
  .miAccountShell { grid-template-columns: 1fr !important; }
}


/* v9.9.8 final white-label UI reset */
:root,
:root[data-theme="light"] {
  --bg: #ffffff !important;
  --bg2: #ffffff !important;
  --card: #ffffff !important;
  --card2: #ffffff !important;
  --text: #111827 !important;
  --muted: #4b5563 !important;
  --border: rgba(17,24,39,.12) !important;
  --mi-bg: #ffffff !important;
  --mi-panel: #ffffff !important;
  --mi-panel-2: #ffffff !important;
  --mi-text: #111827 !important;
  --mi-muted: #4b5563 !important;
  --mi-border: rgba(17,24,39,.12) !important;
  --mi-bgfx: #ffffff !important;
}
:root[data-theme="dark"] {
  --bg: #000000 !important;
  --bg2: #000000 !important;
  --card: #0b0b0b !important;
  --card2: #0b0b0b !important;
  --text: #f9fafb !important;
  --muted: rgba(255,255,255,.72) !important;
  --border: rgba(255,255,255,.16) !important;
  --mi-bg: #000000 !important;
  --mi-panel: #0b0b0b !important;
  --mi-panel-2: #0b0b0b !important;
  --mi-text: #f9fafb !important;
  --mi-muted: rgba(255,255,255,.72) !important;
  --mi-border: rgba(255,255,255,.16) !important;
  --mi-bgfx: #000000 !important;
}
html, body, .miPage, .miSignupBody {
  background: var(--mi-bg) !important;
  background-image: none !important;
  color: var(--mi-text) !important;
}
body::before,
body::after,
#bgFX,
#bgSlide,
#bgVisual,
.bg,
.bg2,
.stripe,
.miHeroVisual {
  display: none !important;
  background: none !important;
  content: none !important;
}
header,
.miTopNav {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  width: 100% !important;
  max-width: none !important;
  background: var(--mi-bg) !important;
  backdrop-filter: none !important;
  z-index: 10090 !important;
}
.headerInner,
.miTopNavInner {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 12px 16px !important;
  border-radius: 0 !important;
}
.miBrand,
.brand {
  margin-left: 0 !important;
  padding-left: 0 !important;
}
.miBrandLogo,
.logoimg {
  background: transparent !important;
}
.miMenu {
  right: 0 !important;
  top: calc(100% + 8px) !important;
  z-index: 10120 !important;
  pointer-events: auto !important;
  background: var(--mi-panel) !important;
  border: 1px solid var(--mi-border) !important;
  box-shadow: 0 18px 40px rgba(0,0,0,.12) !important;
}
.miMenu a,
.miMenu button,
.miAccountNav a,
.miAccountNav button {
  pointer-events: auto !important;
  color: var(--mi-text) !important;
}
.miAccountShell,
.miHomeHero,
.miHomeSection,
.miTrackShell,
.miHomeFooter {
  width: min(1680px, calc(100vw - 8px)) !important;
  max-width: none !important;
}
.miAccountShell {
  grid-template-columns: 280px minmax(0, 1fr) !important;
}
.miAccountMain,
.miAccountPanel {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.miPanel,
.miCard,
.miAccountNav,
.miTableWrap,
.miFrame,
.miSignupHero,
.miSignupCard,
body[data-page="home"] .mini.service,
body[data-page="home"] .miNarrativeBlock,
body[data-page="home"] .faqCol,
body[data-page="home"] .revCol,
body[data-page="home"] .miTrackShell {
  background: var(--mi-panel) !important;
  color: var(--mi-text) !important;
  border: 1px solid var(--mi-border) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.miP,
.miNote,
.sub,
.kicker,
.miLabel,
th,
.miSmall {
  color: var(--mi-muted) !important;
}
body[data-page="home"] .miServicesLayout {
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, .72fr) !important;
  gap: 16px !important;
  align-items: start !important;
}
body[data-page="home"] .miServicesWide {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
}
body[data-page="home"] .mini.service {
  min-height: 230px !important;
  padding: 16px !important;
  border-radius: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}
body[data-page="home"] .serviceTop {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}
body[data-page="home"] .serviceBody {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) 132px !important;
  gap: 12px !important;
  align-items: start !important;
}
body[data-page="home"] .serviceSide {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  width: 132px !important;
  min-width: 132px !important;
}
body[data-page="home"] .serviceMotion,
body[data-page="home"] .serviceMotion2 {
  display: block !important;
  width: 132px !important;
  height: 72px !important;
  min-width: 132px !important;
  min-height: 72px !important;
  max-width: 132px !important;
  max-height: 72px !important;
  border: 1px solid var(--mi-border) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: transparent !important;
}
body[data-page="home"] .serviceMotion canvas,
body[data-page="home"] .serviceMotion2 canvas {
  width: 100% !important;
  height: 100% !important;
}
body[data-page="home"] .miRightNarrative {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 16px !important;
}
body[data-page="home"] .miNarrativeBlock {
  min-height: 0 !important;
  padding: 16px !important;
  border-radius: 18px !important;
}
@media (max-width: 980px) {
  .miAccountShell,
  body[data-page="home"] .miServicesLayout,
  body[data-page="home"] .miServicesWide,
  body[data-page="home"] .serviceBody {
    grid-template-columns: 1fr !important;
  }
  body[data-page="home"] .serviceSide {
    width: auto !important;
    min-width: 0 !important;
    justify-content: flex-start !important;
  }
}

/* v9.9.9 homepage language + white-label shell corrections */
body::before,
body::after,
#bgVisual,
#bgSlide,
#bgFX {
  display: none !important;
  background: none !important;
  content: none !important;
}
html,
body,
.miPage,
.miHomePage,
.miSignupBody {
  background: var(--mi-bg) !important;
  background-image: none !important;
}
header,
.miTopNav,
.miTopNavInner {
  background-image: none !important;
}
body[data-page="home"] .miHeroVisual {
  display: grid !important;
  background: transparent !important;
  border: none !important;
  min-height: clamp(340px, 46vw, 680px) !important;
}
body[data-page="home"] .miHeroVisual svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}
body[data-page="home"] .miTrackShell {
  width: 100% !important;
  max-width: none !important;
  margin: 18px 0 0 !important;
  padding-inline: 0 !important;
  border-radius: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
}
body[data-page="home"] .miTrack {
  padding: 14px 18px !important;
}
body[data-page="home"] .miTrack span {
  white-space: nowrap !important;
}
.miAuth,
.miAuth * {
  pointer-events: auto !important;
}
.miAuth {
  position: relative !important;
  z-index: 2147482000 !important;
}
.miMenu {
  position: absolute !important;
  inset: auto 0 auto auto !important;
  z-index: 2147483000 !important;
}
.miMenu.open {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.miMenu a,
.miMenu button {
  position: relative !important;
  z-index: 2147483001 !important;
}


/* v9.9.14 hover rail + services polish */
.miAccountNav { transition: width .18s ease, min-width .18s ease, box-shadow .18s ease, transform .18s ease; }
.miAccountNav.miHoverOpen { box-shadow: 0 18px 40px rgba(0,0,0,.12); }
@media (min-width: 981px) {
  .miAccountShell { align-items: flex-start; }
  .miAccountNav.isCollapsed { width: 78px !important; min-width: 78px !important; }
  .miAccountNav.miHoverOpen { width: 280px !important; min-width: 280px !important; }
  .miAccountMain { min-width: 0; }
}
body[data-page="home"] .miTrackShell,
body[data-page="home"] .miHomeHero,
body[data-page="home"] .miHomeSection,
body[data-page="home"] .miHomeFooter { width: min(1480px, calc(100vw - 16px)) !important; max-width: none !important; }
body[data-page="home"] .miServicesLayout { grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr) !important; align-items: start !important; gap: 18px !important; }
body[data-page="home"] .miRightNarrative { display: grid !important; gap: 14px !important; }
body[data-page="home"] .miNarrativeBlock { min-height: 0 !important; padding: 18px !important; }
body[data-page="home"] .serviceBody { display: grid !important; grid-template-columns: minmax(0, 1fr) 148px !important; gap: 10px !important; align-items: center !important; }
body[data-page="home"] .serviceMotion,
body[data-page="home"] .serviceMotion2,
body[data-page="home"] .serviceSide { width: 148px !important; height: 76px !important; min-height: 76px !important; max-height: 76px !important; }
body[data-page="home"] .serviceMotion canvas,
body[data-page="home"] .serviceMotion2 canvas { max-width: 148px !important; max-height: 76px !important; }
@media (max-width: 1100px) {
  body[data-page="home"] .miServicesLayout { grid-template-columns: 1fr !important; }
  body[data-page="home"] .serviceBody { grid-template-columns: 1fr !important; }
}


/* v9.9.15 visitor polish */
.miAuthCard {
  display: grid;
  gap: 14px;
  align-content: start;
}
.miAuthCardTitle {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mi-muted, #9FB0D0);
}
.miSocialAuthGrid {
  display: grid;
  gap: 10px;
}
.miSocialAuthGrid2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.miSocialBtn {
  appearance: none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: inherit;
  border-radius: 14px;
  min-height: 48px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.miSocialBtn:hover {
  transform: translateY(-1px);
  border-color: rgba(121,194,255,.35);
  background: rgba(121,194,255,.08);
}
.miSocialIcon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
}
.miSocialIcon svg { width: 18px; height: 18px; display: block; }
.miSocialFacebook,
.miSocialLinkedIn,
.miSocialGitHub,
.miSocialInstagram { color: #fff; }
.miSocialFacebook { background: #1877f2; }
.miSocialLinkedIn { background: #0a66c2; }
.miSocialGitHub { background: #111827; }
.miSocialInstagram { background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af,#515bd4); }
.miSocialGoogle { background: #fff; }
.miAuthDivider {
  position: relative;
  text-align: center;
  color: var(--mi-muted, #9FB0D0);
  font-size: 13px;
  margin: 2px 0;
}
.miAuthDivider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.miAuthDivider span {
  position: relative;
  padding: 0 12px;
  background: var(--mi-bg, #06080f);
}
.miPlanIntent,
.miPlanFlowHint {
  border: 1px solid rgba(121,194,255,.24);
  background: rgba(121,194,255,.08);
  color: inherit;
  border-radius: 14px;
  padding: 10px 14px;
}
.miPlanFlowHint {
  width: min(920px, calc(100vw - 48px));
  margin: 0 auto 18px;
  color: var(--mi-muted, #9FB0D0);
}
.miPlanFlowHint a { color: inherit; text-decoration: underline; }
.miSignupAvatarWrap.isHidden { display: none; }
.miSigninSocial { margin: 10px 0 14px; }
@media (max-width: 900px) {
  .miSignupHero {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
@media (max-width: 640px) {
  .miSocialAuthGrid2 {
    grid-template-columns: 1fr;
  }
  .miPlanFlowHint {
    width: min(100%, calc(100vw - 24px));
  }
  body[data-page="home"] .miTrack { animation-duration: 38s; }
}


/* v9.9.18 homepage hero realignment + track fit */
body[data-page="home"] .miHomeHero,
body[data-page="home"] .miHomeSection,
body[data-page="home"] .miHomeFooter {
  width: min(1480px, calc(100vw - 8px)) !important;
  max-width: none !important;
}
body[data-page="home"] .miHeroCarousel {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr) !important;
  gap: clamp(14px, 2vw, 24px) !important;
  align-items: center !important;
  min-height: min(70vh, 760px) !important;
}
body[data-page="home"] .miHeroVisual {
  order: 1 !important;
  min-height: clamp(360px, 46vw, 680px) !important;
}
body[data-page="home"] .miHeroCopy {
  order: 2 !important;
  max-width: 640px !important;
  gap: 14px !important;
  align-content: center !important;
}
body[data-page="home"] .miHeroCarouselBar {
  justify-content: flex-start !important;
  margin-top: 2px !important;
}
body[data-page="home"] .miTrackShell {
  width: min(1480px, calc(100vw - 8px)) !important;
  max-width: none !important;
  margin: 18px auto 0 !important;
  padding-inline: 0 !important;
}
@media (max-width: 1180px) {
  body[data-page="home"] .miHeroCarousel {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    min-height: auto !important;
  }
  body[data-page="home"] .miHeroVisual,
  body[data-page="home"] .miHeroCopy {
    order: initial !important;
    max-width: none !important;
  }
}

/* v9.9.21 header stability + homepage fit */
body[data-page="home"] {
  overflow-x: hidden !important;
}

header.miTopNav,
header[data-mi-header],
.miTopNav {
  background: var(--mi-bg) !important;
  border-bottom: 1px solid var(--mi-border) !important;
  box-shadow: none !important;
}

.miTopNavInner {
  width: min(1680px, calc(100vw - 16px)) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 10px 4px 12px !important;
  display: grid !important;
  grid-template-columns: auto minmax(180px, 320px) minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

.miBrand,
.miBrandText,
.miBrandName,
.miBrandSub,
.miBtn,
.miPill,
.miIconBtn,
.miNavItem {
  white-space: nowrap !important;
}

.miSearch {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 320px !important;
  justify-self: start !important;
}

.miSearchInput {
  width: 100% !important;
}

.miNavCenter {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  overflow: hidden !important;
}

.miNavItem {
  padding: 8px 10px !important;
  font-size: 14px !important;
}

.miNavRight {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-self: end !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}

.miLang,
.miAuth {
  flex-shrink: 0 !important;
}

body[data-page="home"] .miHomeHero,
body[data-page="home"] .miHomeSection,
body[data-page="home"] .miHomeFooter,
body[data-page="home"] .miTrackShell {
  width: min(1480px, calc(100vw - 16px)) !important;
  max-width: calc(100vw - 16px) !important;
  box-sizing: border-box !important;
}

body[data-page="home"] .miHeroCarousel {
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr) !important;
  gap: clamp(12px, 1.8vw, 22px) !important;
  align-items: center !important;
}

body[data-page="home"] .miHeroVisual {
  min-width: 0 !important;
  min-height: clamp(340px, 45vw, 660px) !important;
}

body[data-page="home"] .miHeroCopy {
  min-width: 0 !important;
  max-width: 640px !important;
  gap: 12px !important;
}

body[data-page="home"] .miHeroCarouselBar {
  justify-content: flex-start !important;
  margin-top: 4px !important;
}

body[data-page="home"] .miTrackShell {
  margin: 18px auto 0 !important;
  padding-inline: 0 !important;
  overflow: hidden !important;
}

body[data-page="home"] .miTrack {
  padding: 14px 16px !important;
}

@media (max-width: 1240px) {
  .miTopNavInner {
    grid-template-columns: auto minmax(0, 1fr) auto auto !important;
  }

  .miSearch {
    max-width: 240px !important;
  }

  .miNavItem {
    padding-inline: 8px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 1120px) {
  .miTopNavInner {
    grid-template-columns: auto auto 1fr auto !important;
  }

  .miSearch,
  .miNavCenter {
    display: none !important;
  }

  .miHamburger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .miNavRight {
    gap: 6px !important;
  }

  body[data-page="home"] .miHeroCarousel {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }

  body[data-page="home"] .miHeroVisual,
  body[data-page="home"] .miHeroCopy {
    max-width: none !important;
  }
}

@media (max-width: 760px) {
  .miTopNavInner {
    width: min(100vw - 12px, 100%) !important;
    padding: 8px 2px 10px !important;
    gap: 8px !important;
  }

  .miBrandLogo {
    width: 30px !important;
    height: 30px !important;
  }

  .miBrandSub {
    letter-spacing: 0.12em !important;
    font-size: 11px !important;
  }

  .miNavRight .miBtn,
  .miNavRight .miPill {
    height: 38px !important;
    padding-inline: 10px !important;
  }

  body[data-page="home"] .miHomeHero,
  body[data-page="home"] .miHomeSection,
  body[data-page="home"] .miHomeFooter,
  body[data-page="home"] .miTrackShell {
    width: min(100vw - 12px, 100%) !important;
    max-width: calc(100vw - 12px) !important;
  }
}


/* v9.9.27 unified form rows + profile/signup alignment */
.miStepGrid .miField,
.miProfileFormRows .miFormRow,
.miPanel .miFormRow {
  display:grid;
  grid-template-columns:minmax(160px,220px) minmax(0,1fr);
  gap:12px 16px;
  align-items:start;
}
.miStepGrid .miField > .miLabel,
.miFormRowLabel {
  font-weight:700;
  color:var(--mi-text);
  padding-top:10px;
}
.miFieldHint,
.miFormRowHint {
  font-size:12px;
  color:var(--mi-muted);
  margin-top:4px;
  line-height:1.45;
}
.miStepGrid .miField > :not(.miLabel),
.miFormRowControl {
  min-width:0;
}
.miStepGrid .miField.miSpan2,
.miFormRowWide {
  grid-column:1/-1;
}
.miProfileFormRows { display:grid; gap:14px; }
.miFormRowControl .miNote { margin-top:6px; }
.miFormRowControl .miPhoneRow,
.miStepGrid .miPhoneRow { grid-template-columns:220px 1fr; }
.miPrivacyInline { overflow:hidden; }
.miPrivacyInline .miTopNav, .miPrivacyInline .miHomeFooter, .miPrivacyInline .miChatFabWrap { display:none !important; }
.miPrivacyInline .wrap, .miPrivacyInline main, .miPrivacyInline .miHomeSection, .miPrivacyInline .miPanel { width:auto !important; max-width:none !important; margin:0 !important; padding:0 !important; }
.miPrivacyInline body { background:transparent !important; }
#faqSubmit, #faqSubmitPt, #revSubmit, #revSubmitPt { width:100%; }
.starRating label::before { content: attr(data-emoji); display:block; font-size:13px; line-height:1; margin-bottom:2px; opacity:.95; }
.miNavItem.isSectionActive, .miNavItem[href="/"] .isSectionActive { color:var(--mi-accent) !important; }
body[data-page="home"] .miTrackShell { width:min(100vw - 16px, 1480px) !important; max-width:calc(100vw - 16px) !important; }
body[data-page="home"] .miTrack { width:100% !important; box-sizing:border-box !important; }
@media (max-width: 980px) {
  .miStepGrid .miField,
  .miProfileFormRows .miFormRow,
  .miPanel .miFormRow { grid-template-columns:1fr; }
  .miStepGrid .miField > .miLabel,
  .miFormRowLabel { padding-top:0; }
  .miFormRowControl .miPhoneRow,
  .miStepGrid .miPhoneRow { grid-template-columns:1fr; }
}


/* v9.9.116-p5 legal pages */
body[data-page="legal"] {
  min-height: 100%;
}

.miLegalPage {
  padding: 22px 0 52px;
}

.miLegalWrap {
  max-width: 1360px;
}

.miLegalBack {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--accent);
  font-weight: 700;
}

.miLegalBack:hover {
  text-decoration: underline;
}

.miLegalHero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.miLegalHero h1 {
  margin: 8px 0 10px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.04;
}

.miLegalHero > div:first-child,
.miLegalMeta,
.miLegalContent,
.miLegalNav,
.miLegalMiniCard {
  background: rgba(14, 20, 38, .62);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
  backdrop-filter: blur(10px);
}

.miLegalHero > div:first-child {
  border-radius: 28px;
  padding: 28px;
}

.miLegalMeta {
  border-radius: 28px;
  padding: 20px;
  display: grid;
  gap: 12px;
  align-content: center;
}

.miLegalMeta div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255,255,255,.08);
}

.miLegalMeta span {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.miLegalMeta strong,
.miLegalMeta strong a {
  font-size: 15px;
  color: var(--text);
}

.miLegalGrid {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.miLegalNav {
  position: sticky;
  top: 92px;
  padding: 20px;
  border-radius: 24px;
}

.miLegalNavTitle {
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 10px;
}

.miLegalNav nav {
  display: grid;
  gap: 4px;
}

.miLegalNav nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.miLegalNav nav a:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  transform: translateX(2px);
}

.miLegalContent {
  padding: 26px 28px;
  border-radius: 28px;
}

.miLegalSection + .miLegalSection {
  border-top: 1px solid rgba(255,255,255,.10);
  margin-top: 20px;
  padding-top: 20px;
}

.miLegalSection h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.miLegalSection h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.miLegalSection p,
.miLegalSection li {
  color: var(--muted);
}

.miLegalSection ul {
  margin: 0;
  padding-left: 20px;
}

.miLegalSection li + li {
  margin-top: 8px;
}

.miLegalListGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.miLegalMiniCard {
  border-radius: 20px;
  padding: 18px;
}

.miLegalMiniCard p,
.miLegalMiniCard li {
  margin-bottom: 0;
}

.miLegalActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.miLegalContactSection {
  background: linear-gradient(135deg, rgba(121, 194, 255, .12), rgba(155, 124, 255, .10));
  border: 1px solid rgba(121, 194, 255, .16);
  border-radius: 22px;
  padding: 22px;
}

html[data-theme="light"] .miLegalHero > div:first-child,
html[data-theme="light"] .miLegalMeta,
html[data-theme="light"] .miLegalContent,
html[data-theme="light"] .miLegalNav,
html[data-theme="light"] .miLegalMiniCard {
  background: rgba(255,255,255,.84);
  border-color: rgba(15, 23, 42, .10);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .08);
}

html[data-theme="light"] .miLegalMeta div,
html[data-theme="light"] .miLegalNav nav a:hover {
  background: rgba(15, 23, 42, .04);
}

html[data-theme="light"] .miLegalSection p,
html[data-theme="light"] .miLegalSection li,
html[data-theme="light"] .miLegalMeta span,
html[data-theme="light"] .miLegalNav nav a {
  color: rgba(15, 23, 42, .72);
}

@media (max-width: 1080px) {
  .miLegalHero,
  .miLegalGrid,
  .miLegalListGrid {
    grid-template-columns: 1fr;
  }

  .miLegalNav {
    position: static;
    top: auto;
  }
}

@media (max-width: 720px) {
  .miLegalPage {
    padding-top: 14px;
  }

  .miLegalHero > div:first-child,
  .miLegalMeta,
  .miLegalContent,
  .miLegalNav,
  .miLegalMiniCard,
  .miLegalContactSection {
    border-radius: 22px;
  }

  .miLegalHero > div:first-child,
  .miLegalContent,
  .miLegalNav {
    padding: 18px;
  }

  .miLegalHero h1 {
    font-size: 30px;
  }
}


/* Patch 6: consent banner + preferences */
.miConsentBar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
}

.miConsentBarInner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  background: rgba(7, 10, 18, .96);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  box-shadow: 0 18px 70px rgba(0, 0, 0, .55);
  padding: 16px;
}

.miConsentCopy {
  min-width: 250px;
  flex: 1;
}

.miConsentTitle {
  font-weight: 900;
  margin-bottom: 4px;
}

.miConsentCopy p {
  margin: 0;
  color: #9FB0D0;
  font-size: 13px;
  line-height: 1.55;
}

.miConsentLinks {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 13px;
}

.miConsentActions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.miConsentSignal {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--warn);
  background: rgba(255, 211, 124, .10);
  border: 1px solid rgba(255, 211, 124, .22);
  border-radius: 14px;
  padding: 9px 11px;
}

.miConsentBackdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(7, 10, 18, .72);
  backdrop-filter: blur(8px);
}

.miConsentModal {
  position: fixed;
  z-index: 10001;
  width: min(720px, calc(100vw - 32px));
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(7, 10, 18, .98);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .62);
  padding: 20px;
}

.miConsentModalHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.miConsentEyebrow {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #9FB0D0;
  margin-bottom: 6px;
}

.miConsentModal h2 {
  margin: 0;
  font-size: 24px;
}

.miConsentModalText {
  margin: 12px 0 16px;
  color: #9FB0D0;
}

.miConsentPrefsGrid {
  display: grid;
  gap: 12px;
}

.miConsentOption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
}

.miConsentOption strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.miConsentOption p {
  margin: 0;
  color: #9FB0D0;
  font-size: 13px;
  line-height: 1.55;
}

.miConsentOption.is-static {
  background: rgba(121, 194, 255, .08);
  border-color: rgba(121, 194, 255, .18);
}

.miConsentOption.is-disabled {
  opacity: .82;
}

.miConsentBadge,
.miConsentSubNote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  padding: 7px 10px;
}

.miConsentBadge {
  align-self: center;
  white-space: nowrap;
  background: rgba(124, 255, 178, .10);
  border: 1px solid rgba(124, 255, 178, .22);
  color: #CFFFE3;
}

.miConsentSubNote {
  background: rgba(255, 211, 124, .10);
  border: 1px solid rgba(255, 211, 124, .20);
  color: #FFE6A5;
}

.miConsentCheck {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.miConsentModalActions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

@media (max-width: 720px) {
  .miConsentBar {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .miConsentBarInner,
  .miConsentModal {
    padding: 16px;
    border-radius: 20px;
  }

  .miConsentActions,
  .miConsentModalActions {
    width: 100%;
  }

  .miConsentActions .btn,
  .miConsentModalActions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .miConsentOption {
    flex-direction: column;
  }

  .miConsentCheck,
  .miConsentBadge {
    align-self: flex-start;
  }
}

/* v9.9.117-p7 ui final setup: header + mobile polish */
:root {
  --mi-header-h: 78px;
  --mi-nav-shell: min(1520px, calc(100vw - 24px));
}

html {
  scroll-padding-top: calc(var(--mi-header-h) + 16px);
}

body.miHasTopNav {
  padding-top: calc(var(--mi-header-h) + env(safe-area-inset-top, 0px)) !important;
}

body.miNoScroll {
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: none !important;
}

header.miTopNav,
header[data-mi-header],
.miTopNav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: var(--mi-bg) !important;
  border-bottom: 1px solid var(--mi-border) !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  z-index: 10090 !important;
}

.miTopNav.miTopNavScrolled {
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08) !important;
}

:root[data-theme="dark"] .miTopNav.miTopNavScrolled {
  box-shadow: 0 16px 34px rgba(0, 0, 0, .28) !important;
}

.miTopNavInner {
  width: var(--mi-nav-shell) !important;
  max-width: none !important;
  min-height: 72px !important;
  margin: 0 auto !important;
  padding: 14px 6px 12px !important;
  display: grid !important;
  grid-template-columns: auto minmax(170px, 280px) minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

.miBrand {
  gap: 10px !important;
  align-items: center !important;
}

.miBrandLogo {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
}

.miBrandName {
  font-size: 14px !important;
  letter-spacing: .18em !important;
}

.miBrandSub {
  font-size: 10px !important;
  letter-spacing: .30em !important;
  color: var(--mi-muted) !important;
}

.miSearch {
  width: 100% !important;
  max-width: 280px !important;
}

.miSearchInput {
  min-height: 42px !important;
  border-radius: 12px !important;
  background: var(--mi-panel) !important;
  border: 1px solid var(--mi-border) !important;
}

.miNavCenter {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  overflow: visible !important;
}

.miNavItem {
  min-height: 40px !important;
  padding: 9px 12px !important;
  border-radius: 12px !important;
  color: var(--mi-muted) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
}

.miNavItem:hover {
  color: var(--mi-text) !important;
  background: rgba(8, 102, 255, .06) !important;
  border-color: rgba(8, 102, 255, .12) !important;
}

.miNavItem.isActive,
.miNavItem.isSectionActive {
  color: var(--mi-text) !important;
  background: rgba(8, 102, 255, .08) !important;
  border-color: rgba(8, 102, 255, .18) !important;
}

.miNavRight {
  min-width: 0 !important;
  gap: 10px !important;
}

.miLang,
.miAuth {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.miPill,
.miBtnGhost,
.miIconBtn {
  min-height: 40px !important;
  border-radius: 12px !important;
  border: 1px solid var(--mi-border) !important;
  background: var(--mi-panel) !important;
  box-shadow: none !important;
}

.miMenu {
  top: calc(100% + 10px) !important;
  min-width: 230px !important;
  border-radius: 16px !important;
}

.miMenu a,
.miMenu button {
  min-height: 42px !important;
}

.miDrawerOverlay {
  top: var(--mi-header-h) !important;
  background: rgba(15, 23, 42, .42) !important;
}

.miDrawer {
  top: var(--mi-header-h) !important;
  height: calc(100dvh - var(--mi-header-h)) !important;
  width: min(360px, 100vw) !important;
  border-left: 1px solid var(--mi-border) !important;
  background: var(--mi-bg) !important;
  box-shadow: -18px 0 40px rgba(15, 23, 42, .16) !important;
}

.miDrawerTop {
  padding-bottom: 12px !important;
  margin-bottom: 12px !important;
  border-bottom: 1px solid var(--mi-border) !important;
}

.miDrawerNav {
  gap: 8px !important;
}

.miDrawerLink {
  min-height: 44px !important;
  border-radius: 12px !important;
  border: 1px solid transparent !important;
  background: var(--mi-panel) !important;
}

.miDrawerLink:hover {
  border-color: rgba(8, 102, 255, .18) !important;
  background: rgba(8, 102, 255, .08) !important;
}

.miAccountNav {
  top: calc(var(--mi-header-h) + 14px) !important;
}

body[data-page="home"] .miTrackShell {
  position: relative !important;
  overflow: hidden !important;
}

body[data-page="home"] .miTrack {
  width: max-content !important;
  min-width: max-content !important;
  gap: 12px !important;
  padding: 14px 16px !important;
  animation-duration: 24s !important;
  will-change: transform;
}

.footerSocial {
  margin-right: 0 !important;
  flex-wrap: wrap !important;
}

.footerSocial a {
  border-radius: 10px !important;
}

:root[data-theme="light"] .footerSocial a {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, .12) !important;
}

:root[data-theme="light"] .footerSocial svg {
  fill: #334155 !important;
}

:root[data-theme="light"] .footerSocial a[aria-label="LinkedIn"] svg {
  fill: #0a66c2 !important;
}

:root[data-theme="light"] .footerSocial a[aria-label="Instagram"] svg {
  fill: #c13584 !important;
}

:root[data-theme="light"] .footerSocial a[aria-label="Facebook"] svg {
  fill: #1877f2 !important;
}

@media (max-width: 1120px) {
  .miTopNavInner {
    width: min(100vw - 18px, 100%) !important;
    grid-template-columns: auto auto 1fr auto !important;
    gap: 10px !important;
  }

  .miSearch,
  .miNavCenter {
    display: none !important;
  }

  .miHamburger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body[data-page="home"] .miTrack {
    animation-duration: 18s !important;
  }
}

@media (max-width: 760px) {
  .miTopNavInner {
    width: min(100vw - 12px, 100%) !important;
    min-height: 64px !important;
    padding: 10px 0 10px !important;
    gap: 8px !important;
  }

  .miBrandSub,
  .miNavRight .miLang,
  .miNavRight > #miThemeBtn {
    display: none !important;
  }

  .miBrandLogo {
    width: 30px !important;
    height: 30px !important;
  }

  .miAuth .miBtn,
  .miPill,
  .miIconBtn {
    min-height: 38px !important;
  }

  body[data-page="home"] .miTrackShell {
    width: min(100vw - 12px, 100%) !important;
    max-width: calc(100vw - 12px) !important;
    margin-top: 16px !important;
  }

  body[data-page="home"] .miTrack {
    animation-duration: 16s !important;
    padding: 12px 14px !important;
  }

  body[data-page="home"] .miTrack span {
    padding: 8px 12px !important;
    font-size: 13px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .miTrack {
    animation: none !important;
    transform: none !important;
  }
}

/* v9.9.112 patch 8 billing UI */
.miBillingPanel {
  display: grid;
  gap: 18px;
}
.miBillingHero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
}
.miBillingHeroStats {
  min-width: 220px;
  display: grid;
  gap: 12px;
}
.miBillingHeroLinks {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.miBillingStat {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
}
.miBillingStat span {
  color: var(--muted);
  font-size: 13px;
}
.miBillingStat strong {
  font-size: 28px;
  line-height: 1;
}
.miBillingGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .95fr);
  gap: 18px;
}
.miBillingShell {
  display: grid;
  gap: 16px;
}
.miBillingShellHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.miBillingCardsList {
  display: grid;
  gap: 12px;
}
.miBillingSavedCard {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
}
.miBillingSavedCard.isDefault {
  border-color: rgba(121,194,255,.34);
  box-shadow: 0 0 0 1px rgba(121,194,255,.14) inset;
}
.miBillingSavedCardTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.miBillingSavedCardLabel {
  font-size: 13px;
  color: var(--muted);
}
.miBillingSavedCardNumber {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .02em;
}
.miBillingSavedCardMeta,
.miBillingSavedCardActions,
.miBillingInfoList {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.miBillingSavedCardMeta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-size: 12px;
}
.miBillingInfoList {
  display: grid;
  gap: 12px;
}
.miBillingInfoItem {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}
.miBillingInfoItem strong {
  font-size: 13px;
}
.miBillingInfoItem span {
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}
.miBillingEmptyState {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
}
.miBillingEmptyIcon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  font-size: 24px;
}
.miBillingEmptyTitle {
  font-weight: 700;
  font-size: 16px;
}
.miBillingSetupShell {
  display: grid;
  gap: 14px;
}
.miBillingCheck {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
}
.miBillingCheck input {
  margin: 0;
}
.miBillingStripeHost {
  min-height: 76px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  transition: opacity .18s ease, filter .18s ease;
}
.miBillingStripeHost.isDisabled {
  opacity: .48;
  filter: grayscale(.1);
}
html[data-theme="light"] .miBillingHero,
html[data-theme="light"] .miBillingStat,
html[data-theme="light"] .miBillingSavedCard,
html[data-theme="light"] .miBillingInfoItem,
html[data-theme="light"] .miBillingEmptyState,
html[data-theme="light"] .miBillingStripeHost,
html[data-theme="light"] .miBillingCheck {
  background: rgba(255,255,255,.88);
  border-color: rgba(20,30,55,.09);
}
html[data-theme="light"] .miBillingSavedCardMeta span {
  background: rgba(20,30,55,.05);
  color: rgba(20,30,55,.78);
}
@media (max-width: 980px) {
  .miBillingHero,
  .miBillingShellHead {
    flex-direction: column;
  }
  .miBillingHeroLinks {
    justify-content: flex-start;
  }
  .miBillingGrid {
    grid-template-columns: 1fr;
  }
}


/* v9.9.114 patch 10 follow-up */
body[data-page="home"] .miHeroPurpose {
  margin: 0;
  max-width: 62ch;
  color: var(--mi-muted);
  line-height: 1.65;
}
body[data-page="home"] .miHeroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
body[data-page="home"] .miHeroLegal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--mi-muted);
}
body[data-page="home"] .miServicesLayout {
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, .96fr) !important;
  align-items: stretch !important;
  gap: 16px !important;
}
body[data-page="home"] .miServicesWide {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
}
body[data-page="home"] .mini.service {
  height: 100% !important;
  min-height: 0 !important;
  padding: 18px !important;
  gap: 14px !important;
}
body[data-page="home"] .serviceTop {
  margin-bottom: 0 !important;
}
body[data-page="home"] .serviceBody {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 118px !important;
  gap: 12px !important;
  align-items: start !important;
}
body[data-page="home"] .serviceBody .feat {
  margin: 0 !important;
}
body[data-page="home"] .serviceSide,
body[data-page="home"] .serviceMotion,
body[data-page="home"] .serviceMotion2 {
  width: 118px !important;
  min-width: 118px !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
}
body[data-page="home"] .serviceSide {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}
body[data-page="home"] .serviceMotion canvas,
body[data-page="home"] .serviceMotion2 canvas {
  width: 100% !important;
  height: 100% !important;
}
body[data-page="home"] .miRightNarrative {
  display: grid !important;
  gap: 16px !important;
  align-content: start !important;
}
body[data-page="home"] .miNarrativeBlock {
  display: grid !important;
  gap: 12px !important;
  align-content: start !important;
  min-height: 0 !important;
  padding: 18px !important;
}
body[data-page="home"] .miNarrativeBlock .feat {
  margin: 0 !important;
}
body[data-page="home"] .miTrack {
  animation-duration: 40s !important;
}
.miConsentBar {
  left: auto !important;
  right: 16px !important;
  bottom: 16px !important;
  max-width: min(480px, calc(100vw - 24px)) !important;
  margin: 0 !important;
}
.miConsentBarInner {
  display: grid !important;
  gap: 14px !important;
}
.miConsentActions {
  justify-content: flex-start !important;
}
html.miConsentPending body {
  scroll-padding-bottom: 180px;
}
.miBillingFieldGrid {
  display: grid;
  gap: 12px;
}
.miBillingField {
  display: grid;
  gap: 8px;
}
.miBillingField > span {
  font-size: 13px;
  font-weight: 700;
}
@media (max-width: 1120px) {
  body[data-page="home"] .miTrack {
    animation-duration: 34s !important;
  }
}
@media (max-width: 980px) {
  body[data-page="home"] .miServicesLayout,
  body[data-page="home"] .miServicesWide,
  body[data-page="home"] .serviceBody {
    grid-template-columns: 1fr !important;
  }
  body[data-page="home"] .serviceSide {
    justify-content: flex-start !important;
  }
}
@media (max-width: 720px) {
  body[data-page="home"] .miHeroActions {
    width: 100%;
  }
  body[data-page="home"] .miHeroActions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
  body[data-page="home"] .miTrack {
    animation-duration: 30s !important;
  }
  .miConsentBar {
    left: 12px !important;
    right: 12px !important;
    max-width: calc(100vw - 24px) !important;
  }
}


/* v9.9.118-p11: homepage purpose + consent persistence + auth clarity */
body[data-page="home"] .miPurposeStrip {
  display: grid !important;
  gap: 16px !important;
}
body[data-page="home"] .miPurposeIntro {
  max-width: 980px;
}
body[data-page="home"] .miPurposeGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
body[data-page="home"] .miPurposeCard {
  background: var(--mi-bg);
  border: 1px solid var(--mi-border);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 10px;
  min-height: 100%;
}
body[data-page="home"] .miPurposeCard strong {
  font-size: 15px;
}
body[data-page="home"] .miPurposeCard p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
body[data-page="home"] .miPurposeLinks {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}
body[data-page="home"] .miServicesWide {
  align-items: stretch !important;
}
body[data-page="home"] .mini.service {
  min-height: 100% !important;
}
body[data-page="home"] .serviceTop {
  align-items: center !important;
}
body[data-page="home"] .serviceBody {
  grid-template-columns: minmax(0, 1fr) 132px !important;
  gap: 12px !important;
  align-items: stretch !important;
}
body[data-page="home"] .serviceBody .feat {
  display: grid !important;
  gap: 10px !important;
  align-content: start !important;
  margin: 0 !important;
}
body[data-page="home"] .serviceBody .feat li {
  margin: 0 !important;
}
body[data-page="home"] .serviceSide {
  min-height: 100% !important;
  align-self: stretch !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
body[data-page="home"] .miRightNarrative {
  display: grid !important;
  gap: 14px !important;
  align-items: stretch !important;
}
body[data-page="home"] .miNarrativeBlock {
  min-height: 0 !important;
  display: grid !important;
  gap: 12px !important;
  align-content: start !important;
}
body[data-page="home"] .miNarrativeBlock .feat {
  display: grid !important;
  gap: 10px !important;
}
body[data-page="home"] .miTrack {
  animation-duration: 46s !important;
}
.miConsentBar {
  right: 16px !important;
  bottom: 16px !important;
  left: auto !important;
  max-width: min(500px, calc(100vw - 24px)) !important;
}
.miConsentBarInner {
  gap: 12px !important;
}
.miConsentCopy p {
  font-size: 13px !important;
}
.miAuthPurpose {
  margin: 12px 0 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.miAuthPurpose strong {
  display: block;
  margin-bottom: 6px;
}
.miAuthPurpose p {
  margin: 0;
  color: #9FB0D0;
  line-height: 1.6;
}
.miAuthPurpose p + p {
  margin-top: 8px;
}
@media (max-width: 1120px) {
  body[data-page="home"] .miPurposeGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  body[data-page="home"] .miTrack {
    animation-duration: 38s !important;
  }
}
@media (max-width: 720px) {
  body[data-page="home"] .miPurposeGrid {
    grid-template-columns: 1fr;
  }
  body[data-page="home"] .serviceBody {
    grid-template-columns: 1fr !important;
  }
  body[data-page="home"] .miTrack {
    animation-duration: 34s !important;
  }
  .miConsentBar {
    left: 12px !important;
    right: 12px !important;
    max-width: calc(100vw - 24px) !important;
  }
}


/* v9.9.119-p12 final UI fixes */
header.miTopNav,
.miTopNav {
  position: sticky !important;
  top: 0;
  z-index: 10060 !important;
  background: color-mix(in srgb, var(--mi-bg) 86%, transparent) !important;
  backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid var(--mi-border) !important;
  box-shadow: none !important;
}
.miTopNavInner.miTopNavFinal {
  max-width: 1480px !important;
  width: min(100%, calc(100vw - 24px)) !important;
  margin: 0 auto !important;
  padding: 10px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  display: grid !important;
  grid-template-columns: auto minmax(0,1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
}
.miBrand {
  gap: 10px !important;
  text-decoration: none;
}
.miBrandText { display:flex !important; align-items:center !important; }
.miBrandName {
  font-size: 15px !important;
  line-height: 1 !important;
  letter-spacing: .02em !important;
  font-weight: 800 !important;
  text-transform: none !important;
}
.miBrandSub,
.miSearch,
.miLang,
#miThemeBtn2,
.miTopNavFinal .miBtn {
  display: none !important;
}
.miNavCenter {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
}
.miNavItem {
  padding: 10px 14px !important;
  border-radius: 999px !important;
  color: var(--mi-muted) !important;
  font-weight: 700 !important;
}
.miNavItem:hover,
.miNavItem.isActive,
.miNavItem.isSectionActive {
  color: var(--mi-text) !important;
  background: color-mix(in srgb, var(--accent) 14%, transparent) !important;
}
.miNavRight {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  justify-content: flex-end !important;
}
.miThemeToggle,
.miAccountIcon,
.miHamburger {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 999px !important;
  border: 1px solid var(--mi-border) !important;
  background: color-mix(in srgb, var(--mi-panel) 72%, transparent) !important;
}
.miThemeToggle span {
  font-size: 18px;
  line-height: 1;
}
.miAuth { position: relative !important; }
.miMenu {
  top: calc(100% + 10px) !important;
  right: 0 !important;
  min-width: 210px !important;
  padding: 8px !important;
  border-radius: 16px !important;
  background: color-mix(in srgb, var(--mi-bg) 94%, transparent) !important;
  border: 1px solid var(--mi-border) !important;
  box-shadow: 0 20px 44px rgba(0,0,0,.22) !important;
}
.miMenu a,
.miMenu button {
  border-radius: 12px !important;
  font-weight: 600 !important;
}
.miDrawerOverlay {
  inset: 0 !important;
  background: rgba(5, 8, 16, .92) !important;
  opacity: 0;
  transition: opacity .22s ease;
}
.miDrawerOverlay.open { opacity: 1; }
.miDrawer.miDrawerFull {
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
  border: 0 !important;
  padding: 0 !important;
  background: var(--mi-bg) !important;
  opacity: 0;
  transform: none !important;
  transition: opacity .22s ease;
}
.miDrawer.miDrawerFull.open { opacity: 1; }
.miDrawerShell {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 26px;
  padding: 20px 20px 34px;
}
.miDrawerTop {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}
.miDrawerBrand { display:inline-flex !important; }
.miDrawerNav {
  display: grid !important;
  align-content: start !important;
  gap: 10px !important;
  padding-top: 10px;
}
.miDrawerLink {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: 54px !important;
  padding: 0 18px !important;
  border-radius: 18px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  background: color-mix(in srgb, var(--mi-panel) 78%, transparent) !important;
  border: 1px solid var(--mi-border) !important;
}
.miDrawerSectionLabel {
  margin: 16px 4px 2px;
  color: var(--mi-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.miDrawerSignout {
  appearance: none;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
html.miDrawerOpen,
body.miNoScroll {
  overflow: hidden !important;
}
body[data-page="home"] .miHeroCarousel {
  gap: 14px !important;
}
body[data-page="home"] #miCarouselDesc {
  display: none !important;
}
body[data-page="home"] .miTrackShell {
  overflow: hidden !important;
}
body[data-page="home"] .miTrack {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  white-space: nowrap !important;
  width: max-content !important;
  min-width: 200% !important;
  padding-inline: 0 !important;
  animation-duration: 52s !important;
  will-change: transform;
}
body[data-page="home"] .miTrack span {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 42px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  border: 1px solid var(--mi-border) !important;
  background: color-mix(in srgb, var(--mi-panel) 76%, transparent) !important;
}
body[data-page="home"] .miServicesLayout {
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, .84fr) !important;
  gap: 14px !important;
}
body[data-page="home"] .miServicesWide {
  gap: 14px !important;
}
body[data-page="home"] .mini.service {
  padding: 16px !important;
  gap: 12px !important;
}
body[data-page="home"] .serviceTop {
  justify-content: center !important;
  text-align: center !important;
}
body[data-page="home"] .serviceTop .badge {
  margin: 0 auto !important;
  text-align: center !important;
}
body[data-page="home"] .serviceTop .serviceMotion {
  display: none !important;
}
body[data-page="home"] .serviceBody {
  grid-template-columns: minmax(0,1fr) 120px !important;
  align-items: center !important;
  gap: 10px !important;
}
body[data-page="home"] .serviceSide {
  justify-content: center !important;
}
body[data-page="home"] .miRightNarrative {
  gap: 12px !important;
}
body[data-page="home"] .miNarrativeBlock {
  padding: 16px !important;
}
body[data-page="home"] .miNarrativeBlock .feat.dots {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px 18px !important;
}
body[data-page="home"] .miNarrativeBlock .feat.dots li {
  margin: 0 !important;
}
.miHomeFooter {
  gap: 14px !important;
}
.miFooterBrandWordmark {
  font-weight: 800;
  letter-spacing: .02em;
}
.miFooterMetaLine {
  align-items: center !important;
}
.miFooterLangMount {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.miFooterLangLabel {
  color: var(--mi-muted);
  font-size: 12px;
  font-weight: 700;
}
.miFooterLangSelect {
  min-width: 148px;
  padding: 8px 30px 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--mi-border);
  background: color-mix(in srgb, var(--mi-panel) 80%, transparent);
  color: var(--mi-text);
}
.miAccountNavTop {
  align-items: center !important;
}
.miAccountNavTitle {
  font-weight: 800 !important;
}
.miAccountGroup {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .5s ease, opacity .5s ease, padding-top .5s ease, padding-bottom .5s ease;
}
.miAccountGroup.isOpen {
  opacity: 1;
}
.miAccountGroupBtn::after {
  transition: transform .5s ease;
}
.miAccountGroupBtn[aria-expanded="true"]::after {
  transform: rotate(90deg);
  content: "▸";
}
html[data-theme="light"] body[data-page="legal"] {
  background: #f4f7fb !important;
}
html[data-theme="light"] .miLegalHero > div:first-child,
html[data-theme="light"] .miLegalMeta,
html[data-theme="light"] .miLegalContent,
html[data-theme="light"] .miLegalNav,
html[data-theme="light"] .miLegalMiniCard {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.10) !important;
  box-shadow: 0 12px 28px rgba(15,23,42,.06) !important;
}
html[data-theme="light"] .miLegalNav nav a {
  color: #334155 !important;
}
html[data-theme="light"] .miLegalNav nav a:hover {
  background: rgba(15,23,42,.06) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .miLegalSection p,
html[data-theme="light"] .miLegalSection li,
html[data-theme="light"] .miLegalMeta span {
  color: #334155 !important;
}
.miSigninSocial,
.miSocialAuthGrid {
  gap: 12px !important;
}
.miAuthDivider {
  margin: 14px 0 !important;
}
.miAuthDivider span {
  padding: 6px 14px !important;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: color-mix(in srgb, var(--mi-panel) 82%, transparent) !important;
}
@media (max-width: 1080px) {
  .miTopNavInner.miTopNavFinal {
    grid-template-columns: auto auto !important;
  }
  .miNavCenter {
    display: none !important;
  }
  .miHamburger {
    display: inline-grid !important;
  }
}
@media (min-width: 1081px) {
  .miHamburger {
    display: none !important;
  }
}
@media (max-width: 980px) {
  body[data-page="home"] .miServicesLayout,
  body[data-page="home"] .miServicesWide,
  body[data-page="home"] .serviceBody,
  body[data-page="home"] .miNarrativeBlock .feat.dots {
    grid-template-columns: 1fr !important;
  }
  body[data-page="home"] .miTrack {
    animation-duration: 42s !important;
  }
  .miFooterMetaLine {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
}
@media (max-width: 720px) {
  .miTopNavInner.miTopNavFinal {
    width: min(100%, calc(100vw - 16px)) !important;
    padding: 8px 0 !important;
  }
  .miBrandName {
    font-size: 14px !important;
  }
  body[data-page="home"] .miTrack {
    animation-duration: 36s !important;
  }
}

/* v9.9.120-p13 header + home cleanup */
:root {
  --mi-header-h: 74px;
}
html {
  scroll-padding-top: calc(var(--mi-header-h) + 14px) !important;
}
body.miHasTopNav {
  padding-top: calc(var(--mi-header-h) + env(safe-area-inset-top, 0px)) !important;
}
header.miTopNav,
header[data-mi-header],
.miTopNav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: var(--mi-bg) !important;
  border-bottom: 1px solid var(--mi-border) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  z-index: 10095 !important;
}
.miTopNavInner.miTopNavFinal {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 10px 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none;
}
.miTopNavInner.miTopNavFinal::-webkit-scrollbar {
  display: none;
}
.miBrand {
  flex: 0 0 auto !important;
  min-width: max-content;
  gap: 10px !important;
}
.miBrandLogo {
  width: 34px !important;
  height: 34px !important;
}
.miBrandText {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
}
.miBrandMark {
  font-size: 15px !important;
  font-weight: 900 !important;
  letter-spacing: .10em !important;
  text-transform: uppercase !important;
}
.miBrandNameRest {
  font-size: 15px !important;
  font-weight: 800 !important;
}
.miTopSearch {
  flex: 0 1 320px !important;
  min-width: 220px !important;
  max-width: 360px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  border: 1px solid var(--mi-border) !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--mi-panel) 94%, transparent) !important;
  position: relative !important;
}
.miTopSearch input {
  width: 100% !important;
  min-width: 120px !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--mi-text) !important;
  box-shadow: none !important;
}
.miTopSearch input:focus {
  outline: none !important;
}
.miTopSearch .miSearchBtn {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.miNavCenter {
  flex: 1 1 auto !important;
  min-width: max-content !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  white-space: nowrap !important;
}
.miNavItem {
  padding: 10px 12px !important;
  border-radius: 999px !important;
  color: var(--mi-muted) !important;
  font-weight: 700 !important;
}
.miNavRight {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-left: auto !important;
}
.miGuestActions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.miBtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  border: 1px solid var(--mi-border) !important;
  color: var(--mi-text) !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}
.miBtnGhost {
  background: transparent !important;
}
.miBtnPrimary {
  background: color-mix(in srgb, var(--accent) 16%, var(--mi-panel)) !important;
  border-color: color-mix(in srgb, var(--accent) 36%, var(--mi-border)) !important;
}
.miThemeToggle,
.miAccountIcon {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 999px !important;
  border: 1px solid var(--mi-border) !important;
  background: color-mix(in srgb, var(--mi-panel) 86%, transparent) !important;
}
.miMenu {
  top: calc(100% + 10px) !important;
  right: 0 !important;
  min-width: 220px !important;
  padding: 8px !important;
}
#miHamburger,
.miHamburger,
.miDrawer,
.miDrawerOverlay {
  display: none !important;
}
html[lang="en"] [data-lang="pt"],
body[data-lang="en"] [data-lang="pt"] {
  display: none !important;
}
html[lang="pt"] [data-lang="en"],
body[data-lang="pt"] [data-lang="en"] {
  display: none !important;
}
body[data-page="home"] .miHeroPurposePanel {
  display: grid !important;
  gap: 6px !important;
  margin: 0 0 8px !important;
}
body[data-page="home"] .miHeroPurposePanel .kicker,
body[data-page="home"] .miHeroPurposePanel .sub {
  margin: 0 !important;
}
body[data-page="home"] .miPurposeStrip {
  display: none !important;
}
body[data-page="home"] .serviceTop {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  text-align: left !important;
}
body[data-page="home"] .serviceTop .badge {
  margin: 0 !important;
}
body[data-page="home"] .serviceTop .serviceMotion {
  display: block !important;
  width: 118px !important;
  height: 60px !important;
  min-height: 60px !important;
  flex: 0 0 118px !important;
}
body[data-page="home"] .serviceBody {
  grid-template-columns: minmax(0, 1fr) 118px !important;
  align-items: center !important;
}
body[data-page="home"] .serviceSide,
body[data-page="home"] .serviceMotion2 {
  width: 118px !important;
  height: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;
}
body[data-page="home"] .serviceMotion canvas,
body[data-page="home"] .serviceMotion2 canvas {
  max-width: 118px !important;
  max-height: 60px !important;
}
body[data-page="home"] .miNarrativeBlock .feat.dots {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px 18px !important;
}
body[data-page="home"] .miTrack {
  animation-duration: 46s !important;
}
.miHomeFooter {
  display: grid !important;
  grid-template-columns: auto auto 1fr !important;
  align-items: center !important;
  gap: 16px !important;
}
.miFooterLeft {
  display: grid !important;
  gap: 6px !important;
}
.miFooterBrandLine {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.miFooterCopy {
  color: var(--mi-muted) !important;
  font-size: 13px !important;
}
.miFooterCenter {
  justify-self: center !important;
}
.miFooterRight {
  justify-self: end !important;
  display: grid !important;
  gap: 12px !important;
  text-align: right !important;
}
.miFooterLegal {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}
.miConsentBar {
  position: fixed !important;
  top: calc(var(--mi-header-h) + 14px) !important;
  right: 16px !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 10120 !important;
  max-width: min(480px, calc(100vw - 24px)) !important;
}
.miConsentBarInner {
  border-radius: 18px !important;
  border: 1px solid var(--mi-border) !important;
  background: color-mix(in srgb, var(--mi-bg) 96%, transparent) !important;
  box-shadow: 0 18px 48px rgba(0,0,0,.24) !important;
}
@media (max-width: 1080px) {
  .miTopNavInner.miTopNavFinal {
    padding: 9px 14px !important;
    gap: 12px !important;
  }
  .miTopSearch {
    min-width: 180px !important;
    max-width: 260px !important;
  }
  .miNavItem {
    padding: 9px 10px !important;
    font-size: 13px !important;
  }
  .miBtn {
    padding: 0 12px !important;
  }
}
@media (max-width: 820px) {
  .miBrandMark,
  .miBrandNameRest {
    font-size: 14px !important;
  }
  .miTopSearch {
    min-width: 160px !important;
    max-width: 220px !important;
  }
  .miHomeFooter {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }
  .miFooterCenter,
  .miFooterRight {
    justify-self: center !important;
    text-align: center !important;
  }
  .miFooterLegal {
    justify-content: center !important;
  }
}


/* v9.9.121-p16 auth + language visibility fixes */
.miTopNavFinal .miGuestActions .miBtn,
.miTopNavFinal .miNavRight .miBtn,
.miTopNavFinal .miGuestActions,
.miTopNavFinal .miNavRight .miGuestActions {
  display: inline-flex !important;
}

header.miTopNav,
header[data-mi-header],
.miTopNav,
.miTopNavInner.miTopNavFinal,
.miNavRight,
.miAuth {
  overflow: visible !important;
}

.miMenu {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.miMenu.open {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html[lang='en'] [data-lang='pt'],
body[data-lang='en'] [data-lang='pt'] {
  display: none !important;
}

html[lang='en'] [data-lang='en'],
body[data-lang='en'] [data-lang='en'] {
  display: revert !important;
}

body[data-page='home'] #services [data-lang='en'],
body[data-page='home'] #services .miRightNarrative [data-lang='en'] {
  display: revert !important;
}

body[data-page='home'] #services [data-lang='pt'],
body[data-page='home'] #services .miRightNarrative [data-lang='pt'] {
  display: none !important;
}

html[lang='pt'] body[data-page='home'] #services [data-lang='en'],
body[data-lang='pt'][data-page='home'] #services [data-lang='en'] {
  display: none !important;
}

html[lang='pt'] body[data-page='home'] #services [data-lang='pt'],
body[data-lang='pt'][data-page='home'] #services [data-lang='pt'] {
  display: revert !important;
}


/* v9.9.122-p17 mobile portrait fit + home language guard */
.miAuth {
  position: relative !important;
  z-index: 10135 !important;
}

.miMenu {
  z-index: 10145 !important;
}

body[data-page='home'][data-lang='en'] #services [data-lang='pt'],
html[lang='en'] body[data-page='home'] #services [data-lang='pt'],
body[data-page='home'][data-lang='en'] .miHeroPanel [data-lang='pt'],
html[lang='en'] body[data-page='home'] .miHeroPanel [data-lang='pt'] {
  display: none !important;
}

body[data-page='home'][data-lang='pt'] #services [data-lang='en'],
html[lang='pt'] body[data-page='home'] #services [data-lang='en'],
body[data-page='home'][data-lang='pt'] .miHeroPanel [data-lang='en'],
html[lang='pt'] body[data-page='home'] .miHeroPanel [data-lang='en'] {
  display: none !important;
}

body[data-page='home'][data-lang='en'] #services .badge[data-lang='en'],
html[lang='en'] body[data-page='home'] #services .badge[data-lang='en'] {
  display: inline-flex !important;
}

body[data-page='home'][data-lang='en'] #services .feat[data-lang='en'],
body[data-page='home'][data-lang='en'] #services .sub[data-lang='en'],
body[data-page='home'][data-lang='en'] #services .kicker[data-lang='en'],
body[data-page='home'][data-lang='en'] #services .miHomeTitle[data-lang='en'],
html[lang='en'] body[data-page='home'] #services .feat[data-lang='en'],
html[lang='en'] body[data-page='home'] #services .sub[data-lang='en'],
html[lang='en'] body[data-page='home'] #services .kicker[data-lang='en'],
html[lang='en'] body[data-page='home'] #services .miHomeTitle[data-lang='en'] {
  display: block !important;
}

body[data-page='home'][data-lang='pt'] #services .badge[data-lang='pt'],
html[lang='pt'] body[data-page='home'] #services .badge[data-lang='pt'] {
  display: inline-flex !important;
}

body[data-page='home'][data-lang='pt'] #services .feat[data-lang='pt'],
body[data-page='home'][data-lang='pt'] #services .sub[data-lang='pt'],
body[data-page='home'][data-lang='pt'] #services .kicker[data-lang='pt'],
body[data-page='home'][data-lang='pt'] #services .miHomeTitle[data-lang='pt'],
html[lang='pt'] body[data-page='home'] #services .feat[data-lang='pt'],
html[lang='pt'] body[data-page='home'] #services .sub[data-lang='pt'],
html[lang='pt'] body[data-page='home'] #services .kicker[data-lang='pt'],
html[lang='pt'] body[data-page='home'] #services .miHomeTitle[data-lang='pt'] {
  display: block !important;
}

@media (max-width: 900px) {
  .miTopNavInner.miTopNavFinal {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      'brand right'
      'search search'
      'nav nav' !important;
    align-items: center !important;
    gap: 10px 10px !important;
    overflow: visible !important;
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 10px !important;
  }

  .miBrand {
    grid-area: brand !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .miBrandText {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .miTopSearch {
    grid-area: search !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 42px !important;
  }

  .miTopSearch input {
    min-width: 0 !important;
    font-size: 16px !important;
  }

  .miNavCenter {
    grid-area: nav !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 2px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .miNavCenter::-webkit-scrollbar {
    display: none !important;
  }

  .miNavRight {
    grid-area: right !important;
    margin-left: 0 !important;
    gap: 8px !important;
    justify-self: end !important;
    flex-wrap: nowrap !important;
  }

  .miGuestActions {
    gap: 8px !important;
  }

  .miGuestActions .miBtn,
  .miNavRight .miBtn {
    min-height: 38px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
  }

  .miThemeToggle,
  .miAccountIcon {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }

  .miMenu {
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    min-width: min(240px, calc(100vw - 24px)) !important;
  }
}

@media (max-width: 560px) {
  .miTopNavInner.miTopNavFinal {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      'brand'
      'search'
      'nav'
      'right' !important;
    gap: 9px !important;
  }

  .miBrand {
    width: 100% !important;
  }

  .miBrandLogo {
    width: 30px !important;
    height: 30px !important;
  }

  .miBrandMark,
  .miBrandNameRest {
    font-size: 13px !important;
  }

  .miNavRight {
    width: 100% !important;
    justify-self: stretch !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }

  .miGuestActions {
    flex-wrap: wrap !important;
  }

  .miGuestActions .miBtn,
  .miNavRight .miBtn {
    flex: 0 0 auto !important;
    min-height: 36px !important;
    padding: 0 11px !important;
    font-size: 11.5px !important;
  }

  .miNavItem {
    padding: 8px 10px !important;
    font-size: 12px !important;
  }

  .miMenu {
    left: 0 !important;
    right: auto !important;
  }
}

@media (max-width: 420px) {
  .miTopNavInner.miTopNavFinal {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .miTopSearch {
    height: 40px !important;
    padding: 0 10px !important;
  }

  .miTopSearch input::placeholder {
    font-size: 14px !important;
  }

  .miGuestActions .miBtn,
  .miNavRight .miBtn {
    padding: 0 10px !important;
    font-size: 11px !important;
  }
}


/* v9.9.123-p18 google review + mobile theme icon */
.miHomeComplianceBar {
  margin: 10px 0 0 !important;
  padding: 12px 14px !important;
  border-radius: 16px !important;
  border: 1px solid var(--mi-border) !important;
  background: color-mix(in srgb, var(--mi-panel) 78%, transparent) !important;
  color: var(--mi-muted) !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
}

.miHomeComplianceBar strong {
  color: var(--mi-text) !important;
  margin-right: 6px !important;
}

.miHomeComplianceBar a {
  color: var(--mi-text) !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

@media (max-width: 900px) {
  .miNavRight > #miThemeBtn,
  .miNavRight .miThemeToggle {
    display: inline-grid !important;
    place-items: center !important;
    flex: 0 0 auto !important;
    order: 0 !important;
  }

  .miGuestActions,
  .miAuth {
    order: 1 !important;
  }
}

@media (max-width: 560px) {
  .miHomeComplianceBar {
    font-size: 12px !important;
    padding: 11px 12px !important;
  }

  .miNavRight {
    align-items: center !important;
  }

  .miNavRight > #miThemeBtn,
  .miNavRight .miThemeToggle {
    display: inline-grid !important;
    margin-right: 2px !important;
  }
}
