/* Arquivo: app.css */

:root {
    color-scheme: dark;
    --bg: #090a11;
    --panel: rgba(20, 21, 33, 0.86);
    --panel-solid: #151621;
    --panel-soft: #1b1c29;
    --text: #f7f7fb;
    --muted: #9899aa;
    --border: rgba(255, 255, 255, 0.09);
    --primary: #8b5cf6;
    --primary-strong: #7341eb;
    --accent: #f97316;
    --success: #34d399;
    --danger: #fb7185;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 16%, rgba(139, 92, 246, 0.18), transparent 31rem),
        radial-gradient(circle at 86% 86%, rgba(249, 115, 22, 0.10), transparent 30rem),
        var(--bg);
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.auth-page {
    display: grid;
    place-items: center;
    padding: 24px;
    overflow-x: hidden;
}

.auth-page::before,
.auth-page::after {
    position: fixed;
    z-index: 0;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 64px;
    content: "";
    transform: rotate(28deg);
    pointer-events: none;
}

.auth-page::before {
    top: -155px;
    right: 6%;
}

.auth-page::after {
    bottom: -190px;
    left: 4%;
}

.auth-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    width: min(1120px, 100%);
    min-height: 690px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 32px;
    background: rgba(14, 15, 23, 0.76);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.auth-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 690px;
    padding: 48px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(139, 92, 246, 0.18), rgba(16, 17, 26, 0.06) 48%),
        #11121b;
}

.auth-showcase::before {
    position: absolute;
    right: -140px;
    bottom: -170px;
    width: 520px;
    height: 520px;
    border: 70px solid rgba(139, 92, 246, 0.07);
    border-radius: 50%;
    content: "";
}

.auth-showcase::after {
    position: absolute;
    top: 18%;
    right: 8%;
    width: 130px;
    height: 130px;
    border: 1px solid rgba(249, 115, 22, 0.14);
    border-radius: 38px;
    content: "";
    transform: rotate(18deg);
}

.brand,
.mobile-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    width: 30px;
    height: 30px;
    padding: 7px;
    border-radius: 9px;
    background: linear-gradient(145deg, var(--primary), var(--primary-strong));
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.brand-mark span {
    width: 4px;
    border-radius: 4px;
    background: #fff;
}

.brand-mark span:nth-child(1) {
    height: 8px;
    opacity: 0.72;
}

.brand-mark span:nth-child(2) {
    height: 15px;
}

.brand-mark span:nth-child(3) {
    height: 11px;
    opacity: 0.84;
}

.showcase-copy {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.eyebrow {
    margin: 0 0 12px;
    color: #bca7ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.showcase-copy h1,
.auth-header h2,
.setup-card h1,
.dashboard-header h1,
.welcome-panel h2 {
    margin: 0;
    letter-spacing: -0.045em;
}

.showcase-copy h1 {
    max-width: 520px;
    font-size: clamp(42px, 5vw, 67px);
    line-height: 0.98;
}

.showcase-copy > p:last-child {
    max-width: 460px;
    margin: 24px 0 0;
    color: #a8a9b8;
    font-size: 17px;
    line-height: 1.7;
}

.security-pill {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 13px;
    width: fit-content;
    padding: 13px 17px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
}

.security-pill div {
    display: grid;
    gap: 3px;
}

.security-pill strong {
    font-size: 13px;
}

.security-pill span:last-child {
    color: var(--muted);
    font-size: 11px;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.12);
}

.auth-card {
    display: grid;
    place-items: center;
    padding: 46px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
        rgba(18, 19, 29, 0.92);
}

.auth-card-inner {
    width: min(100%, 390px);
}

.mobile-brand {
    display: none;
    margin-bottom: 50px;
}

.auth-header {
    margin-bottom: 34px;
}

.auth-header h2 {
    font-size: 34px;
}

.auth-header > p:last-child,
.setup-lead,
.dashboard-header > div > p:last-child,
.welcome-panel div > p:last-child {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 22px;
    padding: 13px 15px;
    border: 1px solid rgba(251, 113, 133, 0.25);
    border-radius: 14px;
    background: rgba(251, 113, 133, 0.08);
    color: #fecdd3;
    font-size: 13px;
    line-height: 1.45;
}

.alert > span {
    display: grid;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: rgba(251, 113, 133, 0.18);
    font-weight: 800;
}

.alert p {
    margin: 1px 0 0;
}

.auth-form,
.setup-form {
    display: grid;
    gap: 20px;
}

.field {
    display: grid;
    gap: 9px;
}

.field > span:first-child {
    color: #d7d7df;
    font-size: 13px;
    font-weight: 700;
}

.input-wrap {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input-wrap:focus-within {
    border-color: rgba(139, 92, 246, 0.72);
    background: rgba(139, 92, 246, 0.055);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.10);
}

.input-wrap > svg {
    width: 19px;
    margin-right: 11px;
    fill: none;
    stroke: #77798c;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.input-wrap input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 15px;
}

.input-wrap input::placeholder {
    color: #5f6070;
}

.password-toggle {
    display: grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin-right: -8px;
    padding: 8px;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #77798c;
    cursor: pointer;
}

.password-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #c4c5d0;
}

