:root {
    --mf-sidebar-width: 280px;
}

body {
    background: #f5f7fb;
    color: #172033;
}

.auth-shell {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f766e 0%, #155e75 48%, #334155 100%);
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    width: var(--mf-sidebar-width);
    background: #0f172a;
    color: #e2e8f0;
}

.sidebar .nav-link {
    color: #cbd5e1;
    border-radius: .5rem;
    padding: .65rem .85rem;
}

.sidebar .nav-group-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    text-align: left;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.sidebar .nav-group-toggle .bi-chevron-down {
    transition: transform .2s ease;
}

.sidebar .nav-group-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.sidebar .nav-collapse {
    gap: .2rem;
    margin-top: .15rem;
}

.sidebar .nav-collapse.collapse:not(.show) {
    display: none;
}

.sidebar .nav-collapse.show,
.sidebar .nav-collapse.collapsing {
    display: grid;
}

.sidebar .nav-section-title {
    margin: .85rem .85rem .2rem;
    color: #94a3b8;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.sidebar .nav-sublink {
    margin-left: .55rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(148, 163, 184, .22);
}

.content {
    min-width: 0;
}

.metric-card {
    border: 0;
    border-radius: .75rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.customer-form-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .07);
}

.customer-form-hero,
.customer-submit-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
}

.customer-form-hero {
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.customer-form-tabs {
    gap: .45rem;
    padding: 1rem 1.25rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.customer-form-tabs .nav-link {
    border-radius: 8px 8px 0 0;
    color: #475569;
    font-weight: 700;
}

.customer-form-tabs .nav-link.active {
    background: #0f766e;
    color: #fff;
}

.customer-form-body {
    padding: 1.25rem;
}

.customer-form-section-title {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.customer-form-section-title h3 {
    margin: 0;
    font-size: 1rem;
}

.customer-form-section-title p {
    margin: .25rem 0 0;
    color: #64748b;
}

.customer-form-option {
    height: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.customer-toolbar {
    row-gap: .65rem;
}

.customer-filter-form {
    flex: 1 1 560px;
    min-width: 0;
    align-items: center;
}

.customer-search-input {
    min-width: 0;
}

.customer-search-form {
    flex: 0 1 360px;
    max-width: min(100%, 380px);
}

.customer-bulk-header {
    padding-bottom: .75rem;
    border-bottom: 1px solid #e2e8f0;
}

.customer-filter-select {
    flex: 0 1 140px;
    min-width: 128px;
    max-width: 160px;
}

.customer-new-btn {
    padding-inline: .65rem;
    white-space: nowrap;
}

.customer-toolbar .btn-sm,
.customer-toolbar .form-control-sm,
.customer-toolbar .form-select-sm {
    min-height: 31px;
    font-size: .82rem;
}

.customer-bulk-panel .form-label {
    margin-bottom: .25rem;
    font-size: .82rem;
}

.customer-submit-bar {
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.table td,
.table th {
    vertical-align: middle;
}

.badge-soft {
    background: #e0f2fe;
    color: #075985;
}

.receipt {
    max-width: 760px;
}

.place-items-center {
    place-items: center;
}

.trial-countdown {
    background: linear-gradient(135deg, #ecfeff, #f8fafc);
    color: #164e63;
}

.trial-clock {
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 800;
    color: #0f766e;
    white-space: nowrap;
}

.site-v2 {
    background: #f5f7fb;
    color: #172033;
    overflow-x: hidden;
}

.site-v2 a {
    color: inherit;
    text-decoration: none;
}

.site-v2 .btn-primary {
    background: #0f766e;
    border-color: #0f766e;
}

.site-v2 .site-hero-cta {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
    box-shadow: 0 14px 30px rgba(20, 184, 166, .34);
}

.site-v2 .site-hero-cta:hover {
    background: #115e59;
    border-color: #115e59;
    color: #fff;
}

.site-v2 .btn-outline-primary {
    color: #0f766e;
    border-color: #0f766e;
}

.site-v2 .btn-outline-primary:hover {
    background: #0f766e;
    color: #fff;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.site-nav .container {
    gap: .75rem;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    min-width: 0;
}

.site-brand span {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #0f766e;
    color: #fff;
    font-weight: 800;
}

.site-brand strong {
    white-space: nowrap;
}

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 70;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #25d366;
    color: #fff !important;
    font-size: 1.7rem;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .22);
}

.site-hero {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    color: #fff;
}

.site-hero-carousel,
.site-hero-carousel .carousel-inner,
.site-hero-carousel .carousel-item {
    position: absolute;
    inset: 0;
    height: 100%;
}

.site-hero-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 18, 32, .92), rgba(10, 18, 32, .76) 44%, rgba(10, 18, 32, .38)),
        linear-gradient(0deg, rgba(10, 18, 32, .55), rgba(10, 18, 32, .08));
    z-index: 2;
}

.site-hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    padding-top: clamp(4rem, 8vw, 7rem);
    padding-bottom: clamp(4rem, 8vw, 7rem);
}

