/* =========================
   RPA Integrator — Modern Bootstrap Theme
   ========================= */

/* Force light mode regardless of OS/browser preference */
:root {
    color-scheme: light only;
}

/* Override Bootstrap dark mode if triggered by system preference */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: light;
    }
    body {
        background-color: #f7f9fc !important;
        color: #0f172a !important;
    }
}

/* --- Google Fonts: Sora (display) + DM Sans (body) --- */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* --- Design tokens (light) --- */
:root {
    --rpai-font: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
    --rpai-display-font: 'Sora', ui-sans-serif, system-ui, sans-serif;
    --rpai-bg: #f7f9fc;
    --rpai-surface: #ffffff;
    --rpai-border: #e6e9f2;
    --rpai-text: #0f172a;
    --rpai-muted: #5b6477;

    --rpai-primary: #3b82f6; /* Electric blue */
    --rpai-primary-600: #2563eb;
    --rpai-primary-100: #e0efff;

    --rpai-accent: #f59e0b;  /* Amber — CTAs & highlights */
    --rpai-accent-600: #d97706;

    --rpai-success: #16a34a;
    --rpai-danger: #e11d48;
    --rpai-warning: #f59e0b;

    --rpai-ring: 0 0 0 0.2rem rgba(59, 130, 246, 0.35); /* focus ring */
    --rpai-shadow: 0 8px 24px rgba(2, 6, 23, 0.06);
    --rpai-shadow-hover: 0 16px 36px rgba(2, 6, 23, 0.1);
}

/* --- Base typography and layout --- */
html,
body {
    font-family: var(--rpai-font);
    background: var(--rpai-bg);
    color: var(--rpai-text);
}

.content {
    padding-top: 1.1rem;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--rpai-display-font);
    letter-spacing: -0.02em;
    font-weight: 800;
}

.navbar-brand,
.rpai-brand {
    font-family: var(--rpai-display-font);
}

/* Amber accent CTA button */
.btn-accent {
    color: #fff;
    background-color: var(--rpai-accent);
    border-color: var(--rpai-accent);
    font-weight: 700;
}
.btn-accent:hover {
    background-color: var(--rpai-accent-600);
    border-color: var(--rpai-accent-600);
    color: #fff;
}

h1:focus {
    outline: none;
}

/* Subtle muted text */
.text-muted,
.form-text,
small,
.muted {
    color: var(--rpai-muted) !important;
}

/* --- Links --- */
a,
.btn-link {
    color: var(--rpai-primary);
    text-decoration: none;
}
a:hover,
.btn-link:hover {
    color: var(--rpai-primary-600);
    text-decoration: underline;
}

/* --- Buttons --- */
.btn-primary {
    color: #fff;
    background-color: var(--rpai-primary);
    border-color: var(--rpai-primary);
    box-shadow: var(--rpai-shadow);
}
.btn-primary:hover {
    background-color: var(--rpai-primary-600);
    border-color: var(--rpai-primary-600);
    box-shadow: var(--rpai-shadow-hover);
}
.btn-outline-primary {
    color: var(--rpai-primary);
    border-color: var(--rpai-primary);
    background: transparent;
}
.btn-outline-primary:hover {
    color: #fff;
    background-color: var(--rpai-primary);
    border-color: var(--rpai-primary);
}

/* Consistent focus ring across controls */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.page-link:focus {
    box-shadow: var(--rpai-ring) !important;
    outline: none !important;
    border-color: var(--rpai-primary) !important;
}