.password-toggle svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.password-toggle .eye-closed,
.password-toggle[aria-pressed="true"] .eye-open {
    display: none;
}

.password-toggle[aria-pressed="true"] .eye-closed {
    display: block;
}

.password-hint {
    margin: -8px 0 2px;
    color: #77798c;
    font-size: 11px;
    line-height: 1.5;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
    padding: 0 22px;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fff;
    box-shadow: 0 14px 28px rgba(116, 65, 235, 0.25);
}

.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 17px 34px rgba(116, 65, 235, 0.34);
}

.primary-button svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    color: #686978;
    font-size: 11px;
}

.lock-icon {
    position: relative;
    width: 11px;
    height: 9px;
    border-radius: 2px;
    background: #686978;
}

.lock-icon::before {
    position: absolute;
    top: -5px;
    left: 2px;
    width: 5px;
    height: 6px;
    border: 1.5px solid #686978;
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
    content: "";
}

.setup-page {
    display: grid;
    place-items: center;
    padding: 32px 20px;
}

.setup-shell {
    width: min(720px, 100%);
}

.setup-card {
    padding: clamp(28px, 6vw, 58px);
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.setup-card > h1 {
    font-size: clamp(34px, 7vw, 48px);
}

.setup-steps {
    display: grid;
    gap: 20px;
    margin: 34px 0;
    padding: 0;
    list-style: none;
    counter-reset: setup;
}

.setup-steps li {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 15px;
    counter-increment: setup;
}

.setup-steps li::before {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.12);
    color: #c4b5fd;
    content: counter(setup);
    font-size: 13px;
    font-weight: 900;
}

.setup-steps strong {
    display: block;
    margin: 1px 0 6px;
}

.setup-steps p {
    margin: 4px 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

code {
    overflow-wrap: anywhere;
    color: #d8ccff;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.secret-code {
    display: inline-block;
    margin-top: 3px;
    padding: 7px 9px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.08);
    letter-spacing: 0.1em;
}

.advanced-details {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 12px;
}

.advanced-details summary {
    margin-bottom: 9px;
    cursor: pointer;
}

