:root {
    --crm-purple: #4c2f69;
    --crm-purple-strong: #361d52;
    --crm-purple-deep: #251337;
    --crm-purple-soft: #f3ecfb;
    --crm-pink: #e1007a;
    --crm-pink-strong: #b70061;
    --crm-green: #25d366;
    --crm-green-strong: #15944c;
    --crm-ink: #261933;
    --crm-text: #66567a;
    --crm-paper: #ffffff;
    --crm-shell: #f7f1fb;
    --crm-line: rgba(76, 47, 105, 0.12);
    --crm-shadow: 0 22px 56px rgba(40, 18, 61, 0.16);
}

body.crm-body {
    min-height: 100vh;
    color: var(--crm-ink);
    background:
        radial-gradient(circle at top left, rgba(225, 0, 122, 0.1), transparent 24%),
        radial-gradient(circle at bottom right, rgba(37, 211, 102, 0.08), transparent 18%),
        linear-gradient(180deg, #ffffff 0%, var(--crm-shell) 100%);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: "Trebuchet MS", "Arial Narrow", sans-serif;
    letter-spacing: -0.03em;
}

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

img {
    max-width: 100%;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.78) !important;
}

.crm-navbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(76, 47, 105, 0.08);
    box-shadow: 0 10px 26px rgba(44, 20, 69, 0.08);
}

.crm-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--crm-purple);
    font-weight: 800;
}

.crm-brand-mark {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(76, 47, 105, 0.12), rgba(225, 0, 122, 0.08));
    box-shadow: inset 0 0 0 1px rgba(76, 47, 105, 0.08);
    overflow: hidden;
}

.crm-brand-mark img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.crm-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.crm-brand-text strong {
    font-size: 1rem;
}

.crm-brand-text small {
    margin-top: 0.2rem;
    color: var(--crm-text);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.navbar-toggler {
    border-color: rgba(76, 47, 105, 0.16);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2876,47,105,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    color: var(--crm-text);
    font-weight: 700;
}

.nav-link:hover,
.nav-link:focus,
.navbar-brand:hover,
.navbar-brand:focus {
    color: var(--crm-pink) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--crm-pink), var(--crm-pink-strong));
    border-color: var(--crm-pink-strong);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(225, 0, 122, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #ff198f, var(--crm-pink));
    border-color: var(--crm-pink);
    color: #fff;
}

.btn-outline-dark {
    color: var(--crm-purple);
    border-color: rgba(76, 47, 105, 0.34);
    font-weight: 700;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
    background: var(--crm-purple);
    border-color: var(--crm-purple);
    color: #fff;
}

.crm-top-dropdown {
    min-width: 240px;
    padding: 0.5rem;
    border: 1px solid rgba(76, 47, 105, 0.12);
    border-radius: 1rem;
    box-shadow: 0 18px 42px rgba(40, 18, 61, 0.14);
}

.crm-top-dropdown .dropdown-item {
    padding: 0.7rem 0.85rem;
    border-radius: 0.8rem;
    font-weight: 700;
    color: var(--crm-purple);
}

.crm-top-dropdown .dropdown-item:hover,
.crm-top-dropdown .dropdown-item:focus {
    background: rgba(225, 0, 122, 0.08);
    color: var(--crm-pink);
}

.crm-notification-dropdown {
    min-width: 340px;
    max-width: 380px;
}

.crm-notification-dropdown .dropdown-item {
    white-space: normal;
}

.crm-access-trigger {
    min-width: 106px;
}

.crm-access-offcanvas {
    width: min(420px, 100vw);
    background:
        radial-gradient(circle at top right, rgba(225, 0, 122, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 241, 251, 0.98));
    border-left: 1px solid rgba(76, 47, 105, 0.12);
}

.crm-access-offcanvas .offcanvas-header {
    padding: 1.35rem 1.35rem 1rem;
    border-bottom: 1px solid rgba(76, 47, 105, 0.08);
}

.crm-access-offcanvas .offcanvas-body {
    padding: 1.25rem 1.35rem;
}

.crm-access-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--crm-purple);
    background: rgba(225, 0, 122, 0.08);
    border: 1px solid rgba(225, 0, 122, 0.14);
}

.crm-access-kicker::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--crm-pink);
}

.crm-access-section + .crm-access-section {
    margin-top: 1.1rem;
}