.site-eyebrow {
    display: inline-block;
    margin-bottom: .85rem;
    color: rgba(255, 255, 255, .82);
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 0;
}

.site-eyebrow.dark {
    color: #0f766e;
}

.site-hero h1 {
    max-width: 780px;
    font-size: clamp(2.8rem, 7vw, 6.2rem);
    line-height: .95;
    text-shadow: 0 4px 28px rgba(0, 0, 0, .38);
}

.site-hero p {
    max-width: 680px;
    margin: 1.25rem 0;
    color: rgba(255, 255, 255, .92);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    text-shadow: 0 3px 16px rgba(0, 0, 0, .35);
}

.site-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem 1.25rem;
    margin-top: 1.25rem;
    color: rgba(255, 255, 255, .92);
    font-weight: 700;
}

.site-hero-points i {
    color: #67e8f9;
    margin-right: .3rem;
}

.site-dashboard-card {
    background: rgba(255, 255, 255, .95);
    color: #172033;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 8px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, .34);
    padding: clamp(1.1rem, 3vw, 1.5rem);
}

.site-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.site-dashboard-grid div {
    padding: .9rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.site-dashboard-grid span,
.site-dashboard-grid strong {
    display: block;
}

.site-dashboard-grid span {
    color: #64748b;
    font-size: .82rem;
}

.site-dashboard-grid strong {
    margin-top: .2rem;
    font-size: clamp(1rem, 2vw, 1.35rem);
}

.site-bars {
    height: 132px;
    display: flex;
    align-items: end;
    gap: .55rem;
    margin: 1rem 0;
    padding: .85rem;
    background: #172033;
    border-radius: 8px;
}

.site-bars span {
    flex: 1;
    min-width: 18px;
    border-radius: 8px 8px 3px 3px;
    background: #14b8a6;
}

.site-bars span:nth-child(2n) {
    background: #38bdf8;
}

.site-bars span:nth-child(3n) {
    background: #f59e0b;
}

.site-dashboard-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 0;
    border-top: 1px solid #e2e8f0;
}

.site-proof {
    background: #fff;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    padding: 1.25rem 0;
}

.site-proof-card {
    height: 100%;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #0f766e;
    background: #f8fafc;
}

.site-proof-card span,
.site-proof-card strong {
    display: block;
}

.site-proof-card span {
    color: #64748b;
    font-size: .85rem;
}

.site-proof-card strong {
    margin-top: .2rem;
    font-size: clamp(1rem, 2vw, 1.45rem);
}

.site-section {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.site-soft {
    background: #eef3f7;
}

.site-section-head {
    max-width: 780px;
    margin-bottom: 2rem;
}

.site-section h2,
.site-section-head h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
}

.site-section-head p,
.site-lead {
    color: #64748b;
    font-size: 1.08rem;
}

.site-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 22px 54px rgba(15, 23, 42, .16);
}

.site-about-list {
    display: grid;
    gap: .85rem;
    margin-top: 1.25rem;
}

.site-about-list div {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    padding: 1rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
}

.site-about-list i {
    color: #0f766e;
    font-size: 1.3rem;
}

.site-feature,
.site-testimonial,
.site-price {
    height: 100%;
    padding: 1.35rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .07);
}