/* --- Navbar & brand --- */
.navbar {
    box-shadow: var(--rpai-shadow);
}
.navbar-dark,
.navbar-light {
    background: linear-gradient(180deg, #0b1020, #121833) !important;
} /* subtle, confident */
.navbar .navbar-brand {
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* --- Sidebar (Blazor default) --- */
.nav-scrollable {
    background-color: var(--rpai-surface);
    border-right: 1px solid var(--rpai-border);
}
.nav-link {
    color: #324156 !important;
    border-radius: 0.5rem;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}
.nav-link:hover {
    background: #f0f6ff;
    color: var(--rpai-primary) !important;
}
.nav-link.active {
    color: var(--rpai-primary) !important;
    background: var(--rpai-primary-100);
    font-weight: 700;
}

/* --- Cards & surfaces --- */
.card {
    border: 1px solid var(--rpai-border);
    border-radius: 1rem;
    box-shadow: var(--rpai-shadow);
    background: var(--rpai-surface);
}
.card:hover {
    box-shadow: var(--rpai-shadow-hover);
}

/* --- Forms --- */
.form-control,
.form-select {
    border-radius: 0.75rem;
    border-color: var(--rpai-border);
    background: #fff;
}
.form-control::placeholder {
    color: #9aa3b2;
}
.form-check-input {
    border-color: #a7b1c2;
}
.darker-border-checkbox.form-check-input {
    border-color: #929292;
} /* keep your custom class */

.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;
}

/* Validation (less harsh than red outlines) */
.valid.modified:not([type="checkbox"]) {
    border-color: var(--rpai-success) !important;
    box-shadow: 0 0 0 0.2rem rgba(22, 163, 74, 0.2);
}
.invalid,
.input-validation-error {
    border-color: var(--rpai-danger) !important;
    box-shadow: 0 0 0 0.2rem rgba(225, 29, 72, 0.15);
}
.validation-message {
    color: var(--rpai-danger);
}

/* --- Tables --- */
.table {
    border-color: var(--rpai-border);
    background: var(--rpai-surface);
    box-shadow: var(--rpai-shadow);
}
.table thead th {
    border-bottom: 1px solid var(--rpai-border);
}
.table-hover tbody tr:hover {
    background-color: #f6f9ff;
}

/* --- Badges, alerts, pills --- */
.badge {
    font-weight: 600;
}
.alert {
    border-radius: 0.75rem;
    border-color: var(--rpai-border);
    box-shadow: var(--rpai-shadow);
}

/* --- Icons --- */
.bi {
    vertical-align: -0.125em;
}

/* --- Error boundary (professional, less alarming) --- */
.blazor-error-boundary {
    background: #3f1f25;
    padding: 1rem 1rem 1rem 3.2rem;
    color: #fff;
    border-radius: 0.75rem;
    box-shadow: var(--rpai-shadow);
}
.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* --- Utilities --- */
.shadow-soft {
    box-shadow: var(--rpai-shadow) !important;
}
.shadow-soft-hover:hover {
    box-shadow: var(--rpai-shadow-hover) !important;
}
.rounded-2xl {
    border-radius: 1rem !important;
}

/* =========================
   Dark mode (auto)
   ========================= */
@media (prefers-color-scheme: dark) {
    :root {
        --rpai-bg: #0b1020;
        --rpai-surface: #0f162a;
        --rpai-border: rgba(255, 255, 255, 0.08);
        --rpai-text: #e8ecff;
        --rpai-muted: #a7b1d6;

        --rpai-primary: #6ea8fe;
        --rpai-primary-600: #5896fa;
        --rpai-primary-100: rgba(110, 168, 254, 0.15);

        --rpai-ring: 0 0 0 0.2rem rgba(110, 168, 254, 0.35);
        --rpai-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
        --rpai-shadow-hover: 0 16px 36px rgba(0, 0, 0, 0.5);
    }

    .navbar-dark,
    .navbar-light {
        background: linear-gradient(180deg, #0b1020, #0f162a) !important;
    }

    .nav-link {
        color: #cfd8ff !important;
    }
    .nav-link:hover {
        background: rgba(110, 168, 254, 0.1);
        color: #ffffff !important;
    }
    .nav-link.active {
        background: var(--rpai-primary-100);
        color: #fff !important;
    }

    .card,
    .table,
    .alert {
        background: var(--rpai-surface);
        border-color: var(--rpai-border);
    }

    .table-hover tbody tr:hover {
        background-color: rgba(110, 168, 254, 0.06);
    }

    .form-control,
    .form-select {
        background: #0f162a;
        color: var(--rpai-text);
        border-color: var(--rpai-border);
    }
    .form-control::placeholder {
        color: #8e99bb;
    }

    .blazor-error-boundary {
        background: #4c1d1d;
        color: #fff;
    }
}

/* =========================
   Keep any template-specific quirks
   ========================= */
/* Collapse sidebar by default on all viewports */

/* =============================================
   PHASE 1 EXPANSION — Additional Styles
   ============================================= */

/* --- Utility spacing --- */
.py-6 { padding-top: 4rem; padding-bottom: 4rem; }

/* --- Navbar --- */
.rpai-navbar {
    background: #0f172a !important;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    min-height: 64px;
}
.rpai-brand {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: #fff !important;
}
.brand-icon {
    display: inline-block;
    margin-right: 0.4rem;
    color: var(--rpai-primary);
}
.rpai-nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75) !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 6px;
    transition: color .15s, background .15s;
}
.rpai-nav-link:hover,
.rpai-nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.08);
}
.rpai-cta-btn {
    border-radius: 8px !important;
    font-weight: 600 !important;
}

/* --- Footer --- */
.rpai-footer {
    background: #f1f5f9;
    border-top: 1px solid var(--rpai-border);
}
.footer-link {
    color: var(--rpai-muted);
    text-decoration: none;
    font-size: 0.85rem;
}
.footer-link:hover { color: var(--rpai-primary); }

/* --- Page Wrapper --- */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.main-content {
    flex: 1;
}
/* Remove default Blazor content padding on full-width pages */
.content { padding-top: 0 !important; }

/* --- Hero (Home) --- */
.rpai-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #0f172a 100%);
    padding: 5rem 0;
}
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(59,130,246,.15) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(99,179,255,.08) 0%, transparent 50%);
    pointer-events: none;
}
.hero-accent { color: var(--rpai-primary); }
.text-white-75 { color: rgba(255,255,255,.75); }
.text-white-50 { color: rgba(255,255,255,.5); }
.hero-card-cluster { position: relative; height: 300px; }
.hero-stat-card {
    position: absolute;
    min-width: 240px;
    border-radius: 12px;
    animation: floatCard 5s ease-in-out infinite;
}
.hero-stat-card:nth-child(1) { top: 10px; left: 0; }
.hero-card-2 { top: 110px; left: 80px; animation-delay: 1.5s; }
.hero-card-3 { top: 210px; left: 20px; animation-delay: 3s; }
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.hero-stat-icon { width: 44px; height: 44px; display:flex;align-items:center;justify-content:center; }

/* --- Badge Pill --- */
.rpai-badge-pill {
    background: rgba(59,130,246,.18);
    color: #93c5fd;
    border: 1px solid rgba(59,130,246,.3);
    border-radius: 50px;
    font-size: 0.8rem;
    padding: .4rem 1rem;
    font-weight: 600;
}

/* --- Trust Bar --- */
.rpai-trust-bar { background: #fff; }

/* --- Section Alternating --- */
.rpai-section-alt { background: #f8fafc; }

/* --- Service Cards --- */
.rpai-service-card {
    border-radius: 12px !important;
    transition: transform .2s, box-shadow .2s;
}
.rpai-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,.1) !important;
}

/* --- Check list --- */
.rpai-check-list li { margin-bottom: .75rem; font-size: 1rem; }
.rpai-feature-list li { margin-bottom: .5rem; font-size: .9rem; }

/* --- Industry Pills --- */
.rpai-industry-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem .75rem;
    border: 1px solid var(--rpai-border);
    border-radius: 12px;
    background: #fff;
    color: var(--rpai-text) !important;
    text-align: center;
    font-size: .85rem;
    font-weight: 600;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.rpai-industry-pill:hover {
    border-color: var(--rpai-primary);
    box-shadow: 0 4px 16px rgba(59,130,246,.15);
    transform: translateY(-2px);
    color: var(--rpai-primary) !important;
}

/* --- CTA Banner --- */
.rpai-cta-banner {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #1d4ed8 100%);
}

