html,
body,
header {
    height: 100%;
}

/* ===========================
   Modern Login Section
   =========================== */
.crm-login-header {
    min-height: 100vh;
    position: relative;
}

/* Nav */
.crm-login-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.crm-login-brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.crm-login-brand:hover { text-decoration: none; }

.crm-login-brand-powered {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.crm-login-brand-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

.crm-login-info-link {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s;
}

.crm-login-info-link:hover {
    color: #ff9100;
    text-decoration: none;
}

/* Login Section */
.crm-login-section {
    min-height: 100vh;
    background: url("../img/intro10.jpeg") no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.crm-login-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg,
        rgba(255, 98, 0, 0.55),
        rgba(255, 145, 0, 0.5),
        rgba(255, 183, 101, 0.45),
        rgba(255, 229, 101, 0.4),
        rgba(255, 98, 0, 0.45),
        rgba(255, 183, 101, 0.4));
    background-size: 600% 600%;
    animation: crm-login-gradient 15s linear infinite;
}

@keyframes crm-login-gradient {
    0%, 20% { background-position: 0% 0%; }
    40%, 100% { background-position: 100% 100%; }
    60% { background-position: 0% 0%; }
}

/* Animated orbs */
.crm-login-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.crm-login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.crm-login-orb--1 {
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.15);
    top: -10%;
    left: -5%;
    animation: crm-orb-float1 18s ease-in-out infinite;
}

.crm-login-orb--2 {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    bottom: -10%;
    right: -5%;
    animation: crm-orb-float2 22s ease-in-out infinite;
}

.crm-login-orb--3 {
    width: 300px;
    height: 300px;
    background: rgba(255, 200, 100, 0.12);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: crm-orb-float3 15s ease-in-out infinite;
}

@keyframes crm-orb-float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 30px) scale(1.1); }
}

@keyframes crm-orb-float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, -40px) scale(1.05); }
}

@keyframes crm-orb-float3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-45%, -55%) scale(1.15); }
}

/* Left side - Branding */
.crm-login-left {
    position: relative;
    z-index: 1;
    animation: crm-fadeInUp 0.8s ease both;
}

.crm-login-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 4.5rem;
    margin-bottom: 16px;
    line-height: 1;
}

.crm-login-logo-ia {
    font-weight: 800;
    color: #fff;
}

.crm-login-logo-crm {
    font-weight: 200;
    background: linear-gradient(135deg, #ff9100, #ff6200);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.crm-login-tagline {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.crm-login-features-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.crm-login-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.crm-login-feature-pill:hover {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.crm-login-feature-pill i {
    font-size: 11px;
    color: #fff;
}

/* Right side - Login Card */
.crm-login-card {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: crm-fadeInUp 0.8s ease 0.15s both;
}

.crm-login-card-header {
    margin-bottom: 32px;
}

.crm-login-card-header h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.crm-login-card-header p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.crm-login-message {
    color: #ff9100;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* Form Fields */
.crm-login-field {
    margin-bottom: 22px;
}

.crm-login-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.crm-login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.crm-login-input-wrap > i {
    position: absolute;
    left: 16px;
    color: rgba(255, 255, 255, 0.25);
    font-size: 14px;
    transition: color 0.3s;
    z-index: 1;
}

.crm-login-input-wrap input {
    width: 100%;
    padding: 14px 44px 14px 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.crm-login-input-wrap input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 145, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 145, 0, 0.1);
}

.crm-login-input-wrap input:focus + i {
    color: #ff9100;
}

/* Fix: icon color on focus via sibling */
.crm-login-input-wrap:focus-within > i {
    color: #ff9100;
}

.crm-login-toggle-pw {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.35);
    font-size: 14px;
    transition: color 0.3s;
    z-index: 2;
}

.crm-login-toggle-pw i {
    position: static;
    color: inherit;
    font-size: inherit;
}

.crm-login-toggle-pw:hover {
    color: #ff9100;
    text-decoration: none;
}

/* Submit Button */
.crm-login-btn {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    background: linear-gradient(135deg, #ff9100, #ff6200);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.crm-login-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.crm-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 98, 0, 0.35);
}

.crm-login-btn:hover::before {
    opacity: 1;
}

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

/* Alert messages inside login card */
.crm-login-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 20px;
    animation: crm-fadeInUp 0.4s ease;
}