.site-feature i {
    color: #0f766e;
    font-size: 1.65rem;
}

.site-feature h3 {
    margin-top: .85rem;
    font-size: 1.1rem;
}

.site-feature p,
.site-testimonial p {
    color: #64748b;
}

.site-portal-showcase {
    position: relative;
    min-height: 420px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 22px 54px rgba(15, 23, 42, .16);
}

.site-portal-showcase img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.site-bills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.site-bills-grid div {
    min-height: 150px;
    display: grid;
    align-content: start;
    gap: .5rem;
    padding: 1.2rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .07);
}

.site-bills-grid i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e9fbf6;
    color: #0f766e;
    font-size: 1.35rem;
}

.site-bills-grid strong {
    font-size: 1.08rem;
}

.site-bills-grid span {
    color: #64748b;
}

.site-phone-card {
    position: absolute;
    right: 1.25rem;
    bottom: 1.25rem;
    width: min(260px, calc(100% - 2.5rem));
    display: grid;
    gap: .45rem;
    padding: 1.2rem;
    background: #172033;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
}

.site-phone-card i {
    font-size: 1.75rem;
    color: #67e8f9;
}

.site-phone-card span {
    color: #cbd5e1;
}

.site-phone-card button {
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #172033;
    padding: .7rem;
    font-weight: 800;
}

.site-testimonials {
    background: #fff;
}

.site-testimonials .carousel-indicators [data-bs-target] {
    background-color: #0f766e;
}

.site-carousel-control {
    width: 42px;
    height: 42px;
    top: auto;
    bottom: .35rem;
    border-radius: 50%;
    background: #172033;
    opacity: 1;
}

.site-carousel-control.carousel-control-prev {
    left: auto;
    right: 3.4rem;
}

.site-carousel-control.carousel-control-next {
    right: .35rem;
}

.site-stars {
    color: #f59e0b;
    font-weight: 800;
    margin-bottom: .75rem;
}

.site-testimonial strong,
.site-testimonial span {
    display: block;
}

.site-testimonial span {
    color: #64748b;
    font-size: .9rem;
}

.site-price-value {
    margin: 1rem 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

.site-price-value span {
    font-size: 1rem;
    color: #64748b;
    font-weight: 600;
}

.pricing-toggle {
    display: inline-flex;
    padding: .25rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
}

.pricing-toggle button {
    border: 0;
    border-radius: 6px;
    padding: .55rem 1rem;
    background: transparent;
    color: #475569;
    font-weight: 800;
}

.pricing-toggle button.active {
    background: #0f766e;
    color: #fff;
}

.site-price ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: grid;
    gap: .55rem;
}

.site-price li {
    display: flex;
    gap: .5rem;
    color: #475569;
}

.site-price li i {
    color: #0f766e;
}

.site-contact {
    background: #172033;
    color: #fff;
}

.site-contact p {
    color: rgba(255, 255, 255, .78);
}

.site-contact-list {
    display: grid;
    gap: .75rem;
    margin-top: 1.25rem;
}

.site-contact-list a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .95rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
}

.site-contact-list i {
    color: #67e8f9;
}

.site-contact-form {
    height: 100%;
    padding: clamp(1.2rem, 3vw, 2rem);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
}

.site-contact-form .form-control {
    min-height: 46px;
}

.site-footer {
    background: #fff;
    border-top: 1px solid rgba(15, 23, 42, .08);
}

.saas-site {
    background: #f6f8fb;
    color: #172033;
}

.saas-site a {
    color: inherit;
    text-decoration: none;
}

.saas-site .btn-primary {
    background: #0f766e;
    border-color: #0f766e;
}

.saas-site .btn-outline-primary {
    color: #0f766e;
    border-color: #0f766e;
}

.saas-site .btn-outline-primary:hover {
    background: #0f766e;
    color: #fff;
}

.saas-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .95);
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.saas-brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
}

.saas-brand span {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #0f766e;
    color: #fff;
    font-weight: 800;
}

.saas-nav a:not(.btn):hover {
    color: #0f766e;
}

.saas-hero {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #172033;
    color: #fff;
}