/* --- Page Hero (inner pages) --- */
.rpai-page-hero {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
}

/* --- Stats Bar --- */
.rpai-stats-bar { background: #f0f7ff; border-top: 1px solid #dbeafe; border-bottom: 1px solid #dbeafe; }

/* --- Phase Cards --- */
.rpai-phase-card {
    position: relative;
    border-right: 1px solid var(--rpai-border);
}
.rpai-phase-card:last-child { border-right: none; }
.phase-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--rpai-primary);
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* --- Tech Card hover --- */
.rpai-tech-card {
    transition: transform .15s, box-shadow .15s;
    cursor: default;
}
.rpai-tech-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

/* --- Industry Use Case Chip --- */
.rpai-use-case-chip { font-weight: 500; transition: border-color .15s; }
.rpai-use-case-chip:hover { border-color: var(--rpai-primary) !important; }

/* --- Contact Success Card --- */
.rpai-success-card { background: #f0fdf4; border-color: #bbf7d0 !important; }

/* --- Dashboard --- */
.rpai-dashboard {
    background: #f1f5f9;
    min-height: 100vh;
}
.dashboard-header { background: #fff; }
.dashboard-body {}

.rpai-kpi-card {
    border-radius: 10px !important;
    transition: transform .15s;
}
.rpai-kpi-card:hover { transform: translateY(-2px); }
.kpi-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .05em; }

/* Live indicator dot */
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    animation: pulse-dot 1.5s ease-in-out infinite;
    vertical-align: middle;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .6; transform: scale(.85); }
}

/* Activity dots */
.activity-dot { margin-top: 3px; }