.crm-login-alert i {
    font-size: 16px;
    flex-shrink: 0;
}

.crm-login-alert--success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.crm-login-alert--danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* Footer links */
.crm-login-footer {
    text-align: center;
    margin-top: 20px;
}

.crm-login-footer a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.3s;
}

.crm-login-footer a:hover {
    color: #ff9100;
    text-decoration: none;
}

/* Mobile responsive */
@media (max-width: 992px) {
    .crm-login-left {
        text-align: center;
        margin-bottom: 40px;
    }

    .crm-login-features-mini {
        justify-content: center;
    }

    .crm-login-logo {
        font-size: 3.5rem;
    }
}

@media (max-width: 576px) {
    .crm-login-card {
        padding: 32px 24px;
    }

    .crm-login-logo {
        font-size: 2.8rem;
    }
}

@media print
{
    .no-print, .no-print *
    {
        display: none !important;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


#appName .amber-text {
    display: inline-block;
    animation: slideInFromBottom 1s ease-in-out;
}

@keyframes slideInFromBottom {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.err-container {
    max-width: 500px;
    margin: 100px auto;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.err-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    color: #4CAF50;
}

.err-title {
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
}

.err-message {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.err-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.err-button:hover {
    background-color: #388E3C;
}

.err-details {
    margin-top: 2rem;
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
    text-decoration: underline;
}

.err-button-text {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

.err-note {
    font-size: 14px;
    color: #888;
    font-style: italic;
    margin-bottom: 20px;
}

.err-details {
    margin-top: 2rem;
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
    text-decoration: underline;
}

.err-details-content {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f3f4f6;
    border-radius: 0.375rem;
    font-family: monospace;
    white-space: pre-wrap;
    text-align: left;
    max-width: 600px;
    overflow-x: auto;
}

/* Animation */
@keyframes err-pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .err-title {
        font-size: 1.75rem;
    }

    .err-message {
        font-size: 1rem;
    }
}

/* Quote Product Two-Line Layout - Modern Minimalist Design */
.quote-product-table {
    border-collapse: separate;
    border-spacing: 0 12px;
    width: 100%;
}

.quote-product-table thead.quote-products-header {
    display: none;
}

/* Cada fila de producto se muestra como una tarjeta con 2 lineas */
.quote-product-table tbody tr:not(:last-child) {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.quote-product-table tbody tr:not(:last-child):hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #d1d5db;
}

/* ===== PRIMERA LINEA: Codigo, Elemento, Marca, Modelo, Descripcion ===== */
.quote-product-table tbody tr:not(:last-child) td:nth-child(1),
.quote-product-table tbody tr:not(:last-child) td:nth-child(2),
.quote-product-table tbody tr:not(:last-child) td:nth-child(3),
.quote-product-table tbody tr:not(:last-child) td:nth-child(4),
.quote-product-table tbody tr:not(:last-child) td:nth-child(5) {
    padding: 14px 10px 10px 10px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    position: relative;
}

/* Toggle - celda mini */
.quote-product-table tbody tr:not(:last-child) td:nth-child(1) {
    flex: 0 0 3%;
    order: 1;
    border-radius: 10px 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 2px;
}
.quote-product-table tbody tr:not(:last-child) td:nth-child(1)::before { display: none; }

/* Codigo - 7% */
.quote-product-table tbody tr:not(:last-child) td:nth-child(2) {
    flex: 0 0 7%;
    order: 2;
}
.quote-product-table tbody tr:not(:last-child) td:nth-child(2)::before { content: "CODIGO"; }

/* Producto - 23% */
.quote-product-table tbody tr:not(:last-child) td:nth-child(3) {
    flex: 0 0 23%;
    order: 3;
}
.quote-product-table tbody tr:not(:last-child) td:nth-child(3)::before { content: "PRODUCTO"; }

/* Marca - 14% */
.quote-product-table tbody tr:not(:last-child) td:nth-child(4) {
    flex: 0 0 14%;
    order: 4;
}
.quote-product-table tbody tr:not(:last-child) td:nth-child(4)::before { content: "MARCA"; }

/* Modelo - 14% */
.quote-product-table tbody tr:not(:last-child) td:nth-child(5) {
    flex: 0 0 14%;
    order: 5;
}
.quote-product-table tbody tr:not(:last-child) td:nth-child(5)::before { content: "MODELO"; }

/* Descripcion - 32% */
.quote-product-table tbody tr:not(:last-child) td:nth-child(6) {
    flex: 0 0 32%;
    order: 6;
    border-radius: 0 10px 0 0;
}
.quote-product-table tbody tr:not(:last-child) td:nth-child(6)::before { content: "DESCRIPCION"; }

/* ===== SEGUNDA LINEA ===== */
.quote-product-table tbody tr:not(:last-child) td:nth-child(7),
.quote-product-table tbody tr:not(:last-child) td:nth-child(8),
.quote-product-table tbody tr:not(:last-child) td:nth-child(9),
.quote-product-table tbody tr:not(:last-child) td:nth-child(10),
.quote-product-table tbody tr:not(:last-child) td:nth-child(11),
.quote-product-table tbody tr:not(:last-child) td:nth-child(12),
.quote-product-table tbody tr:not(:last-child) td:nth-child(13),
.quote-product-table tbody tr:not(:last-child) td:nth-child(14),
.quote-product-table tbody tr:not(:last-child) td:nth-child(15) {
    padding: 10px 10px 14px 10px;
    background: #f9fafb;
    position: relative;
}

/* Tipo Impuesto - 14% */
.quote-product-table tbody tr:not(:last-child) td:nth-child(7) {
    flex: 0 0 14%;
    order: 7;
    border-radius: 0 0 0 10px;
}
.quote-product-table tbody tr:not(:last-child) td:nth-child(7)::before { content: "TIPO IMPUESTO"; }

/* Cantidad - 10% */
.quote-product-table tbody tr:not(:last-child) td:nth-child(8) {
    flex: 0 0 10%;
    order: 8;
}
.quote-product-table tbody tr:not(:last-child) td:nth-child(8)::before { content: "CANTIDAD"; }

/* Precio Unitario - 14% */
.quote-product-table tbody tr:not(:last-child) td:nth-child(9) {
    flex: 0 0 14%;
    order: 9;
}
.quote-product-table tbody tr:not(:last-child) td:nth-child(9)::before { content: "PRECIO UNIT."; }

/* Descuento - 10% */
.quote-product-table tbody tr:not(:last-child) td:nth-child(10) {
    flex: 0 0 10%;
    order: 10;
}
.quote-product-table tbody tr:not(:last-child) td:nth-child(10)::before { content: "DESCUENTO"; }

/* Subtotal - 12% */
.quote-product-table tbody tr:not(:last-child) td:nth-child(11) {
    flex: 0 0 12%;
    order: 11;
}
.quote-product-table tbody tr:not(:last-child) td:nth-child(11)::before { content: "SUBTOTAL"; }

/* Impuesto - 10% */
.quote-product-table tbody tr:not(:last-child) td:nth-child(12) {
    flex: 0 0 10%;
    order: 12;
}
.quote-product-table tbody tr:not(:last-child) td:nth-child(12)::before { content: "IMPUESTO"; }

/* Total - 12% */
.quote-product-table tbody tr:not(:last-child) td:nth-child(13) {
    flex: 0 0 12%;
    order: 13;
}
.quote-product-table tbody tr:not(:last-child) td:nth-child(13)::before { content: "TOTAL"; }

/* Celda de Costo* (antes del delete) */
.quote-product-table tbody tr:not(:last-child) td:nth-child(14) {
    flex: 0 0 10%;
    order: 14;
    background: #f0f0f0;
}
.quote-product-table tbody tr:not(:last-child) td:nth-child(14)::before { content: "COSTO*"; }

/* Acciones / Delete */
.quote-product-table tbody tr:not(:last-child) td:nth-child(15) {
    flex: 0 0 8%;
    order: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 10px 0;
}
.quote-product-table tbody tr:not(:last-child) td:nth-child(15)::before { display: none; }

/* Labels pseudo-elementos */
.quote-product-table tbody tr:not(:last-child) td::before {
    display: block;
    font-size: 9px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 600;
}

/* Estilos para inputs */
.quote-product-table tbody tr:not(:last-child) td .form-control-sm,
.quote-product-table tbody tr:not(:last-child) td select.form-control-sm {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    padding: 8px 10px;
    background: #fff;
    width: 100%;
    transition: all 0.15s ease;
}

.quote-product-table tbody tr:not(:last-child) td .form-control-sm:focus,
.quote-product-table tbody tr:not(:last-child) td select.form-control-sm:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.quote-product-table tbody tr:not(:last-child) td .form-control-sm[readonly] {
    background: #f3f4f6;
    color: #6b7280;
}

/* ===== FILA DE TOTALES ===== */
.quote-product-table tbody tr:last-child {
    display: flex;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 10px;
    justify-content: flex-end;
    align-items: center;
    padding: 16px;
    gap: 12px;
}

.quote-product-table tbody tr:last-child td {
    padding: 0;
    border: none;
    background: transparent;
    flex: 0 0 auto;
}

.quote-product-table tbody tr:last-child td:nth-child(1),
.quote-product-table tbody tr:last-child td:nth-child(2),
.quote-product-table tbody tr:last-child td:nth-child(3),
.quote-product-table tbody tr:last-child td:nth-child(4),
.quote-product-table tbody tr:last-child td:nth-child(5),
.quote-product-table tbody tr:last-child td:nth-child(6),
.quote-product-table tbody tr:last-child td:nth-child(7) {
    display: none;
}

.quote-product-table tbody tr:last-child td:nth-child(8) {
    display: flex;
    align-items: center;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
}
.quote-product-table tbody tr:last-child td:nth-child(8)::before {
    content: "TOTALES:";
    margin-right: 8px;
    font-size: 11px;
    opacity: 0.8;
}

.quote-product-table tbody tr:last-child td:nth-child(9),
.quote-product-table tbody tr:last-child td:nth-child(10),
.quote-product-table tbody tr:last-child td:nth-child(11),
.quote-product-table tbody tr:last-child td:nth-child(12) {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quote-product-table tbody tr:last-child td:nth-child(9)::before {
    content: "Descuento";
    font-size: 9px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.quote-product-table tbody tr:last-child td:nth-child(10)::before {
    content: "Subtotal";
    font-size: 9px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.quote-product-table tbody tr:last-child td:nth-child(11)::before {
    content: "Impuesto";
    font-size: 9px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.quote-product-table tbody tr:last-child td:nth-child(12)::before {
    content: "Total";
    font-size: 9px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.quote-product-table tbody tr:last-child td:nth-child(13),
.quote-product-table tbody tr:last-child td:nth-child(14) {
    display: none;
}

.quote-product-table tbody tr:last-child td .form-control-sm {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    padding: 8px 12px;
    text-align: center;
    width: 100px;
}

.quote-product-table tbody tr:last-child td.font-weight-bold {
    color: #fff;
}

/* Icono de eliminar */
.quote-product-table .removeAction,
.quote-product-table .remove {
    color: #ef4444;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.6;
    transition: all 0.2s ease;
    padding: 6px;
    border-radius: 6px;
}

.quote-product-table .removeAction:hover,
.quote-product-table .remove:hover {
    opacity: 1;
    background: rgba(239, 68, 68, 0.1);
}

/* ===========================
   CRM Landing Page - Modern
   =========================== */

/* Hero Section */
.crm-hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.crm-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 145, 0, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
    animation: crm-aurora 20s ease-in-out infinite;
}

@keyframes crm-aurora {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, -2%) rotate(1deg); }
    66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

.crm-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.crm-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 145, 0, 0.15);
    border: 1px solid rgba(255, 145, 0, 0.3);
    border-radius: 50px;
    color: #ff9100;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 28px;
    animation: crm-fadeInUp 0.8s ease;
}

.crm-hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 24px;
    animation: crm-fadeInUp 0.8s ease 0.1s both;
}

.crm-gradient-text {
    background: linear-gradient(135deg, #ff9100, #ff6200, #ff9100);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: crm-gradientShift 4s ease infinite;
}

@keyframes crm-gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

.crm-hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
    animation: crm-fadeInUp 0.8s ease 0.2s both;
}

@keyframes crm-fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Features Grid */
.crm-features {
    padding: 80px 0;
    background: #fafafa;
}

.crm-section-header {
    text-align: center;
    margin-bottom: 56px;
}

.crm-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.crm-section-desc {
    font-size: 1.05rem;
    color: #6b7280;
}

.crm-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .crm-features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .crm-features-grid { grid-template-columns: 1fr; }
    .crm-hero-title { font-size: 2rem; }
}

.crm-feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 28px;
    border: 1px solid #e5e7eb;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.crm-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.crm-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.crm-feature-card:hover::before {
    opacity: 1;
}

.crm-feature-card--accent1::before { background: linear-gradient(90deg, #ff9100, #ff6200); }
.crm-feature-card--accent2::before { background: linear-gradient(90deg, #6366f1, #818cf8); }
.crm-feature-card--accent3::before { background: linear-gradient(90deg, #10b981, #34d399); }
.crm-feature-card--accent4::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.crm-feature-card--accent5::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.crm-feature-card--accent6::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }

.crm-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.crm-feature-card--accent1 .crm-feature-icon { background: rgba(255, 145, 0, 0.1); color: #ff6200; }
.crm-feature-card--accent2 .crm-feature-icon { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.crm-feature-card--accent3 .crm-feature-icon { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.crm-feature-card--accent4 .crm-feature-icon { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.crm-feature-card--accent5 .crm-feature-icon { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.crm-feature-card--accent6 .crm-feature-icon { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

.crm-feature-card h3 {
    font-size: 1.1rem;
    font-weight: 650;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.crm-feature-card p {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Stats Section */
.crm-stats {
    padding: 60px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.crm-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

@media (max-width: 768px) {
    .crm-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

.crm-stat-item {
    padding: 24px 16px;
}

.crm-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ff9100;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.crm-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* Capabilities Section */
.crm-capabilities {
    padding: 80px 0;
    background: #fff;
}

.crm-capabilities-list {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.crm-capability-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    border-radius: 14px;
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.crm-capability-row:hover {
    background: #f9fafb;
    border-color: #e5e7eb;
    transform: translateX(4px);
}

.crm-capability-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 145, 0, 0.1), rgba(255, 98, 0, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6200;
    font-size: 18px;
}

.crm-capability-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.crm-capability-text strong {
    font-size: 0.95rem;
    color: #1a1a2e;
    font-weight: 650;
}

.crm-capability-text span {
    font-size: 0.87rem;
    color: #6b7280;
    line-height: 1.5;
}

/* CTA / Contact */
.crm-cta {
    padding: 80px 0;
    background: #fafafa;
}

.crm-cta-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.crm-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 145, 0, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.crm-cta-card h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
}

.crm-cta-card > p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    position: relative;
}

.crm-contact-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
}

.crm-contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px 36px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 220px;
}

.crm-contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 145, 0, 0.4);
    transform: translateY(-3px);
    text-decoration: none;
}

.crm-contact-item i {
    font-size: 20px;
    color: #ff9100;
    margin-bottom: 4px;
}

.crm-contact-item span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.crm-contact-item small {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Scroll-triggered animations */
.crm-feature-card,
.crm-capability-row,
.crm-stat-item,
.crm-section-header,
.crm-cta-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.crm-feature-card.crm-visible,
.crm-capability-row.crm-visible,
.crm-stat-item.crm-visible,
.crm-section-header.crm-visible,
.crm-cta-card.crm-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for feature cards */
.crm-feature-card:nth-child(1) { transition-delay: 0.05s; }
.crm-feature-card:nth-child(2) { transition-delay: 0.12s; }
.crm-feature-card:nth-child(3) { transition-delay: 0.19s; }
.crm-feature-card:nth-child(4) { transition-delay: 0.26s; }
.crm-feature-card:nth-child(5) { transition-delay: 0.33s; }
.crm-feature-card:nth-child(6) { transition-delay: 0.4s; }

/* Staggered delays for capability rows */
.crm-capability-row:nth-child(1) { transition-delay: 0.05s; }
.crm-capability-row:nth-child(2) { transition-delay: 0.13s; }
.crm-capability-row:nth-child(3) { transition-delay: 0.21s; }
.crm-capability-row:nth-child(4) { transition-delay: 0.29s; }

/* Staggered delays for stat items */
.crm-stat-item:nth-child(1) { transition-delay: 0.05s; }
.crm-stat-item:nth-child(2) { transition-delay: 0.13s; }
.crm-stat-item:nth-child(3) { transition-delay: 0.21s; }
.crm-stat-item:nth-child(4) { transition-delay: 0.29s; }