.crm-access-section-title {
    margin-bottom: 0.7rem;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--crm-text);
}

.crm-access-list {
    display: grid;
    gap: 0.55rem;
}

.crm-access-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(76, 47, 105, 0.1);
    color: var(--crm-purple);
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(40, 18, 61, 0.06);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.crm-access-link span {
    flex: 1;
}

.crm-access-link small {
    color: var(--crm-text);
    font-size: 0.8rem;
    font-weight: 700;
}

.crm-access-link:hover,
.crm-access-link:focus {
    color: var(--crm-pink);
    border-color: rgba(225, 0, 122, 0.22);
    box-shadow: 0 14px 30px rgba(225, 0, 122, 0.1);
    transform: translateY(-1px);
}

.crm-access-preview {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(76, 47, 105, 0.08);
}

.crm-access-preview-item {
    display: grid;
    gap: 0.2rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(76, 47, 105, 0.08);
}

.crm-access-preview-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.crm-access-preview-item strong {
    color: var(--crm-purple);
    font-size: 0.92rem;
}

.crm-access-preview-item span {
    color: var(--crm-text);
    font-size: 0.84rem;
}

.crm-offcanvas-footer {
    padding: 1rem 1.35rem 1.35rem;
    border-top: 1px solid rgba(76, 47, 105, 0.08);
    background: rgba(255, 255, 255, 0.88);
}

.crm-access-summary-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.crm-access-summary {
    display: grid;
    gap: 0.2rem;
    padding: 1rem 1.05rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(76, 47, 105, 0.1);
    box-shadow: 0 12px 26px rgba(40, 18, 61, 0.08);
    color: var(--crm-purple);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.crm-access-summary span {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--crm-text);
}

.crm-access-summary strong {
    font-size: 1.15rem;
    line-height: 1.1;
}

.crm-access-summary small {
    color: var(--crm-text);
    font-size: 0.82rem;
    font-weight: 700;
}

.crm-access-summary:hover,
.crm-access-summary:focus {
    color: var(--crm-pink);
    border-color: rgba(225, 0, 122, 0.22);
    box-shadow: 0 16px 30px rgba(225, 0, 122, 0.12);
    transform: translateY(-1px);
}

.crm-access-summary--primary {
    background: linear-gradient(135deg, rgba(225, 0, 122, 0.94), rgba(183, 0, 97, 0.96));
    border-color: rgba(183, 0, 97, 0.92);
    color: #fff;
}

.crm-access-summary--primary span,
.crm-access-summary--primary small {
    color: rgba(255, 255, 255, 0.82);
}

.crm-access-accordion {
    display: grid;
    gap: 0.8rem;
}

.crm-access-accordion .accordion-item {
    overflow: hidden;
    border: 1px solid rgba(76, 47, 105, 0.1);
    border-radius: 1.05rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(40, 18, 61, 0.06);
}

.crm-access-accordion .accordion-button {
    font-weight: 800;
    color: var(--crm-purple);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
}

.crm-access-accordion .accordion-button:not(.collapsed) {
    color: var(--crm-pink);
    background: rgba(225, 0, 122, 0.06);
}

.crm-access-accordion .accordion-button:focus {
    box-shadow: none;
}

.crm-access-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    font-weight: 700;
    color: var(--crm-purple);
    border: 0;
    border-top: 1px solid rgba(76, 47, 105, 0.08);
}

.crm-access-item:first-child {
    border-top: 0;
}

.crm-access-item:hover,
.crm-access-item:focus {
    color: var(--crm-pink);
    background: rgba(225, 0, 122, 0.05);
}

@media (max-width: 575.98px) {
    .crm-access-summary-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.btn-light.hero-secondary-btn {
    color: var(--crm-purple);
    font-weight: 700;
}

.hero-card,
.card,
.info-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 246, 255, 0.98));
    border: 1px solid var(--crm-line);
    box-shadow: var(--crm-shadow);
}

.crm-pill,
.section-kicker,
.section-kicker-light,
.platform-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.crm-pill::before,
.section-kicker::before,
.section-kicker-light::before,
.platform-tag::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
}

.crm-pill,
.section-kicker,
.platform-tag {
    background: rgba(225, 0, 122, 0.08);
    color: var(--crm-purple);
    border: 1px solid rgba(225, 0, 122, 0.16);
}

.crm-pill::before,
.section-kicker::before,
.platform-tag::before {
    background: var(--crm-pink);
}

