:root {
    --lux-bg: #f6f2ec;
    --lux-bg-soft: #fdfaf6;
    --lux-panel: #ffffff;
    --lux-ink: #16121a;
    --lux-muted: #6f6472;
    --lux-line: #eadfcf;
    --lux-gold-1: #e4c27c;
    --lux-gold-2: #c79b46;
    --lux-gold-3: #9a6f2f;
    --lux-dark-1: #120f16;
    --lux-dark-2: #201724;
    --lux-dark-3: #2d1f33;
    --lux-shadow-sm: 0 10px 28px rgba(17, 11, 20, .08);
    --lux-shadow-lg: 0 28px 60px rgba(17, 11, 20, .16);
    --lux-radius-xl: 20px;
    --lux-radius-lg: 16px;
    --lux-radius-md: 12px;
    --lux-focus: 0 0 0 .2rem rgba(199, 155, 70, .2);
    --lux-glass: rgba(255, 255, 255, .68);
    --lux-glow: 0 18px 48px rgba(199, 155, 70, .16);
}

body {
    font-family: "Noto Sans", "Manrope", sans-serif;
    color: var(--lux-ink);
    background:
        radial-gradient(1200px 560px at -8% -10%, rgba(216, 181, 109, .16), transparent 58%),
        radial-gradient(980px 520px at 108% -6%, rgba(95, 65, 107, .08), transparent 55%),
        linear-gradient(180deg, #fdfbf7 0%, var(--lux-bg) 100%);
    letter-spacing: .01em;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-title {
    font-family: "Fraunces", "Sora", sans-serif;
    letter-spacing: -.01em;
}

main.app-shell {
    animation: luxFadeIn .4s ease;
}

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

.app-bg-shape {
    background: repeating-linear-gradient(130deg, rgba(143, 106, 47, .05) 0, rgba(143, 106, 47, .05) 1px, transparent 1px, transparent 26px);
    opacity: .6;
}

.app-bg-shape::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(400px 320px at 12% 14%, rgba(199, 155, 70, .12), transparent 60%),
        radial-gradient(460px 360px at 86% 10%, rgba(94, 62, 106, .12), transparent 62%);
    z-index: -1;
}

.app-navbar,
body.auth-ui .app-navbar {
    background: linear-gradient(104deg, var(--lux-dark-1) 0%, var(--lux-dark-2) 52%, var(--lux-dark-3) 100%) !important;
    border-bottom: 1px solid rgba(216, 181, 109, .24) !important;
    box-shadow: 0 16px 34px rgba(7, 5, 8, .42);
    min-height: 70px;
}

.app-navbar-floating {
    border-radius: 18px !important;
    border: 1px solid rgba(228, 194, 124, .22) !important;
}

.app-navbar .nav-link {
    font-weight: 650;
    letter-spacing: .02em;
}

.app-navbar .nav-link,
.app-navbar .navbar-brand,
.app-navbar .brand-title,
.app-navbar .brand-subtitle {
    color: #f6efe3 !important;
}

.brand-logo {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.06);
    padding: 5px;
}

.brand-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.brand-title {
    font-weight: 750;
    letter-spacing: .025em;
}

.brand-subtitle {
    opacity: .82;
}

