:root,
html[data-theme="azul"] {
    --bella-rose: #3D5A80;
    --bella-rose-dark: #2E4A6E;
    --bella-blush: #E7EEF6;
    --bella-gold: #8AA2C0;
    --bella-cream: #F5F8FC;
    --bella-dark: #1B2838;
    --bella-ink: #1A2433;
    --bella-muted: #5C6B7A;
    --bella-bg: #F5F8FC;
    --bella-card: #ffffff;
    --bella-line: #D5DEE8;
    --bella-nav-bg: rgba(245, 248, 252, 0.94);
    --bella-radius: 12px;
    --bella-radius-lg: 16px;
    --bella-shadow: 0 8px 24px rgba(27, 40, 56, 0.06);
    --bella-shadow-sm: 0 2px 8px rgba(27, 40, 56, 0.04);
    --bella-space: 1.25rem;
    --sidebar-width: 248px;
}

.theme-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.5rem;
    min-height: 44px;
    border: 1px solid var(--bella-line);
    border-radius: 999px;
    background: var(--bella-card);
}
.theme-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    padding: 0;
    cursor: pointer;
}
.theme-dot.is-active {
    box-shadow: 0 0 0 2px var(--bella-card), 0 0 0 4px var(--bella-rose);
}
.theme-azul { background: #3D5A80; }
.theme-rose { background: #9A4F63; }
.theme-escuro { background: #121820; border-color: #7EA0C9; }
.theme-switch-float {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 30;
}
html[data-theme="escuro"] .btn-bella,
html[data-theme="escuro"] .app-body .btn-bella {
    color: #121820;
}

html[data-theme="rose"] {
    --bella-rose: #9A4F63;
    --bella-rose-dark: #7d3d50;
    --bella-blush: #F4E8EB;
    --bella-gold: #C4A484;
    --bella-cream: #FBF7F5;
    --bella-dark: #2B2326;
    --bella-ink: #2B2326;
    --bella-muted: #6f6468;
    --bella-bg: #FBF7F5;
    --bella-card: #ffffff;
    --bella-line: #eadfe3;
    --bella-nav-bg: rgba(251, 247, 245, 0.94);
    --bella-shadow: 0 8px 24px rgba(43, 35, 38, 0.06);
    --bella-shadow-sm: 0 2px 8px rgba(43, 35, 38, 0.04);
}

html[data-theme="escuro"] {
    --bella-rose: #7EA0C9;
    --bella-rose-dark: #9BB4D4;
    --bella-blush: #243044;
    --bella-gold: #8AA2C0;
    --bella-cream: #1A2430;
    --bella-dark: #10161F;
    --bella-ink: #E8EEF6;
    --bella-muted: #9AABC0;
    --bella-bg: #121820;
    --bella-card: #1A2430;
    --bella-line: #2C3A4C;
    --bella-nav-bg: rgba(18, 24, 32, 0.94);
    --bella-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    --bella-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
}

* { box-sizing: border-box; }

html { overflow-x: hidden; }

body.app-body {
    background: var(--bella-bg);
    color: var(--bella-ink);
    font-family: "Manrope", "Segoe UI", sans-serif;
    overflow-x: hidden;
}

body.sidebar-open { overflow: hidden; }

body.auth-body {
    min-height: 100vh;
    margin: 0;
    background: var(--bella-bg);
    color: var(--bella-ink);
    font-family: "Manrope", "Segoe UI", sans-serif;
    position: relative;
    overflow-x: hidden;
}

.auth-glow {
    pointer-events: none;
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 45% at 50% -10%, rgba(138, 162, 192, 0.22), transparent 62%),
        radial-gradient(ellipse 40% 30% at 92% 88%, rgba(61, 90, 128, 0.08), transparent 70%);
}

.auth-glow::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 18%;
    width: min(520px, 80vw);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(138, 162, 192, 0.35), transparent);
}

.auth-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4.5rem 1rem 2rem;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    margin: 0;
    background: #fff;
    border: 1px solid #E4EAF1;
    border-radius: 22px;
    padding: 1.65rem 1.7rem 1.45rem;
    box-shadow: 0 10px 30px rgba(27, 40, 56, 0.06);
}

html[data-theme="escuro"] .auth-card {
    background: var(--bella-card);
    border-color: var(--bella-line);
}

.auth-wide { max-width: 760px; }

.auth-brand {
    text-align: center;
    margin-bottom: 1.15rem;
}
.auth-logo {
    display: block;
    width: auto;
    max-width: 210px;
    height: auto;
    margin: 0 auto 0.7rem;
}
.auth-tagline {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 500;
    color: #5C6B7A;
    letter-spacing: 0.01em;
}
html[data-theme="escuro"] .auth-tagline { color: var(--bella-muted); }

.auth-title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.55rem;
    font-weight: 600;
    color: #1B2838;
    margin: 0 0 0.15rem;
    letter-spacing: 0.01em;
}
html[data-theme="escuro"] .auth-title { color: var(--bella-ink); }

.auth-lead {
    margin: 0 0 1.1rem;
    font-size: 0.86rem;
    color: #5C6B7A;
}
html[data-theme="escuro"] .auth-lead { color: var(--bella-muted); }

.auth-alert {
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    margin-bottom: 1rem;
    font-size: 0.86rem;
    line-height: 1.4;
}
.auth-alert.is-error {
    background: #F7F1F2;
    color: #6B3A45;
    border: 1px solid #E8D5D8;
}
.auth-alert.is-success {
    background: #EEF4F0;
    color: #2F5340;
    border: 1px solid #D4E5DA;
}

.auth-field { margin-bottom: 0.85rem; }
.auth-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1B2838;
    margin-bottom: 0.35rem;
}
html[data-theme="escuro"] .auth-label { color: var(--bella-ink); }

.auth-input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #D8E0EA;
    border-radius: 12px;
    background: #F8FAFC;
    color: #1B2838;
    padding: 0.55rem 0.9rem;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.auth-password .auth-input { padding-right: 2.6rem; }