.section-kicker-light {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.section-kicker-light::before {
    background: var(--crm-green);
}

.crm-shell {
    position: relative;
}

.crm-mini-stat,
.crm-stat-card,
.crm-person-card {
    border: 1px solid rgba(76, 47, 105, 0.1);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.92);
    padding: 1rem 1.1rem;
}

.crm-mini-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

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

.crm-stat-card {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.crm-kpi-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(76, 47, 105, 0.1);
}

.crm-kpi-row:last-child {
    border-bottom: 0;
}

.table > :not(caption) > * > * {
    background: transparent;
}

.list-group-item {
    background: transparent;
}

.crm-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.crm-check-list li {
    position: relative;
    padding-left: 1.35rem;
    margin-bottom: 0.7rem;
}

.crm-check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.52rem;
    width: 0.52rem;
    height: 0.52rem;
    border-radius: 50%;
    background: var(--crm-green);
}

.home-shell {
    padding: 0;
}

.home-topbar {
    background: linear-gradient(90deg, var(--crm-purple-deep), var(--crm-purple));
    color: #fff;
    padding: 0.7rem 0;
}

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 2rem 0 3.6rem;
    background:
        radial-gradient(circle at 85% 18%, rgba(225, 0, 122, 0.22), transparent 18%),
        radial-gradient(circle at 8% 85%, rgba(37, 211, 102, 0.12), transparent 18%),
        linear-gradient(140deg, rgba(52, 29, 79, 0.98), rgba(76, 47, 105, 0.98));
}

.home-hero-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.6rem;
    align-items: stretch;
}

.home-brand-rail {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 244, 253, 0.98));
    box-shadow: 0 28px 58px rgba(22, 8, 36, 0.22);
}

.home-brand-logo {
    width: min(100%, 210px);
    margin: 0 auto 0.4rem;
    display: block;
}

.home-rail-nav {
    display: grid;
    gap: 0.7rem;
}

.home-rail-nav a {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, var(--crm-pink), var(--crm-pink-strong));
    color: #fff;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 8px 18px rgba(225, 0, 122, 0.2);
}

.home-rail-card {
    padding: 1rem;
    border-radius: 1.2rem;
    background: linear-gradient(180deg, var(--crm-purple-soft), #fff);
    color: var(--crm-text);
    border: 1px solid rgba(76, 47, 105, 0.12);
}

.home-hero-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1.3rem;
}

.hero-copy,
.hero-visual {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    min-height: 510px;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.2rem;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(225, 0, 122, 0.26), transparent 28%),
        linear-gradient(165deg, rgba(31, 15, 48, 0.96), rgba(70, 43, 101, 0.92));
    box-shadow: 0 26px 58px rgba(18, 7, 30, 0.22);
}

.hero-copy h1 {
    margin: 1rem 0 1rem;
    font-size: clamp(2.4rem, 3.6vw, 4.1rem);
    line-height: 0.98;
}

.hero-copy p {
    max-width: 560px;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.hero-contact-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.8rem;
}