.advanced-details code {
    display: block;
    padding: 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.setup-form {
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.totp-input {
    text-align: center;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 22px !important;
    font-weight: 800;
    letter-spacing: 0.3em;
}

.setup-note,
.setup-warning {
    margin: 25px 0 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(249, 115, 22, 0.08);
    color: #fdba74;
    font-size: 13px;
    line-height: 1.6;
}

.success-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 28px;
    place-items: center;
    border-radius: 18px;
    background: rgba(52, 211, 153, 0.12);
    color: var(--success);
    font-size: 28px;
}

.credential-summary {
    display: grid;
    grid-template-columns: minmax(110px, 0.45fr) 1fr;
    gap: 12px 20px;
    margin: 30px 0;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

.credential-summary span {
    color: var(--muted);
    font-size: 13px;
}

.button-link {
    text-decoration: none;
}

/* AJUSTE: Limitando a altura total da aplicação para o viewport e travando a barra de rolagem geral da página */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 30px 22px;
    border-right: 1px solid var(--border);
    background: rgba(13, 14, 22, 0.88);
    backdrop-filter: blur(20px);
    overflow-y: auto; /* AJUSTE: Garante rolagem do sidebar caso existam muitos itens no futuro */
}

.sidebar-nav {
    display: grid;
    gap: 7px;
    margin-top: 54px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 12px;
    border-radius: 12px;
    color: #8d8e9e;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.nav-item.active {
    background: rgba(139, 92, 246, 0.12);
    color: #ded6ff;
}

.nav-item.disabled {
    cursor: not-allowed;
    opacity: 0.52;
}

.nav-icon {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    font-size: 11px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.avatar {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-weight: 900;
}

.sidebar-user div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.sidebar-user strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
}

.sidebar-user div span {
    color: var(--muted);
    font-size: 11px;
}

/* AJUSTE: Transformado em coluna flex para a altura ocupar o espaço visível e não ultrapassar 100vh */
.dashboard-main {
    width: min(1240px, 100%);
    margin: 0 auto;
    padding: clamp(20px, 3vw, 40px);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* AJUSTE: Transformar flex-shrink e margens para não colidir */
.dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.dashboard-header h1 {
    font-size: clamp(38px, 5vw, 56px);
}

.secondary-button {
    min-height: 44px;
    padding: 0 17px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: #dedee7;
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 18px;
}

.metric-card,
.welcome-panel {
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(21, 22, 33, 0.78);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.metric-card {
    min-height: 218px;
    padding: 25px;
}

.metric-card.featured {
    background:
        radial-gradient(circle at 95% 5%, rgba(139, 92, 246, 0.23), transparent 14rem),
        rgba(21, 22, 33, 0.84);
}

.metric-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metric-card > strong {
    display: block;
    margin: 19px 0 8px;
    font-size: 38px;
    letter-spacing: -0.04em;
}

.metric-card p {
    min-height: 42px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.metric-badge {
    display: inline-flex;
    margin-top: 17px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.1);
    color: #6ee7b7;
    font-size: 11px;
    font-weight: 800;
}

.welcome-panel {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 20px;
    margin-top: 20px;
    padding: 30px;
}

.welcome-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 17px;
    background: rgba(139, 92, 246, 0.12);
    color: #c4b5fd;
    font-size: 22px;
}

.welcome-panel h2 {
    font-size: 26px;
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
        width: min(540px, 100%);
    }

    .auth-showcase {
        display: none;
    }

    .auth-card {
        min-height: 660px;
        padding: 40px;
    }

    .mobile-brand {
        display: flex;
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        display: none;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .auth-page {
        padding: 0;
    }

    .auth-shell {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .auth-card {
        min-height: 100vh;
        padding: 32px 24px;
    }

    .mobile-brand {
        margin-bottom: 54px;
    }

    .auth-header h2 {
        font-size: 30px;
    }

    .setup-page {
        padding: 0;
    }

    .setup-card {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .credential-summary {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .credential-summary strong {
        margin-bottom: 10px;
        overflow-wrap: anywhere;
    }

    .welcome-panel {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* Portal Tools login */
.login-page {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 82% 12%, rgba(124, 92, 255, 0.11), transparent 28rem),
        radial-gradient(circle at 8% 90%, rgba(47, 213, 255, 0.07), transparent 30rem),
        #07080d;
}

.login-stage {
    display: grid;
    grid-template-columns: minmax(420px, 1.06fr) minmax(440px, 0.94fr);
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
}

.login-visual {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 100vh;
    min-height: 100svh;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(34px, 4vw, 62px);
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 42%),
        linear-gradient(180deg, #0c0e16 0%, #080910 100%);
}

.login-visual::before {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
    background-size: 42px 42px;
    content: "";
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 84%);
    pointer-events: none;
}

.portal-brand,
.login-mobile-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 13px;
}

.portal-symbol {
    position: relative;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(139, 105, 255, 0.94), rgba(95, 61, 220, 0.9));
    box-shadow: 0 12px 34px rgba(111, 72, 235, 0.27), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.portal-symbol::before {
    position: absolute;
    inset: -45% 42% -45% -18%;
    background: rgba(255, 255, 255, 0.16);
    content: "";
    transform: rotate(24deg);
}

.portal-symbol span {
    position: absolute;
    width: 4px;
    border-radius: 8px;
    background: #fff;
}

.portal-symbol span:nth-child(1) {
    left: 11px;
    height: 10px;
}

.portal-symbol span:nth-child(2) {
    left: 18px;
    height: 20px;
}

.portal-symbol span:nth-child(3) {
    left: 25px;
    height: 14px;
}

.portal-wordmark {
    display: grid;
    gap: 1px;
    line-height: 1;
}

.portal-wordmark strong {
    color: #f7f7fb;
    font-size: 14px;
    letter-spacing: 0.16em;
}

.portal-wordmark small {
    color: #77798a;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.42em;
}

.visual-system {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(38vw, 540px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
}

.visual-glow {
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    background: rgba(115, 78, 238, 0.15);
    filter: blur(65px);
}

.visual-orbit,
.visual-axis,
.visual-node,
.visual-coordinate,
.visual-core {
    position: absolute;
}

.visual-orbit {
    inset: 0;
    border: 1px solid rgba(148, 125, 255, 0.15);
    border-radius: 50%;
}

.visual-orbit::before,
.visual-orbit::after {
    position: absolute;
    width: 7px;
    height: 7px;
    border: 2px solid #090a10;
    border-radius: 50%;
    background: #9c87ff;
    box-shadow: 0 0 22px rgba(156, 135, 255, 0.7);
    content: "";
}

.visual-orbit::before {
    top: 13%;
    right: 18%;
}

.visual-orbit::after {
    bottom: 8%;
    left: 29%;
}

.visual-orbit-inner {
    inset: 19%;
    border-color: rgba(255, 255, 255, 0.11);
}

.visual-orbit-inner::before {
    top: auto;
    right: -4px;
    bottom: 39%;
    background: #43d7ef;
    box-shadow: 0 0 22px rgba(67, 215, 239, 0.6);
}

.visual-orbit-inner::after {
    display: none;
}

.visual-axis {
    top: 50%;
    left: 50%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transform: translate(-50%, -50%);
}

.visual-axis-horizontal {
    width: 116%;
    height: 1px;
}

.visual-axis-vertical {
    width: 1px;
    height: 116%;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.12), transparent);
}

.visual-core {
    top: 50%;
    left: 50%;
    display: grid;
    width: 126px;
    height: 126px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 38px;
    background: linear-gradient(145deg, rgba(139, 105, 255, 0.24), rgba(20, 21, 34, 0.8)), #11131d;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%) rotate(45deg);
}

.visual-core::before {
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 29px;
    content: "";
}

.visual-core span {
    color: #e9e4ff;
    font-size: 46px;
    font-weight: 300;
    letter-spacing: -0.08em;
    transform: rotate(-45deg);
}

.visual-node {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
}

.visual-node-one {
    top: 27%;
    left: 18%;
}

.visual-node-two {
    right: 12%;
    bottom: 28%;
}

.visual-node-three {
    bottom: 13%;
    left: 8%;
    background: #43d7ef;
    box-shadow: 0 0 14px rgba(67, 215, 239, 0.8);
}

.visual-coordinate {
    color: rgba(255, 255, 255, 0.28);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
    letter-spacing: 0.14em;
}

.coordinate-one {
    top: 48%;
    left: -9%;
}

.coordinate-two {
    right: -1%;
    bottom: 44%;
}

.visual-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #5f6170;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.visual-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.visual-status i,
.access-chip i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #45d39a;
    box-shadow: 0 0 12px rgba(69, 211, 154, 0.55);
}

.login-panel {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 100vh;
    min-height: 100svh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 5vw, 78px);
    overflow: hidden;
}

.login-panel::before {
    position: absolute;
    top: 12%;
    right: 0;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(255, 255, 255, 0.025);
    border-radius: 50%;
    content: "";
    transform: translateX(58%);
}

.login-mobile-brand {
    display: none;
    width: min(100%, 430px);
    margin-bottom: 60px;
}

.login-card {
    position: relative;
    z-index: 2;
    width: min(100%, 430px);
    padding: clamp(28px, 4vw, 44px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)), rgba(16, 17, 26, 0.78);
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(22px);
}

