html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body) !important;
    background: var(--rr-bg) !important;
    color: var(--rr-text) !important;
    letter-spacing: 0;
}

.wrapper-layout {
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - 77px);
    background: var(--rr-bg);
}

#content {
    width: 100%;
    min-width: 0;
    padding: 28px 24px 40px !important;
    background: var(--rr-bg) !important;
}

.page-hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(79,110,247,.10), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f7faff 60%, #eef4ff 100%);
    border: 1px solid rgba(226,232,240,.95);
    box-shadow: 0 16px 34px rgba(30,41,59,.06);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rr-primary), var(--rr-secondary));
}

.page-hero .hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(79,110,247,.10);
    color: var(--rr-primary);
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.page-hero .hero-title {
    font-size: clamp(1.7rem, 2vw, 2.5rem);
    line-height: 1.08;
    letter-spacing: 0;
    color: var(--rr-text);
}

.page-hero .hero-subtitle {
    color: var(--rr-muted);
    font-size: 0.98rem;
    line-height: 1.7;
    max-width: 60ch;
}

.page-hero .hero-stat {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(226,232,240,.9);
    box-shadow: 0 10px 22px rgba(30,41,59,.04);
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 76px;
}

.page-hero .hero-stat .label,
.page-hero .hero-stat .hero-stat-label {
    display: block;
    font-size: .72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--rr-muted);
    letter-spacing: 0;
    line-height: 1.2;
}

.page-hero .hero-stat .value,
.page-hero .hero-stat .hero-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--rr-text);
    line-height: 1.1;
}

.page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 18px 0 22px;
}

.page-toolbar .toolbar-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.app-footer {
    margin-top: 48px;
    padding: 44px 0 26px;
    background:
        radial-gradient(circle at top left, rgba(79,110,247,.06), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: var(--rr-muted);
    border-top: 1px solid var(--rr-border);
}

.app-footer.theme-dark-footer {
    background:
        radial-gradient(circle at top left, rgba(79,110,247,.12), transparent 26%),
        linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: #cbd5e1;
    border-top-color: rgba(255,255,255,.08);
}

.theme-dark .app-footer,
body.theme-dark .app-footer {
    background:
        radial-gradient(circle at top left, rgba(79,110,247,.10), transparent 26%),
        linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: #cbd5e1;
    border-top-color: rgba(255,255,255,.08);
}

.app-footer-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
}

.app-footer-brand p,
.app-footer-contact p {
    color: var(--rr-muted);
    line-height: 1.7;
    margin: 0;
}

.theme-dark .app-footer-brand p,
.theme-dark .app-footer-contact p,
body.theme-dark .app-footer-brand p,
body.theme-dark .app-footer-contact p {
    color: rgba(203,213,225,.82);
}

.app-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--rr-text);
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
    margin-bottom: 14px;
}

.theme-dark .app-footer-logo,
body.theme-dark .app-footer-logo,
.theme-dark .app-footer-col h5,
.theme-dark .app-footer-contact h5,
body.theme-dark .app-footer-col h5,
body.theme-dark .app-footer-contact h5 {
    color: #fff;
}

.app-footer-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--rr-primary), var(--rr-secondary));
    color: #fff;
    box-shadow: 0 12px 24px rgba(79,110,247,.24);
}

.app-footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.app-footer-socials a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--rr-border);
    color: var(--rr-text);
    text-decoration: none;
    background: #fff;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.theme-dark .app-footer-socials a,
body.theme-dark .app-footer-socials a {
    background: rgba(255,255,255,.05);
    border-color: rgba(255,255,255,.1);
    color: #fff;
}

.app-footer-socials a:hover {
    transform: translateY(-2px);
    background: rgba(79,110,247,.08);
    border-color: rgba(79,110,247,.18);
    color: var(--rr-primary);
}

.app-footer-col h5,
.app-footer-contact h5 {
    color: var(--rr-text);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 16px;
}

.app-footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.app-footer-col li + li,
.app-footer-links a + a {
    margin-top: 10px;
}

.app-footer-col a,
.app-footer-contact a,
.app-footer-bottom a {
    color: var(--rr-muted);
    text-decoration: none;
    transition: color .2s ease;
}

.theme-dark .app-footer-col a,
.theme-dark .app-footer-contact a,
.theme-dark .app-footer-bottom a,
body.theme-dark .app-footer-col a,
body.theme-dark .app-footer-contact a,
body.theme-dark .app-footer-bottom a {
    color: rgba(203,213,225,.82);
}

.app-footer-col a:hover,
.app-footer-contact a:hover,
.app-footer-bottom a:hover {
    color: var(--rr-primary);
}

.app-footer-whatsapp {
    color: #22c55e !important;
    font-weight: 700;
}

.app-footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--rr-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--rr-muted);
    font-size: .88rem;
}

.theme-dark .app-footer-bottom,
body.theme-dark .app-footer-bottom {
    border-top-color: rgba(255,255,255,.08);
    color: rgba(203,213,225,.76);
}

.app-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
}

.breadcrumb,
.breadcrumb-saas {
    background: transparent;
    border: 0;
    color: var(--rr-muted);
    margin-bottom: 20px;
    padding: 0;
}

.dash-header-gradient {
    background: linear-gradient(135deg, var(--rr-primary), var(--rr-secondary)) !important;
    border-radius: 8px !important;
    padding: 24px !important;
    box-shadow: 0 16px 35px rgba(79, 110, 247, 0.22);
    overflow: hidden;
}

.dash-header-gradient h1,
.dash-header-gradient h2,
.dash-header-gradient h3,
.dash-header-gradient p { color: #fff !important; }

.container, .container-fluid { max-width: 100%; }

.auth-shell {
    min-height: calc(100vh - 77px);
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(420px, 520px);
    background:
        linear-gradient(135deg, rgba(79,110,247,.92), rgba(108,99,255,.9)),
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.25), transparent 28%);
}
.auth-visual {
    align-items: center;
    padding: 8vw;
    color: #fff;
}
.auth-visual h1 {
    color: #fff !important;
    font-size: clamp(2rem, 4vw, 4.4rem);
    line-height: 1.06;
    max-width: 760px;
}
.auth-visual p {
    color: rgba(255,255,255,.78);
    max-width: 560px;
    font-size: 1rem;
}
.auth-kicker {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 18px;
    background: rgba(245,247,251,.82);
    backdrop-filter: blur(18px);
}
.auth-card {
    width: min(100%, 460px);
    box-shadow: 0 24px 70px rgba(30,41,59,.18) !important;
}