.hero-contact-strip div {
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-contact-strip span {
    display: block;
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-contact-strip strong {
    display: block;
    font-size: 1rem;
}

.hero-visual {
    border: 2px solid rgba(225, 0, 122, 0.72);
    box-shadow: 0 26px 58px rgba(18, 7, 30, 0.26);
}

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

.hero-visual-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-visual-overlay {
    background:
        linear-gradient(180deg, rgba(34, 18, 52, 0.16), rgba(34, 18, 52, 0.72)),
        linear-gradient(90deg, rgba(76, 47, 105, 0.34), transparent 54%);
}

.hero-device-card {
    position: absolute;
    inset: auto 1.4rem 1.4rem 1.4rem;
    z-index: 1;
    padding: 1.2rem;
    border-radius: 1.4rem;
    background: rgba(30, 15, 46, 0.44);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.hero-device-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #fff;
}

.promo-avatar {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
}

.promo-avatar img {
    width: 1.8rem;
    height: 1.8rem;
    object-fit: contain;
}

.hero-device-alerts {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.promo-alert {
    padding: 0.9rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--crm-green), #67f28d);
    color: #053617;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.24);
}

.hero-mini-stats {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.95rem;
}

.home-stat-card {
    padding: 1rem 1.1rem;
    border-radius: 1.2rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

.home-stat-card strong {
    display: block;
    font-size: 1.7rem;
    line-height: 1;
}

.home-stat-card span {
    display: block;
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.92rem;
}

.home-section {
    padding: 4.5rem 0;
}

.home-section-band {
    background: linear-gradient(140deg, rgba(52, 29, 79, 0.98), rgba(76, 47, 105, 0.96));
    color: #fff;
}

.home-section-dark {
    background: linear-gradient(180deg, rgba(52, 29, 79, 0.98), rgba(29, 14, 44, 0.98));
    color: #fff;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2.2rem;
}

.section-heading p {
    color: var(--crm-text);
    margin-bottom: 0;
}

.section-heading-white p {
    color: rgba(255, 255, 255, 0.76);
}

.coverage-section {
    padding-top: 3.2rem;
}

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

.coverage-card,
.platform-card,
.reason-card,
.plan-card {
    border-radius: 1.5rem;
    border: 1px solid rgba(76, 47, 105, 0.1);
    box-shadow: var(--crm-shadow);
}

.coverage-card,
.platform-card {
    background: #fff;
    padding: 1.4rem;
}

.coverage-heading {
    margin-bottom: 1.2rem;
}

.coverage-heading h2 {
    margin: 0.7rem 0 0;
    font-size: clamp(1.5rem, 2.4vw, 2.2rem);
}

.coverage-map-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 1rem;
    align-items: stretch;
}

.coverage-map-live {
    min-height: 320px;
    border-radius: 1.4rem;
    overflow: hidden;
    border: 1px solid rgba(76, 47, 105, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.tracking-map-panel .card-body {
    padding: 1.75rem;
}

.tracking-map-live {
    min-height: 540px;
    border-radius: 1.6rem;
    border: 1px solid rgba(76, 47, 105, 0.12);
    box-shadow: 0 18px 42px rgba(76, 47, 105, 0.10);
}

.geofence-editor-map {
    min-height: 320px;
    margin-top: 0.35rem;
}

.coverage-map-live .leaflet-control-attribution {
    font-size: 0.68rem;
}

.coverage-map-live .leaflet-popup-content-wrapper {
    border-radius: 1rem;
}

.coverage-map-live .leaflet-popup-content {
    margin: 0.85rem 1rem;
    color: var(--crm-ink);
}

.coverage-map-live .leaflet-popup-tip,
.coverage-map-live .leaflet-popup-content-wrapper {
    box-shadow: 0 12px 26px rgba(40, 18, 61, 0.14);
}

.tracking-map-live .leaflet-control-zoom a {
    width: 34px;
    height: 34px;
    line-height: 34px;
    font-size: 1.05rem;
}

.tracking-map-live .leaflet-popup-content-wrapper {
    border-radius: 1.1rem;
}

.tracking-map-live .leaflet-popup-content {
    font-size: 0.95rem;
}

.customer-360-map {
    min-height: 460px;
}

.portal-comment-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 241, 251, 0.92));
    border: 1px solid rgba(76, 47, 105, 0.10);
    border-radius: 1.15rem;
    padding: 1rem 1.1rem;
    box-shadow: 0 10px 24px rgba(76, 47, 105, 0.06);
}

.portal-comment-card--me {
    border-color: rgba(225, 0, 122, 0.24);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 236, 247, 0.92));
}

.coverage-map-legend {
    display: grid;
    gap: 0.85rem;
}

.coverage-legend-item {
    display: flex;
    gap: 0.8rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, var(--crm-purple-soft), #fff);
    border: 1px solid rgba(76, 47, 105, 0.08);
}

.coverage-legend-dot {
    width: 0.9rem;
    height: 0.9rem;
    flex: 0 0 auto;
    margin-top: 0.35rem;
    border-radius: 50%;
    background: var(--crm-pink);
    box-shadow: 0 0 0 0.3rem rgba(225, 0, 122, 0.12);
}

.coverage-legend-item strong,
.coverage-legend-item span {
    display: block;
}

.coverage-legend-item span {
    margin-top: 0.2rem;
    color: var(--crm-text);
    font-size: 0.92rem;
}

.coverage-copy {
    display: grid;
    gap: 0.2rem;
    margin-top: 1rem;
    color: var(--crm-text);
}

.coverage-copy p {
    margin: 0;
}

@media (max-width: 991px) {
    .tracking-map-live {
        min-height: 460px;
    }
}

