@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
    color-scheme: light;
    --brand-ink: #f5f9ff;
    --brand-navy: #18324f;
    --brand-navy-soft: #e9f3ff;
    --brand-glass: rgba(255, 255, 255, 0.88);
    --brand-paper: #000010;
    --brand-muted: #60748c;
    --brand-line: #dce8f5;
    --brand-yellow: #2878d0;
    --brand-yellow-light: #1768b9;
    --brand-positive: #16856b;
    --brand-negative: #b4233b;
    --brand-shadow: 0 18px 44px rgba(45, 89, 139, 0.1);
}

body.saas-public,
body.saas-superadmin-login,
body.saas-superadmin,
body.saas-business-login,
body.saas-dashboard {
    position: relative;
    isolation: isolate;
    color: var(--brand-paper);
    font-family: "DM Sans", "Segoe UI", sans-serif;
    background-color: var(--brand-ink) !important;
    background-image:
        linear-gradient(180deg, rgba(7, 15, 34, 0.3), rgba(7, 15, 34, 0.52)),
        url("../images/fondo.jpg") !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-attachment: fixed !important;
}

body.saas-public::before,
body.saas-superadmin-login::before,
body.saas-superadmin::before,
body.saas-business-login::before,
body.saas-dashboard::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 22% 28%, rgba(37, 99, 180, 0.22), transparent 28%),
        radial-gradient(ellipse at 78% 72%, rgba(245, 158, 11, 0.14), transparent 28%),
        repeating-linear-gradient(128deg, transparent 0 92px, rgba(251, 191, 36, 0.08) 93px, transparent 95px 184px);
    background-size: 150% 150%, 160% 160%, 220% 220%;
    content: "";
    animation: brand-atmosphere 26s ease-in-out infinite alternate;
}

body.saas-public::after,
body.saas-superadmin-login::after,
body.saas-superadmin::after,
body.saas-business-login::after,
body.saas-dashboard::after {
    position: fixed;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(112deg, transparent 25%, rgba(191, 219, 254, 0.07) 48%, transparent 68%);
    content: "";
    transform: translateX(-110%);
    animation: brand-light-pass 18s ease-in-out infinite;
}

/* Landing: sin capas animadas; el fondo es solo fondo.jpg (definido en body.saas-public). */
body.saas-public::before,
body.saas-public::after {
    content: none;
    animation: none;
}

body.saas-public *,
body.saas-superadmin-login *,
body.saas-superadmin *,
body.saas-business-login *,
body.saas-dashboard * { box-sizing: border-box; }

body.saas-public a,
body.saas-superadmin-login a,
body.saas-superadmin a,
body.saas-business-login a,
body.saas-dashboard a { transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease; }

body.saas-public .topbar,
body.saas-superadmin .topbar {
    background: rgba(11, 17, 32, 0.72);
    border-color: var(--brand-line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body.saas-public .brand,
body.saas-superadmin .brand { color: var(--brand-paper); }

body.saas-public .brand-mark,
body.saas-superadmin .brand-mark {
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-yellow-light), var(--brand-yellow));
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.24);
}

body.saas-public .brand span,
body.saas-superadmin .brand span,
body.saas-public .highlight { color: var(--brand-yellow-light); }

body.saas-public .btn,
body.saas-superadmin .btn { border-radius: 14px; }

body.saas-public .btn-primary,
body.saas-superadmin .btn-primary {
    background: linear-gradient(120deg, var(--brand-yellow-light), var(--brand-yellow));
    color: #111827;
}

body.saas-public .btn-secondary,
body.saas-superadmin .btn-secondary {
    border-color: var(--brand-line);
    background: rgba(255, 255, 255, 0.045);
    color: var(--brand-paper);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.saas-public .nav-links a:hover,
body.saas-superadmin .action-link:hover { color: var(--brand-yellow-light); }

body.saas-public .hero { position: relative; }
body.saas-public .hero h1,
body.saas-public .section-head h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
    letter-spacing: 0;
}
body.saas-public .hero h1 { font-size: 4.4rem; }
body.saas-public .section-head h2 { font-size: 2.6rem; }

body.saas-public .eyebrow,
body.saas-public .chip,
body.saas-public .feature-icon {
    border-color: rgba(251, 191, 36, 0.28);
    background-color: rgba(245, 158, 11, 0.12);
    color: var(--brand-yellow-light);
}

body.saas-public .stat,
body.saas-public .visual-card,
body.saas-public .mini-card,
body.saas-public .feature-card {
    border: 1px solid var(--brand-line);
    border-radius: 22px;
    background: rgba(17, 24, 39, 0.54);
    box-shadow: var(--brand-shadow);
    backdrop-filter: blur(18px) saturate(125%);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
}

body.saas-public .visual-card { border-radius: 28px; }
body.saas-public .visual-top,
body.saas-public .list li { border-color: var(--brand-line); }
body.saas-public .feature-card { transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease; }
body.saas-public .feature-card:hover { transform: translateY(-4px); border-color: rgba(251, 191, 36, 0.35); background: rgba(24, 36, 58, 0.72); }
body.saas-public .features { position: relative; }
body.saas-public .feature-icon { border-radius: 15px; }

