/* ============================================
   CRMG - Modern Login/Landing Page
   CSS Stylesheet
   ============================================ */

/* ==========================================
   CSS Variables & Root Styles
   ========================================== */
:root {
    /* Primary Colors */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: #a3bffa;

    /* Accent Colors */
    --accent-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-color: #f093fb;

    /* Salesforce Blue */
    --salesforce-blue: #00a1e0;
    --salesforce-dark: #0070d2;

    /* Neutral Colors */
    --bg-dark: #0f0f23;
    --bg-darker: #0a0a1a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.3);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ==========================================
   Reset & Base Styles
   ========================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: var(--primary-light);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

input,
select,
textarea {
    font-family: inherit;
    outline: none;
}

/* ==========================================
   Animated Background
   ========================================== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(240, 147, 251, 0.05) 0%, transparent 70%);
}

.bg-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #764ba2;
    bottom: 20%;
    right: -50px;
    animation-delay: -7s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--accent-color);
    bottom: -50px;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-30px, 50px) scale(0.95);
    }

    75% {
        transform: translate(-50px, -20px) scale(1.02);
    }
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: var(--shadow-glow);
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width var(--transition-normal);
}

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

.nav-link:hover::after {
    width: 100%;
}

.btn-nav {
    padding: 10px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition-fast);
    display: inline-block;
}

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

.nav-mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 18px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(15, 15, 35, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 30px;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 10px 0;
}

.mobile-cta {
    margin-top: 10px;
}

/* ==========================================
   Buttons
   ========================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md), 0 0 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 30px 60px;
    max-width: var(--container-width);
    margin: 0 auto;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.hero-badge i {
    color: var(--accent-color);
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
}

.gradient-text {
    display: block;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

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

/* Dashboard Preview */
.dashboard-preview {
    width: 100%;
    max-width: 520px;
    background: rgba(20, 20, 40, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-light);
}

.preview-dots {
    display: flex;
    gap: 8px;
}

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

.dot.red {
    background: #ff5f57;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #28c840;
}

.preview-title {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.preview-content {
    padding: 24px;
}

.chat-demo {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    display: flex;
    gap: 12px;
    animation: fadeInUp 0.5s ease-out forwards;
}

.chat-message.user {
    animation-delay: 0.3s;
}

.chat-message.agent {
    animation-delay: 1s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.user-avatar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.agent-avatar {
    background: var(--primary-gradient);
    color: white;
}

.message-bubble {
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    line-height: 1.5;
}

.chat-message.user .message-bubble {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.chat-message.agent .message-bubble {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: var(--text-primary);
}

.typing-indicator {
    display: none;
    gap: 4px;
    padding: 4px 0;
}

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

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

    30% {
        transform: translateY(-6px);
    }
}

.agent-response a {
    color: var(--primary-light);
}

.tool-execution {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(40, 200, 64, 0.1);
    border: 1px solid rgba(40, 200, 64, 0.3);
    border-radius: var(--radius-md);
    font-size: 12px;
    color: var(--text-secondary);
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: 2s;
    opacity: 0;
}

.tool-execution i {
    color: #28c840;
}

.tool-success {
    margin-left: auto;
    color: #28c840;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================
   Sections Common
   ========================================== */
.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================
   Features Section
   ========================================== */
.features {
    padding: var(--section-padding) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.feature-icon-svg {
    padding: 10px;
}
.feature-icon-svg svg {
    width: 100%;
    height: 100%;
    color: inherit;
}
.feature-icon-svg svg path,
.feature-icon-svg svg circle,
.feature-icon-svg svg rect,
.feature-icon-svg svg ellipse {
    color: inherit;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Coming Soon Feature Card */
.feature-card.coming-soon {
    position: relative;
    opacity: 0.85;
}

.feature-card.coming-soon .feature-icon {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    box-shadow: 0 0 20px rgba(107, 114, 128, 0.3);
}

.feature-card .feature-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Coming Soon in Pricing */
.coming-soon-text {
    color: var(--text-muted);
    font-style: italic;
}

.pricing-features li .fa-clock {
    color: #f59e0b;
}

/* Preview Link on Coming Soon Card */
.preview-link {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-light);
    transition: all var(--transition-fast);
}

a.feature-card.coming-soon:hover .preview-link {
    background: var(--primary-gradient);
    color: white;
    transform: translateX(4px);
}

a.feature-card.coming-soon:hover {
    opacity: 1;
    cursor: pointer;
}

/* ==========================================
   Pricing Section
   ========================================== */
.pricing {
    padding: var(--section-padding) 0;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all var(--transition-normal);
}

.pricing-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.pricing-card.featured {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.pricing-card.featured:hover {
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: var(--primary-gradient);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.pricing-header {
    margin-bottom: 24px;
}

.pricing-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-desc {
    font-size: 14px;
    color: var(--text-muted);
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 30px;
}

.currency {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-secondary);
}

.price {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
}

.period {
    font-size: 14px;
    color: var(--text-muted);
}

.price-custom {
    font-size: 36px;
    font-weight: 700;
}


.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-features i {
    color: var(--primary-light);
    font-size: 14px;
}

.btn-pricing {
    width: 100%;
}

/* ==========================================
   CTA Section
   ========================================== */
.cta-section {
    padding: var(--section-padding) 0;
}

.cta-card {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-xl);
    box-shadow: 0 0 60px rgba(102, 126, 234, 0.2);
}

.cta-card h2 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-card p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

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

/* Feature Card Highlight */
.feature-card.highlight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: var(--primary-color);
}

/* ==========================================
   Login Section
   ========================================== */
.login-section {
    padding: var(--section-padding) 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 100%;
    max-width: 480px;
    background: linear-gradient(135deg, rgba(30, 30, 60, 0.95) 0%, rgba(20, 20, 40, 0.98) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-glow);
}

.login-header h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon>i:first-child {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

.input-with-icon input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 4px;
    transition: color var(--transition-fast);
}

.toggle-password:hover {
    color: var(--text-primary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.checkbox-label input:checked+.checkmark {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
}

.checkbox-label input:checked+.checkmark::before {
    content: '✓';
    color: white;
    font-size: 11px;
    font-weight: bold;
}

.forgot-link {
    font-size: 13px;
    color: var(--primary-light);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.login-divider span {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.btn-social:not(:disabled):hover {
    background: var(--bg-card-hover);
}

.btn-social:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-social.salesforce:not(:disabled):hover {
    border-color: var(--salesforce-blue);
}

.btn-social.salesforce i {
    color: var(--salesforce-blue);
    font-size: 18px;
}

.btn-social.google:not(:disabled):hover {
    border-color: #ea4335;
}

.btn-social.google i {
    color: #ea4335;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
}

.login-footer p {
    font-size: 14px;
    color: var(--text-muted);
}

.login-footer a {
    color: var(--primary-light);
    font-weight: 500;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 20px 0;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-column a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    padding: 6px 0;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-badges {
    display: flex;
    gap: 24px;
}

.footer-badges span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-badges i {
    color: #28c840;
}

/* ==========================================
   Toast Notification
   ========================================== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(40, 200, 64, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
    border: 1px solid rgba(40, 200, 64, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    transform: translateX(calc(100% + 50px));
    transition: transform var(--transition-normal);
}

.toast.active {
    transform: translateX(0);
}

.toast-icon {
    width: 40px;
    height: 40px;
    background: rgba(40, 200, 64, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #28c840;
    font-size: 18px;
}

.toast-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.toast-content p {
    font-size: 13px;
    color: var(--text-secondary);
}

.toast-close {
    margin-left: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 4px;
    transition: color var(--transition-fast);
}

.toast-close:hover {
    color: var(--text-primary);
}

/* ==========================================
   Responsive Styles
   ========================================== */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-brand {
        max-width: 100%;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

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

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .nav-links {
        display: none;
    }

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

    .hero-visual {
        width: 100%;
    }

    .dashboard-preview {
        max-width: 100%;
    }

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

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .login-card {
        padding: 30px 20px;
    }

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

    .toast {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .hero-cta {
        flex-direction: column;
    }

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

/* ============================================
   CRMG Chat Widget
   ============================================ */

/* Chat Bubble */
.crmg-chat-bubble {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.crmg-chat-bubble:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(102, 126, 234, 0.55);
}

.crmg-chat-bubble::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.4;
    z-index: -1;
    animation: crmg-chat-pulse 2.5s ease-in-out infinite;
}

@keyframes crmg-chat-pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.25); opacity: 0; }
}

.crmg-chat-bubble .crmg-chat-icon-open,
.crmg-chat-bubble .crmg-chat-icon-close {
    position: absolute;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.crmg-chat-bubble .crmg-chat-icon-close {
    opacity: 0;
    transform: rotate(-90deg);
}

.crmg-chat-bubble.active .crmg-chat-icon-open {
    opacity: 0;
    transform: rotate(90deg);
}

.crmg-chat-bubble.active .crmg-chat-icon-close {
    opacity: 1;
    transform: rotate(0deg);
}

/* Chat Panel */
.crmg-chat-panel {
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 380px;
    height: 520px;
    background: rgba(15, 15, 35, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    z-index: 9999;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 40px rgba(102, 126, 234, 0.15);
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.crmg-chat-panel.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Panel Header */
.crmg-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
}

.crmg-chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
}

.crmg-chat-header-info {
    flex: 1;
    min-width: 0;
}

.crmg-chat-header-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.crmg-chat-header-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.crmg-chat-header-status .crmg-chat-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #28c840;
}

.crmg-chat-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.crmg-chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Messages Area */
.crmg-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.crmg-chat-messages::-webkit-scrollbar {
    width: 5px;
}

.crmg-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.crmg-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

/* Message Bubbles */
.crmg-chat-msg {
    display: flex;
    gap: 8px;
    max-width: 88%;
    animation: crmg-chat-fadeIn 0.25s ease-out;
}

@keyframes crmg-chat-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.crmg-chat-msg.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.crmg-chat-msg-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.55;
    color: #fff;
    word-break: break-word;
}

.crmg-chat-msg.assistant .crmg-chat-msg-bubble {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top-left-radius: 4px;
}

.crmg-chat-msg.user .crmg-chat-msg-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-top-right-radius: 4px;
}

.crmg-chat-msg-bubble code {
    background: rgba(0, 0, 0, 0.3);
    padding: 1px 5px;
    border-radius: 4px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12px;
}

.crmg-chat-msg-bubble a {
    color: #a3bffa;
    text-decoration: underline;
}

.crmg-chat-msg-bubble strong {
    font-weight: 600;
}

/* Typing Indicator */
.crmg-chat-typing {
    display: flex;
    gap: 8px;
    max-width: 88%;
    animation: crmg-chat-fadeIn 0.25s ease-out;
}

.crmg-chat-typing-dots {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    border-top-left-radius: 4px;
}

.crmg-chat-typing-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    animation: crmg-chat-typingBounce 1.4s ease-in-out infinite;
}

.crmg-chat-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.crmg-chat-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes crmg-chat-typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

/* Input Area */
.crmg-chat-input-area {
    padding: 12px 16px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.crmg-chat-input-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.crmg-chat-textarea {
    flex: 1;
    resize: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 10px 14px;
    font-size: 13.5px;
    font-family: inherit;
    line-height: 1.45;
    max-height: 80px;
    overflow-y: auto;
    transition: border-color 0.15s ease;
    scrollbar-width: none;
}

.crmg-chat-textarea::-webkit-scrollbar { display: none; }

.crmg-chat-textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.crmg-chat-textarea:focus {
    border-color: rgba(102, 126, 234, 0.5);
}

.crmg-chat-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.crmg-chat-send-btn:hover {
    transform: scale(1.06);
}

.crmg-chat-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.crmg-chat-footer {
    text-align: center;
    padding: 4px 0 8px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.25);
}

.crmg-chat-footer a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
}

.crmg-chat-footer a:hover {
    color: rgba(255, 255, 255, 0.55);
}

/* Responsive */
@media (max-width: 768px) {
    .crmg-chat-panel {
        width: 340px;
        height: 480px;
    }
}

@media (max-width: 480px) {
    .crmg-chat-panel {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        visibility: hidden;
        opacity: 0;
        transform: translateY(100%);
        pointer-events: none;
    }

    .crmg-chat-panel.open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .crmg-chat-bubble {
        bottom: 20px;
        right: 20px;
        position: fixed;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}