.app-navbar .nav-link {
    border-radius: 999px;
    transition: transform .16s ease, background .16s ease, opacity .16s ease;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus {
    transform: translateY(-1px);
    background: rgba(216, 181, 109, .18);
}

.pro-badge {
    background: linear-gradient(180deg, var(--lux-gold-1) 0%, var(--lux-gold-2) 100%) !important;
    border: 1px solid rgba(255, 255, 255, .34);
    color: #24190d;
}

.app-tagline {
    background: linear-gradient(90deg, #f9f3ea 0%, #f6efe4 100%);
    border-bottom: 1px solid var(--lux-line);
    color: var(--lux-muted);
}

.tagline-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tagline-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(216, 181, 109, 0.35);
    padding: 6px;
    flex-shrink: 0;
}

.app-shell {
    max-width: 1200px;
}

.app-card,
.card,
.hero-card,
.metric-card,
.table-card,
.quote-mobile-card,
.empty-state-card,
.qx-header,
.qx-filter,
.qx-table-wrap,
.qx-empty,
.qx-mobile {
    border: 1px solid var(--lux-line) !important;
    border-radius: var(--lux-radius-xl) !important;
    background: linear-gradient(180deg, var(--lux-panel) 0%, #fbf7f1 100%);
    box-shadow: var(--lux-shadow-sm) !important;
}

.app-card:hover,
.metric-card:hover,
.qx-metric:hover {
    box-shadow: var(--lux-shadow-lg) !important;
    transform: translateY(-2px);
}

.form-control,
.form-select,
.input-group-text {
    border-radius: var(--lux-radius-md) !important;
    border-color: #ddcfbf !important;
    background-color: #fffdf9 !important;
}

.form-control,
.form-select {
    min-height: 44px;
    padding: .55rem .9rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--lux-gold-2) !important;
    box-shadow: var(--lux-focus) !important;
}

.btn {
    border-radius: var(--lux-radius-md);
    font-weight: 700;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

.btn,
.btn-lg {
    min-height: 44px;
    padding: .55rem 1.1rem;
}

.btn-sm {
    min-height: 36px;
    padding: .35rem .8rem;
}

.btn-primary,
body.auth-ui .btn-primary,
.btn-pill-accent {
    background: linear-gradient(180deg, var(--lux-gold-1) 0%, var(--lux-gold-2) 100%) !important;
    border-color: var(--lux-gold-3) !important;
    color: #21150a !important;
    box-shadow: var(--lux-glow);
}

.btn-primary:hover,
.btn-primary:focus,
body.auth-ui .btn-primary:hover,
.btn-pill-accent:hover {
    background: linear-gradient(180deg, #e2c17f 0%, #c0903e 100%) !important;
    color: #21150a !important;
}

.btn-outline-primary,
body.auth-ui .btn-outline-primary {
    color: #6f4f1d !important;
    border-color: #c8a86f !important;
    background: #fffdf9 !important;
}

.btn-outline-primary:hover,
body.auth-ui .btn-outline-primary:hover {
    transform: translateY(-1px);
}

.btn-outline-primary:hover,
body.auth-ui .btn-outline-primary:hover {
    color: #1f1206 !important;
    border-color: var(--lux-gold-2) !important;
    background: #f7ebd5 !important;
}

.btn-pill-soft,
.btn-outline-secondary {
    border-color: #d9cabb !important;
    color: #5f5260 !important;
    background: #fffdf9 !important;
}

.btn-outline-secondary:hover {
    transform: translateY(-1px);
}

.btn-pill-soft:hover,
.btn-outline-secondary:hover {
    background: #f7f0e6 !important;
}

.saas-table thead th,
.qx-table thead th {
    background: #f8f1e6 !important;
    color: #6a5c63 !important;
    border-bottom: 1px solid var(--lux-line) !important;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.saas-table tbody tr:hover,
.qx-table tbody tr:hover {
    background: #faf3e9 !important;
}

.saas-table tbody tr:nth-child(even) {
    background: #fef9f2;
}

.saas-table td,
.qx-table td {
    padding: .82rem .9rem;
}

.status-chip {
    font-weight: 700;
    border-radius: 999px;
    padding: .38rem .7rem;
    border: 1px solid transparent;
    background: #f3f4f6;
    color: #2f2a33;
}

.status-brouillon {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.status-envoye,
.status-envoyee {
    background: #e0f2fe;
    color: #075985;
    border-color: #bae6fd;
}

.status-accepte,
.status-paye,
.status-payee {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.badge-kind {
    background: #e8ddff;
    color: #4c2a7a;
}

.badge-kind-invoice {
    background: #dcfce7;
    color: #166534;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.saas-table td a.btn-icon + form,
.saas-table td form + a.btn-icon,
.saas-table td form + form {
    margin-left: 8px;
}

.saas-table td form.d-inline {
    display: inline-flex;
}

.alert {
    border-radius: var(--lux-radius-md);
    border: 1px solid rgba(111, 100, 114, .12);
    box-shadow: 0 10px 22px rgba(20, 13, 24, .06);
}

.alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.alert-danger,
.alert-error {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #9f1239;
}

.alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e3a8a;
}

.app-footer {
    background: linear-gradient(140deg, #120f16 0%, #201724 60%, #2d1f33 100%);
    border-top: 1px solid rgba(228, 194, 124, .18);
    color: #eadfce;
}

.app-footer .footer-text,
.app-footer .footer-links a,
.app-footer .footer-brand-block strong {
    color: #eadfce !important;
}

.app-footer .footer-links a:hover {
    color: #f7e2b7 !important;
}

.lang-switch {
    padding: 4px;
    gap: 6px;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, .08);
}

.lang-btn {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.lang-btn img {
    width: 18px;
    height: 18px;
}

.lang-btn:hover {
    transform: translateY(-1px);
}

.form-label {
    font-weight: 600;
    color: #3d3240;
}

.input-group-text {
    color: #6b5c63;
}

.table-card .table-responsive {
    border-radius: var(--lux-radius-xl);
    overflow: hidden;
}

.btn:focus,
.btn:focus-visible,
.form-control:focus,
.form-select:focus,
.btn-close:focus {
    box-shadow: var(--lux-focus) !important;
}

.btn-primary:active,
.btn-outline-primary:active,
.btn-outline-secondary:active {
    transform: translateY(1px);
}

.btn-icon-soft {
    border-color: #e2d6c7;
    color: #3e3341;
    background: #fffdfa;
}

.btn-icon-danger {
    border-color: #f4c7c7;
    color: #9f1239;
    background: #fff5f5;
}

.btn-icon-danger:hover {
    background: #ffecec;
}

.app-tagline p {
    max-width: 1100px;
    font-weight: 500;
}

main.app-shell {
    padding-top: 1.3rem !important;
}

.nav-link {
    letter-spacing: .01em;
}

.nav-link.active,
.nav-link[aria-current="page"] {
    background: rgba(228, 194, 124, .2);
}

.card-body {
    padding: 26px;
}

.table-card .card-body {
    padding: 18px 22px;
}

.app-card:hover,
.metric-card:hover,
.qx-metric:hover {
    transform: translateY(-2px);
}

.app-card .btn,
.hero-card .btn {
    box-shadow: 0 10px 24px rgba(17, 11, 20, .08);
}

.app-card .btn-outline-secondary,
.app-card .btn-outline-primary {
    box-shadow: none;
}

.app-card .btn:hover,
.hero-card .btn:hover {
    transform: translateY(-1px);
}

.app-card .btn:active,
.hero-card .btn:active {
    transform: translateY(0);
}

/* Pricing */
.pricing-section {
    margin-top: 12px;
}

.pricing-premium-section {
    padding: 10px 0 12px;
}

/* Pricing page 10/10 polish */
.pricing-page .pricing-page-hero {
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.pricing-page .pricing-grid {
    gap: 20px;
}

.pricing-page .pricing-card {
    border-radius: 20px;
    padding: 24px 26px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    position: relative;
    overflow: hidden;
}

.pricing-page .pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.12);
    border-color: rgba(59, 130, 246, 0.2);
}

.pricing-page .pricing-card.featured {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 28px 60px rgba(37, 99, 235, 0.22);
}

.pricing-page .pricing-card.featured::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(59,130,246,0.35), rgba(255,138,0,0.25));
    filter: blur(18px);
    opacity: 0.5;
    z-index: -1;
}

.pricing-page .pricing-price {
    font-size: 1.9rem;
    letter-spacing: -0.02em;
}

.pricing-page .pricing-desc {
    color: #334155;
}

.pricing-page .pricing-badge {
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.pricing-page .pricing-compare {
    border-radius: 20px;
    overflow: hidden;
}

.pricing-page .pricing-compare-table thead th {
    background: #eef2ff !important;
    color: #1e293b !important;
}

.pricing-page .pricing-compare-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.06) !important;
}

.pricing-page .pricing-contact {
    border-radius: 20px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

.pricing-page-hero {
    padding: 28px 30px;
}

.pricing-title {
    font-size: clamp(2rem, 3.6vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.pricing-subtitle {
    color: var(--lux-muted);
    font-size: 1.02rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.pricing-card {
    border: 1px solid var(--lux-line);
    border-radius: var(--lux-radius-xl);
    background: #fff;
    box-shadow: var(--lux-shadow-sm);
    padding: 22px 24px;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--lux-shadow-lg);
    border-color: rgba(199, 155, 70, .35);
}

.pricing-card.featured {
    border: 1px solid rgba(199, 155, 70, .55);
    box-shadow: 0 22px 46px rgba(31, 18, 42, .18);
    transform: translateY(-4px) scale(1.01);
}

.pricing-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(180deg, var(--lux-gold-1) 0%, var(--lux-gold-2) 100%);
    color: #2a1a0d;
    font-weight: 800;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 999px;
}

.pricing-features li {
    gap: 10px;
}

.pricing-features i {
    font-size: 1.02rem;
}

.pricing-compare-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.pricing-compare-table td,
.pricing-compare-table th {
    padding-top: .9rem;
    padding-bottom: .9rem;
}

.pricing-contact-actions .btn {
    min-height: 46px;
}

@media (max-width: 991px) {
    .pricing-card.featured {
        transform: none;
    }
}

.pricing-card-header h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 800;
}

.pricing-price {
    font-size: 1.7rem;
    font-weight: 800;
    color: #1f1b24;
    margin-bottom: 6px;
}

.pricing-desc {
    color: var(--lux-muted);
    margin: 0 0 14px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: grid;
    gap: 8px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3c3342;
    font-weight: 600;
    font-size: .92rem;
}

.pricing-features i {
    color: #1f7a61;
}

.pricing-page-hero {
    background:
        radial-gradient(circle at 14% 18%, rgba(199,155,70,.14), transparent 55%),
        linear-gradient(180deg, #ffffff 0%, #fbf7f1 100%);
}

.pricing-compare .saas-table thead th {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .75rem;
}

.pricing-contact {
    background: linear-gradient(180deg, #ffffff 0%, #fbf7f1 100%);
}

@media (max-width: 991px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.hero-card {
    background:
        radial-gradient(circle at 18% 18%, rgba(199, 155, 70, .12), transparent 55%),
        linear-gradient(180deg, #ffffff 0%, #fbf7f1 100%);
}

.table td.text-end,
.table th.text-end {
    padding-right: 1.1rem;
}

.app-navbar .nav-link:focus-visible,
.app-navbar .nav-link:focus {
    outline: none;
    box-shadow: 0 0 0 .2rem rgba(228, 194, 124, .18);
}

.lang-switch {
    border: 1px solid rgba(216, 181, 109, .38);
    background: rgba(255, 247, 232, .12);
    border-radius: 999px;
}

.lang-btn.is-active {
    border-color: rgba(216, 181, 109, .84) !important;
    background: rgba(216, 181, 109, .28) !important;
}

.app-footer,
.footer-inner,
.footer-text,
.footer-links a {
    color: #e8dccb !important;
}

/* Landing luxe */
body.landing-premium .saas-hero {
    background:
        radial-gradient(ellipse at 23% 6%, rgba(216, 181, 109, .24), transparent 50%),
        linear-gradient(166deg, #18131b 0%, #271d2b 58%, #34263a 100%);
}

body.landing-premium .saas-pill {
    border: 1px solid rgba(216, 181, 109, .42);
    background: rgba(216, 181, 109, .14);
    color: #f8e9cf;
}

body.landing-premium .saas-review,
body.landing-premium .saas-solution,
body.landing-premium .saas-card,
body.landing-premium .saas-price {
    border-color: var(--lux-line);
    box-shadow: var(--lux-shadow-sm);
}

body.landing-premium .saas-price.featured {
    border: 1px solid rgba(216, 181, 109, .46);
    box-shadow: 0 22px 42px rgba(26, 15, 33, .25);
}

body.landing-premium .saas-stars {
    color: #d8b56d;
}

/* Why Us page */
.whyus-hero {
    padding: 1.6rem 1.8rem;
}

.whyus-page {
    padding-bottom: 12px;
}

.whyus-page .whyus-hero {
    padding: 2rem 2.2rem;
}

.whyus-page h1,
.whyus-page .h3 {
    font-size: 2rem;
    letter-spacing: .01em;
}

.whyus-page p {
    font-size: 1.02rem;
    line-height: 1.75;
}

.whyus-page section {
    margin-bottom: 1.4rem;
}

.whyus-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

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

.whyus-steps {
    display: grid;
    gap: 1.1rem;
}

.whyus-step {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    padding: 1.1rem 1.2rem;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(198, 165, 98, .18);
    box-shadow: var(--lux-shadow-sm);
}

.whyus-step h3 {
    font-size: 1rem;
    margin-bottom: .25rem;
}

.whyus-step-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.18);
    color: #1d4ed8;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.whyus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.whyus-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(198, 165, 98, .18);
    padding: 1.4rem 1.45rem;
    box-shadow: var(--lux-shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}

.whyus-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--lux-shadow-md);
}

.whyus-card i {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.18);
    color: #1d4ed8;
    font-size: 1.25rem;
    margin-bottom: .6rem;
}

.whyus-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.whyus-chips span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(216, 181, 109, .18);
    border: 1px solid rgba(198, 165, 98, .28);
    padding: .35rem .75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .9rem;
    color: #6b4e15;
}

.whyus-chips span i {
    font-size: .95rem;
    color: #1d4ed8;
}

.trust-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-line i {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.18);
    color: #1d4ed8;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.whyus-footer-cta {
    padding: 1.4rem 1.6rem;
    background:
        radial-gradient(circle at 10% 20%, rgba(216, 181, 109, .2), transparent 45%),
        linear-gradient(120deg, rgba(255, 248, 235, .8), rgba(255, 245, 225, .95));
}

.whyus-page .lp-whyus-card {
    padding: 32px;
}

.whyus-page .lp-whyus-list li {
    font-size: 1rem;
}

/* Landing "Pourquoi MonDevisSimple" block reused on /why-us */
.lp-whyus-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(216, 181, 109, 0.22);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 24px 50px rgba(12, 18, 30, 0.14);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr);
    gap: 28px;
    align-items: center;
}

.lp-whyus {
    padding: 18px 0 8px;
}

.lp-whyus .lp-head {
    margin-bottom: 30px;
}

.lp-whyus-card h2 {
    font-family: "Fraunces", "Manrope", sans-serif;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    margin-bottom: 12px;
}

.lp-whyus-content p {
    color: var(--c-muted, #5a667a);
    margin-bottom: 16px;
    line-height: 1.75;
}

.lp-whyus-list {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
    display: grid;
    gap: 12px;
}

.lp-whyus-list li {
    position: relative;
    padding-left: 30px;
    font-weight: 600;
    color: #2c212e;
}

.lp-whyus-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7a5a18;
    background: rgba(216, 181, 109, 0.25);
    font-weight: 700;
    font-size: 0.82rem;
}

.lp-whyus-mission {
    background: linear-gradient(150deg, rgba(216, 181, 109, 0.22), rgba(255, 245, 227, 0.96));
    border-radius: 20px;
    padding: 22px;
    border: 1px solid rgba(216, 181, 109, 0.35);
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
    text-align: center;
    box-shadow: 0 16px 36px rgba(20, 12, 8, 0.12);
    transition: transform .2s ease, box-shadow .2s ease;
}

.lp-whyus-mission::before {
    content: none;
}

.lp-whyus-mission-img {
    width: min(320px, 95%);
    height: auto;
    object-fit: cover;
    border-radius: 18px;
    margin: 0 auto 8px;
    border: 1px solid rgba(59, 130, 246, 0.18);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.lp-whyus-mission {
    background:
        radial-gradient(220px 120px at 10% 10%, rgba(59, 130, 246, 0.12), transparent 60%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(243, 248, 255, 0.98));
    border: 1px solid rgba(59, 130, 246, 0.18);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

.lp-whyus-mission p {
    color: #1f2937;
    font-weight: 600;
}

.lp-whyus-mission:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 44px rgba(20, 12, 8, 0.18);
}

.lp-whyus-mission p {
    margin: 0;
    color: #2f2434;
    font-weight: 600;
    line-height: 1.55;
}

@media (max-width: 1024px) {
    .lp-whyus-card {
        grid-template-columns: 1fr;
    }
}

/* Auth pages (admin + client) */
.auth-layout {
    position: relative;
    padding: 12px 0 20px;
}

.auth-grid {
    align-items: stretch;
}

.auth-card {
    padding: 28px 30px;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.auth-card .form-control {
    min-height: 44px;
}

.auth-side {
    padding: 30px 32px;
    background:
        radial-gradient(circle at 18% 12%, rgba(59, 130, 246, 0.16), transparent 42%),
        linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(243, 248, 255, 0.98));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
    position: relative;
    overflow: hidden;
}

.auth-side::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -60px;
    top: -60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 70%);
    pointer-events: none;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.auth-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 600;
    color: #2f2434;
}

