html, body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* -------------------------------------------------------------------------- */
/* Suite Portal - small global utilities (avoid inline styles in components)   */
/* -------------------------------------------------------------------------- */
.sp-minw-320 { min-width: 320px; }
.sp-prewrap { white-space: pre-wrap; }

/* Table utilities */
.sp-nowrap { white-space: nowrap; }
.sp-w-1 { width: 1%; }

/* Optional: keep MudBlazor links consistent with theme (safe default) */
a {
    color: inherit;
}
/* wwwroot/app.css */
:root {
    --font-sans: "Inter", "Segoe UI", "Roboto", "Arial", sans-serif;
}

html, body {
    font-family: var(--font-sans);
    font-size: 15px;
}

h1 { font-size: 42px; font-weight: 700; }
h2 { font-size: 30px; font-weight: 600; }
h3 { font-size: 22px; font-weight: 600; }


/* wwwroot/app.css */
.billing-hero {
    background: #F8FAFC;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 10px;
}

.billing-hero-title {
    color: #111827;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
}

.billing-hero-subtitle {
    color: #6B7280;
    font-size: 16px;
    font-weight: 500;
}

/* BillingMarketing cards */
.plan-card {
    border: 1px solid rgba(17, 24, 39, 0.12);
    transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}
/* Hover = intention d’upgrade/choix */
.plan-card:hover {
    border: 2px solid #16A34A; /* vert */
    transform: scale(1.02);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}
/* Plan actuel = or (par défaut) */
.plan-card--current {
    border: 2px solid #D4AF37; /* or */
    transform: scale(1.02);
}
/* Si tu veux que le plan actuel passe vert au hover (ça aide à comprendre qu’on survole) */
.plan-card--current:hover {
    border-color: #16A34A;
}

/* chip compact + aligné */
.module-status-chip.mud-chip {
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
}

/* le texte interne */
.module-status-chip .mud-chip-content {
    font-size: 12px;
    line-height: 1;
    padding: 0; /* évite un padding interne qui casse la hauteur */
}
/* -------------------------------------------------------------------------- */
/* Keycloak-ish MudBlazor overrides (sharp, contrasted, admin-console feel)    */
/* Add at end of file                                                         */
/* -------------------------------------------------------------------------- */

:root {
    --kc-radius: 6px;
    --kc-border: #D1D5DB;
    --kc-border-strong: #9CA3AF;
    --kc-focus: #0B5ED7;
    --kc-appbar-bg: #1F2937;
    --kc-appbar-fg: #F9FAFB;
}

/* AppBar: darker, more "console" */
.mud-appbar {
    background-color: var(--kc-appbar-bg) !important;
    color: var(--kc-appbar-fg) !important;
}

/* Drawer separator */
.mud-drawer {
    border-right: 1px solid #E5E7EB;
}

/* Cards/Paper: less rounded */
.mud-paper {
    border-radius: var(--kc-radius) !important;
}

/* Buttons: less pill, more sharp */
.mud-button-root {
    border-radius: var(--kc-radius) !important;
    text-transform: none !important;
    font-weight: 600;
}

/* Chips & nav links: consistent radius */
.mud-chip,
.mud-nav-link {
    border-radius: var(--kc-radius) !important;
}

/* Inputs: stronger outlined borders */
.mud-input-control,
.mud-input,
.mud-input-slot,
.mud-select-input {
    border-radius: var(--kc-radius) !important;
}

/* Outlined border color */
.mud-input-outlined-border {
    border-color: var(--kc-border) !important;
}

/* Focus state: keycloak-like blue */
.mud-input-control.mud-focused .mud-input-outlined-border {
    border-color: var(--kc-focus) !important;
}

/* Hover: slightly stronger border */
.mud-input-control:hover .mud-input-outlined-border {
    border-color: var(--kc-border-strong) !important;
}