.auth-input::placeholder { color: #8A96A3; }
.auth-input:hover { border-color: #C5D0DC; }
.auth-input:focus {
    outline: none;
    border-color: #3D5A80;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(61, 90, 128, 0.12);
}
html[data-theme="escuro"] .auth-input {
    background: var(--bella-blush);
    border-color: var(--bella-line);
    color: var(--bella-ink);
}

.auth-password { position: relative; }
.auth-eye {
    position: absolute;
    top: 50%;
    right: 0.35rem;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #5C6B7A;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
}
.auth-eye:hover { color: #3D5A80; background: rgba(61, 90, 128, 0.06); }
.auth-eye:focus-visible {
    outline: 2px solid #3D5A80;
    outline-offset: 1px;
}

.auth-forgot {
    display: inline-block;
    margin-top: 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #3D5A80;
    text-decoration: none;
}
.auth-forgot:hover { color: #2E4A6E; text-decoration: underline; }

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 48px;
    margin-top: 0.5rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #4A6A93 0%, #3D5A80 55%, #334E70 100%);
    color: #fff;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: none;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 8px 18px rgba(61, 90, 128, 0.28);
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease, opacity 0.18s ease;
}
.auth-submit i {
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.18s ease;
}
.auth-submit:hover {
    background: linear-gradient(180deg, #3D5A80 0%, #2E4A6E 100%);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 10px 22px rgba(27, 40, 56, 0.22);
}
.auth-submit:hover i { transform: translateX(3px); }
.auth-submit:active { transform: translateY(1px) scale(0.99); background: #243A56; }
.auth-submit:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
    box-shadow: none;
}
.auth-submit:focus-visible {
    outline: 2px solid #3D5A80;
    outline-offset: 3px;
}

.auth-signup {
    margin: 1.15rem 0 0.45rem;
    text-align: center;
    font-size: 0.86rem;
    color: #5C6B7A;
}
.auth-signup a {
    font-weight: 600;
    color: #3D5A80;
    text-decoration: none;
}
.auth-signup a:hover { text-decoration: underline; }

.auth-home {
    display: block;
    text-align: center;
    font-size: 0.78rem;
    color: #8A96A3;
    text-decoration: none;
}
.auth-home:hover { color: #3D5A80; }

.auth-body .auth-card a:focus-visible {
    outline: 2px solid #3D5A80;
    outline-offset: 2px;
    border-radius: 4px;
}

@media (max-width: 575px) {
    .auth-shell { padding: 4.25rem 0.75rem 1.25rem; }
    .auth-card {
        max-width: none;
        padding: 1.35rem 1.15rem 1.2rem;
        border-radius: 18px;
    }
    .auth-logo { max-width: 180px; }
    .auth-title { font-size: 1.4rem; }
}

@media (min-width: 1200px) {
    .auth-card { max-width: 420px; }
}

.brand-logo {
    display: block;
    max-width: 220px;
    height: auto;
}

.sidebar-logo {
    display: block;
    width: 100%;
    max-width: 196px;
    height: auto;
    margin: 0 auto 0.55rem;
    padding: 0.5rem 0.6rem;
    background: var(--bella-cream);
    border-radius: var(--bella-radius);
    object-fit: contain;
}

.sidebar-company {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(247, 243, 241, 0.55);
    text-align: center;
}

.brand-mark {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--bella-rose);
}

.auth-card {
    max-width: 480px;
    margin: 4rem auto;
    background: var(--bella-card);
    border: 1px solid var(--bella-line);
    border-radius: var(--bella-radius-lg);
    padding: 2.2rem;
    box-shadow: var(--bella-shadow);
    position: relative;
    z-index: 1;
}

.auth-wide { max-width: 760px; }

.btn-bella,
.app-body .btn-bella {
    background: var(--bella-rose);
    border: 1px solid var(--bella-rose);
    color: #fff;
    border-radius: 999px;
    padding: 0.7rem 1.35rem;
    min-height: 44px;
    font-weight: 600;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.btn-bella:hover,
.app-body .btn-bella:hover { background: var(--bella-rose-dark); border-color: var(--bella-rose-dark); color: #fff; }
.btn-bella:active { transform: none; background: #6e3446; }
.btn-bella:disabled,
.btn-bella.is-loading {
    opacity: 0.55;
    pointer-events: none;
}
.btn-bella:focus-visible,
.btn-outline-bella:focus-visible,
.btn-text:focus-visible,
.app-body .btn-icon:focus-visible {
    outline: 2px solid var(--bella-rose);
    outline-offset: 3px;
}

.btn-outline-bella,
.app-body .btn-outline-bella {
    border: 1px solid var(--bella-rose);
    color: var(--bella-rose);
    background: transparent;
    border-radius: 999px;
    padding: 0.7rem 1.25rem;
    min-height: 44px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-outline-bella:hover { background: var(--bella-blush); color: var(--bella-rose-dark); border-color: var(--bella-rose-dark); }

.btn-text {
    background: transparent;
    border: 0;
    color: var(--bella-rose);
    font-weight: 600;
    padding: 0.45rem 0.2rem;
    min-height: 44px;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}
.btn-text:hover { color: var(--bella-rose-dark); background: var(--bella-blush); }

.app-body .btn-outline-secondary {
    border: 1px solid var(--bella-line);
    color: var(--bella-ink);
    background: var(--bella-card);
    border-radius: 999px;
    min-height: 44px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.app-body .btn-outline-secondary:hover,
.app-body .btn-outline-secondary.active,
.app-body .btn-group .btn-outline-secondary.active {
    background: var(--bella-blush);
    color: var(--bella-rose-dark);
    border-color: #e2cfd5;
}
.app-body .btn-sm {
    min-height: 44px;
    padding: 0.45rem 0.95rem;
}

.app-body .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--bella-ink);
    margin-bottom: 0.35rem;
}

.form-control, .form-select,
.app-body .form-control,
.app-body .form-select {
    border-radius: var(--bella-radius);
    border-color: var(--bella-line);
    padding: 0.72rem 0.95rem;
    min-height: 44px;
    background: var(--bella-card);
    color: var(--bella-ink);
}

.form-control:focus, .form-select:focus {
    border-color: var(--bella-rose);
    box-shadow: 0 0 0 0.18rem rgba(154, 79, 99, 0.12);
}

.app-body .form-control::placeholder {
    color: #b3a8ab;
}

.app-shell { min-height: 100vh; position: relative; z-index: 1; }

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(43, 35, 38, 0.35);
    z-index: 1025;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--bella-dark);
    color: #f7f3f1;
    position: fixed;
    inset: 0 auto 0 0;
    padding: 1.05rem 0.7rem 0.7rem;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
}

.sidebar-brand {
    flex-shrink: 0;
    padding: 0.15rem 0.45rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 0.55rem;
}

.sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.1rem;
    overscroll-behavior: contain;
}

.nav-group-label {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(247, 243, 241, 0.38);
    padding: 0.85rem 0.85rem 0.35rem;
    font-weight: 600;
}

.sidebar-foot {
    flex-shrink: 0;
    padding-top: 0.55rem;
    margin-top: 0.35rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-nav::-webkit-scrollbar { width: 5px; }
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.16);
    border-radius: 99px;
}

.sidebar a {
    color: rgba(247, 243, 241, 0.72);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.62rem 0.85rem;
    border-radius: 10px;
    margin-bottom: 0.1rem;
    font-size: 0.92rem;
    font-weight: 500;
    min-height: 42px;
    border-left: 3px solid transparent;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.sidebar a i {
    font-size: 1.05rem;
    width: 1.15rem;
    text-align: center;
    opacity: 0.85;
}

.sidebar a:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.sidebar a.active {
    background: rgba(244, 232, 235, 0.14);
    color: #fff;
    border-left-color: var(--bella-gold);
    font-weight: 600;
}

.sidebar a.active i { color: var(--bella-gold); opacity: 1; }

.sidebar a.soon {
    opacity: 0.45;
    pointer-events: none;
}

.soon-badge {
    margin-left: auto;
    font-size: 0.65rem;
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
    padding: 0.1rem 0.4rem;
}

.main-wrap {
    margin-left: var(--sidebar-width);
    padding: 1.35rem 1.5rem 2rem;
}

.topbar {
    background: var(--bella-card);
    border: 1px solid var(--bella-line);
    border-radius: var(--bella-radius-lg);
    padding: 0.85rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
    box-shadow: var(--bella-shadow-sm);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.page-title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1.15;
    margin: 0;
    color: var(--bella-ink);
}

.page-greeting {
    margin: 0.15rem 0 0;
    font-size: 0.86rem;
    color: var(--bella-muted);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-shrink: 0;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bella-blush);
    color: var(--bella-rose);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.user-name {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
}

.user-role {
    font-size: 0.72rem;
    color: var(--bella-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.app-body .btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid var(--bella-line);
    background: var(--bella-card);
    color: var(--bella-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.app-body .btn-icon:hover {
    background: var(--bella-blush);
    border-color: #e2cfd5;
    color: var(--bella-rose-dark);
}

.stat-card, .panel-card {
    background: var(--bella-card);
    border: 1px solid var(--bella-line);
    border-radius: var(--bella-radius-lg);
    padding: 1.2rem;
    box-shadow: var(--bella-shadow-sm);
}

.stat-card .label {
    color: var(--bella-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.stat-card .value {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.85rem;
    font-weight: 600;
    margin-top: 0.35rem;
    line-height: 1.1;
}

.panel-title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.85rem;
}

.app-body .table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: var(--bella-cream);
    margin-bottom: 0;
}
.app-body .table > :not(caption) > * > * {
    padding: 0.85rem 0.75rem;
    border-bottom-color: var(--bella-line);
    vertical-align: middle;
}
.app-body .table thead th {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bella-muted);
    font-weight: 600;
    background: var(--bella-cream);
    border-bottom: 1px solid var(--bella-line);
}
.app-body .table tbody tr:hover { background: var(--bella-cream); }
.app-body .table .actions {
    text-align: right;
    white-space: nowrap;
}

.empty-state {
    text-align: center;
    padding: 2.2rem 1.2rem;
    color: var(--bella-muted);
}
.empty-state p { margin-bottom: 1rem; }

.bella-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bella-blush);
    border: 1px solid #ead3da;
    border-radius: var(--bella-radius);
    padding: 0.9rem 1rem;
    color: var(--bella-ink);
}
.bella-alert i { color: var(--bella-rose); }
.bella-alert a:not(.btn) { color: var(--bella-rose); font-weight: 600; }

.modal-content {
    border-radius: var(--bella-radius-lg);
    border-color: var(--bella-line);
    box-shadow: var(--bella-shadow);
}
.app-body .modal-header,
.app-body .modal-footer {
    border-color: var(--bella-line);
}

.bella-toasts {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    max-width: min(360px, calc(100vw - 2rem));
}
.bella-toast {
    background: var(--bella-card);
    border: 1px solid var(--bella-line);
    border-left: 3px solid var(--bella-gold);
    border-radius: var(--bella-radius);
    padding: 0.85rem 1rem;
    box-shadow: var(--bella-shadow);
    font-size: 0.9rem;
    animation: toast-in 0.25s ease;
}
.bella-toast.is-success { border-left-color: #5d8a6a; }
.bella-toast.is-error { border-left-color: var(--bella-rose); }
@keyframes toast-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.kpi-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 1fr;
}
.kpi-card {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    min-height: 100%;
}
.kpi-card .value { font-size: 1.55rem; }
.kpi-card.is-featured {
    box-shadow: var(--bella-shadow);
}
.kpi-card.is-featured .value { font-size: 2rem; color: var(--bella-rose); }
.kpi-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bella-blush);
    color: var(--bella-rose);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.kpi-hint {
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: var(--bella-muted);
}
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}
.panel-head .panel-title { margin-bottom: 0; }
.panel-soft { background: var(--bella-card); }
.dash-list { margin-top: 0.35rem; }
.dash-appt,
.dash-sale,
.dash-stock {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bella-line);
    text-decoration: none;
    color: inherit;
}
.dash-appt:last-child,
.dash-sale:last-child,
.dash-stock:last-child { border-bottom: 0; }
.dash-appt:hover,
.dash-sale:hover { background: transparent; }
.dash-time {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    min-width: 3.1rem;
    color: var(--bella-rose);
}
.dash-appt-body { flex: 1; min-width: 0; }
.dash-name { font-weight: 600; }
.dash-meta {
    font-size: 0.82rem;
    color: var(--bella-muted);
    margin-top: 0.1rem;
}
.dash-amount { white-space: nowrap; }
.dash-sale { justify-content: space-between; }
.dash-stock { justify-content: space-between; }
.dash-stock-qty {
    text-align: right;
    font-weight: 600;
}
.dash-stock-qty small {
    display: block;
    font-weight: 500;
    color: var(--bella-muted);
    font-size: 0.72rem;
}
.finance-balance {
    background: var(--bella-cream);
    border-radius: var(--bella-radius);
    padding: 1rem 1.1rem 0.95rem;
    margin: 0.7rem 0 1rem;
}
.finance-balance .label {
    color: var(--bella-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.finance-balance .value {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2.1rem;
    font-weight: 600;
    line-height: 1.1;
    margin-top: 0.2rem;
    color: var(--bella-ink);
}
.finance-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.finance-split .label {
    color: var(--bella-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.finance-figure {
    font-weight: 600;
    margin-top: 0.25rem;
    font-size: 1.05rem;
}
.bella-alert .btn { flex-shrink: 0; white-space: nowrap; }

@media (min-width: 576px) {
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
    .kpi-grid { grid-template-columns: 1.35fr 1fr 1fr 1fr; }
}
@media (max-width: 575px) {
    .kpi-card.is-featured { grid-column: auto; }
    .bella-alert { flex-wrap: wrap; }
    .bella-alert .btn { width: 100%; }
    .dash-appt { flex-wrap: wrap; }
    .dash-appt .status-pill { margin-left: auto; }
}

.check-ok { color: #2f7d4a; }
.check-fail { color: #b42318; }

.status-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.status-AGENDADO { background: var(--bella-blush); color: var(--bella-rose-dark); }
.status-CONFIRMADO { background: #efe6dc; color: #6e5843; }
.status-EM_ATENDIMENTO { background: #f6eee4; color: #8a6844; }
.status-CONCLUIDO { background: #ead7dc; color: var(--bella-rose-dark); }
.status-CANCELADO { background: #f3e9ea; color: #8a6a70; }
.status-NAO_COMPARECEU { background: #f1eeed; color: #6f6468; }
.status-active { background: #efe6dc; color: #5d4a38; }
.status-CONCLUIDA { background: #ead7dc; color: var(--bella-rose-dark); }
.status-ABERTA { background: var(--bella-blush); color: var(--bella-rose-dark); }
.status-CANCELADA { background: #f3e9ea; color: #8a6a70; }
.status-ABERTO { background: #efe6dc; color: #6e5843; }
.status-FECHADO { background: #f1eeed; color: #6f6468; }

.mobile-row, .person-card, .agenda-row, .agenda-chip {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--bella-line);
    border-radius: var(--bella-radius);
    padding: 0.85rem 1rem;
    margin-bottom: 0.6rem;
    background: var(--bella-card);
}
.person-card { height: 100%; }
.profile-photo, .avatar {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
}
.placeholder-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bella-blush);
    color: var(--bella-rose);
    font-size: 1.4rem;
}
.agenda-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid var(--bella-line);
    margin-bottom: 0;
    padding: 0.9rem 0.15rem;
    background: transparent;
    min-height: 64px;
}
.agenda-row:last-child { border-bottom: 0; }
.agenda-row .time {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    min-width: 3.2rem;
    color: var(--bella-rose);
}
.agenda-row-body { flex: 1; min-width: 0; }
.agenda-chip {
    font-size: 0.8rem;
    margin-bottom: 0.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.65rem 0.7rem;
    background: var(--bella-cream);
    border-color: transparent;
}
.agenda-chip .time { font-weight: 700; color: var(--bella-rose); }
.agenda-chip .status-pill { align-self: flex-start; }
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}
.calendar-head {
    font-size: 0.75rem;
    text-align: center;
    color: var(--bella-muted);
    font-weight: 600;
}
.calendar-cell {
    min-height: 92px;
    background: var(--bella-card);
    border: 1px solid var(--bella-line);
    border-radius: 12px;
    padding: 0.4rem;
    color: inherit;
    overflow: hidden;
}
.calendar-cell.muted { opacity: 0.45; }
.calendar-cell.is-today { border-color: var(--bella-line); background: var(--bella-cream); }
.calendar-cell .day-num {
    font-weight: 700;
    font-size: 0.85rem;
    color: inherit;
    text-decoration: none;
    display: inline-block;
    min-width: 1.6rem;
    min-height: 1.6rem;
}
.cal-item {
    display: block;
    font-size: 0.68rem;
    border-radius: 8px;
    padding: 0.2rem 0.3rem;
    margin-top: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    color: inherit;
}
.agenda-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.view-switch {
    display: inline-flex;
    flex-wrap: wrap;
    background: var(--bella-card);
    border: 1px solid var(--bella-line);
    border-radius: 999px;
    padding: 0.2rem;
    gap: 0.15rem;
}
.view-switch a {
    min-height: 44px;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--bella-muted);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}
.view-switch a.is-active {
    background: var(--bella-blush);
    color: var(--bella-rose-dark);
}
.agenda-date {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
}
.agenda-filter { min-width: min(240px, 100%); }
.week-col-head {
    display: flex;
    justify-content: space-between;
    gap: 0.4rem;
    text-decoration: none;
    color: inherit;
    margin-bottom: 0.65rem;
    font-size: 0.82rem;
}
.week-col.is-today { border-color: #e2cfd5; }
.week-add {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--bella-rose);
    text-decoration: none;
    min-height: 36px;
}
.month-agenda-list { display: none; }
.agenda-day-link {
    display: block;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: inherit;
    text-decoration: none;
}
.bella-drawer { width: min(420px, 100%); }
.bella-drawer .offcanvas-title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.4rem;
}
.appt-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bella-muted);
    font-weight: 600;
}
.appt-heading {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.7rem;
    margin: 0.15rem 0 0;
}
.appt-dl { margin: 0 0 1.2rem; }
.appt-dl > div {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 0.5rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--bella-line);
}
.appt-dl dt {
    color: var(--bella-muted);
    font-weight: 600;
    font-size: 0.8rem;
}
.appt-dl dd { margin: 0; }
.appt-actions-title {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bella-muted);
    margin-bottom: 0.7rem;
}

.app-body .form-check {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0;
}
.app-body .form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0;
    margin-left: 0;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-110%);
        transition: transform 0.22s ease;
        width: min(280px, 86vw);
        padding-top: max(1.05rem, env(safe-area-inset-top));
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar-logo { max-width: 150px; padding: 0.4rem 0.5rem; }
    .main-wrap {
        margin-left: 0;
        padding: 1rem 1rem max(1.25rem, env(safe-area-inset-bottom));
    }
    .page-title { font-size: 1.4rem; }
    .user-meta { display: none; }
    .calendar-desktop { display: none; }
    .month-agenda-list { display: block; }
    .view-switch { width: 100%; }
    .agenda-filter,
    .agenda-filter .form-select { width: 100%; }
    .pos-ticket-card { position: static; }
    .appt-dl > div { grid-template-columns: 1fr; gap: 0.2rem; }
    .pos-add .btn { width: 100%; }
    .client-toolbar-actions { width: 100%; }
    .client-toolbar-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 768px) {
    .app-body img { max-width: 100%; height: auto; }
    .panel-head { flex-wrap: wrap; }
    .cash-banner .finance-balance { width: 100%; }
}

@media (max-width: 430px) {
    .topbar { padding: 0.7rem 0.85rem; }
    .main-wrap { padding: 0.75rem 0.75rem max(1rem, env(safe-area-inset-bottom)); }
    .bella-toasts { right: 0.75rem; left: 0.75rem; max-width: none; }
    .finance-split { grid-template-columns: 1fr; }
    .finance-balance .value { font-size: 1.7rem; }
    .agenda-toolbar .btn-bella { width: 100%; }
    .kpi-card.is-featured .value { font-size: 1.7rem; }
}

body.catalog-body {
    background: var(--bella-bg);
    color: var(--bella-ink);
    font-family: "Manrope", "Segoe UI", sans-serif;
    min-height: 100vh;
}
.catalog-hero {
    height: 180px;
    background: linear-gradient(120deg, var(--bella-rose), var(--bella-gold));
    background-size: cover;
    background-position: center;
}
.catalog-wrap { max-width: 1080px; margin-top: -48px; }
.catalog-logo {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 24px;
    background: var(--bella-blush);
    color: var(--bella-rose);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}
.catalog-card {
    display: block;
    background: var(--bella-card);
    border: 1px solid var(--bella-line);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.catalog-card img, .catalog-card-photo {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: linear-gradient(180deg, var(--bella-blush), var(--bella-line));
}

.sidebar-admin { background: var(--bella-dark); }
.sidebar-admin a.active, .sidebar-admin a:hover { background: rgba(138, 162, 192, 0.18); }


.client-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.client-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1;
    min-width: min(280px, 100%);
}
.client-search .form-control,
.product-filters .form-select {
    max-width: none;
    min-width: 0;
    flex: 1 1 160px;
}
.client-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.app-body a.table-name {
    font-weight: 600;
    color: var(--bella-ink);
    text-decoration: none;
}
.app-body a.table-name:hover { color: var(--bella-rose); }
.crm-layout {
    display: grid;
    gap: 1rem;
}
.crm-name {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.85rem;
    margin: 0.65rem 0 0.45rem;
}
.crm-identity { text-align: center; }
.crm-identity .profile-photo {
    width: 88px;
    height: 88px;
    margin-inline: auto;
}
.crm-contacts {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    text-align: left;
}
.crm-contacts li {
    display: flex;
    gap: 0.55rem;
    padding: 0.35rem 0;
    color: var(--bella-ink);
}
.crm-contacts i { color: var(--bella-rose); }
.crm-stats {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 1fr;
    margin-bottom: 1rem;
}
.crm-date {
    font-size: 1.45rem !important;
}
.history-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--bella-line);
    text-decoration: none;
    color: inherit;
}
.history-row:last-child { border-bottom: 0; }
.history-side {
    text-align: right;
    display: grid;
    gap: 0.25rem;
    justify-items: end;
}
.reactivation-row { align-items: flex-start; }
@media (min-width: 992px) {
    .crm-layout { grid-template-columns: 280px minmax(0, 1fr); align-items: start; }
    .crm-stats { grid-template-columns: 1.3fr 1fr 1fr; }
}
@media (max-width: 575px) {
    .reactivation-row { flex-direction: column; }
    .history-row { flex-wrap: wrap; }
}

.pos-grid {
    display: grid;
    gap: 1rem;
}
.pos-add {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: stretch;
}
.pos-add .form-select { flex: 1 1 180px; }
.pos-hint {
    color: var(--bella-rose);
    font-size: 0.85rem;
    margin: 0.55rem 0 0;
}
.pos-line {
    display: grid;
    grid-template-columns: 1fr 88px auto auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bella-line);
}
.pos-line-info { min-width: 0; }
.pos-line-price { font-weight: 600; white-space: nowrap; }
.pos-qty { max-width: 88px; }
.pos-ticket-card { position: sticky; top: 1rem; }
.receipt-card { max-width: 720px; }
.receipt-sum { margin-top: 0.5rem; }

.print-body {
    margin: 0;
    background: var(--bella-bg);
    color: var(--bella-ink);
    font-family: Manrope, sans-serif;
}
.ticket-toolbar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
}
.ticket-toolbar a { text-decoration: none; }
.ticket {
    width: 80mm;
    max-width: 100%;
    margin: 0 auto 2rem;
    padding: 1rem 0.85rem;
    background: #fff;
    color: #111;
    box-shadow: var(--bella-shadow);
    font-size: 12px;
    line-height: 1.4;
}
.ticket-head,
.ticket-foot {
    text-align: center;
}
.ticket-logo {
    display: block;
    max-height: 48px;
    max-width: 140px;
    margin: 0 auto 0.5rem;
    object-fit: contain;
}
.ticket-company {
    display: block;
    font-size: 15px;
    margin-bottom: 0.25rem;
}
.ticket-stamp {
    margin-top: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 11px;
}
.ticket-legal {
    margin: 0.35rem 0 0;
    font-size: 10px;
    color: #444;
}
.ticket-meta,
.ticket-totals,
.ticket-pay {
    border-top: 1px dashed #999;
    padding: 0.55rem 0;
    margin-top: 0.35rem;
}
.ticket-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.4rem;
}
.ticket-table th,
.ticket-table td {
    padding: 0.35rem 0;
    vertical-align: top;
    border-bottom: 1px dotted #ccc;
}
.ticket-table small {
    display: block;
    color: #555;
    font-size: 10px;
}
.ticket-table .num,
.ticket-totals span:last-child,
.ticket-pay div span:last-child {
    text-align: right;
    white-space: nowrap;
}
.ticket-totals div,
.ticket-pay div {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}
.ticket-grand {
    font-weight: 700;
    font-size: 14px;
    margin-top: 0.35rem;
}
.ticket-notes {
    border-top: 1px dashed #999;
    padding-top: 0.5rem;
    font-size: 11px;
}
.ticket-foot {
    border-top: 1px dashed #999;
    margin-top: 0.5rem;
    padding-top: 0.6rem;
    font-size: 10px;
}
.ticket-foot p { margin: 0.15rem 0; }