/* Sparkline container */
.rpai-sparkline-container { background: #f8fafc; border-radius: 8px; padding: 0.75rem; }

/* =============================================
   BRAND REFRESH — Typography & SVG Workflow
   ============================================= */

/* Body uses DM Sans */
html, body {
    font-family: var(--rpai-font) !important;
}

/* SVG Workflow Diagram */
.rpai-workflow-wrap {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(30, 64, 175, 0.15), 0 4px 12px rgba(0,0,0,.08);
    border: 1px solid #dbeafe;
    background: #f8faff;
}
.rpai-workflow-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Amber accent applied to primary CTA buttons in hero/cta areas */
.rpai-cta-banner .btn-light {
    background: var(--rpai-accent);
    border-color: var(--rpai-accent);
    color: #fff;
    font-weight: 700;
}
.rpai-cta-banner .btn-light:hover {
    background: var(--rpai-accent-600);
    border-color: var(--rpai-accent-600);
    color: #fff;
}

/* Hero accent word uses amber */
.hero-accent { color: var(--rpai-accent) !important; }

/* Sora on display-size text in hero */
.rpai-hero h1,
.rpai-page-hero h1 {
    font-family: var(--rpai-display-font);
    letter-spacing: -0.03em;
}

/* Phase number circles use amber accent */
.phase-number {
    background: var(--rpai-accent) !important;
}

/* =============================================
   SVG Workflow Diagram — extracted from Home.razor
   (Kept here so Razor parser never sees @keyframes)
   ============================================= */
.wf-spoke { fill: none; stroke: #93c5fd; stroke-width: 1.8; stroke-dasharray: 6 5; }
.wf-spoke-anim { animation: wfFlow 2s linear infinite; }
@keyframes wfFlow { to { stroke-dashoffset: -22; } }

.wf-node-rect      { fill: #fff; stroke: #3b82f6; stroke-width: 1.5; }
.wf-node-rect-warn { fill: #fff; stroke: #f59e0b; stroke-width: 1.5; }
.wf-node-rect-ok   { fill: #fff; stroke: #16a34a; stroke-width: 1.5; }

.wf-label    { font-family: 'Sora','DM Sans',sans-serif; font-size: 9.5px; font-weight: 700; fill: #1e293b; text-anchor: middle; dominant-baseline: middle; }
.wf-sublabel { font-family: 'DM Sans',sans-serif; font-size: 7.5px; font-weight: 400; fill: #6b7280; text-anchor: middle; dominant-baseline: middle; }

.wf-hub-poly  { fill: #2563eb; }
.wf-hub-label { font-family: 'Sora',sans-serif; font-size: 11px; font-weight: 800; fill: #fff; text-anchor: middle; dominant-baseline: middle; }

.wf-dot   { fill: #f59e0b; }
.wf-pulse { fill: none; stroke: #3b82f6; stroke-width: 1; opacity: 0; animation: wfPulse 2.4s ease-out infinite; }
@keyframes wfPulse { 0% { r: 42; opacity: .5; } 100% { r: 72; opacity: 0; } }

.wf-badge-rect { fill: #f0f9ff; stroke: #bfdbfe; stroke-width: 1; }
.wf-badge-ok   { fill: #dcfce7; stroke: #86efac; stroke-width: 1; }
.wf-badge-text { font-family: 'DM Sans',sans-serif; font-size: 8px; fill: #374151; dominant-baseline: middle; }

/* =============================================
   PHASE 2A — Auth, Admin & Client Portal Styles
   ============================================= */

/* --- Login page --- */
.rpai-login-icon {
    width: 72px; height: 72px;
    background: #eff6ff;
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
}
.rpai-google-btn {
    background: #fff;
    border: 1.5px solid #dadce0;
    color: #3c4043;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    transition: box-shadow .15s, border-color .15s;
}
.rpai-google-btn:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    border-color: #bbb;
    color: #1a1a1a;
}

/* --- NavMenu user chip --- */
.nav-user-chip {
    font-size: .8rem;
    font-weight: 500;
    color: rgba(255,255,255,.75);
    font-family: 'DM Sans', sans-serif;
}

/* ── ADMIN LAYOUT ──────────────────────────────────── */
.admin-shell {
    display: flex;
    min-height: 100vh;
    background: #f1f5f9;
}

/* Sidebar */
.admin-sidebar {
    width: 240px;
    min-width: 240px;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    overflow-y: auto;
}
.admin-sidebar-brand {
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.admin-brand-link {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
}
.admin-brand-gear { font-size: 22px; color: #3b82f6; }
.admin-brand-name {
    font-family: 'Sora', sans-serif;
    font-weight: 800; font-size: 14px; color: #fff;
    letter-spacing: -.02em; line-height: 1.2;
}
.admin-brand-sub { font-size: 10px; color: rgba(255,255,255,.4); font-weight: 500; letter-spacing: .06em; }

/* Admin nav */
.admin-nav { padding: 16px 8px; flex: 1; }
.admin-nav-section-label {
    font-size: 9px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: rgba(255,255,255,.3);
    padding: 0 8px; margin-bottom: 4px;
}
.admin-nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; border-radius: 8px;
    color: rgba(255,255,255,.65);
    text-decoration: none; font-size: .875rem; font-weight: 500;
    transition: background .15s, color .15s;
    margin-bottom: 2px;
}
.admin-nav-link:hover, .admin-nav-link.active {
    background: rgba(255,255,255,.08);
    color: #fff;
}
.admin-nav-link i { font-size: 15px; width: 18px; text-align: center; }
.admin-nav-link span:first-of-type { flex: 1; }
.admin-nav-soon { opacity: .6; cursor: default; pointer-events: none; }
.admin-nav-badge {
    font-size: 9px; font-weight: 700; background: rgba(59,130,246,.25);
    color: #93c5fd; border-radius: 4px; padding: 2px 5px;
}

/* Sidebar footer */
.admin-sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,.06);
}
.admin-user-chip {
    display: flex; align-items: center;
    color: rgba(255,255,255,.5); font-size: .8rem;
    overflow: hidden;
}

/* Main content */
.admin-main {
    margin-left: 240px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.admin-topbar {
    height: 56px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px;
    position: sticky; top: 0; z-index: 50;
}
.admin-content { flex: 1; }

/* Admin KPI cards */
.admin-kpi-card { border-radius: 10px !important; transition: transform .15s; }
.admin-kpi-card:hover { transform: translateY(-2px); }
.admin-kpi-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; font-weight: 600; }

/* Roadmap dots */
.roadmap-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ── CLIENT LAYOUT ─────────────────────────────────── */
.client-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f8fafc;
}
.client-topbar {
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky; top: 0; z-index: 50;
}
.client-brand {
    font-family: 'Sora', sans-serif;
    font-weight: 800; font-size: 15px;
    color: #0f172a; text-decoration: none;
    letter-spacing: -.02em;
}
.client-portal-label {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .08em; color: #3b82f6;
    background: #eff6ff; border-radius: 4px; padding: 2px 8px;
}
.client-nav-link {
    display: flex; align-items: center;
    padding: 6px 10px; border-radius: 6px;
    color: #4b5563; text-decoration: none;
    font-size: .85rem; font-weight: 500;
    transition: background .15s, color .15s;
}
.client-nav-link:hover, .client-nav-link.active {
    background: #f1f5f9; color: #0f172a;
}
.client-nav-soon { opacity: .5; cursor: default; pointer-events: none; }
.client-user-pill {
    font-size: .8rem; font-weight: 500; color: #4b5563;
    background: #f1f5f9; border-radius: 20px; padding: 4px 10px;
}
.client-content { flex: 1; }

/* Client feature cards */
.client-feature-card { border-radius: 12px !important; transition: transform .15s, box-shadow .15s; }
.client-feature-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.08) !important; }
.client-feature-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }

/* Responsive: hide admin sidebar on mobile */
@media (max-width: 767px) {
    .admin-sidebar { display: none; }
    .admin-main { margin-left: 0; }
}

/* =============================================
   PHASE 2B — Client Portal Pages
   ============================================= */

/* Portal KPI cards */
.portal-kpi-card { border-radius: 10px !important; transition: transform .15s; }
.portal-kpi-card:hover { transform: translateY(-2px); }
.portal-kpi-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; font-weight: 600; }

/* Bot cards on automation board */
.portal-bot-card { border-radius: 12px !important; transition: transform .15s, box-shadow .15s; }
.portal-bot-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.08) !important; }

/* Document vault cards */
.doc-vault-card { border-radius: 12px !important; transition: transform .15s, box-shadow .15s; }
.doc-vault-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.08) !important; }
.doc-vault-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }

/* =============================================
   VIDEO LIBRARY — Public & Admin
   ============================================= */

/* Video card */
.video-card { border-radius: 12px !important; transition: transform .2s, box-shadow .2s; overflow: hidden; }
.video-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.1) !important; }
.video-title:hover { color: var(--rpai-primary); }

/* Thumbnail */
.video-thumb-wrap { overflow: hidden; aspect-ratio: 16/9; background: #0f172a; }
.video-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; display: block; }
.video-card:hover .video-thumb { transform: scale(1.04); }

/* Play overlay */
.video-play-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.3);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .2s;
}
.video-thumb-wrap:hover .video-play-overlay { opacity: 1; }
.video-play-btn {
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(255,255,255,.92);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--rpai-primary);
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
}

/* Video modal */
.video-modal-backdrop {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.88);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.video-modal-inner {
    width: 100%; max-width: 860px;
}
.video-embed-wrap {
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
    border-radius: 12px; background: #000;
}
.video-embed-frame {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; border: none;
}

/* Dashboard sales banner */
.dashboard-sales-banner {
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.dashboard-preview-badge {
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; background: rgba(255,255,255,.15);
    color: #fff; border-radius: 20px; padding: 4px 10px;
    white-space: nowrap; flex-shrink: 0;
}

/* =============================================
   ERROR PAGES — Crashed & Lost Robot
   ============================================= */
.error-robot-wrap {
    max-width: 380px;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,.08));
}
.error-robot-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* =============================================
   ADMIN CLIENT VIEW BANNER
   ============================================= */