@media (max-width: 575px) {
    .tracking-map-live {
        min-height: 380px;
    }
}

.coverage-platform-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 1rem;
    align-items: stretch;
}

.coverage-platform-layout img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    border-radius: 1.2rem;
    object-fit: cover;
}

.coverage-status {
    display: grid;
    gap: 0.85rem;
}

.coverage-status-row {
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, var(--crm-purple-soft), #fff);
    border: 1px solid rgba(76, 47, 105, 0.08);
}

.coverage-status-row span {
    display: block;
    color: var(--crm-text);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.coverage-status-row strong {
    display: block;
    margin-top: 0.3rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.product-media-card {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: var(--crm-shadow);
}

.product-media-card img,
.product-media-overlay {
    position: absolute;
    inset: 0;
}

.product-media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-media-overlay {
    background: linear-gradient(180deg, rgba(22, 11, 35, 0.08), rgba(22, 11, 35, 0.84));
}

.product-media-copy {
    position: absolute;
    left: 1.3rem;
    right: 1.3rem;
    bottom: 1.2rem;
    z-index: 1;
    color: #fff;
}

.product-media-copy h3 {
    margin-bottom: 0.5rem;
}

.product-media-copy p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
}

.home-plan-tabs .nav-link {
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.home-plan-tabs .nav-link.active {
    background: #fff;
    color: var(--crm-purple);
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
}

.plan-card {
    height: 100%;
    padding: 1.6rem;
    background: rgba(255, 255, 255, 0.98);
    color: var(--crm-ink);
    box-shadow: 0 24px 48px rgba(27, 11, 44, 0.24);
}

.plan-card.featured {
    transform: translateY(-6px);
    border: 2px solid rgba(37, 211, 102, 0.5);
}

.plan-name {
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--crm-purple);
}

.plan-price {
    margin: 0.65rem 0 1rem;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--crm-pink);
    line-height: 1;
}

.platform-card h3,
.reason-card h3 {
    margin-bottom: 0.75rem;
}

.platform-card p,
.reason-card p {
    margin-bottom: 0;
    color: var(--crm-text);
}

.platform-credentials {
    display: grid;
    gap: 0.25rem;
    margin-top: 1rem;
    padding: 0.8rem 0.9rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, var(--crm-purple-soft), #fff);
    color: var(--crm-purple);
    font-size: 0.92rem;
    font-weight: 700;
}

.client-grid {
    display: grid;
    gap: 1rem;
}

.client-grid-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.client-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 136px;
    padding: 1.2rem;
    border-radius: 1.2rem;
    background: #fff;
    border: 1px solid rgba(76, 47, 105, 0.1);
    box-shadow: var(--crm-shadow);
}

.client-logo-card img {
    width: auto;
    max-height: 78px;
    object-fit: contain;
}

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

.reason-card {
    padding: 1.4rem;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
}

.reason-card p {
    color: rgba(255, 255, 255, 0.78);
}

.login-showcase,
.traccar-login-side {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    border-radius: 1.8rem;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(225, 0, 122, 0.28), transparent 22%),
        linear-gradient(145deg, var(--crm-purple-strong), var(--crm-purple));
    box-shadow: 0 26px 54px rgba(39, 17, 61, 0.28);
}

.login-showcase::before,
.traccar-login-side::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.14));
    pointer-events: none;
}

.login-showcase-logo {
    position: relative;
    width: min(100%, 220px);
    margin-bottom: 1.4rem;
    object-fit: contain;
}

.login-side-meta {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.9rem;
}

.login-side-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.login-side-meta-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.whatsapp-float {
    position: fixed;
    right: 1.35rem;
    bottom: 1.35rem;
    z-index: 26;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 1.05rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--crm-green), var(--crm-green-strong));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 18px 36px rgba(37, 211, 102, 0.28);
}

.whatsapp-float img {
    width: 1.4rem;
    height: 1.4rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(225, 0, 122, 0.4);
    box-shadow: 0 0 0 0.25rem rgba(225, 0, 122, 0.14);
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(280px, 1fr));
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.kanban-column {
    min-width: 280px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 250, 0.98));
    border: 1px solid rgba(76, 47, 105, 0.08);
    border-radius: 1.4rem;
    box-shadow: 0 12px 28px rgba(40, 18, 61, 0.08);
}

.kanban-column-header {
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid rgba(76, 47, 105, 0.08);
}

