/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #818CF8;
    --secondary-color: #7C3AED;
    --accent-color: #06B6D4;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-dark: #111827;
    --border-color: #E5E7EB;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --error-color: #EF4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.btn-login {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-login:hover {
    background: var(--primary-dark);
}

/* ===== DROPDOWN MENU ===== */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 1000;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.dropdown-item:first-child {
    border-radius: 0.5rem 0.5rem 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 0.5rem 0.5rem;
}

.dropdown-item.disabled {
    color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.6;
}

.dropdown-item.disabled:hover {
    background: transparent;
    color: var(--text-light);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===== HERO SECTION ===== */
.hero {
    margin-top: 72px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #F9FAFB 0%, #EEF2FF 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-illustration svg {
    width: 100%;
    max-width: 400px;
    height: auto;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 5rem 2rem;
    text-align: center;
}

.stats-headline {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.stats-subheadline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 3rem auto;
    line-height: 1.7;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #00A878;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-source {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    .stats-headline {
        font-size: 2rem;
    }
}

@media (max-width: 500px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-number {
        font-size: 2.5rem;
    }
}

/* ===== SECTIONS ===== */
section {
    padding: 5rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.25rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* ===== SERVICES SECTION ===== */
.services {
    background: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== AUTOMATION SECTION ===== */
.automation {
    background: var(--bg-secondary);
}

.automation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.automation-feature {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s;
}

.automation-feature:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.feature-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.automation-feature h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.automation-feature p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== BENEFITS SECTION ===== */
.benefits {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.benefits .section-title,
.benefits .section-subtitle {
    color: white;
}

.benefits-list {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.benefit-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.benefit-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    opacity: 0.9;
    line-height: 1.7;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details p {
    margin-bottom: 1rem;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-tagline {
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ===== LOGIN PAGE ===== */
.login-page {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.login-box {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1.5rem;
}

.login-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-secondary);
}

.btn-ms365 {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: #0078D4;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 2rem;
}

.btn-ms365:hover {
    background: #005a9e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.login-divider {
    text-align: center;
    margin: 2rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.login-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-item svg {
    color: var(--primary-color);
}

.login-help {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.login-help p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.login-help a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.login-help a:hover {
    text-decoration: underline;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--primary-color);
}

.login-background {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.floating-shapes .shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
    animation-delay: -10s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    bottom: 20%;
    left: 5%;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* ===== DASHBOARD ===== */
.dashboard-page {
    background: var(--bg-secondary);
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--bg-dark);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 9999;
    height: 100vh;
    overflow-y: auto;
    left: 0;
    top: 0;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.sidebar-logo {
    height: 40px;
    width: auto;
    display: block;
    max-width: 100%;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
    position: relative;
    z-index: 2;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 3;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-left-color: var(--primary-color);
}

.nav-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== SIDEBAR DROPDOWNS ===== */

.nav-item-dropdown {
    position: relative;
}

.nav-toggle {
    display: flex;
    align-items: center;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    opacity: 0.7;
    margin-left: auto;
}

.nav-item-dropdown.open .nav-toggle .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-submenu {
    display: none;
    background: rgba(0, 0, 0, 0.2);
}

.nav-item-dropdown.open .nav-submenu {
    display: block;
}

.nav-subitem {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem 0.875rem 3rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}

.nav-subitem:hover,
.nav-subitem.active {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-left-color: var(--primary-light);
}

.nav-subitem svg {
    flex-shrink: 0;
}

/* Sub-dropdowns (for Prospective Business) */
.nav-subitem-dropdown {
    position: relative;
}

.nav-subtoggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.nav-subitem-dropdown.open .nav-subtoggle .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-sub-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
}

.nav-subitem-dropdown.open .nav-sub-submenu {
    max-height: 500px;
}

.nav-sub-subitem {
    display: block;
    padding: 0.75rem 1.5rem 0.75rem 4.5rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.85rem;
    border-left: 3px solid transparent;
}

.nav-sub-subitem:hover,
.nav-sub-subitem.active {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-left-color: var(--accent-color);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logout-btn {
    width: 100%;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-left-color: var(--error-color);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 0.75rem;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dashboard-main {
    margin-left: 280px;
    flex: 1;
    padding: 2rem;
    padding-bottom: 6rem; /* Extra space for floating chat button */
    position: relative;
    z-index: 1;
    transition: margin-left 0.3s ease;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.header-subtitle {
    color: var(--text-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stat-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.stat-header svg {
    color: var(--primary-color);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-change {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.stat-change.positive {
    color: var(--success-color);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.content-section {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.section-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.section-link:hover {
    text-decoration: underline;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.activity-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.action-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
}

.action-card:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.action-card svg {
    color: var(--primary-color);
    transition: color 0.3s;
}

.action-card:hover svg {
    color: white;
}

.action-card span {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

.notice-banner {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border: 1px solid #FCD34D;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
}

.notice-icon {
    color: #F59E0B;
    flex-shrink: 0;
}

.notice-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #92400E;
}

.notice-content p {
    color: #78350F;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== INTEGRATIONS ===== */
.content-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.badge-count {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.integration-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    transition: all 0.3s;
}

.integration-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.integration-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.integration-info {
    flex: 1;
}

.integration-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.integration-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.integration-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.success {
    background: var(--success-color);
}

.status-dot.warning {
    background: #FFA726;
}

.status-dot.error {
    background: #EF5350;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        order: -1;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-main {
        margin-left: 0;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .sidebar.open {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .automation-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }
}

/* ===== CLIENT PORTAL PAGE ===== */
.client-portal-page {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.client-portal-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.client-portal-content {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
}

.portal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.portal-logo {
    height: 60px;
    width: auto;
}

.coming-soon-box {
    text-align: center;
}

.icon-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.coming-soon-box h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.coming-soon-box .subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 2rem;
}

.coming-soon-box .description {
    text-align: left;
    margin: 2rem auto;
    max-width: 600px;
}

.coming-soon-box .description > p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s;
}

.features-list li:hover {
    background: var(--primary-light);
    color: white;
    transform: translateX(5px);
}

.features-list li svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.features-list li:hover svg {
    color: white;
}

.features-list li span {
    font-size: 1rem;
    color: var(--text-primary);
}

.features-list li:hover span {
    color: white;
}

.cta-section {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cta-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.cta-section .btn {
    margin: 0 0.5rem;
}

.info-box {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border: 1px solid #FCD34D;
    border-radius: 0.75rem;
    margin: 2rem 0;
    text-align: left;
}

.info-box svg {
    color: #F59E0B;
    flex-shrink: 0;
}

.info-box strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.info-box p {
    color: var(--text-secondary);
    margin: 0;
}

.info-box a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.info-box a:hover {
    text-decoration: underline;
}

.contact-info {
    margin-top: 2rem;
    color: var(--text-secondary);
}

.contact-info p {
    margin: 0.5rem 0;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.portal-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.portal-background {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

/* Responsive design for client portal */
@media (max-width: 768px) {
    .client-portal-content {
        padding: 2rem 1.5rem;
    }

    .coming-soon-box h1 {
        font-size: 2rem;
    }

    .coming-soon-box .subtitle {
        font-size: 1.25rem;
    }

    .cta-section .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* ===== SALES REPORT STYLES ===== */

/* Filter Section */
.filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-group label {
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.filter-select,
.filter-input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-select:hover,
.filter-select:focus,
.filter-input:hover,
.filter-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.btn-refresh {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: auto;
}

.btn-refresh:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-refresh svg {
    transition: transform 0.3s;
}

.btn-refresh:active svg {
    transform: rotate(180deg);
}

/* Stats Grid Enhancements */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}

.stat-card.stat-primary::before {
    background: #4f46e5;
}

.stat-card.stat-success::before {
    background: #10b981;
}

.stat-card.stat-warning::before {
    background: #f59e0b;
}

.stat-card.stat-info::before {
    background: #06b6d4;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.stat-change.positive {
    color: var(--success-color);
}

.stat-change.negative {
    color: var(--error-color);
}

/* Activity Breakdown */
.activity-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1rem 0;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: all 0.2s;
}

.breakdown-item:hover {
    background: #f3f4f6;
    transform: translateX(4px);
}

.breakdown-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.breakdown-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.breakdown-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.breakdown-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.breakdown-percent {
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

/* Appointments List */
.appointments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.appointment-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.2s;
}

.appointment-item:hover {
    background: #f3f4f6;
    transform: translateX(4px);
}

.appointment-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 8px;
}

.appointment-details {
    flex: 1;
}

.appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.appointment-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--primary-light);
    color: white;
    border-radius: 12px;
    font-weight: 500;
}

.appointment-time {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.appointment-notes {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-table thead {
    background: var(--bg-secondary);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.data-table tbody tr {
    transition: background-color 0.2s;
}

.data-table tbody tr:hover {
    background: var(--bg-secondary);
}

.activity-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.activity-badge.activity-phone-call {
    background: #dbeafe;
    color: #1e40af;
}

.activity-badge.activity-email {
    background: #fef3c7;
    color: #92400e;
}

.activity-badge.activity-meeting {
    background: #dcfce7;
    color: #166534;
}

.outcome-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.outcome-badge.outcome-qualified {
    background: #dcfce7;
    color: #166534;
}

.outcome-badge.outcome-scheduled {
    background: #e0e7ff;
    color: #3730a3;
}

.outcome-badge.outcome-hot {
    background: #fee2e2;
    color: #991b1b;
}

.outcome-badge.outcome-followup {
    background: #fef3c7;
    color: #92400e;
}

.outcome-badge.outcome-info {
    background: #dbeafe;
    color: #1e40af;
}

.outcome-badge.outcome-proposal {
    background: #fae8ff;
    color: #86198f;
}

.outcome-badge.outcome-rejected {
    background: #f3f4f6;
    color: #4b5563;
}

.outcome-badge.outcome-won {
    background: #d1fae5;
    color: #065f46;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Sales Funnel */
.funnel-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

.funnel-stage {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.funnel-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.funnel-count {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.funnel-bar {
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 1rem;
    transition: all 0.3s;
    position: relative;
}

.funnel-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    background: inherit;
    opacity: 0.1;
    border-radius: 8px;
}

.funnel-bar-label {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Card Header Enhancements */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header h2 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    width: 250px;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn-export {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.btn-export:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.btn-link:hover {
    color: var(--primary-dark);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
    font-style: italic;
}

/* Responsive Styles for Sales Report */
@media (max-width: 1024px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-refresh {
        margin-left: 0;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .breakdown-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .breakdown-stats {
        align-self: flex-end;
    }
}

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

    .content-grid {
        grid-template-columns: 1fr;
    }

    .table-container {
        border-radius: 0;
        margin: 0 -1.5rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }

    .search-input {
        width: 100%;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-export {
        width: 100%;
    }

    .appointment-item {
        flex-direction: column;
    }

    .appointment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ===== MODAL STYLES ===== */

.modal {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group small {
    display: block;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ===== ALERT STYLES ===== */

.alert-banner {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #92400e;
}

.alert-content svg {
    flex-shrink: 0;
    color: #f59e0b;
}

.btn-configure {
    background: white;
    color: #92400e;
    padding: 0.5rem 1.25rem;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-configure:hover {
    background: #f59e0b;
    color: white;
    transform: translateY(-1px);
}

.alert-info {
    background: #dbeafe;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.alert-info svg {
    flex-shrink: 0;
    color: #3b82f6;
    margin-top: 0.25rem;
}

.alert-info ol {
    margin: 0.5rem 0 0 1.25rem;
    padding: 0;
}

.alert-info li {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #1e40af;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid #ef4444;
    border-radius: 8px;
    padding: 1rem;
    color: #991b1b;
    margin-bottom: 1rem;
}

.alert-success {
    background: #dcfce7;
    border: 1px solid #10b981;
    border-radius: 8px;
    padding: 1rem;
    color: #065f46;
    margin-bottom: 1rem;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        max-height: 95vh;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer button {
        width: 100%;
    }

    .alert-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .btn-configure {
        width: 100%;
    }
}

/* ===== LEGAL PAGES STYLES ===== */

.legal-container {
    max-width: 900px;
    margin: 100px auto 60px;
    padding: 0 2rem;
}

.legal-content {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.legal-content h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.legal-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.legal-section h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-section p {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.legal-section ul,
.legal-section ol {
    margin: 1rem 0 1rem 2rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.legal-section address {
    font-style: normal;
    line-height: 1.8;
    color: var(--text-secondary);
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.legal-section a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.legal-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-acknowledgment {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.legal-acknowledgment p {
    color: #92400e;
    font-weight: 600;
    margin: 0;
}

.legal-navigation {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

/* ===== QUICKBOOKS INTEGRATION STYLES ===== */

.qb-status-card {
    background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
    border: 2px solid #10b981;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.qb-status-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
}

.qb-status-icon svg {
    stroke: currentColor;
}

.qb-status-warning {
    background: #fef3c7;
    color: #f59e0b;
}

.qb-status-card h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.qb-status-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.qb-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.qb-info-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: left;
}

.qb-info-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.qb-info-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.qb-features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.qb-feature-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: all 0.2s;
}

.qb-feature-item:hover {
    background: #f3f4f6;
    transform: translateX(4px);
}

.qb-feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qb-feature-content h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.qb-feature-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.qb-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.qb-actions .btn-primary,
.qb-actions .btn-secondary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
}

.qb-legal-notice {
    background: #f3f4f6;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.qb-legal-notice p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.qb-legal-notice a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.qb-legal-notice a:hover {
    text-decoration: underline;
}

/* Disconnect page specific styles */
.qb-disconnect-icon {
    background: #fee2e2;
    color: #ef4444;
}

.qb-disconnect-info {
    background: #f3f4f6;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.qb-disconnect-info h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.qb-reconnect-box {
    background: #dbeafe;
    border: 1px solid #3b82f6;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.qb-reconnect-box h3 {
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.qb-reconnect-box p {
    color: #1e40af;
    margin: 0;
}

/* Responsive Legal Pages */
@media (max-width: 768px) {
    .legal-container {
        margin: 80px auto 40px;
        padding: 0 1rem;
    }

    .legal-content {
        padding: 2rem 1.5rem;
    }

    .legal-content h1 {
        font-size: 2rem;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .legal-section h3 {
        font-size: 1.1rem;
    }

    .legal-navigation {
        flex-direction: column;
    }

    .legal-navigation .btn-primary,
    .legal-navigation .btn-secondary {
        width: 100%;
    }

    .qb-info-grid {
        grid-template-columns: 1fr;
    }

    .qb-actions {
        flex-direction: column;
    }

    .qb-actions .btn-primary,
    .qb-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .qb-feature-item {
        flex-direction: column;
    }
}

/* AWS Billing Styles */
.billing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.billing-card {
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.billing-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.billing-card.current-month {
    border: 2px solid #0066cc;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.billing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e1e4e8;
}

.billing-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #24292e;
    font-weight: 600;
}

.billing-amount {
    display: flex;
    align-items: baseline;
    margin-bottom: 1rem;
}

.billing-amount .currency {
    font-size: 1.5rem;
    color: #0066cc;
    font-weight: 600;
    margin-right: 0.25rem;
}

.billing-amount .amount {
    font-size: 2.5rem;
    color: #0066cc;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.billing-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
    border-top: 1px solid #e1e4e8;
    border-bottom: 1px solid #e1e4e8;
}

.billing-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.billing-detail .detail-label {
    font-size: 0.9rem;
    color: #586069;
    font-weight: 500;
}

.billing-detail .detail-value {
    font-size: 1rem;
    color: #24292e;
    font-weight: 600;
}

.billing-services {
    margin-top: 1rem;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f6f8fa;
}

.service-item:last-child {
    border-bottom: none;
}

.service-name {
    font-size: 0.85rem;
    color: #586069;
    font-weight: 500;
}

.service-cost {
    font-size: 0.9rem;
    color: #24292e;
    font-weight: 600;
}

.billing-change {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e1e4e8;
}

.billing-change span {
    font-size: 0.85rem;
    color: #586069;
}

.billing-change.positive {
    color: #22863a;
}

.billing-change.negative {
    color: #d73a49;
}

@media (max-width: 768px) {
    .billing-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .billing-amount .amount {
        font-size: 2rem;
    }
}

/* ===== SALES AI CHAT ASSISTANT ===== */

/* Container with collapsed/expanded states */
#sales-ai-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    transition: all 0.3s ease;
}

#sales-ai-container.sales-ai-collapsed .sales-ai-panel {
    display: none;
}

/* Floating toggle button */
.sales-ai-toggle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
    transition: all 0.3s ease;
}

.sales-ai-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(79, 70, 229, 0.6);
}

.sales-ai-toggle svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Chat panel */
.sales-ai-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 400px;
    height: 600px;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

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

/* Header */
.sales-ai-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.sales-ai-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.sales-ai-header p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.4;
}

.sales-ai-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.sales-ai-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Messages container */
.sales-ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Custom scrollbar */
.sales-ai-messages::-webkit-scrollbar {
    width: 6px;
}

.sales-ai-messages::-webkit-scrollbar-track {
    background: transparent;
}

.sales-ai-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.sales-ai-messages::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* Message bubbles */
.ai-message,
.user-message {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    animation: fadeIn 0.3s ease;
}

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

.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.message-content {
    background: white;
    padding: 0.875rem 1rem;
    border-radius: 1rem;
    max-width: 75%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.user-message .message-content {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.ai-message .message-content {
    border-bottom-left-radius: 0.25rem;
}

.message-content p {
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
    font-size: 0.9rem;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.message-content li {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.message-content strong {
    font-weight: 600;
    color: var(--primary-color);
}

.user-message .message-content strong {
    color: white;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 0.375rem;
    padding: 0.75rem 1rem;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-light);
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Input container */
.sales-ai-input-container {
    padding: 1rem;
    background: white;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.sales-ai-input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.9rem;
    resize: none;
    max-height: 120px;
    transition: border-color 0.2s;
}

.sales-ai-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.sales-ai-input:disabled {
    background: var(--bg-secondary);
    cursor: not-allowed;
}

.sales-ai-send {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.sales-ai-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.sales-ai-send:active {
    transform: scale(0.95);
}

/* Quick actions */
.sales-ai-quick-actions {
    padding: 0.75rem 1rem 1rem 1rem;
    background: white;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    border-top: 1px solid var(--border-color);
}

.sales-ai-quick-actions::-webkit-scrollbar {
    height: 4px;
}

.sales-ai-quick-actions::-webkit-scrollbar-track {
    background: transparent;
}

.sales-ai-quick-actions::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.quick-action {
    padding: 0.5rem 0.875rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.quick-action:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Responsive design */
@media (max-width: 768px) {
    .sales-ai-panel {
        width: calc(100vw - 2rem);
        height: calc(100vh - 100px);
        right: 1rem;
        bottom: 80px;
    }

    #sales-ai-container {
        right: 1rem;
        bottom: 1rem;
    }

    .message-content {
        max-width: 85%;
    }
}

@media (max-width: 480px) {
    .sales-ai-panel {
        width: calc(100vw - 1rem);
        height: calc(100vh - 80px);
        right: 0.5rem;
        bottom: 70px;
        border-radius: 0.75rem;
    }

    #sales-ai-container {
        right: 0.5rem;
    }

    .sales-ai-toggle {
        width: 56px;
        height: 56px;
    }
}

/* ===== SIDEBAR COLLAPSE (DESKTOP) ===== */

.dashboard-container.sidebar-collapsed .sidebar {
    display: none;
}

.dashboard-container.sidebar-collapsed .dashboard-main,
.dashboard-container.sidebar-collapsed .main-content {
    margin-left: 0;
    max-width: 100%;
}

/* ===== MOBILE PWA STYLES ===== */

/* Hamburger menu button - hidden on desktop */
.mobile-menu-toggle {
    display: none !important;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1001;
    width: 40px;
    height: 40px;
    background: #4F46E5;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.mobile-menu-toggle svg {
    width: 22px;
    height: 22px;
    color: white;
}

/* Mobile overlay when sidebar is open */
.sidebar-overlay {
    display: none !important;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.visible {
    display: block !important;
    opacity: 1;
}

/* Mobile close button in sidebar - MUST be hidden on desktop */
.sidebar-close-btn {
    display: none !important;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.sidebar-close-btn svg {
    width: 18px;
    height: 18px;
    color: white;
}

@media (max-width: 768px) {
    /* Show hamburger button */
    .mobile-menu-toggle {
        display: flex !important;
    }

    /* Show close button in sidebar */
    .sidebar-close-btn {
        display: flex !important;
    }

    /* Convert sidebar to slide-out drawer */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        position: fixed;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    /* Main content full width on mobile */
    .main-content,
    .dashboard-container .main-content,
    .dashboard-container .dashboard-main {
        margin-left: 0 !important;
        width: 100% !important;
        padding-top: 56px;
    }

    .dashboard-container {
        display: block;
    }

    /* Larger touch targets */
    .nav-item,
    .nav-subitem,
    .nav-sub-subitem {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Tables scroll horizontally */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Stack grids */
    .service-grid,
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===== SERVICE PAGE STYLES ===== */
.service-hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    text-align: center;
}

.service-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.service-hero .hero-subtitle {
    font-size: 20px;
    color: #94a3b8;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.service-hero .hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.service-section {
    padding: 80px 0;
}

.service-section:nth-child(even) {
    background: #f8f9fa;
}

.service-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.service-content h2 {
    font-size: 32px;
    color: #1e293b;
    margin-bottom: 16px;
    text-align: center;
}

.service-content .section-lead {
    font-size: 18px;
    color: #64748b;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* Pain point cards */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.pain-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-top: 4px solid #ef4444;
}

.pain-card h4 {
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 12px;
}

.pain-card p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-card .feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-card h4 {
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
}

/* Process steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.process-step {
    text-align: center;
    padding: 40px 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: relative;
}

.process-step .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.process-step h4 {
    font-size: 20px;
    color: #1e293b;
    margin-bottom: 12px;
}

.process-step p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
}

/* Benefits list */
.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.benefit-item .check {
    color: #10b981;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.benefit-item p {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* CTA banner */
.cta-banner {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    padding: 60px 0;
    text-align: center;
    color: white;
}

.cta-banner h2 {
    font-size: 36px;
    margin-bottom: 16px;
    color: white;
}

.cta-banner p {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto 32px;
}

.cta-banner .btn-primary {
    background: white;
    color: var(--primary-color);
    font-size: 16px;
    padding: 14px 36px;
}

.cta-banner .btn-primary:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

/* ===== FAQ ACCORDION ===== */
.faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    background: white;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    background: white;
    border: none;
    width: 100%;
    text-align: left;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question .faq-icon {
    font-size: 20px;
    color: #94a3b8;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-question .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ===== SERVICE PAGE RESPONSIVE ===== */
@media (max-width: 768px) {
    .service-hero h1 { font-size: 32px; }
    .service-hero .hero-subtitle { font-size: 17px; }
    .process-steps { grid-template-columns: 1fr; }
    .pain-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .cta-banner h2 { font-size: 28px; }
}