.saas-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .4);
    z-index: 1;
}

.saas-hero-visual {
    position: absolute;
    inset: 0;
    background: #dfe7ea;
    color: #172033;
}

.saas-screen {
    position: absolute;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .2);
}

.screen-main {
    right: 7vw;
    top: 92px;
    width: min(760px, 56vw);
    min-height: 500px;
    padding: 1.15rem;
}

.screen-side {
    right: 5vw;
    bottom: 82px;
    width: min(360px, 32vw);
    padding: 1.2rem;
}

.screen-topbar {
    display: flex;
    gap: .35rem;
    margin-bottom: 1rem;
}

.screen-topbar span {
    width: .72rem;
    height: .72rem;
    border-radius: 50%;
    background: #e2e8f0;
}

.screen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .8rem;
    margin-bottom: 1rem;
}

.screen-metric {
    padding: 1rem;
    background: #e9fbf6;
    border: 1px solid #c8eee3;
    border-radius: 8px;
}

.screen-metric small,
.screen-metric strong {
    display: block;
}

.screen-metric small {
    color: #64748b;
}

.screen-metric strong {
    margin-top: .35rem;
    font-size: clamp(1.1rem, 2vw, 1.6rem);
}

.accent-blue {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.accent-gold {
    background: #fffbeb;
    border-color: #fde68a;
}

.screen-chart {
    height: 190px;
    display: flex;
    align-items: end;
    gap: .85rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.screen-chart span {
    flex: 1;
    min-width: 22px;
    border-radius: 8px 8px 3px 3px;
    background: #0f766e;
}

.screen-chart span:nth-child(2n) {
    background: #2563eb;
}

.screen-chart span:nth-child(3n) {
    background: #d97706;
}

.screen-table {
    display: grid;
    gap: .35rem;
}

.screen-table div {
    display: grid;
    grid-template-columns: 1fr .8fr .8fr;
    gap: 1rem;
    padding: .7rem .85rem;
    border-radius: 8px;
    background: #f8fafc;
}

.screen-table div:first-child {
    background: #172033;
    color: #fff;
}

.member-mini {
    display: grid;
    gap: .4rem;
}

.member-mini i {
    font-size: 2rem;
    color: #0f766e;
}

.member-mini span {
    color: #64748b;
}

.saas-hero .container {
    z-index: 2;
}

.saas-hero-copy {
    max-width: 700px;
    padding: 6rem 0;
}

.saas-eyebrow {
    display: inline-block;
    margin-bottom: .8rem;
    color: rgba(255, 255, 255, .72);
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 0;
}

.saas-eyebrow.dark {
    color: #0f766e;
}

.saas-hero h1 {
    font-size: clamp(3rem, 8vw, 6.8rem);
    line-height: .92;
    max-width: 760px;
}

.saas-hero p {
    max-width: 650px;
    margin: 1.4rem 0;
    color: rgba(255, 255, 255, .84);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.saas-hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.25rem;
    color: rgba(255, 255, 255, .88);
    font-weight: 700;
}

.saas-hero-proof i {
    color: #67e8f9;
    margin-right: .25rem;
}

.saas-band {
    background: #fff;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    padding: 1.25rem 0;
}

.saas-stat {
    padding: 1rem;
    border-left: 4px solid #0f766e;
    background: #f8fafc;
    border-radius: 8px;
}

.saas-stat span,
.saas-stat strong {
    display: block;
}

.saas-stat span {
    color: #64748b;
    font-size: .85rem;
}

.saas-stat strong {
    margin-top: .2rem;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.saas-section {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.saas-section-soft {
    background: #fff;
}

.saas-section-head {
    max-width: 760px;
    margin-bottom: 2rem;
}

.saas-section-head h2,
.saas-section h2,
.saas-deploy h2 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1;
}

.saas-section-head p,
.saas-lead,
.saas-deploy p {
    color: #64748b;
    font-size: 1.08rem;
}

.saas-feature,
.saas-price,
.saas-portal-preview,
.saas-steps > div {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .07);
}

.saas-feature {
    height: 100%;
    padding: 1.35rem;
}

.saas-feature i {
    color: #0f766e;
    font-size: 1.7rem;
}

.saas-feature h3 {
    margin-top: .85rem;
    font-size: 1.1rem;
}

.saas-feature p {
    margin-bottom: 0;
    color: #64748b;
}

.saas-portal-preview {
    display: grid;
    grid-template-columns: minmax(220px, .65fr) 1fr;
    gap: 1.2rem;
    align-items: center;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: #eef7f5;
}

.portal-phone {
    max-width: 280px;
    margin: auto;
    padding: 1.35rem;
    border-radius: 28px;
    background: #172033;
    color: #fff;
    box-shadow: 0 24px 55px rgba(15, 23, 42, .24);
}

.phone-notch {
    width: 72px;
    height: 6px;
    margin: 0 auto 1rem;
    border-radius: 999px;
    background: #64748b;
}

.portal-phone strong,
.portal-phone span,
.portal-phone button {
    display: block;
}

.portal-phone span {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.phone-balance {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    background: #0f766e;
    font-size: 1.45rem;
    font-weight: 800;
}

.portal-phone button {
    width: 100%;
    border: 0;
    border-radius: 8px;
    padding: .75rem;
    margin-top: .65rem;
    background: #fff;
    color: #172033;
    font-weight: 700;
}

.portal-lines {
    display: grid;
    gap: .85rem;
}

.portal-lines div {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .95rem 1rem;
    border-radius: 8px;
    background: #fff;
    font-weight: 700;
}

.portal-lines i {
    color: #2563eb;
    font-size: 1.25rem;
}

.saas-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.saas-steps > div {
    padding: 1.25rem;
}

.saas-steps span {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #172033;
    color: #fff;
    font-weight: 800;
    margin-bottom: 1rem;
}

.saas-steps p {
    color: #64748b;
    margin: .55rem 0 0;
}

.saas-pricing-section {
    background: #eef2f7;
}

.saas-price {
    height: 100%;
    padding: 1.4rem;
}

.saas-price h3 {
    font-size: 1.25rem;
}

.saas-price-value {
    margin: 1rem 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

.saas-price-value span {
    font-size: 1rem;
    color: #64748b;
    font-weight: 600;
}

.saas-price ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: grid;
    gap: .55rem;
}

.saas-price li {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #475569;
}

.saas-price li i {
    color: #0f766e;
}

.saas-deploy {
    background: #172033;
    color: #fff;
}

.saas-deploy p {
    color: rgba(255, 255, 255, .75);
}

.saas-check-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .8rem;
}

.saas-check-grid span {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    font-weight: 700;
}

.saas-check-grid i {
    color: #67e8f9;
    margin-right: .45rem;
}

.saas-footer {
    background: #fff;
    border-top: 1px solid rgba(15, 23, 42, .08);
}

.agent-site {
    background: #f4f7fb;
    color: #172033;
    overflow-x: hidden;
}

.agent-site a {
    color: inherit;
    text-decoration: none;
}

.agent-site .btn-primary {
    background: #0f766e;
    border-color: #0f766e;
}

.agent-site .btn-primary:hover {
    background: #115e59;
    border-color: #115e59;
}

.agent-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.agent-nav a:not(.btn):hover {
    color: #0f766e;
}

.agent-hero {
    position: relative;
    min-height: 760px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}

.agent-hero-image,
.agent-hero-overlay {
    position: absolute;
    inset: 0;
}

.agent-hero-image {
    background-image: url("https://images.unsplash.com/photo-1678693362448-27bc143e74d9?auto=format&fit=crop&fm=jpg&q=80&w=1800");
    background-size: cover;
    background-position: center;
}

.agent-hero-overlay {
    background:
        linear-gradient(90deg, rgba(10, 18, 32, .94), rgba(10, 18, 32, .78) 48%, rgba(10, 18, 32, .38)),
        linear-gradient(0deg, rgba(15, 118, 110, .45), rgba(15, 23, 42, .2));
}

.agent-hero-content {
    position: relative;
    z-index: 2;
    padding-top: clamp(4rem, 8vw, 7rem);
    padding-bottom: clamp(4rem, 8vw, 7rem);
}

.agent-eyebrow {
    display: inline-block;
    margin-bottom: .8rem;
    color: rgba(255, 255, 255, .78);
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 0;
}

.agent-eyebrow.dark {
    color: #0f766e;
}

.agent-hero h1 {
    max-width: 820px;
    font-size: clamp(2.6rem, 6vw, 5.8rem);
    line-height: .96;
    text-shadow: 0 4px 28px rgba(0, 0, 0, .38);
}

.agent-hero p {
    max-width: 680px;
    margin: 1.25rem 0;
    color: rgba(255, 255, 255, .9);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    text-shadow: 0 3px 16px rgba(0, 0, 0, .32);
}

.agent-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem 1.25rem;
    margin-top: 1.25rem;
    color: rgba(255, 255, 255, .92);
    font-weight: 700;
}

.agent-hero-points i {
    color: #67e8f9;
    margin-right: .3rem;
}

.agent-panel {
    padding: clamp(1.15rem, 3vw, 1.5rem);
    background: rgba(255, 255, 255, .96);
    color: #172033;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 8px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, .34);
}

.agent-panel-grid,
.agent-earnings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.agent-panel-grid div,
.agent-earnings div {
    padding: 1rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.agent-panel-grid span,
.agent-panel-grid strong,
.agent-earnings span,
.agent-earnings strong,
.agent-earnings small {
    display: block;
}

.agent-panel-grid span,
.agent-earnings span,
.agent-earnings small {
    color: #64748b;
}

.agent-panel-grid strong,
.agent-earnings strong {
    margin-top: .25rem;
    font-size: clamp(1.08rem, 2vw, 1.6rem);
}

.agent-ref-card {
    display: grid;
    gap: .2rem;
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 8px;
    background: #172033;
    color: #fff;
}

.agent-ref-card span {
    color: #cbd5e1;
    font-size: .85rem;
}

.agent-ref-card strong {
    overflow-wrap: anywhere;
    font-size: .92rem;
}

.agent-step-mini {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 0;
    border-top: 1px solid #e2e8f0;
    font-weight: 700;
}

.agent-step-mini i {
    color: #0f766e;
    font-size: 1.2rem;
}

.agent-proof {
    background: #fff;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    padding: 1.25rem 0;
}

.agent-proof div div div {
    height: 100%;
    padding: 1rem;
    border-left: 4px solid #0f766e;
    background: #f8fafc;
    border-radius: 8px;
}

.agent-proof span,
.agent-proof strong {
    display: block;
}

.agent-proof span {
    color: #64748b;
    font-size: .85rem;
}

.agent-proof strong {
    margin-top: .2rem;
    font-size: clamp(1rem, 2vw, 1.45rem);
}

.agent-section {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.agent-soft {
    background: #eaf1f5;
}

.agent-section-head {
    max-width: 780px;
    margin-bottom: 2rem;
}

.agent-section h2,
.agent-section-head h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
}

.agent-section-head p,
.agent-lead {
    color: #64748b;
    font-size: 1.08rem;
}

.agent-feature {
    height: 100%;
    padding: 1.35rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .07);
}

.agent-feature i {
    color: #0f766e;
    font-size: 1.7rem;
}

.agent-feature h3 {
    margin-top: .85rem;
    font-size: 1.12rem;
}

.agent-feature p {
    color: #64748b;
    margin-bottom: 0;
}

.agent-card-link:hover .agent-feature {
    transform: translateY(-2px);
    border-color: rgba(15, 118, 110, .35);
}

.agent-contact {
    background: #172033;
    color: #fff;
}

.agent-contact p {
    color: rgba(255, 255, 255, .78);
}

.agent-faq .accordion-item {
    border: 0;
    margin-bottom: .8rem;
    border-radius: 8px;
    overflow: hidden;
}

.agent-faq .accordion-button {
    font-weight: 800;
}

.tenant-public {
    background: #f4f8fb;
}

.tenant-public a {
    color: inherit;
    text-decoration: none;
}

.tenant-public .btn-primary,
.tenant-public .btn-success {
    background: var(--tenant-primary);
    border-color: var(--tenant-primary);
}

.tenant-public .btn-outline-primary {
    color: var(--tenant-primary);
    border-color: var(--tenant-primary);
}

.tenant-public .btn-outline-primary:hover {
    background: var(--tenant-primary);
    color: #fff;
}

.tenant-public-nav {
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    backdrop-filter: blur(14px);
}

.tenant-public-brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: #172033;
    text-decoration: none;
}

