.endpoint-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-top: 50px;
    position: relative;
    padding: 20px 0;
    min-height: 280px;
}

.your-system, .whatsapp-app {
    padding: 20px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 600;
    color: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.api-gateway {
    background: var(--bg-panel);
    border: 1px solid var(--accent-secondary);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 184, 255, 0.15);
    position: relative;
    width: 230px;
    z-index: 2;
    flex-shrink: 0;
}

.api-gateway::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 8px;
    border: 1px solid var(--accent-primary);
    opacity: 0.6;
    animation: epPulse 2.4s ease-out infinite;
    pointer-events: none;
}

@keyframes epPulse {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.08); }
}

.ep-beams {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.beam-base { stroke: var(--border-light); stroke-width: 1.5; fill: none; }
.beam-glow { stroke-width: 2; fill: none; }
.packet { filter: drop-shadow(0 0 8px currentColor); }

.gateway-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-secondary);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.endpoint-box {
    background: #000;
    border: 1px solid rgba(255,255,255,0.05);
    padding: 8px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #aaa;
    text-align: left;
}

.endpoint-box:last-of-type { margin-bottom: 0; }

@media (max-width: 768px) {
    .endpoint-diagram { flex-direction: column; gap: 60px; min-height: auto; padding: 30px 0; }
}