.login-header {
    margin-bottom: 34px;
}

.access-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 26px;
    color: #8b8d9c;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.login-header h1 {
    margin: 0;
    color: #f7f7fb;
    font-size: clamp(34px, 4vw, 43px);
    font-weight: 650;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.login-header p {
    margin: 13px 0 0;
    color: #898b9a;
    font-size: 14px;
    line-height: 1.65;
}

.login-form {
    display: grid;
    gap: 19px;
}

.login-field {
    display: grid;
    gap: 9px;
}

.login-field > span:first-child {
    color: #c9cad3;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.04em;
}

.login-input {
    display: flex;
    min-height: 58px;
    align-items: center;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.095);
    border-radius: 14px;
    background: rgba(5, 6, 11, 0.38);
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.login-input:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.login-input:focus-within {
    border-color: rgba(142, 111, 255, 0.78);
    background: rgba(120, 84, 244, 0.045);
    box-shadow: 0 0 0 4px rgba(120, 84, 244, 0.1);
}

.login-input > svg {
    flex: 0 0 19px;
    width: 19px;
    margin-right: 12px;
    fill: none;
    stroke: #666878;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
}

.login-input input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f4f4f8;
    font-size: 15px;
}

.login-input input:-webkit-autofill,
.login-input input:-webkit-autofill:hover,
.login-input input:-webkit-autofill:focus {
    -webkit-text-fill-color: #f4f4f8;
    box-shadow: 0 0 0 1000px #0b0c13 inset;
    caret-color: #f4f4f8;
}