@media print {
    .no-print { display: none !important; }
    .print-body { background: #fff; }
    .ticket {
        width: 80mm;
        margin: 0;
        box-shadow: none;
        padding: 0;
    }
    @page {
        size: 80mm auto;
        margin: 4mm;
    }
}
@media (min-width: 992px) {
    .pos-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
}
@media (max-width: 700px) {
    .pos-line { grid-template-columns: 1fr auto; }
    .pos-qty { grid-column: 1; max-width: 120px; }
    .pos-line-price { grid-column: 2; }
}
.cash-closed {
    max-width: 480px;
    margin-inline: auto;
    padding: 1.6rem 1.4rem 1.5rem;
}
.cash-state {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2rem;
    margin: 0.2rem 0 0.5rem;
}
.cash-banner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: var(--bella-card);
    border: 1px solid var(--bella-line);
    border-radius: var(--bella-radius-lg);
    padding: 1.1rem 1.2rem;
    box-shadow: var(--bella-shadow-sm);
}
.cash-banner .finance-balance {
    background: var(--bella-cream);
    min-width: min(240px, 100%);
    margin: 0;
}
.product-cell {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.product-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bella-blush);
}
.product-thumb.is-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bella-rose);
}
.product-hero {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: var(--bella-radius);
    margin-bottom: 0.75rem;
}
.product-hero.is-placeholder {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bella-blush);
    color: var(--bella-rose);
    font-size: 2rem;
}
.product-price {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.85rem;
    font-weight: 600;
    margin: 0;
}
.var-line {
    font-size: 0.8rem;
    color: var(--bella-muted);
    margin-top: 0.12rem;
}
.person-card .status-pill { margin-top: 0.35rem; }