.kanban-column-header h2 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
}

.kanban-column-header span {
    display: block;
    margin-top: 0.25rem;
    color: var(--crm-text);
    font-size: 0.85rem;
}

.kanban-cards {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
}

.kanban-card {
    padding: 1rem;
    border-radius: 1.15rem;
    background: #fff;
    border: 1px solid rgba(76, 47, 105, 0.08);
    box-shadow: 0 10px 24px rgba(40, 18, 61, 0.06);
}

.kanban-card h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.kanban-meta {
    margin-bottom: 0.85rem;
    padding: 0.7rem 0.8rem;
    border-radius: 0.95rem;
    background: rgba(76, 47, 105, 0.05);
    font-size: 0.9rem;
    color: var(--crm-text);
}

.kanban-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.kanban-empty {
    padding: 1rem;
    border-radius: 1rem;
    border: 1px dashed rgba(76, 47, 105, 0.18);
    color: var(--crm-text);
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
}

.crm-chart-shell {
    position: relative;
    min-height: 320px;
}

.crm-chart-shell-wide {
    min-height: 340px;
}

.crm-module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.crm-module-card {
    display: block;
    min-height: 170px;
    padding: 1.15rem;
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 250, 0.98));
    border: 1px solid rgba(76, 47, 105, 0.1);
    box-shadow: 0 14px 32px rgba(40, 18, 61, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.crm-module-card:hover,
.crm-module-card:focus {
    transform: translateY(-3px);
    border-color: rgba(225, 0, 122, 0.26);
    box-shadow: 0 18px 38px rgba(40, 18, 61, 0.12);
    color: inherit;
}

.crm-module-card h3 {
    margin: 0.45rem 0 0.55rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.crm-module-card p {
    margin: 0;
    color: var(--crm-text);
    font-size: 0.93rem;
}

.crm-module-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(76, 47, 105, 0.08);
    color: var(--crm-purple);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.crm-alert-list {
    display: grid;
    gap: 0.9rem;
}

.crm-alert-item,
.crm-task-highlight {
    padding: 1rem;
    border-radius: 1.1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 250, 0.98));
    border: 1px solid rgba(76, 47, 105, 0.1);
}

.crm-alert-item strong,
.crm-alert-item span {
    display: block;
}

.crm-alert-item span {
    margin-top: 0.25rem;
    color: var(--crm-text);
    font-size: 0.92rem;
}

@media (max-width: 1399.98px) {
    .product-grid,
    .plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .crm-module-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    .home-hero-grid,
    .coverage-grid,
    .coverage-platform-layout,
    .coverage-map-shell {
        grid-template-columns: 1fr;
    }

    .home-hero-stage {
        grid-template-columns: 1fr;
    }

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

    .hero-copy,
    .hero-visual {
        min-height: 420px;
    }
}

@media (max-width: 991.98px) {
    .home-hero {
        padding: 1.6rem 0 3rem;
    }

    .hero-mini-stats,
    .reason-grid,
    .client-grid-logos,
    .crm-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-grid,
    .plan-grid {
        grid-template-columns: 1fr;
    }

    .kanban-board {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }

    .crm-module-grid {
        grid-template-columns: 1fr;
    }

    .crm-chart-shell,
    .crm-chart-shell-wide {
        min-height: 300px;
    }
}

@media (max-width: 767.98px) {
    .home-brand-rail,
    .hero-copy,
    .hero-visual {
        border-radius: 1.5rem;
    }

    .hero-copy {
        padding: 1.5rem;
        min-height: 0;
    }

    .hero-visual {
        min-height: 360px;
    }

    .hero-contact-strip {
        grid-template-columns: 1fr;
    }

    .hero-device-card {
        inset: auto 1rem 1rem 1rem;
    }

    .kanban-board {
        grid-template-columns: 1fr;
    }

    .crm-chart-shell,
    .crm-chart-shell-wide {
        min-height: 260px;
    }
}

@media (max-width: 575.98px) {
    .hero-mini-stats,
    .reason-grid,
    .client-grid-logos {
        grid-template-columns: 1fr;
    }

    .home-topbar .d-flex {
        justify-content: center !important;
    }

    .whatsapp-float span {
        display: none;
    }

    .whatsapp-float {
        width: 3.6rem;
        height: 3.6rem;
        justify-content: center;
        padding: 0;
    }
}