.client-view-admin-banner {
    background: linear-gradient(135deg, #7f1d1d, #991b1b);
    border-bottom: 1px solid rgba(255,255,255,.1);
    position: sticky;
    top: 56px;
    z-index: 40;
}

/* =============================================
   SERVICES PAGE — Engagement Journey
   ============================================= */
.engagement-phase-number {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    color: #e2e8f0;
    font-family: 'Sora', sans-serif;
    margin-bottom: .25rem;
    letter-spacing: -.05em;
}
.engagement-phase-label {
    letter-spacing: .1em;
}
.engagement-phase-card {
    transition: transform .2s;
}
.engagement-phase-card:hover {
    transform: translateY(-4px);
}
.selective-fit-item {
    display: flex;
    align-items: center;
}
.letter-space {
    letter-spacing: .08em;
}
.mb-6 {
    margin-bottom: 4rem !important;
}
.py-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* =============================================
   PHASE 2D — Lead Inbox, Tickets, Proposals
   ============================================= */
.lead-unread { background: #eff6ff; }
.lead-row:hover { background: #f8fafc; }
.unread-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #3b82f6; flex-shrink: 0; display: inline-block;
}
.ticket-open { border-left: 3px solid #3b82f6; }

/* Lead detail overlay */
.lead-detail-overlay {
    position: fixed; inset: 0; z-index: 1050;
    background: rgba(0,0,0,.4);
    display: flex; align-items: flex-start; justify-content: flex-end;
}
.lead-detail-panel {
    width: 480px; max-width: 100%; height: 100vh;
    background: #fff; padding: 2rem;
    overflow-y: auto; box-shadow: -4px 0 24px rgba(0,0,0,.12);
    animation: slideInRight .2s ease;
}
@keyframes slideInRight {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

/* =============================================
   PHASE 3 — Analytics & Billing
   ============================================= */
.analytics-kpi { transition: transform .15s; }
.analytics-kpi:hover { transform: translateY(-2px); }
.analytics-kpi-label {
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: #6b7280; margin-bottom: .25rem;
}

/* =============================================
   HOME PAGE REDESIGN — Phase 3 Hero
   ============================================= */

/* ── Hero Section ─────────────────────────────── */
.rph-hero {
    position: relative;
    background: #040d1a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.rph-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.rph-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59,130,246,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,.06) 1px, transparent 1px);
    background-size: 60px 60px;
}
.rph-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.rph-glow-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(29,78,216,.25) 0%, transparent 70%);
    top: -100px; right: 100px;
}
.rph-glow-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(245,158,11,.1) 0%, transparent 70%);
    bottom: 50px; left: 50px;
}

/* Badge */
.rph-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59,130,246,.12);
    border: 1px solid rgba(59,130,246,.3);
    color: #93c5fd;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
}
.rph-badge-dot {
    width: 7px; height: 7px;
    background: #3b82f6;
    border-radius: 50%;
    animation: rpBlink 2s ease-in-out infinite;
}
@keyframes rpBlink {
    0%,100% { opacity:1; }
    50%      { opacity:.3; }
}

/* Headline */
.rph-headline {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: #f1f5f9;
    letter-spacing: -.03em;
    margin-bottom: 1.25rem;
}
.rph-headline-accent {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.rph-subline {
    color: rgba(255,255,255,.6);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 460px;
    margin-bottom: 2rem;
}

/* CTAs */
.rph-cta-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.rph-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #3b82f6;
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    transition: all .2s;
    border: none;
}
.rph-btn-primary:hover {
    background: #2563eb;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,130,246,.4);
}
.rph-btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}
.rph-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.8);
    font-weight: 600;
    font-size: .95rem;
    padding: 14px 24px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.12);
    transition: all .2s;
}
.rph-btn-ghost:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
    transform: translateY(-2px);
}

/* Trust row */
.rph-trust-row {
    display: flex;
    align-items: center;
    gap: 24px;
}
.rph-trust-num {
    font-family: 'Sora', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #f1f5f9;
}
.rph-trust-label {
    font-size: .75rem;
    color: rgba(255,255,255,.4);
    margin-top: 2px;
}
.rph-trust-div {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,.12);
}

/* SVG */
.rph-svg-wrap {
    width: 100%;
    max-width: 680px;
    filter: drop-shadow(0 24px 48px rgba(0,0,0,.5));
    animation: rphFloat 6s ease-in-out infinite;
}
@keyframes rphFloat {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
.rph-hero-svg { width: 100%; height: auto; }

/* SVG animations */
.rph-pulse {
    animation: rphPulse 3s ease-out infinite;
    transform-origin: center;
}
.rph-pulse-2 { animation-delay: 1s; }
.rph-pulse-3 { animation-delay: 2s; }
@keyframes rphPulse {
    0%   { opacity:.4; transform:scale(1); }
    100% { opacity:0;  transform:scale(1.3); }
}
.rph-blink { animation: rpBlink 1.5s ease-in-out infinite; }

.rph-line { stroke-dashoffset: 100; animation: rphDash 2s linear infinite; }
.rph-line-1 { animation-delay: 0s; }
.rph-line-2 { animation-delay: .3s; }
.rph-line-3 { animation-delay: .6s; }
.rph-line-4 { animation-delay: .9s; }
.rph-line-5 { animation-delay: 1.2s; }
.rph-line-6 { animation-delay: 1.5s; }
@keyframes rphDash {
    to { stroke-dashoffset: 0; }
}

.rph-node { animation: rphNodeIn .6s ease both; }
.rph-node-in-1  { animation-delay: .2s; }
.rph-node-in-2  { animation-delay: .4s; }
.rph-node-in-3  { animation-delay: .6s; }
.rph-node-out-1 { animation-delay: .8s; }
.rph-node-out-2 { animation-delay: 1.0s; }
.rph-node-out-3 { animation-delay: 1.2s; }
@keyframes rphNodeIn {
    from { opacity:0; transform:scale(.85); }
    to   { opacity:1; transform:scale(1); }
}

/* ── Trust Strip ──────────────────────────────── */
.rph-trust-strip {
    background: #0f172a;
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: 20px 0;
}
.rph-strip-label {
    text-align: center;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.25);
    margin-bottom: 12px;
}
.rph-strip-items {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 24px;
}
.rph-strip-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.45);
    font-size: .85rem;
    font-weight: 500;
}
.rph-strip-item i { color: rgba(59,130,246,.6); }
.rph-strip-div { color: rgba(255,255,255,.15); font-size: 1.2rem; }