.auth-list i {
    color: #b8842e;
    font-size: 1.1rem;
}

.auth-quick-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.auth-quick-nav .btn {
    border-radius: 10px;
    font-weight: 700;
}

.auth-metrics {
    margin: 20px 0 6px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.auth-metrics article {
    border: 1px solid rgba(59, 130, 246, 0.22);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    padding: 12px 10px;
    text-align: center;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.auth-metrics strong {
    display: block;
    font-size: 1.05rem;
    color: #3a2a13;
    line-height: 1.1;
}

.auth-metrics small {
    color: #6e5a37;
    font-weight: 600;
    font-size: .78rem;
}

.auth-trust-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.auth-trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    background: rgba(255, 255, 255, 0.9);
    color: #1e3a8a;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: .8rem;
    font-weight: 700;
}

/* Auth CTA emphasis */
.auth-card .btn-primary,
.auth-side .btn-primary {
    box-shadow: 0 16px 34px rgba(255, 138, 0, 0.32) !important;
    transform: translateY(0);
}

.auth-card .btn-primary:hover,
.auth-side .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(255, 138, 0, 0.38) !important;
}

.auth-card .form-control,
.auth-card .form-select {
    margin-bottom: 10px;
}

/* Guide: quote steps */
.guide-hero {
    padding: 1.6rem 1.8rem;
}

