/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #f8fafc;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Text overflow handling */
h1, h2, h3, h4, h5, h6, p, span, div, a, button, input, textarea, select {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Color Variables */
:root {
    --primary-color: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #6366f1;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #1f2937;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-heavy: rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    --gradient-secondary: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    --gradient-dark: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

/* Container with text overflow protection */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
}

/* Navigation with text overflow protection */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #4f46e5;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin-right: 0.5rem;
}

.nav-logo span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-logo i {
    margin-right: 0.5rem;
    font-size: 1.5rem;
    color: #4f46e5;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.nav-menu a:hover {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 3px;
    padding: 5px;
    flex-shrink: 0;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: #4f46e5;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Hero Section with text overflow protection */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.2s both;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease 0.4s both;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    animation: fadeInUp 1s ease 0.6s both;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    color: white;
    min-width: 0;
}

.stat-item .counter {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.stat-label {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    font-size: 1rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 200px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(0);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.3);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease 0.6s both;
    overflow: hidden;
}

.hero-graphic {
    position: relative;
    width: clamp(300px, 40vw, 450px);
    height: clamp(300px, 40vw, 450px);
    background: var(--gradient-glass);
    border-radius: 30px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.hero-graphic::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 30px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(20px);
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    width: 100%;
    padding: 2rem;
    overflow: hidden;
}