html.site-html {
    --bella-rose: #3D5A80;
    --bella-rose-dark: #2E4A6E;
    --bella-blush: #E7EEF6;
    --bella-gold: #8AA2C0;
    --bella-cream: #F5F8FC;
    --bella-dark: #1B2838;
    --bella-ink: #1B2838;
    --bella-muted: #5C6B7A;
    --bella-bg: #F5F8FC;
    --bella-card: #ffffff;
    --bella-line: #D5DEE8;
    --bella-nav-bg: rgba(245, 248, 252, 0.92);
    scroll-behavior: smooth;
}

.site-skip {
    position: absolute;
    left: -999px;
    top: 0;
    background: #fff;
    color: #1B2838;
    padding: 0.5rem 1rem;
    z-index: 2000;
}
.site-skip:focus { left: 1rem; top: 1rem; }

.site-body {
    background: #F5F8FC;
    color: #1B2838;
    font-family: "Manrope", "Segoe UI", sans-serif;
    overflow-x: hidden;
}
body.site-menu-open { overflow: hidden; }

.lp-wrap {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}

.site-kicker {
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: #3D5A80;
    font-weight: 700;
    margin-bottom: 0.85rem;
}
.site-title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.4rem, 6vw, 4.15rem);
    line-height: 1.05;
    margin: 0 0 1.1rem;
    color: #1B2838;
    font-weight: 600;
}
.site-section-title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    line-height: 1.12;
    margin: 0 0 0.85rem;
    color: #1B2838;
    font-weight: 600;
}
.site-lead {
    color: #5C6B7A;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 34rem;
    margin: 0;
}
.site-section { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.site-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.45rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.site-btn-primary {
    background: #3D5A80;
    color: #fff;
    border-color: #3D5A80;
}
.site-btn-primary:hover {
    background: #2E4A6E;
    border-color: #2E4A6E;
    color: #fff;
    transform: translateY(-1px);
}
.site-btn-ghost {
    background: transparent;
    color: #1B2838;
    border-color: #D5DEE8;
}
.site-btn-ghost:hover { border-color: #3D5A80; color: #3D5A80; }
.site-btn-light {
    background: #fff;
    color: #3D5A80;
}
.site-btn-light:hover { background: #E7EEF6; color: #1B2838; }

.site-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: transparent;
    transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border-bottom: 1px solid transparent;
}
.site-nav.is-scrolled {
    background: rgba(245, 248, 252, 0.94);
    backdrop-filter: blur(14px);
    border-bottom-color: #D5DEE8;
    box-shadow: 0 8px 24px rgba(27, 40, 56, 0.04);
}
.site-nav-inner {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.site-nav .brand-logo { max-width: 132px; height: auto; }
.site-nav-links {
    display: none;
    align-items: center;
    gap: 1.75rem;
    font-size: 0.92rem;
}
.site-nav-links a,
.site-nav-login {
    color: #1B2838;
    text-decoration: none;
    font-weight: 500;
}
.site-nav-links a:hover,
.site-nav-login:hover { color: #3D5A80; }
.site-nav-actions { display: flex; align-items: center; gap: 0.85rem; }
.site-nav-login { display: none; }
.site-nav-cta { min-height: 44px; padding: 0.55rem 1.15rem; font-size: 0.8rem; }
.site-nav-burger {
    width: 42px;
    height: 42px;
    border: 1px solid #D5DEE8;
    border-radius: 999px;
    background: #fff;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
}
.site-nav-burger span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: #1B2838;
    transition: transform 0.2s ease;
}
.site-nav.is-open .site-nav-burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
.site-nav.is-open .site-nav-burger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.site-nav-drawer {
    display: none;
    padding: 0.5rem 1rem 1.25rem;
    background: #F5F8FC;
    border-bottom: 1px solid #D5DEE8;
}
.site-nav.is-open .site-nav-drawer { display: block; }
.site-nav-drawer nav {
    width: min(1120px, calc(100% - 0rem));
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.site-nav-drawer a {
    color: #1B2838;
    text-decoration: none;
    padding: 0.7rem 0;
    font-weight: 500;
}
.site-nav-drawer .site-btn { margin-top: 0.5rem; width: 100%; }

.lp-hero { padding: 1.5rem 0 3.5rem; }
.lp-hero-grid {
    display: grid;
    gap: 2.4rem;
    align-items: center;
}
.lp-hero-copy { text-align: center; }
.lp-hero-copy .site-lead { margin-inline: auto; }
.lp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1.6rem;
}
.lp-hero-note {
    margin: 1rem 0 0;
    color: #5C6B7A;
    font-size: 0.9rem;
}
.lp-hero-visual { min-width: 0; }

.lp-app {
    background: #fff;
    border: 1px solid #D5DEE8;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(27, 40, 56, 0.08);
}
.lp-app-compact { max-width: 520px; }
.lp-app-chrome {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 0.95rem;
    background: #F5F8FC;
    border-bottom: 1px solid #E7EEF6;
    color: #5C6B7A;
    font-size: 0.75rem;
}
.lp-app-chrome span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8AA2C0;
    display: inline-block;
}
.lp-app-chrome span:nth-child(2) { background: #3D5A80; opacity: 0.55; }
.lp-app-chrome span:nth-child(3) { background: #D5DEE8; }
.lp-app-chrome em { margin-left: 0.45rem; font-style: normal; font-weight: 600; color: #1B2838; }
.lp-app-shell { display: grid; grid-template-columns: 1fr; }
.lp-app-side { display: none; }
.lp-app-main { padding: 0.95rem; min-width: 0; }
.lp-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    margin-bottom: 0.85rem;
}
.lp-kpis div {
    background: #F5F8FC;
    border-radius: 14px;
    padding: 0.85rem 0.9rem;
}
.lp-kpis small, .lp-kpis em {
    display: block;
    color: #5C6B7A;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.lp-kpis strong {
    display: block;
    font-size: 1.2rem;
    margin: 0.2rem 0 0.15rem;
    color: #1B2838;
}
.lp-panel { background: #fff; }
.lp-panel-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.92rem;
}
.lp-panel-head small { color: #3D5A80; font-weight: 600; }
.lp-app-compact .lp-appt { grid-template-columns: 3.4rem minmax(0, 1fr); }
.lp-appt {
    display: grid;
    grid-template-columns: 3.4rem minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid #E7EEF6;
}
.lp-appt:last-child { border-bottom: 0; }
.lp-appt time { font-weight: 700; color: #3D5A80; font-size: 0.9rem; }
.lp-appt b { display: block; font-size: 0.92rem; }
.lp-appt span, .lp-appt i {
    font-style: normal;
    color: #5C6B7A;
    font-size: 0.78rem;
}
.lp-client { padding: 1.1rem 1.15rem 1.2rem; }
.lp-client-top { display: flex; justify-content: space-between; gap: 0.75rem; }
.lp-client-top small, .lp-client-stats small { color: #5C6B7A; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.lp-client-top strong { display: block; font-size: 1.15rem; }
.lp-client-top em {
    font-style: normal;
    background: #E7EEF6;
    color: #3D5A80;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    height: fit-content;
}
.lp-client-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 1rem;
}
.lp-stock { padding: 0.35rem 1rem 0.85rem; }
.lp-stock div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.7rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #E7EEF6;
    align-items: center;
}
.lp-stock div:last-child { border-bottom: 0; }
.lp-stock em, .lp-stock span { font-style: normal; color: #5C6B7A; font-size: 0.85rem; }
.lp-cash { padding: 1.1rem 1.2rem 1.25rem; }
.lp-cash small { color: #5C6B7A; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; }
.lp-cash strong {
    display: block;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2.2rem;
    margin: 0.15rem 0 0.85rem;
}
.lp-cash-row {
    display: flex;
    justify-content: space-between;
    padding: 0.45rem 0;
    border-top: 1px solid #E7EEF6;
    color: #5C6B7A;
}
.lp-cash-row b { color: #1B2838; }

.lp-section { padding: clamp(3.6rem, 8vw, 6.2rem) 0; }
.lp-band { background: #fff; }
.lp-section-head { margin-bottom: 2.4rem; max-width: 38rem; }
.lp-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.lp-reveal.is-visible { opacity: 1; transform: none; }

.lp-statement { padding: 0 0 1rem; }
.lp-statement-inner {
    text-align: center;
    padding: 3.2rem 1.2rem;
    border-block: 1px solid #D5DEE8;
}
.lp-statement h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    line-height: 1.2;
    max-width: 18ch;
    margin: 0 auto 1rem;
    font-style: italic;
    font-weight: 600;
}
.lp-statement p {
    max-width: 38rem;
    margin: 0 auto;
    color: #5C6B7A;
    line-height: 1.65;
}

.lp-pain {
    margin-top: 2rem;
    display: grid;
    gap: 1.4rem;
    align-items: center;
}
.lp-chaos {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}
.lp-chaos li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid #D5DEE8;
    border-radius: 14px;
    color: #5C6B7A;
}
.lp-chaos span { color: #1B2838; font-weight: 600; }
.lp-pain-join {
    color: #8AA2C0;
    font-size: 1.4rem;
    text-align: center;
}
.lp-pain-join i { transform: rotate(90deg); display: inline-block; }
.lp-unify {
    background: #1B2838;
    color: #fff;
    border-radius: 18px;
    padding: 1.6rem 1.4rem;
    text-align: center;
}
.lp-unify strong {
    display: block;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2.1rem;
    font-weight: 600;
}
.lp-unify p { margin: 0.3rem 0 0; color: #8AA2C0; }

.lp-ticket-grid {
    margin-top: 2rem;
    display: grid;
    gap: 1.4rem;
}
.lp-ticket {
    background: #fff;
    border: 1px solid #D5DEE8;
    border-radius: 18px;
    padding: 1.3rem 1.25rem 1.1rem;
    box-shadow: 0 10px 30px rgba(27, 40, 56, 0.04);
}
.lp-ticket header small { color: #5C6B7A; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; }
.lp-ticket h3 { font-size: 1.35rem; margin: 0.2rem 0 1rem; }
.lp-ticket-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid #E7EEF6;
}
.lp-ticket-line span { display: block; color: #5C6B7A; font-size: 0.8rem; }
.lp-ticket footer {
    display: flex;
    justify-content: space-between;
    margin-top: 0.4rem;
    padding-top: 0.85rem;
    border-top: 1px solid #1B2838;
    font-size: 1.05rem;
}
.lp-links { display: grid; gap: 0.75rem; }
.lp-links > div {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 0.9rem 0.2rem;
}
.lp-links i { color: #3D5A80; font-size: 1.15rem; margin-top: 0.15rem; }
.lp-links b { display: block; }
.lp-links span { color: #5C6B7A; font-size: 0.9rem; }

.lp-feature {
    display: grid;
    gap: 1.6rem;
    align-items: center;
    margin-bottom: 3.4rem;
}
.lp-feature:last-child { margin-bottom: 0; }
.lp-feature h3 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.55rem, 2.4vw, 2.05rem);
    line-height: 1.15;
    margin: 0 0 0.7rem;
    font-weight: 600;
}
.lp-feature p { color: #5C6B7A; margin: 0; line-height: 1.65; max-width: 34rem; }
.lp-cat {
    background: #fff;
    border: 1px solid #D5DEE8;
    border-radius: 18px;
    overflow: hidden;
    max-width: 360px;
}
.lp-cat-photo {
    height: 150px;
    background:
        linear-gradient(180deg, rgba(61, 90, 128, 0.08), rgba(245, 248, 252, 0.2)),
        repeating-linear-gradient(135deg, #E7EEF6 0 12px, #F5F8FC 12px 24px);
}
.lp-cat-body { padding: 1.1rem 1.15rem 1.25rem; }
.lp-cat-body small { color: #5C6B7A; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.7rem; }
.lp-cat-body h3 { font-family: Manrope, sans-serif; font-size: 1.05rem; margin: 0.3rem 0 0.35rem; }
.lp-cat-body p { margin: 0 0 1rem; font-weight: 600; color: #1B2838; }
.lp-cat-body .site-btn { pointer-events: none; min-height: 42px; font-size: 0.78rem; }

.lp-benefits {
    display: grid;
    gap: 1.6rem;
}
.lp-benefits span {
    font-family: "Cormorant Garamond", Georgia, serif;
    color: #8AA2C0;
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.25rem;
}
.lp-benefits h3 {
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 0.4rem;
}
.lp-benefits p { margin: 0; color: #5C6B7A; }

.lp-audiences {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.6rem;
}
.lp-audiences article {
    padding: 1.15rem 1.2rem;
    border-bottom: 1px solid #D5DEE8;
}
.lp-audiences h3 { font-size: 1.05rem; margin: 0 0 0.25rem; }
.lp-audiences p { margin: 0; color: #5C6B7A; }
.lp-audiences .is-featured {
    background: #1B2838;
    color: #fff;
    border: 0;
    border-radius: 18px;
    padding: 1.4rem 1.3rem;
}
.lp-audiences .is-featured .site-kicker { color: #8AA2C0; }
.lp-audiences .is-featured p { color: #8AA2C0; }

.lp-pricing {
    display: grid;
    gap: 1.8rem;
    align-items: start;
}
.lp-price-card {
    background: #fff;
    border: 1px solid #D5DEE8;
    border-radius: 22px;
    padding: 1.6rem 1.4rem 1.4rem;
    box-shadow: 0 16px 40px rgba(27, 40, 56, 0.05);
}
.lp-price-card h3 { margin: 0 0 0.4rem; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; }
.lp-price {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin: 0;
}
.lp-price strong {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.6rem, 5vw, 3.4rem);
    font-weight: 600;
    line-height: 1;
}
.lp-price span, .lp-price-note, .lp-price-foot { color: #5C6B7A; }
.lp-price-note { margin: 0.35rem 0 1.1rem; }
.lp-price-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.3rem;
}
.lp-price-card li {
    padding: 0.5rem 0 0.5rem 1.2rem;
    position: relative;
    border-bottom: 1px solid #E7EEF6;
}
.lp-price-card li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3D5A80;
    position: absolute;
    left: 0;
    top: 0.9rem;
}
.lp-price-card .site-btn { width: 100%; }
.lp-price-foot { margin: 0.85rem 0 0; font-size: 0.88rem; text-align: center; }

.lp-demo-grid {
    display: grid;
    gap: 1rem;
}
.lp-faq-wrap { max-width: 720px; }
.site-faq .accordion-item {
    background: transparent;
    border: 0;
    border-bottom: 1px solid #D5DEE8;
}
.site-faq .accordion-button {
    background: transparent;
    box-shadow: none;
    font-weight: 600;
    color: #1B2838;
    padding-left: 0;
    padding-right: 0;
}
.site-faq .accordion-button:not(.collapsed) {
    background: transparent;
    color: #3D5A80;
    box-shadow: none;
}
.site-faq .accordion-body {
    padding-left: 0;
    color: #5C6B7A;
}

.lp-final {
    background: #3D5A80;
    color: #fff;
    padding: clamp(3.8rem, 8vw, 6.5rem) 0;
}
.lp-final-inner { text-align: center; }
.lp-final h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.12;
    margin: 0 auto 0.9rem;
    max-width: 16ch;
    font-weight: 600;
}
.lp-final p {
    max-width: 32rem;
    margin: 0 auto 1.6rem;
    color: rgba(255,255,255,0.82);
}

.site-footer {
    background: #F5F8FC;
    border-top: 1px solid #D5DEE8;
    padding: 2rem 0 1.4rem;
}
.site-footer-inner {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto 1.2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.2rem 2rem;
    align-items: flex-start;
}
.site-footer .brand-logo { max-width: 128px; }
.site-footer-brand p {
    margin: 0.45rem 0 0;
    color: #5C6B7A;
    font-size: 0.88rem;
}
.site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.15rem;
    font-size: 0.88rem;
}
.site-footer a { color: #5C6B7A; text-decoration: none; }
.site-footer a:hover { color: #3D5A80; }
.site-footer-copy {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    color: #5C6B7A;
    font-size: 0.82rem;
}

@media (min-width: 768px) {
    .lp-hero { padding: 2.4rem 0 4.5rem; }
    .lp-hero-copy { text-align: left; }
    .lp-hero-copy .site-lead { margin-inline: 0; }
    .lp-hero-actions { justify-content: flex-start; }
    .lp-pain { grid-template-columns: 1fr auto 0.9fr; }
    .lp-pain-join i { transform: none; }
    .lp-ticket-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
    .lp-benefits { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .lp-audiences { grid-template-columns: repeat(2, 1fr); }
    .lp-audiences .is-featured { grid-column: 1 / -1; }
    .lp-demo-grid { grid-template-columns: 1fr 1fr; }
    .lp-pricing { grid-template-columns: 1fr 1fr; align-items: center; }
}

@media (min-width: 1024px) {
    .site-nav-links { display: flex; }
    .site-nav-login { display: inline; }
    .site-nav-burger, .site-nav-drawer { display: none !important; }
    .lp-hero-grid { grid-template-columns: 0.92fr 1.08fr; gap: 3rem; }
    .lp-app-shell { grid-template-columns: 148px minmax(0, 1fr); }
    .lp-app-side {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        padding: 1rem 0.85rem;
        background: #1B2838;
        color: rgba(255,255,255,0.62);
        font-size: 0.78rem;
    }
    .lp-app-side b { color: #fff; font-size: 0.85rem; margin-bottom: 0.5rem; }
    .lp-app-side .is-on { color: #fff; }
    .lp-feature { grid-template-columns: 1fr 1fr; gap: 3.2rem; margin-bottom: 4.4rem; }
    .lp-feature.is-reverse { direction: rtl; }
    .lp-feature.is-reverse > * { direction: ltr; }
    .lp-benefits { grid-template-columns: repeat(4, 1fr); }
    .lp-audiences { grid-template-columns: repeat(4, 1fr); }
    .lp-audiences .is-featured { grid-column: 1 / -1; }
}

@media (max-width: 379px) {
    .lp-hero-actions .site-btn { width: 100%; }
    .lp-client-stats { grid-template-columns: 1fr; }
    .lp-stock div { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html.site-html { scroll-behavior: auto; }
    .lp-reveal { opacity: 1; transform: none; transition: none; }
    .site-btn { transition: none; }
}