/* -------------------------------------------------------------------------- */
/* Suite Portal - AppBar contrast + remove "blue primary" feel                */
/* Add at end of file                                                         */
/* -------------------------------------------------------------------------- */

/* AppBar look */
.sp-appbar.mud-appbar {
    background-color: #1F2937 !important; /* dark slate */
    color: #F9FAFB !important;
}

/* Make icon buttons clearly visible in AppBar */
.sp-appbar .mud-icon-button,
.sp-appbar .mud-icon-root,
.sp-appbar .mud-button-root {
    color: #F9FAFB !important;
}

/* Optional: keep chip readable on dark appbar */
.sp-appbar .mud-chip {
    border-color: rgba(249, 250, 251, 0.35) !important;
    color: #F9FAFB !important;
}

.sp-appbar .sp-brand-title {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.sp-appbar .top-auth-actions {
    gap: 8px;
}

.sp-appbar .top-auth-register.mud-button-root {
    border: 1px solid rgba(255, 255, 255, 0.38) !important;
    color: #0F172A !important;
    background: linear-gradient(95deg, #FACC15 0%, #F59E0B 100%) !important;
    font-weight: 700 !important;
}

.sp-appbar .top-auth-register.mud-button-root:hover {
    filter: brightness(1.05);
}

.sp-appbar .top-auth-login.mud-button-root {
    border: 1px solid rgba(255, 255, 255, 0.65) !important;
    color: #FFFFFF !important;
    background: linear-gradient(95deg, rgba(14, 165, 233, 0.85) 0%, rgba(37, 99, 235, 0.85) 100%) !important;
    font-weight: 700 !important;
}

.sp-appbar .top-auth-login.mud-button-root:hover {
    filter: brightness(1.06);
}

.sp-appbar .top-auth-register .mud-button-label,
.sp-appbar .top-auth-login .mud-button-label {
    color: inherit !important;
    opacity: 1 !important;
}

/* ---- Buttons: change Filled Primary from blue to a "keycloak/admin" dark ---- */
/* This affects any MudButton with Color=Primary + Variant=Filled */
.mud-button-filled-primary {
    background-color: #111827 !important; /* near-black */
    color: #F9FAFB !important;
}

.mud-button-filled-primary:hover {
    background-color: #0B1220 !important;
}

/* Keep outlined primary as neutral (less blue) */
.mud-button-outlined-primary {
    border-color: #9CA3AF !important;
    color: #111827 !important;
}

.mud-button-outlined-primary:hover {
    border-color: #6B7280 !important;
    background-color: rgba(17, 24, 39, 0.04) !important;
}

/* -------------------------------------------------------------------------- */
/* Dark-ish left navigation (drawer)                                           */
/* -------------------------------------------------------------------------- */

.sp-drawer.mud-drawer {
    background-color: #2B3442 !important; /* gris foncé, pas noir */
    color: #E5E7EB !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* Overline titles */
.sp-drawer .mud-typography-overline {
    color: rgba(229, 231, 235, 0.70) !important;
    letter-spacing: 0.06em;
}

/* Dividers inside drawer */
.sp-drawer .mud-divider {
    background-color: rgba(255, 255, 255, 0.10) !important;
}

/* Nav links */
.sp-drawer .mud-nav-link {
    color: rgba(229, 231, 235, 0.92) !important;
    border-radius: var(--kc-radius, 6px) !important;
}

/* Icons inside nav links */
.sp-drawer .mud-nav-link .mud-icon-root {
    color: rgba(229, 231, 235, 0.80) !important;
}

/* Hover */
.sp-drawer .mud-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

/* Active link (MudBlazor uses .active on MudNavLink) */
.sp-drawer .mud-nav-link.active {
    background-color: rgba(255, 255, 255, 0.14) !important;
    color: #FFFFFF !important;
}

.sp-drawer .mud-nav-link.active .mud-icon-root {
    color: #FFFFFF !important;
}
/* -------------------------------------------------------------------------- */
/* eFacturation (landing / home)                                               */
/* -------------------------------------------------------------------------- */

.efact-container {
    max-width: 1320px; /* augmente la largeur utile (type "large") */
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* Titre + sous-titre (plus grands, responsives) */
.efact-hero-title {
    font-size: clamp(2.1rem, 3.2vw, 3.1rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.efact-hero-subtitle {
    font-size: clamp(1.05rem, 1.2vw, 1.25rem);
    line-height: 1.55;
}

/* Cartes/papers : hover léger + bord plus doux */
.efact-card {
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
    border-color: rgba(30, 58, 138, 0.10) !important;
}

.efact-card:hover {
    transform: translateY(-2px);
    border-color: rgba(30, 58, 138, 0.30) !important;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

/* Footer landing */
.efact-footer {
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid rgba(17, 24, 39, 0.12);
}

/* -------------------------------------------------------------------------- */
/* Home page refresh                                                           */
/* -------------------------------------------------------------------------- */
.home-landing {
    max-width: 1760px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.home-hero {
    position: relative;
    overflow: hidden;
    border-color: rgba(15, 23, 42, 0.10) !important;
    background:
        radial-gradient(1200px 420px at -10% -40%, rgba(14, 165, 233, 0.10), transparent 70%),
        radial-gradient(900px 320px at 110% -30%, rgba(16, 185, 129, 0.10), transparent 68%),
        linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

.home-chip {
    width: fit-content;
    border-radius: 999px !important;
}

.home-title {
    font-family: "Poppins", "Manrope", "Inter", "Segoe UI", sans-serif;
    font-size: clamp(2rem, 3.4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 800;
    background: linear-gradient(92deg, #0284C7 0%, #2563EB 45%, #0D9488 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-subtitle {
    font-size: clamp(1.02rem, 1.15vw, 1.22rem);
    line-height: 1.65;
    color: #475569;
    max-width: 63ch;
}

.home-kpi {
    border-color: rgba(15, 23, 42, 0.10) !important;
    background: #FFFFFF;
}

.home-kpi-value {
    font-size: 1.55rem;
    line-height: 1.2;
    font-weight: 800;
    color: #0F172A;
}

.home-card {
    border-color: rgba(15, 23, 42, 0.10) !important;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-card:hover {
    transform: translateY(-4px);
    border-color: rgba(2, 132, 199, 0.35) !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
}

.home-card-tone-a {
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.10), rgba(255, 255, 255, 0.95));
}

.home-card-tone-b {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.11), rgba(255, 255, 255, 0.95));
}

.home-card-tone-c {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.12), rgba(255, 255, 255, 0.95));
}

.home-card-tone-d {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.13), rgba(255, 255, 255, 0.95));
}

.home-grid-highlight .home-card {
    border-color: rgba(2, 132, 199, 0.18) !important;
}

.home-card-glow {
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.12);
}

.home-card .mud-typography-h5,
.home-card .mud-typography-h6 {
    font-family: "Poppins", "Manrope", "Inter", "Segoe UI", sans-serif;
    color: #0B4EA2;
}

.home-grid-middle {
    align-items: center;
}

.home-section-kicker {
    color: #0EA5E9;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.home-block-title {
    font-family: "Poppins", "Manrope", "Inter", "Segoe UI", sans-serif;
    letter-spacing: -0.02em;
    color: #0B4EA2;
}

.home-title-color {
    background: linear-gradient(92deg, #0EA5E9 0%, #0D9488 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-step {
    border-color: rgba(15, 23, 42, 0.10) !important;
    animation: homeStepIn 550ms ease both;
}

.home-step-tone-1 {
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.18), rgba(255, 255, 255, 0.95));
}

.home-step-tone-2 {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.18), rgba(255, 255, 255, 0.95));
}