.tenant-public-brand img,
.tenant-public-brand span {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--tenant-primary);
    color: #fff;
    font-weight: 800;
    object-fit: cover;
}

.tenant-public-hero {
    background: var(--tenant-primary);
    color: #fff;
    padding: clamp(3rem, 7vw, 6rem) 0;
}

.tenant-public-hero-full {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.tenant-hero-image,
.tenant-hero-overlay {
    position: absolute;
    inset: 0;
}

.tenant-hero-image {
    background-image: url("https://images.unsplash.com/photo-1678693362448-27bc143e74d9?auto=format&fit=crop&fm=jpg&q=80&w=1800");
    background-size: cover;
    background-position: center;
}

.tenant-hero-overlay {
    background:
        linear-gradient(90deg, rgba(15, 23, 42, .9), rgba(15, 23, 42, .72) 46%, rgba(15, 23, 42, .35)),
        linear-gradient(0deg, rgba(0, 0, 0, .4), rgba(0, 0, 0, .08));
}

.tenant-public-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.tenant-public-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: 1;
    max-width: 760px;
}

.tenant-public-hero p {
    font-size: 1.15rem;
    max-width: 660px;
    color: rgba(255, 255, 255, .86);
}

.tenant-eyebrow {
    display: inline-block;
    margin-bottom: .8rem;
    color: rgba(255, 255, 255, .72);
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 0;
}

