.agent-animation-box {
    position: relative;
    padding: 2.5rem 0;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/****************** Web Intelligence Layer *********************/
.intelligence-viz {
    position: relative;
    height: 340px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.platform-node {
    position: absolute;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #666;
    z-index: 10;
    opacity: 0;
    animation: nodeAppear 6s infinite;
}

.node-1 { top: 10%; left: 15%; animation-delay: 0.2s; }
.node-2 { top: 15%; right: 20%; animation-delay: 0.5s; }
.node-3 { bottom: 20%; left: 10%; animation-delay: 0.8s; }
.node-4 { bottom: 10%; right: 15%; animation-delay: 1.1s; }
.node-5 { top: 50%; right: 5%; animation-delay: 1.4s; }

@keyframes nodeAppear {
    0%, 5% { opacity: 0; transform: scale(0.5); background: rgba(255,255,255,0.05); color: #666; }
    10%, 40% { opacity: 1; transform: scale(1); background: rgba(255,255,255,0.05); color: #666; }
    45%, 90% { opacity: 1; transform: scale(1); background: rgba(10, 173, 149, 0.2); color: var(--accent-primary); border-color: var(--accent-primary); }
    95%, 100% { opacity: 0; transform: scale(0.8); }
}

.center-identity {
    width: 68px;
    height: 68px;
    background: #2aabee;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    z-index: 20;
    opacity: 0;
    animation: identityReveal 6s infinite 1.8s;
    box-shadow: 0 0 35px rgba(42, 171, 238, 0.5);
    position: relative;
}

@keyframes identityReveal {
    0% { opacity: 0; transform: scale(0.5); }
    10%, 90% { opacity: 1; transform: scale(1); }
    95%, 100% { opacity: 0; transform: scale(0.8); }
}

.resolved-label {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0;
    animation: labelFade 6s infinite 4s;
    white-space: nowrap;
}

@keyframes labelFade {
    0%, 5% { opacity: 0; transform: translateX(-50%) translateY(10px); }
    10%, 80% { opacity: 1; transform: translateX(-50%) translateY(0); }
    90%, 100% { opacity: 0; }
}

/*********************** Kanban Automation *********************/
.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.kanban-col {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    min-height: 240px;
    display: flex;
    flex-direction: column;
}

.kanban-col:nth-child(1) { background: rgba(10, 173, 149, 0.04); }
.kanban-col:nth-child(2) { background: rgba(10, 173, 149, 0.08); }
.kanban-col:nth-child(3) { background: rgba(10, 173, 149, 0.12); }

.kanban-header {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-main);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.kanban-items {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-grow: 1;
}

.kanban-card {
    background: rgba(36, 47, 61, 0.7); 
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.85rem;
    font-size: 0.8rem;
}

.card-title { font-weight: 700; margin-bottom: 0.25rem; color: var(--text-main); }
.card-meta { font-size: 0.72rem; color: var(--accent-primary); font-weight: 600; }

.card-agent-label {
    font-size: 0.62rem;
    color: var(--accent-primary);
    margin-top: 0.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
}

.moving-card {
    animation: moveCard 8s infinite ease-in-out;
    position: relative;
    z-index: 10;
}

@keyframes moveCard {
    0%, 15% { transform: translate(0, 0); opacity: 1; border-color: var(--border-color); }
    35%, 50% { transform: translate(calc(100% + 3.5rem), 0); opacity: 1; border-color: var(--accent-primary); }
    60% { transform: translate(calc(100% + 3.5rem), 0); opacity: 0; }
    100% { transform: translate(0, 0); opacity: 0; }
}

.kanban-drop-zone {
    flex-grow: 1;
    min-height: 100px;
    border-radius: 8px;
}

/*********************** Automated Sales Pipeline *********************/
.pipeline-automation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.contact-card-viz {
    width: 100%;
    max-width: 340px;
    background: rgba(36, 47, 61, 0.65);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
    position: relative;
    text-align: left;
}

.viz-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0;
}

.viz-avatar {
    width: 48px;
    height: 48px;
    background: #2aabee;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.viz-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
}

/* Touch Points Animation - One by One */
.touchpoints-count::after {
    content: '2';
    animation: touchCountLoop 12s infinite;
}

@keyframes touchCountLoop {
    0%, 25% { content: '2'; }
    30%, 50% { content: '3'; }
    55%, 75% { content: '4'; }
    80%, 100% { content: '5'; }
}

/* Platforms Animation - Right to Left */
.platform-icons {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: white;
}

.platform-icons i { opacity: 0; transform: scale(0.8); }
.platform-icons i:nth-child(1) { animation: iconReveal1 12s infinite; }
.platform-icons i:nth-child(2) { animation: iconReveal2 12s infinite; }
.platform-icons i:nth-child(3) { animation: iconReveal3 12s infinite; }

@keyframes iconReveal1 {
    0% { opacity: 0; transform: scale(0.8); }
    5%, 95% { opacity: 1; transform: scale(1); }
    96%, 100% { opacity: 0; }
}
@keyframes iconReveal2 {
    0%, 35% { opacity: 0; transform: scale(0.8); }
    40%, 95% { opacity: 1; transform: scale(1); }
    96%, 100% { opacity: 0; }
}
@keyframes iconReveal3 {
    0%, 70% { opacity: 0; transform: scale(0.8); }
    75%, 95% { opacity: 1; transform: scale(1); }
    96%, 100% { opacity: 0; }
}

/* Scrolling Code Log */
.agent-code-scroll {
    width: 100%;
    max-width: 340px;
    height: 100px;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.65rem;
    color: var(--accent-primary);
    opacity: 0.7;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 25%, black 100%);
    mask-image: linear-gradient(to bottom, transparent, black 25%, black 100%);
}

.code-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    animation: scrollLog 12s infinite linear;
}

@keyframes scrollLog {
    0% { transform: translateY(0); }
    100% { transform: translateY(-200px); }
}

/* Dynamic Text Logic */
.viz-stage-box {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
    display: inline-block;
    background: #1a1f26;
    border: 1px solid rgba(255,255,255,0.1);
    animation: stageColorLoop 12s infinite;
}

.stage-text-loop::after {
    content: 'Lead';
    animation: stageTextLoop 12s infinite;
}

@keyframes stageTextLoop {
    0%, 34% { content: 'Lead'; }
    35%, 69% { content: 'Qualified'; }
    70%, 100% { content: 'Customer'; }
}

@keyframes stageColorLoop {
    0%, 51% { color: #888; border-color: #444; }
    52%, 76% { color: #2aabee; border-color: rgba(42, 171, 238, 0.4); }
    77%, 100% { color: var(--accent-primary); border-color: rgba(10, 173, 149, 0.4); }
}

/* Score Loop */
.viz-score-box {
    font-size: 1.1rem;
    font-weight: 800;
    animation: scoreColorLoop 12s infinite;
}

.score-value-loop::after {
    content: '20';
    animation: scoreValueLoop 12s infinite;
}

@keyframes scoreValueLoop {
    0%, 16% { content: '20'; }
    17%, 33% { content: '39'; }
    34%, 49% { content: '54'; }
    50%, 59% { content: '71'; }
    60%, 100% { content: '98'; }
}

@keyframes scoreColorLoop {
    0%, 49% { color: #fff; }
    50%, 100% { color: var(--accent-primary); }
}

/* Telegram Toast */
.telegram-toast {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: #242f3d;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    transform: translateY(120px);
    opacity: 0;
    animation: toastSlide 8s infinite ease-in-out;
    z-index: 100;
}

@keyframes toastSlide {
    0%, 45% { transform: translateY(120px); opacity: 0; }
    50%, 90% { transform: translateY(0); opacity: 1; }
    95%, 100% { transform: translateY(-30px); opacity: 0; }
}

.tg-icon {
    width: 36px;
    height: 36px;
    background: #2aabee;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.tg-content { flex: 1; }
.tg-title { font-size: 0.8rem; font-weight: 700; color: #2aabee; }
.tg-text { font-size: 0.75rem; color: #fff; }
.tg-close { color: rgba(255,255,255,0.2); font-size: 0.8rem; }

/* Visibility Control with Fade Transition */
.disp-animation {
    display: none;
    width: 100%;
    opacity: 0;
}

.disp-animation.active {
    display: block;
    animation: fadeInPanel 0.5s ease forwards;
}

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

/****************** Enterprise Intelligence *********************/
.enterprise-svg {
    width: 90%;
    height: 90%;
}