.home-step-tone-3 {
    background: linear-gradient(145deg, rgba(236, 72, 153, 0.17), rgba(255, 255, 255, 0.95));
}

.home-panel-vivid {
    border-color: rgba(37, 99, 235, 0.22) !important;
    background:
        radial-gradient(1000px 220px at 0% 0%, rgba(56, 189, 248, 0.16), transparent 70%),
        radial-gradient(900px 180px at 100% 100%, rgba(167, 139, 250, 0.14), transparent 72%),
        linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

.home-step-index {
    width: 32px;
    height: 32px;
    font-weight: 700;
}

.home-step-1 { animation-delay: 70ms; }
.home-step-2 { animation-delay: 180ms; }
.home-step-3 { animation-delay: 290ms; }

.home-carousel {
    border: 1px solid rgba(2, 132, 199, 0.24);
    border-radius: 14px;
    background:
        radial-gradient(1200px 320px at 0% 0%, rgba(59, 130, 246, 0.18), transparent 72%),
        radial-gradient(1000px 260px at 100% 100%, rgba(236, 72, 153, 0.15), transparent 68%),
        linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    min-height: 320px;
}

.home-carousel .mud-carousel-item {
    padding: 28px 30px 18px 30px;
}

.home-carousel .mud-carousel-container {
    min-height: 320px;
}

.home-carousel .mud-list {
    background: rgba(255, 255, 255, 0.82);
    border-radius: 10px;
    padding: 6px;
    border: 1px solid rgba(15, 23, 42, 0.10);
}

.home-bullets {
    margin: 0;
    padding: 14px 16px 14px 34px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.88);
    border-radius: 12px;
    color: #0F172A;
}