.tenant-public-panel,
.tenant-public-card,
.tenant-stat,
.tenant-product {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .09);
}

.tenant-public-panel {
    color: #172033;
    padding: 1.25rem;
}

.tenant-service-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 0;
    border-top: 1px solid rgba(15, 23, 42, .08);
    font-weight: 600;
}

.tenant-service-row i {
    color: var(--tenant-primary);
    font-size: 1.25rem;
}

.tenant-stat,
.tenant-product {
    padding: 1.25rem;
    height: 100%;
}

.tenant-stat span {
    display: block;
    color: #64748b;
    font-size: .9rem;
}

.tenant-stat strong {
    display: block;
    margin-top: .25rem;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    color: #172033;
    overflow-wrap: anywhere;
}

.tenant-product p {
    color: #64748b;
    min-height: 3rem;
}

.tenant-wide-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 22px 54px rgba(15, 23, 42, .16);
}

.tenant-about-list {
    display: grid;
    gap: .8rem;
    margin-top: 1.25rem;
}

.tenant-about-list div,
.tenant-contact-card a,
.tenant-contact-card div {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.tenant-about-list div {
    padding: 1rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 8px;
}

.tenant-about-list i,
.tenant-service-card i {
    color: var(--tenant-primary);
    font-size: 1.35rem;
}

.tenant-public-soft {
    background: #eaf1f5;
}

.tenant-service-card {
    height: 100%;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .07);
}