/* ── Section typography ───────────────────────── */
.rph-section-eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #3b82f6;
    margin-bottom: .75rem;
}
.rph-eyebrow-light { color: rgba(147,197,253,.8); }
.rph-section-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.02em;
    margin-bottom: 1rem;
}
.rph-section-sub {
    color: #64748b;
    font-size: 1.05rem;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}
.mb-6 { margin-bottom: 4rem !important; }

/* ── Value Cards ──────────────────────────────── */
.rph-value-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    height: 100%;
    position: relative;
    transition: all .25s;
}
.rph-value-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 12px 36px rgba(59,130,246,.08);
    transform: translateY(-4px);
}
.rph-value-card-featured {
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    border-color: #bfdbfe;
    box-shadow: 0 8px 24px rgba(59,130,246,.1);
}
.rph-value-badge {
    position: absolute;
    top: -12px;
    left: 32px;
    background: #3b82f6;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: .04em;
}
.rph-value-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}
.rph-value-icon-blue  { background: #eff6ff; color: #3b82f6; }
.rph-value-icon-amber { background: #fffbeb; color: #f59e0b; }
.rph-value-icon-green { background: #f0fdf4; color: #16a34a; }
.rph-value-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: .75rem;
}
.rph-value-body {
    color: #64748b;
    font-size: .9rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
.rph-value-link {
    color: #3b82f6;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
}
.rph-value-link:hover { color: #1d4ed8; }

/* ── Results counters ─────────────────────────── */
.rph-results {
    background: #0f172a;
    padding: 64px 0;
}
.rph-results-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.rph-result-item {
    flex: 1;
    min-width: 160px;
    text-align: center;
    padding: 0 32px;
}
.rph-result-num {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1;
    margin-bottom: .5rem;
}
.rph-result-unit {
    font-size: 1.2rem;
    color: #3b82f6;
}
.rph-result-label {
    color: rgba(255,255,255,.8);
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: .25rem;
}
.rph-result-sub {
    color: rgba(255,255,255,.3);
    font-size: .75rem;
}
.rph-result-div {
    width: 1px;
    height: 64px;
    background: rgba(255,255,255,.08);
    flex-shrink: 0;
}

/* ── Phases ───────────────────────────────────── */
.rph-phases { background: #fff; }
.rph-phases-track {
    display: flex;
    gap: 0;
    position: relative;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 20px;
}
.rph-phase-connector {
    position: absolute;
    top: 28px;
    left: 80px;
    right: 80px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #3b82f6);
    background-size: 200% 100%;
    animation: rphGradientMove 3s linear infinite;
    z-index: 0;
}
@keyframes rphGradientMove {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
.rph-phase-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}
.rph-phase-num {
    font-family: 'Sora', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1;
    margin-bottom: 4px;
}
.rph-phase-dot {
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 3px solid #fff;
    margin-bottom: 20px;
    box-shadow: 0 0 0 3px #3b82f6;
}
.rph-phase-dot-1 { background: #3b82f6; }
.rph-phase-dot-2 { background: #0ea5e9; }
.rph-phase-dot-3 { background: #6366f1; }
.rph-phase-dot-4 { background: #8b5cf6; }
.rph-phase-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 16px;
    width: 100%;
    max-width: 180px;
    transition: all .2s;
}
.rph-phase-card:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59,130,246,.1);
}
.rph-phase-icon {
    font-size: 1.4rem;
    color: #3b82f6;
    margin-bottom: .5rem;
}
.rph-phase-name {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    color: #0f172a;
    margin-bottom: .4rem;
}
.rph-phase-desc {
    font-size: .75rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: .75rem;
}
.rph-phase-tag {
    font-size: .7rem;
    font-weight: 700;
    color: #3b82f6;
    background: #eff6ff;
    padding: 3px 8px;
    border-radius: 100px;
}

/* ── Platform cards ───────────────────────────── */
.rph-platform-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    transition: all .2s;
    height: 100%;
}
.rph-platform-card:hover {
    border-color: #bfdbfe;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59,130,246,.08);
}

/* ── Final CTA ────────────────────────────────── */
.rph-final-cta {
    position: relative;
    background: #040d1a;
    overflow: hidden;
}
.rph-final-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59,130,246,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,.04) 1px, transparent 1px);
    background-size: 60px 60px;
}
.rph-final-glow {
    position: absolute;
    width: 800px; height: 400px;
    background: radial-gradient(ellipse, rgba(29,78,216,.3) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    filter: blur(40px);
}
.rph-final-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: -.02em;
    margin-bottom: 1.25rem;
}
.rph-final-sub {
    color: rgba(255,255,255,.55);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}
.rph-final-ctas {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.rph-final-note {
    color: rgba(255,255,255,.25);
    font-size: .8rem;
    margin: 0;
}

/* =============================================
   INDUSTRIES PAGE
   ============================================= */
.ind-nav-strip {
    background: #0f172a;
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: 14px 0;
    position: sticky;
    top: 56px;
    z-index: 30;
}
.ind-nav-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.ind-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.6);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.08);
    transition: all .2s;
}
.ind-nav-pill:hover {
    background: rgba(59,130,246,.2);
    color: #93c5fd;
    border-color: rgba(59,130,246,.3);
}
.ind-eyebrow {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #3b82f6;
    margin-bottom: .75rem;
}
.ind-title {
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.02em;
    margin-bottom: 1rem;
}
.ind-desc {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.ind-usecases { display: flex; flex-direction: column; gap: 10px; }
.ind-usecase {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .9rem;
    color: #374151;
}
.ind-usecase-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #3b82f6;
    flex-shrink: 0;
}
.ind-visual {
    background: #0f172a;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid #1e293b;
    position: relative;
    overflow: hidden;
}
.ind-visual::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(59,130,246,.15) 0%, transparent 70%);
    border-radius: 50%;
}
.ind-visual-icon {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 1rem;
    opacity: .8;
}
.ind-visual-stat { margin-bottom: 1.5rem; }
.ind-stat-num {
    font-family: 'Sora', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1;
}
.ind-stat-label {
    color: rgba(255,255,255,.4);
    font-size: .8rem;
    margin-top: 4px;
}
.ind-visual-processes { border-top: 1px solid #1e293b; padding-top: 1.25rem; }
.ind-process-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.25);
    margin-bottom: .75rem;
}
.ind-process-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: .85rem;
    color: rgba(255,255,255,.7);
}
.ind-process-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #34d399;
    flex-shrink: 0;
}
.ind-process-status {
    margin-left: auto;
    font-size: .7rem;
    color: #34d399;
    font-weight: 700;
    background: rgba(52,211,153,.1);
    padding: 2px 8px;
    border-radius: 100px;
}
.ind-process-more {
    font-size: .75rem;
    color: rgba(255,255,255,.25);
    margin-top: 8px;
}