.home-bullets li {
    margin: 8px 0;
    font-weight: 600;
}

.home-bullets li::marker {
    color: #0EA5E9;
}

.home-bullets-soft {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(2, 132, 199, 0.20);
}

.home-slide {
    border-radius: 14px;
    padding: 12px;
}

.home-slide-1 {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(255, 255, 255, 0.72));
}

.home-slide-2 {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(255, 255, 255, 0.74));
}

.home-slide-3 {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(255, 255, 255, 0.74));
}

.home-carousel .mud-icon-button {
    background: rgba(15, 23, 42, 0.05);
    border-radius: 999px;
}

.home-price {
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 800;
    color: #B45309;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.home-billing-on {
    font-weight: 700;
    color: #059669;
}

.home-billing-off {
    font-weight: 600;
    color: #64748B;
}

.home-main-cta.mud-button-root {
    background: linear-gradient(94deg, #EA580C 0%, #F59E0B 55%, #FACC15 100%) !important;
    color: #111827 !important;
    border: none !important;
    box-shadow: 0 10px 25px rgba(234, 88, 12, 0.35);
}

.home-main-cta.mud-button-root:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(234, 88, 12, 0.40);
}

.home-cta {
    border-color: rgba(2, 132, 199, 0.25) !important;
    background:
        radial-gradient(900px 360px at 20% -35%, rgba(56, 189, 248, 0.14), transparent 67%),
        radial-gradient(820px 300px at 85% -25%, rgba(16, 185, 129, 0.14), transparent 67%),
        #FFFFFF;
}

.home-footer {
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 23, 42, 0.12);
}

@keyframes homeStepIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 959.98px) {
    .home-landing {
        padding: 0 10px;
    }

    .home-carousel .mud-carousel-item {
        padding: 18px 16px 10px 16px;
    }

    .home-carousel,
    .home-carousel .mud-carousel-container {
        min-height: 420px;
    }
}

.sp-main-container {
    padding-left: 18px !important;
    padding-right: 18px !important;
}

/* -------------------------------------------------------------------------- */
/* Auth page                                                                   */
/* -------------------------------------------------------------------------- */
.auth-page {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 8px;
}