.tenant-service-card h3 {
    margin-top: .85rem;
    font-size: 1.12rem;
}

.tenant-service-card p {
    color: #64748b;
    margin-bottom: 0;
}

.tenant-public-contact {
    background: #172033;
    color: #fff;
}

.tenant-public-contact p {
    color: rgba(255, 255, 255, .78);
}

.tenant-contact-card {
    display: grid;
    gap: .75rem;
    padding: clamp(1.2rem, 3vw, 1.6rem);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
}

.tenant-contact-card a,
.tenant-contact-card div {
    padding: .9rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
}

.tenant-contact-card i {
    color: #67e8f9;
}

.tenant-public-footer {
    background: #fff;
    border-top: 1px solid rgba(15, 23, 42, .08);
}

.tenant-whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #25d366;
    color: #fff !important;
    font-size: 1.7rem;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .22);
}

.tenant-form-shell {
    display: grid;
    grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.tenant-form-shell h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.tenant-form-shell p {
    color: #64748b;
    font-size: 1.05rem;
}

.tenant-public-card {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.tenant-login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.tenant-login-shell .tenant-public-card {
    width: min(100%, 460px);
}

.member-portal-shell {
    color: #172033;
}

.member-portal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    gap: 1rem;
    align-items: stretch;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .94), rgba(37, 99, 235, .86)),
        #0f766e;
    color: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .16);
}