/* =============================================
   WHY US PAGE
   ============================================= */
.why-diff-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    position: relative;
    transition: all .25s;
    overflow: hidden;
}
.why-diff-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 12px 32px rgba(59,130,246,.08);
    transform: translateY(-4px);
}
.why-diff-num {
    font-family: 'Sora', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: #f1f5f9;
    line-height: 1;
    position: absolute;
    top: 20px; right: 20px;
}
.why-diff-icon {
    font-size: 1.8rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}
.why-diff-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: .75rem;
}
.why-diff-body {
    color: #64748b;
    font-size: .9rem;
    line-height: 1.7;
    margin: 0;
}
.why-phases-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}
.why-phase {
    text-align: center;
    padding: 32px 40px;
    flex: 1;
    min-width: 160px;
}
.why-phase-num {
    font-family: 'Sora', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #3b82f6;
    opacity: .4;
    margin-bottom: .5rem;
}
.why-phase-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: .5rem;
}
.why-phase-desc {
    color: rgba(255,255,255,.4);
    font-size: .85rem;
    line-height: 1.6;
}
.why-phase-arrow {
    color: rgba(59,130,246,.4);
    font-size: 1.5rem;
    flex-shrink: 0;
}
.why-compare-table {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
}
.why-compare-header {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    padding: 16px 20px;
    font-weight: 700;
    font-size: .85rem;
}
.why-compare-us-badge {
    background: #0f172a;
    color: #fff;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: .8rem;
    font-weight: 700;
    display: inline-block;
}
.why-compare-row {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr;
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    font-size: .9rem;
    align-items: center;
}
.why-compare-row:last-child { border-bottom: none; }
.why-compare-row:nth-child(odd) { background: #fafbfc; }
.why-compare-col-label { font-weight: 600; color: #374151; }
.why-compare-col.us { color: #0f172a; font-weight: 500; }
.why-compare-col.them { color: #94a3b8; }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-form-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.contact-form-header {
    background: #0f172a;
    padding: 32px 36px;
}
.contact-form-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: .5rem;
}
.contact-form-sub {
    color: rgba(255,255,255,.5);
    font-size: .9rem;
    margin: 0;
}
.contact-fields { padding: 32px 36px 0; }
.contact-label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    letter-spacing: .01em;
}
.contact-input, .contact-select, .contact-textarea {
    width: 100%;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: .9rem;
    color: #0f172a;
    transition: all .2s;
    font-family: inherit;
}
.contact-input:focus, .contact-select:focus, .contact-textarea:focus {
    border-color: #3b82f6;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}
.contact-textarea { resize: vertical; min-height: 100px; }
.contact-error { color: #ef4444; font-size: .78rem; margin-top: 4px; display: block; }
.contact-error-banner {
    margin: 16px 36px 0;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: .85rem;
}
.rph-btn-primary.w-100 { margin: 0 36px; width: calc(100% - 72px) !important; }
.contact-privacy {
    text-align: center;
    color: #94a3b8;
    font-size: .78rem;
    padding: 16px 36px 32px;
    margin: 0;
}
.contact-success {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
}
.contact-success-icon {
    width: 72px; height: 72px;
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #16a34a;
}
.contact-success-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: .75rem;
}
.contact-success-body {
    color: #64748b;
    max-width: 400px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
}
.contact-success-steps { text-align: left; max-width: 380px; margin: 0 auto; }
.css-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: .9rem;
    color: #374151;
}
.css-step-num {
    width: 24px; height: 24px;
    background: #3b82f6;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.contact-sidebar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px;
    position: sticky;
    top: 80px;
}
.contact-sidebar-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
}
.contact-sidebar-steps { display: flex; flex-direction: column; gap: 20px; }
.contact-sidebar-step { display: flex; gap: 14px; align-items: flex-start; }
.css-icon {
    width: 38px; height: 38px;
    background: #eff6ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1rem;
    flex-shrink: 0;
}
.css-title { font-weight: 600; font-size: .9rem; color: #0f172a; margin-bottom: 3px; }
.css-body  { font-size: .8rem; color: #64748b; line-height: 1.5; }
.contact-sidebar-note {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: .82rem;
    color: #64748b;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 1.5rem;
}
.css-contact-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; margin-bottom: 8px; }
.css-contact-link { display: flex; align-items: center; color: #0f172a; font-weight: 600; font-size: .9rem; text-decoration: none; }
.css-contact-link:hover { color: #3b82f6; }

/* =============================================
   CLIENT PORTAL — Dashboard
   ============================================= */
.cp-page { background: #f1f5f9; min-height: 100vh; }
.cp-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 16px;
}
.cp-loading-ring {
    width: 48px; height: 48px;
    border: 3px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: cpSpin 1s linear infinite;
}
@keyframes cpSpin { to { transform: rotate(360deg); } }
.cp-loading-text { color: #94a3b8; font-size: .9rem; }

.cp-hero-bar {
    position: relative;
    background: #0f172a;
    overflow: hidden;
    padding: 36px 32px;
}
.cp-hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59,130,246,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,.05) 1px, transparent 1px);
    background-size: 40px 40px;
}
.cp-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.cp-greeting { color: rgba(255,255,255,.4); font-size: .85rem; margin-bottom: 4px; }
.cp-hero-name {
    font-family: 'Sora', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0 0 4px;
}
.cp-hero-date { color: rgba(255,255,255,.3); font-size: .8rem; }

.cp-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}
@media (max-width: 767px) { .cp-kpis { grid-template-columns: repeat(2, 1fr); } }
.cp-kpi {
    padding: 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-right: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}