.auth-shell {
    border-color: rgba(2, 132, 199, 0.18) !important;
    background:
        radial-gradient(1000px 300px at 0% 0%, rgba(56, 189, 248, 0.14), transparent 72%),
        radial-gradient(860px 260px at 100% 100%, rgba(16, 185, 129, 0.12), transparent 72%),
        linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

.auth-title {
    font-family: "Poppins", "Manrope", "Inter", "Segoe UI", sans-serif;
    font-size: clamp(1.8rem, 2.2vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 800;
    background: linear-gradient(92deg, #0284C7 0%, #2563EB 45%, #0D9488 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-card {
    border-color: rgba(2, 132, 199, 0.2) !important;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.10), rgba(255, 255, 255, 0.96));
}

.auth-card-title {
    color: #0B4EA2;
    font-family: "Poppins", "Manrope", "Inter", "Segoe UI", sans-serif;
}

.auth-login-btn.mud-button-root {
    background: linear-gradient(94deg, #0EA5E9 0%, #2563EB 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.auth-register-btn.mud-button-root {
    border-color: rgba(2, 132, 199, 0.45) !important;
    color: #0B4EA2 !important;
    background: rgba(14, 165, 233, 0.06) !important;
}

/* -------------------------------------------------------------------------- */
/* Tenants page                                                                */
/* -------------------------------------------------------------------------- */
.tenant-page {
    gap: 20px;
}

.tenant-hero {
    border-color: rgba(2, 132, 199, 0.2) !important;
    background:
        radial-gradient(900px 220px at -5% 0%, rgba(56, 189, 248, 0.14), transparent 70%),
        radial-gradient(840px 220px at 105% 100%, rgba(16, 185, 129, 0.12), transparent 70%),
        #FFFFFF;
}

.tenant-title {
    color: #0B4EA2;
    font-family: "Poppins", "Manrope", "Inter", "Segoe UI", sans-serif;
}

.tenant-add-btn.mud-button-root {
    background: linear-gradient(94deg, #0EA5E9 0%, #2563EB 100%) !important;
    color: #FFFFFF !important;
}

.tenant-refresh-btn.mud-button-root {
    border-color: rgba(2, 132, 199, 0.35) !important;
    color: #0B4EA2 !important;
}

.tenant-table-wrap {
    border-color: rgba(2, 132, 199, 0.2) !important;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

.tenant-table-title {
    color: #0B4EA2;
    font-weight: 700;
}

.tenant-table .mud-table-container {
    border-radius: 12px;
    overflow: hidden;
}

.tenant-table .mud-table-head .mud-table-cell {
    background: linear-gradient(180deg, #EFF6FF 0%, #E0F2FE 100%);
    color: #0B4EA2;
    font-weight: 700;
    border-bottom-color: rgba(2, 132, 199, 0.25);
}

.tenant-table .mud-table-body .mud-table-row:hover {
    background-color: rgba(14, 165, 233, 0.07) !important;
}

.tenant-row-actions {
    min-width: 240px;
}

.tenant-open-btn.mud-button-root {
    background: linear-gradient(94deg, #0EA5E9 0%, #2563EB 100%) !important;
    color: #FFFFFF !important;
}

.tenant-members-btn.mud-button-root {
    border-color: rgba(2, 132, 199, 0.35) !important;
    color: #0B4EA2 !important;
    background: rgba(14, 165, 233, 0.06) !important;
}

.tenant-menu-btn .mud-icon-button {
    background: rgba(2, 132, 199, 0.10) !important;
    color: #0B4EA2 !important;
}

/* -------------------------------------------------------------------------- */
/* Global UI uplift (all pages/components)                                     */
/* -------------------------------------------------------------------------- */
.sp-main-container .mud-paper {
    border-color: rgba(15, 23, 42, 0.11) !important;
}

.sp-main-container .mud-paper:hover {
    border-color: rgba(2, 132, 199, 0.24) !important;
}

.sp-main-container .mud-table {
    border-radius: 12px;
}

.sp-main-container .mud-table-head .mud-table-cell {
    background-color: #F8FAFC;
    font-weight: 700;
    color: #0F3D7A;
}

.sp-main-container .mud-table-body .mud-table-row:hover {
    background-color: rgba(2, 132, 199, 0.05) !important;
}

.sp-main-container .mud-button-filled-primary {
    background: linear-gradient(94deg, #0EA5E9 0%, #2563EB 100%) !important;
    color: #FFFFFF !important;
}

.sp-main-container .mud-button-outlined-primary {
    border-color: rgba(2, 132, 199, 0.4) !important;
    color: #0B4EA2 !important;
    background: rgba(14, 165, 233, 0.03) !important;
}

.sp-main-container .mud-input-control .mud-input-slot {
    background: rgba(248, 250, 252, 0.65);
}

.sp-main-container .mud-dialog .mud-paper {
    border-color: rgba(2, 132, 199, 0.18) !important;
    background:
        radial-gradient(900px 220px at 0% 0%, rgba(56, 189, 248, 0.10), transparent 72%),
        #FFFFFF;
}

/* -------------------------------------------------------------------------- */
/* Portal shared style (pages + dialogs + reused components)                   */
/* -------------------------------------------------------------------------- */
.portal-page {
    max-width: 1560px;
    margin: 0 auto;
}

.portal-page-header {
    padding: 14px 16px;
    border: 1px solid rgba(2, 132, 199, 0.18);
    border-radius: 14px;
    background:
        radial-gradient(800px 180px at 0% 0%, rgba(56, 189, 248, 0.11), transparent 72%),
        radial-gradient(760px 180px at 100% 100%, rgba(34, 197, 94, 0.10), transparent 72%),
        #FFFFFF;
}

.portal-page .mud-typography.mud-typography-h5 {
    font-family: "Poppins", "Manrope", "Inter", "Segoe UI", sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(94deg, #0B4EA2 0%, #0369A1 55%, #0F766E 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.portal-page .mud-button-root {
    border-radius: 10px !important;
}

.portal-page .mud-chip {
    font-weight: 700;
}

.portal-page .mud-alert {
    border-radius: 12px;
}

.portal-card {
    border-radius: 14px !important;
    border: 1px solid rgba(2, 132, 199, 0.2) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)) !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.portal-card:hover {
    border-color: rgba(14, 116, 144, 0.3) !important;
}

.portal-hero-card {
    background:
        radial-gradient(900px 180px at 0% 0%, rgba(14, 165, 233, 0.12), transparent 72%),
        linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%) !important;
}

.module-card-active {
    background:
        radial-gradient(700px 160px at 0% 0%, rgba(16, 185, 129, 0.11), transparent 72%),
        #FFFFFF !important;
}

.module-card-catalog {
    background:
        radial-gradient(700px 160px at 100% 0%, rgba(14, 165, 233, 0.11), transparent 72%),
        #FFFFFF !important;
}

.pricing-module-card,
.module-detail-card,
.company-summary-card,
.company-create-card,
.module-side-card {
    background:
        radial-gradient(760px 150px at 100% 0%, rgba(59, 130, 246, 0.10), transparent 72%),
        #FFFFFF !important;
}

.portal-page .mud-table-container {
    border-radius: 12px;
    overflow: hidden;
}

.portal-page .mud-table-head .mud-table-cell {
    background: linear-gradient(180deg, #EFF6FF 0%, #E0F2FE 100%);
    color: #0B4EA2;
}

.portal-page .mud-table-body .mud-table-row:hover {
    background-color: rgba(14, 165, 233, 0.06) !important;
}

.portal-dialog .mud-dialog-title {
    font-family: "Poppins", "Manrope", "Inter", "Segoe UI", sans-serif;
    font-weight: 800;
    color: #0B4EA2;
}

.portal-dialog .mud-dialog-content {
    background:
        radial-gradient(700px 170px at 0% 0%, rgba(56, 189, 248, 0.12), transparent 72%),
        #FFFFFF;
}

.portal-dialog .mud-button-filled-primary {
    background: linear-gradient(94deg, #0EA5E9 0%, #2563EB 100%) !important;
}