body.saas-superadmin-login main {
    border: 1px solid var(--brand-line);
    border-radius: 28px;
    background: rgba(17, 24, 39, 0.58);
    box-shadow: var(--brand-shadow);
    backdrop-filter: blur(22px) saturate(125%);
    -webkit-backdrop-filter: blur(22px) saturate(125%);
}

body.saas-superadmin-login .brand,
body.saas-superadmin-login h1 { color: var(--brand-yellow-light); }
body.saas-superadmin-login input,
body.saas-superadmin-login button { border-radius: 14px; }
body.saas-superadmin-login input { border-color: var(--brand-line); background: rgba(8, 15, 31, 0.46); color: var(--brand-paper); }
body.saas-superadmin-login input:focus-visible { outline: 3px solid rgba(251, 191, 36, 0.3); border-color: var(--brand-yellow-light); }
body.saas-superadmin-login button { background: linear-gradient(120deg, var(--brand-yellow-light), var(--brand-yellow)); color: #111827; }
body.saas-superadmin-login .back:hover { color: var(--brand-yellow-light); }

body.saas-superadmin .topbar-inner { min-height: 76px; }
body.saas-superadmin .page { position: relative; }
body.saas-superadmin .topbar {
    background: rgba(255,255,255,0.9);
    box-shadow: 0 4px 20px rgba(45,89,139,0.06);
}
body.saas-superadmin .card,
body.saas-superadmin .panel {
    border: 1px solid var(--brand-line);
    border-radius: 22px;
    background: rgba(255,255,255,0.9);
    box-shadow: var(--brand-shadow);
    backdrop-filter: blur(18px) saturate(115%);
    -webkit-backdrop-filter: blur(18px) saturate(115%);
}
body.saas-superadmin .card { transition: transform 200ms ease, border-color 200ms ease; }
body.saas-superadmin .card:hover { transform: translateY(-3px); border-color: rgba(40,120,208,0.3); }
body.saas-superadmin .card small { color: var(--brand-muted); }
body.saas-superadmin .card strong { color: var(--brand-navy); }
body.saas-superadmin .panel h2 { font-family: "Playfair Display", Georgia, serif; font-weight: 500; }
body.saas-superadmin .panel h2,
body.saas-superadmin label { color: var(--brand-paper); }
body.saas-superadmin .form-note,
body.saas-superadmin .notice { color: var(--brand-muted); }
body.saas-superadmin input,
body.saas-superadmin select,
body.saas-superadmin button { min-height: 48px; border-radius: 13px; }
body.saas-superadmin input,
body.saas-superadmin select { border-color: var(--brand-line); background: rgba(255,255,255,0.96); color: var(--brand-paper); }
body.saas-superadmin input { border-color: var(--brand-line); background: rgba(255,255,255,0.96); color: var(--brand-paper); }
body.saas-superadmin input::placeholder { color: var(--brand-muted); opacity: 0.8; }
body.saas-superadmin input:focus-visible,
body.saas-superadmin select:focus-visible { outline: 3px solid rgba(40,120,208,0.18); border-color: var(--brand-yellow-light); }
body.saas-superadmin button[type="submit"] { background: linear-gradient(120deg, var(--brand-yellow-light), var(--brand-yellow)); color: #fff; }
body.saas-superadmin .plan-details { border-color: var(--brand-line); background: rgba(233,243,255,0.78); }
body.saas-superadmin table { min-width: 720px; }
body.saas-superadmin th { color: var(--brand-muted); }
body.saas-superadmin td,
body.saas-superadmin th { border-color: var(--brand-line); }
body.saas-superadmin .status.active { background: rgba(110, 231, 183, 0.12); color: var(--brand-positive); }
body.saas-superadmin .status.pending { background: rgba(251, 191, 36, 0.12); color: var(--brand-yellow-light); }
body.saas-superadmin .status.inactive { background: rgba(203, 213, 225, 0.1); color: var(--brand-muted); }
body.saas-superadmin .table-scroll { overflow-x: auto; }
body.saas-superadmin .header-actions form button { width: auto; padding: 0 18px; }

body.saas-business-login .shell {
    border: 1px solid var(--brand-line);
    border-radius: 28px;
    background: rgba(17, 24, 39, 0.58);
    box-shadow: var(--brand-shadow);
    backdrop-filter: blur(22px) saturate(125%);
    -webkit-backdrop-filter: blur(22px) saturate(125%);
}
body.saas-business-login .brand-mark { border-radius: 14px; }
body.saas-business-login h2 { font-family: "Playfair Display", Georgia, serif; font-weight: 500; }
body.saas-business-login input,
body.saas-business-login button { min-height: 52px; border-radius: 14px; }
body.saas-business-login input { border-color: var(--brand-line); background: rgba(8, 15, 31, 0.46); }
body.saas-business-login input:focus-visible { outline: 3px solid rgba(251, 191, 36, 0.28); border-color: var(--brand-yellow-light); }
body.saas-business-login button { background: linear-gradient(120deg, var(--brand-yellow-light), var(--brand-yellow)); color: #111827; }
body.saas-business-login .link:hover { color: var(--brand-yellow-light); }

body.saas-dashboard { min-height: 100vh; }
body.saas-dashboard .layout { position: relative; grid-template-columns: 252px minmax(0, 1fr); }
body.saas-dashboard .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid var(--brand-line);
    background: rgba(9, 15, 29, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
body.saas-dashboard .brand { color: var(--brand-paper); }
body.saas-dashboard .brand span { color: var(--brand-yellow-light); }
body.saas-dashboard .nav a { border: 1px solid transparent; border-radius: 13px; }
body.saas-dashboard .nav a:hover { border-color: var(--brand-line); background: rgba(255,255,255,0.055); }
body.saas-dashboard .nav a.active { background: rgba(245, 158, 11, 0.16); color: var(--brand-yellow-light); }
body.saas-dashboard .content { min-width: 0; color: var(--brand-paper); }
body.saas-dashboard .topbar { padding: 18px 22px; border: 1px solid var(--brand-line); border-radius: 20px; background: rgba(17, 24, 39, 0.52); backdrop-filter: blur(16px); }
body.saas-dashboard .topbar h2 { margin: 6px 0 0; font-family: "Playfair Display", Georgia, serif; font-size: 2rem; font-weight: 500; }
body.saas-dashboard .card,
body.saas-dashboard .panel { border: 1px solid var(--brand-line); border-radius: 20px; background: rgba(17, 24, 39, 0.58); box-shadow: var(--brand-shadow); backdrop-filter: blur(16px); }
body.saas-dashboard .card { transition: transform 200ms ease, border-color 200ms ease; }
body.saas-dashboard .card:hover { transform: translateY(-3px); border-color: rgba(251, 191, 36, 0.28); }
body.saas-dashboard .card small { color: var(--brand-muted); }
body.saas-dashboard .card strong { color: var(--brand-yellow-light); }
body.saas-dashboard table { min-width: 560px; }
body.saas-dashboard th,
body.saas-dashboard td { border-color: var(--brand-line); }
body.saas-dashboard th { color: var(--brand-muted); }
body.saas-dashboard .table-scroll { overflow-x: auto; }
body.saas-dashboard .empty-state { padding: 28px 12px; color: var(--brand-muted); text-align: center; }
body.saas-dashboard .user-role { color: var(--brand-muted); font-size: 0.86rem; }
body.saas-dashboard .logout-button { border: 1px solid var(--brand-line); border-radius: 12px; background: rgba(255,255,255,0.04); color: var(--brand-paper); }

@keyframes brand-atmosphere {
    from { background-position: 0% 0%, 100% 100%, 0% 0%; }
    to { background-position: 35% 28%, 62% 38%, 100% 100%; }
}
@keyframes brand-light-pass {
    0%, 28% { transform: translateX(-110%); }
    72%, 100% { transform: translateX(110%); }
}

@media (max-width: 900px) {
    body.saas-public .hero h1 { font-size: 3.6rem; }
    body.saas-public .section-head h2 { font-size: 2.25rem; }
    body.saas-dashboard .layout { grid-template-columns: 1fr; }
    body.saas-dashboard .sidebar { position: relative; height: auto; padding: 16px 20px; border-right: 0; border-bottom: 1px solid var(--brand-line); }
    body.saas-dashboard .nav { display: flex; gap: 6px; overflow-x: auto; }
    body.saas-dashboard .nav a { flex: 0 0 auto; }
    body.saas-dashboard .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    body.saas-superadmin .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.saas-superadmin .form-grid { grid-template-columns: 1fr; }
    body.saas-superadmin .full { grid-column: auto; }
}

@media (max-width: 640px) {
    body.saas-public,
    body.saas-superadmin-login,
    body.saas-superadmin,
    body.saas-business-login,
    body.saas-dashboard { background-attachment: scroll !important; }
    body.saas-public .hero h1 { font-size: 2.65rem; }
    body.saas-public .section-head h2 { font-size: 2rem; }
    body.saas-public .topbar { padding: 14px 0; }
    body.saas-public .topbar-inner { align-items: flex-start; }
    body.saas-public .nav-links { gap: 6px; }
    body.saas-public .nav-links a { padding: 9px 10px; }
    body.saas-public .stats,
    body.saas-public .feature-grid { grid-template-columns: 1fr; }
    body.saas-public .stat { padding: 15px; }
    body.saas-superadmin-login main,
    body.saas-business-login .shell { border-radius: 0; }
    body.saas-superadmin .stats { grid-template-columns: 1fr; }
    body.saas-superadmin .panel { padding: 18px; }
    body.saas-dashboard .content { padding: 18px; }
    body.saas-dashboard .topbar { align-items: flex-start; gap: 16px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    body.saas-public::before,
    body.saas-public::after,
    body.saas-superadmin-login::before,
    body.saas-superadmin-login::after,
    body.saas-superadmin::before,
    body.saas-superadmin::after,
    body.saas-business-login::before,
    body.saas-business-login::after,
    body.saas-dashboard::before,
    body.saas-dashboard::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}

html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body { overflow-x:hidden; }
img,svg,video,canvas { max-width:100%; }

body.saas-public *,
body.saas-superadmin-login *,
body.saas-superadmin *,
body.saas-business-login *,
body.saas-dashboard * { box-sizing:border-box; }

body.saas-public input,
body.saas-public select,
body.saas-public textarea,
body.saas-public button,
body.saas-superadmin input,
body.saas-superadmin select,
body.saas-superadmin textarea,
body.saas-superadmin button,
body.saas-business-login input,
body.saas-business-login select,
body.saas-business-login textarea,
body.saas-business-login button,
body.saas-dashboard input,
body.saas-dashboard select,
body.saas-dashboard textarea,
body.saas-dashboard button { max-width:100%; }

body.saas-dashboard .table-scroll,
body.saas-superadmin .table-scroll { max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }

@media(max-width:900px) {
    body.saas-dashboard .layout { grid-template-columns:minmax(0,1fr); }
    body.saas-dashboard .sidebar { position:relative; top:auto; width:100%; height:auto; padding:14px 16px; border-right:0; border-bottom:1px solid var(--brand-line); }
    body.saas-dashboard .nav { display:flex; width:100%; gap:6px; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin; }
    body.saas-dashboard .nav a { flex:0 0 auto; white-space:nowrap; }
    body.saas-dashboard .content { min-width:0; padding:20px; }
    body.saas-dashboard .sales-grid,
    body.saas-dashboard .services-layout,
    body.saas-dashboard .inventory-grid,
    body.saas-dashboard .grid { grid-template-columns:minmax(0,1fr); }
}

@media(max-width:640px) {
    body.saas-public .container,
    body.saas-superadmin .page,
    body.saas-dashboard main { width:calc(100% - 28px); max-width:100%; }
    body.saas-public .topbar-inner { flex-wrap:wrap; }
    body.saas-public .nav-links { max-width:100%; overflow-x:auto; flex-wrap:nowrap; overscroll-behavior-x:contain; }
    body.saas-public .nav-links a { flex:0 0 auto; white-space:nowrap; }
    body.saas-dashboard .content { padding:16px 14px 28px; }
    body.saas-dashboard .cards { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
    body.saas-dashboard .topbar { align-items:flex-start; flex-wrap:wrap; gap:14px; }
    body.saas-dashboard .topbar form { width:100%; }
    body.saas-dashboard .topbar form button { width:auto; min-width:140px; }
    body.saas-dashboard .header,
    body.saas-dashboard .app-header { width:calc(100% - 28px); max-width:100%; }
    body.saas-dashboard .panel,
    body.saas-dashboard .service-form,
    body.saas-dashboard .service-list { padding:16px; }
    body.saas-dashboard input:not([type="checkbox"]):not([type="radio"]),
    body.saas-dashboard select,
    body.saas-dashboard textarea,
    body.saas-dashboard button,
    body.saas-superadmin input:not([type="checkbox"]):not([type="radio"]),
    body.saas-superadmin select,
    body.saas-superadmin textarea,
    body.saas-superadmin button,
    body.saas-business-login input:not([type="checkbox"]):not([type="radio"]),
    body.saas-business-login select,
    body.saas-business-login textarea,
    body.saas-business-login button { min-height:44px; font-size:16px; }
    body.saas-dashboard input[type="checkbox"],
    body.saas-dashboard input[type="radio"],
    body.saas-superadmin input[type="checkbox"],
    body.saas-superadmin input[type="radio"] { width:20px; height:20px; min-height:20px; }
    body.saas-dashboard .table-scroll table,
    body.saas-superadmin .table-scroll table { min-width:620px; }
    body.saas-dashboard .share-panel,
    body.saas-dashboard .calendar-top,
    body.saas-dashboard .calendar-actions { min-width:0; }
}

@media(max-width:420px) {
    body.saas-dashboard .cards { grid-template-columns:minmax(0,1fr); }
    body.saas-dashboard .stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
    body.saas-dashboard .stat:last-child { grid-column:1 / -1; }
    body.saas-dashboard .sale-line,
    body.saas-dashboard .product-row { min-width:0; }
}

@media(prefers-reduced-motion:reduce) {
    body.saas-public *,
    body.saas-superadmin-login *,
    body.saas-superadmin *,
    body.saas-business-login *,
    body.saas-dashboard * { scroll-behavior:auto !important; transition-duration:.01ms !important; }
}

body.saas-public,
body.saas-superadmin-login,
body.saas-superadmin,
body.saas-business-login,
body.saas-dashboard {
    color: #000010 !important;
    background-color: #f5f9ff !important;
    background-image:
        radial-gradient(ellipse at 88% 4%, rgba(173, 211, 255, 0.34), transparent 31%),
        linear-gradient(145deg, #f9fbff 0%, #f2f7fd 58%, #edf5ff 100%) !important;
    background-attachment: scroll !important;
    font-family: "DM Sans", "Segoe UI", sans-serif !important;
}

body.saas-public::before,
body.saas-public::after,
body.saas-superadmin-login::before,
body.saas-superadmin-login::after,
body.saas-superadmin::before,
body.saas-superadmin::after,
body.saas-business-login::before,
body.saas-business-login::after,
body.saas-dashboard::before,
body.saas-dashboard::after { content: none !important; animation: none !important; }

body.saas-public .topbar,
body.saas-superadmin .topbar,
body.saas-dashboard .topbar {
    border-color: #dce8f5 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 8px 28px rgba(45, 89, 139, 0.06);
    backdrop-filter: blur(16px);
}

body.saas-public .brand,
body.saas-public .hero h1,
body.saas-public .section-head h2,
body.saas-public .feature-card h3,
body.saas-public .plan-card h3,
body.saas-public .list strong,
body.saas-superadmin .brand { color: #000010 !important; }

body.saas-public .brand span,
body.saas-public .highlight,
body.saas-public .plan-badge,
body.saas-public .plan-card.featured .plan-badge { color: #1768b9 !important; }

body.saas-public .brand-mark,
body.saas-superadmin .brand-mark {
    border-radius: 12px !important;
    background: linear-gradient(145deg, #72b8f5, #2878d0) !important;
    box-shadow: 0 8px 20px rgba(40, 120, 208, 0.18) !important;
    color: #fff !important;
}

body.saas-public .btn-primary,
body.saas-superadmin .btn-primary,
body.saas-superadmin button[type="submit"],
body.saas-superadmin-login button,
body.saas-business-login button,
body.saas-dashboard button[type="submit"]:not(.danger):not(.logout-button) {
    border-color: #103b66 !important;
    background: linear-gradient(135deg, #1d5b91, #103b66) !important;
    box-shadow: 0 8px 18px rgba(16, 59, 102, 0.18) !important;
    color: #fff !important;
}

body.saas-public .btn-secondary,
body.saas-superadmin .btn-secondary {
    border-color: #d5e3f1 !important;
    background: #fff !important;
    color: #000010 !important;
}

body.saas-public .nav-links a:not(.btn),
body.saas-public .lead,
body.saas-public .section-head p,
body.saas-public .feature-card p,
body.saas-public .plan-period,
body.saas-public .plan-extra,
body.saas-public .pricing-note,
body.saas-public .plan-features li,
body.saas-public .plan-modules li,
body.saas-public .list li { color: #60748c !important; }

body.saas-public .launch-banner {
    border-color: #d6e8fb !important;
    background: linear-gradient(90deg, #eaf4ff, #f8fbff 50%, #eaf4ff) !important;
    color: #000010 !important;
}

body.saas-public .eyebrow,
body.saas-public .chip,
body.saas-public .feature-icon {
    border-color: #d5e7f9 !important;
    background: #eaf4ff !important;
    color: #1768b9 !important;
}

body.saas-public .stat,
body.saas-public .visual-card,
body.saas-public .mini-card,
body.saas-public .feature-card,
body.saas-public .plan-card {
    border-color: #dce8f5 !important;
    background: #fff !important;
    box-shadow: 0 16px 38px rgba(45, 89, 139, 0.08) !important;
    color: #000010 !important;
    backdrop-filter: none !important;
}

body.saas-public .visual-card { background: linear-gradient(145deg, #fff, #f0f7ff) !important; }
body.saas-public .plan-card.featured { border-color: #83b7e8 !important; background: linear-gradient(155deg, #f0f7ff, #fff 64%) !important; }
body.saas-public .plan-capacity { border-color: #dce8f5 !important; background: #f5f9ff !important; }
body.saas-public .visual-top,
body.saas-public .list li,
body.saas-public .plan-annual { border-color: #e3edf7 !important; }
body.saas-public .feature-card { transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
body.saas-public .feature-card:hover { transform: translateY(-3px); border-color: #a9cbed !important; box-shadow: 0 20px 42px rgba(45, 89, 139, 0.12) !important; }

body.saas-superadmin-login main,
body.saas-business-login .login-layout,
body.saas-business-login .shell,
body.saas-business-login .booking {
    border-color: #dce8f5 !important;
    background: #fff !important;
    box-shadow: 0 24px 64px rgba(45, 89, 139, 0.12) !important;
    color: #000010 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.saas-business-login .brand-panel {
    border-color: #d5e5f5 !important;
    background: linear-gradient(145deg, #eaf4ff 0%, #f6faff 58%, #e4f1ff 100%) !important;
}

body.saas-business-login .brand-panel::before,
body.saas-business-login .brand-panel::after { content: none !important; animation: none !important; }
body.saas-business-login .login-layout,
body.saas-business-login .brand-copy,
body.saas-business-login .login-panel { animation: none !important; }
body.saas-business-login .brand-copy,
body.saas-business-login .brand-copy h1,
body.saas-business-login .brand-name,
body.saas-business-login .brand-footer { color: #000010 !important; }
body.saas-business-login .brand-copy > p:last-child,
body.saas-business-login .brand-footer { color: #60748c !important; }
body.saas-business-login .brand-symbol { border-color: #b9d7f4 !important; background: #fff !important; color: #1768b9 !important; }
body.saas-business-login .brand-name span,
body.saas-business-login .eyebrow,
body.saas-business-login h1 span,
body.saas-business-login .login-kicker { color: #1768b9 !important; }
body.saas-business-login .login-panel { background: #fff !important; color: #000010 !important; }
body.saas-business-login .login-heading p:last-child,
body.saas-business-login .remember-option,
body.saas-business-login .security-note,
body.saas-business-login .link,
body.saas-business-login .label,
body.saas-business-login label { color: #526982 !important; }

body.saas-superadmin-login h1,
body.saas-superadmin-login .brand,
body.saas-superadmin .page h1,
body.saas-superadmin .panel h2 { color: #000010 !important; }
body.saas-superadmin-login p,
body.saas-superadmin .muted,
body.saas-superadmin label { color: #60748c !important; }

body.saas-dashboard .layout { background: transparent !important; }
body.saas-dashboard .sidebar {
    border-color: #dce8f5 !important;
    background: #fff !important;
    box-shadow: 8px 0 28px rgba(45, 89, 139, 0.04);
    color: #000010 !important;
    backdrop-filter: none !important;
}
body.saas-dashboard .sidebar .brand,
body.saas-dashboard .sidebar .brand span { color: #1768b9 !important; }
body.saas-dashboard .nav a { color: #000010 !important; }
body.saas-dashboard .nav a:hover { border-color: #dce8f5 !important; background: #f3f8ff !important; color: #1768b9 !important; }
body.saas-dashboard .nav a.active { border-color: #c9e0f8 !important; background: #eaf4ff !important; color: #145eae !important; }
body.saas-dashboard .content,
body.saas-dashboard .content h1,
body.saas-dashboard .content h2,
body.saas-dashboard .content h3,
body.saas-dashboard .content strong,
body.saas-dashboard .header strong { color: #000010 !important; }
body.saas-dashboard .content p,
body.saas-dashboard .content small,
body.saas-dashboard .user-role,
body.saas-dashboard .muted { color: #60748c !important; }
body.saas-dashboard .card,
body.saas-dashboard .panel,
body.saas-dashboard .topbar,
body.saas-dashboard .service-form,
body.saas-dashboard .service-list,
body.saas-dashboard .booking,
body.saas-dashboard .share-panel,
body.saas-dashboard .calendar-panel,
body.saas-dashboard .availability-panel,
body.saas-dashboard .calendar-top,
body.saas-dashboard .calendar-actions {
    border-color: #dce8f5 !important;
    background: #fff !important;
    box-shadow: 0 14px 34px rgba(45, 89, 139, 0.07) !important;
    color: #000010 !important;
    backdrop-filter: none !important;
}
body.saas-dashboard .calendar { gap: 1px; background: #dce8f5 !important; }
body.saas-dashboard .day { background: #fff !important; color: #000010 !important; }
body.saas-dashboard .day.today { background: #f0f7ff !important; }
body.saas-dashboard .day-empty { color: #8a9bb0 !important; }
body.saas-dashboard .tabs { border-color: #dce8f5 !important; background: #f3f8ff !important; }
body.saas-dashboard .tab { border-color: transparent !important; background: transparent !important; color: #60748c !important; }
body.saas-dashboard .tab.active { border-color: #c9e0f8 !important; background: #eaf4ff !important; color: #145eae !important; }
body.saas-dashboard .button,
body.saas-dashboard .icon-button { border-color: #d5e3f1 !important; background: #f6faff !important; color: #000010 !important; }
body.saas-dashboard .button-primary { border-color: #103b66 !important; background: #164d7d !important; color: #fff !important; }
body.saas-dashboard .schedule-day { border-color: #dce8f5 !important; background: #f7faff !important; }
body.saas-dashboard .event { border-color: #cfe2f6 !important; border-left-color: #4d9bea !important; background: #eff7ff !important; color: #000010 !important; }
body.saas-dashboard .event-sales { border-color: #c9e0f8 !important; background: #eaf4ff !important; color: #145eae !important; }
body.saas-dashboard .event form button[type="submit"] { border: 0 !important; background: transparent !important; box-shadow: none !important; color: #60748c !important; }
body.saas-dashboard .setup-notice { border-color: #c9e0f8 !important; background: #eff7ff !important; color: #000010 !important; }
body.saas-dashboard .card strong { color: #1768b9 !important; }
body.saas-dashboard .card:hover { border-color: #a9cbed !important; }
body.saas-dashboard .logout-button { border-color: #d5e3f1 !important; background: #fff !important; color: #000010 !important; }
body.saas-dashboard button[type="button"]:not(.button-primary) {
    border-color: #d5e3f1 !important;
    background: #f4f8fd !important;
    box-shadow: none !important;
    color: #000010 !important;
}
body.saas-dashboard .danger { border-color: #e8c8ce !important; background: #fff2f3 !important; color: #a21e35 !important; }
body.saas-superadmin .header-actions button { border-color: #d5e3f1 !important; background: #fff !important; color: #000010 !important; box-shadow: none !important; }
body.saas-dashboard input:not([type="checkbox"]):not([type="radio"]),
body.saas-dashboard select,
body.saas-dashboard textarea,
body.saas-business-login input:not([type="checkbox"]):not([type="radio"]),
body.saas-business-login select,
body.saas-business-login textarea,
body.saas-superadmin input:not([type="checkbox"]):not([type="radio"]),
body.saas-superadmin select,
body.saas-superadmin textarea,
body.saas-superadmin-login input {
    border-color: #cfdeed !important;
    background: #fff !important;
    color: #000010 !important;
    box-shadow: none;
}
body.saas-dashboard input::placeholder,
body.saas-business-login input::placeholder,
body.saas-superadmin input::placeholder { color: #8a9bb0 !important; }
body.saas-dashboard input:focus,
body.saas-dashboard select:focus,
body.saas-dashboard textarea:focus,
body.saas-business-login input:focus-visible,
body.saas-superadmin input:focus-visible,
body.saas-superadmin select:focus-visible,
body.saas-superadmin-login input:focus-visible {
    border-color: #4d9bea !important;
    outline: 3px solid rgba(40, 120, 208, 0.14) !important;
}
body.saas-dashboard table,
body.saas-superadmin table { color: #000010 !important; }
body.saas-dashboard th,
body.saas-superadmin th { color: #60748c !important; }
body.saas-dashboard th,
body.saas-dashboard td,
body.saas-superadmin th,
body.saas-superadmin td { border-color: #e3edf7 !important; }
body.saas-dashboard .empty-state { color: #60748c !important; }
body.saas-public h1,
body.saas-public h2,
body.saas-public h3,
body.saas-superadmin h1,
body.saas-superadmin h2,
body.saas-dashboard h1,
body.saas-dashboard h2,
body.saas-dashboard h3,
body.saas-business-login h1,
body.saas-business-login h2,
body.saas-superadmin-login h1 { font-family: "DM Sans", "Segoe UI", sans-serif !important; font-weight: 700 !important; letter-spacing: -0.035em; }
body.saas-business-login .error,
body.saas-superadmin-login .error { border-color: #d94c62 !important; background: #fff1f3 !important; color: #a21e35 !important; }
body.saas-business-login .notice,
body.saas-superadmin-login .notice { border-color: #75aee5 !important; background: #eff7ff !important; color: #000010 !important; }

@media (max-width: 640px) {
    body.saas-business-login .brand-panel { background: #edf6ff !important; }
    body.saas-business-login .login-panel { background: #fff !important; }
    body.saas-dashboard .sidebar { box-shadow: 0 8px 22px rgba(45, 89, 139, 0.05); }
}

@media (prefers-reduced-motion: reduce) {
    body.saas-public .feature-card,
    body.saas-public .feature-card:hover { transition: none !important; transform: none !important; }
}

body.saas-dashboard .layout { background: #f5f8fc !important; }
body.saas-dashboard .sidebar {
    border-right: 1px solid #e1e9f2 !important;
    background: #fff !important;
    box-shadow: none !important;
}
body.saas-dashboard .sidebar .brand,
body.saas-dashboard .sidebar .brand span {
    color: #000010 !important;
    font-family: "DM Sans", "Segoe UI", sans-serif !important;
}
body.saas-dashboard .sidebar .brand { border-bottom: 1px solid #e8eef5; }
body.saas-dashboard .nav-caption { color: #8292a5 !important; }
body.saas-dashboard .nav a {
    border-radius: 8px !important;
    background: transparent !important;
    color: #000010 !important;
}
body.saas-dashboard .nav a:hover {
    border-left-color: #a7c9e8 !important;
    background: #f3f8fd !important;
    color: #000010 !important;
}
body.saas-dashboard .nav a.active {
    border-left-color: #1768b9 !important;
    background: #eaf4ff !important;
    color: #124f82 !important;
}
body.saas-dashboard .sidebar-note { color: #8292a5 !important; }
body.saas-dashboard .content {
    background:
        radial-gradient(ellipse at 92% 0, rgba(216, 234, 252, .42), transparent 34%),
        #f5f8fc !important;
}
body.saas-dashboard .topbar {
    border: 0 !important;
    border-bottom: 1px solid #dce4ec !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
body.saas-dashboard .topbar h2,
body.saas-dashboard .panel h3,
body.saas-dashboard .card strong { font-family: "DM Sans", "Segoe UI", sans-serif !important; }
body.saas-dashboard .topbar > div > small { color: #1768b9 !important; }
body.saas-dashboard .logout-button {
    border: 1px solid #cbd9e8 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #000010 !important;
}
body.saas-dashboard .logout-button:hover { background: #edf5fc !important; }
body.saas-dashboard .cards .card {
    border: 1px solid #dce6f0 !important;
    border-top-width: 3px !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 5px 18px rgba(30, 67, 105, .035) !important;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
body.saas-dashboard .cards .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(30, 67, 105, .075) !important;
}
body.saas-dashboard .cards .card:nth-child(1) { border-top-color: #1768b9 !important; }
body.saas-dashboard .cards .card:nth-child(2) { border-top-color: #39a58b !important; }
body.saas-dashboard .cards .card:nth-child(3) { border-top-color: #1768b9 !important; }
body.saas-dashboard .cards .card:nth-child(4) { border-top-color: #39a58b !important; }
body.saas-dashboard .card small { color: #61758a !important; }
body.saas-dashboard .card strong { color: #000010 !important; }
body.saas-dashboard .stat {
    border: 1px solid #dce6f0 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 5px 18px rgba(30, 67, 105, .035) !important;
    color: #000010 !important;
    backdrop-filter: none !important;
}
body.saas-dashboard .stat span { color: #526982 !important; }
body.saas-dashboard .stat strong { color: #000010 !important; }
body.saas-dashboard .stat.warning strong { color: #9a5d0b !important; }
body.saas-dashboard .panel {
    border: 1px solid #dce6f0 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 5px 18px rgba(30, 67, 105, .035) !important;
}
body.saas-dashboard .service-form,
body.saas-dashboard .service-list,
body.saas-dashboard .share-panel,
body.saas-dashboard .calendar-panel,
body.saas-dashboard .availability-panel,
body.saas-dashboard .calendar-top,
body.saas-dashboard .calendar-actions {
    border-radius: 12px !important;
    box-shadow: 0 5px 18px rgba(30, 67, 105, .035) !important;
}
body.saas-dashboard .button,
body.saas-dashboard .icon-button,
body.saas-dashboard .tab,
body.saas-dashboard .event-sales {
    border-radius: 8px !important;
}
body.saas-dashboard .schedule-day,
body.saas-dashboard .event {
    border-radius: 8px !important;
    box-shadow: none !important;
}
body.saas-dashboard input:not([type="checkbox"]):not([type="radio"]),
body.saas-dashboard textarea,
body.saas-dashboard select {
    border: 1px solid #bdcddd !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #000010 !important;
    box-shadow: inset 0 1px 2px rgba(23, 54, 83, .035) !important;
    color-scheme: light;
}
body.saas-dashboard input::placeholder,
body.saas-dashboard textarea::placeholder { color: #73879d !important; opacity: 1; }
body.saas-dashboard input:focus-visible,
body.saas-dashboard textarea:focus-visible,
body.saas-dashboard select:focus-visible {
    border-color: #2878d0 !important;
    outline: 3px solid rgba(40, 120, 208, .17) !important;
    outline-offset: 1px;
}
body.saas-dashboard button[type="submit"]:not(.danger):not(.logout-button) {
    min-height: 42px;
    border: 1px solid #103b66 !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #1d5b91, #103b66) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(16, 59, 102, .12) !important;
}
body.saas-dashboard button[type="submit"]:not(.danger):not(.logout-button):hover {
    background: #0d365d !important;
}
body.saas-dashboard .row-actions button {
    border: 1px solid #cfdae6 !important;
    border-radius: 7px !important;
    background: #f4f8fc !important;
    color: #000010 !important;
}
body.saas-dashboard .row-actions button.danger { border-color: #e8c8ce !important; background: #fff2f3 !important; color: #a21e35 !important; }
body.saas-dashboard .panel h3 { color: #000010 !important; }
body.saas-dashboard th {
    border-bottom: 1px solid #e1e9f2 !important;
    color: #718297 !important;
}
body.saas-dashboard td {
    border-bottom: 1px solid #edf1f6 !important;
    color: #000010 !important;
}
body.saas-dashboard .empty-state { color: #61758a !important; }

@media (max-width: 900px) {
    body.saas-dashboard .sidebar { border-right: 0 !important; border-bottom: 1px solid #e1e9f2 !important; }
    body.saas-dashboard .nav a { border-bottom: 2px solid transparent !important; }
    body.saas-dashboard .nav a.active { border-bottom-color: #1768b9 !important; }
}

@media (prefers-reduced-motion: reduce) {
    body.saas-dashboard .cards .card,
    body.saas-dashboard .cards .card:hover { transition: none !important; transform: none !important; }
}

body.saas-dashboard .sidebar > .brand,
body.saas-dashboard .topbar h2,
body.saas-dashboard .header > strong,
body.saas-business-login .brand-name,
body.saas-business-login .eyebrow,
body.saas-business-login .booking-brand > span:last-child,
body.saas-business-login .booking > h1,
body.saas-dashboard .brand-lockup .brand-name { text-transform: uppercase; }

body.saas-dashboard .sidebar > .brand,
body.saas-dashboard .topbar h2,
body.saas-dashboard .header > strong,
body.saas-business-login .brand-name,
body.saas-business-login .booking-brand > span:last-child,
body.saas-dashboard .brand-lockup .brand-name { font-weight: 700 !important; }

body.saas-dashboard .event-sales,
body.saas-dashboard .event form button[type="submit"] {
    display: flex !important;
    width: 100% !important;
    min-height: 36px !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 8px !important;
    text-align: center;
}
body.saas-dashboard .event-sales {
    margin-top: 9px;
    padding: 6px 8px;
}
body.saas-dashboard .event form button[type="submit"] {
    padding: 6px 8px !important;
}
