:root {
    --cpp-primary: #2563eb;
    --cpp-primary-dark: #1d4ed8;
    --cpp-secondary: #0ea5e9;
    --cpp-dark: #0f172a;
    --cpp-sidebar: #0f172a;
    --cpp-surface: #f1f5f9;
    --cpp-border: #e2e8f0;
    --cpp-sidebar-width: 265px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--cpp-surface);
    color: #1e293b;
}

.landing-navbar {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--cpp-border);
}

.landing-hero {
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 45%),
                linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 4.5rem 0 4rem;
}

.section-padding {
    padding: 4.5rem 0;
}

.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08) !important;
}

.package-card {
    border: 1px solid var(--cpp-border);
    border-radius: 1rem;
    background: #fff;
}

.package-card.featured {
    border: 2px solid var(--cpp-primary);
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.12);
}

.banner-carousel-item {
    border-radius: 1.25rem;
    overflow: hidden;
    min-height: 290px;
    background-size: cover;
    background-position: center;
}

.portal-wrapper {
    display: flex;
    min-height: 100vh;
}

.portal-sidebar {
    width: var(--cpp-sidebar-width);
    background: var(--cpp-sidebar);
    color: #cbd5e1;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1045;
    transition: transform 0.25s ease;
}

.portal-sidebar .sidebar-brand {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portal-sidebar .sidebar-scroll {
    overflow-y: auto;
    flex: 1;
    padding: 0.75rem 0.75rem 2rem;
}

.portal-sidebar .nav-section-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    padding: 0.9rem 0.75rem 0.35rem;
    font-weight: 700;
}

.portal-sidebar .nav-link {
    color: #cbd5e1;
    border-radius: 0.55rem;
    padding: 0.55rem 0.85rem;
    margin-bottom: 2px;
    font-size: 0.89rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.portal-sidebar .nav-link i {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
}

.portal-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.portal-sidebar .nav-link.active {
    background: var(--cpp-primary);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.portal-main {
    flex: 1;
    margin-left: var(--cpp-sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.portal-topbar {
    background: #ffffff;
    border-bottom: 1px solid var(--cpp-border);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.portal-content {
    padding: 1.5rem;
    flex: 1;
}

.stat-card {
    border: 1px solid var(--cpp-border);
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.card {
    border: 1px solid var(--cpp-border);
    border-radius: 0.85rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--cpp-border);
    padding: 0.9rem 1.25rem;
    font-weight: 600;
}

.chat-thread-box {
    max-height: 480px;
    overflow-y: auto;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid var(--cpp-border);
}

.chat-bubble {
    max-width: 78%;
    padding: 0.75rem 1rem;
    border-radius: 0.85rem;
    position: relative;
}

.chat-bubble.mine {
    background: #2563eb;
    color: #ffffff;
    border-bottom-right-radius: 0.2rem;
}

.chat-bubble.theirs {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid var(--cpp-border);
    border-bottom-left-radius: 0.2rem;
}

.chat-reply-quote {
    font-size: 0.8rem;
    padding: 0.35rem 0.6rem;
    border-left: 3px solid rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.12);
    border-radius: 0.35rem;
    margin-bottom: 0.45rem;
}

.chat-bubble.theirs .chat-reply-quote {
    border-left-color: #2563eb;
    background: #f1f5f9;
    color: #475569;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1040;
}

@media (max-width: 991.98px) {
    .portal-sidebar {
        transform: translateX(-100%);
    }
    .portal-sidebar.show {
        transform: translateX(0);
    }
    .sidebar-backdrop.show {
        display: block;
    }
    .portal-main {
        margin-left: 0;
    }
    .portal-content {
        padding: 1rem;
    }
    .chat-bubble {
        max-width: 92%;
    }
}

@media print {
    .portal-sidebar,
    .portal-topbar,
    .no-print {
        display: none !important;
    }
    .portal-main {
        margin-left: 0 !important;
    }
}