.member-portal-hero h2 {
    margin: .35rem 0 .65rem;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1;
}

.member-portal-hero p {
    max-width: 780px;
    color: rgba(255, 255, 255, .88);
}

.member-portal-identity {
    display: grid;
    align-content: center;
    padding: 1.25rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
}

.member-portal-identity span,
.member-portal-identity strong {
    display: block;
}

.member-portal-identity strong {
    margin-top: .25rem;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.member-portal-panel {
    overflow: hidden;
}

.member-portal-tabs {
    gap: .35rem;
}

.member-portal-tabs .nav-link {
    border-radius: 8px;
    color: #475569;
    font-weight: 700;
}

.member-portal-tabs .nav-link.active {
    background: #0f766e;
    color: #fff;
}

.member-section-title {
    margin-bottom: 1rem;
}

.member-section-title h3,
.member-side-panel h3 {
    margin: 0;
    font-size: 1.05rem;
}

.member-section-title p {
    margin: .2rem 0 0;
    color: #64748b;
}

.member-side-panel {
    height: auto;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.member-side-panel h3 {
    margin-bottom: .85rem;
}

@media (min-width: 992px) {
    .sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
    }
}

@media (max-width: 767.98px) {
    .site-nav .container {
        flex-wrap: wrap;
    }

    .site-brand strong {
        font-size: .95rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        right: 12px;
        bottom: 12px;
    }

    .site-hero {
        min-height: auto;
    }

    .site-hero-overlay {
        background: rgba(10, 18, 32, .82);
    }

    .site-hero-content {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .site-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .site-bills-grid {
        grid-template-columns: 1fr;
    }

    .site-dashboard-card {
        margin-top: 1rem;
    }

    .site-portal-showcase,
    .site-portal-showcase img {
        min-height: 340px;
    }

    .site-phone-card {
        position: static;
        width: auto;
        margin: -5.5rem 1rem 1rem;
    }

    .customer-form-hero,
    .customer-submit-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .customer-form-hero .btn,
    .customer-submit-bar .btn {
        width: 100%;
    }

    .customer-form-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: .65rem;
    }

    .customer-form-tabs .nav-link {
        white-space: nowrap;
        border-radius: 8px;
    }

    .customer-filter-form,
    .customer-search-form,
    .customer-search-input,
    .customer-filter-select,
    .customer-new-btn {
        flex: 1 1 100%;
        max-width: none;
        width: 100%;
    }

    .saas-hero {
        min-height: auto;
    }

    .saas-hero::before {
        background: rgba(15, 23, 42, .64);
    }

    .screen-main {
        width: 720px;
        right: -360px;
        top: 40px;
        opacity: .58;
    }

    .screen-side {
        display: none;
    }

    .saas-hero-copy {
        padding: 4.5rem 0;
    }

    .saas-portal-preview,
    .saas-steps,
    .saas-check-grid {
        grid-template-columns: 1fr;
    }

    .agent-nav .container {
        flex-wrap: wrap;
    }

    .agent-hero {
        min-height: auto;
    }

    .agent-hero-overlay {
        background: rgba(10, 18, 32, .82);
    }

    .agent-hero-content {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .agent-panel {
        margin-top: 1rem;
    }

    .agent-panel-grid,
    .agent-earnings {
        grid-template-columns: 1fr;
    }

    .tenant-public-hero-inner,
    .tenant-form-shell {
        grid-template-columns: 1fr;
    }

    .member-portal-hero {
        grid-template-columns: 1fr;
    }

    .member-portal-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: .35rem;
    }

    .member-portal-tabs .nav-link {
        white-space: nowrap;
    }
}

@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: #fff;
    }
}