.guide-hero .lp-kicker {
    margin-bottom: 8px;
}

.guide-steps .guide-step {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(216, 181, 109, 0.18);
    border-radius: 14px;
    padding: 14px 16px;
}

.guide-steps .step-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.18);
    color: #1d4ed8;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.guide-steps .step-icon i {
    color: #1d4ed8;
}

.guide-common .guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.guide-common .guide-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.guide-common .guide-list i {
    color: #1d4ed8;
    margin-top: 2px;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.guide-faq i {
    color: #1d4ed8;
    margin-right: 6px;
}

@media (max-width: 992px) {
    .auth-card,
    .auth-side {
        padding: 20px;
    }

    .auth-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .whyus-hero-actions {
        width: 100%;
    }

    .whyus-hero-actions .btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 991px) {
    .app-navbar-floating {
        width: calc(100% - 14px);
        margin-top: 6px;
    }

    .app-card,
    .card,
    .hero-card {
        border-radius: 14px !important;
    }

    .btn,
    .btn-lg {
        min-height: 46px;
    }
}

@media (max-width: 991px) {
    .app-shell {
        max-width: 100%;
    }

    .brand-logo {
        width: 60px;
        height: 60px;
    }

    .tagline-logo {
        width: 64px;
        height: 64px;
    }

    .app-card,
    .card,
    .hero-card {
        border-radius: 14px !important;
    }

    .app-card .btn,
    .hero-card .btn {
        width: 100%;
    }
}

/* Mobile optimization */
@media (max-width: 768px) {
    main.app-shell {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .app-card,
    .card,
    .hero-card,
    .table-card,
    .auth-page-card {
        border-radius: 14px !important;
    }

    .app-card .card-body,
    .table-card .card-body {
        padding: 16px !important;
    }

    .btn,
    .btn-lg {
        min-height: 46px;
        width: 100%;
    }

    .auth-grid,
    .pricing-grid,
    .admin-stats-grid,
    .qx-metrics {
        grid-template-columns: 1fr !important;
    }

    .pricing-page .pricing-card {
        padding: 20px 18px;
    }

    .saas-table,
    .qx-table,
    .admin-data-table {
        font-size: 0.9rem;
    }

    .saas-table thead th,
    .qx-table thead th,
    .admin-data-table thead th,
    .saas-table td,
    .qx-table td,
    .admin-data-table td {
        padding: 10px 12px;
    }

    .table-responsive {
        border-radius: 14px;
    }
}

@media (max-width: 576px) {
    .nav-right {
        gap: 8px;
    }

    .navbar-shell .nav-link {
        padding: 6px 8px !important;
    }

    .pricing-page .pricing-price {
        font-size: 1.6rem;
    }

    .kpi-value,
    .admin-stat-tile .stat-value {
        font-size: 1.4rem;
    }
}

/* Navbar shell with fixed ordering: left logo | center menu | right controls */
.navbar-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    direction: ltr;
    flex-wrap: wrap;
}

.navbar-shell .nav-left {
    flex: 0 0 auto;
    min-width: 0;
    flex-shrink: 0;
}

.navbar-shell .nav-collapse-shell {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    gap: 16px;
    flex-wrap: wrap;
}

.navbar-shell .nav-center {
    flex: 1 1 0;
    display: flex;
    justify-content: flex-start;
    min-width: 0;
}

.navbar-shell .nav-menu-list {
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
    flex-wrap: wrap;
    min-width: 0;
    row-gap: 8px;
}

.navbar-shell .nav-right {
    flex: 0 0 auto;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    white-space: nowrap;
    flex-wrap: wrap;
    row-gap: 8px;
}

.navbar-shell .nav-link {
    font-size: 0.8rem;
    padding: 5px 6px !important;
    line-height: 1.2;
    white-space: nowrap;
}

.navbar-shell .nav-right .btn {
    min-height: 40px;
    padding: .4rem .7rem;
    font-size: .82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.navbar-shell .lang-switch {
    padding: 3px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.navbar-shell .lang-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.navbar-shell .lang-btn img {
    width: 14px;
    height: 14px;
}

@media (max-width: 1200px) {
    .navbar-shell .nav-right {
        width: 100%;
        justify-content: flex-start;
    }
    .navbar-shell .nav-center {
        width: 100%;
    }
}

/* RTL text mode only (layout stays identical to FR/EN) */
body.rtl-text {
    direction: ltr;
}

body.rtl-text .app-shell h1,
body.rtl-text .app-shell h2,
body.rtl-text .app-shell h3,
body.rtl-text .app-shell h4,
body.rtl-text .app-shell h5,
body.rtl-text .app-shell h6,
body.rtl-text .app-shell p,
body.rtl-text .app-shell label,
body.rtl-text .app-shell .text-muted,
body.rtl-text .app-shell .alert,
body.rtl-text .form-control,
body.rtl-text .form-select,
body.rtl-text textarea,
body.rtl-text .table th,
body.rtl-text .table td {
    direction: rtl;
    text-align: right;
    unicode-bidi: plaintext;
}

body.rtl-text .navbar-shell {
    direction: ltr !important;
}

body.rtl-text .navbar-shell .nav-center,
body.rtl-text .navbar-shell .nav-menu-list,
body.rtl-text .navbar-shell .nav-right,
body.rtl-text .navbar-shell .nav-left {
    direction: ltr !important;
}

body.rtl-text .navbar-shell .nav-link {
    direction: rtl;
    unicode-bidi: isolate;
    text-align: right;
}

/* Global backgrounds on all pages (except landing which has its own system) */
body:not(.landing-premium) {
    background-color: #eef3ff;
    position: relative;
}

body.auth-ui {
    background: linear-gradient(180deg, #eef3ff 0%, #f8fbff 100%);
}

body.auth-ui .app-bg-shape {
    opacity: 0.65;
}

body:not(.landing-premium)::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: url("/static/images/bg-light.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.85;
    pointer-events: none;
}

body.auth-ui::before {
    background-image: url("/static/images/bg-light.png");
    opacity: 0.95;
}

.global-bg {
    min-height: 100vh;
    background-image: url("/static/images/bg-light.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

body.landing-premium .global-bg {
    background: transparent;
}

/* Stronger background for auth pages */
body.auth-ui .global-bg::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(820px 420px at 8% 8%, rgba(59, 130, 246, 0.18), transparent 60%),
        radial-gradient(820px 420px at 92% 12%, rgba(255, 138, 0, 0.12), transparent 60%),
        radial-gradient(700px 380px at 50% 100%, rgba(59, 130, 246, 0.1), transparent 70%);
    z-index: -1;
}

body.auth-ui .global-bg::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
    z-index: -1;
}

.card,
.app-card,
.hero-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.app-footer {
    background: linear-gradient(120deg, #0f172a 0%, #1e3a8a 55%, #0b1f4a 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: #f8fafc;
}

.app-footer .footer-text,
.app-footer .footer-links a,
.app-footer .footer-brand-block strong {
    color: #f8fafc !important;
}

.app-footer .footer-links a:hover {
    color: #dbeafe !important;
}

/* Why Us + Guide premium polish (match homepage feel) */
.whyus-page {
    display: grid;
    gap: 18px;
}

.whyus-premium .whyus-hero {
    border-radius: 20px;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
}

.whyus-premium .whyus-steps-block {
    border-radius: 20px;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.1);
}

.whyus-premium .whyus-step {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.whyus-premium .whyus-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    border-color: rgba(59, 130, 246, 0.2);
}

.whyus-premium .whyus-grid-premium .whyus-card {
    border-radius: 18px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.whyus-premium .whyus-grid-premium .whyus-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.whyus-premium .whyus-chips-block {
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.whyus-premium .whyus-chips span {
    background: #ffffff;
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #0f172a;
    font-weight: 700;
}

.whyus-premium .whyus-chips span:hover {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

.whyus-premium .lp-whyus-card {
    border-radius: 22px;
    box-shadow: 0 24px 50px rgba(12, 18, 30, 0.14);
}

.whyus-premium .lp-whyus-mission {
    background:
        radial-gradient(220px 120px at 12% 10%, rgba(59, 130, 246, 0.12), transparent 60%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(243, 248, 255, 0.98));
    border: 1px solid rgba(59, 130, 246, 0.18);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

.whyus-premium .lp-whyus-mission p {
    color: #1f2937;
    font-weight: 600;
}

.whyus-page .hero-card,
.whyus-page .app-card,
.whyus-page .whyus-card {
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.whyus-page h1,
.whyus-page h2,
.whyus-page h3 {
    font-family: "Poppins", "Inter", sans-serif;
    letter-spacing: -0.01em;
}

.whyus-page .whyus-hero {
    padding: 28px 30px;
}

.whyus-page .whyus-hero .h3 {
    font-size: clamp(1.8rem, 2.8vw, 2.4rem);
    font-weight: 800;
}

.whyus-page .whyus-hero p {
    color: #334155;
    font-size: 1rem;
}

.whyus-page .lp-whyus-card {
    border-radius: 20px;
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.08);
}

.whyus-page .whyus-card {
    transition: transform .18s ease, box-shadow .18s ease;
}

.whyus-page .whyus-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 46px rgba(15, 23, 42, 0.12);
}

.whyus-page .whyus-grid {
    gap: 16px;
}

.whyus-page .whyus-chips span {
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.25);
    background: #ffffff;
    color: #0f172a;
    font-weight: 600;
    padding: 6px 12px;
}

.guide-hero {
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    background: #ffffff;
    padding: 26px 28px;
}

.guide-hero h1 {
    font-size: clamp(1.7rem, 2.6vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.guide-hero p {
    color: #334155;
}

.guide-page .guide-kicker {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
    color: #1d4ed8;
    box-shadow: 0 10px 18px rgba(59, 130, 246, 0.14);
}

.guide-steps .guide-step,
.guide-common,
.guide-faq {
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
    background: #ffffff;
}

/* Guide page 10/10 polish */
.guide-page .guide-hero {
    border-radius: 20px;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
}

.guide-page .guide-steps {
    overflow: hidden;
}

.guide-page .guide-step {
    border-radius: 14px;
    padding: 16px 18px;
    background: #ffffff;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.guide-page .guide-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    border-color: rgba(59, 130, 246, 0.2);
}

.guide-page .guide-step .step-icon {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.24));
    color: #1d4ed8;
}

.guide-page .guide-timeline {
    position: relative;
}

/* Removed timeline bar for cleaner guide steps */
.guide-page .guide-timeline::before {
    content: none;
}

.guide-page .guide-common,
.guide-page .guide-faq {
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.guide-page .guide-faq {
    background:
        radial-gradient(520px 220px at 86% 12%, rgba(59, 130, 246, 0.12), transparent 60%),
        #ffffff;
}

.guide-page .guide-common .guide-list i {
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
}

/* Hero background on top/bottom sections (why us, guide, pricing) */
.bg-hero-top,
.bg-hero-bottom {
    background-image: url("/static/images/bg-hero.png") !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important;
}

/* Modern SaaS refresh */
:root {
    --saas-bg: #f8fafc;
    --saas-surface: #ffffff;
    --saas-soft: #f1f5f9;
    --saas-line: #e2e8f0;
    --saas-text: #0f172a;
    --saas-muted: #64748b;
    --saas-primary-1: #ff8a00;
    --saas-primary-2: #ffb347;
    --saas-secondary-1: #3b82f6;
    --saas-secondary-2: #60a5fa;
    --saas-radius: 12px;
    --saas-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

body {
    font-family: "Inter", "Poppins", "Noto Sans", sans-serif;
    color: var(--saas-text);
    background: linear-gradient(180deg, #ffffff 0%, #f3f6ff 100%);
    letter-spacing: .01em;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-title {
    font-family: "Poppins", "Inter", sans-serif;
    letter-spacing: -0.01em;
}

.app-bg-shape {
    background: repeating-linear-gradient(130deg, rgba(148, 163, 184, 0.06) 0, rgba(148, 163, 184, 0.06) 1px, transparent 1px, transparent 24px);
    opacity: 0.55;
}

.app-navbar,
body.auth-ui .app-navbar {
    background: linear-gradient(180deg, #ffffff 0%, #f3f6ff 100%) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25) !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.app-navbar .nav-link,
.app-navbar .navbar-brand,
.app-navbar .brand-title,
.app-navbar .brand-subtitle {
    color: var(--saas-text) !important;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus {
    background: rgba(59, 130, 246, 0.12);
    color: var(--saas-text) !important;
}

.app-navbar-floating {
    border-radius: 16px !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
}

.app-tagline {
    background: linear-gradient(90deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--saas-line);
    color: var(--saas-muted);
}

.app-card,
.card,
.hero-card,
.metric-card,
.table-card,
.quote-mobile-card,
.empty-state-card,
.qx-header,
.qx-filter,
.qx-table-wrap,
.qx-empty,
.qx-mobile {
    background: var(--saas-surface) !important;
    border: 1px solid var(--saas-line) !important;
    border-radius: var(--saas-radius) !important;
    box-shadow: var(--saas-shadow) !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* App pages premium polish */
.table-card,
.qx-table-wrap,
.qx-header,
.qx-filter {
    border-radius: 18px !important;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1) !important;
}

.table-card .card-body,
.qx-header,
.qx-filter {
    padding: 18px 20px !important;
}

.qx-table-wrap .table-responsive,
.table-card .table-responsive {
    border-radius: 16px;
    overflow: hidden;
}

.saas-table thead th,
.qx-table thead th,
.admin-data-table thead th {
    background: #eef2ff !important;
    color: #1e293b !important;
}

.saas-table tbody tr:nth-child(even),
.qx-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.saas-table tbody tr:hover,
.qx-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.08) !important;
}

.qx-metric {
    border-radius: 16px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.qx-metric:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
}

.app-card:hover,
.metric-card:hover,
.qx-metric:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-2px);
}

.hero-card:hover,
.pricing-card:hover,
.whyus-card:hover,
.guide-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
    border-color: rgba(59, 130, 246, 0.2);
}

.form-control,
.form-select,
.input-group-text {
    border-radius: var(--saas-radius) !important;
    border-color: #cbd5e1 !important;
    background-color: #ffffff !important;
}

.btn {
    border-radius: var(--saas-radius);
    font-weight: 700;
    padding: 10px 18px;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

.btn-primary,
body.auth-ui .btn-primary,
.btn-pill-accent {
    background: linear-gradient(135deg, var(--saas-primary-1) 0%, var(--saas-primary-2) 100%) !important;
    border-color: #ff8a00 !important;
    color: #1f1300 !important;
    box-shadow: 0 12px 24px rgba(255, 138, 0, 0.28);
}

.btn-primary:hover,
.btn-primary:focus,
body.auth-ui .btn-primary:hover,
.btn-pill-accent:hover {
    background: linear-gradient(135deg, #ff9a1a 0%, #ffc166 100%) !important;
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 16px 30px rgba(255, 138, 0, 0.25);
}

.btn-outline-primary,
body.auth-ui .btn-outline-primary,
.btn-outline-secondary,
.btn-pill-soft {
    color: #1d4ed8 !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
    background: rgba(59, 130, 246, 0.08) !important;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-pill-soft:hover {
    background: rgba(59, 130, 246, 0.16) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.18);
}

main.app-shell {
    padding-top: 1.6rem !important;
    padding-bottom: 2rem !important;
}

section,
.section {
    scroll-margin-top: 90px;
}

body.auth-ui {
    background: #f8fafc;
}

body.auth-ui .app-bg-shape {
    opacity: 0.35;
}

.auth-page-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
    padding: 24px;
}

@media (max-width: 768px) {
    .auth-page-card {
        padding: 20px;
        border-radius: 14px;
    }
}

.btn-logout {
    background: #ffffff !important;
    border: 1px solid rgba(220, 38, 38, 0.35) !important;
    color: #dc2626 !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    font-weight: 600 !important;
    transition: all 180ms ease;
}

.btn-logout:hover {
    background: rgba(220, 38, 38, 0.08) !important;
    border-color: rgba(220, 38, 38, 0.55) !important;
}

.btn-logout:focus,
.btn-logout:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.18) !important;
}

.btn-logout:active {
    transform: translateY(1px);
}

.kpi-card {
    min-height: 120px;
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06) !important;
}

.kpi-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.kpi-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
}

.kpi-card {
    border-radius: 18px !important;
    background: #ffffff;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12) !important;
    border-color: rgba(59, 130, 246, 0.22) !important;
}

.admin-stat-tile {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    min-height: 110px;
}

.admin-stat-tile .stat-value {
    font-size: 1.7rem;
    font-weight: 800;
}

.admin-stat-tile {
    border-radius: 18px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.admin-stat-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
    border-color: rgba(59, 130, 246, 0.2);
}

body.auth-ui .table-card,
body.auth-ui .admin-users-panel,
body.auth-ui .admin-users-table-card {
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
}

body.auth-ui .table-responsive {
    border-radius: 16px;
    overflow: hidden;
}

body.auth-ui .table thead th,
body.auth-ui .saas-table thead th,
body.auth-ui .qx-table thead th,
body.auth-ui .admin-data-table thead th {
    background: #f1f5f9 !important;
    color: #334155 !important;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.auth-ui .table tbody td,
body.auth-ui .saas-table tbody td,
body.auth-ui .qx-table tbody td,
body.auth-ui .admin-data-table tbody td {
    padding: 12px 14px;
}

body.auth-ui .table tbody tr:hover,
body.auth-ui .saas-table tbody tr:hover,
body.auth-ui .qx-table tbody tr:hover,
body.auth-ui .admin-data-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.06) !important;
}

/* Softer row hover + better contrast in dashboard tables */
body.auth-ui .saas-table tbody tr,
body.auth-ui .qx-table tbody tr,
body.auth-ui .admin-data-table tbody tr {
    transition: background .16s ease;
}

body.auth-ui .saas-table tbody tr:hover,
body.auth-ui .qx-table tbody tr:hover,
body.auth-ui .admin-data-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.08) !important;
}

body.auth-ui .saas-table thead th,
body.auth-ui .qx-table thead th,
body.auth-ui .admin-data-table thead th {
    font-weight: 700;
    letter-spacing: 0.06em;
}

/* Reveal animations (public pages like pricing/why/guide) */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 520ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Navbar dropdown animation */
.navbar .dropdown-menu {
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
    padding: 10px;
}

.dropdown-menu-anim {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    visibility: hidden;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.dropdown-menu-anim.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.dropdown-menu-anim .dropdown-item {
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 600;
    color: #0f172a;
}

.dropdown-menu-anim .dropdown-item:hover,
.dropdown-menu-anim .dropdown-item:focus {
    background: rgba(59, 130, 246, 0.12);
    color: #0f172a;
}