.module-item {
    background: var(--gradient-glass);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 0.75rem;
    text-align: center;
    color: white;
    font-weight: 600;
    font-size: clamp(0.6rem, 1.5vw, 0.8rem);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.module-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.module-item:hover::before {
    left: 100%;
}

.module-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Section Headers with text overflow protection */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    overflow: hidden;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1f2937;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.section-header p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Features Section with text overflow protection */
.features {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(79,70,229,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.feature-card {
    background: var(--gradient-card);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
}

.feature-icon i {
    font-size: 1.8rem;
    color: white;
    z-index: 1;
}

.feature-card h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Modules Section with text overflow protection */
.modules {
    padding: 100px 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.modules::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.module-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.module-card:hover::before {
    opacity: 0.05;
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.featured-module {
    background: white;
    color: #333;
    border: 2px solid #4f46e5;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.2);
    position: relative;
}

.featured-module::before {
    content: "FEATURED";
    position: absolute;
    top: -10px;
    right: 15px;
    background: #4f46e5;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.featured-module .module-icon {
    background: var(--gradient-primary);
    color: white;
}

.featured-module .module-features li {
    color: #333;
}

.featured-module .module-features li::before {
    color: #4f46e5;
}

.module-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.module-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
}

.module-icon i {
    font-size: 1.5rem;
    color: white;
    z-index: 1;
}

.module-card h3 {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.module-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.module-features {
    list-style: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.module-features li {
    color: #6b7280;
    font-size: clamp(0.9rem, 2.5vw, 0.95rem);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    transition: color 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.module-features li::before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.module-card:hover .module-features li {
    color: #374151;
}

/* Pricing Section with text overflow protection */
.pricing {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: visible;
}

.pricing-highlight {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.highlight-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

.competitor-price {
    font-size: 0.9rem;
    color: #92400e;
    text-decoration: line-through;
    margin-bottom: 0.5rem;
}

.savings-highlight {
    font-size: 1.1rem;
    font-weight: 700;
    color: #92400e;
    background: #fbbf24;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    display: inline-block;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hexagons" width="30" height="30" patternUnits="userSpaceOnUse"><polygon points="15,0 30,8.66 30,21.65 15,30 0,21.65 0,8.66" fill="none" stroke="rgba(79,70,229,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23hexagons)"/></svg>');
    opacity: 0.3;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    overflow: visible;
    justify-items: center;
}

.pricing-card {
    background: white;
    border-radius: 25px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: visible;
    border: 2px solid transparent;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.2);
}

.pricing-card.featured::before {
    opacity: 0.05;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.featured-badge {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-width: 280px;
    margin: 0;
    text-align: center;
    z-index: 10;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.pricing-header h3 {
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.price {
    margin-bottom: 2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.currency {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
    color: #6b7280;
}

.amount {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.period {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: #6b7280;
}

.annual-savings {
    margin-top: 0.5rem;
    text-align: center;
}

.annual-price {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.savings-text {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: #6b7280;
    border-bottom: 1px solid #f3f4f6;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Contact Section with text overflow protection */
.contact {
    padding: 100px 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.contact-info h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1f2937;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-info p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #6b7280;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-method:hover {
    background: rgba(79, 70, 229, 0.1);
    transform: translateX(5px);
}

.contact-method i {
    width: 25px;
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-method span {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-form {
    background: var(--gradient-card);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer with text overflow protection */
.footer {
    background: var(--gradient-dark);
    color: white;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    opacity: 0.3;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin-right: 0.75rem;
}

.footer-logo i {
    margin-right: 0.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.footer-section p {
    color: #9ca3af;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(79, 70, 229, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.footer-section h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-section ul {
    list-style: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    display: inline-block;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-section ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.footer-bottom p {
    color: #9ca3af;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

/* Sales Dashboard Section */
.sales-dashboard {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.dashboard-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 2;
    display: flex;
    height: 700px;
    margin-bottom: 4rem;
    border: 1px solid #e5e7eb;
}

.dashboard-sidebar {
    width: 220px;
    background: #f8fafc;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.dashboard-nav {
    padding: 1.5rem 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.dashboard-module-section {
    flex: 1;
}

.dashboard-module-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    margin-bottom: 0.25rem;
}

.dashboard-module-title:hover {
    background: #e5e7eb;
}

.dashboard-module-title.active-module {
    background: #dbeafe;
    color: var(--primary-color);
}

.dashboard-menu {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1rem 0;
}

.dashboard-menu li {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
    position: relative;
}

.dashboard-menu li:hover {
    background: #e5e7eb;
}

.dashboard-menu li.active {
    background: #dbeafe;
    color: var(--primary-color);
    font-weight: 600;
}

.dashboard-version {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
}

.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.dashboard-header {
    background: white;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.dashboard-company-info h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

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

.dashboard-language,
.dashboard-notifications,
.dashboard-user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.dashboard-language:hover,
.dashboard-notifications:hover,
.dashboard-user-profile:hover {
    color: var(--primary-color);
}

.dashboard-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.dashboard-title h2 {
    margin: 0 0 1.5rem 0;
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
}

.dashboard-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    background: white;
    color: #6b7280;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

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

.tab-btn:hover:not(.active) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

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

.time-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-selector label {
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
}

.time-select {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    color: #374151;
    font-size: 0.9rem;
}

.reset-btn {
    padding: 0.5rem 1rem;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.reset-btn:hover {
    background: #4b5563;
}

.kpi-cards {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kpi-card {
    flex: 1;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.kpi-card.sales-amount {
    border-left: 4px solid var(--primary-color);
}

.kpi-card.sales-orders {
    border-left: 4px solid #10b981;
}

.kpi-label {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
}

.kpi-card.sales-amount .kpi-value {
    color: var(--primary-color);
}

.kpi-card.sales-orders .kpi-value {
    color: #10b981;
}

.chart-container {
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chart-header {
    margin-bottom: 1rem;
}

.chart-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
}

.chart-wrapper {
    position: relative;
    height: 400px;
}

#salesChart {
    max-width: 100%;
    height: 100%;
}

/* Responsive Design with text overflow protection */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        border-top: 1px solid #e5e7eb;
        overflow: hidden;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.8rem 2rem;
        margin: 0 1rem;
        border-radius: 6px;
        font-size: 1rem;
        max-width: none;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(5px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-5px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

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

    .hero-graphic {
        width: 350px;
        height: 350px;
    }

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

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

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

    .pricing-card.featured {
        transform: none;
    }
    
    .featured-badge {
        font-size: 0.7rem;
        padding: 0.5rem 1rem;
        max-width: 250px;
        top: -30px;
    }

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

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

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

    .section-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        max-width: 150px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .module-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .module-item {
        font-size: 0.8rem;
        padding: 0.5rem;
        min-height: 50px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Removed problematic animations for better performance */

.feature-card,
.module-card,
.pricing-card {
    animation: fadeInUp 0.8s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Module items - animations removed for better performance */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* AI Chat Widget Styles */
.ai-chat-nav {
    background: var(--gradient-primary) !important;
    color: white !important;
    border-radius: 20px !important;
    padding: 0.5rem 1rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.ai-chat-nav:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3) !important;
}

/* Chat Toggle Button */
.chat-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.chat-toggle-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 12px 35px rgba(79, 70, 229, 0.4);
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* AI Chat Widget */
.ai-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(79, 70, 229, 0.1);
    backdrop-filter: blur(10px);
    animation: slideInUp 0.3s ease;
}

.ai-chat-widget.active {
    display: flex;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Chat Header */
.chat-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.chat-avatar {
    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.2rem;
    flex-shrink: 0;
}

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

.chat-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-status {
    font-size: 0.8rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.chat-minimize,
.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.chat-minimize:hover,
.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

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

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(79, 70, 229, 0.2);
    border-radius: 2px;
}

.message {
    display: flex;
    gap: 0.75rem;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    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%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

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

.user-message .message-avatar {
    background: #e5e7eb;
    color: #6b7280;
}

.message-content {
    max-width: 80%;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.user-message .message-content {
    background: var(--gradient-primary);
    color: white;
}

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

.message-time {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 0.25rem;
    text-align: right;
}

.user-message .message-time {
    text-align: left;
}

/* Chat Input */
.chat-input-container {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.chat-input-wrapper {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

#chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
    background: #f8fafc;
}

#chat-input:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.chat-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

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

/* Chat Suggestions */
.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suggestion-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 80px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #6b7280;
    border-radius: 50%;
    animation: typingDot 1.4s infinite ease-in-out;
}

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

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

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

/* ERP AI Chat Section */
.erp-ai-chat {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.erp-ai-chat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="circuits" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M20 0 L20 20 L0 20 M20 20 L40 20 M20 0 L20 40 M20 20 L20 40" fill="none" stroke="rgba(79,70,229,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23circuits)"/></svg>');
    opacity: 0.3;
}

.erp-demo-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 2;
    display: flex;
    height: 700px;
    margin-bottom: 4rem;
    border: 1px solid #e5e7eb;
}

.erp-sidebar {
    width: 220px;
    background: white;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.erp-nav {
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.erp-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.erp-logo i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.erp-module-section {
    flex: 1;
}

.erp-module-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.erp-module-title:hover {
    background: #f3f4f6;
}

.erp-module-title i:first-child {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.erp-module-title i:last-child {
    margin-left: auto;
    font-size: 0.8rem;
    color: #6b7280;
}

.erp-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 0.5rem;
}

.erp-menu li {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
    position: relative;
}

.erp-menu li:hover {
    background: #f3f4f6;
    color: #374151;
}

.erp-menu li.active {
    background: #dbeafe;
    color: var(--primary-color);
    font-weight: 600;
}

.erp-menu li i:first-child {
    width: 16px;
    font-size: 0.8rem;
}

.erp-menu li i:last-child {
    margin-left: auto;
    font-size: 0.7rem;
    color: #9ca3af;
}

.erp-menu li.ai-chat-trigger {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    margin-top: 1rem;
    font-weight: 600;
}

.erp-menu li.ai-chat-trigger:hover {
    background: #dcfce7;
    color: #15803d;
}

.erp-menu li.erp-exit {
    color: #ef4444;
    margin-top: auto;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.erp-menu li.erp-exit:hover {
    background: #fef2f2;
    color: #dc2626;
}

.erp-version {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
    padding: 0.5rem;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

.erp-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
}

.erp-header {
    background: white;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.erp-company-info h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.erp-header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.erp-language {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #6b7280;
    font-size: 0.85rem;
    cursor: pointer;
}

.erp-language i:first-child {
    font-size: 0.9rem;
}

.erp-language i:nth-child(2) {
    font-size: 0.8rem;
}

.erp-notifications {
    position: relative;
    color: #6b7280;
    cursor: pointer;
    font-size: 1rem;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.1rem 0.3rem;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
}

.erp-user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.85rem;
    cursor: pointer;
}

.erp-user-profile i {
    font-size: 1.2rem;
}

.erp-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: white;
}

.erp-search-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.erp-search-bar {
    flex: 1;
    position: relative;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s ease;
}

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

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.9rem;
}

.erp-create-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
}

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

.erp-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.page-btn, .page-number {
    padding: 0.25rem 0.5rem;
    border: 1px solid #d1d5db;
    background: white;
    color: #6b7280;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.8rem;
    min-width: 32px;
    text-align: center;
    transition: all 0.2s ease;
}

.page-btn:hover, .page-number:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.page-number.active {
    background: #374151;
    color: white;
    border-color: #374151;
}

.page-ellipsis {
    padding: 0.25rem 0.5rem;
    color: #9ca3af;
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-size-select {
    padding: 0.25rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.8rem;
    background: white;
}

.total-items {
    font-weight: 500;
    color: #374151;
}

.erp-table-container {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

.erp-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    background: white;
}

.erp-data-table thead {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.erp-data-table th {
    padding: 0.75rem 0.5rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-right: 1px solid #e5e7eb;
    white-space: nowrap;
}

.erp-data-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.erp-data-table th.sortable:hover {
    background: #f3f4f6;
}

.erp-data-table th.sortable i {
    margin-left: 0.25rem;
    font-size: 0.7rem;
    color: #9ca3af;
}

.erp-data-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #f3f4f6;
    border-right: 1px solid #f3f4f6;
    color: #374151;
    vertical-align: top;
}

.erp-data-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.erp-data-table tbody tr:hover {
    background: #f0f9ff;
}

.status-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-right: 0.25rem;
}

.status-badge.submitted {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.raw-material {
    background: #d1fae5;
    color: #059669;
}

.status-text {
    font-size: 0.7rem;
    color: #6b7280;
}

.product-info, .company-info {
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
}

.product-info i, .company-info i {
    color: var(--primary-color);
    font-size: 0.7rem;
    margin-top: 0.1rem;
    cursor: pointer;
}

.product-info span, .company-info span {
    line-height: 1.3;
}

.erp-data-table td:last-child {
    text-align: center;
    cursor: pointer;
    color: #6b7280;
}

.erp-data-table td:last-child:hover {
    color: var(--primary-color);
}

/* ERP AI Chat Widget */
.erp-ai-chat-widget {
    position: absolute;
    top: 0;
    right: 0;
    width: 350px;
    height: 100%;
    background: white;
    border-left: 1px solid #e5e7eb;
    display: none;
    flex-direction: column;
    z-index: 10;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.erp-ai-chat-widget.active {
    display: flex;
}

.erp-chat-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.erp-chat-avatar {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

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

.erp-chat-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.erp-chat-status {
    font-size: 0.8rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.erp-chat-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.erp-chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.erp-chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.erp-chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.erp-message {
    display: flex;
    gap: 0.75rem;
    animation: messageSlideIn 0.3s ease;
}

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

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

.erp-message.ai-message .erp-message-avatar {
    background: var(--gradient-primary);
    color: white;
}

.erp-message.user-message .erp-message-avatar {
    background: #e5e7eb;
    color: #6b7280;
}

.erp-message-content {
    max-width: 80%;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.erp-user-message .erp-message-content {
    background: var(--gradient-primary);
    color: white;
}

.erp-message-content p {
    margin: 0;
    line-height: 1.4;
    font-size: 0.85rem;
}

.erp-message-time {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 0.25rem;
    text-align: right;
}

.erp-user-message .erp-message-time {
    text-align: left;
}

.erp-chat-input-container {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.erp-chat-input-wrapper {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

#erp-chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.3s ease;
    background: #f8fafc;
}

#erp-chat-input:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.erp-chat-send-btn {
    width: 35px;
    height: 35px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.erp-chat-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.erp-chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.erp-suggestion-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.erp-suggestion-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* AI Features */
.ai-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.ai-feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.ai-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.ai-feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.ai-feature-card h3 {
    margin: 0 0 1rem 0;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 700;
}

.ai-feature-card p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ai-chat-widget {
        width: calc(100vw - 20px);
        height: calc(100vh - 100px);
        bottom: 10px;
        right: 10px;
        left: 10px;
        border-radius: 15px;
    }
    
    .chat-toggle-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .chat-badge {
        font-size: 0.6rem;
        padding: 0.1rem 0.3rem;
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .chat-suggestions {
        flex-direction: column;
    }
    
    .suggestion-btn {
        text-align: center;
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .ai-chat-widget {
        height: calc(100vh - 80px);
    }
    
    .chat-header {
        padding: 0.75rem 1rem;
    }
    
    .chat-info h4 {
        font-size: 1rem;
    }
    
    .chat-messages {
        padding: 0.75rem;
    }
    
    .chat-input-container {
        padding: 0.75rem;
    }
    
    .erp-demo-container {
        height: auto;
        flex-direction: column;
    }
    
    .erp-sidebar {
        width: 100%;
        height: auto;
    }
    
    .erp-nav {
        padding: 1rem;
    }
    
    .erp-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .erp-menu li {
        flex: 1;
        min-width: 120px;
        text-align: center;
        margin-bottom: 0;
    }
    
    .erp-ai-chat-widget {
        position: relative;
        width: 100%;
        height: 400px;
        border-left: none;
        border-top: 1px solid #e5e7eb;
    }
    
    .ai-features {
        grid-template-columns: 1fr;
    }
    
    .dashboard-container {
        height: auto;
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
        height: auto;
    }
    
    .dashboard-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .dashboard-menu li {
        flex: 1;
        min-width: 120px;
        text-align: center;
        margin-bottom: 0;
    }
    
    .kpi-cards {
        flex-direction: column;
        gap: 1rem;
    }
    
    .chart-wrapper {
        height: 300px;
    }
}

/* Email Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 2rem;
}

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

.modal-body label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.modal-body input,
.modal-body select,
.modal-body textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
}

.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-body textarea {
    resize: vertical;
    min-height: 120px;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.btn-secondary {
    background: #6b7280;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.btn-secondary:hover {
    background: #4b5563;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn-secondary,
    .btn-primary {
        width: 100%;
    }
    
    .nav-logo-img {
        height: 35px;
    }
    
    .footer-logo-img {
        height: 45px;
    }
}

/* Success Message Styles */
.success-message {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
    animation: slideInUp 0.5s ease-out;
}

.success-message i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.success-message p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

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

/* Error Message Styles */
.error-message {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
    animation: slideInUp 0.5s ease-out;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.error-message p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

/* Button Loading State */
.btn-loading {
    display: none;
}

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

.btn:disabled .btn-text {
    display: none;
}

.btn:disabled .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
} 