.login-button {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 7px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    background: linear-gradient(135deg, #8c6bff 0%, #7150e9 55%, #6040d6 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 16px 34px rgba(91, 54, 210, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.24);
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.login-button:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 21px 40px rgba(91, 54, 210, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.login-button:active {
    transform: translateY(0);
}

.login-button:focus-visible {
    outline: 3px solid rgba(154, 129, 255, 0.42);
    outline-offset: 3px;
}

.login-button svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.login-footer {
    position: absolute;
    right: 0;
    bottom: 32px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #555765;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.login-footer > i {
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #555765;
}

.login-footer .lock-icon {
    width: 9px;
    height: 8px;
}

.login-footer .lock-icon::before {
    top: -4px;
    left: 2px;
    width: 4px;
    height: 5px;
}

@media (max-width: 960px) {
    .login-stage {
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .login-visual {
        display: none;
    }

    .login-panel {
        min-height: 100vh;
        min-height: 100svh;
        padding-bottom: 100px;
    }

    .login-mobile-brand {
        display: flex;
    }
}

@media (max-width: 560px) {
    .login-panel {
        align-items: stretch;
        justify-content: flex-start;
        padding: 28px 20px 90px;
        overflow: visible;
    }

    .login-mobile-brand {
        margin-bottom: clamp(44px, 10vh, 70px);
    }

    .login-card {
        width: 100%;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .login-panel::before {
        top: -80px;
        right: -100px;
    }

    .login-footer {
        position: static;
        margin-top: auto;
        padding-top: 56px;
    }
}

@media (min-width: 961px) and (max-height: 760px) {
    .login-visual,
    .login-panel {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .login-card {
        padding: 30px 36px;
    }

    .login-header {
        margin-bottom: 24px;
    }

    .access-chip {
        margin-bottom: 18px;
    }

    .login-form {
        gap: 15px;
    }

    .login-footer {
        bottom: 16px;
    }
}

/* Dashboard modular */
.dashboard-page {
    background:
        radial-gradient(circle at 18% 8%, rgba(139, 92, 246, 0.12), transparent 28rem),
        radial-gradient(circle at 88% 82%, rgba(34, 211, 238, 0.06), transparent 30rem),
        #090a11;
}

.dashboard-page svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

/* Regra movida para o topo e unificada para funcionar bem sem rolagem */
.dashboard-layout {
    grid-template-columns: 272px minmax(0, 1fr);
}

.sidebar {
    z-index: 10;
    padding: 28px 20px 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 22%),
        rgba(12, 13, 21, 0.94);
}

.sidebar-nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 7px;
    min-height: 0;
    margin-top: 46px;
}

.nav-item {
    flex: 0 0 auto;
    min-height: 48px;
}

.nav-item-system {
    margin-top: auto;
}

.nav-icon svg {
    width: 15px;
    height: 15px;
}

.sidebar-user {
    margin-top: 18px;
}

/* Ajuste local de estilo e redimensionamento modular */
.dashboard-main {
    width: min(1480px, 100%);
    padding: clamp(20px, 3vw, 30px);
}

.home-header > div > p:last-child {
    max-width: 650px;
}

/* AJUSTE: Transformado em Grid Dinâmico (flex:1) que divide as linhas exatamente no espaço da tela inteira */
.module-hub {
    display: grid;
    grid-auto-rows: minmax(0, 1fr); /* As linhas fracionam o espaço livre */
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    flex: 1; /* Preenche a altura restante entre o topo e o rodapé */
    min-height: 0; /* Obrigatório para evitar que os grids transbordem em flexboxes */
}

.hub-tile {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
 /* AJUSTE: Impede transbordamento global, garantindo barra local se algum módulo ficar pequeno */
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 48%),
        rgba(20, 21, 32, 0.84);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

/* Esconder barra de rolagem dos tiles, mantendo usabilidade */
.hub-tile::-webkit-scrollbar {
    width: 4px;
}
.hub-tile::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.hub-tile:not(.hub-tile-dashboard):hover {
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.24);
    transform: translateY(-2px);
}

.hub-tile::after {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    content: "";
    filter: blur(4px);
    opacity: 0.24;
    pointer-events: none;
}

.hub-tile-heading,
.hub-tile-heading > div {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.hub-tile-heading > div {
    justify-content: flex-start;
}

.hub-icon {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
}

.hub-icon svg {
    width: 22px;
    height: 22px;
}

.hub-icon-purple {
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.14);
}

.hub-icon-cyan {
    color: #67e8f9;
    background: rgba(34, 211, 238, 0.12);
}

.hub-icon-orange {
    color: #fdba74;
    background: rgba(249, 115, 22, 0.12);
}

.hub-icon-green {
    color: #6ee7b7;
    background: rgba(52, 211, 153, 0.12);
}

.hub-icon-pink {
    color: #f9a8d4;
    background: rgba(244, 114, 182, 0.12);
}

.hub-icon-blue {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
}

.hub-icon-slate {
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.12);
}

.module-kicker {
    display: block;
    margin-bottom: 4px;
    color: #9e8bea;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hub-tile h2,
.system-summary h2 {
    margin: 0;
    letter-spacing: -0.035em;
}

.hub-tile h2 {
    font-size: 20px;
}

.module-status {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 25px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #77798a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.module-status-ready {
    border-color: rgba(52, 211, 153, 0.14);
    background: rgba(52, 211, 153, 0.08);
    color: #6ee7b7;
}

.module-status-later {
    color: #a8a9b8;
}

.hub-tile-copy {
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.hub-tile-copy p {
    max-width: 390px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.tile-meta {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    color: #6f7181;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* AJUSTE: Altura e padding do dashboard inicial para ceder ao layout elástico */
.hub-tile-dashboard {
    grid-column: span 8;
    grid-row: span 3;
    min-height: 0; 
    padding: clamp(16px, 2vw, 24px); 
    background:
        radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.22), transparent 24rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 50%),
        rgba(19, 20, 31, 0.92);
}

.hub-tile-dashboard::after {
    top: -80px;
    right: -50px;
    background: rgba(139, 92, 246, 0.35);
}

.hub-tile-client-access {
    grid-column: span 4;
    grid-row: span 2;
    background:
        radial-gradient(circle at 100% 100%, rgba(34, 211, 238, 0.15), transparent 16rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 48%),
        rgba(17, 27, 36, 0.88);
}

.hub-tile-client-access::after {
    right: -90px;
    bottom: 0px;
    background: rgba(34, 211, 238, 0.32);
}

.hub-tile-subscriptions {
    grid-column: span 4;
}

.hub-tile-subscriptions::after {
    top: -110px;
    right: 0px
    background: rgba(249, 115, 22, 0.24);
}

.hub-tile-finance,
.hub-tile-clients,
.hub-tile-reports,
.hub-tile-access {
    grid-column: span 3;
}

.hub-tile-finance::after {
    right: -100px;
    bottom: 0px;
    background: rgba(52, 211, 153, 0.25);
}

.hub-tile-clients::after {
    top: -110px;
    right: 0px;
    background: rgba(244, 114, 182, 0.22);
}

.hub-tile-reports::after {
    right: -100px;
    bottom: -110px;
    background: rgba(59, 130, 246, 0.24);
}

.hub-tile-access::after {
    top: -110px;
    right: -100px;
    background: rgba(148, 163, 184, 0.2);
}

/* AJUSTE: Impurrar as métricas para a área disponível com margin-top: auto; */
.business-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: auto; 
    padding-top: 14px;
}

.business-metrics > div {
    min-width: 0;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

.business-metrics span,
.forecast-list span,
.insight-heading span {
    display: block;
    color: #858797;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.business-metrics strong {
    display: block;
    margin: 9px 0 4px;
    font-size: 27px;
    letter-spacing: -0.04em;
}

.business-metrics small {
    display: block;
    overflow: hidden;
    color: #686a79;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* AJUSTE: Inserido Flexbox na divisão dos insights do painel base */
.dashboard-insights {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(170px, 0.7fr);
    gap: 14px;
    margin-top: 14px;
    flex: 1; 
    min-height: 0;
}

.growth-card,
.forecast-list {
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 17px;
    background: rgba(5, 6, 11, 0.22);
}

.growth-card {
    min-width: 0;
    padding: 17px;
    display: flex;
    flex-direction: column;
}

.insight-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.insight-heading strong {
    display: block;
    margin-top: 4px;
    font-size: 13px;
}

.insight-heading small {
    color: #666878;
    font-size: 10px;
}

.empty-chart {
    position: relative;
    height: auto;
    flex: 1;
    min-height: 80px;
    margin-top: 15px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 100% 25%;
}

.empty-chart > span {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.035);
}

.empty-chart > span:nth-child(1) {
    left: 20%;
}

.empty-chart > span:nth-child(2) {
    left: 40%;
}

.empty-chart > span:nth-child(3) {
    left: 60%;
}

.empty-chart > span:nth-child(4) {
    left: 80%;
}

.empty-chart svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: #8365ed;
    filter: drop-shadow(0 0 8px rgba(131, 101, 237, 0.28));
}

.empty-chart path {
    stroke-width: 2;
}

.forecast-list {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 9px 17px;
}

.forecast-list > div {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.forecast-list > div:last-child {
    border-bottom: 0;
}

.forecast-list strong {
    display: block;
    margin-top: 5px;
    font-size: 17px;
}

.status-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 16px;
}

.status-card,
.system-summary {
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(21, 22, 33, 0.78);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.status-card {
    min-height: 245px;
    padding: 27px;
}

.status-card-featured {
    background:
        radial-gradient(circle at 100% 0%, rgba(52, 211, 153, 0.16), transparent 15rem),
        rgba(21, 22, 33, 0.84);
}

.status-card > strong {
    display: block;
    margin: 18px 0 8px;
    font-size: 34px;
    letter-spacing: -0.04em;
}

.status-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.status-card-icon {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 23px;
    place-items: center;
    border-radius: 13px;
    background: rgba(139, 92, 246, 0.11);
    color: #c4b5fd;
}

.status-card-icon svg {
    width: 21px;
    height: 21px;
}

.system-summary {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 20px;
    margin-top: 18px;
    padding: 30px;
}

.system-summary .welcome-icon svg {
    width: 24px;
    height: 24px;
}

.system-summary h2 {
    font-size: 26px;
}

.system-summary div > p:last-child {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

/* AJUSTE: Breakpoint de responsividade para garantir leitura natural em monitores menores ou uso mobile */
@media (max-width: 1180px) {
    /* Libera as travas de limite de altura para deixar o scroll ocorrer de forma natural */
    .dashboard-layout {
        height: auto;
        overflow: visible;
    }
    .dashboard-main {
        height: auto;
        overflow: visible;
        display: block; /* Remove subordinação à coluna flex total */
    }
    .module-hub {
        display: grid;
        grid-auto-rows: minmax(130px, auto); /* Restaura as alturas mínimas do grid em telas curtas */
        flex: none;
    }

    .hub-tile-dashboard {
        grid-column: span 12;
    }
    .hub-tile-client-access,
    .hub-tile-subscriptions {
        grid-column: span 6;
    }
    .hub-tile-finance,
    .hub-tile-clients,
    .hub-tile-reports,
    .hub-tile-access {
        grid-column: span 6;
    }
}

@media (max-width: 900px) {
    .dashboard-layout {
        display: block;
    }

    .sidebar {
        position: sticky;
        top: 0;
        display: flex;
        width: 100%;
        height: auto;
        padding: 14px 18px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .sidebar .brand {
        flex: 0 0 auto;
    }

    .sidebar .brand > span:last-child,
    .sidebar-user {
        display: none;
    }

    .sidebar-nav {
        display: flex;
        min-width: 0;
        margin: 0 0 0 18px;
        flex-direction: row;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .sidebar-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-item {
        min-height: 42px;
        padding: 0 11px;
        white-space: nowrap;
    }

    .nav-item-system {
        margin-top: 0;
    }

    .dashboard-main {
        padding: 32px 22px 46px;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-header form,
    .dashboard-header .secondary-button {
        width: 100%;
    }

    .module-hub {
        display: flex;
        flex-direction: column;
    }

    .hub-tile,
    .hub-tile-dashboard,
    .hub-tile-client-access {
        min-height: 190px;
    }

    .hub-tile-dashboard {
        min-height: 0;
    }

    .business-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-insights {
        grid-template-columns: 1fr;
    }

    .system-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .sidebar {
        padding-right: 12px;
        padding-left: 12px;
    }

    .sidebar-nav {
        margin-left: 10px;
    }

    .nav-item {
        gap: 8px;
        font-size: 12px;
    }

    .nav-icon {
        width: 24px;
        height: 24px;
    }

    .dashboard-main {
        padding-right: 16px;
        padding-left: 16px;
    }

    .hub-tile,
    .hub-tile-dashboard {
        padding: 20px;
        border-radius: 19px;
    }

    .hub-tile-heading {
        align-items: flex-start;
    }

    .hub-tile-dashboard .hub-tile-heading {
        flex-direction: column;
    }

    .business-metrics {
        grid-template-columns: 1fr;
    }

    .business-metrics small {
        white-space: normal;
    }
}