.cp-kpi::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 100%;
}
.cp-kpi-blue::before   { background: #3b82f6; }
.cp-kpi-amber::before  { background: #f59e0b; }
.cp-kpi-green::before  { background: #16a34a; }
.cp-kpi-purple::before { background: #8b5cf6; }
.cp-kpi-icon { font-size: 1.2rem; margin-bottom: 4px; }
.cp-kpi-blue   .cp-kpi-icon { color: #3b82f6; }
.cp-kpi-amber  .cp-kpi-icon { color: #f59e0b; }
.cp-kpi-green  .cp-kpi-icon { color: #16a34a; }
.cp-kpi-purple .cp-kpi-icon { color: #8b5cf6; }
.cp-kpi-value {
    font-family: 'Sora', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}
.cp-kpi-label { font-size: .78rem; font-weight: 700; color: #374151; }
.cp-kpi-sub   { font-size: .72rem; color: #94a3b8; }

.cp-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    padding: 20px;
}
@media (max-width: 991px) { .cp-grid { grid-template-columns: 1fr; } }
.cp-card-wide { grid-column: 1 / -1; }
@media (min-width: 992px) { .cp-card-wide { grid-column: 1 / 2; grid-row: 1 / 3; } }

.cp-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
}
.cp-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}
.cp-card-title { font-weight: 700; font-size: .9rem; color: #0f172a; }
.cp-card-link {
    font-size: .8rem;
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
}
.cp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 24px;
}
.cp-empty-icon { font-size: 2.5rem; color: #cbd5e1; margin-bottom: 12px; }
.cp-empty-title { font-weight: 700; font-size: .95rem; color: #374151; margin-bottom: 6px; }
.cp-empty-sub   { font-size: .82rem; color: #94a3b8; }

.cp-bot-list { padding: 8px 0; }
.cp-bot-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #f8fafc;
    transition: background .15s;
}
.cp-bot-row:hover { background: #f8fafc; }
.cp-bot-row:last-child { border-bottom: none; }
.cp-bot-status {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.cp-dot-green { background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.15); }
.cp-dot-amber { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.15); }
.cp-dot-red   { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.15); }
.cp-dot-gray  { background: #94a3b8; }
.cp-bot-info { flex: 1; min-width: 0; }
.cp-bot-name { font-weight: 600; font-size: .88rem; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-bot-meta { font-size: .73rem; color: #94a3b8; }
.cp-bot-uptime { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cp-uptime-bar { width: 48px; height: 5px; background: #f1f5f9; border-radius: 3px; overflow: hidden; }
.cp-uptime-fill { height: 100%; border-radius: 3px; }
.cp-uptime-green { background: #16a34a; }
.cp-uptime-amber { background: #f59e0b; }
.cp-uptime-red   { background: #ef4444; }
.cp-uptime-num { font-size: .75rem; color: #64748b; font-weight: 600; }
.cp-bot-hours { flex-shrink: 0; text-align: right; }
.cp-hours-num { font-weight: 700; font-size: .88rem; color: #0f172a; }
.cp-hours-label { font-size: .72rem; color: #94a3b8; }
.cp-status-badge {
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    flex-shrink: 0;
}
.cp-badge-green  { background: #f0fdf4; color: #16a34a; }
.cp-badge-amber  { background: #fffbeb; color: #d97706; }
.cp-badge-red    { background: #fef2f2; color: #dc2626; }
.cp-badge-gray   { background: #f8fafc; color: #64748b; }
.cp-bot-more { padding: 10px 20px; font-size: .8rem; }
.cp-bot-more a { color: #3b82f6; font-weight: 600; text-decoration: none; }

.cp-doc-list { padding: 8px 0; }
.cp-doc-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-bottom: 1px solid #f8fafc;
}
.cp-doc-row:last-child { border-bottom: none; }
.cp-doc-icon {
    width: 36px; height: 36px;
    background: #eff6ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    flex-shrink: 0;
}
.cp-doc-info { flex: 1; min-width: 0; }
.cp-doc-name { font-weight: 600; font-size: .85rem; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-doc-meta { font-size: .72rem; color: #94a3b8; }
.cp-doc-link {
    width: 32px; height: 32px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    flex-shrink: 0;
    transition: all .15s;
}
.cp-doc-link:hover { background: #eff6ff; color: #3b82f6; border-color: #bfdbfe; }

.cp-actions { padding: 8px 0; }
.cp-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #f8fafc;
    text-decoration: none;
    transition: background .15s;
}
.cp-action:hover { background: #f8fafc; }
.cp-action:last-child { border-bottom: none; }
.cp-action-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.cp-action-blue   { background: #eff6ff; color: #3b82f6; }
.cp-action-green  { background: #f0fdf4; color: #16a34a; }
.cp-action-amber  { background: #fffbeb; color: #d97706; }
.cp-action-purple { background: #faf5ff; color: #7c3aed; }
.cp-action-title { font-weight: 600; font-size: .875rem; color: #0f172a; }
.cp-action-sub   { font-size: .75rem; color: #94a3b8; }
.text-amber { color: #f59e0b; }
